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

Dynamic Attributes

 
Rina Magro
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
If you have a tag with 2 dynamic attributes (name and model) and 1 static attribute (price):


Does the setting of the attributes go like this:
1. First setDynamicAttribute(null, "name", "Ferrari") is called
2. Second call would be setPrice("50000") (the setter method from the tag class itself)
3. Last setDynamicAttribute() is called AGAIN but this time as
setDynamicAttribute(null, "model", "xxx")

Not sure if this is correct please?
thanks a million
Rina
 
khushhal yadav
Ranch Hand
Posts: 242
Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rina,

Whatever you have written..
That's absolutely correct.

To verify this, you do one thing create a tag class with all these methods.
And insert sops within those methods.
thence by seeing the execution of sops, you can easily predict the order of methods execution.

Regards,
Khushhal
 
Rina Magro
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok thanks yep ill code a tag class n do a print to the console for every method to confirm order of method calls
thanks lots
regards
Rina
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic