Typically, you'll have one backing-bean/managed-bean/model bean for each form.  So all the actions for said form will be declared inside the same object.

Gregg

On 6/9/06, chandra sekhar saripaka <[EMAIL PROTECTED]> wrote:
Hi,

    What is the best practice to call an action method from the UI
Component Command Button.

1)We have to specify it as another Action Bean in the Config file.

This is not working for me.

2) can we write it in the Model Bean as a method.
This is working for me.

public class userBean{

......

public String register()
{

       .....The Action Flow......
     return "success";

}
}

<h:commandButton value = "#{msgbundle.action_label}" action ="">"#{userBean.register}">

Thanx In Advance,

Regards,
Chandru.

Reply via email to