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 param
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 tag (but not closing
it).
3) Add an
Thanks for the pointer Nick!
I will try again.
Shing
--- Nick Westgate <[EMAIL PROTECTED]> wrote:
> Hi Shing.
>
> Nice to see you getting into T5. ;-)
>
> Not sure why your
> resources.renderInformalParameters(writer)
> fails, but it's likely a clash with the
> RenderInformals mixin
> in Ab
Hi Shing.
Nice to see you getting into T5. ;-)
Not sure why your resources.renderInformalParameters(writer)
fails, but it's likely a clash with the RenderInformals mixin
in AbstractField. You should read the docs about rendering
multiple tags:
http://tapestry.apache.org/tapestry5/tapestry-core/a
I have subclassed AbstractField to make a colour
picker component,
which is essentially a read only text field with a
clickable icon next to it.
The component is working, but it does not render the
informal parameters.
With
I expect the rendered text field to have an attribute
of size="3".