[JBoss JIRA] Created: (RF-1499) SuggestionBox - for attribute doesn't work correctly within jstl:foreach
by Hannes Bauer (JIRA)
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
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
16 years, 8 months
[JBoss JIRA] Created: (RF-3353) Rows in s
by patrick schwarz (JIRA)
Rows in s
---------
Key: RF-3353
URL: http://jira.jboss.com/jira/browse/RF-3353
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0
Environment: myfaces 1.2.2 - richfaces 3.2.0
Reporter: patrick schwarz
Attachments: sample.png
The rows are not aligned if using a frozen column count. The rows do become aligned after the data is sorted.
Here is the code:
<rich:scrollableDataTable id="listData"
value="#{grantSearch.searchResults}" var="grant"
headerClass="searchTable_SortHeader"
rowClasses="searchTable_Row1,searchTable_Row2"
columnClasses="textCenter,textLeft,textLeft,textCenter,textCenter,textRight,textCenter,textRight"
width="775px" height="300px" sortMode="single" first="0" rows="#{grantSearch.records}"
frozenColCount="1" >
<rich:column sortExpression="#{grant.idno}" >
<f:facet name="header">
<t:outputText styleClass="required" escape="false" value=" Number" />
</f:facet>
<a4j:htmlCommandLink action="editGrant" tabindex="150" onmouseover="Tip('#{msg_bundle.grant_link_search_help}')">
<h:outputText value="#{grant.idno}" />
<f:param name="grantId" value="#{grant.grantId}"/>
</a4j:htmlCommandLink>
</rich:column>
<rich:column width="200" sortExpression="#{grant.cgName}">
<f:facet name="header">
<t:outputText styleClass="required" escape="false" value=" Grant Title" />
</f:facet>
<t:outputText escape="false" value=" #{grant.cgName}" />
</rich:column>
<rich:column width="200" sortExpression="#{grant.vendorName}">
<f:facet name="header">
<t:outputText styleClass="required" escape="false" value=" Recipient" />
</f:facet>
<h:outputText escape="false" value=" #{grant.vendorName}" />
</rich:column>
<rich:column sortExpression="#{grant.grantContractTypeName}">
<f:facet name="header">
<h:outputText styleClass="required" escape="false" value="Grant/ <br/> Contract" />
</f:facet>
<h:outputText value="#{grant.grantContractTypeName}" />
</rich:column>
<rich:column width="50px" sortExpression="#{grant.grantType}">
<f:facet name="header">
<h:outputText styleClass="required" value="Type" />
</f:facet>
<h:outputText value="#{grant.grantType}" />
</rich:column>
<rich:column width="125px" sortExpression="#{grant.authAmt}">
<f:facet name="header">
<h:outputText styleClass="required" escape="false" value="Authorized <br/> Amount" />
</f:facet>
<h:outputText value="#{grant.authAmt}" >
<f:convertNumber pattern="$###,###,###,###,##0.00" />
</h:outputText>
</rich:column>
<rich:column sortExpression="#{grant.authDate}">
<f:facet name="header">
<h:outputText styleClass="required" escape="false" value="Authorized <br/> Date" />
</f:facet>
<h:outputText value="#{grant.authDate}" >
<f:convertDateTime type="date" pattern="MM/dd/yyyy" />
</h:outputText>
</rich:column>
<rich:column width="125px" sortExpression="#{grant.disbTotal}">
<f:facet name="header">
<h:outputText styleClass="required" escape="false" value="Disbursed <br/> Amount" />
</f:facet>
<h:outputText value="#{grant.disbTotal}" >
<f:convertNumber pattern="$###,###,###,###,##0.00" />
</h:outputText>
</rich:column>
</rich:scrollableDataTable>
--
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
16 years, 8 months