You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org> on 2010/02/11 16:42:28 UTC
[jira] Resolved: (MYFACES-2539) setPropertyActionListener cannot be
nested within facelets tag
[ https://issues.apache.org/jira/browse/MYFACES-2539?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leonardo Uribe resolved MYFACES-2539.
-------------------------------------
Resolution: Duplicate
Assignee: Leonardo Uribe
Duplicate of MYFACES-2543
> 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
> Assignee: Leonardo Uribe
>
> 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.HtmlForm@366ef7ba
> When using this taglib.xml and tag from doc-root/META-INF:
> <!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.