You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Bradley Cossey (JIRA)" <de...@myfaces.apache.org> on 2007/11/06 17:15:51 UTC

[jira] Created: (TRINIDAD-802) PPR doesn't work

PPR doesn't work
----------------

                 Key: TRINIDAD-802
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-802
             Project: MyFaces Trinidad
          Issue Type: Bug
          Components: Components
    Affects Versions: 1.0.3-core, 1.0.2-core
         Environment: Windows XP, Jetty App Server
            Reporter: Bradley Cossey
            Priority: Critical


The PPR functionality, as describer in Chapter 2 of the developers guide (Apache Trinidad Partial Page Rendering), doesn't work in Trinidad 1.0.2 and 1.0.3. No errors appear in the logging although Firebug notes the following errors:

["Invalid PPR response. The response-headers were:\nDate: Tue, 06 Nov 2007 15:57:34 GMT\nContent-Languag..."]Common1_0_2.js (line 10271)
["Error ", TypeError: a5 has no properties message=a5 has no properties, " delivering XML request status changed to ", function()]

This is my jsp:

<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@taglib uri="http://myfaces.apache.org/trinidad/html" prefix="trh"%>
<%@taglib uri="http://myfaces.apache.org/trinidad" prefix="tr"%>

<f:view>       
	<tr:document title="Test Stuff"> 
	<tr:form id="form">

          <tr:panelGroupLayout layout="vertical">
            <f:facet name="separator">
              <tr:separator />
            </f:facet>           

					  <tr:commandButton text="Do Something"
					                       id="myButton"
					                       partialSubmit="true"
					                       actionListener="#{employees.modSearchString}"/>
					
					  <tr:outputText value="#{employees.searchString}"
					                    partialTriggers="myButton"/>

          </tr:panelGroupLayout>
        </tr:form>
 </tr:document>
</f:view>

and these methods are in the Employees class:

    public void modSearchString(ActionEvent actionEvent)
    {
	System.out.println("in modSearchString");
	this.searchString += "+1";
	System.out.println("search string moded to: " + searchString);
    }

    public String getSearchString()
    {
	return searchString;
    }
    
    public void setSearchString(String searchString)
    {
	this.searchString = searchString;
    }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TRINIDAD-802) PPR doesn't work

Posted by "Andrew Robinson (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12540923 ] 

Andrew Robinson commented on TRINIDAD-802:
------------------------------------------

I have had no PPR issues with facelets 1.1.14 and Trinidad 1.0.3 or 1.0.4-SNAPSHOT. Make sure to clear your browser cache and check your configuration. If you still see it, I would suggest a separate bug or mailing list thread for facelets

> PPR doesn't work
> ----------------
>
>                 Key: TRINIDAD-802
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-802
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 1.0.2-core, 1.0.3-core
>         Environment: Windows XP, Jetty App Server
>            Reporter: Bradley Cossey
>            Priority: Critical
>
> The PPR functionality, as describer in Chapter 2 of the developers guide (Apache Trinidad Partial Page Rendering), doesn't work in Trinidad 1.0.2 and 1.0.3. No errors appear in the logging although Firebug notes the following errors:
> ["Invalid PPR response. The response-headers were:\nDate: Tue, 06 Nov 2007 15:57:34 GMT\nContent-Languag..."]Common1_0_2.js (line 10271)
> ["Error ", TypeError: a5 has no properties message=a5 has no properties, " delivering XML request status changed to ", function()]
> This is my jsp:
> <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
> <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
> <%@taglib uri="http://myfaces.apache.org/trinidad/html" prefix="trh"%>
> <%@taglib uri="http://myfaces.apache.org/trinidad" prefix="tr"%>
> <f:view>       
> 	<tr:document title="Test Stuff"> 
> 	<tr:form id="form">
>           <tr:panelGroupLayout layout="vertical">
>             <f:facet name="separator">
>               <tr:separator />
>             </f:facet>           
> 					  <tr:commandButton text="Do Something"
> 					                       id="myButton"
> 					                       partialSubmit="true"
> 					                       actionListener="#{employees.modSearchString}"/>
> 					
> 					  <tr:outputText value="#{employees.searchString}"
> 					                    partialTriggers="myButton"/>
>           </tr:panelGroupLayout>
>         </tr:form>
>  </tr:document>
> </f:view>
> and these methods are in the Employees class:
>     public void modSearchString(ActionEvent actionEvent)
>     {
> 	System.out.println("in modSearchString");
> 	this.searchString += "+1";
> 	System.out.println("search string moded to: " + searchString);
>     }
>     public String getSearchString()
>     {
> 	return searchString;
>     }
>     
>     public void setSearchString(String searchString)
>     {
> 	this.searchString = searchString;
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TRINIDAD-802) PPR doesn't work

