Do you mean a drop-down select (only one item shown), or a true combo box
where you can either type your own text or drop-down to select from a list?
The former is done by setting the size attribute to 1 on the select:
<select size="1">
<option>test</option>
<option>two</option>
<option>three</option>
</select>
In your template you could either do a prefixed attribute:
<item:selection item:size="1" />
or do it in your bind:
bind("item", ...,
"selection" -> SHtml.select(..., "size" -> "1"), ...
Derek
On Tue, Apr 7, 2009 at 12:31 AM, bilbo0s <[email protected]> wrote:
>
> Hello All,
>
> I just set up a quick Lift testing environment using Mongo
> as my data layer, and everything works really well! So
> first of all I wanted to congratulate everyone who worked
> on this software. I think you guys are on to something
> big.
>
> What I am writing about today, is to find out whether
> anyone here knows how to get a combo box to show up
> in a Lift form? Mind you I want a drop down combo box
> as opposed to a select box.
>
> On a more general note, is there some documentation
> or example code that shows how to use JQuery with
> Lift? This part of the Lift framework does seems sparsely
> very well commented. Actually, a few others do too.
> I wrote my own data binder because I could not get to
> good information on how to use 'record' instead of
> 'mapper'.
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---