Matthias Wessendorf schrieb:
>> Btw. the Sandbox demo should not become
>> a best practice, this is just a kickstart for component devs,
> 
> Right, but it shows how you can *integrate* dojo to your pofa (plain
> old faces app ;))
> 
> since all you need is the <s:dojoInitializer/> and the rest of the
> page is straight forward faces standard
> 
> btw. http://tinyurl.com/cp9jm
> 
>> normal users in the future should not care about the dojoInitializer
>> at all, but for now it is the best we have ;-)
> 
> sound very promissing ;)
> 
You will run into limitations this way.
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>

would work but would not be possible in pure jsf due to the problem that
the dojoType and the other attributes cannot be provided by the person
who does the page layouting.


Reply via email to