Thanks for the ideas, Jeremy. For my application, users will be rating services and will fill out a form that includes several text fields, a textarea, a dropdown, and so forth. They need to rate this service based on multiple criteria with a star-rating control for each criteria. I want star-rating controls that fallback to plain html dropdowns like the jquery-rating plugin does.
For this reason, I'm not sure that using AjaxFallbackLinks is the best solution. I don't want the user to lose any input into the text fields, textarea, dropdowns, etc. Maybe there would be a way to do it using AjaxSubmtiLink, but I don't think that it has Fallback capability for users without JS enabled. Plus, I don't want the feedback panel appearing if they chose to rate before completing other required fields in the form. If you have more ideas, I'd certainly like to hear them! Tauren On 7/3/07, Jeremy Thomerson <[EMAIL PROTECTED]> wrote: > I implemented one on our site (see example at: > http://www.texashuntfish.com/thf/app/journals/1089/Boone-Crockett-26th-Big-Game-Awards-2004-2006-Entries- > ). > > It's pretty straight-forward. Do you require that it is a form submission? > (i.e. - is it nested in another form, and the whole form must be submitted > to save data?). If not, I'd suggest staying away from a form altogether - > use AjaxFallbackLink.... Just paint your stars, each with an > AjaxFallbackLink, and then if it is an ajax request, do > target.addComponent(wholeStarPanel) to repaint the updated panel (if you > have recalculated the star rating, etc). > > Hope this helps a little. Sorry I didn't have more time for a better > example. > > Jeremy Thomerson > > > On 7/3/07, Tauren Mills <[EMAIL PROTECTED]> wrote: > > > > I need to allow users to rate things on a site, but as far as I can > > tell, none of the star rating controls I've seen do everything I want. > > I'd like the following: > > > > 1. Should have CSS or Javascript rollover support to highlight stars > > as mouse rolls over them. > > 2. Must be able to fallback to regular HTML form submission if > > javascript is not availble. > > 3. Needs to have multiple star rating controls in the same form on > > the same page. > > 4. Should be able to show the overall rating within the same control > > (as colored and grey stars) and still allow mouse rollover > > highlighting in another color. > > 5. Should have a display-only mode where the rating feature doesn't > > work, it just shows the current rating. > > > > The Wicket rating control doesn't include the mouse rollover support: > > > http://wicketstuff.org/wicket13/ajax/?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.ajax.builtin.RatingsPage > > > > This CSS only version is nice, but I don't think it does any sort of > > fallback to regular HTML: > > > http://komodomedia.com/blog/index.php/2007/01/20/css-star-rating-redux/ > > > > This JQuery-rating plugin is probably closest with really nice HTML > > fallback, but it looks like each control needs to be in its own form > > and I need multiple controls in a single form: > > http://sandbox.wilstuckey.com/jquery-ratings/ > > > > Before I go and start creating yet another star rating wicket control, > > does anyone know of other solutions that would work? Or any advice on > > which path to take? I'm tempted to start with the JQuery-rating > > solution and build a wicket control from it, but maybe adding rollover > > to the current wicket control would be better? > > > > 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 > > > > > > > ------------------------------------------------------------------------- > 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 > > ------------------------------------------------------------------------- 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