Hello Wong,

Can u tell me how could i do the previously said case for the confirmation..

Madan

----- Original Message ----
From: madan chowdary <[EMAIL PROTECTED]>
To: MyFaces Discussion <[email protected]>
Sent: Tuesday, 13 March, 2007 10:22:32 AM
Subject: Re: JSF - New window to confirm delete

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 bean.

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 ?

Regards,
Madan


----- Original Message ----
From: "Wong, Emmanuel (Sam)" <[EMAIL PROTECTED]>
To: MyFaces Discussion <[email protected]>
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
        {margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
text-decoration:underline;}
span.EmailStyle18
        {
font-family:Arial;
color:navy;}
_filtered {
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {}
-->






<tc:button label=”Delete"
 

                        action="#{yourController.delete}"
 

                        <f:facet name="confirmation">
 

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

                        </f:facet>
 

                  </tc:button>
 

  
 










From: Adrian Mitev
[mailto:[EMAIL PROTECTED] 

Sent: Monday, March 12, 2007 9:15
AM

To: MyFaces
 Discussion

Subject: Re: JSF - New window to
confirm delete
 




  
 

try javascript confirm()
?
 



2007/3/12, edney imme <[EMAIL PROTECTED]>:
 



Hallo,
 






 
 






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.
 







  
 










        

        
                 
Here’s a new way to find what you're looking for - Yahoo! Answers 





                
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/

Reply via email to