Re: Migrate From xwrok to struts2

2009-02-15 Thread Frans Thamura
take a look this URL http://nagasakti.mervpolis.com/roller/pirate153/entry/webwork_to_struts2 On Sun, Feb 15, 2009 at 11:07 PM, kurniawan wrote: > hai all > > > I'm xwrok migration to struts2 and I have a problem in the java class, use of > ActionInvocation for what? > > > -

Migrate From xwrok to struts2

2009-02-15 Thread kurniawan
hai all I'm xwrok migration to struts2 and I have a problem in the java class, use of ActionInvocation for what? - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@s

Re: Hiding s:select control: SOLVED!

2009-02-15 Thread Rajeshwari Godbole
Hi, Thanks for your help, Sonny and Pawel. Specifying an id attribute did not work as that just hid the dropbox itself but still showed the label so that looked weird, but setting the theme to simple worked. So I had to write my own and 's and draw the table but I set the theme for all the tags i

Re: conventions @Result params support OGNL exprs

2009-02-15 Thread Dave Newton
Musachy Barroso wrote: That would make sense, I think redirectAction assumes that the location is the actionName by default, so adding parameters to it wouldn't work. Yeah, I had forgotten I was using "redirectAction" :/ Dave --

Re: OGNL ClassCastException

2009-02-15 Thread Musachy Barroso
It could be a bug, but I doubt it, I have used sets before and it works. Just as a test, try returning an empty HashSet from your method, instead of the proxy that it is returning now, and see if that works. musachy On Sun, Feb 15, 2009 at 7:14 PM, Adam Hardy wrote: > Correct me if I'm wrong but

Re: conventions @Result params support OGNL exprs

2009-02-15 Thread Musachy Barroso
That would make sense, I think redirectAction assumes that the location is the actionName by default, so adding parameters to it wouldn't work. musachy On Sun, Feb 15, 2009 at 7:08 PM, Dave Newton wrote: > Allen Lee wrote: >> >> Weird, it worked for me when I threw the URL in the location parame

Re: OGNL ClassCastException

2009-02-15 Thread Adam Hardy
Correct me if I'm wrong but this looks like a fundamental class mismatch. I can see in struts-default.xml that both Sets and Collections are configured to be accessed by the same PropertyAccessor. From debugging, I can see OGNL picks the PropertyAccessor for Collections to deal with my target

Re: conventions @Result params support OGNL exprs

2009-02-15 Thread Dave Newton
Allen Lee wrote: Weird, it worked for me when I threw the URL in the location parameter, i.e., @Result(name="success", type="redirect", location="view?resourceId=${resource.id}") What version are you using? It didn't work for me, but I was using redirectAction. Dave --

Re: xWork-2.1.3 available yet that fixes problem with Struts 2.1.6?

2009-02-15 Thread Wes Wannemacher
On Sunday 15 February 2009 18:34:05 phillips1021 wrote: > Dave and Wes - Thank you both for the replies. > > We can exclude the xWork 2.1.2 jar dependency from Struts 2.1.6 in our > pom.xml file for our projects as Wes suggests. However, it doesn't appear > that xWork 2.1.3 jar is available in the

Re: xWork-2.1.3 available yet that fixes problem with Struts 2.1.6?

2009-02-15 Thread phillips1021
Dave and Wes - Thank you both for the replies. We can exclude the xWork 2.1.2 jar dependency from Struts 2.1.6 in our pom.xml file for our projects as Wes suggests. However, it doesn't appear that xWork 2.1.3 jar is available in the repository as this fails: com.opensymphony xw

Re: conventions @Result params support OGNL exprs

2009-02-15 Thread Allen Lee
Weird, it worked for me when I threw the URL in the location parameter, i.e., @Result(name="success", type="redirect", location="view?resourceId=${resource.id}") On Sat, Feb 14, 2009 at 7:28 PM, Dave Newton wrote: > Musachy Barroso wrote: >> >> you can put the whole " view?resourceId=${resource.

