• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

setDynamicAttributes in Lifecycle of Tag

 
tanu dua
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When a tag is created the following methods are called in the following order :

1) setPageContext

2) setParent

3) setAttributes

4) doTag

When is the setDynamicAttribute() is called after step 3 or before step 3 ?

Thanks
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think it's part of the "call setters" in the life cycle. The specification does not clearly mention if it is before or after calling the setters of declared attributes. So I guess it does not matter whether it's before or after, as long as the dynamic attributes are set properly.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, there's an example in the spec showing an order of call :

In the following example, assume attributes a and b are declared using the
attribute element in the TLD, attributes d1 and d2 are not declared, and the dynamicattributes element is set to �true�. The attributes are set using the calls:


So, in the life cycle, this is part of :
3. The setters for each attribute defined for this tag are called by the container.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic