File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Dynamic field collapse issue in Form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Dynamic field collapse issue in Form" Watch "Dynamic field collapse issue in Form" New topic
Author

Dynamic field collapse issue in Form

Maria Laxmi
Ranch Hand

Joined: Aug 08, 2008
Posts: 40
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

Joined: Jan 10, 2002
Posts: 60782
    
  65

A refresh is like wiping the chalkboard clean. You'll need to remember and reset the state yourself. Perhaps you could use a cookie?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Maria Laxmi
Ranch Hand

Joined: Aug 08, 2008
Posts: 40
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,
 
 
subject: Dynamic field collapse issue in Form
 
Similar Threads
How to populate a value in text box
How i write the code so that at on submit as well as at onload we call same servlet i
java script remove element by id
logic:iterate ?? Urgent - please help!!!!
struts 2 validation problem