William Hoover wrote:
Is it better to use AbstractBehavior and override onComponentTag?
I assume that the AttributeModifier is only for cases when the attribute 
already exists in the markup, correct?

Well, given the javadoc I told you to read for the second parameter there, no. ;-)

It doesn't make much difference which you use.

AbstractBehavior is more direct and concise.

AttributeModifier is named such that people will find it.

I tend to use the former for what you're doing, and the latter if I already have a model kicking around.

There's also a SimpleAttributeModifier if you have a simple String, and an AttributeAppender if you wish to mess with what's currently there.

IMO, the API here is far too broad - we should just give people AbstractBehavior and tell them to get on with it, but hey ho.

Regards,

Al

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

Reply via email to