[richfaces-issues] [JBoss JIRA] (RF-12825) rich:column does not create unique IDs when included in rich:pickList
Brian Leathem (JIRA)
jira-events at lists.jboss.org
Fri Apr 5 18:04:43 EDT 2013
[ https://issues.jboss.org/browse/RF-12825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Leathem updated RF-12825:
-------------------------------
Component/s: component-selects
> rich:column does not create unique IDs when included in rich:pickList
> ---------------------------------------------------------------------
>
> Key: RF-12825
> URL: https://issues.jboss.org/browse/RF-12825
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-selects, component-tables
> Affects Versions: 4.3.0.Final
> Reporter: Manuel Fehlhammer
> Fix For: 5-Tracking
>
>
> The following artefact, where I use rich:tooltip inside rich:column of a rich:pickList shows the bug.
> Only for the first entry of the source picklist a tooltip is displayed on mouse over.
> Reason (see linked forum thread) is, that the rich:column does not correctly generate the ID of the included h:output when iterating over the select items.
> Since this works ok, when rich:column is inside a rich:table it is obviously a problem, when rich:column is included in rich:pickList.
> {code:xml}
> <h:body>
> <f:view>
> <h:form>
> <rich:pickList value="#{backBean.pickListTargetCol}"
> var="item"
> listsHeight="100"
> listWidth="100"
> sourceCaption="SourceItems"
> targetCaption="PickedItems">
> <f:selectItems value="#{backBean.pickListSourceCol}"/>
> <rich:column id="myCol">
> <h:outputText id="item" value="Item_#{item}"/>
> <rich:tooltip target="item" value="Tooltip_#{item}"/>
> </rich:column>
> </rich:pickList>
> </h:form>
> </f:view>
> </h:body>
> {code}
> managed bean for this example:
> {code}
> @ManagedBean(name = "backBean")
> @SessionScoped
> public class TestBean {
> private Collection<Integer> pickListTargetCol;
> private Collection<Integer> pickListSourceCol;
>
> public Collection<Integer> getPickListTargetCol()
> {
> return pickListTargetCol;
> }
> public void setPickListTargetCol(Collection<Integer> pickListTargetCol)
> {
> this.pickListTargetCol = pickListTargetCol;
> }
>
> public Collection<Integer> getPickListSourceCol()
> {
> Collection<Integer> result = new ArrayList();
> for(int i = 1; i<=10; i++)
> {
> result.add(i);
> }
> return result;
> }
>
> public void setPickListSourceCol(Collection<Integer> pickListSourceCol)
> {
> this.pickListSourceCol = pickListSourceCol;
> }
> }
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list