Re: Changing the tag of a PagingNavigationLink

2015-08-04 Thread Sven Meier

Hi,

in Wicket 6.x AbstractLink#disableLink() convertes a to span. This 
has changed for Wicket 7, see:


 https://issues.apache.org/jira/browse/WICKET-4904

You have to subclass the link and override #disableLink() - this might 
be laborious for PagingNavigationLink though.


As an alternative try to add a behavior to all links (via an 
IComponentInstantiationListener) and revert the tag name to a.


Have fun
Sven


On 04.08.2015 12:15, rob...@dubture.com wrote:

Hi all,

when implementing a DataTable, the link to the currently selected page
is rendered using a span element rather than an a element (like the
other pagination links).

I can't find a way to change this behavior, nor where wicket decides
which tag to render.

Can anyone point me into the right direction?

Example can be found here:
http://www.wicket-library.com/wicket-examples/repeater/wicket/bookmarkable/org.apache.wicket.examples.repeater.DataTablePage?0

thanks,


robert


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




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



Re: Changing the tag of a PagingNavigationLink

2015-08-04 Thread Martin Grigorov
Hi,

On Tue, Aug 4, 2015 at 2:19 PM, Sven Meier s...@meiers.net wrote:

 Hi,

 in Wicket 6.x AbstractLink#disableLink() convertes a to span. This has
 changed for Wicket 7, see:

  https://issues.apache.org/jira/browse/WICKET-4904

 You have to subclass the link and override #disableLink() - this might be
 laborious for PagingNavigationLink though.

 As an alternative try to add a behavior to all links (via an
 IComponentInstantiationListener) and revert the tag name to a.


You can use
https://github.com/l0rdn1kk0n/wicket-bootstrap/blob/3fc444e76e2dfeda2d484ddfb822d5ee022ad524/bootstrap-core/src/main/java/de/agilecoders/wicket/core/markup/html/bootstrap/button/Buttons.java#L26
as inspiration.



 Have fun
 Sven



 On 04.08.2015 12:15, rob...@dubture.com wrote:

 Hi all,

 when implementing a DataTable, the link to the currently selected page
 is rendered using a span element rather than an a element (like the
 other pagination links).

 I can't find a way to change this behavior, nor where wicket decides
 which tag to render.

 Can anyone point me into the right direction?

 Example can be found here:

 http://www.wicket-library.com/wicket-examples/repeater/wicket/bookmarkable/org.apache.wicket.examples.repeater.DataTablePage?0

 thanks,


 robert


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



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




Changing the tag of a PagingNavigationLink

2015-08-04 Thread robert
Hi all,

when implementing a DataTable, the link to the currently selected page
is rendered using a span element rather than an a element (like the
other pagination links).

I can't find a way to change this behavior, nor where wicket decides
which tag to render. 

Can anyone point me into the right direction?

Example can be found here:
http://www.wicket-library.com/wicket-examples/repeater/wicket/bookmarkable/org.apache.wicket.examples.repeater.DataTablePage?0
 

thanks,


robert


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



Re: Changing the tag of a PagingNavigationLink

2015-08-04 Thread robert
Great, that worked. Thanks for the tip!


regards,


-robert



On Tue, Aug 4, 2015, at 01:58 PM, Martin Grigorov wrote:
 Hi,
 
 On Tue, Aug 4, 2015 at 2:19 PM, Sven Meier s...@meiers.net wrote:
 
  Hi,
 
  in Wicket 6.x AbstractLink#disableLink() convertes a to span. This has
  changed for Wicket 7, see:
 
   https://issues.apache.org/jira/browse/WICKET-4904
 
  You have to subclass the link and override #disableLink() - this might be
  laborious for PagingNavigationLink though.
 
  As an alternative try to add a behavior to all links (via an
  IComponentInstantiationListener) and revert the tag name to a.
 
 
 You can use
 https://github.com/l0rdn1kk0n/wicket-bootstrap/blob/3fc444e76e2dfeda2d484ddfb822d5ee022ad524/bootstrap-core/src/main/java/de/agilecoders/wicket/core/markup/html/bootstrap/button/Buttons.java#L26
 as inspiration.
 
 
 
  Have fun
  Sven
 
 
 
  On 04.08.2015 12:15, rob...@dubture.com wrote:
 
  Hi all,
 
  when implementing a DataTable, the link to the currently selected page
  is rendered using a span element rather than an a element (like the
  other pagination links).
 
  I can't find a way to change this behavior, nor where wicket decides
  which tag to render.
 
  Can anyone point me into the right direction?
 
  Example can be found here:
 
  http://www.wicket-library.com/wicket-examples/repeater/wicket/bookmarkable/org.apache.wicket.examples.repeater.DataTablePage?0
 
  thanks,
 
 
  robert
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 

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



Portlet support status

2015-08-04 Thread gmparker2000
I asked this question a couple of years ago and at the time it appeared that
portlet support wasn't much of a priority.  I thought I would ask again
since I am about to start a project that could really benefit from using
JetSpeed or Liferay.  I see that there is a portlet project in Wicket stuff
source.  Just wondering if   this is actively being used by the community? 
Is there any documentation or sample portlets available?

thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Portlet-support-status-tp4671745.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