-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I have a built in Variable resolver / function mapper to resolve some EL in code. When my managed EL rules are not satisfied I wold like to delegate the EL interpretation to the default page mechanism. I retrieve the Page's FunctionMapper object with this code: component.getPage().getFunctionMapper(). However, sometimes component's page is null and the mechanism fails. Any suggestion on how to reach the current FuncionMapper?
Hi,
if the page is null, it means the component has not been attached a page yet and the function mapper cannot be determined yet safely. As the component could be attached to any page afterwards having different variable scopes.
I suggest you wait with accessing a functionMapper until the component is attached to a page (e.g. by overriding onPageAttached)
Robert
Asked: 2013-09-27 11:33:09 +0800
Seen: 4 times
Last updated: Oct 02 '13
adding a menuitem with image on Menubar
can somebody give the use of imagecontent in menuitem ? [closed]
label in org.zkoss.zul.Messagebox must be middle aligned [closed]
Grid with frozen column shows unnecessary scrollbar
Component with independents columns
ZK ComboBox constraint firing on getSelectIndex()
Problems with visible/invisible grids using flex
A container should have a disable attribute.
Video inside: Processing... not translated to set org.zkoss.web.preferred.locale in zk.xml