Try h:commandLink or h:commandButton.
If your method returns a string that doesn't match any navigation-rule
in your faces-confix.xml then the same page you came from will be
rendered again.
On 8/24/05, Saul Qunming Yuan <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm wondering what's the correct way to call a method in the backing bean
> from a JSF page. What I tried is to use <h:outputText
> value="#{theBackingBean.theMethod}" />, the backing bean method returns an
> empty string, so nothing gets printed out in the page. Which works, but I am
> not sure this is the correct way to do it.
>
> thanks,
> Saul