Re: mark bookmarkable Link as selected

2013-01-07 Thread Dirk Wichmann

Ah, I see, thats exact what I'm searching for.
I've wrapped the BookmarkableLink in a Panel and override onConfigure() 
so the default wont match.


Thanks, a lot
Cheers Dirk

Mit freundlichem Gruß
*Dirk Wichmann*
d...@team-wichmann.de mailto:d...@team-wichmann.de
Mobil: +49 163 569 2 563
Am 06.01.2013 13:35, schrieb Martin Grigorov:

He means  org.apache.wicket.markup.html.link.BookmarkablePageLink#linksTo().

By default Wicket disables any link in the current page which points to the
same page. See org.apache.wicket.markup.html.link.Link#isEnabled()


On Sun, Jan 6, 2013 at 2:30 PM, Dirk Wichmann d...@team-wichmann.de wrote:


Hi Per,

sorry, but I dont understand?? what means linksto(page) in bpl. Athen
I know the onconfigure method but what should I check there??

Thanks in advance
Cheers Dirk


Mit freundlichem Gruß
*Dirk Wichmann*
d...@team-wichmann.de mailto:d...@team-wichmann.de
Mobil: +49 163 569 2 563
Am 05.01.2013 19:19, schrieb per.newgro:

  You could usw linksto(page) in bpl. Athen in onconfigure oft the link you

can check if this is true and disable the link. Maybe link.getpage helps to.

Cheers Per









Re: mark bookmarkable Link as selected

2013-01-06 Thread Dirk Wichmann

Hi Per,

sorry, but I dont understand?? what means linksto(page) in bpl. Athen
I know the onconfigure method but what should I check there??

Thanks in advance
Cheers Dirk

Mit freundlichem Gruß
*Dirk Wichmann*
d...@team-wichmann.de mailto:d...@team-wichmann.de
Mobil: +49 163 569 2 563
Am 05.01.2013 19:19, schrieb per.newgro:

You could usw linksto(page) in bpl. Athen in onconfigure oft the link you can 
check if this is true and disable the link. Maybe link.getpage helps to.

Cheers Per




Re: mark bookmarkable Link as selected

2013-01-06 Thread Martin Grigorov
He means  org.apache.wicket.markup.html.link.BookmarkablePageLink#linksTo().

By default Wicket disables any link in the current page which points to the
same page. See org.apache.wicket.markup.html.link.Link#isEnabled()


On Sun, Jan 6, 2013 at 2:30 PM, Dirk Wichmann d...@team-wichmann.de wrote:

 Hi Per,

 sorry, but I dont understand?? what means linksto(page) in bpl. Athen
 I know the onconfigure method but what should I check there??

 Thanks in advance
 Cheers Dirk


 Mit freundlichem Gruß
 *Dirk Wichmann*
 d...@team-wichmann.de mailto:d...@team-wichmann.de
 Mobil: +49 163 569 2 563
 Am 05.01.2013 19:19, schrieb per.newgro:

  You could usw linksto(page) in bpl. Athen in onconfigure oft the link you
 can check if this is true and disable the link. Maybe link.getpage helps to.

 Cheers Per





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


mark bookmarkable Link as selected

2013-01-05 Thread Dirk Wichmann

Hi,

I have developed a page with two columns, in the lift column there is a 
List of BookmarkablePageLink s
after clicking a Link the right column shows the corresponding Page. 
Everything fine...
Now I'm trying to mark the clicked Link as active (maybe set the Link 
disabled) to show where the user is.
First I thought that the best way is to use a Behavior and look in the 
onComponentTag method if the link is clicked but that wont work.


Have anyone a better idea or a hint where I should take a closer look?

Thanks in advance
Dirk


--
Mit freundlichem Gruß
*Dirk Wichmann*
d...@team-wichmann.de mailto:d...@team-wichmann.de
Mobil: +49 163 569 2 563


Re: mark bookmarkable Link as selected

2013-01-05 Thread per.newgro
You could usw linksto(page) in bpl. Athen in onconfigure oft the link you can 
check if this is true and disable the link. Maybe link.getpage helps to.

Cheers Per
-- 
Diese Nachricht wurde von meinem Android Mobiltelefon mit GMX Mail gesendet.



Dirk Wichmann d...@team-wichmann.de schrieb:

Hi,

I have developed a page with two columns, in the lift column there is a 
List of BookmarkablePageLink s
after clicking a Link the right column shows the corresponding Page. 
Everything fine...
Now I'm trying to mark the clicked Link as active (maybe set the Link 
disabled) to show where the user is.
First I thought that the best way is to use a Behavior and look in the 
onComponentTag method if the link is clicked but that wont work.

Have anyone a better idea or a hint where I should take a closer look?

Thanks in advance
Dirk


-- 
Mit freundlichem Gruß
*Dirk Wichmann*
d...@team-wichmann.de mailto:d...@team-wichmann.de
Mobil: +49 163 569 2 563