You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "Gutemberg A. Da Silva" <sa...@gmail.com> on 2009/01/14 14:24:25 UTC
Mapping Bean For View Layout
how do I map 'bean' using the view layout?
Example:
<VIEW LAYOUT>
public class Teste {
private BeanTeste bt;
public Teste () {
this.bt = new BeanTeste();
}
}
<BEAN>
public class BeanTeste {
private String name;
getName();
setName();
}
<TML>
<t:form>
<input t:type="textfield" t:id="bt.name"/>
</t:form>
--
Gutemberg A. Da Silva
Re: Mapping Bean For View Layout
Posted by "Gutemberg A. Da Silva" <sa...@gmail.com>.
hi guy,
thanks for your help.
2009/1/14 Harald Geritzer <h....@gmail.com>
> <VIEW LAYOUT>
>> public class Teste {
>> private BeanTeste bt;
>>
>> public Teste () {
>> this.bt = new BeanTeste();
>> }
>>
>
> getBt(); { .. }
> setBt(BeanTest bt) { .. }
>
>
> }
>>
>
>
> you can use the value property:
>
> <input t:type="textfield" t:id="name" value="bt.name" size="50"
> maxlength="50" />
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Gutemberg A. Da Silva
Re: Mapping Bean For View Layout
Posted by Harald Geritzer <h....@gmail.com>.
> <VIEW LAYOUT>
> public class Teste {
> private BeanTeste bt;
>
> public Teste () {
> this.bt = new BeanTeste();
> }
getBt(); { .. }
setBt(BeanTest bt) { .. }
> }
you can use the value property:
<input t:type="textfield" t:id="name" value="bt.name" size="50" maxlength="50" />
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Mapping Bean For View Layout
Posted by "Gutemberg A. Da Silva" <sa...@gmail.com>.
when I say "view layout", I wanna say "view tie". I wanna acess one atribut
of the bean across of class of tml.
2009/1/14 Thiago HP <th...@gmail.com>
> On Wed, Jan 14, 2009 at 11:24 AM, Gutemberg A. Da Silva
> <sa...@gmail.com> wrote:
> > how do I map 'bean' using the view layout?
>
> What do you mean by view layout?
> By the way, take a look at the Tapestry forms tutorial:
> http://tapestry.apache.org/tapestry5/tutorial1/forms.html
>
> --
> Thiago
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Gutemberg A. Da Silva
Re: Mapping Bean For View Layout
Posted by Thiago HP <th...@gmail.com>.
On Wed, Jan 14, 2009 at 11:24 AM, Gutemberg A. Da Silva
<sa...@gmail.com> wrote:
> how do I map 'bean' using the view layout?
What do you mean by view layout?
By the way, take a look at the Tapestry forms tutorial:
http://tapestry.apache.org/tapestry5/tutorial1/forms.html
--
Thiago
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org