Just to give you guys an example of the power of this lib:
Following code enables a full blown rich text edit control:
<s:dojoInitializer require="dojo.widget.Editor"/>
<h:form>
<h:inputTextarea id="editarea" styleClass="dojo-Editor" value="hello
world"/>
<h:commandLink action="submitted" id="submitted" value="[Submit]"/>
</h:form>
(the example can already be found in the sandbox examples under the dojo
dir)
The initializer api will not be changed too much the only things I can
think of is to move the generated require code from the head to the body
and to add additional properties (for component building there is an
outject namespace mechanism as well which yet has to be integrated)
Werner
Werner Punz schrieb:
> Hi everyone, good news...
>
> The basic DOJO component foundation now is in place (more to follow), I
> added a tools class for importing the dojo stuff within the component
> code and a helper dojoInitializer component to the sandbox. With these
> constructs you now can import the dojo codebase in a sane controlled
> manner to the pages (the dojoinitializer should help for programming)
>
> the usage for the initializer is:
>
> <s:dojoInitializer require="dojo.fx.*"/>
>
> for a dojo style import
>
> <s:dojoInitializer debug="true"/>
>
> for adding debugging etc... the rest of the flags is more or less a
> mirror of the djconfig datastructure from dojo and can be found within
> the tld descriptors.
>
> so if anyone wants to start to hack and try out dojo, you now can start
> within a jsf context.
>
> (a sample with mixed dojo, html jsf code can be found in the dojo subdir
> of the sandbox examples (ripped and altered straight from the dojo
> examples))
>
> Just if anyone is interesting in hacking with DOJO...
>
>