Hi,

first of all let me say that Wicket is a fantastic framework :clap:and I
never had so much fun programming Java (I am more of a Perl / Lisp fan...) I
have written an application which is now in production mode and the
introduction of the StatelessForm class (maybe a minor thing) prompted me to
switch from 1.2.6 to 1.3.3.

There are basically two things where I am not at all happy with the design
decisions. 

The first and most important one is the fact that per default Wicket now
makes css ids unique, which isn't even mentioned in the migration guide (Can
you please add it?). I make heavy use of css in my application and it was
really a nuisance to have to set setOutputMarkupId(false) for a lot of
controls (at least I use markup inheritance a lot, so this wasn't much of an
issue for the WebPage subclasses). I understand that the ids must be unique
and that things crash in case one makes use of nested components. But in my
whole application I do not yet make use of such nesting (of course, coming
from 1.2.6...). So I would find it much more natural if the default would be
setOutputMarkupId(false) instead of the other way around.

The second thing (mentioned in the migration guide) is the omission of the
getContextPath() method from the Settings class. Of course, if you only use
the Wicket servlet for your application, since now all URLs are relative
paths, the method is not needed any more, but I currently deploy two
additional servlets for special purposes together with my Wicket application
and therefore need the information. I resorted to an ugly extraction of the
context path from request.toString() which certainly is no good OO-style and
may break sometime in the future. (Is there a better replacement for
getContextPath()?) Therefore I am thinking about incorporating the features
of those two servlets in my Wicket app soon. I would rather not have been
forced to do this.

Just my 2 cents...

-- 
View this message in context: 
http://www.nabble.com/Migration-pains%3A-new-css-id-handling---no-getContextPath%28%29-tp17618500p17618500.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to