You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by octoberdan <da...@october5th.net> on 2006/05/30 21:03:51 UTC
fishEyeNavigationMenu throws exceptions when forms submit
Streamlined example:
<f:view>
<h:form>
<h:commandButton action="test"/>
</h:form>
<s:fishEyeNavigationMenu itemWidth="75" itemHeight="75" itemMaxWidth="100"
itemMaxHeight="100" orientation="horizontal" effectUnits="2"
itemPadding="10" attachEdge="bottom" labelEdge="top">
<t:navigationMenuItem icon="images/icon_users.png"
itemLabel="Browse Users" />
<t:navigationMenuItem icon="images/computer-wrench.gif"
itemLabel="Browse Projects"/>
</s:fishEyeNavigationMenu>
</f:view>
resulting exception when I submit:
exception
javax.servlet.ServletException: expr
javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
com.loomis.security.filter.SecurityFilter.doFilter(SecurityFilter.java:39)
root cause
java.lang.NullPointerException: expr
javax.faces.component.UIComponentBase.findComponent(UIComponentBase.java:387)
org.apache.myfaces.custom.fisheye.HtmlFishEyeNavigationMenuRenderer.decode(HtmlFishEyeNavigationMenuRenderer.java:72)
javax.faces.component.UIComponentBase.decode(UIComponentBase.java:500)
javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:606)
javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:602)
javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:135)
org.apache.myfaces.lifecycle.LifecycleImpl.applyRequestValues(LifecycleImpl.java:219)
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:71)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
com.loomis.security.filter.SecurityFilter.doFilter(SecurityFilter.java:39)
--
View this message in context: http://www.nabble.com/fishEyeNavigationMenu+throws+exceptions+when+forms+submit-t1706529.html#a4632756
Sent from the MyFaces - Users forum at Nabble.com.
Re: fishEyeNavigationMenu throws exceptions when forms submit
Posted by Hailong Zhang <to...@gmail.com>.
I just found the solution.
<s:fishEyeNavigationMenu> should be inclosed in <h:form>
2006/6/15, Hailong Zhang <to...@gmail.com>:
>
> I have the same problem with you...
>
> 2006/5/31, octoberdan <da...@october5th.net>:
>
> >
> > If I wrap them both in different forms the example works... Why does it
> > act
> > like this?
> > --
> > View this message in context:
> > http://www.nabble.com/fishEyeNavigationMenu+throws+exceptions+when+forms+submit-t1706529.html#a4632958
> > Sent from the MyFaces - Users forum at Nabble.com.
> >
> >
>
Re: fishEyeNavigationMenu throws exceptions when forms submit
Posted by Hailong Zhang <to...@gmail.com>.
I have the same problem with you...
2006/5/31, octoberdan <da...@october5th.net>:
>
>
> If I wrap them both in different forms the example works... Why does it
> act
> like this?
> --
> View this message in context:
> http://www.nabble.com/fishEyeNavigationMenu+throws+exceptions+when+forms+submit-t1706529.html#a4632958
> Sent from the MyFaces - Users forum at Nabble.com.
>
>
Re: fishEyeNavigationMenu throws exceptions when forms submit
Posted by octoberdan <da...@october5th.net>.
If I wrap them both in different forms the example works... Why does it act
like this?
--
View this message in context: http://www.nabble.com/fishEyeNavigationMenu+throws+exceptions+when+forms+submit-t1706529.html#a4632958
Sent from the MyFaces - Users forum at Nabble.com.
Re: fishEyeNavigationMenu throws exceptions when forms submit
Posted by octoberdan <da...@october5th.net>.
When I wrap the whole thing in form tags I get...
exception
javax.servlet.ServletException: empty expr
javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
com.loomis.security.filter.SecurityFilter.doFilter(SecurityFilter.java:39)
root cause
java.lang.IllegalArgumentException: empty expr
javax.faces.component.UIComponentBase.findComponent(UIComponentBase.java:388)
org.apache.myfaces.custom.fisheye.HtmlFishEyeNavigationMenuRenderer.decode(HtmlFishEyeNavigationMenuRenderer.java:72)
javax.faces.component.UIComponentBase.decode(UIComponentBase.java:500)
javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:606)
javax.faces.component.UIForm.processDecodes(UIForm.java:53)
javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:602)
javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:135)
org.apache.myfaces.lifecycle.LifecycleImpl.applyRequestValues(LifecycleImpl.java:219)
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:71)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
com.loomis.security.filter.SecurityFilter.doFilter(SecurityFilter.java:39)
--
View this message in context: http://www.nabble.com/fishEyeNavigationMenu+throws+exceptions+when+forms+submit-t1706529.html#a4632789
Sent from the MyFaces - Users forum at Nabble.com.