File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes alert message in JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "alert message in JSF" Watch "alert message in JSF" New topic

alert message in JSF

ramesh kancherla
Ranch Hand

Joined: May 01, 2008
Posts: 124
Hi team,
I am using JSF 1.1 in my project. I am new to JSF

1) I want to disply alert message (part of server response)

2) I want to open new window with specified url from manage bean

how can I do it. can any one please suggest me.

Thanks in Advance

Guy deLyonesse
Ranch Hand

Joined: Apr 12, 2011
Posts: 200

Can you be more specific? Under what conditions would this alert be displayed? When would this new page with the specified URL be called?
ramesh kancherla
Ranch Hand

Joined: May 01, 2008
Posts: 124
Hi deLyonesse,
I am calling web service in managebean.
I will get one url in web service response.

so I have to open that url in new window from managebean.

& I have to display some data in alert message from manage bean.

can you please tell me how can i do it

Thanks & Regards
Michael van Adrichem

Joined: May 20, 2011
Posts: 7
Do you really mean by allert or by dialog?

When i have to logout for example i click a button, but first want a messagedialog showing up.

this is the javascript for the dialog box

And this is where i call it:

ramesh kancherla
Ranch Hand

Joined: May 01, 2008
Posts: 124
Hi Michael,
Thanks for your reply.

I have one query.

from manage bean how can we redirect url (like url ) into new window

Thanks & Regards

I agree. Here's the link:
subject: alert message in JSF
Similar Threads
How to use javascript in JSF
good jsf tutorial needed.
JSF 2.0 - replacing JS Alert Box with what?
help needed in jsf
how to access values in session from javascript