Re: Tapestry seems to delete object data

2009-10-23 Thread Thiago H. de Paula Figueiredo
Em Fri, 23 Oct 2009 19:10:59 -0200, Toby Hobson escreveu: Sorry Thiago .. you just beat me ;-) No need to apologize. Your explanation complements mine and was just a couple minutes late. :) -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://ww

Re: Tapestry seems to delete object data

2009-10-23 Thread cordenier christophe
Hi Can i add a point on activation/passivation to persist data between request ? Because i like so much this feature for stateless pages :) http://tapestry.apache.org/tapestry5.1/guide/pagenav.html Cheers Christophe 2009/10/23 Mite > > I made some efforts to solve it on my own at first, but t

Re: Tapestry seems to delete object data

2009-10-23 Thread Thiago H. de Paula Figueiredo
Em Fri, 23 Oct 2009 19:25:45 -0200, Mite escreveu: I made some efforts to solve it on my own at first, but that was not possible. It wouldn't have been fair to you guys if I immediately posted the question. You're right. Try yourself at first, then read documentation and search Google, fo

Re: Tapestry seems to delete object data

2009-10-23 Thread Mite
I made some efforts to solve it on my own at first, but that was not possible. It wouldn't have been fair to you guys if I immediately posted the question. Read you on the forums. Mite -- View this message in context: http://www.nabble.com/Tapestry-seems-to-delete-object-data-tp26033218p2603346

Re: Tapestry seems to delete object data

2009-10-23 Thread Thiago H. de Paula Figueiredo
Em Fri, 23 Oct 2009 19:19:44 -0200, Mite escreveu: Thank you guys. The problem is solved. You're welcome! I am beginner in this, and really like the concept of Tapestry. This problem gave me an hour of troubles, but now my love for the framework is back to 100%. :) It'll reach 120% wh

Re: Tapestry seems to delete object data

2009-10-23 Thread Toby Hobson
Sorry you spent an hour on that. In future please don't suffer in silence ... if you hit problems let us know and we'll try to help ... the guys on the mailing list don't bite ;-) 2009/10/23 Mite > > Thank you guys. The problem is solved. > I am beginner in this, and really like the concept of T

Re: Tapestry seems to delete object data

2009-10-23 Thread Mite
Thank you guys. The problem is solved. I am beginner in this, and really like the concept of Tapestry. This problem gave me an hour of troubles, but now my love for the framework is back to 100%. :) Thanks again. Mite -- View this message in context: http://www.nabble.com/Tapestry-seems-to-d

Re: Tapestry seems to delete object data

