Re: Compile UiBinder to static html?

2015-06-15 Thread Jens
I see, maybe you can generate a second representation of your constant values as part of the build process. I could imaging slapping an annotation on your interface/enum that defines your constants and using an annotation processor to generate a different output format. Then you place some

Compile UiBinder to static html?

2015-06-14 Thread Seth
Hi all, I would like to generate static html from a template that references static java import values (or ones that can be calculated at compile time) for like an About page or the like. I envisioned this as basically the UiBinder template without the associated widget class being used

Re: uibinder h1 translated

2015-06-01 Thread clembo590
thks. it worked! It's very clear on the documentation how did I miss that? Le dimanche 31 mai 2015 15:54:28 UTC-3, Jens a écrit : h1ui:text from={txt.usersHeader} / /h1 should work I think. -- J. -- You received this message because you are subscribed to the Google Groups Google Web

uibinder h1 translated

2015-05-31 Thread clembo590
Hello. I have a UiBinder xml that starts like this: !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent; ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder xmlns:b= urn:import:org.gwtbootstrap3.client.ui xmlns:b.html= urn:import:org.gwtbootstrap3.client.ui.html xmlns:r

Re: uibinder h1 translated

2015-05-31 Thread Jens
h1ui:text from={txt.usersHeader} / /h1 should work I think. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to

PieChart in GWT using UiBinder

2015-05-15 Thread EL MEHDI EL JAIR
Hi, How to create a custom pieChart component, that we can use in a UiBinder page ? Thank you, -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google

[gwt-contrib] Errors during GWTTestCase and uibinder

2015-05-09 Thread Julien Dramaix
Hi Everyone, Since yesterday, I'm not able to start any GWTTestCase using uibinder, I've got the error below. An idea ? Unexpected exception occurred while parsing HTML snippet org.xml.sax.SAXNotRecognizedException: Feature ' http://cyberneko.org/html/features/scanner/allow-selfclosing-tags

How to Add inner class which returns the Widget in GWT UiBinder

2015-04-28 Thread Abdul
I am Using GWT UiBinder for creating custom component.Main class(Table uibinder) will create custom component table with pager,See below code *Table.ui.xml:* ui:UiBinder xmlns:item=urn:import:com.example.ui.widgets.item g:HTMLPanel item:CustomGrid ui:field=table

Re: How to Add inner class which returns the Widget in GWT UiBinder

2015-04-28 Thread Abdul
Any Suggestion on this? On Tuesday, April 28, 2015 at 6:06:11 PM UTC+5:30, Abdul wrote: I am Using GWT UiBinder for creating custom component.Main class(Table uibinder) will create custom component table with pager,See below code *Table.ui.xml:* ui:UiBinder xmlns:item

UiBinder with an immediate webcomponent tag?

2015-04-18 Thread Henrik
-tag so that my-webcomp becomes the immediate child tag of UiBinder. However, that results in an error from the generator: [INFO] Rebinding MyUiBinder [INFO] Invoking generator com.google.gwt.uibinder.rebind.UiBinderGenerator [INFO] [ERROR] Illegal field name f_my

Re: UiBinder with an immediate webcomponent tag?

2015-04-18 Thread Jens
Java fields/variables must not contain hyphens so f_my-webcomp1 is invalid Java syntax and causes the compile error. As a workaround you could probably rename your web component to mywebcomp or my_webcomp. The UiBinder generator needs to be adjusted to work with the naming convention of web

UIBinder content assist incomplete?

2015-04-16 Thread Thomas Käfer
I'm currently trying to setup a GWT 2.7 Dev-Environment. I want to be able to use content assist for UIbinder xml files, and what does work for me is when I type a and press Ctrl+Space (or wait for a second there) I get a list of classes to choose from. First problem is it starts

Creating a widget that can accept HTML + Widgets in UiBinder (Without using HTMLPanel)

2015-03-24 Thread Ali Akhtar
Hi, I'm trying to create a container widget which can accept html within uibinder files, without extending from HTMLPanel. If I try to implement `HasHTML`, then I can only pass in HTML without being able to pass any widgets. If I try to extend from ComplexPanel and override the add(Widget

Re: Creating a widget that can accept HTML + Widgets in UiBinder (Without using HTMLPanel)

2015-03-24 Thread Jens
Surely UiBinder isn't hard-coded to only allow HtmlPanel to accept panels + widgets? HTMLPanel has its own HTMLPanelParser used by UiBinder which makes mixing HTML + Widgets possible, so yes it is kind of hardcoded. -- J. -- You received this message because you are subscribed

Re: Creating a widget that can accept HTML + Widgets in UiBinder (Without using HTMLPanel)

2015-03-24 Thread Ali Akhtar
IMO that parser interface should be made external and it should allow any widget that implements this interface to have html within UiBinder. I'm surprised it wasn't done that way to begin with. On Tue, Mar 24, 2015 at 9:11 PM, Jens jens.nehlme...@gmail.com wrote: Surely UiBinder isn't hard

CssResource in UiBinder

2015-02-27 Thread Stefano Pulze
Hi all, Can anyone explain me how tu use (and reuse) CssResource inside a UiBinder? I don't understand if I have to make a ClientBundle with some CssResources interface and use with the tag ui:with / inside a UiBinder. Be CssResource ensureInjected() ? Thanks -- You received

Re: CssResource in UiBinder

2015-02-27 Thread Thomas Broyer
at 3:38:37 PM UTC+1, Stefano Pulze wrote: Hi all, Can anyone explain me how tu use (and reuse) CssResource inside a UiBinder? I don't understand if I have to make a ClientBundle with some CssResources interface and use with the tag ui:with / inside a UiBinder. Be CssResource

Re: [gwt-contrib] Re: UiBinder changes don't get picked up in SDM (trunk)

2015-02-21 Thread Henrik Gram
On Thursday, February 12, 2015 at 11:25:51 AM UTC+1, Thomas Broyer wrote: On Thursday, February 12, 2015 at 2:35:36 AM UTC+1, Ali Akhtar wrote: I have a maven layout, and the ui.xml file is in src/main/resources, in the same package as the Java class. So I don't think that's the case here.

Re: [gwt-contrib] Re: UiBinder changes don't get picked up in SDM (trunk)

2015-02-12 Thread Thomas Broyer
On Thursday, February 12, 2015 at 2:35:36 AM UTC+1, Ali Akhtar wrote: I have a maven layout, and the ui.xml file is in src/main/resources, in the same package as the Java class. So I don't think that's the case here. Also the file does get picked up, it just requires an SDM restart to pick

Re: [gwt-contrib] Re: UiBinder changes don't get picked up in SDM (trunk)

2015-02-12 Thread Ali Akhtar
Thomas, As usual, you're right. I was using the maven plugin, and the resources weren't being updated. For the moment, I've just created a new run configuration in intellij for running process-resources , and when I get this error, I just run that config once, and it fixes the problem. Still,

Re: [gwt-contrib] Re: UiBinder changes don't get picked up in SDM (trunk)

2015-02-11 Thread 'Goktug Gokdogan' via GWT Contributors
In same cases, you can accidentally include of ui.xml files in your build that will make your regular compile work but SDM will not pick up the changes. This happens if the ui.xml file is in the classpath but not included as a resource in the gwt.xml file. I think if we notice that during

Re: [gwt-contrib] Re: UiBinder changes don't get picked up in SDM (trunk)

2015-02-11 Thread Ali Akhtar
I have a maven layout, and the ui.xml file is in src/main/resources, in the same package as the Java class. So I don't think that's the case here. Also the file does get picked up, it just requires an SDM restart to pick up some of the changes. On Thu, Feb 12, 2015 at 3:52 AM, 'Goktug Gokdogan'

[gwt-contrib] Re: UiBinder changes don't get picked up in SDM (trunk)

2015-02-11 Thread Ali Akhtar
Update: Seems like this issue applies to all changes made to ui.xml files. If I have an existing foo.ui.xml file, and I made a change to it, such as adding the text 'foo' anywhere inside a HtmlPanel, reloading doesn't pick up the change. A full sdm restart is required. -- You received this

Re: [gwt-contrib] Re: UiBinder changes don't get picked up in SDM (trunk)

2015-02-11 Thread Ali Akhtar
I'm using the snapshot build, so it might be a recent issue. I'm not sure if I could've done anything in my project to cause this, I just have a regular ui binder file / class. On Wed, Feb 11, 2015 at 4:50 PM, Jens jens.nehlme...@gmail.com wrote: We are currently using a GWT trunk build from 5.

[gwt-contrib] Re: UiBinder changes don't get picked up in SDM (trunk)

2015-02-11 Thread Jens
We are currently using a GWT trunk build from 5. Jan 2015 and don't see this issue. So either a recent commit causes that behavior or your project setup is broken. -- J. -- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from

[gwt-contrib] UiBinder changes don't get picked up in SDM (trunk)

2015-02-10 Thread Ali Akhtar
I'm using 2.8.0-SNAPSHOT. If I add any new ui-field=.. to a ui.xml file, they aren't picked up either on refresh, or on clearing the SDM cache . Instead, I have to restart SDM in order for these changes to be picked up. Otherwise, I keep getting the error that there's no @UiField for the

Re: Wrapping HTML into UIBinder

2015-01-20 Thread Mohammed Sameen
Thanks Rogelio... On Wednesday, January 14, 2015 at 7:30:03 PM UTC+5:30, Mohammed Sameen wrote: Hi Folks, I am using GWT 2.6 to develop my web application.Since i am getting the HTML prototype from UX/UI designer can i wrap the html directly into uibinder in GWT? - Is so,then how

Re: Wrapping HTML into UIBinder

2015-01-19 Thread Rogelio Flores
this for UiBinder: http://www.gwtproject.org/doc/latest/DevGuideUiBinder.html#Simple_binding, search gquery docs the gquery approach). Or simply use JSNI to add handlers. - Yes, expect same output as html prototype. One difference you might see will depend on the container panel/element that wil display

Re: Wrapping HTML into UIBinder

2015-01-16 Thread Mohammed Sameen
Any Suggestion on this? On Wednesday, January 14, 2015 at 7:30:03 PM UTC+5:30, Mohammed Sameen wrote: Hi Folks, I am using GWT 2.6 to develop my web application.Since i am getting the HTML prototype from UX/UI designer can i wrap the html directly into uibinder in GWT? - Is so

Re: Wrapping HTML into UIBinder

2015-01-16 Thread Mohammed Sameen
Any Suggestion this? On Wednesday, January 14, 2015 at 7:30:03 PM UTC+5:30, Mohammed Sameen wrote: Hi Folks, I am using GWT 2.6 to develop my web application.Since i am getting the HTML prototype from UX/UI designer can i wrap the html directly into uibinder in GWT? - Is so

[gwt-contrib] Re: Wrapping HTML Content into UIBinder

2015-01-16 Thread Benjamin Possolo
You should start by reading the UiBinder documentation http://www.gwtproject.org/doc/latest/DevGuideUiBinder.html. That has a lot of good examples that you can follow. In order to wrap just basic HTML, you should use an HTMLPanel widget. g:HTMLPanel pYour basic html goes inside the HTMLPanel

[gwt-contrib] Wrapping HTML Content into UIBinder

2015-01-15 Thread Mohammed
Hi Folks, I am using GWT 2.6 to develop my web application.Since i am getting the HTML prototype from UX/UI designer can i wrap the html directly into uibinder in GWT? - Is so,then how to write event handler or validation for the component? - Can i expect the same output (as looking

Wrapping HTML into UIBinder

2015-01-14 Thread Mohammed Sameen
Hi Folks, I am using GWT 2.6 to develop my web application.Since i am getting the HTML prototype from UX/UI designer can i wrap the html directly into uibinder in GWT? - Is so,then how to write event handler or validation for the component? - Can i expect the same output (as looking

Wrapping HTML into UIBinder

2015-01-14 Thread Mohammed Sameen
Hi Folks, I am using GWT 2.6 to develop my web application.Since i am getting the HTML prototype from designer can i wrap the html directly into uibinder in GWT?Is so,then how to write event handler or validation for the component?Please give me your valuable suggest?Thanks in advance

UIBinder to JS?

2014-12-19 Thread Łukasz Bączek
Hello, Which part of GWT is responsible for the compilation UIBinder to JS? Regards -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit

Re: UIBinder to JS?

2014-12-19 Thread Jens
UiBinderGenerator generates a Java class based on your interface that extends UiBinder and the corresponding *.ui.xml file. These generated classes are compiled to JS when you compile your whole app to JS. -- J. -- You received this message because you are subscribed to the Google Groups

Re: UIBinder to JS?

2014-12-19 Thread Łukasz Bączek
W dniu 19.12.2014 o 18:58, Jens pisze: UiBinderGenerator generates a Java class based on your interface that extends UiBinder and the corresponding *.ui.xml file. These generated classes are compiled to JS when you compile your whole app to JS. I know that. I'm looking for a way

Re: UIBinder to JS?

2014-12-19 Thread Jens
you can do is to replace them before/during compilation, but that is probably not what you are looking for. If your app allows your customers to define their own UIs at runtime of your app then you can not use UiBinder for these UIs. -- J. -- You received this message because you

Re: Cannot bind css classes with Java CssResource interface - GWT 2.7.0 - GSS - UiBinder

2014-12-12 Thread Freddy Boucher
Thx it works! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to

Re: Cannot bind css classes with Java CssResource interface - GWT 2.7.0 - GSS - UiBinder

2014-12-11 Thread Julien Dramaix
maxWidth2(); } Julien On Wednesday, December 10, 2014 5:48:12 PM UTC+1, Freddy Boucher wrote: Hi, I get an error when I want to bind a UiBinder with *gss* enable with my Java CssResource interface *MyStyle*. Even with *conversionMode* at *lenient* it doesn't work. Is it possible

UiBinder Database user and password where?

2014-12-11 Thread Łukasz Bączek
Hello, UiBinder have modified to be a loaded from the database. I just wonder where you keep your password and user to the database so that it was a secure and flexible solution. Are there any configuration files where GWT developer could keep your username and password? Regards, Łukasz

Cannot bind css classes with Java CssResource interface - GWT 2.7.0 - GSS - UiBinder

2014-12-10 Thread Freddy Boucher
Hi, I get an error when I want to bind a UiBinder with *gss* enable with my Java CssResource interface *MyStyle*. Even with *conversionMode* at *lenient* it doesn't work. Is it possible in this state of art? THX !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent; ui:UiBinder

Cannot bind UiBinder with GSS enabled CSS classes with Java CssResource interface - GWT 2.7.0 - Uibinder - GSS

2014-12-10 Thread Freddy Boucher
] Compiler returned false [WARN] recompile failed [WARN] continuing to serve previous version public class OpportunityHeader extends Composite { private static Binder uiBinder = GWT.create(Binder.class); interface Binder extends UiBinderWidget, OpportunityHeader

SuggestBox, Oracle and uibinder

2014-12-08 Thread 'Adolfo Rodriguez' via Google Web Toolkit
Hi, I have been dealing with a problem which seems to me not having a clean solution. I have declared a SuggestBox in uibinder: g:SuggestBox ui:field=suggestBox height=32px width=550px/g:SuggestBox Then, I can populate the already provided SuggestBox on the View

Re: SuggestBox, Oracle and uibinder

2014-12-08 Thread Jens
Use @UiField(provided = true) SuggestBox box; and then instantiate the SuggestBox before you call initWidget() in your constructor. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving

Re: SuggestBox, Oracle and uibinder

2014-12-08 Thread 'Adolfo Rodriguez' via Google Web Toolkit
yes, thanks Jens, (provided = true) made the difference in the solution 2 above. It works now :-) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: custom elementparser for UiBinder

2014-12-03 Thread AJ
I finally got it! The issue was that I need to ad a container/wrapper tag around the child using the tagname specified in the @UiChild so aj:CustomParent aj:myChild aj:CustomChild ui:field=aChild/aj:CustomChild /aj:myChild /aj:CustomParent

Re: custom elementparser for UiBinder

2014-12-03 Thread Thomas Broyer
I haven't checked but I believe GwtBootstrap3 just implements HasWidgets (maybe extends ComplexPanel) and does some checks in addWidget and the like to make sure you use the correct child widgets. On Wednesday, December 3, 2014 2:31:05 PM UTC+1, AJ wrote: I finally got it! The issue was that

Re: custom elementparser for UiBinder

2014-12-02 Thread AJ
That sort of helps, but now I can't get ui:field to be recognized in the child. For instance: ParentComponent class has @UiChild(tagname=ChildComponent) public void add(ChildComponent c) {} If the UiBinder has g:HTMLPanel aj:ChildComponent ui:field=child1/aj:ChildComponent Then it works

Re: custom elementparser for UiBinder

2014-12-02 Thread Jens
ParentComponent class has @UiChild(tagname=ChildComponent) public void add(ChildComponent c) {} If the UiBinder has g:HTMLPanel aj:ChildComponent ui:field=child1/aj:ChildComponent Then it works But if I have g:HTMLPanel aj:ParentComponent ui:field=parent1 aj:ChildComponent

