4 Replies Latest reply on Jun 3, 2009 3:44 PM by itays100

    panelGrid with richfaces failed on update

    itays100

      Hi,

      <h:panelGrid columns="2" columnClasses="fieldName," rowClasses="highRow">

      ...
      ...
      Two group applied to a panelGrid row: (one of them)
      The row value is rendered through ajux event that works!
      The problem is that while the row disappear the gap still exist.
      <h:panelGroup>
      <a4j:outputPanel id="stateTextId">
      <f:verbatim rendered="#{....}" >
      <h:outputText value="BlaBla" />
      </f:verbatim>
      </a4j:outputPanel>
      </h:panelGroup>
      <h:panelGroup id="myPanelId">
      <a4j:outputPanel id="myAreaId">
      <f:verbatim rendered="#{....}">
      <h:selectOneMenu label="MyValueId" value="#{MyBean.myValue}"
      id="myValueId">
      <f:selectItems id="valListId" value="#{MyBean.values}" />
      </h:selectOneMenu>
      </f:verbatim>
      </a4j:outputPanel>
      </h:panelGroup>

      2. Is there any other way to design a form rather then using panelGrid?

      Thanks

        • 1. Re: panelGrid with richfaces failed on update
          ilya_shaikovsky

          1) could not get the point by this description. could you please share the snippets somewhere and provide the links. Not sure that this is related to RF.. if the problem with some styles - just check the classes applied in fireBug for FireFox.

          2) Panel Grid produces just HTML table with specified count of columns. And "design a form" requirement is too general.. you could use any HTML in order to design the page. Just do not forget that it should be carefully checked to be valid in order not to be broken during ajax updates. About page design - check our layout components.

          • 2. Re: panelGrid with richfaces failed on update
            itays100

            I will try describe it:
            panelGrid with 2 columns. generated HTML table.
            I have a select box... with a4j:support....

            The purpose of the a4j:support is to rerender a row in t he table.
            So we have 2 possible cases:

            1. Table include the row.
            2. The other is table with gap.

            Case 2 is problematic. Not necceary Richfaces problem but related...

            Thanks,

            • 3. Re: panelGrid with richfaces failed on update
              nbelaevski

              Hi,

              Does anything change if you remove "rowClasses" and "columnClasses"?

              • 4. Re: panelGrid with richfaces failed on update
                itays100

                ok, i left the gridPanel for other things.
                Form layout is born to CSS.