Re: xWork-2.1.3 available yet that fixes problem with Struts 2.1.6?

2009-02-15 Thread Wes Wannemacher
On Sunday 15 February 2009 18:02:17 Dave Newton wrote: > phillips1021 wrote: > > Since we use Maven to manage our dependencies our projects using Struts > > 2.1.6 automatically receive xWork-2.1.2. > > Does declaring your own dependency for XWork (not xWork) 2.1.3 work, or > does it just retrieve

Re: xWork-2.1.3 available yet that fixes problem with Struts 2.1.6?

2009-02-15 Thread Dave Newton
phillips1021 wrote: Since we use Maven to manage our dependencies our projects using Struts 2.1.6 automatically receive xWork-2.1.2. Does declaring your own dependency for XWork (not xWork) 2.1.3 work, or does it just retrieve both? Does anyone know when xWork-2.1.3 will be available and w

xWork-2.1.3 available yet that fixes problem with Struts 2.1.6?

2009-02-15 Thread phillips1021
We have a problem with using Struts 2.1.6 because we use Maven to manage our dependencies and because we have Tomcat installed in a folder with spaces on our development computers. This causes a problem for xWork-2.1.2 as documented here: http://www.nabble.com/NPE-initializing-2.1.6-showcase-in-

Re: Struts2-Spring Integration Issue

2009-02-15 Thread Lukasz Lenart
2009/2/15 Sundararaman, Anand : > No it did not work with that change as well. > > Initially I was getting a "NoSuchMethodException" on the method activateUser > in the action class. Now after the change you suggested, it asked for an > "input" result type in the action class. If I give the "inpu

Re: how to disable struts2 form theme

2009-02-15 Thread Jiří Chaloupka
Hi Dave, thank you, by this way it is working and because of this it solves my problem :-) Jirka Dave Newton napsal(a): Jiří Chaloupka wrote: > [...] but in this case tags are not parsed. The theme shouldn't have anything to do with the property tag--it's possible, but my first as

Re: conventions @Result params support OGNL exprs

2009-02-15 Thread Musachy Barroso
Hum, I will have to check it out, now I am not sure. It migh be worth it adding a note to the wiki. musachy On Sat, Feb 14, 2009 at 9:28 PM, Dave Newton wrote: > Musachy Barroso wrote: >> >> you can put the whole " view?resourceId=${resource.id}" in the params. > > Just to clarify (as I ran into

Re: NoClassDefFoundError: javax.faces.event.ActionLdistener in sample app

2009-02-15 Thread Lukasz Lenart
2009/2/15 Enric Jaen : > Hello, > I get a NoClassDefFoundError when I try to start the sample > struts2-showcase-2.1.6 application : > > org.apache.myfaces.webapp.StartupServletContextListener > java.lang.NoClassDefFoundError: javax/faces/event/ActionListener > > I just copied the avaiable struts2

Re: how to disable struts2 form theme

2009-02-15 Thread Dave Newton
Jiří Chaloupka wrote: > [...] but in this case tags are not parsed. The theme shouldn't have anything to do with the property tag--it's possible, but my first assumption would be that something else is wrong. Are you accessing the page via an action, or are you accessing the JSP dir

NoClassDefFoundError: javax.faces.event.ActionLdistener in sample app

2009-02-15 Thread Enric Jaen
Hello, I get a NoClassDefFoundError when I try to start the sample struts2-showcase-2.1.6 application : org.apache.myfaces.webapp.StartupServletContextListener java.lang.NoClassDefFoundError: javax/faces/event/ActionListener I just copied the avaiable struts2-showcase-2.1.6.war into webapps. I

how to disable struts2 form theme

2009-02-15 Thread Jiří Chaloupka
Hallo, I need to use form with form attributes in more columns, which struts form does not allows me. I tried to use: /> /> ... but in this case tags are not parsed. Is there a waz how to completely disable theme? I did not found anything usable by google and in documentation :-/