Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

JSF - Pagination implementation using Tomahawk -


i trying implement pagination in jsf using tomahawk. when page loaded, table in first page populated data. but, when click on next or prev table empty. don't see javascript error in browser. following code jsp. please let me know if missing something:

<t:datatable id="tableid" value="#{sitesearchcriteria.sitelist}"         var="item" border="1" rows="5" rowindexvar="rowindex"         rowclasses="trobg1,trobg2">         <h:column>             <f:facet name="header">                 <h:outputtext value="sitename"></h:outputtext>             </f:facet>             <h:outputlabel value="#{item.sitename}"></h:outputlabel>         </h:column>          <h:column>             <f:facet name="header">                 <h:outputtext value="siteclli"></h:outputtext>             </f:facet>             <h:outputlabel value="#{item.siteclli}"></h:outputlabel>         </h:column> </t:datatable>  <t:datascroller id="datascrollerid" for="tableid" faststep="10"         pageindexvar="pageindex" renderfacetsifsinglepage="true"         pagecountvar="pagecount" paginator="true" paginatormaxpages="9"         immediate="true">         <f:facet name="first">             <t:outputtext value="first"></t:outputtext>         </f:facet>         <f:facet name="last">             <t:outputtext value="last"></t:outputtext>         </f:facet>         <f:facet name="previous">             <t:outputtext value="previous"></t:outputtext>         </f:facet>         <f:facet name="next">             <t:outputtext value="next"></t:outputtext>         </f:facet> </t:datascroller>     

the backing bean using in "request" scope. hence, data not visible when clicked on "next". changed scope of backing bean "session" , things started work.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -