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
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
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
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
--
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
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
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
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
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
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
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
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
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
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
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).
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
> -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
>
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
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.
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
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
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
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
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
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
25 matches
Mail list logo