| Author |
Rendering a4j:outputPanel with bean property
|
Elizabath Lima
Ranch Hand
Joined: Nov 23, 2005
Posts: 32
|
|
Hi All, I'm having a rich tree component. It is calling a method onNodeSelect() method on nodeSelectListener attribute and rerenders two <a4j utputPanel> coponents. These two <a4j utputPanel> components have the rendered property depending on displayStatus attribute value of the backing bean. Each <a4j utputPanel> is having a dataTable component. <a4j utputPanel id="summary" rendered="#{CriteriaBean.displayStatus=='false'}"> <h:dataTable value="#{CriteriaBean.summaryList}" var="summary" id="summaryPane" > I'm setting the displayStatus in the onNodeSelect() method. But the page is not displaying the dataTable eventhough i put reRender=summary in the rich tree. I also tried binding the dataTable to backing bean and setting the rendered property there. It also not working. How can i fix this? Please help.
|
 |
Leonardo Rafaeli
Ranch Hand
Joined: Dec 12, 2005
Posts: 58
|
|
it wont be reRendered because if it wasnt rendered, the ID of your component will not show at your jsp page so, the best way to reCreate your component is putting other component as parent of your panel, like that: <t:panelGrid id="myPanel"> <a4j utputPanel id="summary" rendered="#{CriteriaBean.displayStatus=='false'}"> <h:dataTable value="#{CriteriaBean.summaryList}" var="summary" id="summaryPane" /> </t:panelGrid> when your tree triggers an event you must reRender myPanel only  try it
|
SCJP 1.4, SCWCD 1.4, SCBCD 5, OCUP, SCEA 5 (I), Oracle SOA Implementation Specialist, IBM Websphere Lombardi 7.1 Fundamentals
Blog: [url]http://www.leozin.com.br/blog[/url]
|
 |
Leonardo Rafaeli
Ranch Hand
Joined: Dec 12, 2005
Posts: 58
|
|
or try to move rendered="#{CriteriaBean.displayStatus=='false'}" in your dataTable
|
 |
 |
|
|
subject: Rendering a4j:outputPanel with bean property
|
|
|