i think we have it covered now thanks to Juergen. you can either let the prepender figure out the context path for you - which should work in most cases, or provide your own path in the constructor.

-Igor


On 12/15/05, Johan Compagner <[EMAIL PROTECTED]> wrote:
that looks fine to me also.
for my example that i see it is mosty just a dns name mapped to a context (so no context should be prepended)
IF it is mapped to a dns name and some dir context then i would say make the dir context the same as the context on the webapp then you don't have a problem.

I think if we just can control the part: http://servername/context somehow then thats perfect.

johan




On 12/14/05, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
hmm. yeah that would be a problem. usually ive seen cluster nodes setup like this:

node1.mydomain.com
node2.mydomain.com
node3.mydomain.com
and a balancer at mydomain.com

this kind of setup avoids the problem.

i dont think we will be able to do this by default. i think what we should do is allow the resolver to take a string which would be the context path, and a default constructor which resolves the context path like we do now. this way we can leave it up to the person who implemented the cluster to figure out how to retrieve the proper context path and it would still work for most users via the default setting.

-Igor



On 12/14/05, Juergen Donnerstag < [EMAIL PROTECTED]> wrote:
I think that is what PrependContextPath currently does, but (from a
previous mail)
>>>>
just had a discussion today with jan blok and the context path where
does it now come from?
Because if we are fully qualifying everything we could cause problems
when you want to use virtual hosting like this:

a local network ApplicationServer having a number of wicket webapps.
like : localhost/wicketapp1/wicketservlet and
localhost/wicketapp2/wicketservlet

Then you have the HttpServer that is connected to the internet that
maps one of the wicket apps (because that one is also accesible from
the outside)
to a dns name:

http:://my.domainname.com/

which is pointing to:

http://192.169.1.10/wicketapp1/

So if we suddenly make all urls look like
/wicketapp1/wicketservlet/resources/application/MyResource.jpg
We have a problem because on server http:://my.domainname.com/ that
that url isn't there
there it just should be
http:://my.domainname.com/wicketservlet/resources/application/MyResource.jpg

So in other words there is no context path..
<<<

Juergen

On 12/14/05, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> maybe what we can do is only prepend the aboslute path instead of the
> protocol/servernname/etc. that should take care of the virtual server
> problem.
>
> ie transform <img src="" into <img
> src="" instead of <img src="">> http://server.com/something/context/blah.gif">
>
> -Igor
>
>
>
> On 12/14/05, Christian Essl < [EMAIL PROTECTED]> wrote:
> > I see. Thanks for your answer. Will still try to play with it a bit. Maybe
> > I can give you some feedback.
> >
> > Christian
> >
> > On Wed, 14 Dec 2005 10:46:16 +0100, Juergen Donnerstag
> > < [EMAIL PROTECTED]> wrote:
> >
> > > PrependContextPathHandler is not activated by default because we are
> > > still not 100% clear on how to handle it. Open questions are: how does
> > > it compare to wicket:link and autolink and do we need to
> > > change/deprecate any of these? Shall it be mount path related yes/no?
> > > Virtual web servers will fail if you use PrependContextPathHandler!
> > > The niceurl example still fails and we do not have a solid solution
> > > approach yet.
> > >
> > > Because it is still under discussion/development, it is not yet in the
> > > changelog
> > >
> > > Juergen
> > >
> > > On 12/14/05, Christian Essl < [EMAIL PROTECTED]> wrote:
> > >> Thanks Juergen,
> > >>
> > >> Is this auto replacement of href and src attributes implemented when
> > >> using
> > >> mounted bookmarkable pages? Have not found anything about mounting (or
> > >> the
> > >> new request handling) in the changelog.
> > >>
> > >> Christian
> > >>
> > >> On Wed, 14 Dec 2005 10:20:58 +0100, Juergen Donnerstag
> > >> < [EMAIL PROTECTED]> wrote:
> > >>
> > >> > CVS xdocs/changes.xml
> > >> >
> > >> > Juergen
> > >> >
> > >> > On 12/14/05, Christian Essl < [EMAIL PROTECTED] > wrote:
> > >> >> Hi,
> > >> >>
> > >> >> Can anyone point me to a changelog or some other description of the
> > >> new
> > >> >> 1.2 version?
> > >> >>
> > >> >> Thanks,
> > >> >> Christian
> > >> >>
> > >> >> --
> > >> >> Christian Essl
> > >> >>
> > >> >>
> > >> >>
> > >> >>
> > >> >>
> > >> >>
> ___________________________________________________________
> > >> >> Telefonate ohne weitere Kosten vom PC zum PC:
> > >> http://messenger.yahoo.de
> > >> >>
> > >> >>
> > >> >>
> > >> >>
> -------------------------------------------------------
> > >> >> This SF.net email is sponsored by: Splunk Inc. Do you grep through
> > >> log
> > >> >> files
> > >> >> for problems?  Stop!  Download the new AJAX search engine that makes
> > >> >> searching your log files as easy as surfing the  web.  DOWNLOAD
> > >> SPLUNK!
> > >> >>
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> > >> >> _______________________________________________
> > >> >> Wicket-user mailing list
> > >> >> Wicket-user@lists.sourceforge.net
> > >> >>
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >> >>
> > >> >
> > >> >
> > >> >
> -------------------------------------------------------
> > >> > This SF.net email is sponsored by: Splunk Inc. Do you grep through
> log
> > >> > files
> > >> > for problems?  Stop!  Download the new AJAX search engine that makes
> > >> > searching your log files as easy as surfing the  web.  DOWNLOAD
> > >> SPLUNK!
> > >> > http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
> > >> > _______________________________________________
> > >> > Wicket-user mailing list
> > >> > Wicket-user@lists.sourceforge.net
> > >> >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >>
> > >>
> > >>
> > >> --
> > >> Christian Essl
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> ___________________________________________________________
> > >> Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
> > >>
> > >>
> > >>
> > >>
> -------------------------------------------------------
> > >> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> > >> files
> > >> for problems?  Stop!  Download the new AJAX search engine that makes
> > >> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> > >>
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> > >> _______________________________________________
> > >> Wicket-user mailing list
> > >> Wicket-user@lists.sourceforge.net
> > >>
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >>
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> > > files
> > > for problems?  Stop!  Download the new AJAX search engine that makes
> > > searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> > > http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
> > > _______________________________________________
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> >
> > --
> > Christian Essl
> >
> >
> >
> >
> >
> >
> ___________________________________________________________
> > Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> > for problems?  Stop!  Download the new AJAX search engine that makes
> > searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> > _______________________________________________
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&opclick
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



Reply via email to