[
http://jira.jboss.com/jira/browse/JBSEAM-1913?page=comments#action_12377123 ]
Gilliard Cordeiro commented on JBSEAM-1913:
-------------------------------------------
for instance...
in web.xml
<context-param
<param-name>facelets.LIBRARIES</param-name
<param-value>/WEB-INF/mylib.taglib.xml</param-value
</context-param
mylib.taglib.xml
<?xml version="1.0"?
<!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://mycompany/components</namespace
<tag
<tag-name>myComp</tag-name
<source>../components/myComponent.xhtml</source
</tag
in myComponent.xhtml
<ui:composition...
<!-- My other components --
<h:commandButtom
action="#{myAction}"/
</ui:composition
in my test.xhtml page...
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:my="http://mycompany/components"
...
<!-- other page elements --
<h:inputText value="#{managedBean.testValue}"/
<my:myComp myAction="#{managedBean.action(managedBean.testValue)}"/
<h:commandButton
action="#{managedBean.action(managedBean.testValue)}"/
</html
in managedBean
public void action(String testParameter)
{
System.out.println(testParameter);
}
--------------------------
When executing managedBean.action invoked by commandButton in myComp, the parameter
testParameter is null. But, when executing managedBean.action invoked by commandButton in
test.xhtml, the parameter testParameter is correct.
> EL with parameters not work in a <ui:composition> facelet component
> -------------------------------------------------------------------
> Key: JBSEAM-1913
> URL:
http://jira.jboss.com/jira/browse/JBSEAM-1913
> Project: JBoss Seam
> Issue Type: Bug
> Components: EL
> Affects Versions: 1.2.1.GA
> Environment: Windows or Linux, Java 6, Tomcat 6.0.14
> Reporter: Gilliard Cordeiro
> EL with parameters not work in a <ui:composition>
facelet component. The value of parameters is available in a <h:outputText>, for
instance, but is null when executing a Java action methods.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira