myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From madan chowdary <>
Subject Re: JSF - New window to confirm delete
Date Tue, 13 Mar 2007 04:52:32 GMT
Hi Wong,

I have the same case to do with the confirmation.

But the confirmation will have to be displayed only when a particular set of variables are
set in my backing bean.

Is there anyway to render the facet based upon the boolean condition i get for the backing

The case is as such,

--> If an order ID already exists in the DB, i set a variable in the bean with either true
or false.

Based upon this condition i need to show a confirmation to the user that " if he wishes to
continue click ok, else click cancel to enter new orderID".

Can u tell me how could i do this ?


----- Original Message ----
From: "Wong, Emmanuel (Sam)" <WongE@SEC.GOV>
To: MyFaces Discussion <>
Sent: Monday, 12 March, 2007 8:42:38 PM
Subject: RE: JSF - New window to confirm delete



 _filtered {font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
a:visited, span.MsoHyperlinkFollowed
 _filtered {
margin:1.0in 1.25in 1.0in 1.25in;}

<tc:button label=”Delete"


                        <f:facet name="confirmation">

                              <tc:out value=”Do you want to delete?” />




From: Adrian Mitev

Sent: Monday, March 12, 2007 9:15

To: MyFaces

Subject: Re: JSF - New window to
confirm delete


try javascript confirm()

2007/3/12, edney imme <>:



I have a windown, were I need to open another windown, like a popup
windown. And in that windown, I will use to ask to the user if he wants to
confirm delete the item, or cancel this operation.


Detail: I can't use javascript popup window, it must be a new window,
with 2 buttons: Ok and Cancel.


Did anibody did something like that before ? Or has any idea of how I
can do it ?


I alredy do some similar using Struts, but never with JSF.


Thanks for atention.


Yahoo! India Answers: Share what you know. Learn something new
View raw message