-
FEATURED COMPONENTS
First time here? Check out the FAQ!
hai,
i got a problem that getFellow(compId) method can find a component menuItem.
i need to setVisible false to MenuItem
((Menuitem)getFellow("menuactivities")).setVisible(false)
but i get an error
java.lang.NullPointerException
at ibs.menu.Menu.setMenuSales(Menu.java:133)
at ibs.menu.Menu.doFinally(Menu.java:128)
at org.zkoss.zk.ui.impl.RealInits.doFinally(Initiators.java:120)
at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:386)
at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:296)
at org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:229)
at org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:166)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
Regards,
Andy Susanto
I think you have to specify the id space in the getFellow (say the parent of the menu item)
hai,
i solved my problem just put onCreate method in Menubar Component
Regards,
Andy Susanto
Asked: 2009-05-01 12:35:15 +0800
Seen: 274 times
Last updated: May 01 '09