Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tag Files : Tag Attributes Doubt !!!

 
Sandeep Vaid
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In tag files, we send Tag attribute as

<myTags:Header subTitle="We Take String" />

And use in the Tag File (.tag or .tagx) as :

${subTitle}

In which scope this subTitle attribute is ?
 
Louis Moloney
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tag scope , once tag is closed its not available anymore
 
Sandeep Vaid
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In tag files, we send Tag attribute as

<myTags:Header subTitle="We Take String" />

And use in the Tag File (.tag or .tagx) as :

${subTitle}

In which scope this subTitle attribute is ?


i know the scope of the attribute is tag scope in the JSP File meaning
in my JSP if i do :


It would be illegal

BUT What i am talking about is the TAG File (and not JSP File)

In TAG File (Here there is no tag)we say

${subTitle}

Now As per normal rules, For This EL statement , the container will start searching subTitle attribute in page, request,session and the application scope? In which of these 4 scopes will it find subTitle attribute?
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
page

The other 3 wouldn't make sense.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic