Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 46226 invoked from network); 17 Mar 2007 09:40:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Mar 2007 09:40:27 -0000 Received: (qmail 85515 invoked by uid 500); 17 Mar 2007 09:40:27 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 85480 invoked by uid 500); 17 Mar 2007 09:40:27 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 85469 invoked by uid 99); 17 Mar 2007 09:40:26 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Mar 2007 02:40:26 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [68.142.201.194] (HELO web31714.mail.mud.yahoo.com) (68.142.201.194) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 17 Mar 2007 02:40:14 -0700 Received: (qmail 5379 invoked by uid 60001); 17 Mar 2007 09:39:52 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=UV9XtVl6Kqerds6tYOCba3N08iINQCRQjO92bQN/+enQpMATow7WshnxQ7ZtWwqsgL2sQdSZ5sB3b6UshfAjsO03ySCaLu71GlNWoZ73cad26Rjh+bva0AT75KfUxkgzkk2BkaH4QbIcxXN7k870wHcQH5yimRbhbRkqQlUCPTU=; X-YMail-OSG: kV.cubAVM1nznVvaKipSJFd848nOmGXENHS5h9.CH4.M2c0rZusrXiRpRmxirC6GGE0SUf.n9dPoPAUEucj8i2YBPs_XhqtcjhIumY7QjeJz6bvDdTddMc9gNhotDhu1 Received: from [202.62.89.13] by web31714.mail.mud.yahoo.com via HTTP; Sat, 17 Mar 2007 02:39:52 PDT X-Mailer: YahooMailRC/471 YahooMailWebService/0.7.41.4 Date: Sat, 17 Mar 2007 02:39:52 -0700 (PDT) From: madan chowdary Subject: Re: [ Tobago ] Disable popup rendering based upon condition To: MyFaces Discussion MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-200372005-1174124392=:5369" Message-ID: <466132.5369.qm@web31714.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org --0-200372005-1174124392=:5369 Content-Type: text/plain; charset=ascii Hi Bernd, I replaced rendered="false/true" with rendered="#{dropshipCheckout.showPopup}" But if i place this in , as soon the page loads, the popup is displayed on the screen showPopup=true in the managed bean. And i need the popup to be displayed without page refresh.. how can i achieve these ? Madan ----- Original Message ---- From: Bernd Bohmann To: MyFaces Discussion Sent: Saturday, 17 March, 2007 2:39:20 PM Subject: Re: [ Tobago ] Disable popup rendering based upon condition For example: 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 > To: MyFaces Discussion > 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 >> >> >> >> >> >> >> >> >> >> >> >> Just for testing purpose i wrote this code, placed ' rendered="false" ' in . >> >> 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/ __________________________________________________________ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/ --0-200372005-1174124392=:5369 Content-Type: text/html; charset=iso-8859-7 Content-Transfer-Encoding: quoted-printable
Hi Bernd,

I replaced rendered=3D"false/true"= with rendered=3D"#{dropshipCheckout.showPopup}"

But if i place this= in <tc:popup/>, as soon the page loads, the popup is displayed on th= e screen  showPopup=3Dtrue in the managed bean.

<tc:button l= abel=3D"#{bundle.buy}" action=3D"#{dropshipCheckout.buyAction}">
&nbs= p;   <tc:attribute name=3D"renderPartially" value=3D"confirmPo= pup"/>
        <f:facet name=3D"popu= p">
            <tc:p= opup width=3D"200px" height=3D"200px" id=3D"confirmPopup"    = ;               &nbs= p;                    
  &= nbsp;               =    rendered=3D"#{dropshipCheckout.showPopup}">
  =               <tc:box = label=3D"confirmation">
         &= nbsp;          <tc:out value=3D"Do yo= u really want to continue"/>
        &n= bsp;       </tc:box>
    &= nbsp;       </tc:popup>
   = ;     </f:facet>
</tc:button>

And i ne= ed the popup to be displayed without page refresh..

how can i achiev= e these ?

Madan


----- Original Message ----
Fr= om: Bernd Bohmann <bernd.bohmann@atanion.com>
To: MyFaces Discussion <users@myfa= ces.apache.org>
Sent: Saturday, 17 March, 2007 2:39:20 PM
Subject:= Re: [ Tobago ] Disable popup rendering based upon condition

Fo= r example:

<tc:popup width=3D"200" height=3D"200" id=3D"popupConf= irm"
rendered=3D"#{dropshipCheckout.showConfirmation}">

madan= chowdary wrote:
> Hello Bernd,
>
> Can u give an exampl= e, as i haven't  worked on value binding till now..
>
&= gt; Madan
>
> ----- Original Message ----
> From: Bernd = Bohmann <bernd.bohmann@atanion.com>
> To: MyFaces Discussion &l= t;users@myfaces.apache.org>
> Sent: Saturday, 17 March, 2007 1:22:= 57 PM
> Subject: Re: [ Tobago ] Disable popup rendering based upon co= ndition
>
> Hello Madan,
>
> this works only if t= he rendered attribute points to a value binding.
>
> Regards>
> Bernd
>
> madan chowdary wrote:
>> Hi All,
>&g= t;
>> I have a popup to be displayed based upon a condition if it = returns true.
>>
>> I placed the popup code as such in &l= t;tc:button/>
>>
>> <tc:button label=3D"#{bundle.bu= y}" action=3D"#{dropshipCheckout.buyAction}">
>>  &nb= sp;  <f:facet name=3D"popup">
>>    = ;     <tc:popup width=3D"200" height=3D"200" id=3D"p= opupConfirm" rendered=3D"false">
>>    &nbs= p;        <tc:box label=3D"Confirm"&g= t;
>>          &= nbsp;      <tc:out value=3D"Do u want to contin= ue"/>
>>         &= nbsp;   </tc:box>
>>        = ;</tc:popup>
>>     </f:facet>
= >> </tc:button>
>>
>> Just for testing purpos= e i wrote this code, placed ' rendered=3D"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 conditio= n i set, am use to display only one of them to the customer.
>>>> Thnx in advance
>>
>> Madan
>>
>= >
>>
>>
>>
>>    = ;    
>> ____________________________________= ______________________
>> Yahoo! India Answers: Share what you kno= w. Learn something new
>> http://in.answers.yahoo.com/
>
>
>
&= gt;
>
>
>
>       = ;  
> _____________________________________________________= _____
> Yahoo! India Answers: Share what you know. Learn something ne= w
> http:/= /in.answers.yahoo.com/


=0A=09=0A=0A= =09=0A=09=09
=0AHere=A2s a new way to find what you're lo= oking for - Yahoo! Answers --0-200372005-1174124392=:5369--