Sure. I would like to have the Chinese inputform example working though. And the only thing missing now are the buttons. I'd like to convert the inputform example to use normal HTML buttons instead of the generated ones. Though it is a spliffy feature to have the generated ones, they also annoy me a bit as I have to wait sometimes up to a few seconds until the buttons get generated (sorry Jon :) ).

Is that okay?

Eelco

Jonathan Locke wrote:


i think we can defer this fix to 1.1 at least, don't you?

Eelco Hillenius wrote:

No, I'm talking about the generated (with Swing's draw method) buttons here.

Explicitly putting the HTML file in unicode mode, combined with the UTF-8 header has at least the effect that I can put Chinese characters in HTML directly /and/ that they render properly in my browser. The button does have the same problem still though.

I'm wondering what would be the preferred way of doing your markup anyway? Personally, I try to avoid using 'special' characters directly. So, I'll use € instead the euro character. So, in that respect IF possible, it would be great to support unicode as well. Otoh, the button probably is the only real issue for this, and that could be easily circumvented by either pre-generating the buttons in Java, or - that might be even better - just make them normal HTML buttons.

Eelco

Jonathan Locke wrote:


or you could use the html entity thing (&#nnnn;) here too, right?

Jonathan Locke wrote:


shouldn't the actual HTML file be in unicode? (you would need a unicode text editor)


Eelco Hillenius wrote:

Hi,

I just added a chinese (or at least something that looks like it using Babelfish) version of the input form. I am strugling with unicode support and the parsing of the template.

More specifically, I want to create a button that uses unicode like this:

<img wicket:id="resetButtonImage" value="buttonFactory:reset:\u53D6\u6D88"/>

Somehow, when parsing the templates, it looks like the slashes are escaped automatically (e.g. \u53D6 is converted to \\u53D6). So the buttons will be rendered with the literal '\u53D6' instead of looking up the proper character. What *does* work however, is constructing a button that uses unicode from Java directly, like:

getSharedResources().add("cancelButton", new DefaultButtonImageResource("\u53D6\u6D88"));

So, my guess is that we have parsing problem.

Any idea's/ fixes?

Eelco

b.t.w. I committed the chinese version of the input form so you can test it.


-------------------------------------------------------
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




-------------------------------------------------------
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




-------------------------------------------------------
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






-------------------------------------------------------
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



-------------------------------------------------------
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




-------------------------------------------------------
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