You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by madan chowdary <ma...@yahoo.com> on 2007/03/17 07:51:11 UTC
[ Tobago ] Disable popup rendering based upon condition
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/
Re: [ Tobago ] Disable popup rendering based upon condition
Posted by Bernd Bohmann <be...@atanion.com>.
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/