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

Oscar De Moya (JIRA) jira-events at lists.jboss.org
Thu Apr 24 10:52:19 EDT 2008


When using SuggestionBoxes into a DataTable it only works in the first row
--------------------------------------------------------------------------

                 Key: RF-3237
                 URL: http://jira.jboss.com/jira/browse/RF-3237
             Project: RichFaces
          Issue Type: Bug
    Affects Versions: 3.2.0.SR1
         Environment: Operative System: Windows Vista SP1
Java Version: 1.6.0
            Reporter: Oscar De Moya


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="false">
				<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;" />
	        </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;"  />
		        </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: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list