[
https://issues.jboss.org/browse/RF-12304?page=com.atlassian.jira.plugin.s...
]
Brian Leathem updated RF-12304:
-------------------------------
Steps to Reproduce:
{code}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<h:head>
<meta
http-equiv="Content-Type"
content="text/html; charset=UTF-8" />
<link
href="../css/common.css"
rel="stylesheet"
type="text/css" />
<link
href="../css/datatable.css"
rel="stylesheet"
type="text/css" />
<link
href="../css/header.css"
rel="stylesheet"
type="text/css" />
<link
href="../css/serviceMenu.css"
rel="stylesheet"
type="text/css" />
</h:head>
<h:body>
<h:form id="tabPanelForm">
<rich:panel header="#{msg.auftragDetails_title_adressensuche}"
headerClass="wtlTitle defaultBorde"
style="width: 100%; border: 0px solid; margin-top: 0px; vertical-align: top;
height: 60em;">
<rich:tabPanel id="tabPanelSuchFavoriten" switchType="client"
style="height:30em;width:100%">
<rich:tab name="#{msg.wtl_address_label_favoriten}"
id="favoritenAnzeige">
<h:panelGrid width="20em" style="height:15em">
<rich:extendedDataTable
value="#{myModel.favoriteSenderList}" var="favSender"
selection="#{myModel.favoriteSenderSelection}"
frozenColumns="3" style="height:200px; width:400px;"
headerClass="wtlTitle defaultBorder"
selectionMode="single">
<f:facet name="header">
<h:panelGrid columns="2">
<h:outputText value="#{msg.wtl_address_label_abholadressen}" />
<h:commandLink
id="sel_fav_del_ab_onDeleteSelectedFavoritAbsender"
action="onDeleteSelectedFavoritAbsender">
<h:graphicImage style="cursor: pointer;"
value="/images/edit-delete.png" />
</h:commandLink>
</h:panelGrid>
</f:facet>
<rich:column>
<h:outputText value="#{favSender.name1}" />
</rich:column>
<rich:column>
<h:outputText value="#{favSender.strasse} #{favSender.hausnummer}"
/>
</rich:column>
<rich:column>
<h:outputText value="#{favSender.plz} #{favSender.ort}" />
</rich:column>
</rich:extendedDataTable>
<rich:extendedDataTable
value="#{myModel.favoriteReceiverList}" var="favReceiver"
selection="#{myModel.favoriteReceiverSelection}"
frozenColumns="3" style="height:200px; width:400px;"
headerClass="wtlTitle defaultBorder"
selectionMode="single">
<f:facet name="header">
<h:panelGrid columns="2">
<h:outputText value="#{msg.wtl_address_label_zustelladressen}"
/>
<h:commandLink
id="sel_fav_del_ab_onDeleteSelectedFavoritEmpfaenger"
action="onDeleteSelectedFavoritEmpfaenger">
<h:graphicImage style="cursor: pointer;"
value="/images/edit-delete.png" />
</h:commandLink>
</h:panelGrid>
</f:facet>
<rich:column>
<h:outputText value="#{favReceiver.name1}" />
</rich:column>
<rich:column>
<h:outputText value="#{favReceiver.strasse}
#{favReceiver.hausnummer}" />
</rich:column>
<rich:column>
<h:outputText value="#{favReceiver.plz} #{favReceiver.ort}" />
</rich:column>
</rich:extendedDataTable>
</h:panelGrid>
</rich:tab>
</rich:tabPanel>
</rich:panel>
</h:form>
</h:body>
</html>
{code}
was:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<h:head>
<meta
http-equiv="Content-Type"
content="text/html; charset=UTF-8" />
<link
href="../css/common.css"
rel="stylesheet"
type="text/css" />
<link
href="../css/datatable.css"
rel="stylesheet"
type="text/css" />
<link
href="../css/header.css"
rel="stylesheet"
type="text/css" />
<link
href="../css/serviceMenu.css"
rel="stylesheet"
type="text/css" />
</h:head>
<h:body>
<h:form id="tabPanelForm">
<rich:panel header="#{msg.auftragDetails_title_adressensuche}"
headerClass="wtlTitle defaultBorde"
style="width: 100%; border: 0px solid; margin-top: 0px; vertical-align: top;
height: 60em;">
<rich:tabPanel id="tabPanelSuchFavoriten" switchType="client"
style="height:30em;width:100%">
<rich:tab name="#{msg.wtl_address_label_favoriten}"
id="favoritenAnzeige">
<h:panelGrid width="20em" style="height:15em">
<rich:extendedDataTable
value="#{myModel.favoriteSenderList}" var="favSender"
selection="#{myModel.favoriteSenderSelection}"
frozenColumns="3" style="height:200px; width:400px;"
headerClass="wtlTitle defaultBorder"
selectionMode="single">
<f:facet name="header">
<h:panelGrid columns="2">
<h:outputText value="#{msg.wtl_address_label_abholadressen}" />
<h:commandLink
id="sel_fav_del_ab_onDeleteSelectedFavoritAbsender"
action="onDeleteSelectedFavoritAbsender">
<h:graphicImage style="cursor: pointer;"
value="/images/edit-delete.png" />
</h:commandLink>
</h:panelGrid>
</f:facet>
<rich:column>
<h:outputText value="#{favSender.name1}" />
</rich:column>
<rich:column>
<h:outputText value="#{favSender.strasse} #{favSender.hausnummer}"
/>
</rich:column>
<rich:column>
<h:outputText value="#{favSender.plz} #{favSender.ort}" />
</rich:column>
</rich:extendedDataTable>
<rich:extendedDataTable
value="#{myModel.favoriteReceiverList}" var="favReceiver"
selection="#{myModel.favoriteReceiverSelection}"
frozenColumns="3" style="height:200px; width:400px;"
headerClass="wtlTitle defaultBorder"
selectionMode="single">
<f:facet name="header">
<h:panelGrid columns="2">
<h:outputText value="#{msg.wtl_address_label_zustelladressen}"
/>
<h:commandLink
id="sel_fav_del_ab_onDeleteSelectedFavoritEmpfaenger"
action="onDeleteSelectedFavoritEmpfaenger">
<h:graphicImage style="cursor: pointer;"
value="/images/edit-delete.png" />
</h:commandLink>
</h:panelGrid>
</f:facet>
<rich:column>
<h:outputText value="#{favReceiver.name1}" />
</rich:column>
<rich:column>
<h:outputText value="#{favReceiver.strasse}
#{favReceiver.hausnummer}" />
</rich:column>
<rich:column>
<h:outputText value="#{favReceiver.plz} #{favReceiver.ort}" />
</rich:column>
</rich:extendedDataTable>
</h:panelGrid>
</rich:tab>
</rich:tabPanel>
</rich:panel>
</h:form>
</h:body>
</html>
Two or more rich:extendedDataTable on page prevent selection on
second extendedDataTable
----------------------------------------------------------------------------------------
Key: RF-12304
URL:
https://issues.jboss.org/browse/RF-12304
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: component-tables
Affects Versions: 4.2.2.Final
Environment: jetty + tomcat 6 on win 7
Reporter: Britt Abel
Labels: richfaces
If I place two or more extendedDataTables with selectionType="single" on one a
page, it is only possible to make a selection on the first extendedDataTable. It is
imposible to select a row on the second table. If I turn around the order of tables or
delete the first one, it works fine for the other one. This means, the implementation
itself shoul be correct,
Do you have any ideas? Thanks for your help!!!
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira