Hi,

I'm not 100% sure but I think this check is even in 1.4.x.
TextField is quite simple. It provides code only for #onComponentTag() method.
You better extend AbstractTextComponent for your case. It is the
parent of TextField and TextArea components.

On Sat, May 12, 2012 at 4:38 PM, Arthur H. <[email protected]> wrote:
> Hi,
>
> I have a subclass if TextField which handles if the field should be
> rendered as textarea or simple input field:
>
> @Override
>        protected void onComponentTag(final ComponentTag tag) {
>                if ( multiline ) {
>                        tag.setName( "textarea" );
>                }
>                else {
>                        tag.put("value", getValue());
>                        tag.setName( "input" );
>                }
>                super.onComponentTag( tag );
>        }
>
> This doesn't work any more since the upgrade to wicket 1.5, because
> onComponentTag(tag) of TextField.java checks for hardcoded "input"
> tag: checkComponentTag(tag, "input");
>
> Is this behavior intended? Unfortunately this causes some headache in
> my application.
>
> Regards,
> Arthur
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to