You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by "Aaron J. Garcia" <ag...@rentec.com> on 2012/04/12 17:47:58 UTC

AjaxEditableLabel Missing setConvertEmptyInputStringToNull(...)?

I am wondering if AjaxEditableLabel is intentionally missing a
setConvertEmptyInputStringToNull(...) method?  I have a use case for it, and it
seems like it would be reasonable to implement.

For now, I have a work-around for this by overriding AjaxEditableLabel's
newEditor(...) method.  However, I don't like this solution because I need to
cast the returned FormComponent<T> into a TextField<T> in order to get access to
the setConvertEmptyInputStringToNull(...) method.  If the underlying newEditor
implementation is changed at some point, my code won't work.  

Can this functionality be added to AjaxEditableLabel?  If so, how would I go
about requesting it?  

Thanks a lot for your help. 

Regards,
Aaron J. Garcia


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


Re: AjaxEditableLabel Missing setConvertEmptyInputStringToNull(...)?

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

Create a ticket in Jira with a patch.

On Thu, Apr 12, 2012 at 6:47 PM, Aaron J. Garcia <ag...@rentec.com> wrote:
> I am wondering if AjaxEditableLabel is intentionally missing a
> setConvertEmptyInputStringToNull(...) method?  I have a use case for it, and it
> seems like it would be reasonable to implement.
>
> For now, I have a work-around for this by overriding AjaxEditableLabel's
> newEditor(...) method.  However, I don't like this solution because I need to
> cast the returned FormComponent<T> into a TextField<T> in order to get access to
> the setConvertEmptyInputStringToNull(...) method.  If the underlying newEditor
> implementation is changed at some point, my code won't work.
>
> Can this functionality be added to AjaxEditableLabel?  If so, how would I go
> about requesting it?
>
> Thanks a lot for your help.
>
> Regards,
> Aaron J. Garcia
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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