For example:
<tc:popup width="200" height="200" id="popupConfirm"
rendered="#{dropshipCheckout.showConfirmation}">
madan chowdary wrote:
Hello Bernd,
Can u give an example, as i haven't worked on value binding till now..
Madan
----- Original Message ----
From: Bernd Bohmann <[EMAIL PROTECTED]>
To: MyFaces Discussion <[email protected]>
Sent: Saturday, 17 March, 2007 1:22:57 PM
Subject: Re: [ Tobago ] Disable popup rendering based upon condition
Hello Madan,
this works only if the rendered attribute points to a value binding.
Regards
Bernd
madan chowdary wrote:
Hi All,
I have a popup to be displayed based upon a condition if it returns true.
I placed the popup code as such in <tc:button/>
<tc:button label="#{bundle.buy}" action="#{dropshipCheckout.buyAction}">
<f:facet name="popup">
<tc:popup width="200" height="200" id="popupConfirm" rendered="false">
<tc:box label="Confirm">
<tc:out value="Do u want to continue"/>
</tc:box>
</tc:popup>
</f:facet>
</tc:button>
Just for testing purpose i wrote this code, placed ' rendered="false" ' in
<tc:popup/> .
But the popup is being displayed irespective of the rendered value.
How can i display the popup when a button is clicked based upon the condition
which returns true/false.
And i have 2-3 popups written, so based upon the condition i set, am use to
display only one of them to the customer.
Thnx in advance
Madan
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/