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



 






Reply via email to