Re: Login page + post login page .... OR Getting a page from a dispatcher

2010-02-07 Thread Geoff Callender
Hi Uli et al, Is there a neater way to tidier way to extract the activation context parameters from the Request than the way I'm doing it below? It assumes I've already extracted the pageName from the Request path. String path = request.getPath(); String[]

Re: [T5] Adding/removing entries to messages

2010-02-07 Thread Alexander Muthmann
Sorry, I missed the point, my solution only works for labels used in grids etc On 06.02.2010 13:51, Nuno Ferreira wrote: I'll definitely try that. And using a cache I could give my users the functionality to change at runtime the label translations, which I'm planning anyway since google

Re: Login page + post login page .... OR Getting a page from a dispatcher

2010-02-07 Thread Ulrich Stärk
There are several ways, depending on what you are doing. If inside a ComponentRequestHandler's handlePageRender() method, you can ask the PageRenderRequestParameters for getActivationContext(). If you are handling a component event in handleComponentEvent(), just ask the

Re: T4: forward browser to an external web site

2010-02-07 Thread Ivano Luberti
Yes I had already tought of a solution like taht but I was hoping for a clean tapestry solution like the you suggested me with the link. Thanks anyway. Would instead be possible with T5? Martin Strand ha scritto: For POST requests, your initial idea is the way to go: Of course I can return to

Re: T4: forward browser to an external web site

2010-02-07 Thread Martin Strand
This has nothing to do with Tapestry, it's how the HTTP protocol works. There's just no response you can send which tells the client to POST data to another URL. Instead you send a short program which performs the POST and hope your client executes that program - that's the script solution. On

Re: T4: forward browser to an external web site

2010-02-07 Thread Ivano Luberti
I know, but a was hoping for some kind of forward to external web site mechanism. It shouldn't be impossible to build something like that using HttpClient or some similar package Martin Strand ha scritto: This has nothing to do with Tapestry, it's how the HTTP protocol works. There's just no

Re: Login page + post login page .... OR Getting a page from a dispatcher

2010-02-07 Thread Geoff Callender
Thanks, I'll give that a try. BTW, the code I posted earlier doesn't work, but this seems to: String path = request.getPath(); String[] activationContextParams = path.substring(pageName.length() + 2).split(\\/); Link pageAfterLoginLink =

Updating Hibernate Entites

2010-02-07 Thread Dominik Gätjens
Hello List, i'm trying to update an Hibernate-Object but alway get an a different object with the same identifier value was already associated with the session: Exception. My Form-Code looks like: @Inject private ConfigurationDAO configDAO; @Persist @Property