Posted by "Andrew Robinson (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12645337#action_12645337 ] 

Andrew Robinson commented on TRINIDAD-802:
------------------------------------------

Just tested client with IE7, still working

> PPR doesn't work
> ----------------
>
>                 Key: TRINIDAD-802
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-802
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 1.0.2-core, 1.0.3-core
>         Environment: Windows XP, Jetty App Server
>            Reporter: Bradley Cossey
>            Assignee: Andrew Robinson
>            Priority: Critical
>             Fix For: 1.0.10-core
>
>         Attachments: TRINIDAD-802.diff
>
>
> The PPR functionality, as describer in Chapter 2 of the developers guide (Apache Trinidad Partial Page Rendering), doesn't work in Trinidad 1.0.2 and 1.0.3. No errors appear in the logging although Firebug notes the following errors:
> ["Invalid PPR response. The response-headers were:\nDate: Tue, 06 Nov 2007 15:57:34 GMT\nContent-Languag..."]Common1_0_2.js (line 10271)
> ["Error ", TypeError: a5 has no properties message=a5 has no properties, " delivering XML request status changed to ", function()]
> This is my jsp:
> <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
> <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
> <%@taglib uri="http://myfaces.apache.org/trinidad/html" prefix="trh"%>
> <%@taglib uri="http://myfaces.apache.org/trinidad" prefix="tr"%>
> <f:view>       
> 	<tr:document title="Test Stuff"> 
> 	<tr:form id="form">
>           <tr:panelGroupLayout layout="vertical">
>             <f:facet name="separator">
>               <tr:separator />
>             </f:facet>           
> 					  <tr:commandButton text="Do Something"
> 					                       id="myButton"
> 					                       partialSubmit="true"
> 					                       actionListener="#{employees.modSearchString}"/>
> 					
> 					  <tr:outputText value="#{employees.searchString}"
> 					                    partialTriggers="myButton"/>
>           </tr:panelGroupLayout>
>         </tr:form>
>  </tr:document>
> </f:view>
> and these methods are in the Employees class:
>     public void modSearchString(ActionEvent actionEvent)
>     {
> 	System.out.println("in modSearchString");
> 	this.searchString += "+1";
> 	System.out.println("search string moded to: " + searchString);
>     }
>     public String getSearchString()
>     {
> 	return searchString;
>     }
>     
>     public void setSearchString(String searchString)
>     {
> 	this.searchString = searchString;
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TRINIDAD-802) PPR doesn't work

Posted by "Andrew Robinson (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12645284#action_12645284 ] 

Andrew Robinson commented on TRINIDAD-802:
------------------------------------------

Works fine for me on 1.2.10-SNAPSHOT. Will try 1.0.10 now

> PPR doesn't work
> ----------------
>
>                 Key: TRINIDAD-802
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-802
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 1.0.2-core, 1.0.3-core
>         Environment: Windows XP, Jetty App Server
>            Reporter: Bradley Cossey
>            Assignee: Andrew Robinson
>            Priority: Critical
>
> The PPR functionality, as describer in Chapter 2 of the developers guide (Apache Trinidad Partial Page Rendering), doesn't work in Trinidad 1.0.2 and 1.0.3. No errors appear in the logging although Firebug notes the following errors:
> ["Invalid PPR response. The response-headers were:\nDate: Tue, 06 Nov 2007 15:57:34 GMT\nContent-Languag..."]Common1_0_2.js (line 10271)
> ["Error ", TypeError: a5 has no properties message=a5 has no properties, " delivering XML request status changed to ", function()]
> This is my jsp:
> <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
> <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
> <%@taglib uri="http://myfaces.apache.org/trinidad/html" prefix="trh"%>
> <%@taglib uri="http://myfaces.apache.org/trinidad" prefix="tr"%>
> <f:view>       
> 	<tr:document title="Test Stuff"> 
> 	<tr:form id="form">
>           <tr:panelGroupLayout layout="vertical">
>             <f:facet name="separator">
>               <tr:separator />
>             </f:facet>           
> 					  <tr:commandButton text="Do Something"
> 					                       id="myButton"
> 					                       partialSubmit="true"
> 					                       actionListener="#{employees.modSearchString}"/>
> 					
> 					  <tr:outputText value="#{employees.searchString}"
> 					                    partialTriggers="myButton"/>
>           </tr:panelGroupLayout>
>         </tr:form>
>  </tr:document>
> </f:view>
> and these methods are in the Employees class:
>     public void modSearchString(ActionEvent actionEvent)
>     {
> 	System.out.println("in modSearchString");
> 	this.searchString += "+1";
> 	System.out.println("search string moded to: " + searchString);
>     }
>     public String getSearchString()
>     {
> 	return searchString;
>     }
>     
>     public void setSearchString(String searchString)
>     {
> 	this.searchString = searchString;
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TRINIDAD-802) PPR doesn't work

Posted by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12645477#action_12645477 ] 

Matthias Weßendorf commented on TRINIDAD-802:
---------------------------------------------

same here. it works...

I am jetty, trinidad 129 and windoze, with an even simple jsp...

<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@taglib uri="http://myfaces.apache.org/trinidad/html" prefix="trh"%>
<%@taglib uri="http://myfaces.apache.org/trinidad" prefix="tr"%>

<f:view>
<tr:document title="Test Stuff">
<tr:form id="form">

          <tr:panelGroupLayout layout="vertical">
            <f:facet name="separator">
              <tr:separator />
            </f:facet>

<tr:commandButton text="Do Something"
id="myButton"
partialSubmit="true" />

<tr:outputText value="#{requestScope}"
partialTriggers="myButton"/>

          </tr:panelGroupLayout>
        </tr:form>
 </tr:document>
</f:view> 

> PPR doesn't work
> ----------------
>
>                 Key: TRINIDAD-802
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-802
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 1.0.2-core, 1.0.3-core
>         Environment: Windows XP, Jetty App Server
>            Reporter: Bradley Cossey
>            Assignee: Andrew Robinson
>            Priority: Critical
>             Fix For: 1.0.10-core
>
>         Attachments: TRINIDAD-802.diff
>
>
> The PPR functionality, as describer in Chapter 2 of the developers guide (Apache Trinidad Partial Page Rendering), doesn't work in Trinidad 1.0.2 and 1.0.3. No errors appear in the logging although Firebug notes the following errors:
> ["Invalid PPR response. The response-headers were:\nDate: Tue, 06 Nov 2007 15:57:34 GMT\nContent-Languag..."]Common1_0_2.js (line 10271)
> ["Error ", TypeError: a5 has no properties message=a5 has no properties, " delivering XML request status changed to ", function()]
> This is my jsp:
> <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
> <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
> <%@taglib uri="http://myfaces.apache.org/trinidad/html" prefix="trh"%>
> <%@taglib uri="http://myfaces.apache.org/trinidad" prefix="tr"%>
> <f:view>       
> 	<tr:document title="Test Stuff"> 
> 	<tr:form id="form">
>           <tr:panelGroupLayout layout="vertical">
>             <f:facet name="separator">
>               <tr:separator />
>             </f:facet>           
> 					  <tr:commandButton text="Do Something"
> 					                       id="myButton"
> 					                       partialSubmit="true"
> 					                       actionListener="#{employees.modSearchString}"/>
> 					
> 					  <tr:outputText value="#{employees.searchString}"
> 					                    partialTriggers="myButton"/>
>           </tr:panelGroupLayout>
>         </tr:form>
>  </tr:document>
> </f:view>
> and these methods are in the Employees class:
>     public void modSearchString(ActionEvent actionEvent)
>     {
> 	System.out.println("in modSearchString");
> 	this.searchString += "+1";
> 	System.out.println("search string moded to: " + searchString);
>     }
>     public String getSearchString()
>     {
> 	return searchString;
>     }
>     
>     public void setSearchString(String searchString)
>     {
> 	this.searchString = searchString;
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TRINIDAD-802) PPR doesn't work

Posted by "Steve Horne (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12540914 ] 

Steve Horne commented on TRINIDAD-802:
--------------------------------------

We are using Trinidad 1.0.1 and Facelets 1.1.14 and are NOT using JSP in any form in our pages.  This problem is preventing our upgrade to get fixes to other problems (we are stuck at 1.0.1).  We are seriously considering abandoning Trinidad over this issue, even though we are heavily dependent today.  It will be very painful for our development staff to go back and rework all currently developed pages using another toolkit.

If we had any ideas or advice from anyone on users or dev mailing lists, we would pursue them, but nothing is forthcoming.

PLEASE FIX THIS!!!

