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
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
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
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
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
>
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
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: "
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.
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:
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
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
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
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
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
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
> >
15 matches
Mail list logo