You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "squallmat ." <sq...@gmail.com> on 2014/08/25 16:55:46 UTC
Select with delimiters
Hi,
As said in title, I would like to know if it's possible to add special
values in a select list of objects, that are not "bind to encoder" like the
blank one, I need to add a delimitation in the list of my entities to
select.
Thanks.
Re: Select with delimiters
Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Fri, 29 Aug 2014 11:55:01 -0300, squallmat . <sq...@gmail.com>
wrote:
> I mean having different object types in a select, each titled by a field
> not associated with any object that make differentiation of the different
> types of object in the select.
Implement your own OptionModel and use whatever you want for label and
value and then pass them to a SelectModel.
--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Select with delimiters
Posted by "squallmat ." <sq...@gmail.com>.
I mean having different object types in a select, each titled by a field
not associated with any object that make differentiation of the different
types of object in the select.
2014-08-25 18:19 GMT+02:00 Lance Java <la...@googlemail.com>:
> Im not entirely sure what you mean by a delimeter here? Are you talking
> about the <optgroup> tag inside <select>?
> If so, you can use SelectModel.getOptionGroups()
>
> http://tapestry.apache.org/5.3/apidocs/org/apache/tapestry5/SelectModel.html#getOptionGroups()
>
> Or are you wanting to add your own custom html (images etc) to the option
> label?
>
>
>
> On 25 August 2014 15:55, squallmat . <sq...@gmail.com> wrote:
>
> > Hi,
> >
> > As said in title, I would like to know if it's possible to add special
> > values in a select list of objects, that are not "bind to encoder" like
> the
> > blank one, I need to add a delimitation in the list of my entities to
> > select.
> >
> > Thanks.
> >
>
Re: Select with delimiters
Posted by Lance Java <la...@googlemail.com>.
Im not entirely sure what you mean by a delimeter here? Are you talking
about the <optgroup> tag inside <select>?
If so, you can use SelectModel.getOptionGroups()
http://tapestry.apache.org/5.3/apidocs/org/apache/tapestry5/SelectModel.html#getOptionGroups()
Or are you wanting to add your own custom html (images etc) to the option
label?
On 25 August 2014 15:55, squallmat . <sq...@gmail.com> wrote:
> Hi,
>
> As said in title, I would like to know if it's possible to add special
> values in a select list of objects, that are not "bind to encoder" like the
> blank one, I need to add a delimitation in the list of my entities to
> select.
>
> Thanks.
>