Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: EE-3.3.0.GA_P07
-
Fix Version/s: EE-4.3.0.GA_P02, EE-3.3.0.GA_P08
-
Component/s: ACE-Components
-
Labels:None
-
Environment:Windows Vista; Windows XP; Other
-
Support Case References:00014567
Description
Hi,
We have ace:dataTable and inside the ace:column we supposed to use <h:selectBooleanCheckbox valueChangeListener="#{page1.payModeValueChange}" with f:attribute and passing the dataTable index.
The index is not passed to the backing bean valuechangelister
public void payModeValueChange(ValueChangeEvent event) {
Integer val = (Integer) ((UIInput) event.getSource()).getAttributes().get("val"); //val is null
System.out.println(val);
}
Sample program is attached here and kindly let us know whats wrong and advice us.
thanks
-----
More info
page1.xhtml
--------------------------
<h:selectBooleanCheckbox value="#{page1.agree}"
valueChangeListener="#{page1.payModeValueChange}">
<f:ajax execute="@this" render="@all" />
<!-- Why the f:attribute value is not passed to the backing bean if it inside the ace column ?? -->
<f:attribute name="raw" value="#{row}" />
</h:selectBooleanCheckbox>
Page1Bean.java
---------------------------
public void payModeValueChange(ValueChangeEvent event) {
Integer val = (Integer) ((UIInput) event.getSource()).getAttributes().get("val");
System.out.println(val);
}
We have ace:dataTable and inside the ace:column we supposed to use <h:selectBooleanCheckbox valueChangeListener="#{page1.payModeValueChange}" with f:attribute and passing the dataTable index.
The index is not passed to the backing bean valuechangelister
public void payModeValueChange(ValueChangeEvent event) {
Integer val = (Integer) ((UIInput) event.getSource()).getAttributes().get("val"); //val is null
System.out.println(val);
}
Sample program is attached here and kindly let us know whats wrong and advice us.
thanks
-----
More info
page1.xhtml
--------------------------
<h:selectBooleanCheckbox value="#{page1.agree}"
valueChangeListener="#{page1.payModeValueChange}">
<f:ajax execute="@this" render="@all" />
<!-- Why the f:attribute value is not passed to the backing bean if it inside the ace column ?? -->
<f:attribute name="raw" value="#{row}" />
</h:selectBooleanCheckbox>
Page1Bean.java
---------------------------
public void payModeValueChange(ValueChangeEvent event) {
Integer val = (Integer) ((UIInput) event.getSource()).getAttributes().get("val");
System.out.println(val);
}
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion