4 Replies Latest reply on Mar 11, 2011 5:49 PM by nbelaevski

    Hiding/Showing Panel

    basharf

      Hello All,,

       

      I am trying to show a panel but not working .. here is the code..

       

      It is by default not rendered ... in the bean I want to make it rendered..

       

      I have this Panel...

       

      <rich:panel binding="#{tabTest.tablePanel}" id="myPanel" rendered="false">

       

       

      and I have this link field

       

       

       

      <a4:commandLink actionListener="#{tabTest.getValues}" reRender="myPanel"  value="get results"/>

       

      It does not show th panel when i click on it ...

       

      but when I use a normal

       

      <h:commandLink actionListener="#{tabTest.getValues}" reRender="myPanel"  value="get results"/>

       

      it works

      ...

       

       

      now in the bean ..

       

       

      @ManagedBean(name = "tabTest")

      @ViewScoped

      public class TabTest{

       

          private UIPanel tablePanel;

       

       

       

          public void openDataTable() {

       

              getTablePanel().setRendered(true);

          }

       

       

       

      Any help Please ??