You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by spamglik <sp...@gmail.com> on 2008/09/18 14:10:49 UTC
BeanEditForm with custom drop down.
Hi
I would like to create dropdown for my own class and I find it a bit
difficult.
I find some howtos on
http://wiki.apache.org/tapestry/Tapestry5HowToCreateAPropertyEditBlock
but it is still a bit unclear as well the examples are no longer available.
I am using BeanEditForm to display Task form :
<t:beaneditform bean="task" object="task">
</t:beaneditform>
while class Task is :
public class Task {
public String title;
public Priority priority;
public User owner;
public User assignee;
public String text;
(...)
Also using tutorial mention aboved I create :
public class AppPropertyEditBlocks ,
services/AppPropertyEditBlocks.tml ,
public class DropDownList
and update AppModule ...
I did not understand what is ValueSelectModel used for and how to use it. I
also do not have a clue how to tell beanEditForm that it would use this
component?
Anybody have a clue or an example?
kind regards
Mateusz
--
View this message in context: http://www.nabble.com/BeanEditForm-with-custom-drop-down.-tp19551413p19551413.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: BeanEditForm with custom drop down.
Posted by Jonathan Barker <jo...@gmail.com>.
Walk before you run.
Start with a "simple" select in a simple form, using a list of values to
give you your <select>.
Then take a look at:
http://wiki.apache.org/tapestry/Tapestry5SelectObject
also take a look at the references therein. There is also another Wiki
entry: http://wiki.apache.org/tapestry/Tapestry5AnotherSelectWithObjects
I'm not sure if those are totally up-to-date, but they should get you close.
After reading those, you should be able to get a form rendering using a list
of your custom objects.
THEN you can move on to incorporating that into BeanEditForm.
Jonathan
> -----Original Message-----
> From: spamglik [mailto:spamglik@gmail.com]
> Sent: Thursday, September 18, 2008 08:11
> To: users@tapestry.apache.org
> Subject: BeanEditForm with custom drop down.
>
>
> Hi
>
> I would like to create dropdown for my own class and I find it a bit
> difficult.
> I find some howtos on
>
> http://wiki.apache.org/tapestry/Tapestry5HowToCreateAPropertyEditBlock
>
> but it is still a bit unclear as well the examples are no longer
> available.
>
> I am using BeanEditForm to display Task form :
>
> <t:beaneditform bean="task" object="task">
>
> </t:beaneditform>
>
> while class Task is :
>
> public class Task {
>
> public String title;
> public Priority priority;
> public User owner;
> public User assignee;
> public String text;
>
> (...)
>
> Also using tutorial mention aboved I create :
> public class AppPropertyEditBlocks ,
> services/AppPropertyEditBlocks.tml ,
> public class DropDownList
> and update AppModule ...
>
> I did not understand what is ValueSelectModel used for and how to use it.
> I
> also do not have a clue how to tell beanEditForm that it would use this
> component?
>
> Anybody have a clue or an example?
>
> kind regards
> Mateusz
>
>
>
>
> --
> View this message in context: http://www.nabble.com/BeanEditForm-with-
> custom-drop-down.-tp19551413p19551413.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
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org