AjaxPagingNavigation not updating DataView

2011-12-06 Thread infiniter
I have created AjaxPagingNavigation which is supposed to update a
DataView The problem is that when clicking on a page number link to go
to another page, the data view does not get updated.

When the page is loaded for the first time there are no problems.. but when
clicking on the page number link, the onBeforeRender() of the dataview is
never called again, so it doesn't even call the populate method of the
dataview or the iterator method of the data provider. but I have noticed
that AjaxPagingNavigationLink.onClick(AjaxRequestTarget target) is being
called.

Any ideas?


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxPagingNavigation-not-updating-DataView-tp4166358p4166358.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Does PagingNavigation render the entire page and would AjaxPagingNavigation render only its assigned pageableView?

2011-10-03 Thread Bruno Borges
Could you provide some snippet of your code?

Have you setOutputMarkupId on your PageableListView?

*Bruno Borges*
(21) 7672-7099
*www.brunoborges.com*



On Wed, Sep 28, 2011 at 9:27 AM, Martin A wml...@gmail.com wrote:

 Thanks, but strangely, clicking on a AjaxNavigationLink returns empty
 response. Do you have any ideas why this happens?

 Thanks!

 On Wed, Sep 28, 2011 at 3:01 PM, Martin Grigorov mgrigo...@apache.org
 wrote:

  yes. this is how it works
 
  On Wed, Sep 28, 2011 at 1:54 PM, Martin A wml...@gmail.com wrote:
   Hello,
   I've got a PagingNavigation on a PageableListView, contained in a
 parent
   Page. To me it looks like it renders the whole page when paging its
  assigned
   pageableView. I would like to know if AjaxPagingNavigation would
 refresh
   only its assigned pageableView, because there are other components on
 the
   page that I wouldn't like to get rendered?
  
   Thank you,
   Martin
  
 
 
 
  --
  Martin Grigorov
  jWeekend
  Training, Consulting, Development
  http://jWeekend.com
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



Does PagingNavigation render the entire page and would AjaxPagingNavigation render only its assigned pageableView?

2011-09-28 Thread Martin A
Hello,
I've got a PagingNavigation on a PageableListView, contained in a parent
Page. To me it looks like it renders the whole page when paging its assigned
pageableView. I would like to know if AjaxPagingNavigation would refresh
only its assigned pageableView, because there are other components on the
page that I wouldn't like to get rendered?

Thank you,
Martin


Re: Does PagingNavigation render the entire page and would AjaxPagingNavigation render only its assigned pageableView?

2011-09-28 Thread Martin Grigorov
yes. this is how it works

On Wed, Sep 28, 2011 at 1:54 PM, Martin A wml...@gmail.com wrote:
 Hello,
 I've got a PagingNavigation on a PageableListView, contained in a parent
 Page. To me it looks like it renders the whole page when paging its assigned
 pageableView. I would like to know if AjaxPagingNavigation would refresh
 only its assigned pageableView, because there are other components on the
 page that I wouldn't like to get rendered?

 Thank you,
 Martin




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Does PagingNavigation render the entire page and would AjaxPagingNavigation render only its assigned pageableView?

2011-09-28 Thread Martin A
Thanks, but strangely, clicking on a AjaxNavigationLink returns empty
response. Do you have any ideas why this happens?

Thanks!

On Wed, Sep 28, 2011 at 3:01 PM, Martin Grigorov mgrigo...@apache.orgwrote:

 yes. this is how it works

 On Wed, Sep 28, 2011 at 1:54 PM, Martin A wml...@gmail.com wrote:
  Hello,
  I've got a PagingNavigation on a PageableListView, contained in a parent
  Page. To me it looks like it renders the whole page when paging its
 assigned
  pageableView. I would like to know if AjaxPagingNavigation would refresh
  only its assigned pageableView, because there are other components on the
  page that I wouldn't like to get rendered?
 
  Thank you,
  Martin
 



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: AjaxPagingNavigation change style

2010-12-14 Thread blauerberg

