Menu

#1 JCameo.getViewComponent("name") doesn't return Panel

open
nobody
5
2007-09-20
2007-09-20
Anonymous
No

I migrate from 0.7 to 0.11 version.

Custom tags were used in our application. As I can see they replaced with <Panel> tag feature.

I registered bean like this

<bean id="Clock" class="package.clock.ClockWidget" />

and added <Panel name="Clock" id="myClock"> to views.xml

In application I would like to have ClockWidget instance for the registered id "myClock".

But when I call
Object tmp=JCameo.getViewComponent("myClock");

an exception is thrown
Exception in thread "Thread-349" de.innokite.commons.exception.UnrecoverableException: Failed to lookup object for name 'myClock'
at de.innokite.jcameo.naming.NameService.lookup(NameService.java:59)
at de.innokite.jcameo.naming.NameService.lookup(NameService.java:69)
at de.innokite.jcameo.JCameo.getViewComponent(JCameo.java:108)
at app.RdCentral.<init>(RdCentral.java:190)

normal controls e.g. button are sucessfully retrieved.

Discussion


Log in to post a comment.