-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi dear friends
i have a problem in using the zkoss in jsf
i download the latest files from the site.
when i try to use macro components by <z:component tag in jsf pages i get the following error
java.lang.IllegalArgumentException: Not a AbstractComponent
at org.zkoss.jsf.zul.tag.impl.AbstractTag.setProperties(AbstractTag.java:96)
at org.zkoss.jsf.zul.tag.ComponentDefinitionTag.setProperties(ComponentDefinitionTag.java:100)
at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:594)
at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1097)
at jsp_servlet._jsf._bi.__frm_tvp_bi_01._jsp__tag0(__frm_tvp_bi_01.java:152)
Truncated. see log file for complete stacktrace
>
did any body see the above error??? please help me to solve the problem.
thanks
Hi mahdiiran,
Can your provide your code to let us help you to see what's wrong? Thx.
Hi dear windperson
thanks for you'r attention.
my zul page named cmp_name.zul and store in ./component folder is as follow
<window>
<label value="Name : "/>
<textbox id="name"/>
</window>
and my jsf page is like this
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/code" prefix="f" %>
<%@ taglib uri="http://www.zkoss.org/jsf/zul" prefix="z" %>
<z:component name="myName" inline="true" macroURI="./components/cmp_name.zul"/>
<HTML>
<body>
<f:view>
<h:form id="helloForm">
<z:page>
<z:window>
<z:ui tag="myName"/>
</z:window>
</z:page>
</h:form>
</f:view>
</body>
</HTML>
I didn't run the code, but I think you should put <z:component inside <f:view
Asked: 2009-03-08 12:30:11 +0800
Seen: 350 times
Last updated: Apr 20 '09