Redirect before page render

2008-12-09 Thread Allex Juang
Hi, I have a Login page, and user will navigate to, say, Work page after success authenticate process. But when an authenticated user access Login page, I wish to just redirect to Work page. How can I do that? Allex J. - To

Re: Additional parameter for beaneditform

2008-12-09 Thread dhning
> Scenario: I am creating Projects and Issues under those projects and have a > question about passing the projectid around. > > Project.tml >Create > New Issue > > CreateIssue.tml > submitLabel="message:submitCreateIssueText" exclude="id" add="project"> > >

Re: What's the easiest way to implement two dependent select lists ?

2008-12-09 Thread Hugo Palma
Everything i used in the example is built into Tapestry except the OnEvent mixin that is provided by the library t5-components(http://87.193.218.134:8080/t5components/index.html). The javascript stuff is part of prototype that is already bundled with Tapestry. James Hillyerd wrote: Hugo, Tha

Re: passivate/activate

2008-12-09 Thread Luther Baker
Ah ... thanks James. I didn't realize that rendering a page would invoke onPassivate for the pages included via *link tags. I need to look for and watch this happen ... thanks very much. -Luther On Tue, Dec 9, 2008 at 1:38 AM, James Hillyerd <[EMAIL PROTECTED]> wrote: > (I'm still learning t

Re: What's the easiest way to implement two dependent select lists ?

2008-12-09 Thread James Hillyerd
Hugo, That's a great example. I think this belongs on the Wiki! Is the JSON stuff built into Tapestry, or do I need a third party library for that? -james On Tue, Dec 9, 2008 at 10:17 AM, Hugo Palma <[EMAIL PROTECTED]> wrote: > Here's how i'm doing this now: > > On the source select i'm using

Re: passivate/activate

2008-12-09 Thread Luther Baker
@Geoff Thanks for the URLs! In your first example, you are injecting _page2 into Forms1, setting the _firstName and _lastName ... and then returning that page instance. Then, in Forms2 you DEPEND on _firstName and _lastName already being set! Then, it seems like Forms2.onPassivate will return th

Re: passivate/activate

2008-12-09 Thread Geoff Callender
Oops. Thanks Eric. The links should be: http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/input/forms1 http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/navigation/onactivateandonpassivate/3 http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/navigation/whati

force a newline after doctype declaration

2008-12-09 Thread David Lee
is it possible to force a newline after a doctype declaration in tapestry 5? Preserve whitespace didn't work. in my layout template I have http://www.w3.org/TR/html4/strict.dtd";> but the generated output has on the same line as .

How can my RequestExceptionHandler distinguish event requests from page requests?

2008-12-09 Thread Franz Amador
My app responds to Ajax event requests with JSON. If the event handler throws an exception, I'd like to return a special JSON response with the error text. Can I decorate RequestExceptionHandler for this? To do so, I'd need to be able to tell that the request is an Ajax event request; if it isn

Re: What's the easiest way to implement two dependent select lists ?

2008-12-09 Thread Hugo Palma
Here's how i'm doing this now: On the source select i'm using the OnEvent mixin to fire the change event: The event listener method is then responsible for querying the database for the value to be set in the destination select: @OnEvent(component = "operator", value = "change") public JSO

Re: T5: Best practice for rendering a dynamic component

2008-12-09 Thread mad7777
Hi, I need to translate a WebObjects WOSwitchComponent to something equivalent in T5. I've looked at the BeanEditForm source, but I'm afraid I don't understand how this is working. The relevant bit seems to be: ... but maybe the key is actually somewhere in PropertyEditor? When you say "put

Re: Beaneditform example with ManyToMany ManyToOne

2008-12-09 Thread Alejandro Scandroli
Hi Toby > Is there an example of using the Beaneditform for ManyToMany and ManyToOne > associations? > Is there a more simple solution with less code then what is described in > "Adding New Property Editors" ? > Check Trails's main trunk. Check the "Recipe" example. It's still a work in progress

Re: [t5] onEvent mixin failure since 5.0.17 - wrong response sent back to server

2008-12-09 Thread Hugo Palma
Cool, thanks again. On Tue, Dec 9, 2008 at 3:22 PM, Sven Homburg <[EMAIL PROTECTED]>wrote: > also done > > 2008/12/9 Hugo Palma <[EMAIL PROTECTED]> > > > Thanks. > > One more thing, i noticed that the fix now forces the event listener > method > > to return a StreamResponse. If not a ClassCastExc

T5 Dynamic Component Ids and a comparison to JSP EL

2008-12-09 Thread joestelmach
I'm currently evaluating Tapestry 5 as a replacement for Struts/JSP, but have encountered a few difficulties that I presume are due to my lack of experience with the framework, so I'm looking or a bit of help. Is it possible to generate component ids from an expansion? For example: Tapest

Re: [t5] onEvent mixin failure since 5.0.17 - wrong response sent back to server

2008-12-09 Thread Sven Homburg
also done 2008/12/9 Hugo Palma <[EMAIL PROTECTED]> > Thanks. > One more thing, i noticed that the fix now forces the event listener method > to return a StreamResponse. If not a ClassCastException is thrown. > Shouldn't the component treat the same cases of return types from event > listener meth

Re: AW: AW: Advantages of various .tml storage locations?

2008-12-09 Thread Christian Edward Gruber
No problem. Turns out it works for pages too. I've moved my .tml files into /src/main/resources (since I don't mind the split) without difficulty. Christian. On 9-Dec-08, at 06:52 , Maximilian Weißböck wrote: Thanks Christian! Exactly what I was looking for! Max -Ursprüngliche Na

