Hi,

I am using GridView and PagingNavigator to render a series of podcast elements 
in my database. 

I am using wickets 1.3.5 with Hibernate and Tomcat. 

The first page renders fine but in trying to navigate using the Paging 
Navigator - It looks like the state is lost and I get the following error 

INFO [http-8080-1] (RequestListenerInterface.java:278) - registered listener 
interface [RequestListenerInterface name=INewBrowserWindowListener, 
method=public abstract void 
org.apache.wicket.markup.html.INewBrowserWindowListener.onNewBrowserWindow()]
 INFO [http-8080-1] (PodcastDataProvider.java:64) - PodcastDataProvider: 
Category:null, Num of entries:0
 INFO [http-8080-1] (RequestListenerInterface.java:174) - component not enabled 
or visible; ignoring call. Component: [MarkupContainer [Component id = 
pageLink]]
 INFO [http-8080-1] (PodcastDataProvider.java:64) - PodcastDataProvider: 
Category:null, Num of entries:0
 INFO [http-8080-1] (PodcastDataProvider.java:41) - Iterator - first:0, count:0


Here is my code - pretty much from the wickets grid example - 

public GridPanel(String id, String category){
        super(id);
        log.info("GridPanel - Category:" + category);
        add(new Label("CategoryLabel", category));
        
        IDataProvider dataProvider = new PodcastDataProvider(category);
        GridView gridView = new GridView("rows", dataProvider){
            
            protected void populateItem(Item item) {
                final PodcastTbl podTbl = (PodcastTbl)item.getModelObject();
              
            item.add(new Label("PodcastPanel", podId));
            }
            
            protected void populateEmptyItem(Item item)
            {
                item.add(new Label("PodcastPanel", "*empty*"));
            }
        };
        
        gridView.setRows(4);
        gridView.setColumns(3);
        add(gridView);
        add(new PagingNavigator("navigator", gridView));


-----------------------====html =======---------------------

<div class="grid">
                <span wicket:id="navigator">[dataview navigator]</span>
                <table cellspacing="0" cellpadding="2" >
                    <tr wicket:id="rows">
                        <td wicket:id="cols"><span 
wicket:id="PodcastPanel">[Podcast Id]</span></td>
                    </tr>
                </table>
            </div>

--------------------------------------------------------------------------

Appreciate any pointers.

thx,

Ed

_________________________________________________________________
Color coding for safety: Windows Live Hotmail alerts you to suspicious email.
http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_safety_112008
 

Reply via email to