Re: Struts 2 Custom Tags & Custom Actions

2009-09-29 Thread Roger
> > Another approach would be to populate your select with ajax or just > use an ajax autocompleter. (just a thought) > > -Wes > OK - this is where I display the true depth of my ignorance - if I use an ajax call, how do I do that to an "independent" action? Regards Roger

Re: Struts 2 Custom Tags & Custom Actions

2009-09-29 Thread Wes Wannemacher
On Tue, Sep 29, 2009 at 4:27 PM, Roger wrote: >> > What I would like to know is if I can also "attach" a custom action to my >> > custom tag to populate the select options, without interfering with the >> > rest of the flow? So I would have a self contained "component".  My >> > limited understand

Re: Struts 2 Custom Tags & Custom Actions

2009-09-29 Thread Roger
> > What I would like to know is if I can also "attach" a custom action to my > > custom tag to populate the select options, without interfering with the > > rest of the flow? So I would have a self contained "component". My > > limited understanding of the Struts cycle suggests that once I'm int

Re: Struts 2 Custom Tags & Custom Actions

2009-09-29 Thread Wes Wannemacher
On Tue, Sep 29, 2009 at 4:03 PM, Roger wrote: > Hi > > Apologies for the following, I hope it makes sense. > > I'm currently trying to develop a web-app that makes extensive use of > elements in the UI. As I handed coded my n'th jsp implementation of > the same today I thought I'd break out the

Struts 2 Custom Tags & Custom Actions

2009-09-29 Thread Roger
Hi Apologies for the following, I hope it makes sense. I'm currently trying to develop a web-app that makes extensive use of elements in the UI. As I handed coded my n'th jsp implementation of the same today I thought I'd break out the tutorials and learn how to create a custom tag to do thi

S2: Validation not happening

2009-09-29 Thread maestro
I have searched and compared to no avail. This one has been stumping me for some time now. I'm trying to use the validation.xml. I have it working on one page and not on the other. Perhaps you can spot the error? struts.xml /WEB-INF/customer/update.jsp cust

Re: [ANN] Struts Annotations 1.0.5 Release

2009-09-29 Thread Musachy Barroso
a formality :) On Tue, Sep 29, 2009 at 9:33 AM, Greg Lindholm wrote: > Nice announcement, so what is it? > > On Tue, Sep 29, 2009 at 9:57 AM, Wes Wannemacher wrote: > >> The Apache Struts team is pleased to announce that Struts Annotations >> 1.0.5 is available as a General Availability release.

Re: [ANN] Struts Annotations 1.0.5 Release

2009-09-29 Thread Wes Wannemacher
It's one of the artifacts that we release. We use it to build the TLD that comes with the struts builds that contain TLDs. It's only interesting to a small number of people, but it's one of our artifacts, so I felt obligated to announce that it is released. :) -Wes On Tue, Sep 29, 2009 at 12:33 P

Re: [ANN] Struts Annotations 1.0.5 Release

2009-09-29 Thread Greg Lindholm
Nice announcement, so what is it? On Tue, Sep 29, 2009 at 9:57 AM, Wes Wannemacher wrote: > The Apache Struts team is pleased to announce that Struts Annotations > 1.0.5 is available as a General Availability release. The General > Availability designation is our highest quality grade. > > The r

Re: restful URL issue

2009-09-29 Thread Musachy Barroso
are you putting that in the @Namespace annotation? It will not work on the @Action annotation. musachy On Tue, Sep 29, 2009 at 8:49 AM, struts-restful wrote: > > Also I know that the default parameter is id but ideally i am trying to > create a url as follows > > /person/name/{id}/{anotherId}/te

Re: restful URL issue

2009-09-29 Thread struts-restful
Also I know that the default parameter is id but ideally i am trying to create a url as follows /person/name/{id}/{anotherId}/test-example struts-restful wrote: > > I amended my URL to be as follows then using the namespace pattern matcher > > /person/name/{id}/test-example > > but this no

Re: restful URL issue

2009-09-29 Thread struts-restful
I amended my URL to be as follows then using the namespace pattern matcher /person/name/{id}/test-example but this now maps the config as /person/name/{id}. How would I get rid of the {id} bit but still pass the parameter through? Thanks Musachy Barroso wrote: > > the namespace matcher, ad

JSON PlugIn exclude/include annotation