> PPR doesn't work
> ----------------
>
>                 Key: TRINIDAD-802
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-802
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 1.0.2-core, 1.0.3-core
>         Environment: Windows XP, Jetty App Server
>            Reporter: Bradley Cossey
>            Priority: Critical
>
> The PPR functionality, as describer in Chapter 2 of the developers guide (Apache Trinidad Partial Page Rendering), doesn't work in Trinidad 1.0.2 and 1.0.3. No errors appear in the logging although Firebug notes the following errors:
> ["Invalid PPR response. The response-headers were:\nDate: Tue, 06 Nov 2007 15:57:34 GMT\nContent-Languag..."]Common1_0_2.js (line 10271)
> ["Error ", TypeError: a5 has no properties message=a5 has no properties, " delivering XML request status changed to ", function()]
> This is my jsp:
> <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
> <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
> <%@taglib uri="http://myfaces.apache.org/trinidad/html" prefix="trh"%>
> <%@taglib uri="http://myfaces.apache.org/trinidad" prefix="tr"%>
> <f:view>       
> 	<tr:document title="Test Stuff"> 
> 	<tr:form id="form">
>           <tr:panelGroupLayout layout="vertical">
>             <f:facet name="separator">
>               <tr:separator />
>             </f:facet>           
> 					  <tr:commandButton text="Do Something"
> 					                       id="myButton"
> 					                       partialSubmit="true"
> 					                       actionListener="#{employees.modSearchString}"/>
> 					
> 					  <tr:outputText value="#{employees.searchString}"
> 					                    partialTriggers="myButton"/>
>           </tr:panelGroupLayout>
>         </tr:form>
>  </tr:document>
> </f:view>
> and these methods are in the Employees class:
>     public void modSearchString(ActionEvent actionEvent)
>     {
> 	System.out.println("in modSearchString");
> 	this.searchString += "+1";
> 	System.out.println("search string moded to: " + searchString);
>     }
>     public String getSearchString()
>     {
> 	return searchString;
>     }
>     
>     public void setSearchString(String searchString)
>     {
> 	this.searchString = searchString;
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TRINIDAD-802) PPR doesn't work

Posted by "Max Starets (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12540473 ] 

Max Starets commented on TRINIDAD-802:
--------------------------------------

Have you tried removing all white space at the beginning of your JSP or switching to a JSPX altogether? This may be a viable workaround. I suspect that we are getting invalid XML response because JSP engine is writing some white space before <?xml.

> PPR doesn't work
> ----------------
>
>                 Key: TRINIDAD-802
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-802
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 1.0.2-core, 1.0.3-core
>         Environment: Windows XP, Jetty App Server
>            Reporter: Bradley Cossey
>            Priority: Critical
>
> The PPR functionality, as describer in Chapter 2 of the developers guide (Apache Trinidad Partial Page Rendering), doesn't work in Trinidad 1.0.2 and 1.0.3. No errors appear in the logging although Firebug notes the following errors:
> ["Invalid PPR response. The response-headers were:\nDate: Tue, 06 Nov 2007 15:57:34 GMT\nContent-Languag..."]Common1_0_2.js (line 10271)
> ["Error ", TypeError: a5 has no properties message=a5 has no properties, " delivering XML request status changed to ", function()]
> This is my jsp:
> <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
> <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
> <%@taglib uri="http://myfaces.apache.org/trinidad/html" prefix="trh"%>
> <%@taglib uri="http://myfaces.apache.org/trinidad" prefix="tr"%>
> <f:view>       
> 	<tr:document title="Test Stuff"> 
> 	<tr:form id="form">
>           <tr:panelGroupLayout layout="vertical">
>             <f:facet name="separator">
>               <tr:separator />
>             </f:facet>           
> 					  <tr:commandButton text="Do Something"
> 					                       id="myButton"
> 					                       partialSubmit="true"
> 					                       actionListener="#{employees.modSearchString}"/>
> 					
> 					  <tr:outputText value="#{employees.searchString}"
> 					                    partialTriggers="myButton"/>
>           </tr:panelGroupLayout>
>         </tr:form>
>  </tr:document>
> </f:view>
> and these methods are in the Employees class:
>     public void modSearchString(ActionEvent actionEvent)
>     {
> 	System.out.println("in modSearchString");
> 	this.searchString += "+1";
> 	System.out.println("search string moded to: " + searchString);
>     }
>     public String getSearchString()
>     {
> 	return searchString;
>     }
>     
>     public void setSearchString(String searchString)
>     {
> 	this.searchString = searchString;
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TRINIDAD-802) PPR doesn't work

Posted by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12548296 ] 

Matthias Weßendorf commented on TRINIDAD-802:
---------------------------------------------

The issue of "Steve Horne" has be solved.
He simply forgot to add the Trinidad - Filter in his configuration (web.xml).

Since you are on JSP, is your's still there ?


