Mapping Bean For View Layout

2009-01-14 Thread Gutemberg A. Da Silva
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(); }

Re: Mapping Bean For View Layout

2009-01-14 Thread Thiago HP
On Wed, Jan 14, 2009 at 11:24 AM, Gutemberg A. Da Silva sag@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

Re: Mapping Bean For View Layout

2009-01-14 Thread Gutemberg A. Da Silva
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 thiag...@gmail.com On Wed, Jan 14, 2009 at 11:24 AM, Gutemberg A. Da Silva sag@gmail.com wrote: how do I map 'bean' using the view layout? What do you mean by

Re: Mapping Bean For View Layout

2009-01-14 Thread Harald Geritzer
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

Re: Mapping Bean For View Layout

2009-01-14 Thread Gutemberg A. Da Silva
hi guy, thanks for your help. 2009/1/14 Harald Geritzer h.gerit...@gmail.com VIEW LAYOUT public class Teste { private BeanTeste bt; public Teste () { this.bt = new BeanTeste(); } getBt(); { .. } setBt(BeanTest bt) { .. } } you can