Hi Evgeny,
I'm going to cc the "dev" email list for jsftemplating. This way more
people can see what problem you are having and respond.
The error below occurs when JSF can't find the component type you are
asking it to create. This is probably because "MyForm" isn't in your
faces-config.xml file. Make sure you add this correctly to that file.
If you send your faces-config.xml file, I can check it for errors.
Both of your .map files look good! I'm glad you got this working! :)
Ken
e.dontsov wrote:
> I created file my app.jar (with *.map -2 ), but Tomcat write - myForm
> javax.servlet.ServletException: Expression Error: Named Object: MyForm not found.
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:249)
>
>
> *root cause*
>
> javax.faces.FacesException: Expression Error: Named Object: MyForm not found.
> com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:576)
> com.sun.jsftemplating.component.factory.ComponentFactoryBase.createComponent(ComponentFactoryBase.java:363)
> com.sun.jsftemplating.component.factory.MyFormFactory.create(MyFormFactory.java:17)
> com.sun.jsftemplating.component.ComponentUtil.createChildComponent(ComponentUtil.java:397)
> com.sun.jsftemplating.layout.descriptors.LayoutComponent.getChild(LayoutComponent.java:277)
> com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:528)
> com.sun.jsftemplating.layout.LayoutViewHandler.createView(LayoutViewHandler.java:234)
> com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:196)
> com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
> com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
> com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.execute(PartialTraversalLifecycle.java:80)
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
> Files attaches.
> Best regards, Evgeny