This content has been marked as final.
Show 2 replies
-
1. Re: dataTable rendering problem
ilya_shaikovsky Nov 21, 2007 9:31 AM (in response to fuligj)please add your code snippet to make question more clear.
-
2. Re: dataTable rendering problem
fuligj Nov 21, 2007 2:10 PM (in response to fuligj)Thanks, for feedback!
So here is the JSF page source:<h:form> <a4j:commandButton value="Set value to variable list" reRender="dataTable"> <a4j:actionparam name="p" value="#{tb.items}" assignTo="#{list}"/> </a4j:commandButton> <rich:dataTable value="#{list}" id="dataTable"> <rich:column> <a4j:commandButton value="SubCommand" reRender="text"> <a4j:actionparam name="p1" value="Alex" assignTo="#{p1}"/> </a4j:commandButton> </rich:column> </rich:dataTable> <h:outputText value="#{p1}" id="text"/> </h:form>
Bean code:package test; import java.util.List; import java.util.ArrayList; public class TestBean { List items = null; public List getItems() { items = new ArrayList(); items.add(1); return items; } }
When I click "Set value to variable list" button the "list" variable become a new value and the datatable in effect rendered. Now I click the "SubCommand" button, but nothing changes.
When I take out the "SubCommand" button from datatable, the outputText become the value "Alex".
Thank You!
Best regards!