I have a project that used this long ago back when dojoInitializer was
in the sandbox.

My facelets page code looked like as follows -- not sure if it's helpful to you.

                <sandbox:dojoInitializer require="dojo.widget.Editor"/>

      </head>

      <body>
        <h:form id="form">

                        <h:inputTextarea id="contentHtmlEditArea"
                                required="#{true}"
                                value="#{createSimpleAnnouncementPage.text}"/>
                        
                        <script type="text/javascript">
                        // <![CDATA[
                        var editorArgs = {
                            items: ["textGroup", "blockGroup", "justifyGroup",
"colorGroup", "listGroup", "indentGroup", "linkGroup"]
                        };
                        var editor = dojo.widget.fromScript("Editor", 
editorArgs,
                                                            
dojo.byId("form:contentHtmlEditArea"));
                        // ]]>
                        </script>



On 10/16/07, kace <[EMAIL PROTECTED]> wrote:
>
> Turning debug on I get the following information
>
> FATAL exception raised: Could not load 'dojo.widget.Editor'; last tried
> '__package__.js'
> FATAL exception raised: Could not load 'dojo.namespaces.dojo'; last tried
> '__package__.js'
> FATAL exception raised: Could not load 'dojo.namespaces.dojo'; last tried
> '__package__.js'
>
>
>
>
>
> kace wrote:
> >
> > Hi fellas,
> >
> > I am using tomahawk 1.1.6, myfaces 1.1.5 and running using appfuse 2.  I
> > cant seem to get dojoInitializer (code below) to work. Only the input text
> > area is outputted.  Do i need to do any further configuring? What should I
> > check for?  Any suggestions would be grateful.
> >
> > Thanks
> >
> > ..kace
> >
> >
> > <t:dojoInitializer require="dojo.widget.Editor"/>
> >       <h:form id="myForm">
> >               <h:inputTextarea id="editarea2" styleClass="dojo-Editor" 
> > value="hello
> > world">
> >
> >               </h:inputTextarea>
> >       </h:form>
> >
>
> --
> View this message in context: 
> http://www.nabble.com/dojoInitializer-tf4635492.html#a13238908
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>

Reply via email to