• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dynamic field collapse issue in Form

 
Maria Laxmi
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am facing some problem related to dynamic fields in jsp page. I have couple of fields in form which get displayed when you select a radio button. For these fields individual <div> has been defined. The problem is if the radio button is selected and dynamic fields are available on the page and if there is any error on the page, page gets refreshed and all dynamic fields get disappeared again. To make it available I again have to click on radio button.

I think I do need to set some property in form tag but don't have any clue which one? Can any one suggest?

Thanks,
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64958
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A refresh is like wiping the chalkboard clean. You'll need to remember and reset the state yourself. Perhaps you could use a cookie?
 
Maria Laxmi
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for quick reply.

I think it is not refresh. Sorry for unclear explanation. It is just if there is any error on the page, it keeps you on the same page and holds all value entered by the user .But dynamic fields are collapse upon error.

I hope I am clear this time.

THanks,
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic