I'm having some trouble with the rendering of a custom field - I'm hoping 
someone can give me a steer on the order of interpretation / execution during 
rendering.

When I use the T5EasyFCKEditor in a .tml as follows:

<textarea t:type="easyfck/fckeditor" width="800px" height="400px" value="xyz" 
configuration="customConf"/>

... it works as expected and the textarea is decorated / enhanced.  When I try 
to use the easyFCK in a custom field however, it renders as a standard 
textarea, albeit with the attribute t:type="easyfck/fckeditor".

In the custom field beginRender method I have:

    boolean beginRender(MarkupWriter writer) {
       .
       .
       .
                } else if (useFCKEditor){
                        writer.element("textarea", 
                                        "t:type", "easyfck/fckeditor",
                        "name", getControlName(),
                        "id", getClientId(),
                        "width", "800px",
                        "height", "400px",
                        "configuration", "customConf");
                        writer.write(value == null ? null : value.getText());
       .
       .
       .
    }

Any ideas on why the second approach doesn't work?

Thanks,
Jim.


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

Reply via email to