You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by hns <ha...@yahoo.com> on 2008/08/04 09:06:13 UTC

about dojo use in facegoodies

hi

i am trying to use dojo of facegoodies 
(http://code.google.com/p/facesgoodies/  )
it gives error like

----------------------------------------------------------------------------------
Servlet.service() for servlet faces threw exception
com.sun.facelets.FaceletException: Error Parsing /dtk/dojo/dojo.js: Error
Traced[line: 1] Content is not allowed in prolog.
	at com.sun.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:234)
	at com.sun.facelets.compiler.Compiler.compile(Compiler.java:105)
	at
com.sun.facelets.impl.DefaultFaceletFactory.createFacelet(DefaultFaceletFactory.java:197)
	at
com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:144)
	at
com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:95)
	at
com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:517)
	at
com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:567)
	at
org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:182)
	at
org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
	at
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)
.......
---------------------------------------------------------------------------------


as per my previous post and according to my sense i have write  in
accordingContainer.xhtml

-------------------------------------------------------------------------
<f:facet name="metaContainer">

  	<link rel="stylesheet" type="text/css"
href="dtk/dijit/themes/tundra/tundra.css" />
  	<script type="text/javascript" src="dtk/dojo/dojo.js"
djConfig="parseOnLoad: true"></script>
  	<script type="text/javascript">
     dojo.require("dojo.parser");
     dojo.require("dijit.layout.AccordionContainer");
   </script>
  </f:facet>     
  	

----------------------------------------------------------------------- 

but still gives error
-- 
View this message in context: http://www.nabble.com/about-dojo-use-in-facegoodies-tp18806595p18806595.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: about dojo use in facegoodies

Posted by Hardik Shah <ha...@yahoo.com>.
thanks it works

like same can i implement yui ?
i dont know abt much more dojo



Andrew Robinson-5 wrote:
> 
> Surround your content of the meta container facet with a single JSF
> component. Something simple like h:panelGroup
> 
> On 2008-08-04, hns <ha...@yahoo.com> wrote:
>>
>> hi
>>
>> i am trying to use dojo of facegoodies
>> (http://code.google.com/p/facesgoodies/  )
>> it gives error like
>>
>> ----------------------------------------------------------------------------------
>> Servlet.service() for servlet faces threw exception
>> com.sun.facelets.FaceletException: Error Parsing /dtk/dojo/dojo.js: Error
>> Traced[line: 1] Content is not allowed in prolog.
>> 	at com.sun.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:234)
>> 	at com.sun.facelets.compiler.Compiler.compile(Compiler.java:105)
>> 	at
>> com.sun.facelets.impl.DefaultFaceletFactory.createFacelet(DefaultFaceletFactory.java:197)
>> 	at
>> com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:144)
>> 	at
>> com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:95)
>> 	at
>> com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:517)
>> 	at
>> com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:567)
>> 	at
>> org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:182)
>> 	at
>> org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
>> 	at
>> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
>> 	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)
>> .......
>> ---------------------------------------------------------------------------------
>>
>>
>> as per my previous post and according to my sense i have write  in
>> accordingContainer.xhtml
>>
>> -------------------------------------------------------------------------
>> <f:facet name="metaContainer">
>>
>>   	<link rel="stylesheet" type="text/css"
>> href="dtk/dijit/themes/tundra/tundra.css" />
>>   	<script type="text/javascript" src="dtk/dojo/dojo.js"
>> djConfig="parseOnLoad: true"></script>
>>   	<script type="text/javascript">
>>      dojo.require("dojo.parser");
>>      dojo.require("dijit.layout.AccordionContainer");
>>    </script>
>>   </f:facet>
>>   	
>>
>> -----------------------------------------------------------------------
>>
>> but still gives error
>> --
>> View this message in context:
>> http://www.nabble.com/about-dojo-use-in-facegoodies-tp18806595p18806595.html
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/about-dojo-use-in-facegoodies-tp18806595p18847721.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: about dojo use in facegoodies

Posted by Andrew Robinson <an...@gmail.com>.
Surround your content of the meta container facet with a single JSF
component. Something simple like h:panelGroup

On 2008-08-04, hns <ha...@yahoo.com> wrote:
>
> hi
>
> i am trying to use dojo of facegoodies
> (http://code.google.com/p/facesgoodies/  )
> it gives error like
>
> ----------------------------------------------------------------------------------
> Servlet.service() for servlet faces threw exception
> com.sun.facelets.FaceletException: Error Parsing /dtk/dojo/dojo.js: Error
> Traced[line: 1] Content is not allowed in prolog.
> 	at com.sun.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:234)
> 	at com.sun.facelets.compiler.Compiler.compile(Compiler.java:105)
> 	at
> com.sun.facelets.impl.DefaultFaceletFactory.createFacelet(DefaultFaceletFactory.java:197)
> 	at
> com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:144)
> 	at
> com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:95)
> 	at
> com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:517)
> 	at
> com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:567)
> 	at
> org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:182)
> 	at
> org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
> 	at
> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
> 	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)
> .......
> ---------------------------------------------------------------------------------
>
>
> as per my previous post and according to my sense i have write  in
> accordingContainer.xhtml
>
> -------------------------------------------------------------------------
> <f:facet name="metaContainer">
>
>   	<link rel="stylesheet" type="text/css"
> href="dtk/dijit/themes/tundra/tundra.css" />
>   	<script type="text/javascript" src="dtk/dojo/dojo.js"
> djConfig="parseOnLoad: true"></script>
>   	<script type="text/javascript">
>      dojo.require("dojo.parser");
>      dojo.require("dijit.layout.AccordionContainer");
>    </script>
>   </f:facet>
>   	
>
> -----------------------------------------------------------------------
>
> but still gives error
> --
> View this message in context:
> http://www.nabble.com/about-dojo-use-in-facegoodies-tp18806595p18806595.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>

Re: about dojo use in facegoodies

Posted by Matthias Wessendorf <ma...@apache.org>.
> as per my previous post and according to my sense i have write  in
> accordingContainer.xhtml

this is "just" the component. No need to use the metaContainer facet.
It is only used in the master template.

The example is running fine and the code is available and it is easy to run,
so I suggest to study it and port things over to your application.

Greetings,
Matthias

>
> -------------------------------------------------------------------------
> <f:facet name="metaContainer">
>
>        <link rel="stylesheet" type="text/css"
> href="dtk/dijit/themes/tundra/tundra.css" />
>        <script type="text/javascript" src="dtk/dojo/dojo.js"
> djConfig="parseOnLoad: true"></script>
>        <script type="text/javascript">
>     dojo.require("dojo.parser");
>     dojo.require("dijit.layout.AccordionContainer");
>   </script>
>  </f:facet>
>
>
> -----------------------------------------------------------------------
>
> but still gives error
> --
> View this message in context: http://www.nabble.com/about-dojo-use-in-facegoodies-tp18806595p18806595.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>



-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org