Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 82942 invoked from network); 25 Aug 2008 23:59:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Aug 2008 23:59:11 -0000 Received: (qmail 22375 invoked by uid 500); 25 Aug 2008 23:59:04 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 22322 invoked by uid 500); 25 Aug 2008 23:59:04 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 22311 invoked by uid 99); 25 Aug 2008 23:59:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Aug 2008 16:59:04 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of marcoacvieira@gmail.com designates 74.125.44.153 as permitted sender) Received: from [74.125.44.153] (HELO yx-out-1718.google.com) (74.125.44.153) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Aug 2008 23:58:05 +0000 Received: by yx-out-1718.google.com with SMTP id 4so1305911yxp.36 for ; Mon, 25 Aug 2008 16:58:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=qgCTnKgC/jIIBJlvTPdNIuGMVcFWD3blKJKiY9X6W7g=; b=pqjgUzJbKY5SqxB0RM1ICd733swCuPWUS6COAkdRrHyn8uNO6MnK7WEhuiO6gKaCt+ bCBYQpjUyhMunr5Pmh488KETINIZJlsjaZ/FZC1IOHnLfgk9BrjC2ANn41ywoGNadTYk 29hi9QL8aINUycKN69D3xkIr2MKuGafxJ7A5g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=o6Nk3OyOW8fBtyIlCl5XI+qJNr9Flx2+9gqFTBo66TJBCkF6+qvF4prrk2wld+hWMu bJtModIUqkPD42h2TuI50qwd0j/R7patIpfsb/5ptLNtXWLZ2Ci29d0xK6CtIfieIYI8 y+guRvfKx+35ZQmFj49pIocqJMxs3gpwVYPyY= Received: by 10.142.222.4 with SMTP id u4mr1749279wfg.250.1219708696491; Mon, 25 Aug 2008 16:58:16 -0700 (PDT) Received: by 10.142.211.10 with HTTP; Mon, 25 Aug 2008 16:58:16 -0700 (PDT) Message-ID: Date: Tue, 26 Aug 2008 00:58:16 +0100 From: "Marco Vieira" To: "MyFaces Discussion" Subject: Re: [Trinidad] Table does not auto-refresh (PPR) when "show details" is clicked In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_33850_11204093.1219708696475" References: X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_33850_11204093.1219708696475 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Just a quick correction, the page source is actually the following: problem persists...any ideas? On Mon, Aug 25, 2008 at 11:47 PM, Marco Vieira wro= te: > Just to add, my logs do not show any warnings or errors. From my knowledg= e, > the only information registered when the show link is clicked is the > following: > > DEBUG http-8085-2 org.apache.myfaces.renderkit.html.util.ReducedHTMLPars= er > - PI found at line 1 > DEBUG http-8085-2 org.apache.myfaces.renderkit.html.util.ReducedHTMLPars= er > - PI found at line 2 > DEBUG http-8085-2 org.apache.myfaces.renderkit.html.util.ReducedHTMLPars= er > - Marked section found at line 3. Surroundings: 'CDATA[
id=3D"searchResults">'. > DEBUG http-8085-2 org.apache.myfaces.renderkit.html.util.ReducedHTMLPars= er > - Marked section found at line 210. Surroundings: 'CDATA[ id=3D"tr_j_id_jsp_21'. > > Again, this is my page: > > > > xmlns:f=3D"http://java.sun.com/jsf/core" xmlns:h=3D" > http://java.sun.com/jsf/html" > xmlns:t=3D"http://myfaces.apache.org/tomahawk" > xmlns:trh=3D"http://myfaces.apache.org/trinidad/html" > xmlns:tr=3D"http://myfaces.apache.org/trinidad"> > > > > > > > > > > > emptyText=3D"N=E3o existem resultados" > allDetailsEnabled=3D"true" > rendered=3D"true" > > rowBandingInterval=3D"1" > value=3D"#{medSearchUITable.dbResults}" > var=3D"row" > rows=3D"20"> > > > > > actionListener=3D"#{medSearchUITable.selectMedication}"/> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > previousAction=3D"#" > nextAction=3D"settime"/> > > > > > > > > > ...and my web.xml: > > > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocatio= n=3D" > http://java.sun.com/xml/ns/javaee > http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> > > > javax.faces.STATE_SAVING_METHOD > client > > > > > javax.faces.DEFAULT_SUFFIX > .jspx > > > > > org.apache.myfaces.trinidad.USE_APPLICATION_VIEW_CACHE > false > > > > > org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION > false > > > > > > org.apache.myfaces.trinidad.CHANGE_PERSISTENCE > session > > > > org.apache.myfaces.trinidad.resource.DEBUG > false > > > > org.apache.myfaces.trinidad.DEBUG_JAVASCRIPT > true > > > > Faces Servlet > > org.apache.myfaces.webapp.MyFacesServlet > 1 > > > resources > > org.apache.myfaces.trinidad.webapp.ResourceServlet > > > > trinidad > > org.apache.myfaces.trinidad.webapp.TrinidadFilter > > > > trinidad > Faces Servlet > > > > > > > > MyFacesExtensionsFilter > > org.apache.myfaces.webapp.filter.ExtensionsFilter > > maxFileSize > 20m > > > > > > MyFacesExtensionsFilter > Faces Servlet > > > MyFacesExtensionsFilter > /faces/myFacesExtensionResource/* > > > MyFacesExtensionsFilter > *.jsf > > > > > > org.apache.myfaces.webapp.StartupServletContextListener > > > > Faces Servlet > /faces/* > > > resources > /adf/* > > > > faces/welcomeJSF.jsp > > > > Thanks in advance, > > Marco > > > On Mon, Aug 25, 2008 at 5:03 PM, Marco Vieira wr= ote: > >> Well, I redid and double checked my web.xml file with the one provided b= y >> the trinidad demo and they are pretty much the same. I also updated my >> project to use Trinidad 1.2.9. Yet the problem remains...the table does >> not auto-reload when I click on the "show details" link. I have to wait = a >> bit then manually reload the page to see the "details". >> >> I even implemented the first table on the Trinidad demo ( >> http://www.irian.at/trinidad-demo/faces/components/table.jspx), that is = I >> copied the webpage and necessary source files and the table from the dem= o >> stops working. >> >> This is becoming quite frustrating...does anyone have an ideia as to why >> the table does not reload. >> >> Thanks, >> >> Marco >> >> >> On Sun, Aug 24, 2008 at 12:12 AM, Marco Vieira = wrote: >> >>> No ideas? Please, I don't want to come off as being obnoxious but if >>> anyone one could help I would really appreciate it, any hint or tip. >>> >>> Some extra information: >>> >>> "medSearchUITable.dbResults" is an ArrayList that, according to the tag >>> documentation is converted to a collection model. >>> >>> This is my web.xml: >>> >>> >>> >> xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" >>> xsi:schemaLocation=3D"http://java.sun.com/xml/ns/javaee >>> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> >>> >>> com.sun.faces.verifyObjects >>> false >>> >>> >>> com.sun.faces.validateXml >>> true >>> >>> >>> javax.faces.STATE_SAVING_METHOD >>> client >>> >>> >>> >>> org.apache.myfaces.trinidad.CACHE_VIEW_ROOT >>> false >>> >>> >>> >>> org.apache.myfaces.trinidad.CLIENT_STATE_METHOD >>> token >>> >>> >>> >>> org.apache.myfaces.trinidad.CLIENT_STATE_MAX_TOKENS >>> 15 >>> >>> >>> >>> org.apache.myfaces.trinidad.ENABLE_LIGHTWEIGHT_DIALOGS >>> true >>> >>> >>> >>> org.apache.myfaces.trinidad.USE_APPLICATION_VIEW_CACHE >>> false >>> >>> >>> org.apache.myfaces.trinidad.DISABLE_CONTENT_= COMPRESSIONtrue >>> >>> >>> org.apache.myfaces.trinidad.DEBUG_JAVASCRIPT >>> true >>> >>> >>> MyFacesExtensionsFilter >>> >>> org.apache.myfaces.webapp.filter.ExtensionsFilter >>> >>> maxFileSize >>> 20m >>> >>> >>> >>> trinidad >>> >>> org.apache.myfaces.trinidad.webapp.TrinidadFilter >>> >>> >>> UploadFilter >>> com.sun.webui.jsf.util.UploadFilter >>> >>> maxSize >>> 1000000 >>> >>> >>> sizeThreshold >>> 4096 >>> >>> >>> >>> MyFacesExtensionsFilter >>> Faces Servlet >>> >>> >>> MyFacesExtensionsFilter >>> /faces/myFacesExtensionResource/* >>> >>> >>> MyFacesExtensionsFilter >>> *.jsf >>> >>> >>> trinidad >>> Faces Servlet >>> >>> >>> UploadFilter >>> Faces Servlet >>> >>> >>> >>> org.apache.myfaces.webapp.StartupServletContextListener= >>> >>> >>> >>> org.apache.myfaces.webapp.StartupServletContextListener= >>> >>> >>> Faces Servlet >>> >>> org.apache.myfaces.webapp.MyFacesServlet >>> 1 >>> >>> >>> ExceptionHandlerServlet >>> >>> com.sun.errorhandler.ExceptionHandler >>> >>> errorHost >>> localhost >>> >>> >>> errorPort >>> 24444 >>> >>> >>> >>> ThemeServlet >>> com.sun.webui.theme.ThemeServlet >>> >>> >>> resources >>> >>> org.apache.myfaces.trinidad.webapp.ResourceServlet >>> >>> >>> Faces Servlet >>> /faces/* >>> >>> >>> ExceptionHandlerServlet >>> /error/ExceptionHandler >>> >>> >>> ThemeServlet >>> /theme/* >>> >>> >>> resources >>> /adf/* >>> >>> >>> >>> 30 >>> >>> >>> >>> faces/Page1.jsp >>> faces/welcomeJSF.jsp >>> >>> >>> javax.servlet.ServletException >>> /error/ExceptionHandler >>> >>> >>> java.io.IOException >>> /error/ExceptionHandler >>> >>> >>> javax.faces.FacesException >>> /error/ExceptionHandler >>> >>> >>> >>> com.sun.rave.web.ui.appbase.ApplicationException >>> /error/ExceptionHandler >>> >>> >>> >>> *.jspf >>> true >>> >>> >>> >>> >>> Why isn't the page reloading itself? The PPR POST is sent and a respons= e >>> is received, and ONLY when I manually reload the page do I see the chan= ges. >>> The online Trinidad demo at Irian works and I downloaded this demo and >>> deployed it to my Tomcat and it works. I fear I'm missing something in = my >>> binding objects. I've compared my web.xml file to that in the demo and = do >>> not notice anything that, in my opinion, could be the source of the pro= blem. >>> >>> Any ideas? >>> >>> Thanks in advance, >>> >>> Marco >>> >>> On Sat, Aug 23, 2008 at 12:00 AM, Marco Vieira wrote: >>> >>>> I've tried changing the page to *.jspx, hoping it was a JSP problem, b= ut >>>> 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 >>> > wrote: >>>> >>>>> Hello everyone, >>>>> >>>>> After finally getting skinning to work, I face another problem. I hav= e >>>>> a table, that has a select-one column and a show-details column. Howe= ver, >>>>> when I click on show/hide or show all or hide all nothing happens. On= ly >>>>> 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 click= ing the >>>>> links, a request is sent, I'm assuming this is the table's built-in P= PR >>>>> 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=3D"text/html" pageEncoding=3D"UTF-8"%> >>>>> <%@taglib prefix=3D"f" uri=3D"http://java.sun.com/jsf/core"%> >>>>> <%@taglib prefix=3D"h" uri=3D"http://java.sun.com/jsf/html"%> >>>>> <%@taglib prefix=3D"t" uri=3D"http://myfaces.apache.org/tomahawk"%> >>>>> <%@taglib prefix=3D"trh" uri=3D"http://myfaces.apache.org/trinidad/ht= ml"%> >>>>> <%@taglib prefix=3D"tr" uri=3D"http://myfaces.apache.org/trinidad"%> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> Pesquisa" >>>>> allDetailsEnabled=3D"true" >>>>> binding=3D"#{medSearchUITable.medSearchTable}" >>>>> rendered=3D"true" >>>>> rowSelection=3D"single" >>>>> rowBandingInterval=3D"1" >>>>> value=3D"#{medSearchUITable.dbResults}" >>>>> var=3D"row" >>>>> rows=3D"20"> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> actionListener=3D"#{medSearchUITable.selectMedication}"/> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> #{row.medTreatment}"/> >>>>> Just a quick correction, the page source is actually the f= ollowing:

<?xml version=3D"1.0" encoding=3D"iso-88= 59-1"?>

<jsp:root xmlns:jsp=3D"http://java.sun.com/JSP/Page" version=3D"= 2.0"
            xmlns:f= =3D"http://java.sun.com/jsf/c= ore" xmlns:h=3D"http= ://java.sun.com/jsf/html"
      &= nbsp;     xmlns:t=3D"http://myfaces.apache.org/tomahawk"  &= nbsp;      
            xmlns:tr= h=3D"http://myface= s.apache.org/trinidad/html"
      = ;      xmlns:tr=3D"http://myfaces.apache.org/trinidad">
<jsp:directive.page contentType=3D"text/html;charset=3Dutf-8"/= >
<f:view>
<tr:document title=3D"Pesquisar por Medic= amentos">
        <tr:form= >
          <tr:panel= GroupLayout layout=3D"vertical">
            &nb= sp; <tr:statusIndicator>
       = ;           <f:facet n= ame=3D"busy">
       &nb= sp;            <t= r:outputText value=3D"Loading, please wait..."/>
 &nbs= p;            &= nbsp;   </f:facet>
            &nb= sp;  </tr:statusIndicator>
     &nbs= p;      <tr:table id=3D"searchResults"= ; summary=3D"Resultados de Pesquisa"
    &= nbsp;           emptyText= =3D"N=E3o existem resultados"
     &n= bsp;          binding=3D"= #{medSearchUITable.medSearchTable}"
            &nb= sp;   allDetailsEnabled=3D"true"
   &= nbsp;            row= BandingInterval=3D"1"
      &nbs= p;         value=3D"#{medSearc= hUITable.dbResults}"
       &nb= sp;        var=3D"row"
&nb= sp;            =    rows=3D"20">
            &nb= sp;   <f:facet name=3D"actions">
  &= nbsp;           &nbs= p;     <tr:outputText value=3D"Resultados"= />
           =      </f:facet>
     =            <f:facet na= me=3D"footer">
            &nb= sp;       <tr:commandButton text=3D"S= eleccionar" actionListener=3D"#{medSearchUITable.selectMedication= }"/>
          = ;      </f:facet>
    = ;            <tr:= column>
          &= nbsp;         <f:facet name=3D&q= uot;header">
            &nb= sp;           <tr:outp= utText value=3D"Nome"/>
      = ;            &n= bsp; </f:facet>
        &n= bsp;           <tr:out= putText value=3D"#{row.medName}"/>
    =             </tr:= column>
            &nb= sp;   <tr:column>
      &n= bsp;            = ; <f:facet name=3D"header">
    &nbs= p;            &= nbsp;      <tr:outputText value=3D"DCI&quo= t;/>
          &nbs= p;         </f:facet>
&nbs= p;            &= nbsp;      <tr:outputText value=3D"#{row.m= edDCIPT}"/>
            &nb= sp;   </tr:column>
      &= nbsp;         <tr:column>
=             &nb= sp;       <f:facet name=3D"header&quo= t;>
           = ;             &= lt;tr:outputText value=3D"Forma"/>
    =             &nb= sp;   </f:facet>
            &nb= sp;       <tr:outputText value=3D"#{r= ow.medPharmForm}"/>
       &n= bsp;        </tr:column>
 =             &nb= sp;  <f:facet name=3D"detailStamp">
  &nb= sp;           <tr:pane= lGroupLayout layout=3D"vertical">
            &nb= sp;   <tr:outputText value=3D"Pre=E7o: #{row.medPrice}&qu= ot;/>
          &nb= sp;     <tr:outputText value=3D"Tratamento: #{r= ow.medTreatment}"/>
       &n= bsp;        <tr:outputText value=3D&q= uot;Via Admin.: #{row.medAdminis}"/>
            &nb= sp;   <tr:outputText value=3D"Tipo Emb.: #{row.medPackTyp= e}"/>
         &nbs= p;    </tr:panelGroupLayout>
   &nbs= p;        </f:facet>
 &nbs= p;          </tr:table><= br>           
&= nbsp;           <tr:si= ngleStepButtonBar selectedStep=3D"1" maxStep=3D"5" prev= iousAction=3D"#"
            &nb= sp;            = nextAction=3D"settime"/>

     = ;     </tr:panelGroupLayout>
   = ;     </tr:form>
 
</tr:document>= ;
     </f:view>
     = </jsp:root>

problem persists...any ideas?

On Mon, Aug= 25, 2008 at 11:47 PM, Marco Vieira <marcoacvieira@gmail.com> wrote:
=
Just to add, my logs do not show any warnings or errors. F= rom my knowledge, the only information registered when the show link is cli= cked is the following:

 DEBUG http-8085-2 org.apache.myfaces.re= nderkit.html.util.ReducedHTMLParser - PI found at line 1
 DEBUG http-8085-2 org.apache.myfaces.renderkit.html.util.ReducedHTMLP= arser - PI found at line 2
 DEBUG http-8085-2 org.apache.myfaces.re= nderkit.html.util.ReducedHTMLParser - Marked section found at line 3. Surro= undings: 'CDATA[<div id=3D"searchResults">'.
 DEBUG http-8085-2 org.apache.myfaces.renderkit.html.util.ReducedHTMLP= arser - Marked section found at line 210. Surroundings: 'CDATA[<span= id=3D"tr_j_id_jsp_21'.

Again, this is my page:

<= ?xml version=3D"1.0" encoding=3D"iso-8859-1"?>

<jsp:root xmlns:jsp=3D"http://java.sun.com/JSP/Page" version=3D"2= .0"
          &nb= sp; xmlns:f=3D"http://java.sun.com/jsf/core" xmlns:h=3D"http://java.sun.com/jsf/html= "
            xmlns:t= =3D"h= ttp://myfaces.apache.org/tomahawk"     &n= bsp;   
        =     xmlns:trh=3D"http://myfaces.apache.org/trinidad/html= "
            xmlns:tr= =3D"h= ttp://myfaces.apache.org/trinidad">
<jsp:directive.page c= ontentType=3D"text/html;charset=3Dutf-8"/>

<f:view>
<tr:document title=3D"Pesquisar por Medicamentos">
 = ;       <tr:form>
  =         <tr:panelGroupLayout layout= =3D"vertical">
       &n= bsp;      <tr:statusIndicator>
 &nbs= p;            &= nbsp;   <f:facet name=3D"busy">
            &nb= sp;       <tr:outputText value=3D"Loa= ding, please wait..."/>
      &nbs= p;           </f:facet= >
           &= nbsp;   </tr:statusIndicator>

&nbs= p;           <tr:table= id=3D"searchResults" summary=3D"Resultados de Pesquisa"= ;
            &nb= sp;   emptyText=3D"N=E3o existem resultados"
 &= nbsp;           &nbs= p;  allDetailsEnabled=3D"true"
    &n= bsp;           rendered= =3D"true"

  &n= bsp;            = ; rowBandingInterval=3D"1"
            &nb= sp;   value=3D"#{medSearchUITable.dbResults}"
            &nb= sp;   var=3D"row"
     &nb= sp;          rows=3D"20&q= uot;>
          &nb= sp;     <f:facet name=3D"actions">
&= nbsp;           &nbs= p;       <tr:outputText value=3D"Resu= ltados"/>
         =        </f:facet>
            &nb= sp;   <f:facet name=3D"footer">
  &n= bsp;            = ;     <tr:commandButton text=3D"Seleccionar&quo= t; actionListener=3D"#{medSearchUITable.selectMedication}"/>            &= nbsp;   </f:facet>
            &nb= sp;   <tr:column>
      &n= bsp;            = ; <f:facet name=3D"header">
    &nbs= p;            &= nbsp;      <tr:outputText value=3D"Nome&qu= ot;/>
          &nb= sp;         </f:facet>
&nb= sp;            =        <tr:outputText value=3D"#{row.= medName}"/>
            &nb= sp;   </tr:column>
      &= nbsp;         <tr:column>
=             &nb= sp;       <f:facet name=3D"header&quo= t;>
           = ;             &= lt;tr:outputText value=3D"DCI"/>
    &n= bsp;            = ;   </f:facet>
            &nb= sp;       <tr:outputText value=3D"#{r= ow.medDCIPT}"/>
        =         </tr:column>
 &nbs= p;            &= nbsp; <tr:column>
        =             <f:fa= cet name=3D"header">
      &n= bsp;            = ;     <tr:outputText value=3D"Forma"/><= br>             &nb= sp;       </f:facet>
  &nb= sp;            =      <tr:outputText value=3D"#{row.medPharmForm= }"/>
          = ;      </tr:column>
   &nb= sp;            <f= :facet name=3D"detailStamp">
            &nb= sp; <tr:panelGroupLayout layout=3D"vertical">
 &nbs= p;            &= nbsp; <tr:outputText value=3D"Pre=E7o: #{row.medPrice}"/>            &= nbsp;   <tr:outputText value=3D"Tratamento: #{row.medTrea= tment}"/>
            &nb= sp;   <tr:outputText value=3D"Via Admin.: #{row.medAdmini= s}"/>
         &nbs= p;      <tr:outputText value=3D"Tipo Emb.:= #{row.medPackType}"/>
       = ;       </tr:panelGroupLayout>
            </f:f= acet>
          &nb= sp; </tr:table>
        &n= bsp;  
       =      <tr:singleStepButtonBar selectedStep=3D"1&= quot; maxStep=3D"5" previousAction=3D"#"
  = ;            &n= bsp;           nextAction= =3D"settime"/>

          </tr:panelGro= upLayout>

      &= nbsp; </tr:form>
 
      &nb= sp;   </tr:document>
     </f:vie= w>
     </jsp:root>

...and my= web.xml:


<?xml version=3D"1.0" encoding=3D"UTF-8"?>= ;
<web-app version=3D"2.5" xmlns=3D"http://java.sun.com/xml/ns/javaee<= /a>" xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"= ; xsi:schemaLocation=3D"http://java.sun.com/xml/ns/javaee http://java.su= n.com/xml/ns/javaee/web-app_2_5.xsd">
   
    <context-param>
        <param-na= me>javax.faces.STATE_SAVING_METHOD</param-name>
  &nb= sp;     <param-value>client</param-value>
        <!--param-value>se= rver</param-value-->
    </context-param>

    <con= text-param>
        <param-name= >javax.faces.DEFAULT_SUFFIX</param-name>
   &nbs= p;    <param-value>.jspx</param-value>

    </context-param>
   
    <context-param>
 &n= bsp;      <param-name>org.apache.myfaces.tri= nidad.USE_APPLICATION_VIEW_CACHE</param-name>
   &n= bsp;    <param-value>false</param-value>
&nbs= p;   </context-param>
   
    <context-param>
&n= bsp;       <param-name>org.apache.myfac= es.trinidad.CHECK_FILE_MODIFICATION</param-name>

        <param-value>false<= ;/param-value>
    </context-param>
    <!-- <context-param>
    = ;    <param-name>com.sun.faces.verifyObjects</param= -name>
        <param-value>= false</param-value>
    </context-param>
&= nbsp;   <context-param>
        <param-name>com.sun.faces.= validateXml</param-name>
       = ; <param-value>true</param-value>
    </co= ntext-param> -->

    <context-param>
<= /div>        <param-name>org.apach= e.myfaces.trinidad.CHANGE_PERSISTENCE</param-name>
        <param-value>session</p= aram-value>
    </context-param>
 
&= nbsp;   <context-param>
     &n= bsp;  <param-name>org.apache.myfaces.trinidad.resource.DEBUG<= /param-name>

        <param-value>false<= /param-value>
    </context-param>
    <context= -param>
     &nb= sp;  <param-name>org.apache.myfaces.trinidad.DEBUG_JAVASCRIPT<= ;/param-name>
        <param-va= lue>true</param-value>
    </context-param>

    <servlet>
 = ;       <servlet-name>Faces Servlet<= /servlet-name>
        <servlet= -class>org.apache.myfaces.webapp.MyFacesServlet</servlet-class>        <load-on-startup>1</lo= ad-on-startup>
    </servlet>
    <servlet>
        &l= t;servlet-name>resources</servlet-name>
    = ;    <servlet-class>org.apache.myfaces.trinidad.webapp= .ResourceServlet</servlet-class>
    </servlet>

    <filter>
 =        <filter-name>trinidad</filter= -name>
        <filter-class>= ;org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
=     </filter>

    <filter-mapping>         <filter-name>trinidad</= filter-name>
        <servlet-n= ame>Faces Servlet</servlet-name>
    </filter= -mapping>
   
   
  &= nbsp;
   
   
    = <filter>
        <filter= -name>MyFacesExtensionsFilter</filter-name>
        <filter-class>org.apache.m= yfaces.webapp.filter.ExtensionsFilter</filter-class>
  &= nbsp;     <init-param>
    = ;        <param-name>maxFileSize&l= t;/param-name>
         =    <param-value>20m</param-value>
        </init-param>
 &nb= sp;      </filter>
        <!-- <filter>
&= nbsp;       <filter-name>UploadFilter&l= t;/filter-name>
        <filter= -class>com.sun.webui.jsf.util.UploadFilter</filter-class>
        <init-param>
 &nbs= p;          <param-name>= maxSize</param-name>
       &nb= sp;    <param-value>1000000</param-value>
&nb= sp;       </init-param>
  =       <init-param>
   &nbs= p;        <param-name>sizeThreshol= d</param-name>
            <para= m-value>4096</param-value>
      =   </init-param>
    </filter> -->
=     <filter-mapping>
     =    <filter-name>MyFacesExtensionsFilter</filter-name>=
        <servlet-name>Faces Servle= t</servlet-name>
    </filter-mapping>
&nb= sp;   <filter-mapping>
     &nb= sp;  <filter-name>MyFacesExtensionsFilter</filter-name>        <url-pattern>/faces/myFac= esExtensionResource/*</url-pattern>
    </filter-mapping>
    <filter= -mapping>
        <filter-name&= gt;MyFacesExtensionsFilter</filter-name>
    &= nbsp;   <url-pattern>*.jsf</url-pattern>
 &nb= sp;  </filter-mapping>
   
    <!-- <filter-mapping>
        <= ;filter-name>UploadFilter</filter-name>
    = ;    <servlet-name>Faces Servlet</servlet-name><= br>    </filter-mapping> -->
    <listener>
        <listener-class>org.apache= .myfaces.webapp.StartupServletContextListener</listener-class>
&nb= sp;   </listener>

 =    <servlet-mapping>
      = ;  <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>/faces/*</= url-pattern>
    </servlet-mapping>
 &nb= sp;  <servlet-mapping>
 &nbs= p;      <servlet-name>resources</servlet-= name>
        <url-pattern>/= adf/*</url-pattern>
    </servlet-mapping>

   = <welcome-file-list>

    = ;    <welcome-file>faces/welcomeJSF.jsp</welcome-fi= le>
        </welcome-file-list= >
    </web-app>

Thanks in advance,

Marco


On Mon, Aug 25, 2008 at 5:03 PM, Marco Vieira <marcoac= vieira@gmail.com> wrote:
Well, I redid and double checked my web.xml file with the = one provided by the trinidad demo and they are pretty much the same. I also= updated my project to use Trinidad 1.2.9. Yet the problem remains...the table does not auto-reload wh= en I click on the "show details" link. I have to wait a bit then = manually reload the page to see the "details".

I even implemented the first table on the Trinidad demo (http://www.irian.at/trinidad-demo/faces/components/table.jspx), that= is I copied the webpage and necessary source files and the table from the = demo stops working.

This is becoming quite frustrating...does anyone have an ideia as to wh= y the table does not reload.

Thanks,

= Marco


On Sun, Aug 24, 2008 at 12:12 AM, Marco Vieira <marcoacvieira@gmail.= com> wrote:
= No ideas? Please, I don't want to come off as being obnoxious but if an= yone one could help I would really appreciate it, any hint or tip.

Some extra information:

"medSearchUITable.dbResults" i= s an ArrayList that, according to the tag documentation is converted to a c= ollection model.

This is my web.xml:

<?xml version=3D"1.0" encoding= =3D"UTF-8"?>
<web-app version=3D"2.5" xmlns=3D= "http:= //java.sun.com/xml/ns/javaee" xmlns:xsi=3D"http://www.w3.org/200= 1/XMLSchema-instance" xsi:schemaLocation=3D"http://java.sun.com/xml/ns/j= avaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"&= gt;
    <context-param>
     &= nbsp;  <param-name>com.sun.faces.verifyObjects</param-name>= ;
        <param-value>false<= ;/param-value>
    </context-param>
 &nb= sp;  <context-param>
        <param-name>com.sun.faces.= validateXml</param-name>
        <param-value>true</para= m-value>
    </context-param>
  &nb= sp; <context-param>
        <= ;param-name>javax.faces.STATE_SAVING_METHOD</param-name>
 =        <param-value>client</param-va= lue>
    </context-param>
    <context= -param>
        <param-name>= org.apache.myfaces.trinidad.CACHE_VIEW_ROOT</param-name>
 &nb= sp;      <param-value>false</param-value&= gt;
    </context-param>
    <context-param>
     &= nbsp;  <param-name>org.apache.myfaces.trinidad.CLIENT_STATE_METH= OD</param-name>
        <par= am-value>token</param-value>
    </context-pa= ram>
    <context-param>
        <param-name>org.apache.myf= aces.trinidad.CLIENT_STATE_MAX_TOKENS</param-name>
  &nb= sp;     <param-value>15</param-value>
&n= bsp;   </context-param>
    <context-p= aram>
        <param-name>or= g.apache.myfaces.trinidad.ENABLE_LIGHTWEIGHT_DIALOGS</param-name>
        <param-value>true</para= m-value>
    </context-param>
  &nb= sp; <context-param>
        <= ;param-name>org.apache.myfaces.trinidad.USE_APPLICATION_VIEW_CACHE</p= aram-name>
        <param-value= >false</param-value>
    </context-param>
    <context= -param><param-name>org.apache.myfaces.trinidad.DISABLE_CONTENT_COM= PRESSION</param-name><param-value>true</param-value></= context-param>
    <context-param>
        <param-name>org.apache.myf= aces.trinidad.DEBUG_JAVASCRIPT</param-name>
   &nbs= p;    <param-value>true</param-value>
 &= nbsp;  </context-param>
    <filter>
=         <filter-name>MyFacesExtens= ionsFilter</filter-name>
        <filter-class>org.apache.m= yfaces.webapp.filter.ExtensionsFilter</filter-class>
  &= nbsp;     <init-param>
    = ;        <param-name>maxFileSize&l= t;/param-name>
         =    <param-value>20m</param-value>
        </init-param>
 &nb= sp;      </filter>
    <= ;filter>
        <filter-name&g= t;trinidad</filter-name>
       = ; <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter<= /filter-class>
    </filter>
    <filter>
=         <filter-name>UploadFilter&= lt;/filter-name>
        <filte= r-class>com.sun.webui.jsf.util.UploadFilter</filter-class>
&nbs= p;       <init-param>
            <para= m-name>maxSize</param-name>
      = ;      <param-value>1000000</param-value&= gt;
        </init-param>
&n= bsp;       <init-param>
  =           <param-name>si= zeThreshold</param-name>
            <para= m-value>4096</param-value>
      =   </init-param>
    </filter>
 &= nbsp;  <filter-mapping>
      &= nbsp; <filter-name>MyFacesExtensionsFilter</filter-name>
&nb= sp;       <servlet-name>Faces Servlet&l= t;/servlet-name>
    </filter-mapping>
    <filter= -mapping>
        <filter-name&= gt;MyFacesExtensionsFilter</filter-name>
    &= nbsp;   <url-pattern>/faces/myFacesExtensionResource/*</= url-pattern>
    </filter-mapping>
    <filter-mapping>
     =    <filter-name>MyFacesExtensionsFilter</filter-name>=
        <url-pattern>*.jsf<= /url-pattern>
    </filter-mapping>
 &nb= sp;  <filter-mapping>
        <filter-name>trinidad</= filter-name>
        <servlet-n= ame>Faces Servlet</servlet-name>
    </filter= -mapping>
    <filter-mapping>
  &n= bsp;     <filter-name>UploadFilter</filter-nam= e>
        <servlet-name>Faces Servle= t</servlet-name>
    </filter-mapping>
&nb= sp;   <listener>
      &nb= sp; <listener-class>org.apache.myfaces.webapp.StartupServletContextLi= stener</listener-class>
    </listener>
    <listener>=
        <listener-class>org.ap= ache.myfaces.webapp.StartupServletContextListener</listener-class>    </listener>
    <servlet>=
        <servlet-name>Faces Se= rvlet</servlet-name>
        <servlet-class>org.apache.= myfaces.webapp.MyFacesServlet</servlet-class>
   &n= bsp;    <load-on-startup>1</load-on-startup>
=     </servlet>
    <servlet>        <servlet-name>ExceptionH= andlerServlet</servlet-name>
        <servlet-class>com.sun.err= orhandler.ExceptionHandler</servlet-class>
    = ;    <init-param>
     &nb= sp;      <param-name>errorHost</param-nam= e>
           = <param-value>localhost</param-value>
        </init-param>
 &nb= sp;      <init-param>
   &= nbsp;        <param-name>errorPort= </param-name>
        &nbs= p;   <param-value>24444</param-value>
  =       </init-param>
    &l= t;/servlet>
    <servlet>
      &= nbsp; <servlet-name>ThemeServlet</servlet-name>
  =       <servlet-class>com.sun.webui.theme.The= meServlet</servlet-class>
    </servlet>
&= nbsp;   <servlet>
        <servlet-name>resources<= ;/servlet-name>
        <servle= t-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-c= lass>
    </servlet>
    <s= ervlet-mapping>
        <servlet-name>Faces Servle= t</servlet-name>
        <ur= l-pattern>/faces/*</url-pattern>
    </servle= t-mapping>
    <servlet-mapping>
  =       <servlet-name>ExceptionHandlerServlet&= lt;/servlet-name>
        <url-pattern>/error/Except= ionHandler</url-pattern>
    </servlet-mapping&g= t;
    <servlet-mapping>
    = ;    <servlet-name>ThemeServlet</servlet-name>        <url-pattern>/theme/*<= ;/url-pattern>
    </servlet-mapping>
    <servl= et-mapping>
        <servlet-na= me>resources</servlet-name>
      = ;  <url-pattern>/adf/*</url-pattern>
   = </servlet-mapping>
    <session-config>
        <session-timeout>
 = ;           30
 &= nbsp;      </session-timeout>
  = ;  </session-config>
    <welcome-file-list= >
        <welcome-file>face= s/Page1.jsp</welcome-file>
        <welcome-file>faces/welcom= eJSF.jsp</welcome-file>
       = </welcome-file-list>
    <error-page>
&nb= sp;       <exception-type>javax.servlet= .ServletException</exception-type>
        <location>/error/Exception= Handler</location>
    </error-page>
 = ;   <error-page>
      &nb= sp; <exception-type>java.io.IOException</exception-type>
&nb= sp;       <location>/error/ExceptionHan= dler</location>
    </error-page>
    <error-page= >
        <exception-type>ja= vax.faces.FacesException</exception-type>
    =     <location>/error/ExceptionHandler</location>=
    </error-page>
    <error-page>
     &nbs= p;  <exception-type>com.sun.rave.web.ui.appbase.ApplicationExcep= tion</exception-type>
        &= lt;location>/error/ExceptionHandler</location>
  &nbs= p; </error-page>
    <jsp-config>
     &nbs= p;  <jsp-property-group>
      =       <url-pattern>*.jspf</url-pattern>= ;
            <= ;is-xml>true</is-xml>
       = ; </jsp-property-group>
       = </jsp-config>
    </web-app>

Why isn't the page reloading= itself? The PPR POST is sent and a response is received, and ONLY when I m= anually reload the page do I see the changes. The online Trinidad demo at I= rian works and I downloaded this demo and deployed it to my Tomcat and it w= orks. I fear I'm missing something in my binding objects. I've comp= ared my web.xml file to that in the demo and do not notice anything that, i= n my opinion, could be the source of the problem.


Any ideas?

Thanks in advance,

Marco

On Sat, Aug 23, 2008 at 12:00 AM, M= arco Vieira <marcoacvieira@gmail.com> wrote:
= I've tried changing the page to *.jspx, hoping it was a JSP problem, bu= t I continue the have the same problem. I receive a response to the PPR req= uest, 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 anoth= er 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 ta= ble's built-in PPR working, but the table isn't refreshed automatic= ally.

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:
<= br><%@page contentType=3D"text/html" pageEncoding=3D"UTF-= 8"%>
<%@taglib prefix=3D"f" uri=3D"http://java.sun.com/jsf/core"%>=
<%@taglib prefix=3D"h" uri=3D"http://java.sun.com/jsf/html"%= >
<%@taglib prefix=3D"t" uri=3D"http://myfaces.apache.org/tomahawk"%>
<%@taglib prefix=3D"trh" uri=3D"
http://myfac= es.apache.org/trinidad/html"%>
<%@taglib prefix=3D"tr" uri=3D"http://myfaces.apache.org/trinidad"%>

<f:view>
<tr:document title=3D"Pesqui= sar por Medicamentos">
        <tr:form>
  &= nbsp;         <tr:table id=3D&qu= ot;searchResults" summary=3D"Resultados de Pesquisa"
&nbs= p;            &= nbsp;  allDetailsEnabled=3D"true"
    = ;            binding= =3D"#{medSearchUITable.medSearchTable}"
            &nb= sp;   rendered=3D"true"
    &nbs= p;           rowSelection= =3D"single"
        &= nbsp;       rowBandingInterval=3D"1"= ;
           &nbs= p;    value=3D"#{medSearchUITable.dbResults}"
=             &nb= sp;   var=3D"row"
            &nb= sp;   rows=3D"20">
     =            <f:facet na= me=3D"actions">
       &= nbsp;            <= ;tr:outputText value=3D"Resultados"/>
   &nb= sp;            </= f:facet>
          =       <f:facet name=3D"footer">             &nb= sp;       <tr:commandButton text=3D"S= eleccionar" actionListener=3D"#{medSearchUITable.selectMedication= }"/>
          = ;      </f:facet>
    = ;            <tr:= column>
          &= nbsp;         <f:facet name=3D&q= uot;header">
            &nb= sp;           <tr:outp= utText value=3D"Nome"/>
      = ;            &n= bsp; </f:facet>
        &n= bsp;           <tr:out= putText value=3D"#{row.medName}"/>
    =             </tr:= column>
            &nb= sp;   <tr:column>
      &n= bsp;            = ; <f:facet name=3D"header">
    &nbs= p;            &= nbsp;      <tr:outputText value=3D"DCI&quo= t;/>
          &nbs= p;         </f:facet>
&nbs= p;            &= nbsp;      <tr:outputText value=3D"#{row.m= edDCIPT}"/>
            &nb= sp;   </tr:column>
      &= nbsp;         <tr:column>
=             &nb= sp;       <f:facet name=3D"header&quo= t;>
           = ;             &= lt;tr:outputText value=3D"Forma"/>
    =             &nb= sp;   </f:facet>
            &nb= sp;       <tr:outputText value=3D"#{r= ow.medPharmForm}"/>
       &n= bsp;        </tr:column>
 =             &nb= sp;  <f:facet name=3D"detailStamp">
  &nb= sp;           <tr:pane= lGroupLayout layout=3D"vertical">
            &nb= sp;   <tr:outputText value=3D"Pre=E7o: #{row.medPrice}&qu= ot;/>
          &nb= sp;     <tr:outputText value=3D"Tratamento: #{r= ow.medTreatment}"/>
       &n= bsp;        <tr:outputText value=3D&q= uot;Via Admin.: #{row.medAdminis}"/>
            &nb= sp;   <tr:outputText value=3D"Tipo Emb.: #{row.medPackTyp= e}"/>
         &nbs= p;    </tr:panelGroupLayout>
   &nbs= p;        </f:facet>
 &nbs= p;          </tr:table><= br>        </tr:form>
 
</tr:document>
     </f:view><= br>

Any ideas? Thanks in advance,

Marco





------=_Part_33850_11204093.1219708696475--