• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with autocomplete.

 
vishnu vyasan
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

i am a newbie to Struts , I am facing two problems in an application.

I am using 1.3.8 for a application having a registration page with internationalization.

now

1) when the user gives all his details , the details are getting populated in to form bean. now when the user changes the language , the form should clear all the contents. is the form bean should unload from the memory. This is not happening, how could i do this?

2) how could i turn off the auto-complete property of struts html:text tag?


regards
vishnu
 
Sachin Joshi
Ranch Hand
Posts: 83
Java Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. You may need to use JavaScript reset() function for resetting all fields in HTML form. Here is one link I just picked from a quick google search JavaScript Reset

2. This is a example from Showcase application which should help you understand the Struts2 AJAX Autocomplete dropdown population on change event

I didnt understand what 1.3.8 is? Is this Struts version? or Java?
 
Sachin Joshi
Ranch Hand
Posts: 83
Java Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, I guess I didnt read your question completely. You probably are using struts 1.3.8.

Can you please post your code?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic