myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From madan chowdary <madan_na...@yahoo.com>
Subject Re: [Tobago] how I can speed up popup?
Date Thu, 29 Mar 2007 12:34:18 GMT
Hi Volker,

Ya this is my mistake , thnx for the response..

Popup is working now as the same in demo.

Madan

----- Original Message ----
From: Volker Weber <v.weber@inexso.de>
To: MyFaces Discussion <users@myfaces.apache.org>
Sent: Thursday, 29 March, 2007 6:00:20 PM
Subject: Re: [Tobago] how I can speed up popup?

Hi,

typo : name="renderPartially" should be name="renderedPartially"

        ^^

Regards,
  Volker

2007/3/29, madan chowdary <madan_narra@yahoo.com>:
>
> Hi Volker,
>
> Here is the code for the popup when the link is clicked.
>
> <tc:link label="#{bundle.viewCartContents}" id="viewCartContents">
>     <tc:attribute name="renderPartially" value="sheetConfigPopup"/>
>     <f:facet name="popup">
>         <tc:popup width="700" height="400" id="sheetConfigPopup">
>             <tc:box label="#{bundle.shoppingCartContents}">
>                 <f:facet name="layout">
>                     <tc:gridLayout rows="*;*" border="0"/>
>                 </f:facet>
>                 <tc:cell rendered="#{shoppingCart.cartContainsItems}">
>                     <f:facet name="layout">
>                         <tc:gridLayout border="0"/>
>                     </f:facet>
>                         <tc:sheet id="checkOutSheetPopUp"
>
> value="#{shoppingCart.items}"
>
> columns="60px;*;80px;100px"
>                                   var="cartItem"
>                                   showHeader="true"
>                                   showRowRange="left"
>                                   showPageRange="right"
>                                   showDirectLinks="center"
>                                   first="0"
>                                   rows="10"
>                                   selectable="none">
>                             <tc:column label="#{bundle.quantity}"
> id="number" sortable="false" align="center" sortable="true">
>                                 <tc:out value="#{cartItem.quantity}"
> id="p_quantity" />
>                             </tc:column>
>
>                             <tc:column label="#{bundle.productName}"
> id="prdName" sortable="true">
>                                 <tc:out value="#{cartItem.item.productCode}"
> id="p_code" markup="sheetTxt"/>
>                                 <tc:out value=" - " markup="sheetTxt"/>
>                                 <tc:out value="#{cartItem.item.productName}"
> id="p_name" markup="sheetTxt"/>
>                                 <tc:out value="<br>
> #{cartItem.promotion.name}" rendered="#{cartItem.promotionsExists}"
> markup="tiptext" escape="false"/>
>                             </tc:column>
>
>                             <tc:column label="#{bundle.unitPrice}"
> sortable="true" align="right" sortable="true">
>                                 <f:facet name="layout">
>                                     <tc:gridLayout
> rows="20px"/>
>                                 </f:facet>
>                                 <tc:out
> value="#{cartItem.listPriceForQuantity}" id="p_unitprice"
> converter="CurrencyConverter" markup="sheetTxt" />
>                             </tc:column>
>
>                             <tc:column label="#{bundle.extTotal}"
> sortable="true" align="right" sortable="true">
>                                 <f:facet name="layout">
>                                     <tc:gridLayout
> rows="20px;20px"/>
>                                 </f:facet>
>                                 <tc:out value="#{cartItem.quantity *
> cartItem.listPriceForQuantity}" id="Ex_Total"
>
>     converter="CurrencyConverter" markup="sheetTxt"/>
>                             </tc:column>
>                         </tc:sheet>
>                 </tc:cell>
>             </tc:box>
>         </tc:popup>
>      </f:facet>
> </tc:link>
>
> This shows the loading status bar in the browser and then showing up the
> popup.
>
> Regards,
> Madan
>
> ----- Original Message ----
> From: Volker Weber <v.weber@inexso.de>
> To: MyFaces Discussion <users@myfaces.apache.org>
> Sent: Thursday, 29 March, 2007 5:26:30 PM
> Subject: Re: [Tobago] how I can speed up popup?
>
> Hi Madan,
>
> is there a <tc:attribute name="renderedPartially" value="..."/> at the link?
> If so please post the page code.
>
> Regards,
>   Volker
>
> 2007/3/29, madan chowdary <madan_narra@yahoo.com>:
> >
> > Yeah, i too have the same problem with the popup.
> >
> > The popup contains a sheet which gets the records from the DB.
> >
> > I placed the popcode under a <tc:link/>, so if i click the link i get a
> > popup..
> >
> > but this is taking a page refresh.
> >
> > I the demo app, the popup shows fine without any page refresh, used the
> same
> > logic in mine, but its doing a page refresh.
> >
> > Is there any other mean to do the same as the shown in the demo app which
> > gets records from the DB and render an sheet in the popup.
> >
> > Regards,
> > Madan
> >
> > ----- Original Message ----
> > From: David Steinkopff <david.steinkopff@googlemail.com>
> > To: MyFaces Discussion <users@myfaces.apache.org>
> > Sent: Thursday, 29 March, 2007 2:37:00 PM
> > Subject: Re: [Tobago] how I can speed up popup?
> >
> > Maybe it doesnt work so fine.
> > popup open and close is fine, but if I press my send-button the value from
> > the selectone component doesnt store in the bean. this effect I have only
> > when I combine <tc:attribute name="renderedPartially"
> > value=":pageid:tabgroup"/> with
> > <tc:button label="Ok">
> > <tc:attribute name="popupClose" value="afterSubmit"/>
> > </tc:button>
> > the button with only popupClose works, but I have a complete loading page
> > :-(
> >
> > david
> >
> > 2007/3/28, David Steinkopff <david.steinkopff@googlemail.com>:
> > > Thanks for the reference where I find the answer in the demo. Now its
> work
> > fine in my application.
> > >
> > > david
> > >
> > >
> > > 2007/3/27, Volker Weber < v.weber@inexso.de >:
> > >
> > > > Hi David,
> > > >
> > > > the tobago demo [1] has a popup example with renderedPartially (config
> > > > for table demo).
> > > > the popupReference ins needed to open a popup from a command which is
> > > > not parent of the popup(used in the toolbar example).
> > > >
> > > > Regards,
> > > >   Volker
> > > >
> > > > [1] lifedemo:
> > http://tobago.atanion.net/tobago-example-demo/
> > > >     sources:
> >
> http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/demo/
> > > >
> > > >
> > > > 2007/3/27, David Steinkopff < david.steinkopff@googlemail.com>:
> > > > > hello,
> > > > >
> > > > > I have a complex gui build up with tobago. I used renderedPartially
> > > > > attribute to speed up the main window. now I build some popup as
> > separate
> > > > > window and every time I open a popup the complete page go reloading.
> > > > >
> > > > > my question:
> > > > > how I can use renderedPartially with popup and popup reference
> > components?
> > > > >
> > > > > david
> > > > >
> > > >
> > >
> > >
> >
> >
> >
> >  ________________________________
> >  Here's a new way to find what you're looking for - Yahoo! Answers
>
>
>  ________________________________
>  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/
Mime
View raw message