webtier@glassfish.java.net

Programmatic CommandButton+action method

From: <webtier_at_javadesktop.org>
Date: Tue, 07 Jul 2009 04:04:29 PDT

Another issue:

I'm trying to construct a commandbutton programmatically. The problem is that the follwing snippet does not call the doAction method in my managed bean. If i consruct the same thing in markup, it works perfectly.

HtmlCommandButton appendCategoryButton = new HtmlCommandButton();
appendCategoryButton.setId("myId");
appendCategoryButton.setActionExpression(Utils.createMethodExpression("#{beszTervEdit.doAction}", String.class));
appendCategoryButton.setValue("Do");

Thanks
[Message sent by forum member 'gabox01' (gabox01)]

http://forums.java.net/jive/thread.jspa?messageID=354337