Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: EE-3.3.0.GA_P01
-
Fix Version/s: 4.0.BETA, EE-3.3.0.GA_P02, 4.0
-
Component/s: ACE-Components
-
Labels:None
-
Environment:Tomcat 7
-
Assignee Priority:P2
-
Salesforce Case Reference:
Description
According to the ace:dataTable tld for alwaysExecuteContents:
Enable the decoding of child components during table feature requests. The table attempts to decode children whenever it is executed, meaning whenever a parent region is submitted, or the table submits itself to paginate, make a selection, reorder columns, or any other feature. Decoding children during feature requests can result in unwanted input submission (during pagination for example), so by default this component suppresses child decoding whenever submitting itself.
The default is false, meaning child components should NOT be executed. However, in the showcase, if you replace one of the h:outputText tags with an h:inputText tag in dataTableLazyLoading.xhtml and add a customer f:validator, you will see the validator execute when paginating, meaning the component has been decoded.
Page Markup:
<h:inputText id="nameCell" value="#{car.name}">
<f:validator validatorId="test.validator" />
</h:inputText>
Validator:
package org.icefaces.samples.showcase.example.ace.dataTable;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.validator.FacesValidator;
import javax.faces.validator.Validator;
import javax.faces.validator.ValidatorException;
@FacesValidator("test.validator")
public class TestValidator implements Validator {
public void validate(FacesContext facesContext, UIComponent uiComponent, Object o) throws ValidatorException {
System.out.println("VALIDATION !!!!");
}
}
Enable the decoding of child components during table feature requests. The table attempts to decode children whenever it is executed, meaning whenever a parent region is submitted, or the table submits itself to paginate, make a selection, reorder columns, or any other feature. Decoding children during feature requests can result in unwanted input submission (during pagination for example), so by default this component suppresses child decoding whenever submitting itself.
The default is false, meaning child components should NOT be executed. However, in the showcase, if you replace one of the h:outputText tags with an h:inputText tag in dataTableLazyLoading.xhtml and add a customer f:validator, you will see the validator execute when paginating, meaning the component has been decoded.
Page Markup:
<h:inputText id="nameCell" value="#{car.name}">
<f:validator validatorId="test.validator" />
</h:inputText>
Validator:
package org.icefaces.samples.showcase.example.ace.dataTable;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.validator.FacesValidator;
import javax.faces.validator.Validator;
import javax.faces.validator.ValidatorException;
@FacesValidator("test.validator")
public class TestValidator implements Validator {
public void validate(FacesContext facesContext, UIComponent uiComponent, Object o) throws ValidatorException {
System.out.println("VALIDATION !!!!");
}
}
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Brad Kroeger
created issue -
Brad Kroeger
made changes -
Field | Original Value | New Value |
---|---|---|
Assignee | Ken Fyten [ ken.fyten ] |
Brad Kroeger
made changes -
Salesforce Case Reference | 5007000000UaCTLAA3 |
Ken Fyten
made changes -
Fix Version/s | 3.4 [ 10770 ] | |
Fix Version/s | EE-3.3.0.GA_P02 [ 11371 ] | |
Assignee | Ken Fyten [ ken.fyten ] | Arturo Zambrano [ artzambrano ] |
Assignee Priority | P1 [ 10010 ] |
Arturo Zambrano
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Cruz Miraback
made changes -
Resolution | Fixed [ 1 ] | |
Status | Resolved [ 5 ] | Reopened [ 4 ] |
Arturo Zambrano
made changes -
Status | Reopened [ 4 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Resolution | Fixed [ 1 ] | |
Status | Resolved [ 5 ] | Reopened [ 4 ] |
Assignee Priority | P1 [ 10010 ] | P2 [ 10011 ] |
Arturo Zambrano
made changes -
Status | Reopened [ 4 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Fix Version/s | 4.0 [ 11382 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |