This content has been marked as final.
Show 3 replies
-
1. Re: Value of Radio button not populated. Radio Button is use
ilya_shaikovsky Mar 17, 2009 10:00 AM (in response to kumarhanu)because you should use valueExpression. And this should be explored from simple JSF documentation.
-
2. Re: Value of Radio button not populated. Radio Button is use
kumarhanu Mar 17, 2009 12:48 PM (in response to kumarhanu)Thanks for the response. I tried to to set valueExpression for "Value" attribute of the UISelectItem. But the solution is create a valueExpression for "itemValue" attribute. After this the index values are populated as radio button values under the data table.
-
3. Re: Value of Radio button not populated. Radio Button is use
kumarhanu Mar 18, 2009 2:40 AM (in response to kumarhanu)Solution:
selectItem.setValueExpression("itemValue", app.getExpressionFactory().createValueExpression(FacesContext.getCurrentInstance().getELContext(),"#{index}", String.class));
Here index is:
table.setRowKeyVar("index");