Re,

yes in the meantime I know that the viewhandler must be in the web.xml
But if I remove the viewhandler from the faces-config then the links
won't be rendered anymore. This means, if you click on a link nothing
happens. If I leave the handler in the faces-config then it works.
Next problem I can't put te application view handler into the web.xml,
because then the web.xml tells me: you can't put an application into
the web.xml file.
So I put the the application view handler into the <context-param>
like this:

<context-param>
        <param-name>com.sun.facelets.FaceletViewHandler</param-name>
        <param-value>com.sun.facelets.FaceletViewHandler</param-value>
</context-param>

But as always it did not work!!

So I have no ideas left, what I should do now ;)

cheers!


>to summarize,

>web.xml: viewhandler
<faces-cfg: renderKitId (no! viewhandler)

>-M

On 9/29/07, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:
> >  <application>
> >      <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
> >  </application>
> >
> >  :-)
> >
> > On 9/29/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>> > > Hi,
>> > >
>> > > Trinidad works, but there is although a problem with the rendererKit,
>> > > because if I click on a link now nothing happens.
>> > > For instance I have a menu in form of a tomahawk tree2.
>> > > If I click on a treenode, which is link to a xhtml site, nothing
happens.
>> > > Same for instance by tr:panelPopup. Do let the popup appear I have
>> > > to click on the tr:panelPopup value, but nothing seems to happen after
>> > > clicking the link.
>> > >
>> > > But if I put the ViewHandler application (see below) back into my
>> > > faces-config.xml and remove there the trinidad default renderer Kit
(see
>> > > also below), then the links work again.
>> > > But I can't put both, the sun ViewHanlder and the rendererKit into the
>> > > faces-config.xml, because then I got an error like this:
>> > > ----------------------------
>> > > 29.09.2007 12:46:36
>> > > org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit
>> > > createResponseWriter
>> > > SCHWERWIEGEND: No RenderingContext has been created.
>> > > 29.09.2007 12:46:36 com.sun.facelets.FaceletViewHandler
handleRenderException
>> > > SCHWERWIEGEND: Error Rendering View[/homePage.xhtml]
>> > > java.lang.IllegalStateException: No RenderingContext
>> > >         at
>> > > org.apache.myfaces.trinidad.render.CoreRenderer.encodeBegin(CoreRenderer.java:193)
>> > >         at
>> > > org.apache.myfaces.trinidadinternal.renderkit.htmlBasic.HtmlFormRenderer.encodeBegin(HtmlFormRenderer.java:56)
>> > > ------------------------------------
>> > >
>> > >
>> > >  <application>
>> > >       <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
>> > >  </application>
>> > >
>> > >  <application>
>> > >         <!-- Use the Trinidad RenderKit -->
>> > >         <default-render-kit-id>
>> > >             org.apache.myfaces.trinidad.core
>> > >         </default-render-kit-id>
>> > >     </application>
>> > >
>> > > Any more suggestions?
>> > > Thanks Wolfgang
>> > >
>> > >
> >
> >
> > --
> > Matthias Wessendorf
> >
> > further stuff:
> > blog: http://matthiaswessendorf.wordpress.com/
> > mail: matzew-at-apache-dot-org
> >


-- Matthias Wessendorf further stuff: blog:
http://matthiaswessendorf.wordpress.com/ mail: matzew-at-apache-dot-org

Reply via email to