[richfaces-issues] [JBoss JIRA] Commented: (RF-3237) When using SuggestionBoxes into a DataTable it only works in the first row

Lord Dark Warrior (JIRA) jira-events at lists.jboss.org
Thu Apr 16 10:48:22 EDT 2009


    [ https://jira.jboss.org/jira/browse/RF-3237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12462597#action_12462597 ] 

Lord Dark Warrior commented on RF-3237:
---------------------------------------

This is my first post. Apologies if this does not belong here.

I'm using RichFaces 3.1.6 , JSF 1.1 on Weblogic 9.2 and Tomcat 5.5. 
Facing these two problem :
1. For all rows of rich:dataTable except the first row - suggestion box appears without a problem

2. Fir the first row : suggestion box does not appear the first time. After entering a key again, it appears.

3. Occasionally, the suggestion appears on the top left corner of the browser. 
     This typically happens in the following sequence :
      a) Key in the textbox --> suggestion appears
      b) Don't select suggested value or don't wait for suggestion to appear and just hit enter
      c) Next time, I invoke suggestion from a same/different row, the suggestion appears in the top left corner.

4. Sometimes, the suggestion box appears with the previous suggestion values.

I've tried various changes to my code to fix these problems. Nothing has worked.

Have these problems been reported ?      


> When using SuggestionBoxes into a DataTable it only works in the first row
> --------------------------------------------------------------------------
>
>                 Key: RF-3237
>                 URL: https://jira.jboss.org/jira/browse/RF-3237
>             Project: RichFaces
>          Issue Type: Bug
>          Components: planning_all
>    Affects Versions: 3.2.0.SR1
>         Environment: Operative System: Windows Vista SP1
> Java Version: 1.6.0
>            Reporter: Oscar De Moya
>            Assignee: Tsikhon Kuprevich
>             Fix For: 3.3.0
>
>   Original Estimate: 4 hours
>  Remaining Estimate: 4 hours
>
> I'm doing a table with a column of InputTexts and SuggestionBoxes, but the suggestion only appears for the first input and for the others it gives me an "Unspected Error" in IE7 (it doesn't works on firefox neither). There's a portion of the code:
> <rich:tab label="Replies">
>     <rich:dataTable id="replyList" value="#{mbUser.userReplyList}" var="userReply" rowClasses="cursor_hand"
>             rowKeyVar="rowIndex"
>             onRowMouseOver="this.style.backgroundColor='#F1F1F1'"
>             onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'">
>         <h:column>
>             <h:panelGroup>
>                 <h:inputText id="attribute" value="#{userReply.attribute}" />
>                 <rich:suggestionbox id="replySuggestions" for="attribute" width="100" height="100"
>                         suggestionAction="#{mbUser.autocompleteUsers}" var="user" selfRendered="true">
>                     <h:column>
>                         <h:outputText id="out" value="#{user.userName}" />
>                     </h:column>
>                 </rich:suggestionbox>
>             </h:panelGroup>
>         </h:column>
>         <h:column>
>             <rich:inplaceSelect defaultLabel="#{userReply.operator}"
>                     viewClass="inplace" changedClass="inplace" layout="block"
>                     changedHoverClass="inplace_hover" viewHoverClass="inplace_hover">
>                 <f:selectItem itemValue="0" itemLabel="==" />
>                 <f:selectItem itemValue="1" itemLabel="!=" />
>                 <f:selectItem itemValue="2" itemLabel="&gt;" />
>                 <f:selectItem itemValue="3" itemLabel="&lt;" />
>             </rich:inplaceSelect>
>             <f:facet name="footer">
>                 <h:panelGroup>
>                 <rich:inplaceSelect
>                         viewClass="inplace" changedClass="inplace" layout="block"
>                         changedHoverClass="inplace_hover" viewHoverClass="inplace_hover">
>                     <f:selectItem itemValue="0" itemLabel="==" />
>                     <f:selectItem itemValue="1" itemLabel="!=" />
>                     <f:selectItem itemValue="2" itemLabel="&gt;" />
>                     <f:selectItem itemValue="3" itemLabel="&lt;" />
>                 </rich:inplaceSelect>
>                 </h:panelGroup>
>             </f:facet>
>         </h:column>
>         <h:column>
>             <rich:inplaceInput value="#{userReply.value}" layout="block"
>                     viewClass="inplace" changedClass="inplace"
>                     changedHoverClass="inplace_hover" viewHoverClass="inplace_hover" />
>             <f:facet name="footer">
>                 <rich:inplaceInput layout="block"
>                         viewClass="inplace" changedClass="inplace"
>                         changedHoverClass="inplace_hover" viewHoverClass="inplace_hover" />
>             </f:facet>
>         </h:column>
> 		
>         <rich:componentControl event="onRowClick">
>             <f:param value="#{userReply.id}" name="userReplyId" />
>         </rich:componentControl>
>     </rich:dataTable>
> </rich:tab>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list