Re: Struts 2 UI Tags and OGNL self reference

2009-05-08 Thread stanlick

Actually, what I am trying to accomplish is to pass/receive the Component
bean instance representing this tag as an argument to the OGNL expression. 
I am working with the component stack and would like to have this reference.

Scott

stanlick wrote:
 
 Sorry about that subject line, but I couldn't think of anything simpler. 
 Besides, this should cover about all the searches!  
 
 I am looking to pass a this reference into an OGNL expressions as
 follows:
 
 s:textfield key=name  readonly=applyRule(this)/
 
 Apparently this is not quite the right syntax though.  I have tried a few
 combinations and decided perhaps you have this on the tip of your finger.
 
 Peace,
 Scott
 

-- 
View this message in context: 
http://www.nabble.com/Struts-2-UI-Tags-and-OGNL-self-reference-tp23430564p23445290.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Struts 2 UI Tags and OGNL self reference

2009-05-08 Thread stanlick

s:textfield key=city readonly=applyRules(top)/

top returns the action!  It appears the component stack is added to the
value stack and is treated as a separate animal.  This UI request life-cycle
has me coiled up in the fetal position sucking my thumb!




Nils-Helge Garli wrote:
 
 If I understand your question correctly, are you looking for a
 reference to the tag itself? If so, why do you need it (I'm not sure
 it's possible at all)? If you're just looking for the current action,
 the expression 'top' might be what you're looking for.
 
 Nils-H
 
 On Thu, May 7, 2009 at 6:27 PM, stanlick stanl...@gmail.com wrote:

 Sorry about that subject line, but I couldn't think of anything simpler.
 Besides, this should cover about all the searches!

 I am looking to pass a this reference into an OGNL expressions as
 follows:

 s:textfield key=name  readonly=applyRule(this)/

 Apparently this is not quite the right syntax though.  I have tried a few
 combinations and decided perhaps you have this on the tip of your finger.

 Peace,
 Scott
 --
 View this message in context:
 http://www.nabble.com/Struts-2-UI-Tags-and-OGNL-self-reference-tp23430564p23430564.html
 Sent from the Struts - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org


 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Struts-2-UI-Tags-and-OGNL-self-reference-tp23430564p23448291.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Struts 2 UI Tags and OGNL self reference

2009-05-07 Thread stanlick

Sorry about that subject line, but I couldn't think of anything simpler. 
Besides, this should cover about all the searches!  

I am looking to pass a this reference into an OGNL expressions as follows:

s:textfield key=name  readonly=applyRule(this)/

Apparently this is not quite the right syntax though.  I have tried a few
combinations and decided perhaps you have this on the tip of your finger.

Peace,
Scott
-- 
View this message in context: 
http://www.nabble.com/Struts-2-UI-Tags-and-OGNL-self-reference-tp23430564p23430564.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Struts 2 UI Tags and OGNL self reference

2009-05-07 Thread Nils-Helge Garli Hegvik
If I understand your question correctly, are you looking for a
reference to the tag itself? If so, why do you need it (I'm not sure
it's possible at all)? If you're just looking for the current action,
the expression 'top' might be what you're looking for.

Nils-H

On Thu, May 7, 2009 at 6:27 PM, stanlick stanl...@gmail.com wrote:

 Sorry about that subject line, but I couldn't think of anything simpler.
 Besides, this should cover about all the searches!

 I am looking to pass a this reference into an OGNL expressions as follows:

 s:textfield key=name  readonly=applyRule(this)/

 Apparently this is not quite the right syntax though.  I have tried a few
 combinations and decided perhaps you have this on the tip of your finger.

 Peace,
 Scott
 --
 View this message in context: 
 http://www.nabble.com/Struts-2-UI-Tags-and-OGNL-self-reference-tp23430564p23430564.html
 Sent from the Struts - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org