You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Dávið Klein Sundsskarð <ds...@amc.dk> on 2011/10/13 11:50:47 UTC

Default NullFieldStrategy contribution

Hi,

I want empty textfields to post "" instead of null when empty. I have implemented a nullfieldstrategy and it can be set on the textfield, but the grid creates the textfields on the fly. I am therefore unable to set my strategy.
The AbstractTextField has a default NullFieldStrategy defined and I am actually asking if any of you guys know how i can override it.
I can't contribute a new "defaults" as that conflicts. I would prefer to avoid MethodAdvice as that seems like a hack...
Any ideas?

/david

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Default NullFieldStrategy contribution

Posted by Massimo Lusetti <ml...@gmail.com>.
2011/10/13 Dávið Klein Sundsskarð <ds...@amc.dk>:

> Hi,
>
> I want empty textfields to post "" instead of null when empty. I have implemented a nullfieldstrategy and it can be set on the textfield, but the grid creates the textfields on the fly. I am therefore unable to set my strategy.
> The AbstractTextField has a default NullFieldStrategy defined and I am actually asking if any of you guys know how i can override it.
> I can't contribute a new "defaults" as that conflicts. I would prefer to avoid MethodAdvice as that seems like a hack...
> Any ideas?

There's an ongoing discussion on dev@ to put those defaults into
Symbols so you just have to put your default into Symbol (for instance
ApplicationDefaults) and it will be picked up by any components.

I encourage you to participate to bring your use case.

Cheers
-- 
Massimo
http://meridio.blogspot.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org