Re: [Wicket-user] Mounting the tree component

2006-07-14 Thread Matej Knopp
Actually, I've been thinking about this hybrid urls for a while (also 
discussed it with igor) and I think it's something we should have. I'm 
probably going to refactor current request encoding/decoding stuff so I 
plan to address this there.

-Matej

Igor Vaynberg wrote:
 the sharedresourcetarget is not the link url it is the node image's url. 
 the link url will be represented by a ListenerInterfaceRequestTarget.
 
 so what you want is instead of url doing this:
 
 /mytree
 click
 /app?wicket:interface=
 
 to do this
 /mytree
 click
 /mytree?wicket:interface=
 
 is this correct? and if so...
 
 i proposed this awhile back, and i think we decided not to proceed 
 because it made url decoding harder. maybe we should reconsider.
 
 what are your reasons for wanting this type of behavior?
 
 -Igor
 
 
 
 On 7/13/06, *David Leangen*  [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:
 
 
 I did some digging, and this is about as far as I got for now:
 
 When determining how to render the link for each node in the tree,
 eventually WebRequestCodingStrategy.encode(RequestCycle, IRequestTarget)
 is called.
 
 Tracing a little further the following call is made:
 
   WebRequestCodingStrategy.pathForTarget(IRequestTarget);
 
 Here, if the encoder (IRequestTargetUrlCodingStrategy) returns null,
 then the default encoding is used. Since the page is mounted, this
 should not be returning null.
 
 
 There culprit is here, in class
 BookmarkablePageRequestTargetUrlCodingStrategy. The matches method
 looks like this:
 
   public boolean matches(IRequestTarget requestTarget)
   {
   if (requestTarget instanceof IBookmarkablePageRequestTarget)
   {
   IBookmarkablePageRequestTarget target =
 (IBookmarkablePageRequestTarget)requestTarget;
   if (bookmarkablePageClass.equals(target.getPageClass()))
   {
   if ( this.pageMapName == null)
   {
   return true;
   }
   else
   {
   return
 this.pageMapName.equals(target.getPageMapName());
   }
   }
   }
   return false;
   }
 
 
 In the case of my tree, requestTarget is of type
 wicket.request.target.resource.SharedResourceRequestTarget. This causes
 the method to return null and, consequently, for mounting of the
 page to
 abort.
 
 
 
 Why is this and what should I do?
 
 
 Thank you!
 Dave
 
 
 
 
 
 On Thu, 2006-07-13 at 16:45 +0900, David Leangen wrote:
   How would I go about getting the Tree component to listen to my
 mount
   point? I mounted the page and would like to do away with the use of
   sessions, but when I click on a node, I lose the mount point on the
   page.
  
   This is how the link is created:
  
 protected Link createNodeLink(final DefaultMutableTreeNode node)
 {
 final Link nodeLink = new Link(nodeLink)
 {
 private static final long serialVersionUID = 1L;
  
 public void onClick()
 {
 nodeLinkClicked(node);
 }
 };
 nodeLink.add(getNodeImage(node));
 nodeLink.add (new Label(label, getNodeLabel(node)));
 return nodeLink;
 }
  
  
   Any simple pointers, before I begin to spend too much time on this?
  
  
   Thanks!
   Dave
  
  
  
  
  
  
 -
   Using Tomcat but need to do more? Need to support web services,
 security?
   Get stuff done quickly with pre-integrated technology to make
 your job easier
   Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
  
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 -
 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make your
 job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 

Re: [Wicket-user] Mounting the tree component

2006-07-14 Thread David Leangen

Hello!

 so what you want is instead of url doing this:
 
 /mytree
 click 
 /app?wicket:interface=
 
 to do this
 /mytree
 click
 /mytree?wicket:interface=
 
 is this correct? and if so...

Yes, that's exactly correct!

 i proposed this awhile back, and i think we decided not to proceed
 because it made url decoding harder. maybe we should reconsider. 
 
 what are your reasons for wanting this type of behavior?

I want my tree to be stateless: I don't want to have to use sessions. At
the same time, I want nice, bookmarkable URLs (including the parameters,
if possible, but I haven't got that far yet).

So, the default state of the tree (all nodes collapsed) should simply
link to
  /mytree
while the tree in any other state should link to
  /mytree?wicket:interface...


I just noticed the same problem with another mounted page. If I try to
used the bookmarkable url, it don't work. :-(


Please let me know what you decide to do. My vote is definitely to allow
parameters with bookmarkable urls.


Thank you!
Dave





-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Mounting the tree component

2006-07-14 Thread Matej Knopp
David Leangen wrote:
 Hello!
 
 so what you want is instead of url doing this:

 /mytree
 click 
 /app?wicket:interface=

 to do this
 /mytree
 click
 /mytree?wicket:interface=

 is this correct? and if so...
 
 Yes, that's exactly correct!
 
 i proposed this awhile back, and i think we decided not to proceed
 because it made url decoding harder. maybe we should reconsider. 

 what are your reasons for wanting this type of behavior?
 
 I want my tree to be stateless: I don't want to have to use sessions. At
 the same time, I want nice, bookmarkable URLs (including the parameters,
 if possible, but I haven't got that far yet).
 
 So, the default state of the tree (all nodes collapsed) should simply
 link to
   /mytree
 while the tree in any other state should link to
   /mytree?wicket:interface...
 
But this is something different. Bookmarkable urls doesn't mean that 
there is no session. You have to store the state of tree somewhere.

-Matej
 
 I just noticed the same problem with another mounted page. If I try to
 used the bookmarkable url, it don't work. :-(
 
 
 Please let me know what you decide to do. My vote is definitely to allow
 parameters with bookmarkable urls.
 
 
 Thank you!
 Dave
 
 
 
 
 
 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Mounting the tree component

2006-07-14 Thread David Leangen
 But this is something different. Bookmarkable urls doesn't mean that 
 there is no session. You have to store the state of tree somewhere.

What I mean is that the state of the tree is determined by the URL
parameter. I don't need to store the state anywhere else.

I'd like to do away with sessions and also have bookmarkable URLs. I'll
look into the session thing. (I thought that by using bookmarkable URLs,
it did away with the session, thanks for pointing that out!)





-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Mounting the tree component

2006-07-14 Thread Matej Knopp
In wicket 2.0 you can create pages that are not stored in session 
(stateless pages).

Anyway, It's not possible with wicket to store state of tree in url, and 
I doubt it ever will be. URL length is limited so it wouldn't work for 
bigger trees. And wicket is managing state for whole pages, so it makes 
no sense to ad-hoc store state of tree in URL either.

-Matej

David Leangen wrote:
 But this is something different. Bookmarkable urls doesn't mean that 
 there is no session. You have to store the state of tree somewhere.
 
 What I mean is that the state of the tree is determined by the URL
 parameter. I don't need to store the state anywhere else.
 
 I'd like to do away with sessions and also have bookmarkable URLs. I'll
 look into the session thing. (I thought that by using bookmarkable URLs,
 it did away with the session, thanks for pointing that out!)
 
 
 
 
 
 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Mounting the tree component

2006-07-14 Thread David Leangen

 Anyway, It's not possible with wicket to store state of tree in url, and 
 I doubt it ever will be. URL length is limited so it wouldn't work for 
 bigger trees. And wicket is managing state for whole pages, so it makes 
 no sense to ad-hoc store state of tree in URL either.

In my case, the tree is read only, so to speak. The tree never
changes. The only state I need to store is which is the open branch,
which requires only one parameter. For instance:

  /mytree?activeNode=abcde


Only one branch can be open at a time. Therefore, the parameter above is
enough to allow me to render the tree correctly.


Cheers,
Dave





-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Mounting the tree component

2006-07-14 Thread Matej Knopp
I see. With wicket 2.0 it should be possible to build a page like this. 
With 1.2 it's not. I guess you can make your own tree subclassing 
WicketTree and replace links on nodes with bookmarkable links, but that 
won't really help you since the page will still be stored in session.

-Matej

David Leangen wrote:
 Anyway, It's not possible with wicket to store state of tree in url, and 
 I doubt it ever will be. URL length is limited so it wouldn't work for 
 bigger trees. And wicket is managing state for whole pages, so it makes 
 no sense to ad-hoc store state of tree in URL either.
 
 In my case, the tree is read only, so to speak. The tree never
 changes. The only state I need to store is which is the open branch,
 which requires only one parameter. For instance:
 
   /mytree?activeNode=abcde
 
 
 Only one branch can be open at a time. Therefore, the parameter above is
 enough to allow me to render the tree correctly.
 
 
 Cheers,
 Dave
 
 
 
 
 
 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Mounting the tree component

2006-07-14 Thread Eelco Hillenius
Yeah, that should be doable. Only thing is that the tree has to use
bookmarkable links for the selection and fold/unfold items, and - if
you really want your tree to be independent from any prior session
state - you have to implement that tree such that it can construct
itself in the proper state when passed in an activeNode argument.

Eelco


On 7/14/06, David Leangen [EMAIL PROTECTED] wrote:

  Anyway, It's not possible with wicket to store state of tree in url, and
  I doubt it ever will be. URL length is limited so it wouldn't work for
  bigger trees. And wicket is managing state for whole pages, so it makes
  no sense to ad-hoc store state of tree in URL either.

 In my case, the tree is read only, so to speak. The tree never
 changes. The only state I need to store is which is the open branch,
 which requires only one parameter. For instance:

  /mytree?activeNode=abcde


 Only one branch can be open at a time. Therefore, the parameter above is
 enough to allow me to render the tree correctly.


 Cheers,
 Dave





 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Mounting the tree component

2006-07-14 Thread Igor Vaynberg
just for the record i was thinking along quiete different lines. i
wasnt thinking about the hybrid stuff we talked about i was thinking
about simply keeping the mount path prefix in the url once a mount is
hit cause it looks prettier and might help out with resource urls. i
wasnt thinking about state, etc at all.

-Igor
On 7/13/06, Matej Knopp [EMAIL PROTECTED] wrote:
Actually, I've been thinking about this hybrid urls for a while (alsodiscussed it with igor) and I think it's something we should have. I'mprobably going to refactor current request encoding/decoding stuff so I
plan to address this there.-MatejIgor Vaynberg wrote: the sharedresourcetarget is not the link url it is the node image's url. the link url will be represented by a ListenerInterfaceRequestTarget.
 so what you want is instead of url doing this: /mytree click /app?wicket:interface= to do this /mytree click /mytree?wicket:interface=
 is this correct? and if so... i proposed this awhile back, and i think we decided not to proceed because it made url decoding harder. maybe we should reconsider. what are your reasons for wanting this type of behavior?
 -Igor On 7/13/06, *David Leangen*  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 wrote: I did some digging, and this is about as far as I got for now: When determining how to render the link for each node in the tree, eventually WebRequestCodingStrategy.encode
(RequestCycle, IRequestTarget) is called. Tracing a little further the following call is made: WebRequestCodingStrategy.pathForTarget(IRequestTarget); Here, if the encoder (IRequestTargetUrlCodingStrategy) returns null,
 then the default encoding is used. Since the page is mounted, this should not be returning null. There culprit is here, in class BookmarkablePageRequestTargetUrlCodingStrategy. The matches method
 looks like this: public boolean matches(IRequestTarget requestTarget) { if (requestTarget instanceof IBookmarkablePageRequestTarget) {
 IBookmarkablePageRequestTarget target = (IBookmarkablePageRequestTarget)requestTarget;
if (bookmarkablePageClass.equals(target.getPageClass())) {
if ( this.pageMapName == null) {
return true; } else {
return this.pageMapName.equals(target.getPageMapName()); } } } return false; } In the case of my tree, requestTarget is of type
 wicket.request.target.resource.SharedResourceRequestTarget. This causes the method to return null and, consequently, for mounting of the page to abort.
 Why is this and what should I do? Thank you! Dave On Thu, 2006-07-13 at 16:45 +0900, David Leangen wrote: How would I go about getting the Tree component to listen to my
 mount point? I mounted the page and would like to do away with the use of sessions, but when I click on a node, I lose the mount point on the page.
 This is how the link is created: protected Link createNodeLink(final DefaultMutableTreeNode node) { final Link nodeLink = new Link(nodeLink)
 {
private static final long serialVersionUID = 1L; public void onClick() {
nodeLinkClicked(node); } }; nodeLink.add(getNodeImage(node));
nodeLink.add (new Label(label, getNodeLabel(node))); return nodeLink; } Any simple pointers, before I begin to spend too much time on this?
 Thanks! Dave -
 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server 
v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___
 Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:
Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -
 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server 
v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___
 Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user 
 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 

[Wicket-user] Mounting the tree component

2006-07-13 Thread David Leangen

How would I go about getting the Tree component to listen to my mount
point? I mounted the page and would like to do away with the use of
sessions, but when I click on a node, I lose the mount point on the
page.

This is how the link is created:

  protected Link createNodeLink(final DefaultMutableTreeNode node)
  {
  final Link nodeLink = new Link(nodeLink)
  {
  private static final long serialVersionUID = 1L;

  public void onClick()
  {
  nodeLinkClicked(node);
  }
  };
  nodeLink.add(getNodeImage(node));
  nodeLink.add(new Label(label, getNodeLabel(node)));
  return nodeLink;
  }


Any simple pointers, before I begin to spend too much time on this?


Thanks!
Dave





-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Mounting the tree component

2006-07-13 Thread David Leangen

I did some digging, and this is about as far as I got for now:

When determining how to render the link for each node in the tree,
eventually WebRequestCodingStrategy.encode(RequestCycle, IRequestTarget)
is called.

Tracing a little further the following call is made:

  WebRequestCodingStrategy.pathForTarget(IRequestTarget);

Here, if the encoder (IRequestTargetUrlCodingStrategy) returns null,
then the default encoding is used. Since the page is mounted, this
should not be returning null.


There culprit is here, in class
BookmarkablePageRequestTargetUrlCodingStrategy. The matches method
looks like this:

  public boolean matches(IRequestTarget requestTarget)
  {
  if (requestTarget instanceof IBookmarkablePageRequestTarget)
  {
  IBookmarkablePageRequestTarget target =
(IBookmarkablePageRequestTarget)requestTarget;
  if (bookmarkablePageClass.equals(target.getPageClass()))
  {
  if (this.pageMapName == null)
  {
  return true;
  }
  else
  {
  return
this.pageMapName.equals(target.getPageMapName());
  }
  }
  }
  return false;
  }


In the case of my tree, requestTarget is of type
wicket.request.target.resource.SharedResourceRequestTarget. This causes
the method to return null and, consequently, for mounting of the page to
abort.



Why is this and what should I do?


Thank you!
Dave





On Thu, 2006-07-13 at 16:45 +0900, David Leangen wrote:
 How would I go about getting the Tree component to listen to my mount
 point? I mounted the page and would like to do away with the use of
 sessions, but when I click on a node, I lose the mount point on the
 page.
 
 This is how the link is created:
 
   protected Link createNodeLink(final DefaultMutableTreeNode node)
   {
   final Link nodeLink = new Link(nodeLink)
   {
   private static final long serialVersionUID = 1L;
 
   public void onClick()
   {
   nodeLinkClicked(node);
   }
   };
   nodeLink.add(getNodeImage(node));
   nodeLink.add(new Label(label, getNodeLabel(node)));
   return nodeLink;
   }
 
 
 Any simple pointers, before I begin to spend too much time on this?
 
 
 Thanks!
 Dave
 
 
 
 
 
 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Mounting the tree component

2006-07-13 Thread Igor Vaynberg
the sharedresourcetarget is not the link url it is the node image's url. the link url will be represented by a ListenerInterfaceRequestTarget.so what you want is instead of url doing this:/mytreeclick
/app?wicket:interface=to do this/mytreeclick/mytree?wicket:interface=is this correct? and if so...i proposed this awhile back, and i think we decided not to proceed because it made url decoding harder. maybe we should reconsider.
what are your reasons for wanting this type of behavior?-IgorOn 7/13/06, David Leangen 
[EMAIL PROTECTED] wrote:I did some digging, and this is about as far as I got for now:
When determining how to render the link for each node in the tree,eventually WebRequestCodingStrategy.encode(RequestCycle, IRequestTarget)is called.Tracing a little further the following call is made:
WebRequestCodingStrategy.pathForTarget(IRequestTarget);Here, if the encoder (IRequestTargetUrlCodingStrategy) returns null,then the default encoding is used. Since the page is mounted, thisshould not be returning null.
There culprit is here, in classBookmarkablePageRequestTargetUrlCodingStrategy. The matches methodlooks like this:public boolean matches(IRequestTarget requestTarget){if (requestTarget instanceof IBookmarkablePageRequestTarget)
{IBookmarkablePageRequestTarget target =(IBookmarkablePageRequestTarget)requestTarget;if (bookmarkablePageClass.equals(target.getPageClass())){if (
this.pageMapName == null){return true;}else{returnthis.pageMapName.equals(target.getPageMapName());
}}}return false;}In the case of my tree, requestTarget is of typewicket.request.target.resource.SharedResourceRequestTarget. This causesthe method to return null and, consequently, for mounting of the page to
abort.Why is this and what should I do?Thank you!DaveOn Thu, 2006-07-13 at 16:45 +0900, David Leangen wrote: How would I go about getting the Tree component to listen to my mount
 point? I mounted the page and would like to do away with the use of sessions, but when I click on a node, I lose the mount point on the page. This is how the link is created:
 protected Link createNodeLink(final DefaultMutableTreeNode node) { final Link nodeLink = new Link(nodeLink) { private static final long serialVersionUID = 1L;
 public void onClick() { nodeLinkClicked(node); } }; nodeLink.add(getNodeImage(node)); nodeLink.add
(new Label(label, getNodeLabel(node))); return nodeLink; } Any simple pointers, before I begin to spend too much time on this? Thanks!
 Dave - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/wicket-user-Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user