• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 2 Dojo autocompleter not working in Struts 2.0.14?

 
Ashu Jain
Ranch Hand
Posts: 73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am able to implement autocompleter ( theme ajax) in struts 2.1 but unable to do so in 2.0.14

It says "struts-dogo-tags" not found. I am refering to http://struts.apache.org/2.0.14/docs/autocompleter.html

but there does not exist any jar for struts-dogo plugin in 2.0.14. Can you please suggest if it will work by including dogo plugin jar of 2.1. I can not change my application to struts 2.0
.

 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's because the Dojo tags (which are deprecated as of Struts 2.1) aren't a plugin in Struts 2.0.
 
Ashu Jain
Ranch Hand
Posts: 73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does that mean that i can NOT use autocompleter theme ajax in 2.0.* at all.

I thought people used to implement autocompleter earlier as well. it is just dojo tags moved to another jar ( plugin of dojo tags ).

I want to implement autocompleter theme ajax in 2.0.*. How to do that without dojo??

 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's in the core.
 
Ashu Jain
Ranch Hand
Posts: 73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But it does not seem to be working in 2.0.x

HelloWorld.java

ExampleSupport.java


struts.xml is as follows::



and HelloWorld.jsp



I have json plugin apart from struts core 2.0 in WEB-INF\lib

There is no error but it is still not working. What could be the problem.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See ItDoesntWorkIsUseless.

Turn the Ajax debugging on, also see if it says anything in the Firebug console.

I also edited your question's subject to make sense. See UseAMeaningfulSubjectLine.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic