Re: [OS-webwork] ValueStack being unexpectedly replaced

2003-11-06 Thread Frederick N. Brier
Ok. Answered my own question, but should the TagUtils.getStack() check for an existing value stack in an existing ActionContext before creating one (which is, of course, empty)? Turns out that the Webwork2 Tags extend WebWorkTagSupport and WebWorkBodyTagSupport and utilize an accessor that cal

[OS-webwork] Webwork2 PushTag returns SKIP_BODY

2003-11-06 Thread Frederick N. Brier
Am I off base or should not the doEndTag() return EVAL_PAGE? --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us h

Re: [OS-webwork] a couple of bugs in the latest src of xwork/ww2

2003-11-06 Thread Ross Mason
Hi, I'm currently working with latest source of xwork and ww2 with varing levels of success... 1) There are a few classes in the the com.opensymphony.xwork.util package that are implementing webwork.action.Action instead of com.opensymphony.xwork.Action - which causes some exceptions straight out

Re: [OS-webwork] Add PushTag to WW1.3

2003-11-06 Thread boxed
Jason Carreira wrote: Ww:property still does the print in WW2... Ww:set can be used to set values into scopes (the other usage of ww:property in ww1.x) And still there is no tag that ONLY prints in WW1.x. Oh well, I have my own print tag that I use. Anders Hovmöller --

RE: [OS-webwork] Add PushTag to WW1.3

2003-11-06 Thread Jason Carreira
Ww:property still does the print in WW2... Ww:set can be used to set values into scopes (the other usage of ww:property in ww1.x) > -Original Message- > From: boxed [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 06, 2003 3:56 PM > To: [EMAIL PROTECTED] > Subject: Re: [OS-webwork] A

Re: [OS-webwork] Add PushTag to WW1.3

2003-11-06 Thread boxed
Dick Zetterberg wrote: Hi there, I would like to add a push tag to the 1.3 branch and I just want to check that there are no objections to this. Why do I want to add it when we can do the same with the property tag already? Because the property tag is inefficient when used for this purpose. This i

[OS-webwork] OGNL type converter for x.y input names

2003-11-06 Thread Paulo Silveira
Hello! I have a simple converter that works fine if I have the getter/setter directly in my action class public class MyAction extends ActionSupport { public void setCategories(Set categories) { } } MyAction-conversion.properites has: categories=br.com.CategoryConverter But, if I wan

Re: [OS-webwork] OGNL list question again

2003-11-06 Thread Jonas Eriksson
Yes, there are many possible solutions. Just a matter of taste. Jason Carreira wrote: You could have an anonymous subclass of OgnlList which expects a String[] in the set(int, Object) method and gets the first String and calls super.set(index, StrArray[0]) -Original Message- From: Jonas Er

RE: [OS-webwork] OGNL list question again

2003-11-06 Thread Jason Carreira
You could have an anonymous subclass of OgnlList which expects a String[] in the set(int, Object) method and gets the first String and calls super.set(index, StrArray[0]) > -Original Message- > From: Jonas Eriksson [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 06, 2003 11:55 AM > T

Re: [OS-webwork] OGNL list question again

2003-11-06 Thread Jonas Eriksson
Ok, thanks for the help. I didn't know about the "always use String[] in parameter map" thing. The number of input fields are dynamic in my view, and therefore I used the OgnlList. I didn't have any luck with adding add(String) or set(int, String) to my List, ognl just uses the set(int, Object o

Re: [OS-webwork] action reloading

2003-11-06 Thread Hani Suleiman
Ok! The default will be to have it off anyway, for backward compatibility. It has 0 impact when it's off. When it's on all that is different is a different JavaActionFactory is used. Dick Zetterberg said: > Ok, fine with me as long as it does not affect the stability/performance > when "production

RE: [OS-webwork] action reloading

2003-11-06 Thread Hani Suleiman
I had this working briefly in ww 1.3 but it broke due to some other change. I'll spend some time and try to get it going again. James Cook said: > What about reloading the configuration contexts? For example, if a > change to xwork.xml or components/xml also triggers a reload? > >> -Original M

Re: [OS-webwork] Dynamic redirect

2003-11-06 Thread Hani Suleiman
Now if only someone could put this in the wiki*nudging Dick* Dick Zetterberg said: > If you are using the released version of WW1.3 then it did not have > dynamic view mapping, however in your case I think you can make it dynamic > by using action chaining instead. > Make sure your action has

Re: [OS-webwork] action reloading

2003-11-06 Thread Dick Zetterberg
Ok, fine with me as long as it does not affect the stability/performance when "production environment" is configured. Cheers, Dick Zetterberg [EMAIL PROTECTED] - Original Message - From: "Hani Suleiman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 06, 2003 2:40

Re: [OS-webwork] Dynamic redirect

2003-11-06 Thread Dick Zetterberg
If you are using the released version of WW1.3 then it did not have dynamic view mapping, however in your case I think you can make it dynamic by using action chaining instead. Make sure your action has a public metod getUrl() that should return the view you wish to redirect to (a.jsp or b.jsp).

RE: [OS-webwork] action reloading

2003-11-06 Thread James Cook
What about reloading the configuration contexts? For example, if a change to xwork.xml or components/xml also triggers a reload? > -Original Message- > Behalf Of Hani Suleiman > > Not all containers support reloading of random classes. Resin does, > Orion will only reload modified servle

R: [OS-webwork] Dynamic redirect

2003-11-06 Thread Giovanni Formenti
> -Messaggio originale- > Da: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] conto di > Hani Suleiman > Inviato: giovedi 6 novembre 2003 14.45 > A: [EMAIL PROTECTED] > Oggetto: Re: [OS-webwork] Dynamic redirect > > > With both ww1 and 2, you can use variables in your actions.xml file >

Re: [OS-webwork] Dynamic redirect

2003-11-06 Thread Hani Suleiman
With both ww1 and 2, you can use variables in your actions.xml file Eg: redirect.action?url=${myurl} then in your action have a getMyurl() method. On Nov 6, 2003, at 8:35 AM, Giovanni Formenti wrote: Hallo! We need to redirect an action dynamically to a view different from that specificated by

Re: [OS-webwork] action reloading

2003-11-06 Thread Hani Suleiman
Not all containers support reloading of random classes. Resin does, Orion will only reload modified servlets or filters. Secondly, reloading the entire webapp can be quite slow if you have complex init on startup servlets. My 'hack' would just reload all actions, rather than the entire webapp.

[OS-webwork] Dynamic redirect

2003-11-06 Thread Giovanni Formenti
Hallo! We need to redirect an action dynamically to a view different from that specificated by SUCCESS (in the views.properties). Depending on some condition, the doExecute() method must redirect the user to a specific view (for example a.jsp if we have condition A or b.jsb if we have condition B s

[OS-webwork] ValueStack being unexpectedly replaced

2003-11-06 Thread Frederick N. Brier
Why would the value stack object change between tags in the same JSP? I am calling: ActionContext.getContext().getValueStack() in several tags. I print out the value each time: 1st tag: [EMAIL PROTECTED] 2nd tag: [EMAIL PROTECTED] 3rd tag: [EMAIL PROTECTED] The tag classes extend the standard

RE: [OS-webwork] Config browser?

2003-11-06 Thread Jason Carreira
Title: Message I'm going to be putting in Dag's updated config browser (minus the images) tonight or tomorrow... The example should show how  it works.   At some point I'll document it on the wiki (unless someone beats me to it) -Original Message-From: [EMAIL PROTECTED] [ma

[OS-webwork] Webwork Wiki...

2003-11-06 Thread bchoi
This is of very low importance and urgency. I'm just not sure if anyone is aware of it... I just noticed that loading http://wiki.opensymphony.com redirects to http://wiki.opensymphony.com:8080/space/start and then to http://wiki.opensymphony.com/space/start Is the extra redirect to port

Re: [OS-webwork] action reloading

2003-11-06 Thread Dick Zetterberg
What does the reloading mean really? That you can compile an action and Webwork will notice that it changed and update the class? How is this different from what the container would do if I tell it to detect changes to my classes? That it only reloads the changed class? Cheers, Dick Zetterberg

Re: [OS-webwork] OGNL list question again

2003-11-06 Thread John Patterson
Form values in the parameter map are always of type String[] even if they contain only one value. This is because you may return muliple values with the same name (ie checkboxs) from an html form. You do not need to use an OnglList here. When you use an OgnlList it is prepopulated with objects s