Hi ,

           Is it a good practice writing a action factory Object for
all the classes and
invoke the factory bean method when ever any action come.I will
encapsulate all my actions in the the Factory Object bean.

           is there a necessity to write the getAction() method for
this purpose.

Regards,
Chandru.

On 6/9/06, Gregg Bolinger <[EMAIL PROTECTED]> wrote:
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