> PPR doesn't work
> ----------------
>
>                 Key: TRINIDAD-802
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-802
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 1.0.2-core, 1.0.3-core
>         Environment: Windows XP, Jetty App Server
>            Reporter: Bradley Cossey
>            Priority: Critical
>
> The PPR functionality, as describer in Chapter 2 of the developers guide (Apache Trinidad Partial Page Rendering), doesn't work in Trinidad 1.0.2 and 1.0.3. No errors appear in the logging although Firebug notes the following errors:
> ["Invalid PPR response. The response-headers were:\nDate: Tue, 06 Nov 2007 15:57:34 GMT\nContent-Languag..."]Common1_0_2.js (line 10271)
> ["Error ", TypeError: a5 has no properties message=a5 has no properties, " delivering XML request status changed to ", function()]
> This is my jsp:
> <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
> <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
> <%@taglib uri="http://myfaces.apache.org/trinidad/html" prefix="trh"%>
> <%@taglib uri="http://myfaces.apache.org/trinidad" prefix="tr"%>
> <f:view>       
> 	<tr:document title="Test Stuff"> 
> 	<tr:form id="form">
>           <tr:panelGroupLayout layout="vertical">
>             <f:facet name="separator">
>               <tr:separator />
>             </f:facet>           
> 					  <tr:commandButton text="Do Something"
> 					                       id="myButton"
> 					                       partialSubmit="true"
> 					                       actionListener="#{employees.modSearchString}"/>
> 					
> 					  <tr:outputText value="#{employees.searchString}"
> 					                    partialTriggers="myButton"/>
>           </tr:panelGroupLayout>
>         </tr:form>
>  </tr:document>
> </f:view>
> and these methods are in the Employees class:
>     public void modSearchString(ActionEvent actionEvent)
>     {
> 	System.out.println("in modSearchString");
> 	this.searchString += "+1";
> 	System.out.println("search string moded to: " + searchString);
>     }
>     public String getSearchString()
>     {
> 	return searchString;
>     }
>     
>     public void setSearchString(String searchString)
>     {
> 	this.searchString = searchString;
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TRINIDAD-802) PPR doesn't work

Posted by "Andrew Robinson (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12645335#action_12645335 ] 

Andrew Robinson commented on TRINIDAD-802:
------------------------------------------

Note that I used Ubuntu linux 8.10 with testing on Firefox 3. If you can confirm this is a platform issue, please specify which environments and browsers work and which do not.

> PPR doesn't work
> ----------------
>
>                 Key: TRINIDAD-802
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-802
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 1.0.2-core, 1.0.3-core
>         Environment: Windows XP, Jetty App Server
>            Reporter: Bradley Cossey
>            Assignee: Andrew Robinson
>            Priority: Critical
>             Fix For: 1.0.10-core
>
>         Attachments: TRINIDAD-802.diff
>
>
> The PPR functionality, as describer in Chapter 2 of the developers guide (Apache Trinidad Partial Page Rendering), doesn't work in Trinidad 1.0.2 and 1.0.3. No errors appear in the logging although Firebug notes the following errors:
> ["Invalid PPR response. The response-headers were:\nDate: Tue, 06 Nov 2007 15:57:34 GMT\nContent-Languag..."]Common1_0_2.js (line 10271)
> ["Error ", TypeError: a5 has no properties message=a5 has no properties, " delivering XML request status changed to ", function()]
> This is my jsp:
> <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
> <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
> <%@taglib uri="http://myfaces.apache.org/trinidad/html" prefix="trh"%>
> <%@taglib uri="http://myfaces.apache.org/trinidad" prefix="tr"%>
> <f:view>       
> 	<tr:document title="Test Stuff"> 
> 	<tr:form id="form">
>           <tr:panelGroupLayout layout="vertical">
>             <f:facet name="separator">
>               <tr:separator />
>             </f:facet>           
> 					  <tr:commandButton text="Do Something"
> 					                       id="myButton"
> 					                       partialSubmit="true"
> 					                       actionListener="#{employees.modSearchString}"/>
> 					
> 					  <tr:outputText value="#{employees.searchString}"
> 					                    partialTriggers="myButton"/>
>           </tr:panelGroupLayout>
>         </tr:form>
>  </tr:document>
> </f:view>
> and these methods are in the Employees class:
>     public void modSearchString(ActionEvent actionEvent)
>     {
> 	System.out.println("in modSearchString");
> 	this.searchString += "+1";
> 	System.out.println("search string moded to: " + searchString);
>     }
>     public String getSearchString()
>     {
> 	return searchString;
>     }
>     
>     public void setSearchString(String searchString)
>     {
> 	this.searchString = searchString;
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TRINIDAD-802) PPR doesn't work

Posted by "Bradley Cossey (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12540748 ] 

Bradley Cossey commented on TRINIDAD-802:
-----------------------------------------

Thanks for your prompt response.

Converting my jsp to an xml jsp did the trick. The PPR works fine this way. Do you consider this issue to be resolved now or do you intend to look into making the PPR work with plain jsp pages as well? It did work fine in 1.0.1.

> PPR doesn't work
> ----------------
>
>                 Key: TRINIDAD-802
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-802
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 1.0.2-core, 1.0.3-core
>         Environment: Windows XP, Jetty App Server
>            Reporter: Bradley Cossey
>            Priority: Critical
>
> The PPR functionality, as describer in Chapter 2 of the developers guide (Apache Trinidad Partial Page Rendering), doesn't work in Trinidad 1.0.2 and 1.0.3. No errors appear in the logging although Firebug notes the following errors:
> ["Invalid PPR response. The response-headers were:\nDate: Tue, 06 Nov 2007 15:57:34 GMT\nContent-Languag..."]Common1_0_2.js (line 10271)
> ["Error ", TypeError: a5 has no properties message=a5 has no properties, " delivering XML request status changed to ", function()]
> This is my jsp:
> <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
> <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
> <%@taglib uri="http://myfaces.apache.org/trinidad/html" prefix="trh"%>
> <%@taglib uri="http://myfaces.apache.org/trinidad" prefix="tr"%>
> <f:view>       
> 	<tr:document title="Test Stuff"> 
> 	<tr:form id="form">
>           <tr:panelGroupLayout layout="vertical">
>             <f:facet name="separator">
>               <tr:separator />
>             </f:facet>           
> 					  <tr:commandButton text="Do Something"
> 					                       id="myButton"
> 					                       partialSubmit="true"
> 					                       actionListener="#{employees.modSearchString}"/>
> 					
> 					  <tr:outputText value="#{employees.searchString}"
> 					                    partialTriggers="myButton"/>
>           </tr:panelGroupLayout>
>         </tr:form>
>  </tr:document>
> </f:view>
> and these methods are in the Employees class:
>     public void modSearchString(ActionEvent actionEvent)
>     {
> 	System.out.println("in modSearchString");
> 	this.searchString += "+1";
> 	System.out.println("search string moded to: " + searchString);
>     }
>     public String getSearchString()
>     {
> 	return searchString;
>     }
>     
>     public void setSearchString(String searchString)
>     {
> 	this.searchString = searchString;
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TRINIDAD-802) PPR doesn't work

Posted by "Andrew Robinson (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12540495 ] 

Andrew Robinson commented on TRINIDAD-802:
------------------------------------------

You may also want to try to flush your browser's cache

> PPR doesn't work
> ----------------
>
>                 Key: TRINIDAD-802
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-802
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 1.0.2-core, 1.0.3-core
>         Environment: Windows XP, Jetty App Server
>            Reporter: Bradley Cossey
>            Priority: Critical
>
> The PPR functionality, as describer in Chapter 2 of the developers guide (Apache Trinidad Partial Page Rendering), doesn't work in Trinidad 1.0.2 and 1.0.3. No errors appear in the logging although Firebug notes the following errors:
> ["Invalid PPR response. The response-headers were:\nDate: Tue, 06 Nov 2007 15:57:34 GMT\nContent-Languag..."]Common1_0_2.js (line 10271)
> ["Error ", TypeError: a5 has no properties message=a5 has no properties, " delivering XML request status changed to ", function()]
> This is my jsp:
> <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
> <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
> <%@taglib uri="http://myfaces.apache.org/trinidad/html" prefix="trh"%>
> <%@taglib uri="http://myfaces.apache.org/trinidad" prefix="tr"%>
> <f:view>       
> 	<tr:document title="Test Stuff"> 
> 	<tr:form id="form">
>           <tr:panelGroupLayout layout="vertical">
>             <f:facet name="separator">
>               <tr:separator />
>             </f:facet>           
> 					  <tr:commandButton text="Do Something"
> 					                       id="myButton"
> 					                       partialSubmit="true"
> 					                       actionListener="#{employees.modSearchString}"/>
> 					
> 					  <tr:outputText value="#{employees.searchString}"
> 					                    partialTriggers="myButton"/>
>           </tr:panelGroupLayout>
>         </tr:form>
>  </tr:document>
> </f:view>
> and these methods are in the Employees class:
>     public void modSearchString(ActionEvent actionEvent)
>     {
> 	System.out.println("in modSearchString");
> 	this.searchString += "+1";
> 	System.out.println("search string moded to: " + searchString);
>     }
>     public String getSearchString()
>     {
> 	return searchString;
>     }
>     
>     public void setSearchString(String searchString)
>     {
> 	this.searchString = searchString;
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TRINIDAD-802) PPR doesn't work

Posted by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12540762 ] 

Matthias Weßendorf commented on TRINIDAD-802:
---------------------------------------------

Possible to delay this to a 1.0.5-SNAP ?