2009-10-23 Thread Toby Hobson
Sorry Thiago .. you just beat me ;-) 2009/10/23 Thiago H. de Paula Figueiredo > Em Fri, 23 Oct 2009 19:05:25 -0200, Mite escreveu: > > import org.apache.tapestry5.annotations.InjectPage; >> >> public class Index >> { >>private String message; >> > > Tapestry uses redirect-after-post, s

Re: Tapestry seems to delete object data

2009-10-23 Thread Toby Hobson
Hi Mike You need to make the param persistent. By default properties are not persisted between requests and what's actually happening here is a redirect after post, i.e. two requests This should get you on the right track: public class Second { @Persist("session") // or use @Persist("flas

Re: Tapestry seems to delete object data

2009-10-23 Thread Thiago H. de Paula Figueiredo
Em Fri, 23 Oct 2009 19:05:25 -0200, Mite escreveu: import org.apache.tapestry5.annotations.InjectPage; public class Index { private String message; Tapestry uses redirect-after-post, so the action request is not the same as the request that generates HTML. You'll need to persist th

Tapestry seems to delete object data

2009-10-23 Thread Mite
Hello to everyone on the forum. I have these two pages: - import org.apache.tapestry5.annotations.InjectPage; public class Index { private String message; @InjectPage private Second second;

Re: Comment in Tapestry 5 TML

2009-10-23 Thread Howard Lewis Ship
I think an Asset, for compatibility down the line; there may be changes to the public RenderSupport API and the (internal?) DocumentLinker API. On Fri, Oct 23, 2009 at 1:54 PM, Robert Zeigler wrote: > Would the href be a string, or would it be an Asset? > > Robert > > On Oct 22, 2009, at 10/225:3

Re: Comment in Tapestry 5 TML

2009-10-23 Thread Robert Zeigler
Would the href be a string, or would it be an Asset? Robert On Oct 22, 2009, at 10/225:34 PM , Howard Lewis Ship wrote: Just make them all final and we're onto something. On Thu, Oct 22, 2009 at 2:08 PM, Andreas Andreou wrote: Hey, that used to be called RelationBean in the old days :) I

Re: T5: how to update zone on dom load

2009-10-23 Thread Kalle Korhonen
This is an old thread and there are better ways to construct event links than manually crafting them (ComponentResources.createXXXLink...). However, if you just want it "both ways" - you've got some zones and ajax actionlinks but also might want to update them via Javascript, here's a simple way to

Re: [T4.1] UpdateComponent problems with Internet Explorer 7/8 only

2009-10-23 Thread ViceGripX
Thanks for the reply! I've fixed the problem but I'd thought I'd post what worked for anyone else with this issue. Also I'm using Tapestry 4.1.6... What I was doing was the following: Then updating like so: setUserId(newUserId); cycle.getResponseBuilder().updateComponent("userId"); This was

Re: T5: Weird problem with browser cache and component event redirect

2009-10-23 Thread Toby Hobson
I've had similar problems (caching in general). I was running a mixed T5/Spring MVC app so in the end I wrote a filter which set the various http headers and I then mapped certain requests to that filter. In the end I found that I needed to set quite a few cache related headers to get things workin

Re: AjaxFormLoop and Update/SubmitRow

2009-10-23 Thread Sven Homburg
no, you are not blind . the project team is lazy ;-) http://xircles.codehaus.org/projects/chenillekit with regards Sven Homburg Founder of the Chenille Kit Project http://www.chenillekit.org 2009/10/23 Ivano Luberti > Hey ChenilleKit guys ! > Am I blind or the demo link don't appear sho

T5: Weird problem with browser cache and component event redirect

2009-10-23 Thread Felix Gonschorek
Hi all, we're experiencing a weird problem here with a live system (big b2b enterprise shop frontend): Some users report that nothing happens when they click on links. We narrowed things down and found out that only component event links are affacted that do not redirect to another page, for

Re: Which service returns the eventContext?

2009-10-23 Thread Thiago H. de Paula Figueiredo
Em Fri, 23 Oct 2009 05:13:04 -0200, Stephan Windmüller escreveu: Thiago H. de Paula Figueiredo wrote: Hm, this does not work with forms. Is the POST data not part of the Request? It is the content of the request, as HTML is the content of a page render request. What do you mean with "c

Re: AjaxFormLoop and Update/SubmitRow

2009-10-23 Thread Ivano Luberti
Hey ChenilleKit guys ! Am I blind or the demo link don't appear show up on the project home page ? cordenier christophe ha scritto: > Hello > > I don't know if it fully answers to your needs, but have a look at this : > http://www.chenillekit.org/demo/tapcomp/inplacedemo > > Christophe. > > 2009/

Re: AjaxFormLoop and Update/SubmitRow

2009-10-23 Thread cordenier christophe
Hello I don't know if it fully answers to your needs, but have a look at this : http://www.chenillekit.org/demo/tapcomp/inplacedemo Christophe. 2009/10/23 alarmatwork > > Hi, > > AddRow and RemoveRow are nice features of AjaxFormLoop, but I would rather > use UpdateRow or SubmitRow functionali

Re: Re: Which service returns the eventContext?

2009-10-23 Thread igor . drobiazko
The implementation of ComponentEventLinkEncoder is only examining the requested path. http://tapestry.apache.org/tapestry5.1/apidocs/org/apache/tapestry5/services/Request.html#getPath%28%29 Since event context and page activation context are encoded into the patn it works fine. Form inputs ar

Re: Which service returns the eventContext?

2009-10-23 Thread Stephan Windmüller
Thiago H. de Paula Figueiredo wrote: >> Hm, this does not work with forms. Is the POST data not part of the >> Request? > It is the content of the request, as HTML is the content of a page render > request. What do you mean with "content"? How do I access this? Was ComponentEventLinkEncoder