Re: use ui:text from
HTML Attributes that Need Translationhttp://code.google.com/webtoolkit/doc/latest/DevGuideUiBinderI18n.html#HTML_attributes_that_need_translation Is that what you're looking for ? Note that I think 'ui:name' and 'ui:description' are decprecated and should simply be 'name' and 'description'. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/0JSX3zH_Q-8J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: JQuery like animation
Yes this progress bar looks really neat indeed, nice. What about gwt-fx ? I have used it in the past and found it pretty good then. I remember that I had to switch to it (coming from using GQuery) because I needed a way to intercept the process of a fading effect in the middle and reverse it. And, at the time, that wasn't possible with GQuery. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/SR7nPNIXu9IJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: InlineLabel doesn't display a subsequent blank space in IE (but does otherwise.)
Hey Patrick. Thanks for your suggestions. I can definitely implement either of them, and it will work (I had actually already done it with your second one using nbsp;) However my question was more to know whether this inconsistent display between browsers is actually a bug, in which case I would fill an issue. GWT is, amongst other things, about lifting the cross browser worries, hence by using GWT we should safely rely on a HTML/CSS/JavaScript code generation that is bullet proven against switching browsers. So by using it I want to avoid as often as possible generating my own code dealing with that issue. Regards. Luc On Apr 9, 11:07 pm, Patrick Tucker tucker...@gmail.com wrote: You could also use the escape sequence nbsp; instead of the space. On Apr 9, 12:04 pm, Patrick Tucker tucker...@gmail.com wrote: Why not just put left margin or padding on the label with the style element? On Apr 8, 11:05 pm, dindeman dinde...@googlemail.com wrote: The following simple structure in UiBinder produces different results in IE than in other browsers: pg:InlineLabel text='Hello'/ world!/p When debugging the bound widget I find in IE: HTML: DIVPSPAN class=gwt-InlineLabelHello/SPANworld!/P/DIV Display: Helloworld! in Firefox: HTML: divpspan class=gwt-InlineLabelHello/span world!/p/ div Display: Hello world! Is this a bug? If yes, any workarounds? Cheers. Luc. * Config * GWT 2.1.1 / IE7 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
InlineLabel doesn't display a subsequent blank space in IE (but does otherwise.)
The following simple structure in UiBinder produces different results in IE than in other browsers: pg:InlineLabel text='Hello'/ world!/p When debugging the bound widget I find in IE: HTML: DIVPSPAN class=gwt-InlineLabelHello/SPANworld!/P/DIV Display: Helloworld! in Firefox: HTML: divpspan class=gwt-InlineLabelHello/span world!/p/ div Display: Hello world! Is this a bug? If yes, any workarounds? Cheers. Luc. * Config * GWT 2.1.1 / IE7 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Constant ignored within ui:msg tag.
The following UiBinder produces an unexpected result: ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui' ui:generateFormat='com.google.gwt.i18n.rebind.format.PropertiesFormat' ui:generateKeys='com.google.gwt.i18n.rebind.keygen.MD5KeyGenerator' ui:generateLocales='default' ui:with field='cons' type='com.example. .. .client.MyCons'/ g:HTMLPanel ui:msg Phone number: ui:text from='{cons.phoneNumber}' /. /ui:msg /g:HTMLPanel /ui:UiBinder The constant cons.phoneNumber is never displayed. However when removing the ui:msg tags everything gets back in order. Does anyone have a clue as how to make this work? Regards. Luc -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Constant turned into unclobberable portion by I18N.
Hi everyone. Please look at the below simple UiBinder using a constant: ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g=urn:import:com.google.gwt.user.client.ui ui:with field='cons' type='com.example.gwtpuibinder.client.MyCons'/ g:HTMLPanel p At ui:text ui:ph='busName' from={cons.businessName} / we strive for our customers. /p /g:HTMLPanel /ui:UiBinder The cons.businessName gets translated properly according to the 'localed' MyCons.properties that are provided: MyCons.properties MyCons_fr.properties MyCons_es.properties ... etc. But when I18N gets into the game I can't manage to get the constant internationalized anymore: ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g=urn:import:com.google.gwt.user.client.ui ui:generateFormat='com.google.gwt.i18n.rebind.format.PropertiesFormat' ui:generateKeys=com.google.gwt.i18n.rebind.keygen.MD5KeyGenerator ui:generateLocales=default ui:with field='cons' type='com.example.gwtpuibinder.client.MyCons'/ g:HTMLPanel p ui:msg At ui:text ui:ph='busName' from={cons.businessName} / we strive for our customers. /ui:msg /p /g:HTMLPanel /ui:UiBinder As soon as I surround the translatable text with the ui:msg tags it gets indeed translated according to the various *GenMessages.properties files but then the previous ui:text ui:ph='busName' from={cons.businessName} / tag becomes an unclobberable portion (see http://code.google.com/webtoolkit/doc/trunk/DevGuideUiBinderI18n.html#Messages_with_unclobberable_portions.) Here is how the generated *GenMessages.properties looks like: B572CBEE8B7279CC8CC18CCFA9B9DCE1=At {0}{1} we strive for our customers. Does anyone have any idea how to get, on the one side, constants translated properly according to the various MyCons.properties files and the other parts of the text, on the other side, translated according to the various *GenMessages.properties files? Thank you. Luc -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: UiBinder and Constants in HTML
Hi Thomas. Yes your suggestion of using ui:text perfectly does the job, this is exactly what I was looking for, thank you. Thanks also for the informative remark concerning the Label being a div, it makes sense. Regards. Luc On Mar 11, 4:35 pm, Thomas Broyer t.bro...@gmail.com wrote: On Friday, March 11, 2011 7:43:36 AM UTC+1, dindeman wrote: Hi everyone. What's the best way to reuse a global constant within UiBinder ? I did the following: ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder xmlns:g=urn:import:com.google.gwt.user.client.ui ui:with field='cons' type='com.example.gwtpuibinder.client.MyCons'/ g:HTMLPanel p At g:Label text={cons.businessName}/g:Label we strive for our customers. How about: At ui:text from={cons.businessName} / we strive for our customers. It won't generate a widget, contrary to g:Label; much less overhead. /p /g:HTMLPanel /ui:UiBinder It works but it's a bit heavy. It would be nice if I could use something like @def statement for CSS constants, is there anything like that that would do the above job? What is heavy? defining the constants in an external interface? How about using ui:msg/ then? Seehttp://code.google.com/webtoolkit/doc/latest/DevGuideUiBinderI18n.html Also I don't get why the Label produces a line break before and after itself, That's because a Label is an HTML div it's a bit annoying since it can't be styled. Using an InlineLabel if you want a span instead. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
UiBinder and Constants in HTML
Hi everyone. What's the best way to reuse a global constant within UiBinder ? I did the following: ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder xmlns:g=urn:import:com.google.gwt.user.client.ui ui:with field='cons' type='com.example.gwtpuibinder.client.MyCons'/ g:HTMLPanel p At g:Label text={cons.businessName}/g:Label we strive for our customers. /p /g:HTMLPanel /ui:UiBinder It works but it's a bit heavy. It would be nice if I could use something like @def statement for CSS constants, is there anything like that that would do the above job? Also I don't get why the Label produces a line break before and after itself, it's a bit annoying since it can't be styled. Hints would be very much appreciated. Thank you. Luc -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Using Typeface.js within a GWT app
I am looking for some sample Java code demonstrating how to get AJAX content displayed into a custom font using Typeface.js within a GWT app. I have tried a little bit by calling the following native function native void Typeface_renderDocument() /*-{ $wnd._typeface_js.renderDocument(); }-*/; * after having filled the relevant widget with the AJAX content, and * after calling the following function on the widget : void applyTypeface(Widget widget) { widget.addStyleName(typeface-js); widget.getElement().getStyle().setProperty(fontFamily, Helvetiker); Typeface_renderDocument(); } ...where Helvetiker is a custom font (actually available from Typeface.js fonts page (http://typeface.neocracy.org/fonts.html). But that didn't work. I am looking forward to any suggestions since I am bit stuck here. Alternatively I would be interested in an example using cufón within GWT, although I am not so keen about the replacement by images that cufón does (which is the main reason why I was trying to use Typeface.js.) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.