You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Gunnar Eketrapp <gu...@gmail.com> on 2009/10/05 12:00:26 UTC

T5 / Form handling / Page property question

Hi!

I have a form page where i try to render the result view in the same page.

In my onSuccess() method I do the form processing and sets a flag to
indicate to
my TML that it should render the result instead of the form.

E.g.

Foo.java
========
@property
private boolean viewResult;

Foo.tml
=======
<t:if test="resultView>

   Display result!

<p:else>

   Display form!

</p:else

</t:if>

But the flag seems not the be set.

Obviously I have not grapsed how this works ...

Tapestry Security guide

Posted by Timo Westkämper <ti...@mysema.com>.
Hi.

Is there any guide on how to use the Tapestry Security module 
(org.trailsframework:tapestry-security)? I managed to integrate the 
module, but how do hook in the login, logout, remember me etc functionality?

Br,
Timo Westkämper.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5 / Form handling / Page property question

Posted by Gunnar Eketrapp <gu...@gmail.com>.
Thanks!

That was my thought and i just read somewhere that T5 make a client side
redirect for all form submissions.

/Gunnar

2009/10/5 Kristian Marinkovic <kr...@porsche.co.at>

> add a @Persist("flash") or just @Persist  onto your property
>
>
>
>
> Gunnar Eketrapp <gu...@gmail.com>
> 05.10.2009 12:00
> Bitte antworten an
> "Tapestry users" <us...@tapestry.apache.org>
>
>
> An
> Tapestry users <us...@tapestry.apache.org>
> Kopie
>
> Thema
> T5 / Form handling / Page property question
>
>
>
>
>
>
> Hi!
>
> I have a form page where i try to render the result view in the same page.
>
> In my onSuccess() method I do the form processing and sets a flag to
> indicate to
> my TML that it should render the result instead of the form.
>
> E.g.
>
> Foo.java
> ========
> @property
> private boolean viewResult;
>
> Foo.tml
> =======
> <t:if test="resultView>
>
>   Display result!
>
> <p:else>
>
>   Display form!
>
> </p:else
>
> </t:if>
>
> But the flag seems not the be set.
>
> Obviously I have not grapsed how this works ...
>
>


-- 
[Hem: 08-715 59 57, Mobil: 0708-52 62 90]
Allévägen 2A, 132 42 Saltsjö-Boo

Re: T5 / Form handling / Page property question

Posted by Kristian Marinkovic <kr...@porsche.co.at>.
add a @Persist("flash") or just @Persist  onto your property




Gunnar Eketrapp <gu...@gmail.com> 
05.10.2009 12:00
Bitte antworten an
"Tapestry users" <us...@tapestry.apache.org>


An
Tapestry users <us...@tapestry.apache.org>
Kopie

Thema
T5 / Form handling / Page property question






Hi!

I have a form page where i try to render the result view in the same page.

In my onSuccess() method I do the form processing and sets a flag to
indicate to
my TML that it should render the result instead of the form.

E.g.

Foo.java
========
@property
private boolean viewResult;

Foo.tml
=======
<t:if test="resultView>

   Display result!

<p:else>

   Display form!

</p:else

</t:if>

But the flag seems not the be set.

Obviously I have not grapsed how this works ...