Ivoneta,

 MyAjaxPagingNavigator extends from my own PagingNavigator subclass. 
 But I have a problem my own class doesn't work...If I clicked to next
 page, the entire page is refresh,

because AjaxPagingNavigationBehavior call onAjaxEvent() only if Navigator
class is AjaxPagingNavigator.class.
I add 'onclick' behavior as below, it seems work fine.


@Override
protected Link? newPagingNavigationIncrementLink(String id, IPageable
pageable, int increment) {
AjaxPagingNavigationIncrementLink link = new
AjaxPagingNavigationIncrementLink(id, pageable, increment);
link.add(new MyAjaxBehavior(link, pageable, onclick) {
@Override
protected void onEvent(AjaxRequestTarget target) {

navigator.onAjaxEvent(target);
}
});
return link;
}

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxPagingNavigation-change-style-tp2297188p3086566.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



AjaxPagingNavigation change style

2010-07-21 Thread Ivoneta

Hello everyone.

I need to change the wicket navigator style. I read in previous posts the
solution to this so  I created my own subclass AjaxPagingNavigatorModified:

public class AjaxPagingNavigatorModified extends AjaxPagingNavigator{

public AjaxPagingNavigatorModified(String id, DataView? dataView){
super(id,dataView);
}
}

And then I created my own markup AjaxPagingNavigatorModified.html

html xmlns:wicket
body

  wicket:panel
 wicket:message key=First/ nbsp; wicket:message key=Previous / 

   # 5 

 wicket:message key=next/ nbsp; wicket:message key=LastPage/  
  /wicket:panel
/body
/html

I placed both of them in the same directory, but it doesn't work. The wicket
navigator has the default style. 

What I missing? What's wrong?

Can anyone help me?
Pleasee
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxPagingNavigation-change-style-tp2297188p2297188.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: AjaxPagingNavigation change style

2010-07-21 Thread Ivoneta

ohh I see the problem. I used a markup for AjaxPagingNavigator, but it
doesn't have one. The markup is for PagingNavigator.
I need to use AjaxPagingNavigator, so I implemented my own class
MyAjaxPagingNavigator - copying exactly the same AjaxPagingNavigator code -
and then I create a subclass from PagingNavigator, and create the markup. 
MyAjaxPagingNavigator extends from my own PagingNavigator subclass. But I
have a problem my own class doesn't work...If I clicked to next page, the
entire page is refresh,   I don't understand why?

Is there another solution to change the AjaxPagingNavigation Style?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxPagingNavigation-change-style-tp2297188p2297746.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: AjaxPagingNavigation change style

2010-07-21 Thread Fernando Wermus
Ivonetta,
If you wanna change the styles, you can also add an id attribute to
AjaxPaginavigator and use style css in the way:

#myPageN

{
   your style
}

in this way you would not have to overwrite the markup. It is easier.


On Wed, Jul 21, 2010 at 5:50 PM, Ivoneta ietaraz...@gmail.com wrote:


 ohh I see the problem. I used a markup for AjaxPagingNavigator, but it
 doesn't have one. The markup is for PagingNavigator.
 I need to use AjaxPagingNavigator, so I implemented my own class
 MyAjaxPagingNavigator - copying exactly the same AjaxPagingNavigator code -
 and then I create a subclass from PagingNavigator, and create the markup.
 MyAjaxPagingNavigator extends from my own PagingNavigator subclass. But I
 have a problem my own class doesn't work...If I clicked to next page, the
 entire page is refresh,   I don't understand why?

 Is there another solution to change the AjaxPagingNavigation Style?
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/AjaxPagingNavigation-change-style-tp2297188p2297746.html
 Sent from the Wicket - User mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


Re: ajaxPagingNavigation and CheckGroup

2010-06-28 Thread Igor Vaynberg
use ajaxsubmitlink in your paging navigator

-igor

2010/6/22 Fernando Wermus fernando.wer...@gmail.com:
 Hola,
    Quería saber si existe alguna manera de no perder los items
 seleccionados de un checkgroup - check en una lista que esta paginada con
 AjaxPagingNavigation.

 saludos!

 --
 Fernando Wermus.

 www.linkedin.com/in/fernandowermus


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Problems with AjaxPagingNavigation

2010-06-28 Thread Igor Vaynberg
use the navigator

-igor

On Wed, Jun 23, 2010 at 8:10 AM, Matthias Klass
matthias.kl...@fh-augsburg.de wrote:
 Hi,

 I've added a AjaxPagingNavigation to a Panel. Yet, when clicking on the
 created link nothing happens - no redirection to the new page. When I copy
 the link directly from the markup and paste it into the browser window, the
 new page shows up - it's just about the click link.

 First I created a PageableListView:

 /PageableListViewCampaign campaignList = new
 PageableListViewCampaign(campaignList, campaigns, pagesize) {
    (...)
 }/

 Afterwards I added the campaignList and the Navigator to a markup container:

 /        WebMarkupContainer container = new
 WebMarkupContainer(campaignList.listContainer);
        container.add(campaignList);


        AjaxPagingNavigation navigation = new
 AjaxPagingNavigation(campaignList.navigation, campaignList);
        container.add(navigation);

        if (campaignList.getModelObject().size()  pagesize) {
            navigation.setVisible(false);
        }

        add(container);/

 The markup is the following:
 / div wicket:id=campaignList.listContainer
 ul class=campaignListlist
            (...)
 /ul

 span wicket:id=campaignList.navigation
 a wicket:id=pageLink href=#
 span wicket:id=pageNumber/span
 /a
 /span
 /div
 /
 What am I doing wrong? Should I use the AjexPagingNavigator instead? What's
 the difference?

 Thank you very much in advance,
 Matthias



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: ajaxPagingNavigation, Dataview, CheckGroup and check. Persist items checked

2010-06-23 Thread Pedro Santos
Basically make sure that the state selected is on the component model
before the user change the page. Maybe you need to put an
AjaxFormComponentUpdatingBehavior or AjaxFormChoiceComponentUpdatingBehavior
at your item checked

On Tue, Jun 22, 2010 at 2:02 PM, Fernando Wermus
fernando.wer...@gmail.comwrote:

 Hi all,
I have a dataview with an ajaxPagingNavigation. Each time, the user
 changes the page, he lost the item checked in the previous one. What do I
 have to do to guarantee the items checked keep persisted?

 Any help would be really appreciated

 thanks in advance


 --
 Fernando Wermus.

 www.linkedin.com/in/fernandowermus




-- 
Pedro Henrique Oliveira dos Santos


Problems with AjaxPagingNavigation

2010-06-23 Thread Matthias Klass

Hi,

I've added a AjaxPagingNavigation to a Panel. Yet, when clicking on the 
created link nothing happens - no redirection to the new page. When I 
copy the link directly from the markup and paste it into the browser 
window, the new page shows up - it's just about the click link.


First I created a PageableListView:

/PageableListViewCampaign campaignList = new 
PageableListViewCampaign(campaignList, campaigns, pagesize) {

(...)
}/

Afterwards I added the campaignList and the Navigator to a markup container:

/WebMarkupContainer container = new 
WebMarkupContainer(campaignList.listContainer);

container.add(campaignList);


AjaxPagingNavigation navigation = new 
AjaxPagingNavigation(campaignList.navigation, campaignList);

container.add(navigation);

if (campaignList.getModelObject().size()  pagesize) {
navigation.setVisible(false);
}

add(container);/

The markup is the following:
/ div wicket:id=campaignList.listContainer
ul class=campaignListlist
(...)
/ul

span wicket:id=campaignList.navigation
a wicket:id=pageLink href=#
span wicket:id=pageNumber/span
/a
/span
/div
/
What am I doing wrong? Should I use the AjexPagingNavigator instead? 
What's the difference?


Thank you very much in advance,
Matthias



Problems with AjaxPagingNavigation

2010-06-23 Thread Matthias Klass

Hi,

I've added a AjaxPagingNavigation to a Panel. Yet, when clicking on the 
created link nothing happens - no redirection to the new page. When I 
copy the link directly from the markup and paste it into the browser 
window, the new page shows up - it's just about the click link.