> PPR doesn't work
> ----------------
>
>                 Key: TRINIDAD-802
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-802
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 1.0.2-core, 1.0.3-core
>         Environment: Windows XP, Jetty App Server
>            Reporter: Bradley Cossey
>            Priority: Critical
>
> The PPR functionality, as describer in Chapter 2 of the developers guide (Apache Trinidad Partial Page Rendering), doesn't work in Trinidad 1.0.2 and 1.0.3. No errors appear in the logging although Firebug notes the following errors:
> ["Invalid PPR response. The response-headers were:\nDate: Tue, 06 Nov 2007 15:57:34 GMT\nContent-Languag..."]Common1_0_2.js (line 10271)
> ["Error ", TypeError: a5 has no properties message=a5 has no properties, " delivering XML request status changed to ", function()]
> This is my jsp:
> <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
> <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
> <%@taglib uri="http://myfaces.apache.org/trinidad/html" prefix="trh"%>
> <%@taglib uri="http://myfaces.apache.org/trinidad" prefix="tr"%>
> <f:view>       
> 	<tr:document title="Test Stuff"> 
> 	<tr:form id="form">
>           <tr:panelGroupLayout layout="vertical">
>             <f:facet name="separator">
>               <tr:separator />
>             </f:facet>           
> 					  <tr:commandButton text="Do Something"
> 					                       id="myButton"
> 					                       partialSubmit="true"
> 					                       actionListener="#{employees.modSearchString}"/>
> 					
> 					  <tr:outputText value="#{employees.searchString}"
> 					                    partialTriggers="myButton"/>
>           </tr:panelGroupLayout>
>         </tr:form>
>  </tr:document>
> </f:view>
> and these methods are in the Employees class:
>     public void modSearchString(ActionEvent actionEvent)
>     {
> 	System.out.println("in modSearchString");
> 	this.searchString += "+1";
> 	System.out.println("search string moded to: " + searchString);
>     }
>     public String getSearchString()
>     {
> 	return searchString;
>     }
>     
>     public void setSearchString(String searchString)
>     {
> 	this.searchString = searchString;
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TRINIDAD-802) PPR doesn't work

Posted by "Max Starets (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12540760 ] 

Max Starets commented on TRINIDAD-802:
--------------------------------------

We have to fix PPR for plain JSPs. We switched to XML-based PPR recently, and that's when the issue started occurring.  The fix would filter out content written by the JSP engine until XML document is started. Client-side fix is also possible.

> PPR doesn't work
> ----------------
>
>                 Key: TRINIDAD-802
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-802
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 1.0.2-core, 1.0.3-core
>         Environment: Windows XP, Jetty App Server
>            Reporter: Bradley Cossey
>            Priority: Critical
>
> The PPR functionality, as describer in Chapter 2 of the developers guide (Apache Trinidad Partial Page Rendering), doesn't work in Trinidad 1.0.2 and 1.0.3. No errors appear in the logging although Firebug notes the following errors:
> ["Invalid PPR response. The response-headers were:\nDate: Tue, 06 Nov 2007 15:57:34 GMT\nContent-Languag..."]Common1_0_2.js (line 10271)
> ["Error ", TypeError: a5 has no properties message=a5 has no properties, " delivering XML request status changed to ", function()]
> This is my jsp:
> <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
> <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
> <%@taglib uri="http://myfaces.apache.org/trinidad/html" prefix="trh"%>
> <%@taglib uri="http://myfaces.apache.org/trinidad" prefix="tr"%>
> <f:view>       
> 	<tr:document title="Test Stuff"> 
> 	<tr:form id="form">
>           <tr:panelGroupLayout layout="vertical">
>             <f:facet name="separator">
>               <tr:separator />
>             </f:facet>           
> 					  <tr:commandButton text="Do Something"
> 					                       id="myButton"
> 					                       partialSubmit="true"
> 					                       actionListener="#{employees.modSearchString}"/>
> 					
> 					  <tr:outputText value="#{employees.searchString}"
> 					                    partialTriggers="myButton"/>
>           </tr:panelGroupLayout>
>         </tr:form>
>  </tr:document>
> </f:view>
> and these methods are in the Employees class:
>     public void modSearchString(ActionEvent actionEvent)
>     {
> 	System.out.println("in modSearchString");
> 	this.searchString += "+1";
> 	System.out.println("search string moded to: " + searchString);
>     }
>     public String getSearchString()
>     {
> 	return searchString;
>     }
>     
>     public void setSearchString(String searchString)
>     {
> 	this.searchString = searchString;
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TRINIDAD-802) PPR doesn't work

Posted by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12541040 ] 

Matthias Weßendorf commented on TRINIDAD-802:
---------------------------------------------

Sure that this is a serious issue, I am like Andrew. No issues with Facelets and the 1.0.3 / 104-SNAP

