How to call a method in the backing bean from a JSF page

2005-08-24 Thread Saul Qunming Yuan
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 , 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

Re: How to call a method in the backing bean from a JSF page

2005-08-24 Thread Ken
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 correc

Re: How to call a method in the backing bean from a JSF page

2005-08-24 Thread Sean Schofield
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 Qunmin

Re: How to call a method in the backing bean from a JSF page

2005-08-24 Thread Saul Qunming Yuan
loads. I'm returning an empty string from the method so nothing gets printed out from . - Original Message - From: "Ken" <[EMAIL PROTECTED]> To: "MyFaces Discussion" Sent: Wednesday, August 24, 2005 9:53 PM Subject: Re: How to call a method in the backing bea

Re: How to call a method in the backing bean from a JSF page

2005-08-24 Thread Ken
ng from the method so nothing gets printed out from > . > > > - Original Message - > From: "Ken" <[EMAIL PROTECTED]> > To: "MyFaces Discussion" > Sent: Wednesday, August 24, 2005 9:53 PM > Subject: Re: How to call a method in the backing bean from a JSF page >

Re: How to call a method in the backing bean from a JSF page

2005-08-24 Thread Saul Qunming Yuan
om the method so nothing gets printed out from . - Original Message - From: "Ken" <[EMAIL PROTECTED]> To: "MyFaces Discussion" Sent: Wednesday, August 24, 2005 9:53 PM Subject: Re: How to call a method in the backing bean from a JSF page > Try h:commandLink o

Re: How to call a method in the backing bean from a JSF page

2005-08-24 Thread Saul Qunming Yuan
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: "

Re: How to call a method in the backing bean from a JSF page

2005-08-24 Thread Ken Weiner
idn'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.

Re: How to call a method in the backing bean from a JSF page

2005-08-24 Thread ssobot
he JSF page loads. I'm > returning an empty string from the method so nothing gets printed out from > . > > > - Original Message - > From: "Ken" <[EMAIL PROTECTED]> > To: "MyFaces Discussion" > Sent: Wednesday, August 24, 2005 9:

Re: How to call a method in the backing bean from a JSF page

2005-08-25 Thread Volker Weber
Hi, i think you are looking for somthing like a PhaseListener. You can configure such a Listener in faces.xml. make your listener to return javax.faces.event.PhaseId.RENDER_RESPONSE in getPhaseId() method and the beforePhase() method of your listener is invoked just before rendering. Saul Qunmin

Re: How to call a method in the backing bean from a JSF page

2005-08-25 Thread Rick Reumann
On 8/24/05, Saul Qunming Yuan <[EMAIL PROTECTED]> wrote: Thanks for your response. I guess I didn't make me clear here. My questionis how to call a method in the backing bean from a JSF page withoutrendering out anything to the screen. I would suggest using Shale with JSF. Use the Sha

Re: How to call a method in the backing bean from a JSF page

2005-08-25 Thread Sean Schofield
IL PROTECTED]> wrote: > > 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. > > > I would suggest using Shale with JSF. Use t

Re: How to call a method in the backing bean from a JSF page

2005-08-26 Thread Saul Qunming Yuan
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. > > > > I would suggest using Shale with JSF. Use the Shale jars and then have > your &g

Re: How to call a method in the backing bean from a JSF page

2005-08-26 Thread Rick Reumann
ot; as you mentioned below? inface-config.xml?thanks.> On 8/24/05, Saul Qunming Yuan < [EMAIL PROTECTED]> wrote:>>>> 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 with

Re: How to call a method in the backing bean from a JSF page

2005-08-29 Thread Sean Schofield
w? in > > face-config.xml? > > > > thanks. > > > > > On 8/24/05, Saul Qunming Yuan < [EMAIL PROTECTED]> wrote: > > >> > > >> Thanks for your response. I guess I didn't make me clear here. My > > >> question > >