Werner,

Can you provide an example of how to specify the "items"
line for those of us who are javascript-ignorant?

I'd really like to remove the "save/cancel" buttons since these don't
work well with JSF and just confuse the end-user.

I was hoping that facelets would just pass them through by default,
but it doesn't work that way in facelets either.

                        <h:inputTextarea id="contentHtmlEditArea"
                                styleClass="dojo-Editor"
                                
items="textGroup;blockGroup;justifyGroup;colorGroup;listGroup;indentGroup;linkGroup"
                                required="#{true}"
                                value="#{text}"/>



On 2/13/06, Werner Punz <[EMAIL PROTECTED]> wrote:
> The reason, Dojo uses some optional extra attributes on taglevel which
> you cannot provide
> in plain jsf. What would be needed would be some kind of
> additionalString or someting attribute to provide those.
>
> As for component development not to break the valid html/xhtml I would
> recommend to go the programmatic control generation upon existing tags:
> var editorArgs = {
>     items: ["bold", "italic", "underline", "strikethrough"]
> };
> var editor = dojo.widget.fromScript("Editor", editorArgs,
>                                     dojo.byId("contentNode"));
>
> as an example
>
> which would work on any normal div or textArea and still would be valid
> html.
>
> Going this route:
>
> <textarea dojoType="Editor" name="editorContent"
>     items="bold;italic;underline;strikethrough;">
>     some content
> </textarea>

Reply via email to