The moose likes Struts and the fly likes File and autocompleter tags doesn't work together Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "File and autocompleter tags doesn Watch "File and autocompleter tags doesn New topic
Author

File and autocompleter tags doesn't work together

Mike Cobelmach
Greenhorn

Joined: Jun 17, 2009
Posts: 19
Hi friends, I have problem with using tags s:file and sx:autocompleter together in one form. Without s:file tag are sx:autocompleters in same form working correctly. I can post some code here, but I think that it is general problem.

My version of Struts is 2.1.8.1.

Thank's for help.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Please see ItDoesntWorkIsUseless.
Mike Cobelmach
Greenhorn

Joined: Jun 17, 2009
Posts: 19
I have testStreets.jsp:



If I use this code with s:file tag, I get following values in autocompleter: {message, type, number} because of class StreetUrl.java (which generate Map<String, Integer> streets for autocompleter) is not called.

Then I get s:file tag out of testStreets.jsp and values for "street autocompleter" are generated correctly.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: File and autocompleter tags doesn't work together
 
Similar Threads
Jsp pages
Downlaod in Strut2
struts 2 file upload problem
Struts2 File Upload (Submit button)
Upload multiple files in jsp