Dear René, thanks for your quick response. Unfortunally I can't get a refresh trying your advise. Maybe I made some mistake.
My complete page is: <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%> <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%> <%@ taglib uri="http://myfaces.apache.org/trinidad" prefix="tr"%> <%@ taglib uri="http://myfaces.apache.org/trinidad/html" prefix="trh"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> </head> <f:view> <body> <tr:document> <h:form> <tr:table id="custab" value="#{customerBean.all}" var="currentCustomer" rowBandingInterval="1" rowSelection="single" autoSubmit="true" selectionListener="#{customerBean.selectEvent}"> <tr:column sortProperty="userid" sortable="true" headerText="Id"> <h:outputText value="#{currentCustomer.userid}"></h:outputText> </tr:column> <tr:column sortProperty="username" sortable="true" headerText="Username"> <h:outputText value="#{currentCustomer.username}"></h:outputText> </tr:column> </tr:table> <tr:table id="gpstab" partialTriggers="::custab ::b1" value="#{customerBean.allGps}" var="currentGps" rowBandingInterval="1" rowSelection="single" autoSubmit="true" selectionListener="#{customerBean.selectGpsEvent}"> <tr:column sortProperty="gpsid" sortable="true" headerText="GpsId"> <h:outputText value="#{currentGps.gpsid}"></h:outputText> </tr:column> <tr:column sortProperty="userid" sortable="true" headerText="UserId"> <h:outputText value="#{currentGps.userid}"></h:outputText> </tr:column> <tr:column sortProperty="gpsname" sortable="true" headerText="Gpsname"> <h:outputText value="#{currentGps.gpsname}"></h:outputText> </tr:column> <tr:column sortProperty="gpsphone" sortable="true" headerText="GpsPhone"> <h:outputText value="#{currentGps.gpsphone}"></h:outputText> </tr:column> </tr:table> As you can see I have defined 2 Triggers for test-purposes. Button trigger works fine, row selection as trigger doesn't work. Defining the row selection trigger without at least one ":" yields to a runtime error: "use the correct syntax" or so. Do you have any suggestions whats wrong? Thanks in advance Alex Georg ----- Original Message ----- From: "René van Wijk" <rw...@transfer-solutions.com> To: "MyFaces Discussion" <users@myfaces.apache.org> Sent: Monday, December 22, 2008 9:18 AM Subject: RE: Trinidad1.0.10: How to refresh a table after rowSelection > Use an ID on the first and partialTriggers on the second, i.e. > > <tr:table id="first" .... > > <tr:table id="second" partialTriggers="first" .... > > -----Original Message----- > From: alex01130 [mailto:alex01...@hotmail.com] > Sent: Fri 12/19/2008 19:58 PM > To: users@myfaces.apache.org > Cc: > Subject: Trinidad1.0.10: How to refresh a table after rowSelection > > > Hi, I have a rather simple problem, but I don't how to fix it: > > I have 2 tables which are related and I need a refresh of the of the second one, if a user selects a row of the first : > > <tr:table value="#{customerBean.all}" var="currentCustomer" > > rowBandingInterval="1" rowSelection="single" autoSubmit="true" selectionListener="#{customerBean.selectEvent}"> > > <tr:column sortProperty="userid" sortable="true" headerText="Id"> > > <h:outputText value="#{currentCustomer.userid}"></h:outputText> > > </tr:column> > > <tr:column sortProperty="username" sortable="true" headerText="Username"> > > <h:outputText value="#currentCustomer.username}"></h:outputText> > > </tr:column> > > </tr:table> > > > > > > <tr:table id="gpstab" value="#{customerBean.allGps}" var="currentGps" > > rowBandingInterval="1" rowSelection="single" autoSubmit="true" selectionListener="#{customerBean.selectGpsEvent}"> > > <tr:column sortProperty="gpsid" sortable="true" headerText="GpsId"> > > <h:outputText value="#{currentGps.gpsid}"></h:outputText> > > </tr:column> > > <tr:column sortProperty="userid" sortable="true" headerText="UserId"> > > <h:outputText value="#{currentGps.userid}"></h:outputText> > > </tr:column> > > <tr:column sortProperty="gpsname" sortable="true" headerText="Gpsname"> > > <h:outputText value="#{currentGps.gpsname}"></h:outputText> > > </tr:column> > > <tr:column sortProperty="gpsphone" sortable="true" headerText="GpsPhone"> > > <h:outputText value="# {currentGps.gpsphone}"></h:outputText> > > </tr:column> > > </tr:table> > > > If a row in the first table is selected, the event procedure is called, customerBean.all and customerBean.allGps are preformed by autosubmit, but the tables are not refreshed. > > Any ideas, how I can get a table refresh without using an unnecessary submit-button on the page. > > Thanks in advance, > > Alex Georg > > >