On 11/30/05, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> Dallas! That's funny. We're both in the States now then. Any chance
> you'll be near Seattle?
>

I guess not. I'm busy till friday and the flight back is on friday afternoon.

> On 11/29/05, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
> > Actually I'm in Dallas this week and it is 10pm currently over here.
> >
> > > 2. (Probably cheaper, maybe easier) what I suggested: always prepend
> > > absolute src and href attribute values with /context-path/ as a last
> > > post processing step. Would that have any real disadvantages? I think
> > > this should always work, don't you?
> >
> > you mean absolut urls without hostname like /myPage.html (a url which
> > starts with "/") and leave alone all http://xxx/yyy and all relative
> > paths like myPage.html?
>
> Erm. I meant relative src/ href values. thus things like:
> src="myimage.jpg". There are the ones that cause problems.
>

Than we run into the <wicket:link> problem. IMO the user should have
the choice to switch it on and off. And than <wicket:link> must
support at least two different means of translating the relative into
whatever url scheme is currently in place.

> >
> > I would rather pre-process than post-process it. Reason: a) we have no
> > real post-processing and b) if a component decides to change it,
> > post-processing would possibly modify that as well, which I personally
> > wouldn't like.
>
> a) I think Johan recently added such support to Wicket. Maybe
> something else to discuss.
> b) From a components point of view, I agree.. It's kind of dirty to do
> such post processing. Otoh, it /is/ the only way you can be sure it is
> done or even needed as beforehand you won't know as components might
> change the values etc.
>

You know during pre-processing if it is needed already. Only you don't
change the user values. You'd expect the user the know what he is
doing (and he is in the control of adding the context path)

> I think we have to choose between either:
> * having 'magical' support so that your Wicket pages will keep on
> working even though you mount them on crazy paths, or
> * not having out-of-the-box mounting/ nice url support at all and
> promote the use of Servlet filters for this purpose.
>
> As nice urls seem to be a big thing for a lot of people, I tend to sit
> in the magical support camp.
>

Juergen


-------------------------------------------------------
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-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to