AW: AW: Advantages of various .tml storage locations?

2008-12-09 Thread Maximilian Weißböck
Thanks Christian! Exactly what I was looking for! Max > -Ursprüngliche Nachricht- > Von: Christian Edward Gruber [mailto:[EMAIL PROTECTED] > Gesendet: Freitag, 5. Dezember 2008 17:06 > An: Tapestry users > Betreff: Re: AW: Advantages of various .tml storage locations? > > It's not a fix

Re: [t5] onEvent mixin failure since 5.0.17 - wrong response sent back to server

2008-12-09 Thread Sven Homburg
done! named 5.0.18-SNAPSHOT but compiled against Tapestry 5.0.17 2008/12/9 Hugo Palma <[EMAIL PROTECTED]> > Can you guys upload a SNAPSHOT release or something with this fix ? > > On Mon, Dec 1, 2008 at 9:31 PM, Sven Homburg <[EMAIL PROTECTED] > >wrote: > > > changes submitted into trunk > > > >

Re: [t5] onEvent mixin failure since 5.0.17 - wrong response sent back to server

2008-12-09 Thread Hugo Palma
Thanks. One more thing, i noticed that the fix now forces the event listener method to return a StreamResponse. If not a ClassCastException is thrown. Shouldn't the component treat the same cases of return types from event listener methods as Tapestry does ? In my current usecase for example i want

Re: [t5] onEvent mixin failure since 5.0.17 - wrong response sent back to server

2008-12-09 Thread Hugo Palma
Can you guys upload a SNAPSHOT release or something with this fix ? On Mon, Dec 1, 2008 at 9:31 PM, Sven Homburg <[EMAIL PROTECTED]>wrote: > changes submitted into trunk > > 2008/12/1 Harald Geritzer <[EMAIL PROTECTED]> > > > > > seems t5components/onEvent changed its behaviour and always sends b

Re: Is someone going to Devoxx?

2008-12-09 Thread Jérôme BERNARD
So anyone at Devoxx? Jérôme On Fri, Dec 5, 2008 at 21:20, Oliver Geisser <[EMAIL PROTECTED]>wrote: > Hi, > > is someone going to Devoxx next week and would like to meet and chat a > little about Tapestry? > > As far as I know there is no Tapestry presentation scheduled but maybe we > can meet at

[ANN] tapestry5-appfuse

2008-12-09 Thread SergeEby
Hi, Version 1.0.1 of the tapestry5-appfuse project has been released. It's built with Tapestry 5.0.18 and has several improvements and bug fixes. See details here: http://code.google.com/p/tapestry5-appfuse/ Feedback would be appreciated. /Serge -- View this message in context: http://www.

Re: passivate/activate

2008-12-09 Thread Eric Ma
Very useful info, if you change http://localhost:8080 to http://jumpstart.doublenegative.com.au:8080 :-) Thanks Geoff for the great service to the community. Eric Geoff Callender-2 wrote: > > Do these links help? > > http://localhost:8080/jumpstart/examples/input/forms1 > http://localhost:80

Re: To save the state of the session

2008-12-09 Thread Andy Pahne
http://tapestry.apache.org/tapestry4.1/usersguide/state.html kk4Nabble schrieb: Thanks for the reply, Problem is I am using Tapestry 4.1.1. So Any ways to do it in this version . Thank you Ulrich Stärk wrote: Use the @Persist annotation on your page properties (see http://tapestry.apach

Re: passivate/activate

2008-12-09 Thread Geoff Callender
Do these links help? http://localhost:8080/jumpstart/examples/input/forms1 http://localhost:8080/jumpstart/examples/navigation/onactivateandonpassivate/3 http://localhost:8080/jumpstart/examples/navigation/whatiscalledandwhen Regardng pooling, you should assume the page instance you set up is

Re: To save the state of the session

2008-12-09 Thread Ulrich Stärk
Use @Persist and read the docs (user's guide and tapestry-annotations documentation). Uli kk4Nabble schrieb: Thanks for the reply, Problem is I am using Tapestry 4.1.1. So Any ways to do it in this version . Thank you Ulrich Stärk wrote: Use the @Persist annotation on your page properties (s