UiBinder library

2014-11-25 Thread Łukasz Bączek
Hello, Does GWT license allows for the separation of functionality into a separate library GWT? Trying to separate UIBinder to a separate library with GWT 2.6.0 and modify UiBinder but now I have this error: Compiling module org.yournamehere.Main Computing all possible rebind results

Re: UiBinder library

2014-11-25 Thread Jens
that is loaded by two different ClassLoaders can not be cast to itself if both ClassLoaders are involved. Since you have gwt-user.jar on class path and also your custom library you now have several UiBinder related classes twice on class path. If now HashWidgetsParser extends ElementParser has been

Re: UiBinder library

2014-11-25 Thread Łukasz Bączek
several UiBinder related classes twice on class path. If now HashWidgetsParser extends ElementParser has been loaded by ClassLoader A and the ElementParser.class used in the cast statement found in UiBinderWriter (see your stack trace) has been loaded by ClassLoader B then you will get

how to change the text in an AbstractCell created using uibinder

2014-11-18 Thread loveleen....@gmail.com
I created an abstract cell using uibinder and UiRenderer. My datasource is a list of a list. Lets say list of cars and each car has a list of models. I adding the cells to a CellList. Each cell is like like a card with forward and backward button on top(Im using arrow images and handling

custom elementparser for UiBinder

2014-11-14 Thread AJ
Hello, I am writing a library of widgets for our projects. Some of the objects have certain requirements, such as can only contain another custom elements. I have seen threads mentioning patching GWT to add an anotation (from 2010) but that did not seem to go anywhere. I also see the threads

Re: custom elementparser for UiBinder

2014-11-14 Thread Jens
http://www.gwtproject.org/javadoc/latest/com/google/gwt/uibinder/client/UiChild.html In your @UiChild MyWidget.addMyCustomChildWidget() method you can do your own runtime checks. Compile time errors are not possible unless you start hacking UiBinder implementation so you can register your own

[gwt-contrib] Java6 compatibility broken due to UiBinder change for GSS

2014-10-18 Thread 'Daniel Kurka' via GWT Contributors
Hi all, currently GWT does not build with Java6 (not even the release build: ant elemental dist), because of this change: https://gwt-review.googlesource.com/#/c/9620/ @Colin, @Arthur can you guys take a look together with Julien? -Daniel -- You received this message because you are

Re: Webfonts with ClientBundle, UiBinder

2014-09-29 Thread Jens
The result looks good in both GWT desktop widget and the MGWT gray background, and I have a consistent look across all my icons. And even if MGWT's gray would not fit, since it is a font you can adjust the font color using CSS. -- J. -- You received this message because you are

Re: Webfonts with ClientBundle, UiBinder

2014-09-27 Thread Thad Humphries
Thanks again, Jens, for your help on this issue. Font Awesome is a nice package and I am very pleased with the results. I can use the icon directly in UiBinder, but more importantly, I can set them in my code. I've created a class that builds a static a JSONObject that matches a file MIME type

Re: Webfonts with ClientBundle, UiBinder

2014-09-24 Thread Thomas Broyer
On Tuesday, September 23, 2014 11:36:59 PM UTC+2, Jens wrote: You need to define the font using @font-face. By default fontawesome.css contains @font-face { font-family: 'FontAwesome'; src: url('../fonts/fontawesome-webfont.eot?v=4.2.0'); src:

Re: Webfonts with ClientBundle, UiBinder

2014-09-24 Thread Thad Humphries
(); @ClassName(fa-lg) String large(); ... In my EntryPoint class, after setting the logging and window closing handlers and injecting the global stylesheet (as in Showcase), I call FontAwesomeBundle.INSTANCE.fa().ensureInjected(); To try this out, in my UiBinder file I put

Re: Webfonts with ClientBundle, UiBinder

2014-09-24 Thread Jens
@font-face{ font-family:'FontAwesome'; @url fawoff woff?v=4.2.0; font-weight:normal;font-style:normal} .fa{display:inline-block;font:normal ... I guess it should be @url fawoff woff; @font-face { font-family: 'FontAwesome' src: fawoff format('woff') /* fawoff should be

Re: Webfonts with ClientBundle, UiBinder

2014-09-24 Thread Thad Humphries
add icons as needed from code or via UiBinder. Interesting item: This change *did not work* at first when I simply stopped and started SDM (Dev Mode Off, Dev Mode On). However I was desperate so I stopped RunJettyRun in Eclipse and SDM in the terminal, and ran `gradle clean jettyDraftWar

Webfonts with ClientBundle, UiBinder

2014-09-23 Thread Thad Humphries
). I would like to do things more the GWT way--UiBinder, ClientBundle, etc. I feel I'm close, but it's not coming together. I've tried it first in UiBinder. I just tried adding the FontAwesome CSS: ui:style field=fonts src=../../fonts/fontAwesome.css / ... i class={fonts.fa} {fonts.fa-camera

Re: Webfonts with ClientBundle, UiBinder

2014-09-23 Thread Jens
place them into the public folder so your web server sets correct caching headers. Once you have done that you should be able to use ui:with to import your ClientBundle into UiBinder and use the icons (don't forget to call ensureInjected()). -- J. -- You received this message because you

Re: how to create PushButton using UiBinder

2014-08-20 Thread Nguyen Thi Le
you can use this code ui:image field=viewimage src=task/images/image.png / g:PushButton g:upFace image={viewimage} / /g:PushButton On Wednesday, October 6, 2010 7:54:29 AM UTC+7, mars wrote: hi, I tried to create a PushButton(with an image) in UiBinder but could not get it work, here

Re: DialogBox centering with UiBinder DataGrid programmatic sorting

2014-08-19 Thread Jack Thompson
Ah, that work, thanks! On Friday, 1 August 2014 16:22:04 UTC+3, Juan Pablo Gardella wrote: About center the dialog. Call the center method using scheduleDeferred

Re: DialogBox centering with UiBinder DataGrid programmatic sorting

2014-08-19 Thread Jack Thompson
On Friday, 1 August 2014 16:22:04 UTC+3, Juan Pablo Gardella wrote: About center the dialog. Call the center method using scheduleDeferred

Re: DialogBox centering with UiBinder DataGrid programmatic sorting

2014-08-19 Thread Jack Thompson
Further testing revealed that a dialog shown that way cannot be closed in IE11 if the call to hide comes in context of RestyGWT's MethodCallback event. The dialog thinks it's not visible (isShowing returns false). But if add a button to the dialog to close it, that works. Needed a bit

Re: How to embed HTML from TextResource using UiBinder

2014-08-12 Thread Thomas Käfer
Is there an easier way by now? Am Mittwoch, 3. April 2013 01:10:52 UTC+2 schrieb Thomas Broyer: On Wednesday, April 3, 2013 12:34:06 AM UTC+2, Pat wrote: I found something that works, even though I think that should be possible with less glue code... It should be possible to create a

DialogBox centering with UiBinder DataGrid programmatic sorting

2014-08-01 Thread Jack Thompson
Hello, I have a dialog class inherited from DialogBox and using UiBinder template as the widget for it, which is set in the constructor setWidget(uiBinder.createAndBindUi(this)). When the a dialog class instance is shown using the center() method, the dialog is shown but it is not properly

Re: DialogBox centering with UiBinder DataGrid programmatic sorting

2014-08-01 Thread Juan Pablo Gardella
, I have a dialog class inherited from DialogBox and using UiBinder template as the widget for it, which is set in the constructor setWidget(uiBinder.createAndBindUi(this)). When the a dialog class instance is shown using the center() method, the dialog is shown but it is not properly centered

Having trouble with UiBinder renderer

2014-06-16 Thread Zied Hamdi OneView
Hi All, I'm trying to use a UiBinder like this !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent; ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder ui:with field='logo' type='java.lang.String' / ui:with field='name' type='java.lang.String' / ui:with field='desc' type

Re: Having trouble with UiBinder renderer

2014-06-16 Thread Thomas Broyer
On Monday, June 16, 2014 1:25:23 PM UTC+2, Zied Hamdi OneView wrote: Hi All, I'm trying to use a UiBinder like this !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent; ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder ui:with field='logo' type='java.lang.String

Re: Having trouble with UiBinder renderer

2014-06-16 Thread Zied Hamdi OneView
for uiBinder (example in UiRenderer): Indeed I've read that page, and since it is somewhere in the resources, I skipped it. I know that in the code it's related (UiBinder, UiRenderer, eventually ClientBundle), but conceptually as a user I perceive those things as separate enough to be in different

Re: Having trouble with UiBinder renderer

2014-06-16 Thread Thomas Broyer
suggest to put it all together in a different documentation than the one for uiBinder (example in UiRenderer): Indeed I've read that page, and since it is somewhere in the resources, I skipped it. I know that in the code it's related (UiBinder, UiRenderer, eventually ClientBundle

Re: Having trouble with UiBinder renderer

2014-06-16 Thread Zied Hamdi OneView
AFAICT, the differences between UiRenderer and UiBinder are that: - widgets are not supported - there's no owner class, which changes a few things: - ui:with fields are provided by method arguments rather than @UiField(provided=true) - ui:field's are returned using getters

Using GWTDesigner in UIBinder mode to display 3rd party widgets

2014-06-05 Thread tekwojenski
Hi I'm trying to display smartGWT widgets in UIBinder mode. I'm using https://code.google.com/p/uibinding-smartgwt/ to do this and I had to modify the existing code to get the GWTDesigner to compile things correctly. Now I'm getting this error: java.lang.AssertionError: This UIObject's

GWTDesigner in UIBinder mode Opening layout xml file with SmartGWT widgets

2014-06-04 Thread tekwojenski
Hi, I'm using Eclipse Kepler with GWT 2.6.1 and GWT Designer for GPE (recommended) WindowBuilder Core1.6.0.r43x201305211944 WindowBuilder XML Core (requires Eclipse WTP/WST) 1.6.0.r43x201306031653 I have no problem opening vanilla GWT UIBinder layouts, however when I try

Re: extend UiBinder engine

2014-06-03 Thread Thomas Broyer
the Java class without the fields. Or you just talking about assuming the presence of the annotation, since the Java field names have to match the ui:field attributes in the xml anyway? What I meant is that the factory you give to UiBinder would work the same as a @UiFactory in your class

Re: extend UiBinder engine

2014-06-03 Thread Steve C
That's what I figured :) On Tuesday, June 3, 2014 4:22:57 AM UTC-4, Thomas Broyer wrote: What I meant is that the factory you give to UiBinder would work the same as a @UiFactory in your class: no need for a @UiField/ui:field; if you have a foo:MyWidget/ in your ui.xml, whether it has

Re: extend UiBinder engine

2014-06-03 Thread Zied Hamdi OneView
Hi Thomas, Yes it's funny you wrote that the proposed solution isn't convenient as an answer to my proposal :-p Then I don't get why you answered no for me patching GWT uiBinder even though you were saying: So let's move to PatchesWelcome as a signal that we're not opposed to enhancing

Re: extend UiBinder engine

2014-06-02 Thread Steve C
For those us that might encounter this need for somewhat simple situations, why not use a @UiFactory? That provides a reasonably clean solution that separates the security aspects. Provide a parameter like roles to the create method, which could parse a comma-separated list of roles in a

Re: extend UiBinder engine

2014-06-02 Thread Thomas Broyer
On Monday, June 2, 2014 3:32:41 PM UTC+2, Steve C wrote: It would be nice if the UiFactory methods could somehow be separated out into their own class for reuse, but I don't think that's possible. Cf. the discussion in https://code.google.com/p/google-web-toolkit/issues/detail?id=6151

Re: extend UiBinder engine

2014-06-02 Thread Steve C
Yeah, that would be useful. I'm kind of curious about the part: I'd like to see something a bit more advanced where you don't need to declare the @UiFields. I may be misinterpreting that, since I don't see how you could use the Java class without the fields. Or you just talking about

Re: extend UiBinder engine

2014-06-02 Thread Zied Hamdi OneView
Hi Steve, I published an answer about the part you're curious about: A UiBinder fork that does the job and a factory here @ http://ziedhamdi.github.io/UiBinderAutho/ (more details in the issue discussion) Le lundi 2 juin 2014 19:29:14 UTC+1, Steve C a écrit : Yeah, that would be useful

debugId with UiBinder not working?

2014-05-30 Thread Kay Pac
Hello there! I am trying to use selenium with my GWT app and I have noticed that it uses inappropriate css class selectors to find the widgets. I did some research into this and it seems I need to use 'debugId' attribute in my UiBinder xml template. I have added debugId attributes and have

debugId with UiBinder not working?

2014-05-30 Thread Jens
You must inherit com.google.gwt.user.Debug otherwise UIObject.ensureDebugId() will be compiled out. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: debugId with UiBinder not working?

2014-05-30 Thread Thomas Broyer
with my GWT app and I have noticed that it uses inappropriate css class selectors to find the widgets. I did some research into this and it seems I need to use 'debugId' attribute in my UiBinder xml template. I have added debugId attributes and have also tried using the ensureDebugId method

Re: How to display an ampersand using UiBinder?

2014-05-23 Thread David
understand it: those are evaluated by the XML parser and (I believe, haven't checked) UiBinder doesn't see them; but the cannot be output as is and must be escaped, contrary to ». I believe you won't find raquo; in the generated code, but ». On Wednesday, May 21, 2014 10:43:06 AM UTC+2, stuckagain

Re: How to display an ampersand using UiBinder?

2014-05-21 Thread stuckagain
I have to revive this thread. I just stumbled on the same problem in my UiBinder file. This really looks like a bug in GWT UiBinder. I am using a different widget than Label (my own custom Button class that extends HasHTML and HasSafeHtml). I include the entity line: !DOCTYPE ui:UiBinder

Re: How to display an ampersand using UiBinder?

2014-05-21 Thread stuckagain
, stuckagain wrote: I have to revive this thread. I just stumbled on the same problem in my UiBinder file. This really looks like a bug in GWT UiBinder. I am using a different widget than Label (my own custom Button class that extends HasHTML and HasSafeHtml). I include the entity line

Re: How to display an ampersand using UiBinder?

2014-05-21 Thread Thomas Broyer
understand it: those are evaluated by the XML parser and (I believe, haven't checked) UiBinder doesn't see them; but the cannot be output as is and must be escaped, contrary to ». I believe you won't find raquo; in the generated code, but ». On Wednesday, May 21, 2014 10:43:06 AM UTC+2, stuckagain

Re: extend UiBinder engine

2014-05-20 Thread Zied Hamdi OneView
eagerly and conserved (this is the job of the ClientFactory which indirectly delegates the call to the UiBinder, so it is easy to invalidate widgets on logout, or completely reload the page) Thanks again for your answers Le dimanche 18 mai 2014 22:01:33 UTC+1, Zied Hamdi OneView a écrit : Hi

Re: extend UiBinder engine

2014-05-20 Thread Jens
I didn't have the time to answer to your comments yesterday. *Instead of @RequireRole(superAdmin) you would then use @RequirePermission(canMakePersonToAdmin) . * It's pretty the same: my issue is that I cannot group widgets under the same umbrella : nothing says that is a profile

Re: extend UiBinder engine

2014-05-20 Thread Zied Hamdi OneView
What I was wondering is, if you do that permission thing inside GWT's FieldWriter then isn't it annoying that you now must assume that all security relevant @UiFields may be null? So you must do quite a bit of null checks and deal with the fact that GWT developers normally think that a

Re: extend UiBinder engine

2014-05-19 Thread Zied Hamdi OneView
need in authorization where I want to control if UiBinder will create or not a widget (I could use visibility visible={roles.admin} in my widgets but I want a smarter solution). I'd like to use the info in ui:field at template parsing and decide whether the field should be created

Re: extend UiBinder engine

2014-05-19 Thread Zied Hamdi OneView
https://code.google.com/p/google-web-toolkit/issues/detail?id=8727thanks=8727ts=1400490147 Le dimanche 18 mai 2014 22:01:33 UTC+1, Zied Hamdi OneView a écrit : Hi all, I have a special need in authorization where I want to control if UiBinder will create or not a widget (I could use

Re: extend UiBinder engine

2014-05-19 Thread Jens
with this authorization issue and someone surely tried to solve it centrally. Obviously it's not that common. When I'll have some time for fun I'll do yet another open source for this purpose :) As already said, it is far better do solve that problem without hacking GWT. In fact UiBinder is pretty strict

Re: extend UiBinder engine

2014-05-19 Thread Joseph Lust
Zied, GWT is not JSP. In JSP you're rendering tiles/facets/pages on demand, so it makes sense to add authorization restrictions directly into the tags. However GWT code is compiled down before runtime, so there is no foreknowledge of whether a user will meet the needed security roles at that

<    1   2   3   4   5   6   7   8   9   10   >