setPropertyActionListener cannot be nested within facelets tag
--------------------------------------------------------------
Key: MYFACES-2539
URL: https://issues.apache.org/jira/browse/MYFACES-2539
Project: MyFaces Core
Issue Type: Bug
Components: JSR-314
Affects Versions: 2.0.0-beta
Environment: facelets
Reporter: Ganesh Jung
nesting setPropertyActionListener like this:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:test="http://j4fry.org/test"
xmlns:ui="http://java.sun.com/jsf/facelets">
<body>
<h:form>
<test:button value="test">
<f:setPropertyActionListener value="test"
target="#{myBean.test}" />
</test:button>
#{myBean.test}
</h:form>
</body>
</html>
produces this error:
<f:setPropertyActionListener> Parent is not composite component or of type
ActionSource, type is: javax.faces.component.html.htmlf...@366ef7ba
When using this taglib.xml and tag into your docroot/META-INF folder:
<!DOCTYPE facelet-taglib PUBLIC
"-//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN"
"http://java.sun.com/dtd/facelet-taglib_1_0.dtd">
<facelet-taglib>
<namespace>http://j4fry.org/test</namespace>
<tag>
<tag-name>button</tag-name>
<source>button.xhtml</source>
</tag>
</facelet-taglib>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition>
<h:commandButton value="test">
<ui:insert />
</h:commandButton>
</ui:composition>
</html>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.