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