I do that in this way:

                      <t:form t:id="bankAccountForm">
<t:beaneditor t:id="bankAccountEditor" add="bank, button">
<p:bank>
<label for="bank">
<t:outputraw value="message:bank-label" />
</label>
<t:select t:model="model" t:encoder="encoder"
 value="user.bankAccount.bank" />
</p:bank>
<p:button>
<div class="t-beaneditor-row">
<t:submit t:mixins="jquery/button" />
</div>
</p:button>
</t:beaneditor>
</t:form>

2012/6/1 stipenovi <stipenovok...@gmail.com>

> Can anyone help me:
>
> I have 2 entities: Description and Person with  unidirectional ManyToOne
> mapped relationship.
> Every description must have descriptionCreator (Person).
>
> I have this code in tml:
>
>
>
> I injected SelectModelFactory, and have SelectModel as @Property in page
> class. I also created PersonValueEncoder in separate class, added it in
> appModule...
> I setupRender i setup my selectModel with
> SelectModelFactory.create(personsList, "name") and checked with
> getOptions().size() that I have 3 options (I inserted 3 Persons in
> database).
>
> When call this form, it doesnt show select component, nor label, and there
> is no exceptions. So, everything is rendered OK, except that there is no
> select component for choosing Person for Description.
>
> Thanks
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Forms-tp2427184p5713581.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
Saludos,

-------------------------------------------------------------------
"Nada que se consiga sin pena y sin trabajo
 es verdaderamente valioso."
                                          Joseph Addison
-------------------------------------------------------------------

ICE Ernesto Arteaga Zavala
Ingeniero de Desarrollo

Reply via email to