uh, my bad.

i removed that a while ago when i was trying to shrink down the examples home page a bit... ;-)

Christopher Turner wrote:

Ooops, I didn't see the existing encoding example as it has disappeared from the index page of the examples!
Shouldn't the examples index page include all of the examples?


Shall I rollback my changes?


One question that this does raise is "What version of the Servlet specification are we targeting for Wicket?"
If we are only targeting v2.4 then I think the existing approach is fine because it allows 2.3 support with a bit of effort. If we are also targeting Wicket as supporting Servlet 2.3 and 2.4 then shouldn't the existing encoding stuff be in the Wicket core and not the contrib project?


Sorry for the confusion!

Regards,
Chris

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: 11 March 2005 14:46
> To: [email protected]
> Subject: Re: [Wicket-develop] Character encoding
>
>
> On Fri, 11 Mar 2005 15:29:21 +0100, Christopher Turner
> <[EMAIL PROTECTED]> wrote:
> >
> >
> > Hi All,
> > Based on an email earlier today from Gili and something I
> dealt with a
> > couple of days ago on a non-Wicket related project, I have
> now added the
> > ability to easily change the character set encoding of
> Wicket applications.
> > Up until now all Wicket application have used the default
> character set
> > encoding of the platform on which they are running (usually
> ISO-8859-1 on
> > european and US Windows machines). The new approach is
> incredibly simple,
> > uses the most reliable and recommended approach, is easy to
> expand and, most
> > importantly, does not expose the underlying HTTP protocol
> implementation to
> > users of the Wicket framework.
>
> I don't think this is true. See the encodings example and wicket wiki.
>
> >
> > The change the character set encoding of your Wicket web
> application
> > all you have to do is add a servlet filter definition to
> your web.xml
> > file as
> > follows:
> >
> > <filter>
> > <filter-name>SetCharacterEncoding</filter-name>
> > > >
> <filter-class>wicket.protocol.http.SetCharacterEncodingFilter<
/filter-class>
> > <init-param>
> > <param-name>encoding</param-name>
> > <param-value>UTF-8</param-value>
> > <init-param>
> > </filter>
> >
> > <filter-mapping>
> > <filter-name>SetCharacterEncoding</filter-name>
> > <servlet-name>WicketServletName</servlet-name>
> > OR
> > <url-pattern>/apppath/*</url-pattern>
> > </filter-mapping>
> >
> > If this definition is not included or the encoding parameter is not
> > supplied then the default platform encoding will be used (as is
> > currently the case).
>
> I think this is in contradiction to servlet spec 2.4 which
> has similiar approach build in as well? Aren't we confusing
> users? though I agree it is nice to have an approach which
> works with 2.4 and 2.3.
>
> >
> > If you wish to have more fine-grained control over the
> encoding (e.g.
> > different character encodings for different pages, users or browser
> > versions) then the recommended approach is to implement a servlet
> > filter that includes this more powerful decision logic.
> This approach
> > keeps your application code much cleaner and means you can
> easily add
> > support for new character encodings without needing to alter and
> > recompile existing application code.
> >
>
> We did have that already?!?!
>
> Juergen
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from
> real users. Discover which products truly live up to the
> hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396 <http://ads.osdn.com/?ad_id=6595&alloc_id=14396>> &op=click
>
> _______________________________________________
>
> Wicket-develop mailing list [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-develop
>
>




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to