Hi Shing.

By inheriting from AbstractField you are using these mixins:

    @SuppressWarnings("unused")
    @Mixin
    private RenderInformals _renderInformals;

    @SuppressWarnings("unused")
    @Mixin
    private RenderDisabled _renderDisabled;

RenderInformals is rendering the informal parameters.

Cheers,
Nick.


Shing Hing Man wrote:
 <t:colorPicker   size="3" color="color" />

The informal parameter size"3" is rendered if I do the following changes to my ColorPicker.java
(without using  mixins).

1) Remove @SupportsInformalParameters and resources.renderInformalParameters(writer)

2) In the beginRender method, only render the <input type="text"> tag (but not closing
it).

3) Add an afterRender method to closed the <input> tag and render the color picker icon.


Shing
PS I have not tried the mixin way yet.

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

Reply via email to