First I created a PageableListView:

/PageableListViewCampaign campaignList = new 
PageableListViewCampaign(campaignList, campaigns, pagesize) {

(...)
}/

Afterwards I added the campaignList and the Navigator to a markup container:

/WebMarkupContainer container = new 
WebMarkupContainer(campaignList.listContainer);

container.add(campaignList);


AjaxPagingNavigation navigation = new 
AjaxPagingNavigation(campaignList.navigation, campaignList);

container.add(navigation);

if (campaignList.getModelObject().size()  pagesize) {
navigation.setVisible(false);
}

add(container);/

The markup is the following:
/ div wicket:id=campaignList.listContainer
ul class=campaignListlist
(...)
/ul

span wicket:id=campaignList.navigation
a wicket:id=pageLink href=#
span wicket:id=pageNumber/span
/a
/span
/div
/
What am I doing wrong? Should I use the AjexPagingNavigator instead? 
What's the difference?


Thank you very much in advance,
Matthias



ajaxPagingNavigation and CheckGroup

2010-06-22 Thread Fernando Wermus
Hola,
Quería saber si existe alguna manera de no perder los items
seleccionados de un checkgroup - check en una lista que esta paginada con
AjaxPagingNavigation.

saludos!

-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


ajaxPagingNavigation, Dataview, CheckGroup and check. Persist items checked

2010-06-22 Thread Fernando Wermus
Hi all,
I have a dataview with an ajaxPagingNavigation. Each time, the user
changes the page, he lost the item checked in the previous one. What do I
have to do to guarantee the items checked keep persisted?

Any help would be really appreciated

thanks in advance


-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


Re: AjaxPagingNavigation

2009-10-01 Thread Pedro Santos
Hi Douglas,
you extend the AjaxPagingNavigator and override his method newNavigation to
return an PagingNavigation. The default implementation for ajax return an
AjaxPagingNavigation. That is what your links don't work asynchronously.

On Wed, Sep 30, 2009 at 8:49 PM, Douglas Ferguson 
doug...@douglasferguson.us wrote:

 I just realized that this might be what you wanted to know..

 a class=font-xsmall title=Go to page 2 wicket:id=pageLink
 href=?wicket:interface=:3:pagination:navigation:
 1:pageLink::ILinkListener::
 span class=pagin-number wicket:id=pageNumber2/span
 /a


 On Sep 30, 2009, at 2:07 PM, Pedro Santos wrote:

  Ok, it is a bug. Could you send us some code? I'm curios to see the
  html
  code generated to link on your page.
 
  On Wed, Sep 30, 2009 at 3:59 PM, Douglas Ferguson 
  doug...@douglasferguson.us wrote:
 
  That's my point.
 
  If your url is getting replaced, then it isn't using ajax.
  It is redrawing the page.
 
  D/
 
  On Sep 29, 2009, at 3:56 PM, Pedro Santos wrote:
 
  I'm using the AjaxPagingNavigation component and it works well, but
  when I
  click on one of the links, my url  is replaced with
 
  /?wicket:interface=:3:4:::
 
  You refers to html A tag generated by navigations links. What you
  got on
  onclick tag attribute on your rendered page?
 
  On Mon, Sep 28, 2009 at 9:57 PM, Douglas Ferguson 
  doug...@douglasferguson.us wrote:
 
  I'm using the AjaxPagingNavigation component and it works well, but
  when I
  click on one of the links, my url  is replaced with
 
  /?wicket:interface=:3:4:::
 
  This is making me thing that the entire page is getting replaced
  and not
  using ajax.
 
  Is is possible to get IPagingNavigationIncrementLink to use
  href=#
  instead of updating the url?
 
  D/
 
 
 
 
  --
  Pedro Henrique Oliveira dos Santos
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
  --
  Pedro Henrique Oliveira dos Santos


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Pedro Henrique Oliveira dos Santos


Re: AjaxPagingNavigation

2009-10-01 Thread Douglas Ferguson
Umm...

