You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by kace <me...@hotmail.com> on 2007/10/16 19:04:59 UTC
dojoInitializer
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#a13238013
Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: dojoInitializer
Posted by kace <me...@hotmail.com>.
Thanks Mike,
but the problem still persists...
Mike Kienenberger wrote:
>
> 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 <me...@hotmail.com> 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.
>>
>>
>
>
--
View this message in context: http://www.nabble.com/dojoInitializer-tf4635492.html#a13239297
Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: dojoInitializer
Posted by Mike Kienenberger <mk...@gmail.com>.
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 <me...@hotmail.com> 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.
>
>
Re: dojoInitializer
Posted by kace <me...@hotmail.com>.
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.