myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marco Vieira" <marcoacvie...@gmail.com>
Subject Re: [Trinidad] Table does not auto-refresh (PPR) when "show details" is clicked
Date Fri, 22 Aug 2008 23:00:04 GMT
I've tried changing the page to *.jspx, hoping it was a JSP problem, but I
continue the have the same problem. I receive a response to the PPR request,
the page just does not reload. Could it be a web.xml misconfiguration?

Has anyone faced this problem before?

On Thu, Aug 21, 2008 at 10:23 PM, Marco Vieira <marcoacvieira@gmail.com>wrote:

> Hello everyone,
>
> After finally getting skinning to work, I face another problem. I have a
> table, that has a select-one column and a show-details column. However, when
> I click on show/hide or show all or hide all nothing happens. Only after I
> manually reload the page, or after a few clicks and a manual reload do I see
> the requested changes in the table. With firebug, upon clicking the links, a
> request is sent, I'm assuming this is the table's built-in PPR working, but
> the table isn't refreshed automatically.
>
> I'm using Tomcat 6.0.16, Trinidad 1.2.8 and testing with Firefox 3.0.1,
> although I see the same behavior in IE 7.
>
> This is my page:
>
> <%@page contentType="text/html" pageEncoding="UTF-8"%>
> <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
> <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
> <%@taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%>
> <%@taglib prefix="trh" uri="http://myfaces.apache.org/trinidad/html"%>
> <%@taglib prefix="tr" uri="http://myfaces.apache.org/trinidad"%>
>
> <f:view>
> <tr:document title="Pesquisar por Medicamentos">
>         <tr:form>
>             <tr:table id="searchResults" summary="Resultados de Pesquisa"
>                 allDetailsEnabled="true"
>                 binding="#{medSearchUITable.medSearchTable}"
>                 rendered="true"
>                 rowSelection="single"
>                 rowBandingInterval="1"
>                 value="#{medSearchUITable.dbResults}"
>                 var="row"
>                 rows="20">
>                 <f:facet name="actions">
>                     <tr:outputText value="Resultados"/>
>                 </f:facet>
>                 <f:facet name="footer">
>                     <tr:commandButton text="Seleccionar"
> actionListener="#{medSearchUITable.selectMedication}"/>
>                 </f:facet>
>                 <tr:column>
>                     <f:facet name="header">
>                         <tr:outputText value="Nome"/>
>                     </f:facet>
>                     <tr:outputText value="#{row.medName}"/>
>                 </tr:column>
>                 <tr:column>
>                     <f:facet name="header">
>                         <tr:outputText value="DCI"/>
>                     </f:facet>
>                     <tr:outputText value="#{row.medDCIPT}"/>
>                 </tr:column>
>                 <tr:column>
>                     <f:facet name="header">
>                         <tr:outputText value="Forma"/>
>                     </f:facet>
>                     <tr:outputText value="#{row.medPharmForm}"/>
>                 </tr:column>
>                 <f:facet name="detailStamp">
>               <tr:panelGroupLayout layout="vertical">
>                 <tr:outputText value="Pre├žo: #{row.medPrice}"/>
>                 <tr:outputText value="Tratamento: #{row.medTreatment}"/>
>                 <tr:outputText value="Via Admin.: #{row.medAdminis}"/>
>                 <tr:outputText value="Tipo Emb.: #{row.medPackType}"/>
>               </tr:panelGroupLayout>
>             </f:facet>
>             </tr:table>
>         </tr:form>
>
> </tr:document>
>      </f:view>
>
>
> Any ideas? Thanks in advance,
>
> Marco
>

Mime
View raw message