I apologize. Somebody else wrote this wrapper and I didn't catch that.

Thanks!

D/

On Oct 1, 2009, at 6:08 AM, Pedro Santos wrote:

 Hi Douglas,
 you extend the AjaxPagingNavigator and override his method  
 newNavigation to
 return an PagingNavigation. The default implementation for ajax  
 return an
 AjaxPagingNavigation. That is what your links don't work  
 asynchronously.

 On Wed, Sep 30, 2009 at 8:49 PM, Douglas Ferguson 
 doug...@douglasferguson.us wrote:

 I just realized that this might be what you wanted to know..

 a class=font-xsmall title=Go to page 2 wicket:id=pageLink
 href=?wicket:interface=:3:pagination:navigation:
 1:pageLink::ILinkListener::
 span class=pagin-number wicket:id=pageNumber2/span
 /a


 On Sep 30, 2009, at 2:07 PM, Pedro Santos wrote:

 Ok, it is a bug. Could you send us some code? I'm curios to see the
 html
 code generated to link on your page.

 On Wed, Sep 30, 2009 at 3:59 PM, Douglas Ferguson 
 doug...@douglasferguson.us wrote:

 That's my point.

 If your url is getting replaced, then it isn't using ajax.
 It is redrawing the page.

 D/

 On Sep 29, 2009, at 3:56 PM, Pedro Santos wrote:

 I'm using the AjaxPagingNavigation component and it works well,  
 but
 when I
 click on one of the links, my url  is replaced with

 /?wicket:interface=:3:4:::

 You refers to html A tag generated by navigations links. What  
 you
 got on
 onclick tag attribute on your rendered page?

 On Mon, Sep 28, 2009 at 9:57 PM, Douglas Ferguson 
 doug...@douglasferguson.us wrote:

 I'm using the AjaxPagingNavigation component and it works well,  
 but
 when I
 click on one of the links, my url  is replaced with

 /?wicket:interface=:3:4:::

 This is making me thing that the entire page is getting replaced
 and not
 using ajax.

 Is is possible to get IPagingNavigationIncrementLink to use
 href=#
 instead of updating the url?

 D/




 --
 Pedro Henrique Oliveira dos Santos


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




 --
 Pedro Henrique Oliveira dos Santos


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




 -- 
 Pedro Henrique Oliveira dos Santos


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: AjaxPagingNavigation

2009-09-30 Thread Douglas Ferguson
That's my point.

If your url is getting replaced, then it isn't using ajax.
It is redrawing the page.

D/

On Sep 29, 2009, at 3:56 PM, Pedro Santos wrote:

 I'm using the AjaxPagingNavigation component and it works well, but  
 when I
 click on one of the links, my url  is replaced with

 /?wicket:interface=:3:4:::

 You refers to html A tag generated by navigations links. What you  
 got on
 onclick tag attribute on your rendered page?

 On Mon, Sep 28, 2009 at 9:57 PM, Douglas Ferguson 
 doug...@douglasferguson.us wrote:

 I'm using the AjaxPagingNavigation component and it works well, but  
 when I
 click on one of the links, my url  is replaced with

 /?wicket:interface=:3:4:::

 This is making me thing that the entire page is getting replaced  
 and not
 using ajax.

 Is is possible to get IPagingNavigationIncrementLink to use href=#
 instead of updating the url?

 D/




 -- 
 Pedro Henrique Oliveira dos Santos


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: AjaxPagingNavigation

2009-09-30 Thread Pedro Santos
Ok, it is a bug. Could you send us some code? I'm curios to see the html
code generated to link on your page.

