[Trinidad] polling mechanism

2009-07-21 Thread Robin Müller-Bady
Dear List, i have a problem with the tr:poll tag. I use it to update contents of a tr:table data. My problem is, that everytime i send an action to the server or submit the form, the poll repeats the previous action. In case i send the form and update the table, the poll starts to ask my

Re: [Trinidad] polling mechanism

2009-07-21 Thread Max Starets
Robin, Are you saying that you are getting the standard browser dialog asking whether data should be re-posted? That would happen only if the page is being refreshed. Perhaps something wrong is happening with the PPR request. I see one problem in your page - the html tag should not be there.

Re: [Trinidad] polling mechanism

2009-07-21 Thread Robin Müller-Bady
Hey, i used this tag, because its not possible to use jsp:directive.page contentType=text/html;charset=utf-8/ in my project. So i decided to use the html-tag in order to get my project running. One important information is, that i need to use Apache MyFaces Trinidad 1.0.10 and JSF 1.1,

Re: [Trinidad] polling mechanism

2009-07-21 Thread Max Starets
Robin, I do not understand how having the html tag helps you with setting the content type... tr:document will output the html tag even in Trinidad 1.0.10. When you look at the generated source (View-Source), do you see two html tags? Max Robin Müller-Bady wrote: Hey, i used this tag,

Re: [Trinidad] polling mechanism

2009-07-21 Thread Robin Müller-Bady
Hi, in case i omit the html tag, i get errors about /head and /html tags. Also the poll does not work, but the fields get rendered. I tried to find a workaouround to be able to use jsp instead of jspx. But my problem is the same on the Apache MyFaces Trinidad Demo v.1.0.10, so i think the

Re: [Trinidad] polling mechanism

2009-07-21 Thread Matthias Wessendorf
what errors ? By when correctly using the tr:document it should (it does) generate proper HTML Question, the demo polling demo does not work on your server, but does it work on jetty ? (mvn jetty:run -PjettyConfig (on the trinidad-demo project)) -Matthias On Tue, Jul 21, 2009 at 4:50 PM, Robin

Re: [Trinidad] polling mechanism

2009-07-21 Thread Max Starets
Robin, I see. So you are running into the old problem with the JSP engine rendering whitespace at the beginning of the PPR response with the JSPs. I do not have a proper workaround for you, but rendering html still seems like a wrong thing to do... So using jspx is absolutely not an option

Re: [Trinidad] polling mechanism

2009-07-21 Thread Matthias Wessendorf
On Tue, Jul 21, 2009 at 4:57 PM, Max Staretsmax.star...@oracle.com wrote: Robin, I see. So you are running into the old problem with the JSP engine rendering whitespace at the beginning of the PPR response with the JSPs. I do not have a proper workaround for you, but rendering html still

Re: [Trinidad] polling mechanism

2009-07-21 Thread Robin Müller-Bady
Hey, i dont even get jetty running on my system. (I dont have the jetty plugin for maven) I think that it would work with jspx, but i migrated a IBM JWL project to Trinidad, so there are some details like %-- jsf:pagecode language=java location=/src/pagecode/Chat.java --%%-- /jsf:pagecode --%