RE: RE : Orthognal OGNL!

2007-07-09 Thread Big Stick
But it's a property on the Action! 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE : RE : Orthognal OGNL!

2007-07-09 Thread Ezequiel Puig
Have you tryed #yourproperty ?

If that doesn't work, can you send your code ?

Ezequiel.

-Message d'origine-
De : Big Stick [mailto:[EMAIL PROTECTED] 
Envoyé : lundi 9 juillet 2007 15:05
À : Struts Users Mailing List
Objet : RE: RE : Orthognal OGNL!

But it's a property on the Action! 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: RE : Orthognal OGNL!

2007-07-09 Thread Dave Newton
--- Big Stick [EMAIL PROTECTED] wrote:
 But it's a property on the Action! 

s:iterator.../ pushes each iteration onto the value
stack. So what's at the top then? Not the action (or
model), but each element of the iteration.

d.



   

Be a better Heartthrob. Get better relationship answers from someone who knows. 
Yahoo! Answers - Check it out. 
http://answers.yahoo.com/dir/?link=listsid=396545433

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: RE : Orthognal OGNL!

2007-07-09 Thread stanlick

There is no searching up the stack beyond the top?

On 7/9/07, Dave Newton [EMAIL PROTECTED] wrote:


--- Big Stick [EMAIL PROTECTED] wrote:
 But it's a property on the Action!

s:iterator.../ pushes each iteration onto the value
stack. So what's at the top then? Not the action (or
model), but each element of the iteration.

d.






Be a better Heartthrob. Get better relationship answers from someone who
knows. Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=listsid=396545433

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Scott
[EMAIL PROTECTED]


Re: RE : Orthognal OGNL!

2007-07-09 Thread cilquirm

the easiest solution would be to s:set the property name you want to
reference with a different name

s:set value=myprop name=mynewname/

and then access it in your loop under the new name.

s:iterator ...

 s:property value=#mynewname/

/s:iterator



stanlick wrote:
 
 There is no searching up the stack beyond the top?
 
 On 7/9/07, Dave Newton [EMAIL PROTECTED] wrote:

 --- Big Stick [EMAIL PROTECTED] wrote:
  But it's a property on the Action!

 s:iterator.../ pushes each iteration onto the value
 stack. So what's at the top then? Not the action (or
 model), but each element of the iteration.

 d.





 
 Be a better Heartthrob. Get better relationship answers from someone who
 knows. Yahoo! Answers - Check it out.
 http://answers.yahoo.com/dir/?link=listsid=396545433

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 
 -- 
 Scott
 [EMAIL PROTECTED]
 
 

-- 
View this message in context: 
http://www.nabble.com/Orthognal-OGNL%21-tf4048748.html#a11506986
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: RE : Orthognal OGNL!

2007-07-09 Thread Chris Pratt

Seems like you should be able to say

s:property value=#action.myattr/

But since there's no getAction in the ActionContext, I doubt that will
work.  Maybe it should be added?
 (*Chris*)

On 7/9/07, cilquirm [EMAIL PROTECTED] wrote:



the easiest solution would be to s:set the property name you want to
reference with a different name

s:set value=myprop name=mynewname/

and then access it in your loop under the new name.

s:iterator ...

s:property value=#mynewname/

/s:iterator



stanlick wrote:

 There is no searching up the stack beyond the top?

 On 7/9/07, Dave Newton [EMAIL PROTECTED] wrote:

 --- Big Stick [EMAIL PROTECTED] wrote:
  But it's a property on the Action!

 s:iterator.../ pushes each iteration onto the value
 stack. So what's at the top then? Not the action (or
 model), but each element of the iteration.

 d.







 Be a better Heartthrob. Get better relationship answers from someone
who
 knows. Yahoo! Answers - Check it out.
 http://answers.yahoo.com/dir/?link=listsid=396545433

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 --
 Scott
 [EMAIL PROTECTED]



--
View this message in context:
http://www.nabble.com/Orthognal-OGNL%21-tf4048748.html#a11506986
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: RE : Orthognal OGNL!

2007-07-09 Thread cilquirm


technically, if you knew the index of where the action was in your value
stack, you could use the index notation.
so you might want to try :

s:property value=[1].myattr/

assuming the action is the second root down.

but i do agree that'd it be nice to stuff the action into #action.


Chris Pratt wrote:
 
 Seems like you should be able to say
 
 s:property value=#action.myattr/
 
 But since there's no getAction in the ActionContext, I doubt that will
 work.  Maybe it should be added?
   (*Chris*)
 
 On 7/9/07, cilquirm [EMAIL PROTECTED] wrote:


 the easiest solution would be to s:set the property name you want to
 reference with a different name

 s:set value=myprop name=mynewname/

 and then access it in your loop under the new name.

 s:iterator ...

 s:property value=#mynewname/

 /s:iterator



 stanlick wrote:
 
  There is no searching up the stack beyond the top?
 
  On 7/9/07, Dave Newton [EMAIL PROTECTED] wrote:
 
  --- Big Stick [EMAIL PROTECTED] wrote:
   But it's a property on the Action!
 
  s:iterator.../ pushes each iteration onto the value
  stack. So what's at the top then? Not the action (or
  model), but each element of the iteration.
 
  d.
 
 
 
 
 
 
 
  Be a better Heartthrob. Get better relationship answers from someone
 who
  knows. Yahoo! Answers - Check it out.
  http://answers.yahoo.com/dir/?link=listsid=396545433
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  --
  Scott
  [EMAIL PROTECTED]
 
 

 --
 View this message in context:
 http://www.nabble.com/Orthognal-OGNL%21-tf4048748.html#a11506986
 Sent from the Struts - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 

-- 
View this message in context: 
http://www.nabble.com/Orthognal-OGNL%21-tf4048748.html#a11507650
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: RE : Orthognal OGNL!

2007-07-09 Thread Musachy Barroso

+1 for that :)

https://issues.apache.org/struts/browse/WW-2034

musachy

On 7/9/07, cilquirm [EMAIL PROTECTED] wrote:




technically, if you knew the index of where the action was in your value
stack, you could use the index notation.
so you might want to try :

s:property value=[1].myattr/

assuming the action is the second root down.

but i do agree that'd it be nice to stuff the action into #action.


Chris Pratt wrote:

 Seems like you should be able to say

 s:property value=#action.myattr/

 But since there's no getAction in the ActionContext, I doubt that will
 work.  Maybe it should be added?
   (*Chris*)

 On 7/9/07, cilquirm [EMAIL PROTECTED] wrote:


 the easiest solution would be to s:set the property name you want to
 reference with a different name

 s:set value=myprop name=mynewname/

 and then access it in your loop under the new name.

 s:iterator ...

 s:property value=#mynewname/

 /s:iterator



 stanlick wrote:
 
  There is no searching up the stack beyond the top?
 
  On 7/9/07, Dave Newton [EMAIL PROTECTED] wrote:
 
  --- Big Stick [EMAIL PROTECTED] wrote:
   But it's a property on the Action!
 
  s:iterator.../ pushes each iteration onto the value
  stack. So what's at the top then? Not the action (or
  model), but each element of the iteration.
 
  d.
 
 
 
 
 
 


  Be a better Heartthrob. Get better relationship answers from someone
 who
  knows. Yahoo! Answers - Check it out.
  http://answers.yahoo.com/dir/?link=listsid=396545433
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  --
  Scott
  [EMAIL PROTECTED]
 
 

 --
 View this message in context:
 http://www.nabble.com/Orthognal-OGNL%21-tf4048748.html#a11506986
 Sent from the Struts - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





--
View this message in context:
http://www.nabble.com/Orthognal-OGNL%21-tf4048748.html#a11507650
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Hey you! Would you help me to carry the stone? Pink Floyd


Re: RE : Orthognal OGNL!

2007-07-09 Thread stanlick

Thanks brother.  This is what I wound up doing, but it sure seemed weird!

Why should properties available to a page somehow be made invisible while
looping?


Parent Id: s:property value=model.parentId /  //works fine here!

s:set name=pid value=model.parentId scope=request/s:set  //GOOFY!

s:iterator value=notes

s:url id=url action=%{baseActionClass}_edit

   s:param name=model.parentId s:property value=#request.pid / /
s:param

/s:url

...  CRAZY!



s:a href=%{url}Edit/s:a



On 7/9/07, cilquirm [EMAIL PROTECTED] wrote:



the easiest solution would be to s:set the property name you want to
reference with a different name

s:set value=myprop name=mynewname/

and then access it in your loop under the new name.

s:iterator ...

s:property value=#mynewname/

/s:iterator



stanlick wrote:

 There is no searching up the stack beyond the top?

 On 7/9/07, Dave Newton [EMAIL PROTECTED] wrote:

 --- Big Stick [EMAIL PROTECTED] wrote:
  But it's a property on the Action!

 s:iterator.../ pushes each iteration onto the value
 stack. So what's at the top then? Not the action (or
 model), but each element of the iteration.

 d.







 Be a better Heartthrob. Get better relationship answers from someone
who
 knows. Yahoo! Answers - Check it out.
 http://answers.yahoo.com/dir/?link=listsid=396545433

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 --
 Scott
 [EMAIL PROTECTED]



--
View this message in context:
http://www.nabble.com/Orthognal-OGNL%21-tf4048748.html#a11506986
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Scott
[EMAIL PROTECTED]


Re: RE : Orthognal OGNL!

2007-07-09 Thread Dave Newton
--- [EMAIL PROTECTED] wrote:
 ...  CRAZY!

... STACK!

d.



  

Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel 
and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: RE : Orthognal OGNL!

2007-07-09 Thread Big Stick
I always thought a stack implied levels! Am I strange to think maybe the stack 
search should consider this capability? 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: RE : Orthognal OGNL!

2007-07-09 Thread Dave Newton
--- Big Stick [EMAIL PROTECTED] wrote:
 I always thought a stack implied levels! Am I
 strange to think maybe the stack search should
 consider this capability? 

I think you and Musachy have the right idea with an
#action (or whatever; I'd actually go for something
quicker to type) rather than a stack search;
technically it could be arbitrarily deep, and that
makes me nervous. But I'm naturally jittery.

(I actually thought there already *was* an #action
doohickey on the stack but it turns out that was
something I had experimented with quite some time ago;
it was pretty useful--but it almost made me screw up
the answer to your ModelDriven question of a week or
few ago.)

d.



 

We won't tell. Get more on shows you hate to love 
(and love to hate): Yahoo! TV's Guilty Pleasures list.
http://tv.yahoo.com/collections/265 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]