On Wed, Sep 30, 2009 at 3:59 PM, Douglas Ferguson 
doug...@douglasferguson.us wrote:

 That's my point.

 If your url is getting replaced, then it isn't using ajax.
 It is redrawing the page.

 D/

 On Sep 29, 2009, at 3:56 PM, Pedro Santos wrote:

  I'm using the AjaxPagingNavigation component and it works well, but
  when I
  click on one of the links, my url  is replaced with
 
  /?wicket:interface=:3:4:::
 
  You refers to html A tag generated by navigations links. What you
  got on
  onclick tag attribute on your rendered page?
 
  On Mon, Sep 28, 2009 at 9:57 PM, Douglas Ferguson 
  doug...@douglasferguson.us wrote:
 
  I'm using the AjaxPagingNavigation component and it works well, but
  when I
  click on one of the links, my url  is replaced with
 
  /?wicket:interface=:3:4:::
 
  This is making me thing that the entire page is getting replaced
  and not
  using ajax.
 
  Is is possible to get IPagingNavigationIncrementLink to use href=#
  instead of updating the url?
 
  D/
 
 
 
 
  --
  Pedro Henrique Oliveira dos Santos


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Pedro Henrique Oliveira dos Santos


Re: AjaxPagingNavigation

2009-09-30 Thread Douglas Ferguson
Well.. I have a class that overrides AjaxPagingNavigation

I just add that to my page.

Class  markup below:

 public class BSPagingNavigator extends AjaxPagingNavigator {

 private static final long serialVersionUID = -1l;

 IPageable pageable;

   public BSPagingNavigator(String id, IPageable pageable,  
 IPagingLabelProvider labelProvider) {
   super(id, pageable, labelProvider);
   this.pageable = pageable;
   setOutputMarkupPlaceholderTag(true);
   }

   public BSPagingNavigator(String id, IPageable pageable) {
   this(id, pageable, null);
   }

   protected PagingNavigation newNavigation(final IPageable pageable,  
 final IPagingLabelProvider labelProvider) {
   return new PagingNavigation(navigation, pageable, 
 labelProvider) {
   private static final long serialVersionUID = -1l;
   
   {
   setViewSize(6);
   // setMargin(0);
   setSeparator(|);
   }

   };
   }

   @Override
   protected void onBeforeRender() {
   super.onBeforeRender();
   setVisible(getPageable().getPageCount()  1);
   boolean hideControls = pageable.getPageCount()  10;
   boolean onLastPage = pageable.getPageCount() ==  
 pageable.getCurrentPage();
   boolean onFirstPage = pageable.getCurrentPage() == 0;
   get(last).setVisible(!hideControls  !onLastPage);
   get(prev).setVisible(!hideControls);
   get(next).setVisible(!hideControls);
   get(first).setVisible(!hideControls  !onFirstPage);
   
   }

 }



markup

 wicket:panel
   div class=font-xsmall
   span class=font-xsmall wicket:id=firstemlt;lt;/em/ 
 spannbsp;
   a href=# class=font-xsmall prev wicket:id=prevprev/a
 span class=font-xsmall wicket:id=navigation
 a href=# class=font-xsmall wicket:id=pageLinkspan  
 class=pagin-number wicket:id=pageNumber1/span/a
 /span
 a href=# class=font-xsmall next wicket:id=nextnext/ 
 anbsp;
 a href=#  class=font-xsmall wicket:id=lastgt;gt;/a
 /div
  /wicket:panel



On Sep 30, 2009, at 2:07 PM, Pedro Santos wrote:

 Ok, it is a bug. Could you send us some code? I'm curios to see the  
 html
 code generated to link on your page.

 On Wed, Sep 30, 2009 at 3:59 PM, Douglas Ferguson 
 doug...@douglasferguson.us wrote:

 That's my point.

 If your url is getting replaced, then it isn't using ajax.
 It is redrawing the page.

 D/

 On Sep 29, 2009, at 3:56 PM, Pedro Santos wrote:

 I'm using the AjaxPagingNavigation component and it works well, but
 when I
 click on one of the links, my url  is replaced with

 /?wicket:interface=:3:4:::

 You refers to html A tag generated by navigations links. What you
 got on
 onclick tag attribute on your rendered page?

 On Mon, Sep 28, 2009 at 9:57 PM, Douglas Ferguson 
 doug...@douglasferguson.us wrote:

 I'm using the AjaxPagingNavigation component and it works well, but
 when I
 click on one of the links, my url  is replaced with

 /?wicket:interface=:3:4:::

 This is making me thing that the entire page is getting replaced
 and not
 using ajax.

 Is is possible to get IPagingNavigationIncrementLink to use  
 href=#
 instead of updating the url?

 D/




 --
 Pedro Henrique Oliveira dos Santos


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




 -- 
 Pedro Henrique Oliveira dos Santos


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: AjaxPagingNavigation

