How are you persisting your message ?

For a post request tapestry uses redirect after post and so if  you don't 
persist the message it will be lost. For such situations we have 
@Persist(PersistenceConstants.Flash) which stores the value in a session till 
it is read for the first time

Regards
Taha 

On Aug 13, 2011, at 4:11 PM, Gunnar Eketrapp <gunnar.eketr...@gmail.com> wrote:

> Hi!
> 
> I have zone inside a form in which I intend to give a response message to
> the user whereafter it is faded out.
> 
> I.e. "Your changes where saved ..."
> 
> Everything works like a charm except the fact that the message is only faded
> out each second time.
> 
> There are no javascript error reported in the console.
> 
> Surely I am missing something ...
> 
> T5 rocks by the way!  As if you didn't already know ....
> 
> Thanks in advance!
> Gunnar Eketrapp
> 
> 
>            <div id="transaction">
>                <t:form t:id="transactionForm" t:zone="transactionZone"
> class="input-form">
>                    <fieldset>
> 
>                    <t:zone t:id="transactionZone" id="transactionZone"
> t:update="fade">
>                            <t:if test="notice"><div
> class="notice">${notice}</div></t:if>
>                    </t:zone>
> 
>                    <table>
> 
> <tr><th>Ver</th><th>Motpart</th><th>Datum</th><th>Belopp</th><th>Typ</th></tr>
>                        <tr>
>                            <td><t:textfield name="verification" size="4"
> value="transaction.verification" /></td>
>                            <td><t:textfield t:id="counterpart"
> name="counterpart" size="20" value="transaction.counterpart" /></td>
>                            <td><t:textfield t:id="date" name="date"
> size="10" value="transaction.date" /></td>
>                            <td><t:textfield t:id="amount" name="amount"
> size="12" value="transaction.amount" /></td>
>                            <td><t:select name="type" model="typeModel"
> value="transaction.type" encoder="typeEncoder" /></td>
>                        </tr>
>                        <tr>
>                            <td
> colspan="5"><b>Notering:</b>&#160;<t:textfield t:id="note" name="note"
> size="80" value="transaction.note" /></td>
>                        </tr>
>                    </table>
>                    </fieldset>
>                    <p>
>                        <t:submit t:id="okTransaction" value="Spara" />
>                        <t:submit t:id="cancelTransaction" value="Tillbaka"
> />
>                    </p>
>                </t:form>
>            </div>

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

Reply via email to