Here is the related Code for the Navigation Panel .
HTML CODE:
[dataview navigator]
JAVA CODE:
PagingNavigator navigator;
navigator = new PagingNavigator("navigator",myDataView)
{
protected void onBeforeRender() {
super.onBeforeRender();
if(pageSize < myDataView.getRowCount()){
System.out.println("INSIDE
DATAVIEW Model changed === true");
navigator.setVisible(true);
}
else
{
navigator.setVisible(false);
System.out.println("INSIDE
DATAVIEW Model changed === false");
}
}
};
navigator.setVisible(false);
System.out.println("INSIDE DATAVIEW
CONSTRUTOR=== false");
if(pageSize < myDataView.getRowCount()){
System.out.println("INSIDE DATAVIEW
CONSTRUTOR=== true");
navigator.setVisible(true);
}
add(navigator);
Thanks and regards,
Umesh Paliwal
-Original Message-
From: Eric Velazquez [mailto:[EMAIL PROTECTED]
Sent: Friday, July 04, 2008 10:32 PM
To: users@wicket.apache.org
Subject: Re: Problem with Pagination in Wicket 1.3.4
Until 1.3.3 the PagingNavigator class added the navigation links on the
constructor, but on 1.3.4 those links are added on the onBeforeRender
method. Are you overriding the method? would be useful if you provide us
with some related piece of code.
Umesh Paliwal wrote:
>
> Hi ,
>
>
>
> I had downloaded Wicket 1.3.4 for the Autocomplete issue with IE.
>
>
>
> Now the AutoComplete works fine. But when I click on the table with
> Pagination, I get the following error.
>
>
>
>
> Unexpected RuntimeException
>
> WicketMessage: Unable to find component with id 'first' in
> [MarkupContainer [Component id = navigator, page =
> com.osi.nx.objeditor.ClassBuilder, path =
> 0:classattrpanel:panel:navigator.DataViewClassTable$3, isVisible =
true,
> isVersioned = false]]. This means that you declared wicket:id=first in
> your markup, but that you either did not add the component to your
page
> at all, or that the hierarchy does not match.
> [markup =
>
jar:file:/C:/Documents%20and%20Settings/uxp1/.m2/repository/org/apache/w
>
icket/wicket/1.3.4/wicket-1.3.4.jar!/org/apache/wicket/markup/html/navig
> ation/paging/PagingNavigator.html
>
>
>
>
>
> << <
>
> # 5
>
> > >>
>
>
>
> , index = 3, current = ' ' (line 21, column 2)]
>
> Root cause:
>
> org.apache.wicket.markup.MarkupException: Unable to find component
with
> id 'first' in [MarkupContainer [Component id = navigator, page =
> com.osi.nx.objeditor.ClassBuilder, path =
> 0:classattrpanel:panel:navigator.DataViewClassTable$3, isVisible =
true,
> isVersioned = false]]. This means that you declared wicket:id=first in
> your markup, but that you either did not add the component to your
page
> at all, or that the hierarchy does not match.
> [markup =
>
jar:file:/C:/Documents%20and%20Settings/uxp1/.m2/repository/org/apache/w
>
icket/wicket/1.3.4/wicket-1.3.4.jar!/org/apache/wicket/markup/html/navig
> ation/paging/PagingNavigator.html
>
>
>
>
>
> << <
>
> # 5
>
> > >>
>
>
>
> , index = 3, current = ' ' (line 21, column 2)]
> at
>
org.apache.wicket.markup.MarkupStream.throwMarkupException(MarkupStream.
> java:464)
> at
>
org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1344)
> at
>
org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer
> .java:1476)
> at
>
org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer
> .java:639)
> at
>
org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:
> 112)
> at
org.apache.wicket.Component.renderComponent(Component.java:2481)
> at
> org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1411)
> at org.apache.wicket.Component.render(Component.java:2318)
> at
>
org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1297)
> at
>
org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer
> .java:1476)