Thanks for your response. I guess I didn't make me clear here. My question
is how to call a method in the backing bean from a JSF page without
rendering out anything to the screen.
----- Original Message -----
From: "Sean Schofield" <[EMAIL PROTECTED]>
To: "MyFaces Discussion" <[email protected]>
Sent: Wednesday, August 24, 2005 10:04 PM
Subject: Re: How to call a method in the backing bean from a JSF page
The value attribute should be a *value* binding expression. It must
bind to a *property*. So you do something like this ...
value=#{theBackingBean.foo}"
and in your backing bean you have
public String getFoo()
{ ... }
public void setFoo(String fooValue)
{ ... }
sean
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