I'm wondering if I should "wicketize" this form, or leave it as a basic html form and would like to hear your thoughts.
I have a map of the USA with an imagemap. Clicking onto a state goes to another page that displays a list of metro areas in the state. <img src="img/map.png" usemap="#map" border="0" alt="US Map"/> <map id="map" name="map"> <area shape="poly" alt="Maine" coords="409,19,403,43,411,64,433,39,416,17" href="app/lookup/state/ME" title="Maine"/> <area shape="poly" alt="New Hampshire" coords="401,43,399,69,411,65" href="app/lookup/state/NH" title="New Hampshire"/> <area shape="poly" alt="Vermont" coords="400,47,388,48,393,70,398,69" href="app/lookup/state/VT" title="Vermont"/> ... </map> I did this by using a bookmarkable page with pageparameters: mountBookmarkablePage("/lookup", StateLookupPage.class); --- public StateLookupPage(PageParameters params) { super(params); String state = (String) params.get("state"); add(new Label("state",state)); } The main issue I have with this is I have hardcoded my servlet context ("app") into the HTML, so changing my web.xml will require lots of html edits. And I also want to have a drop down select of all states and have it get to the same place as clicking on the map. The following form using either post or get doesn't work: <form action="lookup" method="post" name="StateForm"> <select name="state" id="state"> <option selected="selected" value="">Choose State...</option> <option value="AL">Alabama</option> <option value="AK">Alaska</option> <option value="AZ">Arizona</option> ... </select> </form> So my first thought is to make the form a wicket form with a wicket DropDownChoice component, but then I'm unclear of the best way to make the imagemap go to the same place. There are about 70 polygons in the imagemap, and making them all wicket components seems overkill. Or is that really the best way to deal with this? Thanks, Tauren ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user