You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Angelo Chen <an...@yahoo.com.hk> on 2010/02/18 16:40:08 UTC
t5: form and zone
Hi,
in the following code, the 'infoblock' will be rendered when the form is
submitted, but I'd like the 'infoblock' to be rendered before submitting as
well, how to achieve this? Thanks.
< t:form t:id="info" zone="zone1">
< input t:type="textfield" t:id="temp" t:value="tempvalue"
t:label="temp"/>
< input type="submit" value="Update" name="submit"/>
< t:errors/>
< /t:form>
< t:zone t:id="zone1" />
< t:block t:id="infoBlock">
< /t:block>
Block onSuccess() {
return infoBlock;
}
--
View this message in context: http://old.nabble.com/t5%3A-form-and-zone-tp27637837p27637837.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: t5: form and zone
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Thu, 18 Feb 2010 13:40:08 -0200, Angelo Chen
<an...@yahoo.com.hk> wrote:
> Hi,
Hi!
> in the following code, the 'infoblock' will be rendered when the form is
> submitted, but I'd like the 'infoblock' to be rendered before submitting
> as well, how to achieve this? Thanks.
Use the Delegate component:
<div t:type="Delegate" to="block:infoBlock"/>
>
>
> < t:form t:id="info" zone="zone1">
>
> < input t:type="textfield" t:id="temp" t:value="tempvalue"
> t:label="temp"/>
> < input type="submit" value="Update" name="submit"/>
> < t:errors/>
> < /t:form>
>
> < t:zone t:id="zone1" />
>
> < t:block t:id="infoBlock">
> < /t:block>
>
> Block onSuccess() {
> return infoBlock;
> }
>
>
>
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, software architect and developer, Ars Machina Tecnologia da
Informação Ltda.
Coordenador e professor da Especialização em Engenharia de Software com
Ênfase em Java da Faculdade Pitágoras
Consultor, desenvolvedor e instrutor em Java, Tapestry e Hibernate
Sócio, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org