On Thu, 18 Feb 2010 13:40:08 -0200, Angelo Chen <angelochen...@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-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to