[richfaces-issues] [JBoss JIRA] Work stopped: (RF-1499) SuggestionBox - for attribute doesn't work correctly within jstl:foreach

Anton Belevich (JIRA) jira-events at lists.jboss.org
Thu Dec 6 08:33:52 EST 2007


     [ http://jira.jboss.com/jira/browse/RF-1499?page=all ]

Work on RF-1499 stopped by Anton Belevich.

> SuggestionBox - for attribute doesn't work correctly within jstl:foreach
> ------------------------------------------------------------------------
>
>                 Key: RF-1499
>                 URL: http://jira.jboss.com/jira/browse/RF-1499
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.1.2
>         Environment: Richfaces 3.1.2GA, Glassfish v2, JSF 1.2_06
>            Reporter: Hannes Bauer
>         Assigned To: Anton Belevich
>             Fix For: 3.2.0
>
>
> The following code doesn't work correctly:
> <c:forEach var="it" items="#{myHandler.iterationList}" >
> 	<p>
> 		<h:outputLabel for="test" value="#{msg.person}"
> 			styleClass="label longLabel" /> 
> 		<h:inputText id="test"
> 			value="#{myHandler.persons[it].person}"
> 			converter="#{myConverter}"
> 			styleClass="longField">
> 		</h:inputText>
> 	</p>
> 	<rich:suggestionbox id="personSuggestion" for="test" 
> 		suggestionAction="#{myHandler.personAutocomplete}" var="result"
> 		fetchValue="#{result.myValue}"
> 		nothingLabel="-----"
> 		first="0" minChars="1"
> 		width="300" height="100">
> 		<h:column>
> 			<h:outputText value="#{result.lastName}" />
> 		</h:column>
> 	</rich:suggestionbox>
> </c:forEach>
> The suggestionBox works only for the first occurence of <h:inputText id="test"> in the loop.
> Presumably, the target value 'test' isn't postfixed as the id of h:inputText (j_id_1, j_id_2, ...)??
> Whereas the attribute 'for' in h:outputLabel works in a loop, 'for' doesn't in rich:suggestionBox.

-- 
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