I don't agree, as all the other chinese characters outside the button
are displayed properly.

Juergen

On 4/25/05, Jonathan Locke <[EMAIL PROTECTED]> wrote:
> 
> i think this is because the server you are running on does not have the
> right chinese fonts available, but the browser does.  i bet if we ask
> our friend in china if the buttons have chinese characters on them when
> he runs forminput on his chinese-language-enabled server, that he'll say
> "why, yes they do!"
> 
> Eelco Hillenius wrote:
> 
> > Alas, I getting crazy here. Doing this:
> >
> >        getSharedResources().add("save", Locale.SIMPLIFIED_CHINESE,
> >                new DefaultButtonImageResource("\u4E4B\u5916"));
> >        getSharedResources().add("reset", Locale.SIMPLIFIED_CHINESE,
> >                new
> > DefaultButtonImageResource("\u91CD\u65B0\u8BBE\u7F6E"));
> >
> > should fix it, but the funny thing is that - while I tested putting a
> > Chines character on a button this afternoon by playing with the images
> > example - this doesn't seem to work anymore :| Other characters, like
> > '\u20A4' (pound) do work.
> >
> > I don't get it...
> >
> > Eelco
> >
> >
> > Eelco Hillenius wrote:
> >
> >> Oh yeah... I could just patch the Chinese example. Didn't think of
> >> that :)
> >>
> >> Eelco
> >>
> >> Jonathan Locke wrote:
> >>
> >>>
> >>> i kindof like them because they demo a powerful feature.  could we
> >>> change only the chinese buttons to non-image buttons for now and fix
> >>> the problem in 1.1?
> >>>
> >>> Eelco Hillenius wrote:
> >>>
> >>>> 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 &euro; 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
> >>>>
> >>>
> >>>
> >>> -------------------------------------------------------
> >>> 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_ide95&alloc_id396&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to