What is the formula for determining the URL of a (bookmarkable?) wicket Page, so I can set the Option’s VALUE attribute?


 [EMAIL PROTECTED] On Behalf Of Igor Vaynberg
Sent:
Tuesday, February 21, 2006 4:43 PM

sure, wicket just produces html, you can put a listview inside a <select> as long as it outputs <option> elements.

<select
 <option wicket:id="listview" valur="url"><span wicket:id="title"></option>
</select>

then add an attrib modifier to the listitem that adds the url into the value attribute and you are done.

-Igor

On 2/21/06, Frank Silbermann <[EMAIL PROTECTED]> wrote:

My application will have about 25 pages, all mutually linked.  If I listed all those links at the top of every page it would take up too much space.  I'd like something that would only show the links when requested, e.g. a drop-down box of links.  I'm not sure how to do that in Wicket.  The Wicket DropDownChoice seems inappropriate, since I'm not really choosing anything.

 

Would it be feasible to create in a panel an ordinary HTML drop-down, and use a ListView to populate it with, say, BookMarkable links?  That way if the user wanted to select another page, he'd have to click on the drop-down to show them, but otherwise they'd be out of the way.

 

/Frank

 

Reply via email to