I've given this approach a try and it didn't work for me. I just did an
override on my derived LinkTree's newLink method and returned a bookmarkable
link regardless of link type:
@Override
public MarkupContainer newLink(String id, final ILinkCallback callback)
{
return new BookmarkablePageLink(id, Pro_Nav.class);
}
Changing the link type prevents the tree from working: expanding no longer
works, probably because I've subverted the handlers that handle the tree
expand icon.
I really need simple links like this:
# tree node link text
I'm fairly new to Wicket, and I'm trying a number of approaches suggested in
the archives, but have yet to find a solution that doesn't involve rewriting
much of the LinkTree. How do I get there from here?
Devin
igor.vaynberg wrote:
>
> you have to override the method that generates the link and replace it
> with
> a BookmarkablePageLink
>
> -igor
>
>
> On 10/15/07, Kevin Liu <[EMAIL PROTECTED]> wrote:
>>
>> The question may be how ajaxLink be bookmarkable:
>> the code below absolutely does not work fine:
>>
>> pageLink = new AjaxLink(id){
>> private static final long serialVersionUID =
>> 3332246227467032288L;
>> public void onClick(AjaxRequestTarget target){
>> //..
>> setResponsePage(Destination.class);
>> updateTree(target);
>>
>> }
>>
>> };
>> pageLink.add(new AttributeModifier("target",true,new
>> Model("right")));
>>
>> Kevin Liu <[EMAIL PROTECTED]> wrote:
>> Could someone tell me how to use LinkTree in the left frame and the
>> target of the links in the tree is the right frame??
>> Thanks a lot~
>>
>>
>> -Kevin Liu
>>
>> ---------------------------------
>> Be a better Heartthrob. Get better relationship answers from someone who
>> knows.
>> Yahoo! Answers - Check it out.
>>
>>
>> -Kevin Liu
>>
>> ---------------------------------
>> Looking for a deal? Find great prices on flights and hotels with Yahoo!
>> FareChase.
>
>
--
View this message in context:
http://www.nabble.com/how-to-use-LinkTree-in-frame-tf4631486.html#a13512564
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]