Re: taglib processing

2000-05-26 Thread Joseph B. Ottinger

On Fri, 26 May 2000, Thomas Munro wrote:

 In ScreenDefinitions.jsp in Sun's Pet Store demo (which I haven't tried
 to run), I see:
 
 j2ee:Screen screen="%=ScreenNames.MAIN_SCREEN%"
 
 When I try to make my own taglib perform the same trick under Orion, the
 expression is not processed at all, and so my tag
 
 foo:mytag value="view.%= bar %"/
 
 receives the literal string "view.%= bar %" instead of having the
 contents of bar stuck in there.
 
 Is the order of processing configurable somewhere?  Can anyone suggest
 where I'm going wrong there?

In taglib.tld, set the value of the rtexprvalue to "true" for the
"value" attribute.

---
Joseph B. Ottinger   [EMAIL PROTECTED]
http://cupid.suninternet.com/~joeo  HOMES.COM Developer





RE: taglib processing

2000-05-26 Thread Mike Cannon-Brookes

This is a problem with your taglib being contra to the spec I believe.

Attributes in tags must be completely runtime expressions, or completely
compile time.

Change

foo:mytag value="view.%= bar %"/

to

foo:mytag value="%= "view." + bar %"/

and it will work perfectly ;)

Mike

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Thomas Munro
 Sent: Saturday, 27 May 2000 12:08
 To: Orion-Interest
 Subject: taglib processing


 Hello

 In ScreenDefinitions.jsp in Sun's Pet Store demo (which I haven't tried
 to run), I see:

 j2ee:Screen screen="%=ScreenNames.MAIN_SCREEN%"

 When I try to make my own taglib perform the same trick under Orion, the
 expression is not processed at all, and so my tag

 foo:mytag value="view.%= bar %"/

 receives the literal string "view.%= bar %" instead of having the
 contents of bar stuck in there.

 Is the order of processing configurable somewhere?  Can anyone suggest
 where I'm going wrong there?

 --
 Thomas Munro [EMAIL PROTECTED]
  http://www.gi-technology.com/
  GI Technology (Paris)








RE: taglib processing

2000-05-26 Thread Joe Walnes

  foo:mytag value="view.%= bar %"/
 
  receives the literal string "view.%= bar %" instead of having the
  contents of bar stuck in there.

 In taglib.tld, set the value of the rtexprvalue to "true" for the
 "value" attribute.

Also, try changing your tag to foo:mytag value="%= "view." + bar %"/.

I'm unsure as to where this is in the spec, but I find taglibs only seem to
recognise dynamic expressions if the entire attribute is in %= %.

-Joe Walnes