Question

This link helped me to perform autocompleter in struts2. Through this tag i could

A> Show list form database

B> Insert value in database which were not in list

All worked fined..

But, now i have to use struts2-jquery plugin to show that page containing *dojo tag* in a pop-up window. On doing so, the pop up window just appears, and the page is redirected to the form's action. This problem was solved when i removed the dojo tag-sx from the head of that page. Now the pop up is shown, but i can't insert value which are not in my list. i.e i can't perform the second option mentioned(B)

I've checked this showcase, but struts2-jquery autocompleter tag also couldn't fulfill my second option(B) as it adds an _widget in it's name field

How can i fulfill both option in my case? Thanks in advance

Was it helpful?

Solution

If you mean submit any value that was not originally in the autocompleter list then <sj:autocompleter> tag has forceValidOption attribute for that. See this issue for more information http://code.google.com/p/struts2-jquery/issues/detail?id=587.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top