• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

s:optiontransferselect odd rendering on submit to action

 
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using 3 s:optiontransferselect on one form with struts 2.1.8. There are probable 500 or so select items between the three of them. When the submit button is used to submit the form to the action you can see all of the select boxes being parsed and selected. It looks looks really odd and is very distracting from an end user point of view. Has anyone noticed this behavior?

IMHO it makes s:optiontransferselect unusable. I cant imagine any of my clients would think this behavior is normal. Im wondering if there might be a work around so that when submit is selected it doesnt parse every select box on the page and select every item in every select list?

Here is a sample of one of the select list boxes I am using:



I have attached a screen shot of what it looks like just before the form moves to the action. Since I dont want to attach video you will have to use your imagination to visualize all these option values rolling along and being selected.

Also noticed this behavior occurs when you use the back button after the action has executed.

Thanks
Earl
optiontransferselect.jpg
[Thumbnail for optiontransferselect.jpg]
 
Ranch Hand
Posts: 122
Mac IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This has to be browser behavior right? There is no way this is server side behavior? Did you try on different browsers to see if it behaves differently?

 
E Robb
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That was my original thought but after testing in Chrome & Firefox the behavior is the same. Looks really odd to to hit submit and watch all those option values run through being selected.
 
E Robb
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well it looks like struts utils select everything on submit so it looks like I need to rewrite the struts utils to get a cleaner method of selecting these. Between rewriting the struts utils, freemarker templates and css I could have probable had the site completed by now. I am really beginning to sour on MVC in favor of RAD deployment.


Added by struts which is why on submit you get to see the browser run through selecting all the options:

 
reply
    Bookmark Topic Watch Topic
  • New Topic