You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Pavel Rezny (JIRA)" <de...@myfaces.apache.org> on 2006/08/07 08:59:15 UTC
[jira] Commented: (MYFACES-1379) CLONE -commandLink actions ignored
inside tree2
[ http://issues.apache.org/jira/browse/MYFACES-1379?page=comments#action_12426150 ]
Pavel Rezny commented on MYFACES-1379:
--------------------------------------
I have the same problem with ignored Action listener of CommandButton/Commandlink.
Java 1.5 update 7, Tomcat 5.5.17, JSF RI 1.1.02, Tomahawk Snapshot 1.1.4/1.1.5.
The Listener is called if the definition is included in the JSP file. But creating the facet programmatically cause Listener to be ignored.
(Actually I want to add whole tree programmatically to a page.)
(I tried adding listener by method setActionListener and addActionListener - the same behaviour = listener ignored.)
(Appearance of root node cause no change of the behavour.)
HtmlTree tree = (HtmlTree) app.createComponent(HtmlTree.COMPONENT_TYPE);
Map treeFacets = tree.getFacets();
treeFacets.clear();
HtmlCommandButton ot2 = (HtmlCommandButton) app.createComponent(HtmlCommandButton.COMPONENT_TYPE);
ot2.setValue("Author");
ot2.addActionListener(new ActionListener()
{
public void processAction(ActionEvent e)
{
throw new RuntimeException("YES");
}
});
treeFacets.put("clickable", ot2); // COMMENTING THIS LINE CAUSE USE OF FACET DEFINED IN JSP FILE AND ALL WORKS FINE
Working definition in JSP file:
<h:form id="my_tree">
<t:tree2 binding="#{DynamicTree['cidListTree']}" value="#{TreeModelHolder.treeModel}" id="my_tree_tree">
<f:facet name="clickable">
<h:commandLink actionListener="#{EventTrigger.onTreeNodeClick}" value="#{node.description}"/>
</f:facet>
</t:tree>
</h:form>
> CLONE -commandLink actions ignored inside tree2
> -----------------------------------------------
>
> Key: MYFACES-1379
> URL: http://issues.apache.org/jira/browse/MYFACES-1379
> Project: MyFaces Core
> Issue Type: Bug
> Affects Versions: 1.0.9m9
> Environment: tested on tomcat 5.0.30, windows2000 and redhat linux 9.
> Reporter: Pavel Rezny
> Assigned To: sean schofield
>
> When a commandLink inside a tree2 has an action attr, actionListener attr, or f:actionListener tag they are never queued or broadcast and the associated methods never get called.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira