You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Arash <ar...@gmail.com> on 2006/05/16 15:00:32 UTC

Component must be embeded in a form

I am getting this error message for nearly all the component, sometimes for
form itself.

java.lang.IllegalArgumentException: Component _id0 must be embedded in an form
	at org.apache.myfaces.shared_impl.renderkit.html.HtmlLinkRendererBase.renderJavaScriptAnchorStart
(HtmlLinkRendererBase.java:209)
	at org.apache.myfaces.shared_impl.renderkit.html.HtmlLinkRendererBase.renderCommandLinkStart(HtmlLinkRendererBase.java:175)
	at org.apache.myfaces.shared_impl.renderkit.html.HtmlLinkRendererBase.encodeBegin
(HtmlLinkRendererBase.java:93)
	at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:512)
	at com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:544)
	at com.sun.facelets.FaceletViewHandler.encodeRecursive
(FaceletViewHandler.java:551)
	at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:457)
	at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:367)
	at javax.faces.webapp.FacesServlet.service
(FacesServlet.java:138)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

	at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:23)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:173)
	at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java
:202)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:202)
	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.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54)
	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke
(SecurityAssociationValve.java:174)
	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
	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)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:869)
	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java
:527)
	at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
	at java.lang.Thread.run(Thread.java:595)



-- 
from debian manifesto:
Debian Linux is a brand-new kind of Linux distribution.
Rather than being developed by one isolated individua
l or group, as other distributions of Linux have been developed in the
past, Debian is being developed openly in the spirit of Linux and GNU.

Re: Component must be embeded in a form

Posted by Mario Ivankovits <ma...@ops.co.at>.
Hi!
> I could not get you. What is dummyForm extension? can I not use it?
> Besides I have tomahawk-1.1.1 in my classpath
If you do not embed the commandLink/commandButton within an h:form tag
myfaces will generate a "dummyForm".
This functionality has been moved out of myfaces-core to tomahawk.
I guess you upgraded myfaces-api and myfaces-impl, no?

You need a newer tomahawk.jar too to make the above behavior work again.

Ciao,
Mario



Re: Component must be embeded in a form

Posted by Arash <ar...@gmail.com>.
I could not get you. What is dummyForm extension? can I not use it? Besides
I have tomahawk-1.1.1 in my classpath

On 5/16/06, Mario Ivankovits <ma...@ops.co.at> wrote:
>
> Hi!
> > I am getting this error message for nearly all the component,
> > sometimes for form itself.
> Is guess you will use the dummyForm extension instead.
> It moved to tomahawk and thus you have to add the "tomahawk" jar to your
> classpath to make it work again.
> No need to use the t: variant of commandLink as the tomahawk.jar will
> replace the renderer of it.
>
> Ciao,
> Mario
>
>


-- 
from debian manifesto:
Debian Linux is a brand-new kind of Linux distribution.
Rather than being developed by one isolated individua
l or group, as other distributions of Linux have been developed in the
past, Debian is being developed openly in the spirit of Linux and GNU.

Re: Component must be embeded in a form

Posted by Mario Ivankovits <ma...@ops.co.at>.
Hi!
> I am getting this error message for nearly all the component,
> sometimes for form itself.
Is guess you will use the dummyForm extension instead.
It moved to tomahawk and thus you have to add the "tomahawk" jar to your
classpath to make it work again.
No need to use the t: variant of commandLink as the tomahawk.jar will
replace the renderer of it.

Ciao,
Mario