hello,

have you already tried to add the id of the button to its own
partialTriggers attribute?
(the button has to trigger its own update.)

regards,
gerhard



2008/1/20, Ravindra Adireddy <[EMAIL PROTECTED]>:
>
> Hi all,
>
>         Dynamic method binding does not work if i create it as
>
> CoreCommandButton commandLink =
>                         (CoreCommandButton
> )context.getApplication().createComponent(CoreCommandButton
> .COMPONENT_TYPE);
>                 MethodBinding mb =
> context.getApplication().createMethodBinding("#{
> searchCommandButtonBean.searchTable}",
> new Class[]{javax.faces.event.ActionEvent.class});
>                 commandLink.setActionListener(mb);
>
>
> and it is working if i ncreate it as
>
>
> HtmlCommandButton commandLink =
>
>                         
> (HtmlCommandButton)context.getApplication().createComponent(
> HtmlCommandButton.COMPONENT_TYPE);
>                 MethodBinding mb =
> context.getApplication().createMethodBinding("#{
> searchCommandButtonBean.searchTable}",
> new Class[]{javax.faces.event.ActionEvent.class});
>                 commandLink.setActionListener(mb);
>
>
> But only the first method allows us to use partialSubmit, so i have to
> use first method, please help me
>
> --
> Thanks and Regards
> Ravindra Adireddy
>



-- 

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Reply via email to