Do you mind to upload a simple test-case ?

> PPR doesn't work
> ----------------
>
>                 Key: TRINIDAD-802
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-802
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 1.0.2-core, 1.0.3-core
>         Environment: Windows XP, Jetty App Server
>            Reporter: Bradley Cossey
>            Priority: Critical
>
> The PPR functionality, as describer in Chapter 2 of the developers guide (Apache Trinidad Partial Page Rendering), doesn't work in Trinidad 1.0.2 and 1.0.3. No errors appear in the logging although Firebug notes the following errors:
> ["Invalid PPR response. The response-headers were:\nDate: Tue, 06 Nov 2007 15:57:34 GMT\nContent-Languag..."]Common1_0_2.js (line 10271)
> ["Error ", TypeError: a5 has no properties message=a5 has no properties, " delivering XML request status changed to ", function()]
> This is my jsp:
> <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
> <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
> <%@taglib uri="http://myfaces.apache.org/trinidad/html" prefix="trh"%>
> <%@taglib uri="http://myfaces.apache.org/trinidad" prefix="tr"%>
> <f:view>       
> 	<tr:document title="Test Stuff"> 
> 	<tr:form id="form">
>           <tr:panelGroupLayout layout="vertical">
>             <f:facet name="separator">
>               <tr:separator />
>             </f:facet>           
> 					  <tr:commandButton text="Do Something"
> 					                       id="myButton"
> 					                       partialSubmit="true"
> 					                       actionListener="#{employees.modSearchString}"/>
> 					
> 					  <tr:outputText value="#{employees.searchString}"
> 					                    partialTriggers="myButton"/>
>           </tr:panelGroupLayout>
>         </tr:form>
>  </tr:document>
> </f:view>
> and these methods are in the Employees class:
>     public void modSearchString(ActionEvent actionEvent)
>     {
> 	System.out.println("in modSearchString");
> 	this.searchString += "+1";
> 	System.out.println("search string moded to: " + searchString);
>     }
>     public String getSearchString()
>     {
> 	return searchString;
>     }
>     
>     public void setSearchString(String searchString)
>     {
> 	this.searchString = searchString;
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (TRINIDAD-802) PPR doesn't work

Posted by "Andrew Robinson (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/TRINIDAD-802?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Robinson resolved TRINIDAD-802.
--------------------------------------

       Resolution: Cannot Reproduce
    Fix Version/s: 1.0.10-core

Works fine when I run the provided code in the trinidad-demo version 1.0.10-SNAPSHOT

> PPR doesn't work
> ----------------
>
>                 Key: TRINIDAD-802
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-802
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 1.0.2-core, 1.0.3-core
>         Environment: Windows XP, Jetty App Server
>            Reporter: Bradley Cossey
>            Assignee: Andrew Robinson
>            Priority: Critical
>             Fix For: 1.0.10-core
>
>
> The PPR functionality, as describer in Chapter 2 of the developers guide (Apache Trinidad Partial Page Rendering), doesn't work in Trinidad 1.0.2 and 1.0.3. No errors appear in the logging although Firebug notes the following errors:
> ["Invalid PPR response. The response-headers were:\nDate: Tue, 06 Nov 2007 15:57:34 GMT\nContent-Languag..."]Common1_0_2.js (line 10271)
> ["Error ", TypeError: a5 has no properties message=a5 has no properties, " delivering XML request status changed to ", function()]
> This is my jsp:
> <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
> <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
> <%@taglib uri="http://myfaces.apache.org/trinidad/html" prefix="trh"%>
> <%@taglib uri="http://myfaces.apache.org/trinidad" prefix="tr"%>
> <f:view>       
> 	<tr:document title="Test Stuff"> 
> 	<tr:form id="form">
>           <tr:panelGroupLayout layout="vertical">
>             <f:facet name="separator">
>               <tr:separator />
>             </f:facet>           
> 					  <tr:commandButton text="Do Something"
> 					                       id="myButton"
> 					                       partialSubmit="true"
> 					                       actionListener="#{employees.modSearchString}"/>
> 					
> 					  <tr:outputText value="#{employees.searchString}"
> 					                    partialTriggers="myButton"/>
>           </tr:panelGroupLayout>
>         </tr:form>
>  </tr:document>
> </f:view>
> and these methods are in the Employees class:
>     public void modSearchString(ActionEvent actionEvent)
>     {
> 	System.out.println("in modSearchString");
> 	this.searchString += "+1";
> 	System.out.println("search string moded to: " + searchString);
>     }
>     public String getSearchString()
>     {
> 	return searchString;
>     }
>     
>     public void setSearchString(String searchString)
>     {
> 	this.searchString = searchString;
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.