2009-09-29 Thread mailtolouis2020-struts
Hi, Can we use annotation for exclude/include properties in Struts2 JSON Plug In like FLEXJSON? Anyone done some comparison btw Struts2 JSON Plug In and FLEXJSON (or Struts2 Another JSON Plug In http://cwiki.apache.org/S2PLUGINS/2009/03/03/another-struts-2-json-plugin.html) ? Regards LV

Re: restful URL issue

2009-09-29 Thread Musachy Barroso
the namespace matcher, ad the name implies matches parameters only in the namespace (the part before the action). To map params after the action name, you have to use wildcards. Because this is confusing, we introduced the advanced regex patters which will sove all the cases, see this: http://cwik

Re: restful URL issue

2009-09-29 Thread struts-restful
Ok after some further investigating the problem appears to be when the server is starting up and it is building the namespaceActionConfig map. because my namespace on the action is set to /person/name/test-example/{id} when the action config is created the key is set to /person/name/test-example

Re: Convention Confusion

2009-09-29 Thread Musachy Barroso
does adding namespace="/" to the url tag make any difference? There is a good chance that it is related to "" vs "/" namespace. musachy On Tue, Sep 29, 2009 at 12:18 AM, RogerV wrote: > > Hi > > I'm having problems getting my head around how the convention plugin derives > it's URL's. In my jsp

Re: restful URL issue

2009-09-29 Thread struts-restful
Thanks for the help and your reply. i implemented the named pattern matcher but cant get it to work. I have the following config in my struts.xml On my action I added the namespace annotation for example @Namespace("/person/name/test-example/{id}") this uses the restActionMapper b

Re: File upload issue with Struts 2.1.6 (uploaded file is always null in action)

2009-09-29 Thread zsundeep
Hi Sameer, I have a sample code for file upload in Struts 2.1.6 here. This worked just fine for me. http://www.nabble.com/Unable-to-upload-files-in-Struts2-with-Spring-Security-filter-td25652380.html I was getting the file as null in action because of issue mentioned here http://www.nabble.com/W

[ANN] Struts Annotations 1.0.5 Release

2009-09-29 Thread Wes Wannemacher
The Apache Struts team is pleased to announce that Struts Annotations 1.0.5 is available as a General Availability release. The General Availability designation is our highest quality grade. The release is available from the central Maven repository under Group ID "org.apache.struts" and artifactI

combat JavaScript caching

2009-09-29 Thread Michael Finney
In order to combat JavaScript caching, I wish to have my JavaScript files served up where there is a version number in the url. I got the idea from: "Help with aggressive JavaScript caching" http://stackoverflow.com/questions/54475/help-with-aggressive-javascript-caching example: How can I do

how to use autocompleter tag? Please......

2009-09-29 Thread taj uddin
Hi All,       I am working on web application using struts 2.0.12 version. In my application there is a need to replace the select tag with autocompleter tag. I tried many ways using the list which i obtain from the action class and also tested with static list values but not able to acheive

how to use autocompleter tag?

2009-09-29 Thread taj uddin
Hi All,       I am working on web application using struts 2.0.12 version. In my application there is a need to replace the select tag with autocompleter tag. I tried many ways using the list which i obtain from the action class and also tested with static list values but not able to acheive

Convention Confusion

2009-09-29 Thread RogerV
Hi I'm having problems getting my head around how the convention plugin derives it's URL's. In my jsp I have this snippet which generates the HTML snippet Delete In my action I have the anotation @Action("deletegroup") public String delete() { return

Re: Problem with available Strus2 Releases

2009-09-29 Thread Lukasz Lenart
2009/9/29 Steven Yang : > So is 2.1.8 out but just not yet officially announced? > and does http://people.apache.org/builds/struts/2.1.8/ provide the final > version of 2.1.8? Yes, the voting is almost done, so it's just matter of few days (I hope ;-) Regards -- Lukasz http://www.lenart.org.pl/

Re: Problem with available Strus2 Releases

2009-09-29 Thread Steven Yang
So is 2.1.8 out but just not yet officially announced? and does http://people.apache.org/builds/struts/2.1.8/ provide the final version of 2.1.8? Thanks On Mon, Sep 28, 2009 at 9:16 PM, Wes Wannemacher wrote: > Keep an eye out ;) > > -Wes > > On Mon, Sep 28, 2009 at 9:08 AM, Greg Lindholm > wr