Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hidden for radio and multibox

 
Rauhl Roy
Ranch Hand
Posts: 401
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

If i want to maintaint hidden values for selected iteams of radio button, multibox what i should i do.
any code sample please
rahul
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not at all clear to me what it is you're trying to do. Could you explain it in greater detail?
 
Rauhl Roy
Ranch Hand
Posts: 401
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
How are you Mr. Merrill, hope all is well. Yes, I was talking about html:multibox, I want to maintian a hidden fields for all checked values for the multibox. Because when I come back from the other jsp pages, checked vauels of html:multibox are getting disappear.


regards,
rahul.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Raul,

I'm doing well, thanks.

Regarding your question: You shouldn't need to have a hidden value associated with an <html:multibox> because this tag will redisplay the value if you've coded it properly. The value it displays is associated with the Form bean property you specify in the property attribute of the tag. As long as the property is set, the appropriate boxes will show as checked.

If this isn't working for you, there's probably some type of error in the code. If you'd like help in debugging it, please post the relevant portions of the code.
 
Rauhl Roy
Ranch Hand
Posts: 401
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello mr Merrill , good morning,

CustomerPaymentMethodChangeStart.JSP iterate has this code

I am using the below line for multi box because when used form bean's string property array
<nested:multibox name="mediaOrder" property="orderid">

the selected multi boxes were not getting disappear even though i send the new request for same jsp while im in the same session.


my action code for retrive ing the multi box.



struts-config

i am displaying the selected check box values in an other page like this.

can you please tell me where i should make some changes in order to meet my requirement.

and one more doubt is that is it a coding convention to maintain request scope in struts-config.


thanks in advance

regards,
rahul
 
Rauhl Roy
Ranch Hand
Posts: 401
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Mr Merrill ,
is there any update on the problem mentioned here in this thread. If there is no solution this problem this may be a bug of struts. do not think so?

regards,

rahul
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic