kkkrao
asked on
How to render <hx:dataIterator> before <h:selectBooleanCheckbox>
Hi!
As you can see below I'm making use of "selectBooleanCheckbox" whose value is derived from the "dataIterator". But in real time scenario, the component "selectBooleanCheckbox" gets rendered before "dataIterator" because of which a NullPointerException gets thrown. But instead of a "selectBooleanCheckbox", if I use "outputText" inside the "dataIterator" I get the data displayed correctly. Can anyone please let me know how to render "dataIterator" before rendering the "selectBooleanCheckbox".
One more thing, I don't want to use "dataTable" instead of "dataIterator". My presentation logic doesn't allow me to do that.
Thanks in advance guys,
Kartheek.
As you can see below I'm making use of "selectBooleanCheckbox" whose value is derived from the "dataIterator". But in real time scenario, the component "selectBooleanCheckbox" gets rendered before "dataIterator" because of which a NullPointerException gets thrown. But instead of a "selectBooleanCheckbox", if I use "outputText" inside the "dataIterator" I get the data displayed correctly. Can anyone please let me know how to render "dataIterator" before rendering the "selectBooleanCheckbox".
One more thing, I don't want to use "dataTable" instead of "dataIterator". My presentation logic doesn't allow me to do that.
Thanks in advance guys,
Kartheek.
<hx:dataIterator value="#{row.subscriptions}" var="dataCol"
id="subscriptionsTable1" >
<h:selectBooleanCheckbox id="checkbox1"
value="#{dataCol.emailSubscribed}">
</h:selectBooleanCheckbox>
</hx:dataIterator>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.