2009-09-30 Thread Douglas Ferguson
I just realized that this might be what you wanted to know..

a class=font-xsmall title=Go to page 2 wicket:id=pageLink  
href=?wicket:interface=:3:pagination:navigation: 
1:pageLink::ILinkListener::
span class=pagin-number wicket:id=pageNumber2/span
/a


On Sep 30, 2009, at 2:07 PM, Pedro Santos wrote:

 Ok, it is a bug. Could you send us some code? I'm curios to see the  
 html
 code generated to link on your page.

 On Wed, Sep 30, 2009 at 3:59 PM, Douglas Ferguson 
 doug...@douglasferguson.us wrote:

 That's my point.

 If your url is getting replaced, then it isn't using ajax.
 It is redrawing the page.

 D/

 On Sep 29, 2009, at 3:56 PM, Pedro Santos wrote:

 I'm using the AjaxPagingNavigation component and it works well, but
 when I
 click on one of the links, my url  is replaced with

 /?wicket:interface=:3:4:::

 You refers to html A tag generated by navigations links. What you
 got on
 onclick tag attribute on your rendered page?

 On Mon, Sep 28, 2009 at 9:57 PM, Douglas Ferguson 
 doug...@douglasferguson.us wrote:

 I'm using the AjaxPagingNavigation component and it works well, but
 when I
 click on one of the links, my url  is replaced with

 /?wicket:interface=:3:4:::

 This is making me thing that the entire page is getting replaced
 and not
 using ajax.

 Is is possible to get IPagingNavigationIncrementLink to use  
 href=#
 instead of updating the url?

 D/




 --
 Pedro Henrique Oliveira dos Santos


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




 -- 
 Pedro Henrique Oliveira dos Santos


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: AjaxPagingNavigation

2009-09-29 Thread Pedro Santos
I'm using the AjaxPagingNavigation component and it works well, but when I
click on one of the links, my url  is replaced with

/?wicket:interface=:3:4:::

You refers to html A tag generated by navigations links. What you got on
onclick tag attribute on your rendered page?

On Mon, Sep 28, 2009 at 9:57 PM, Douglas Ferguson 
doug...@douglasferguson.us wrote:

 I'm using the AjaxPagingNavigation component and it works well, but when I
 click on one of the links, my url  is replaced with

 /?wicket:interface=:3:4:::

 This is making me thing that the entire page is getting replaced and not
 using ajax.

 Is is possible to get IPagingNavigationIncrementLink to use href=#
 instead of updating the url?

 D/




-- 
Pedro Henrique Oliveira dos Santos


Re: AjaxPagingNavigation

2009-09-29 Thread Douglas Ferguson
Is anybody successfully using this and witnessing ajax calls?

I can't figure out why it isn't using Ajax as the name implies. I
tried overriding the onAjaxEvent method, but it is never called.

Douglas

On Sep 28, 2009, at 7:57 PM, Douglas Ferguson wrote:

 I'm using the AjaxPagingNavigation component and it works well, but
 when I click on one of the links, my url  is replaced with

 /?wicket:interface=:3:4:::

 This is making me thing that the entire page is getting replaced and
 not using ajax.

 Is is possible to get IPagingNavigationIncrementLink to use href=#
 instead of updating the url?

 D/



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



AjaxPagingNavigation

2009-09-28 Thread Douglas Ferguson
I'm using the AjaxPagingNavigation component and it works well, but when I 
click on one of the links, my url  is replaced with

/?wicket:interface=:3:4:::

This is making me thing that the entire page is getting replaced and not using 
ajax.

Is is possible to get IPagingNavigationIncrementLink to use href=# instead of 
updating the url?

D/