5 Replies Latest reply on Oct 12, 2009 2:29 PM by zjda

    A couple of issues

    zjda

      Hi, I am reporting a couple of issues:

      1. Row height of rich:extendedDataTable is not fixed. For example, if I navigate to the last page which has only 2 rows, these 2 rows will occupy the whole area. I started seeing this behavior after moving to richfaces-ui-3.3.2.GA. Is it a bug or by design?

      2. Cannot use arrow keys to move cursor inside rich:inplaceInput in edit mode. This is NOT a richfaces-ui-3.3.2.GA specific issue.

      Thanks,
      -ZJ

        • 1. Re: A couple of issues
          ilya_shaikovsky

          1) already fixed and targeted to 3.3.2 SP which should be released soon.
          2) which broweser?

          • 2. Re: A couple of issues
            zjda

            Thanks, Ilya.

            The problem 2 can be produced on IE, FF and Safari. The cause of the problem is that I put the rich:inplaceInput inside rich:treeNode:

            <rich:treeNode type="Text">
             <h:panelGrid columns="3" >
             <h:outputLabel value="#{propItem.name}:" for="text_property" />
             <rich:inplaceInput id="text_property" defaultLabel="Click to edit"
             value="#{propItem.stringValue}">
             </rich:inplaceInput>
             <h:message for="text_property" errorClass="ValidateError" />
             </h:panelGrid>
            </rich:treeNode>
            


            I think that the parent component of rich:inplaceInput handles the key events and don't pass them to its children. Also, when the editor is activated for rich:inplaceInput with no value, the editor initially displays the defaultLabel "Click to edit", which should be empty. Therefore, if it exits edit state, the value in the back bean will be set to "Click to edit".

            There is another issue related to rich:extendedDataTable:

            <rich:extendedDataTable value="#{childrenTable}" var="row" rows="6" id="childrenTable"
             width="100%" height="175px" selection="#{childrenTable.selection}"
             enableContextMenu="false" tableState="#{childrenTable.tableState}"
             binding="#{uiTable}" style="position:relative;" sortMode="multi">
            
             <rich:column sortable="false" width="25px">
             <h:graphicImage value="#{row.icon}" />
             </rich:column>
            
             <rich:columns value="#{childrenTable.propertyNames}" sortable="true"
             sortBy="#{propName}" var="propName" index="index" id="column#{index}"
             sortOrder="#{childrenTable.sortOrders[propName]}">
             <f:facet name="header">
             <h:outputText value="#{propName}" />
             </f:facet>
             <h:outputText value="#{row.map[propName]}" />
             </rich:columns>
            </rich:extendedDataTable>
            


            Initially it dispalys correctly with the icon column first. After I left the page then came back, however, the icon column would be the last column. This problem has been seen for long time.

            Again, your helps are appreciated.
            -ZJ



            • 3. Re: A couple of issues
              ilya_shaikovsky

              I will investigate problem with inplace now and just want to add quick quiestion to the next extendeDataTable case. I think there is something about tableState and binding. 1) check that bindign request scoped. And 2) check if the table state object is unique for that table.

              • 4. Re: A couple of issues
                ilya_shaikovsky

                thanks for the report on inplaces!
                https://jira.jboss.org/jira/browse/RF-7974

                • 5. Re: A couple of issues
                  zjda

                  Hi Ilya,

                  You are right that I have 2 tables bind to one HtmlExtendedDataTable instance. After separating them, it works fine.

                  Thank you very much,
                  -ZJ