The tag that pushes something on the stack should:
1) extend WebWorkTagSupport
2) do getStack().push(obj)

The tag that pulls something off the stack should:
1) extend WebWorkTagSupport
2) do getStack().findValue("top.someObjProp")

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Daniel Pfeifer
Sent: Tuesday, October 28, 2003 8:29 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [OS-webwork] Impossible to put values to the value stack

Well, by now I've gotten kind of desperate. Anything I tried so far,
failed.

The question now is: I have a tag which puts something to the stack.
Inside
the body of this tag I have another tag which is supposed to read out
the
parameter from the stack (I assume it would work by
[1].params.disableControl (added disableControl by
addParam("disableControl", Boolean.TRUE)), but this simply doesn't work.
:(

I'd be thankful for a code example if possible.

Thanks!
/Daniel

-----Original Message-----
From: Jason Carreira [mailto:[EMAIL PROTECTED]
Sent: den 27 oktober 2003 17:26
To: [EMAIL PROTECTED]
Subject: RE: [OS-webwork] Impossible to put values to the value stack


If you push something onto the stack, you won't find it with that name,
you'll then be able to access its properties transparently using the
property names in a findValue() call.

I'm not sure why you're getting a ClassCastException... Can you post a
stack trace?

Jason

> -----Original Message-----
> From: Daniel Pfeifer [mailto:[EMAIL PROTECTED] 
> Sent: Monday, October 27, 2003 11:22 AM
> To: '[EMAIL PROTECTED]'
> Subject: [OS-webwork] Impossible to put values to the value stack
> 
> 
> For some reason I am miserably failing to put a String on the 
> OgnlValueStack in an own tag (which extends WebWorkTagSupport).
> 
> I first tried it with getValueStack().setValue("disableControl",
> disableControlObject), but then I couldn't find 
> disableControl via findValue.
> 
> Now I try it via "push(disableControlObject)" but this causes 
> the RequestLifeCycleListener to throw a ClassCastException.
> 
> Any ideas?
> Thanks in advance,
> /Daniel
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: The SF.net Donation 
> Program. Do you like what SourceForge.net is doing for the 
> Open Source Community?  Make a contribution, and help us add 
> new features and functionality. Click here: 
> http://sourceforge.net/donate/ 
> _______________________________________________
> Opensymphony-webwork mailing list 
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 


-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork


-------------------------------------------------------
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 help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork


-------------------------------------------------------
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 help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to