Re: Is the UI Binder DocType Broken?

2020-08-17 Thread 'shaun....@jackpinetech.com' via GWT Users
I can concur that I'm seeing the exact same issue in the latest (2020-06) 
version of Eclipse. I'm able to access the file via download, but it's not 
clear *why* Eclipse no longer thinks it's valid. My initial thought was an 
http vs https thing (like it wouldn't download the DTD over clear http), 
but even after changing to https, Eclipse still complained.

I can also confirm that either of the last 2 solutions above (reference one 
of the files from the W3C instead or reference all 3 files from the W3C 
with a "proper" DOCTYPE) fix the issue.

On Thursday, April 30, 2020 at 7:09:07 AM UTC-4 t.br...@gmail.com wrote:

> There's no DTD for UiBinder (because it's by essence impossible), and no 
> XML Schema either (for similar reasons, though at least it would work well 
> with XML Namespaces).
> That DOCTYPE you have here is only there to declare named entities like 
> you have in XHTML (, , etc.) rather than having to use 
> numeric character references ( or  for a non-breaking space); 
> it's basically a concatenation of those 3 files: 
> https://www.w3.org/TR/xhtml1/#h-A2
>
> BTW, *the link works for me*, and says exactly that:
> 
>
> The thing is, this file is now "maintained" at 
> https://gwt.googlesource.com/gwt/+/refs/heads/master/user/src/com/google/gwt/uibinder/resources/xhtml.ent
>  but 
> hasn't changed in 10 years (just like XHTML 1.0 hasn't changed in 18 
> years). It won't change in the foreseeable future, and it is unlikely that 
> the file hosted on Google servers will ever be updated.
>
> Now, what are your options?
>
>- if you don't need it, just remove the DOCTYPE altogether
>- if you do use the entities, then:
>   - try to move out, then go to 1. above
>   - cross your fingers that Google will preserve the file accessible 
>   at that URL in the future
>   - reference one of the files from the W3C instead
>   - reference all 3 files from the W3C with a "proper" DOCTYPE:
>  
>  https://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent;>
>   %HTMLlat1;
>   
>   
>  https://www.w3.org/TR/xhtml1/DTD/xhtml-symbol.ent;>
>   %HTMLsymbol;
>   
>   
>  https://www.w3.org/TR/xhtml1/DTD/xhtml-special.ent;>
>   %HTMLspecial;
>   ]>
>   
>   
>   
>   
>
> On Tuesday, April 28, 2020 at 7:23:50 PM UTC+2, Scott Onyx Harmon wrote:
>>
>> http://dl.google.com/gwt/DTD/xhtml.ent;>
>>
>> No longer seems to be functioning properly, as I now get multiple 
>> "errors" in my XML files such as:
>> Element type "ui:UiBinder" must be declared.
>>
>> Is there a new place to get the DTD?
>>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/9147ec62-68af-49da-b0f5-699f5bad9587n%40googlegroups.com.


Re: Is the UI Binder DocType Broken?

2020-04-30 Thread Thomas Broyer
There's no DTD for UiBinder (because it's by essence impossible), and no 
XML Schema either (for similar reasons, though at least it would work well 
with XML Namespaces).
That DOCTYPE you have here is only there to declare named entities like you 
have in XHTML (, , etc.) rather than having to use numeric 
character references ( or  for a non-breaking space); it's 
basically a concatenation of those 3 files: 
https://www.w3.org/TR/xhtml1/#h-A2

BTW, *the link works for me*, and says exactly that:


The thing is, this file is now "maintained" at 
https://gwt.googlesource.com/gwt/+/refs/heads/master/user/src/com/google/gwt/uibinder/resources/xhtml.ent
 but 
hasn't changed in 10 years (just like XHTML 1.0 hasn't changed in 18 
years). It won't change in the foreseeable future, and it is unlikely that 
the file hosted on Google servers will ever be updated.

Now, what are your options?

   - if you don't need it, just remove the DOCTYPE altogether
   - if you do use the entities, then:
  - try to move out, then go to 1. above
  - cross your fingers that Google will preserve the file accessible at 
  that URL in the future
  - reference one of the files from the W3C instead
  - reference all 3 files from the W3C with a "proper" DOCTYPE:
  https://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent;>
  %HTMLlat1;
  
  
  https://www.w3.org/TR/xhtml1/DTD/xhtml-symbol.ent;>
  %HTMLsymbol;
  
  
  https://www.w3.org/TR/xhtml1/DTD/xhtml-special.ent;>
  %HTMLspecial;
  ]>
  
  
  
  

On Tuesday, April 28, 2020 at 7:23:50 PM UTC+2, Scott Onyx Harmon wrote:
>
> http://dl.google.com/gwt/DTD/xhtml.ent;>
>
> No longer seems to be functioning properly, as I now get multiple "errors" 
> in my XML files such as:
> Element type "ui:UiBinder" must be declared.
>
> Is there a new place to get the DTD?
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/de9538dc-0e84-463b-97bf-8cfa481c1ea7%40googlegroups.com.


Re: Is the UI Binder DocType Broken?

2020-04-29 Thread Michael Conrad
I just accessed the URL directly in a browser and was prompted for an 
XML download. Connection issue of some sort?


Reading the header in the XML file it looks like they want you to use 
'https://dl-ssl.google.com/download/gwt/DTD/xhtml.ent' instead.


And the master copy is at 
'http://google-web-toolkit.googlecode.com/svn/trunk/user/src/com/google/gwt/uibinder/resources/xhtml.ent'


And looking through that file, I don't see UI Binder elements defined, 
only HTML entities.


On 4/28/20 12:18 PM, Scott Onyx Harmon wrote:

http://dl.google.com/gwt/DTD/xhtml.ent;>

No longer seems to be functioning properly, as I now get multiple 
"errors" in my XML files such as:

Element type "ui:UiBinder" must be declared.

Is there a new place to get the DTD?
--
You received this message because you are subscribed to the Google 
Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to google-web-toolkit+unsubscr...@googlegroups.com 
<mailto:google-web-toolkit+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/50b54519-f3fb-438d-82ad-fd9b8cdd07d8%40googlegroups.com 
<https://groups.google.com/d/msgid/google-web-toolkit/50b54519-f3fb-438d-82ad-fd9b8cdd07d8%40googlegroups.com?utm_medium=email_source=footer>.


--
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/3d43a885-abfc-8e57-fcda-f911338d174f%40newsrx.com.


Is the UI Binder DocType Broken?

2020-04-28 Thread Scott Onyx Harmon
http://dl.google.com/gwt/DTD/xhtml.ent;>

No longer seems to be functioning properly, as I now get multiple "errors" 
in my XML files such as:
Element type "ui:UiBinder" must be declared.

Is there a new place to get the DTD?

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/50b54519-f3fb-438d-82ad-fd9b8cdd07d8%40googlegroups.com.


Re: Ui Binder Alternatives

2016-07-26 Thread James Horsley
Something like Elemento + Elemental 2 seems like a great lightweight choice
in the future.

FWIW I agree with Paul that UiBinder plus some top layer of the widget API
(UIObject, Widget, etc.) will get ported over to work with GWT 3.0 by the
community. There's no reason it can't work with Java APT + JsInterop, just
needs the tech investment. I think this will be a huge help for many teams
doing a gradual upgrade.

On Tue, Jul 26, 2016 at 7:43 AM zakaria amine <zakaria.amin...@gmail.com>
wrote:

> Elemento project sounds like an intersting alternative:
> https://github.com/hal/elemento
>
>
> Le dimanche 24 juillet 2016 03:40:02 UTC+2, N Troncoso a écrit :
>>
>> With GWT 3.0, Widgets and UI Binder is losing support. Even besides that,
>> I'm not a huge fan of UI Binder. I'd really just prefer to use vanilla
>> HTML. With that said, I've been searching for other options and I've only
>> found that alternatives are very limited. Even more so, examples of how to
>> integrate alternatives into GWT are basically non-existent. So, my question
>> is, what can I use instead of Widgets and UI Binder and where can I find
>> examples/tutorials/documentation on how to use them in GWT.
>>
>> I found Errai <http://erraiframework.org/> as one option. But, this
>> seems to be an entire framework, rather than just a template system.
>>
>> Any insight would be greatly appreciated. Thanks
>>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" 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 google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Ui Binder Alternatives

2016-07-26 Thread zakaria amine
Elemento project sounds like an intersting 
alternative: https://github.com/hal/elemento

Le dimanche 24 juillet 2016 03:40:02 UTC+2, N Troncoso a écrit :
>
> With GWT 3.0, Widgets and UI Binder is losing support. Even besides that, 
> I'm not a huge fan of UI Binder. I'd really just prefer to use vanilla 
> HTML. With that said, I've been searching for other options and I've only 
> found that alternatives are very limited. Even more so, examples of how to 
> integrate alternatives into GWT are basically non-existent. So, my question 
> is, what can I use instead of Widgets and UI Binder and where can I find 
> examples/tutorials/documentation on how to use them in GWT.
>
> I found Errai <http://erraiframework.org/> as one option. But, this seems 
> to be an entire framework, rather than just a template system.
>
> Any insight would be greatly appreciated. Thanks
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Ui Binder Alternatives

2016-07-26 Thread Paul Stockley
I think there is a good chance that Widgets / UiBinder in some form could 
get ported to GWT 3.0. Probably not by google and probably in separate 
projects from the main GWT compiler stack.

On Monday, July 25, 2016 at 7:58:50 PM UTC-4, Gilberto wrote:
>
> Nobody really knows how GWT 3 will be for sure, but I assume GWT 3.0 will 
> be less of a framework and more of a transpiler from Java to Javascript, 
> which other frameworks will be built on top of it.
>
> So I wouldn't expect a simple template engine to replace UiBinder, but 
> full featured frameworks. You'll have to choose one or implement your own.
>
> But that's for 3.0.
>
> Meanwhile, I see Errai as a very good option, since you can use the HTML 
> template right from your designers, with minimal-to-none modifications to 
> link with your logic code. That's something pretty hard to achieve with 
> UiBinder.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Ui Binder Alternatives

2016-07-25 Thread Alain Ekambi
Errai is the best. Point. Period.

On 26 July 2016 at 01:58, Gilberto  wrote:

> Nobody really knows how GWT 3 will be for sure, but I assume GWT 3.0 will
> be less of a framework and more of a transpiler from Java to Javascript,
> which other frameworks will be built on top of it.
>
> So I wouldn't expect a simple template engine to replace UiBinder, but
> full featured frameworks. You'll have to choose one or implement your own.
>
> But that's for 3.0.
>
> Meanwhile, I see Errai as a very good option, since you can use the HTML
> template right from your designers, with minimal-to-none modifications to
> link with your logic code. That's something pretty hard to achieve with
> UiBinder.
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" 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 google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Alain Ekambi

Co-Founder

Ahomé Innovation Technologies

http://www.ahome-it.com/ 

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Ui Binder Alternatives

2016-07-25 Thread Gilberto
Nobody really knows how GWT 3 will be for sure, but I assume GWT 3.0 will 
be less of a framework and more of a transpiler from Java to Javascript, 
which other frameworks will be built on top of it.

So I wouldn't expect a simple template engine to replace UiBinder, but full 
featured frameworks. You'll have to choose one or implement your own.

But that's for 3.0.

Meanwhile, I see Errai as a very good option, since you can use the HTML 
template right from your designers, with minimal-to-none modifications to 
link with your logic code. That's something pretty hard to achieve with 
UiBinder.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Ui Binder Alternatives

2016-07-25 Thread Kay Pac
I don't want to start a huge discussion necessarily but are Widgets really 
losing support?

On Monday, July 25, 2016 at 10:45:29 AM UTC-7, Paul Stockley wrote:
>
> One option when 2.8 is released would be to use GWT React (
> https://github.com/GWTReact/gwt-react). React is a good substitute for 
> the view layer and can be integrated with existing widgets so you can 
> migrate your way to a UiBinderless approach.
>
> On Saturday, July 23, 2016 at 9:40:02 PM UTC-4, N Troncoso wrote:
>>
>> With GWT 3.0, Widgets and UI Binder is losing support. Even besides that, 
>> I'm not a huge fan of UI Binder. I'd really just prefer to use vanilla 
>> HTML. With that said, I've been searching for other options and I've only 
>> found that alternatives are very limited. Even more so, examples of how to 
>> integrate alternatives into GWT are basically non-existent. So, my question 
>> is, what can I use instead of Widgets and UI Binder and where can I find 
>> examples/tutorials/documentation on how to use them in GWT.
>>
>> I found Errai <http://erraiframework.org/> as one option. But, this 
>> seems to be an entire framework, rather than just a template system.
>>
>> Any insight would be greatly appreciated. Thanks
>>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Ui Binder Alternatives

2016-07-25 Thread Paul Stockley
One option when 2.8 is released would be to use GWT React (
https://github.com/GWTReact/gwt-react). React is a good substitute for the 
view layer and can be integrated with existing widgets so you can migrate 
your way to a UiBinderless approach.

On Saturday, July 23, 2016 at 9:40:02 PM UTC-4, N Troncoso wrote:
>
> With GWT 3.0, Widgets and UI Binder is losing support. Even besides that, 
> I'm not a huge fan of UI Binder. I'd really just prefer to use vanilla 
> HTML. With that said, I've been searching for other options and I've only 
> found that alternatives are very limited. Even more so, examples of how to 
> integrate alternatives into GWT are basically non-existent. So, my question 
> is, what can I use instead of Widgets and UI Binder and where can I find 
> examples/tutorials/documentation on how to use them in GWT.
>
> I found Errai <http://erraiframework.org/> as one option. But, this seems 
> to be an entire framework, rather than just a template system.
>
> Any insight would be greatly appreciated. Thanks
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Ui Binder Alternatives

2016-07-23 Thread N Troncoso
With GWT 3.0, Widgets and UI Binder is losing support. Even besides that, 
I'm not a huge fan of UI Binder. I'd really just prefer to use vanilla 
HTML. With that said, I've been searching for other options and I've only 
found that alternatives are very limited. Even more so, examples of how to 
integrate alternatives into GWT are basically non-existent. So, my question 
is, what can I use instead of Widgets and UI Binder and where can I find 
examples/tutorials/documentation on how to use them in GWT.

I found Errai <http://erraiframework.org/> as one option. But, this seems 
to be an entire framework, rather than just a template system.

Any insight would be greatly appreciated. Thanks

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Use dynamic affectation polymer '$=' with in gwt ui binder

2015-11-27 Thread Cyril Souti
Hi,

I would like to know I can use "$=" in uibinder xml file.

example:
 in iron-list template.

I have similar issue with polymer css mixin which starts by --

example: 
--paper-spinner-layer-1-color


It produces compilation error.

Thanks,

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Noob Question on UI Binder

2015-05-06 Thread Ed
Hi,

I recently updated to 2.7 and decided to use UI Binder.  I created a sample 
as follows:

Login.java
package com.CyberObjects.avnoc.EiS.client.widgets;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;

public class Login extends Composite {

interface MyUiBinder extends UiBinderWidget, Login {
}

private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);

public Login() {
// sets listBox
initWidget(uiBinder.createAndBindUi(this));

}
}

 Login.ui.xml

!-- HelloWidgetWorld.ui.xml --

ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
  ui:style
.pretty { background-color: Skyblue; }
  /ui:style

  ui:style field='otherStyle'
.pretty { background-color: Orange; }
  /ui:style

  div class='{style.pretty}'
Hello, span class='{otherStyle.pretty}' ui:field='nameSpan'/.
  /div

/ui:UiBinder

And get the following error during compilation:

Compiling module com.CyberObjects.avnoc.EiS.AVNOCEiS
   [ERROR] An internal compiler exception occurred
com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during 
visit.
at 
com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:121)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:296)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:128)
at 
com.google.gwt.dev.jjs.ast.JCastOperation.traverse(JCastOperation.java:67)
at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:128)
at 
com.google.gwt.dev.jjs.ast.JDeclarationStatement.traverse(JDeclarationStatement.java:49)
at 
com.google.gwt.dev.jjs.ast.JModVisitor$ListContext.traverse(JModVisitor.java:95)
at 
com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemove(JModVisitor.java:351)
at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:92)
at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:149)
at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:145)
at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:83)
at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:600)
at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:569)
at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
at com.google.gwt.dev.jjs.impl.UnifyAst.mainLoop(UnifyAst.java:1505)
at com.google.gwt.dev.jjs.impl.UnifyAst.exec(UnifyAst.java:870)
at 
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.unifyJavaAst(JavaToJavaScriptCompiler.java:1305)
at 
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.constructJavaAst(JavaToJavaScriptCompiler.java:1038)
at 
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.precompile(JavaToJavaScriptCompiler.java:954)
at 
com.google.gwt.dev.jjs.MonolithicJavaToJavaScriptCompiler.precompile(MonolithicJavaToJavaScriptCompiler.java:303)
at 
com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:38)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:286)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)
at com.google.gwt.dev.Compiler.run(Compiler.java:206)
at com.google.gwt.dev.Compiler.run(Compiler.java:158)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:120)
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:55)
at 
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:50)
at com.google.gwt.dev.Compiler.main(Compiler.java:127)
Caused by: java.lang.AbstractMethodError: 
org.apache.xerces.dom.ElementNSImpl.setUserData(Ljava/lang/String;Ljava/lang/Object;Lorg/w3c/dom/UserDataHandler;)Ljava/lang/Object;
at 
com.google.gwt.uibinder.rebind.W3cDocumentBuilder.startElement(W3cDocumentBuilder.java:127)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown 
Source

Re: Noob Question on UI Binder

2015-05-06 Thread Ed
Solved: Updated to latest version of xerces

On Wed, May 6, 2015 at 7:19 AM, Ed ej19...@gmail.com wrote:

 Hi,

 I recently updated to 2.7 and decided to use UI Binder.  I created a
 sample as follows:

 Login.java
 package com.CyberObjects.avnoc.EiS.client.widgets;

 import com.google.gwt.core.client.GWT;
 import com.google.gwt.uibinder.client.UiBinder;
 import com.google.gwt.user.client.ui.Composite;
 import com.google.gwt.user.client.ui.Widget;

 public class Login extends Composite {

 interface MyUiBinder extends UiBinderWidget, Login {
 }

 private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);

 public Login() {
 // sets listBox
 initWidget(uiBinder.createAndBindUi(this));

 }
 }

  Login.ui.xml

 !-- HelloWidgetWorld.ui.xml --

 ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
   ui:style
 .pretty { background-color: Skyblue; }
   /ui:style

   ui:style field='otherStyle'
 .pretty { background-color: Orange; }
   /ui:style

   div class='{style.pretty}'
 Hello, span class='{otherStyle.pretty}' ui:field='nameSpan'/.
   /div

 /ui:UiBinder

 And get the following error during compilation:

 Compiling module com.CyberObjects.avnoc.EiS.AVNOCEiS
[ERROR] An internal compiler exception occurred
 com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during
 visit.
 at
 com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:121)
 at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:296)
 at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
 at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:128)
 at
 com.google.gwt.dev.jjs.ast.JCastOperation.traverse(JCastOperation.java:67)
 at
 com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
 at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
 at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
 at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:128)
 at
 com.google.gwt.dev.jjs.ast.JDeclarationStatement.traverse(JDeclarationStatement.java:49)
 at
 com.google.gwt.dev.jjs.ast.JModVisitor$ListContext.traverse(JModVisitor.java:95)
 at
 com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemove(JModVisitor.java:351)
 at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:92)
 at
 com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
 at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
 at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:149)
 at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:145)
 at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:83)
 at
 com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
 at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
 at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
 at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:600)
 at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:569)
 at
 com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
 at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
 at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
 at com.google.gwt.dev.jjs.impl.UnifyAst.mainLoop(UnifyAst.java:1505)
 at com.google.gwt.dev.jjs.impl.UnifyAst.exec(UnifyAst.java:870)
 at
 com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.unifyJavaAst(JavaToJavaScriptCompiler.java:1305)
 at
 com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.constructJavaAst(JavaToJavaScriptCompiler.java:1038)
 at
 com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.precompile(JavaToJavaScriptCompiler.java:954)
 at
 com.google.gwt.dev.jjs.MonolithicJavaToJavaScriptCompiler.precompile(MonolithicJavaToJavaScriptCompiler.java:303)
 at
 com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:38)
 at com.google.gwt.dev.Precompile.precompile(Precompile.java:286)
 at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)
 at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)
 at com.google.gwt.dev.Compiler.run(Compiler.java:206)
 at com.google.gwt.dev.Compiler.run(Compiler.java:158)
 at com.google.gwt.dev.Compiler$1.run(Compiler.java:120)
 at
 com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:55)
 at
 com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:50)
 at com.google.gwt.dev.Compiler.main(Compiler.java:127)
 Caused by: java.lang.AbstractMethodError:
 org.apache.xerces.dom.ElementNSImpl.setUserData(Ljava/lang/String;Ljava/lang/Object;Lorg/w3c/dom/UserDataHandler;)Ljava/lang/Object;
 at
 com.google.gwt.uibinder.rebind.W3cDocumentBuilder.startElement(W3cDocumentBuilder.java:127

Re: Using UI binder vs. GWT-Java code to do the layout

2015-02-08 Thread Blake
Thank you very much for your replies and feedback.  You are very helpful 
and appreciated.

Blake

On Sunday, February 8, 2015 at 11:46:18 AM UTC-6, Jens wrote:

 One of the features of GWT is its abstraction over the browser so that the 
 GWT-Java layout code may act differently depending on the browser brand and 
 version.  If we use GWT as a JavaScript replacement only, don't we lose 
 that benefit?


 That benefit gets less and less important as HTML + CSS layout/styling is 
 pretty consistent between browsers once you have adjusted the different 
 default CSS styles of different browsers. So most of the time GWT helps you 
 on JavaScript level (event handling, missing JS features in older browsers, 
 etc) and not so much on HTML/CSS level. There are a few widgets that 
 correct some stuff between browsers however every time GWT drops support 
 for an old IE some of these fixes are not needed anymore up to a point 
 where every widget is the same for each supported browser.

 I am not saying you should not use widgets at all, especially if you 
 support IE8,9 (because of possible memory leaks that GWT prevents), however 
 there are quite some widgets that most of the time do nothing in your app 
 except costing performance and memory. FlowPanel and InlineLabel/Label are 
 probably used a lot in every app however most of the time they are just 
 used to apply styles to them, grouping childs or are just read only labels. 
 Most of the time you can replace them with HTML elements without 
 sacrificing anything.

  

 Additionally, the argument of using HTML (UIBinder) over GWT layout code 
 is the argument of declarative (HTML) vs. imperative (GWT layout) 
 programming.  Surely most would agree that declarative models are faster 
 and easier in simple cases but have limits that can only be solved 
 imperatively.  Also, imperative utilities can often be built making the 
 imperative model nearly as fast and simple as declarative models.  Do you 
 agree?


 Sure, you usually have a mixture of both in your app. Everything that can 
 be defined declaratively will go into a UiBinder file and everything that 
 has dynamic behavior will be solved imperatively using Java code. For 
 example if you have a page with complex static design you can put that into 
 the UiBinder file along with some placeholders for child widgets. Then you 
 use Java to fill these placeholders dynamically depending on some 
 conditions. 

 Also UiBinder does not mean you must use HTML. It is just a declarative 
 approach and allows you to quickly understand the structure of a view. 
 However once you start using UiBinder you can effectively start using 
 HTMLPanel (which is a bit of a pain when using it through pure java) which 
 then allows you to mix HTML elements and GWT widgets and gain 
 performance/memory improvements (because you can reduce the amount of 
 widgets)

 -- 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 google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Using UI binder vs. GWT-Java code to do the layout

2015-02-08 Thread Jens


 One of the features of GWT is its abstraction over the browser so that the 
 GWT-Java layout code may act differently depending on the browser brand and 
 version.  If we use GWT as a JavaScript replacement only, don't we lose 
 that benefit?


That benefit gets less and less important as HTML + CSS layout/styling is 
pretty consistent between browsers once you have adjusted the different 
default CSS styles of different browsers. So most of the time GWT helps you 
on JavaScript level (event handling, missing JS features in older browsers, 
etc) and not so much on HTML/CSS level. There are a few widgets that 
correct some stuff between browsers however every time GWT drops support 
for an old IE some of these fixes are not needed anymore up to a point 
where every widget is the same for each supported browser.

I am not saying you should not use widgets at all, especially if you 
support IE8,9 (because of possible memory leaks that GWT prevents), however 
there are quite some widgets that most of the time do nothing in your app 
except costing performance and memory. FlowPanel and InlineLabel/Label are 
probably used a lot in every app however most of the time they are just 
used to apply styles to them, grouping childs or are just read only labels. 
Most of the time you can replace them with HTML elements without 
sacrificing anything.

 

 Additionally, the argument of using HTML (UIBinder) over GWT layout code 
 is the argument of declarative (HTML) vs. imperative (GWT layout) 
 programming.  Surely most would agree that declarative models are faster 
 and easier in simple cases but have limits that can only be solved 
 imperatively.  Also, imperative utilities can often be built making the 
 imperative model nearly as fast and simple as declarative models.  Do you 
 agree?


Sure, you usually have a mixture of both in your app. Everything that can 
be defined declaratively will go into a UiBinder file and everything that 
has dynamic behavior will be solved imperatively using Java code. For 
example if you have a page with complex static design you can put that into 
the UiBinder file along with some placeholders for child widgets. Then you 
use Java to fill these placeholders dynamically depending on some 
conditions. 

Also UiBinder does not mean you must use HTML. It is just a declarative 
approach and allows you to quickly understand the structure of a view. 
However once you start using UiBinder you can effectively start using 
HTMLPanel (which is a bit of a pain when using it through pure java) which 
then allows you to mix HTML elements and GWT widgets and gain 
performance/memory improvements (because you can reduce the amount of 
widgets)

-- 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 google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Using UI binder vs. GWT-Java code to do the layout

2015-02-08 Thread Blake McBride
On Sat, Jan 3, 2015 at 12:58 PM, Jens jens.nehlme...@gmail.com wrote:

 A bit off topic, but:  The real value of GWT for me has been the ability
 to write browser apps without HTML, CSS, JavaScript, and Java (you know,
 spaghetti) - being able to use Java only.  As you start adding HTML and CSS
 to GWT apps  (the UI part), I question the whole value of GWT.


 The value of GWT is its tooling support because it can reuse tooling from
 the Java world. That is literally the only reason that really counts.

 GWT is a leaky abstraction and will always be. If you refuse to learn more
 about the platform you are programming apps for (the web and its
 technologies) then you are limiting yourself. Good luck writing a smooth
 mobile website/app with custom UI and corporate identity theme without
 knowing HTML/CSS and browser reflows.



I have thought about this a lot.  I finally reached a point where I can
articulate a response.

It is possible to write a GWT app using Java only - without CSS, HTML, and
JavaScript.  That is actually it's appeal for me.  Based on your response,
which I am sure many others agree, it sounds like what you are saying is to
use GWT as a replacement for JavaScript only.  So one would write an app in
GWT-Java, HTML, and CSS.

One of the features of GWT is its abstraction over the browser so that the
GWT-Java layout code may act differently depending on the browser brand and
version.  If we use GWT as a JavaScript replacement only, don't we lose
that benefit?

Additionally, the argument of using HTML (UIBinder) over GWT layout code is
the argument of declarative (HTML) vs. imperative (GWT layout)
programming.  Surely most would agree that declarative models are faster
and easier in simple cases but have limits that can only be solved
imperatively.  Also, imperative utilities can often be built making the
imperative model nearly as fast and simple as declarative models.  Do you
agree?

Dialog about these two issues (especially the first) is very helpful,
important, and appreciated by me.

Thanks.

Blake McBride

-- 
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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Error compiling a ui binder file with 2.7

2014-10-10 Thread Rob
OK, I've figured out what is going wrong. We use the lib-gwt-svg library 
which replaces UiBinderWriter with its own implementation, this of course 
is not compatible with 2.7 :(


On Thursday, 9 October 2014 16:14:44 UTC+1, Rob wrote:

 I've just started looking at how much effort is going to be involved in 
 switching our app over to 2.7, I'm using the latest snapshot and building 
 with maven using the 2.7 gwt maven plugin snapshot.

 I'm getting the following error when one of our ui binder files is being 
 compiled:

 [INFO] Caused by: java.lang.NoSuchMethodError: 
 com.google.gwt.uibinder.rebind.UiBinderWriter.init(Lcom/google/gwt/core/ext/typeinfo/JClassType;Ljava/lang/String;Ljava/lang/String;Lcom/google/gwt/core/ext/typeinfo/TypeOracle;Lcom/google/gwt/uibinder/rebind/MortalLogger;Lcom/google/gwt/uibinder/rebind/FieldManager;Lcom/google/gwt/uibinder/rebind/messages/MessagesWriter;Lcom/google/gwt/uibinder/rebind/DesignTimeUtils;Lcom/google/gwt/uibinder/rebind/UiBinderContext;ZZLjava/lang/String;Lcom/google/gwt/dev/resource/ResourceOracle;)V

 I've attached the full stack trace just in case it is of any use.

 Rob


-- 
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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Error compiling a ui binder file with 2.7

2014-10-09 Thread Rob
I've just started looking at how much effort is going to be involved in 
switching our app over to 2.7, I'm using the latest snapshot and building 
with maven using the 2.7 gwt maven plugin snapshot.

I'm getting the following error when one of our ui binder files is being 
compiled:

[INFO] Caused by: java.lang.NoSuchMethodError: 
com.google.gwt.uibinder.rebind.UiBinderWriter.init(Lcom/google/gwt/core/ext/typeinfo/JClassType;Ljava/lang/String;Ljava/lang/String;Lcom/google/gwt/core/ext/typeinfo/TypeOracle;Lcom/google/gwt/uibinder/rebind/MortalLogger;Lcom/google/gwt/uibinder/rebind/FieldManager;Lcom/google/gwt/uibinder/rebind/messages/MessagesWriter;Lcom/google/gwt/uibinder/rebind/DesignTimeUtils;Lcom/google/gwt/uibinder/rebind/UiBinderContext;ZZLjava/lang/String;Lcom/google/gwt/dev/resource/ResourceOracle;)V

I've attached the full stack trace just in case it is of any use.

Rob

-- 
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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
[INFO][ERROR] An internal compiler exception occurred
[INFO] com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during
 visit.
[INFO]  at com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:
121)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:296)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
[INFO]  at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:128)
[INFO]  at com.google.gwt.dev.jjs.ast.JCastOperation.traverse(JCastOperation.jav
a:67)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)

[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
[INFO]  at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:128)
[INFO]  at com.google.gwt.dev.jjs.ast.JDeclarationStatement.traverse(JDeclaratio
nStatement.java:49)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor$ListContext.traverse(JModVisit
or.java:95)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemove(JModVis
itor.java:351)
[INFO]  at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:92)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)

[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
[INFO]  at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:149)
[INFO]  at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:145)
[INFO]  at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:83)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)

[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
[INFO]  at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:600)
[INFO]  at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:569)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)

[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
[INFO]  at com.google.gwt.dev.jjs.impl.UnifyAst.mainLoop(UnifyAst.java:1505)
[INFO]  at com.google.gwt.dev.jjs.impl.UnifyAst.exec(UnifyAst.java:870)
[INFO]  at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.unifyJava
Ast(JavaToJavaScriptCompiler.java:1304)
[INFO]  at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.construct
JavaAst(JavaToJavaScriptCompiler.java:1037)
[INFO]  at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.precompil
e(JavaToJavaScriptCompiler.java:954)
[INFO]  at com.google.gwt.dev.jjs.MonolithicJavaToJavaScriptCompiler.precompile(
MonolithicJavaToJavaScriptCompiler.java:311)
[INFO]  at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompil
er.java:38)
[INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:286)
[INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)
[INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)
[INFO]  at com.google.gwt.dev.Compiler.run(Compiler.java:204)
[INFO]  at com.google.gwt.dev.Compiler.run(Compiler.java:156)
[INFO]  at com.google.gwt.dev.Compiler$1.run(Compiler.java:118)
[INFO]  at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:55)

[INFO]  at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(Compile
TaskRunner.java:50)
[INFO]  at com.google.gwt.dev.Compiler.main(Compiler.java:125)
[INFO] Caused

Re: UI Binder why?

2013-10-17 Thread Thomas Broyer


On Wednesday, October 16, 2013 8:53:36 PM UTC+2, Timothy Spear wrote:

 How would the declarative UiBinder jeopardize browser independence?


I think he's talking about HTMLPanel actually, which is independent from 
UiBinder, but which UiBinder makes it so much easier to use.

BTW, I don't think there's any *guarantee* of browser independence. There's 
a *best effort* in terms of behavior but not really in terms of rendering 
(except for container widgets, but that's part of their behavior 
right?).
When I say *no guarantee*, I say it as if I told you jQuery makes no 
guarantee either.

For rendering, you'll have to use CSS (you won't use one the built-in 
themes, will you?), and you'll hit browser discrepancies there.
GWT's main goal is not to *hide* these discrepancies (it does hide many of 
them, but so do many JS libraries), but to use Java as your programming 
language of choice, allowing you benefit from its static typing, use most 
existing Java tooling, and share code with other Java-based environments 
(server-side Java, desktop Java, JavaFX, Android – and even iOS with 
Google's J2ObjC).
Just like with any platform, you'll have to learn it, and GWT's platform is 
the Web, so it won't free you to learn HTML, JS and CSS.

-- 
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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


UI Binder why?

2013-10-16 Thread Tim McClure
What is the most used approach in GWT- the native approach where all web 
code is generated through GWT or the declarative approach where HTML/CSS 
templates are used and integrated through UIBinder?  It seems the 
declarative approach was introduced for separation of concerns and allowing 
graphic designers the ability to contribute to GWT systems.  However could 
it be argued that the declarative approach jeopardizes the browser 
independence guaranteed by GWT.  We are new to GWT and we are trying to 
determine which direction we should take - what is the most recommended 
design pattern?

-- 
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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: UI Binder why?

2013-10-16 Thread Timothy Spear
How would the declarative UiBinder jeopardize browser independence?

Personally, I like UiBinder overall. There are few cases where I find it a 
pain, but overall for any screen which has multiple elements I have found it 
significantly cuts the amount of code required. It also has the benefit of 
making the Java class file significantly shorter making it easier to find the 
logic and not focus ignoring all the wiring of elements. This provides for 
much better separation in my opinion which simplifies code maintenance. 

Since I know it will come up. Here are the major downsides as I see it for 
UiBinder:
-- UiBinder requires two files which have to be maintained in sync.
-- UiBinder hides to much on occasion. This can produce very ugly HTML. You 
really have to learn how UiBinder generates the result (same issue with GWT, 
but adds another layer on top in my opinion).
-- UiBinder is not friendly in terms of using a ClientResourceBundle for CSS. 
(I use addStyleName a lot). So I end up adding most style names via Java code.

Tim

On Oct 16, 2013, at 2:19 PM, Tim McClure tjmcclure0...@gmail.com wrote:

 What is the most used approach in GWT- the native approach where all web code 
 is generated through GWT or the declarative approach where HTML/CSS templates 
 are used and integrated through UIBinder?  It seems the declarative approach 
 was introduced for separation of concerns and allowing graphic designers the 
 ability to contribute to GWT systems.  However could it be argued that the 
 declarative approach jeopardizes the browser independence guaranteed by GWT.  
 We are new to GWT and we are trying to determine which direction we should 
 take - what is the most recommended design pattern?
 
 -- 
 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 google-web-toolkit@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-web-toolkit.
 For more options, visit https://groups.google.com/groups/opt_out.

-- 
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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


UI Binder designer giving exception

2013-08-17 Thread Amit Chavan
I have created a LoginControl UI binder widget. I have added the following 
in the .xml ui binder file. The text in red is manually written. I get an 
exception when i switch to designer view. 

java.lang.UnsupportedOperationException: This panel does not support no-arg 
add(). My question is can i not add FlexTable inside simpleLayoutPanel ? 


!DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent;
ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder
xmlns:g=urn:import:com.google.gwt.user.client.ui
ui:style
.important {
font-weight: bold;
}
 /ui:style
g:HTMLPanel
g:TabLayoutPanel barHeight=2 barUnit=EM width=535px height=256px
g:tab
g:headerLogin/g:header
g:SimpleLayoutPanel ui:field=loginPanel
g:FlexTable
g:LabelEmail/g:Label
g:TextBox/g:TextBox
g:LabelPassword/g:Label
g:TextArea/g:TextArea
/g:FlexTable
/g:SimpleLayoutPanel 
/g:tab
g:tab
g:headerSign up/g:header
g:HTML/g:HTML
/g:tab
/g:TabLayoutPanel
/g:HTMLPanel
/ui:UiBinder 

-- 
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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: UI Binder designer giving exception

2013-08-17 Thread Jens
Looks like UiBinder does not know how to deal with FlexTable and thus you 
need to set it up yourself in the java file. To do so you would use 
@UiField(provided 
= true) FlexTable myTable and instantiate it before calling 
binder.createAndBindUi(). 
Then you can add child widgets to it programmatically.

If you don't like that then don't use FlexTable. For example you could 
change your SimpleLayoutPanel to an HTMLPanel and then use plain table, 
tr, td tags to build the table. Or instead of table tags use div tags 
along with some Css.

-- 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 google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


How to make a dynamic menu with ui-binder depending on a state?

2013-06-16 Thread membersound
Hi,

how could I best create a menu whose entries depend on eg a login state of 
a user?
Afaik I cannot use the ui-binder to render the menu by conditions, as it 
does not support any if-else logic.

Is the only approach to define my login-specific ui-elements with 
visible=false and show them when the user logs in?
Could I do better?

Thanks

-- 
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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Re: How to make a dynamic menu with ui-binder depending on a state?

2013-06-16 Thread Jens
You either define all possible menu items in UiBinder with visible = false 
and then enable the ones the user can see, or you dont put anything in the 
UiBinder and generate the menu items on the fly based on the login state.

-- 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 google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Do I always have to import the full path for new components in ui-binder?

2013-05-09 Thread membersound
Hi,

I wonder if it is always necessary to import the full path for a component?
I have my components all organized each in a separate folder. Thus, if I 
want to include several of them, I always have to declare a specific 
namespace for each of them like:

xmlns:myHeader=urn:import:my.app.client.components.header
xmlns:myFooter=urn:import:my.app.client.components.footer
xmlns:myBar=urn:import:my.app.client.components.bar


Can't I just somehow declare the following?
xmlns:my=urn:import:my.app.client.components

and then use it like:
my.bar:TheBarClass ... /
my.footer:Footer /

Is that possible?

-- 
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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Do I always have to import the full path for new components in ui-binder?

2013-05-09 Thread Jens
As far as I know the XML spec does not support it. So its not really an 
UiBinder problem.

Maybe you should try to reduce the amount of packages you have. Try to not 
over-specify things.

So I would expect the following (note the use of singular and plural):
1.) my.app.client.component: Contains different things related to the 
concept of a component (e.g. ComponentBuilder, ComponentLayouter)
2.) my.app.client.components: Contains a lot of different components (e.g. 
Button, CheckBox, Header, Footer, ...)
3.) my.app.client.component.header: Contains different things related to 
the concept of a header component (e.g. HeaderBuilder, ..)
4.) my.app.client.components.headers: Contains a lot of different header 
components (e.g. AutoHideHeader, BlueHeader, TinyHeader, ...)

But in case of 4.) if you only have 1-3 header components in that package, 
its IMHO not worth it to put it into a headers package. So I would move it 
up into the components package.

Maybe this helps you to rearrange your packages a bit so you dont have to 
import lots of XML namespaces into your UiBinder file. 

-- 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 google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Order of instantiation in UI-Binder?

2013-05-09 Thread Patrick Tucker
I wouldn't consider providing the object via annotation a hack...
 

 @UiField(provided=true)


On Wednesday, May 8, 2013 4:25:03 PM UTC-4, membersound wrote:

 OK I see that's not as easy as I thought.
 Probably I should refactor my code instead of trying a hacky solution. 
 Thansk!


 2013/5/8 Patrick Tucker tuck...@gmail.com javascript:

 Have you tried providing, in the java code, the widget that is being 
 added to the center?  That is assuming the widget that you are adding is 
 what you are calling to get the NPE.
  
 Some code would probably go a long way in getting better guidance...

 On Tuesday, May 7, 2013 7:12:09 AM UTC-4, membersound wrote:

 Hi,

 I have a SplitLayoutPanel with g:center and g:north.

 The north element depends on the center element, and uses it in the 
 contructor after initWidget() has been called.
 Problem: I always get a NullPointerException for the center element 
 used in the north element.

 How can I force object creation to be first the center, and then the 
 north element? I assume the default is just the other way around?

 Thanks

  

-- 
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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Order of instantiation in UI-Binder?

2013-05-08 Thread Kody
OK that would be possible in general, though I require my stuff in the
g:center as it should just take all space that is left in the window. South
would require a fixed size...


2013/5/8 Thad thad.humphr...@gmail.com

 You may have to wait for the entire panel to render before making a call
 on any panel.

 One technique might be to not have a north. Call your current north center
 and put your current center in south. IIRC, you can have multiple souths,
 easts, etc. That might allow everything to layout without intervention.

 On Tuesday, May 7, 2013 7:12:09 AM UTC-4, membersound wrote:

 Hi,

 I have a SplitLayoutPanel with g:center and g:north.

 The north element depends on the center element, and uses it in the
 contructor after initWidget() has been called.
 Problem: I always get a NullPointerException for the center element used
 in the north element.

 How can I force object creation to be first the center, and then the
 north element? I assume the default is just the other way around?

 Thanks

  --
 You received this message because you are subscribed to a topic in the
 Google Groups Google Web Toolkit group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-web-toolkit/7fNeQwaaAZ4/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 Visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Order of instantiation in UI-Binder?

2013-05-08 Thread Jens
SplitLayoutPanel is a DockLayoutPanel and a DockLayoutPanel requirement is 
that the center layer is added last. Once the center layer is added you can 
not add anything else. Thats because the center panel takes the remaining 
space and thus the panel needs to know what is already inside that panel to 
calculate the remaining space.

So using stock GWT classes there is no way to change that behavior. You 
would need to implement it yourself. Your best bet is probably writing a 
custom composite that is backed by a SplitLayoutPanel and provides @UiChild 
methods for north/east/south/center. These methods just store the widgets 
you add, and in Composite.onLoad() you would build the SplitLayoutPanel 
based on the added panels. That way the @UiChild methods can be called in 
any order and in onLoad() you can still build the SplitLayoutPanel with the 
center panel added last to satisfy DockLayoutPanel requirements.

http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/uibinder/client/UiChild.html


As an alternative try to refactor your code so that you dont need to access 
the center panel inside the constructor of the north panel. You could add a 
ui:field to the north and center panel and in your UiBinder's Java file 
connect both panels *after* binder.createAndBindUi(this) is called. With 
your current constructor approach you are trying to connect both panels 
*during 
the execution* of binder.createAndBindUi(this).


-- 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 google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Order of instantiation in UI-Binder?

2013-05-08 Thread Patrick Tucker
Have you tried providing, in the java code, the widget that is being added 
to the center?  That is assuming the widget that you are adding is what you 
are calling to get the NPE.
 
Some code would probably go a long way in getting better guidance...

On Tuesday, May 7, 2013 7:12:09 AM UTC-4, membersound wrote:

 Hi,

 I have a SplitLayoutPanel with g:center and g:north.

 The north element depends on the center element, and uses it in the 
 contructor after initWidget() has been called.
 Problem: I always get a NullPointerException for the center element used 
 in the north element.

 How can I force object creation to be first the center, and then the north 
 element? I assume the default is just the other way around?

 Thanks


-- 
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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Order of instantiation in UI-Binder?

2013-05-08 Thread Kody
OK I see that's not as easy as I thought.
Probably I should refactor my code instead of trying a hacky solution.
Thansk!


2013/5/8 Patrick Tucker tucker...@gmail.com

 Have you tried providing, in the java code, the widget that is being added
 to the center?  That is assuming the widget that you are adding is what you
 are calling to get the NPE.

 Some code would probably go a long way in getting better guidance...

 On Tuesday, May 7, 2013 7:12:09 AM UTC-4, membersound wrote:

 Hi,

 I have a SplitLayoutPanel with g:center and g:north.

 The north element depends on the center element, and uses it in the
 contructor after initWidget() has been called.
 Problem: I always get a NullPointerException for the center element used
 in the north element.

 How can I force object creation to be first the center, and then the
 north element? I assume the default is just the other way around?

 Thanks

  --
 You received this message because you are subscribed to a topic in the
 Google Groups Google Web Toolkit group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-web-toolkit/7fNeQwaaAZ4/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 Visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Order of instantiation in UI-Binder?

2013-05-07 Thread membersound
Hi,

I have a SplitLayoutPanel with g:center and g:north.

The north element depends on the center element, and uses it in the 
contructor after initWidget() has been called.
Problem: I always get a NullPointerException for the center element used in 
the north element.

How can I force object creation to be first the center, and then the north 
element? I assume the default is just the other way around?

Thanks

-- 
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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Order of instantiation in UI-Binder?

2013-05-07 Thread Thad
You may have to wait for the entire panel to render before making a call on 
any panel.

One technique might be to not have a north. Call your current north center 
and put your current center in south. IIRC, you can have multiple souths, 
easts, etc. That might allow everything to layout without intervention.

On Tuesday, May 7, 2013 7:12:09 AM UTC-4, membersound wrote:

 Hi,

 I have a SplitLayoutPanel with g:center and g:north.

 The north element depends on the center element, and uses it in the 
 contructor after initWidget() has been called.
 Problem: I always get a NullPointerException for the center element used 
 in the north element.

 How can I force object creation to be first the center, and then the north 
 element? I assume the default is just the other way around?

 Thanks


-- 
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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: How to apply a complete css file to an element in Ui-Binder?

2013-03-11 Thread karim duran
Hi membersound,

1) I think your SuggestBox should have a ui:field attribute

2) then, add a stylename attribute like this -
styleName={css.mySuggestBox}. Where mySuggestBox is your css style
directives name for your gwt:SuggestBox.

Also, In UI Visual Designer, just can click on your suggestbox, you have a
little button on properties panel (advanced properties) where you can type
an ui:field name and css properties too.

I hope it help you.

Regards.

Karim Duran



2013/3/10 membersound kodyreco...@gmail.com

 How can I apply a complete css file to a specific element using UI Binder?

 I know the following does not work, as it is missing css.property statement.
 But you get the idea of what I'm trying: replacing all SuggestBox styles
 only for this specific suggestbox with the ones in my CSS file.

 ui:style field=css src=MySuggestBox.css /
 gwt:FlowPanel
  gwt:HTMLPanel
   //some other stuff
   gwt:SuggestBox styleName={css} / //Error: incomplete field reference

 --
 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 google-web-toolkit@googlegroups.com.
 Visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: How to apply a complete css file to an element in Ui-Binder?

2013-03-11 Thread Kody
No this would be suitable if I only want to apply a specific property class
of my css file. But I want to create a css file which contains all relevant
css classes for styling a SuggestBox, and then just apply everything that's
insndie it. Like:

.gwt-SuggestBox {}
.gwt-SuggestBoxPopup {}
.gwt-SuggestBoxPopup .item {}
.gwt-SuggestBoxPopup .item-selected {}
.gwt-SuggestBoxPopup .suggestPopupContent {}
.gwt-SuggestBoxPopup .suggestPopupTopCenter {}
.gwt-SuggestBoxPopup .suggestPopupBottomCenter {}
htmlbody .gwt-SuggestBoxPopup {}
* html .gwt-SuggestBoxPopup .suggestPopupTopLeftInner {


2013/3/11 karim duran karim.du...@gmail.com

 Hi membersound,

 1) I think your SuggestBox should have a ui:field attribute

 2) then, add a stylename attribute like this -
 styleName={css.mySuggestBox}. Where mySuggestBox is your css style
 directives name for your gwt:SuggestBox.

 Also, In UI Visual Designer, just can click on your suggestbox, you have a
 little button on properties panel (advanced properties) where you can type
 an ui:field name and css properties too.

 I hope it help you.

 Regards.

 Karim Duran



 2013/3/10 membersound kodyreco...@gmail.com

 How can I apply a complete css file to a specific element using UI Binder?

 I know the following does not work, as it is missing css.property statement.
 But you get the idea of what I'm trying: replacing all SuggestBox styles
 only for this specific suggestbox with the ones in my CSS file.

 ui:style field=css src=MySuggestBox.css /
 gwt:FlowPanel
  gwt:HTMLPanel
   //some other stuff
   gwt:SuggestBox styleName={css} / //Error: incomplete field reference

 --
 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 google-web-toolkit@googlegroups.com.
 Visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.




  --
 You received this message because you are subscribed to a topic in the
 Google Groups Google Web Toolkit group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-web-toolkit/LwNph5_merE/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 Visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




How to apply a complete css file to an element in Ui-Binder?

2013-03-10 Thread membersound
How can I apply a complete css file to a specific element using UI Binder?

I know the following does not work, as it is missing css.property statement. 
But you get the idea of what I'm trying: replacing all SuggestBox styles 
only for this specific suggestbox with the ones in my CSS file.

ui:style field=css src=MySuggestBox.css /
gwt:FlowPanel
 gwt:HTMLPanel
  //some other stuff
  gwt:SuggestBox styleName={css} / //Error: incomplete field reference

-- 
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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Non-trivial examples for UI Binder with pure HTML

2013-02-07 Thread Yan
Hi there, 

It has been said that using too many widgets leads to poor performance 
because of the overhead associated with it. But just about all the examples 
I have seen use widgets. 

There are Hello World examples using pure HTML, but it really does not 
get into the details with presenter, event handling, callback, etc. Anyone 
knows such examples?

I think the widget approach tends to appeal to Java programmers, that is 
why most of us do that way.

Thanks,
Yan

-- 
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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




How to extend GWT Widgets and use them with Ui-Binder?

2013-01-03 Thread membersound
I'm creating a custom Tree component which extends the GWT Tree.
But how can I use my custom tree with ui:binder??

I tried the following which did not work:

my custom tree:
public class CustomTree extends Tree {
public CustomTree() {
//...
}
}


MyPanel.ui.xml:
ui:UiBinder
CustomTree ui:field=tree /
/ui:UiBinder


MyPanel.java:
public class MyPanel extends Composite {
@UiField
CustomTree tree;

public MyPanel() {
initWidget(binder.createAndBindUi(this));
//...
}
}

-- 
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/-/KLwtm8XUaV8J.
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.



How to add optional parameters for ui-binder?

2013-01-03 Thread membersound
Hi,

when looking at eg VerticalPanel, I can provide optional parameters like width 
and height via ui-binder.

I only found @UiConstructor, but this would force the ui:binder to provide 
the parameters for the constructor annotated like this.
How can I create these kind of additional parameters for my own Composites?

-- 
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/-/KpPAPGsiFDAJ.
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: How to add optional parameters for ui-binder?

2013-01-03 Thread Thomas Broyer


On Thursday, January 3, 2013 1:56:13 PM UTC+1, membersound wrote:

 Hi,

 when looking at eg VerticalPanel, I can provide optional parameters like 
 width 
 and height via ui-binder.

 I only found @UiConstructor, but this would force the ui:binder to 
 provide the parameters for the constructor annotated like this.
 How can I create these kind of additional parameters for my own Composites
 ?


Any attribute will call the setter for the property of the same name. Is 
that what you're looking for?
See 
http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/UIObject.html
 

-- 
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/-/CXsLlNV4BNwJ.
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: How to add optional parameters for ui-binder?

2013-01-03 Thread membersound
Ok I see, so just by providing setter methods I can add optional params. 
Thanks, exactly what I was looking for.

-- 
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/-/L29OB77rcQ8J.
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: How to extend GWT Widgets and use them with Ui-Binder?

2013-01-03 Thread Andy Stevko
First step - need to add an import declaration for your CustomTree package

ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:my='urn:import:test.my.custom'

my:CustomTree .../



On Thu, Jan 3, 2013 at 4:18 AM, membersound kodyreco...@gmail.com wrote:

 I'm creating a custom Tree component which extends the GWT Tree.
 But how can I use my custom tree with ui:binder??

 I tried the following which did not work:

 my custom tree:
 public class CustomTree extends Tree {
 public CustomTree() {
 //...
 }
 }


 MyPanel.ui.xml:
 ui:UiBinder
 CustomTree ui:field=tree /
 /ui:UiBinder


 MyPanel.java:
 public class MyPanel extends Composite {
 @UiField
 CustomTree tree;

 public MyPanel() {
 initWidget(binder.createAndBindUi(this));
 //...
 }
 }

 --
 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/-/KLwtm8XUaV8J.
 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.




-- 
-- A. Stevko
===
If everything seems under control, you're just not going fast enough. M.
Andretti

-- 
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: Explain difference between using g:Image or a div (in UI Binder) when using GWT sprite ?

2012-07-04 Thread regnoult axel
Hello Thomas,

Please, you say this : 
If your 'sprite_MS' is already sprited, then *don't use* an ImageResource;
* use a *DataResource instead, and use either Image#setUrlAndVisibleRect()*or a 
normal CSS class (not @sprite)
* to display it. 

*#1*
- Can you explain the reason why I should use a DataResource when my image 
('sprite_MS') is sprited ? ... Because I found a solution that works 
perfectly with  ImageResource + @sprite.

*#2*
- Can you give an example with the *normal CSS class* (not @sprite) because 
I did not succeed to have the expected result that is to diplay a piece of 
the  sprite_MS image (DataResource in this case).

So I have this :
@Source(./common/sprites_MS.png)
@ImageOptions(preventInlining = true)
*DataResource* sprites_MS();

And I do not want to use this solution... :

  
 logo.setUrlAndVisibleRect(CR.COMMON_RES_INSTANCE.sprites_MS().getSafeUri(), 
0, 0, 154, 60); 

because I need to be able to change my sprites_MS.png and if so it will 
change all the coordinates of the elements and I prefers to modify their 
background-positions in just one file (a css file) rather than looking for 
each call of setUrlAndVisibleRect() in different files.)

#3 
Another question, not related to the previous ones but related to images, 
is that my website is a yahoo_movie-LIKE (www.mananaseguro.com). I will 
need to display a lot of images (all the week's posters). So what strategy 
should I use to load and display these images ? 

My current vision is :

- The layout of the image is a GRID (for example: column : 6 images, row : 
100)* = *so I could use a DATA GRID widget.

- The images dynamically change when the date change *=* so I could use 
the Image class, and concerning my future database of movies's poster 
images, I will store them in a directory (www.mananaseguro.com/img/poster) 
and dynamically refer to them by their URL.

Am I on the good way ?
I will use GAE, I do not know if it has some advantages for this case.
I will also use Objectify.
Maybe you have some hints that will be usefull when I will need to create 
this dynamic database managing the posters.
(I precise that I ask this question, because I do not know Objectify for 
the moment, neither Request Factory, neither the use of the Cell Widgets).

Thanks again for your help,
Best regards






-- 
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/-/tzVTMHRHiVwJ.
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.



Explain difference between using g:Image or a div (in UI Binder) when using GWT sprite ?

2012-06-13 Thread regnoult axel
Hello,

I have the css properties of the header's  top left element (the logo's 
place) which has a logo sprite in background :

*@sprite* .*topHeaderLeftAlign* {
gwt-image: sprites_MS;
width: 154px; 
height: 60px;
background-position: -1101px -973px; /* logo */
}

I have a different result when I use :

(method 1) g:Image ui:field=logo addStyleNames='{commonRes.commonCss.*
 topHeaderLeftAlign*}' /

or

 (method 2) div class='{commonRes.commonCss.*topHeaderLeftAlign*}' /


My problem occurs using* **method 1** *(*g:Image*) because I see an 
undesirable *gray border* around my logo. For example you can see theses 
borders in the footer's social icons of my website : 
http://127.0.0.1:/MananaSeguro.html?gwt.codesvr=127.0.0.1:9997#!inicio 
Moreover, I do not want to use *method 2* (div) because I need to add 
some handler for the mouse events (I do not know if it is possible in the 
worst case).

Could you give me the best solution to display my images using the sprite 
(correctly appearing, without the border) and having all the necessaries 
event listeners ?

Thanks you.





-- 
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/-/-Ub6KLB4_1IJ.
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: Explain difference between using g:Image or a div (in UI Binder) when using GWT sprite ?

2012-06-13 Thread Thomas Broyer
If your 'sprite_MS' is already sprited, then don't use an ImageResource; 
use a DataResource instead, and use either Image#setUrlAndVisibleRect() or 
a normal CSS class (not @sprite) to display it.

If you use an ImageResource with an Image widget, then use g:Image 
resource={sprites_MS}/ rather than a @sprite and addStyleNames= (of 
course, in this case, it would show you whole sprites_MS image, which is 
not what you want).

To handle mouse events, if you use a CSS background image (including a 
@sprite), you can use a Label or HTML widget.

The border you're seeing is probably due to the g:Image not having an image 
to show (no src= nor resource=) so it displays the broken image icon 
from the browser.

On Wednesday, June 13, 2012 10:39:00 AM UTC+2, regnoult axel wrote:

 Hello,

 I have the css properties of the header's  top left element (the logo's 
 place) which has a logo sprite in background :

 *@sprite* .*topHeaderLeftAlign* {
 gwt-image: sprites_MS;
 width: 154px; 
 height: 60px;
 background-position: -1101px -973px; /* logo */
 }

 I have a different result when I use :

 (method 1) g:Image ui:field=logo addStyleNames='{commonRes.commonCss.*
 topHeaderLeftAlign*}' /

 or

 (method 2) div class='{commonRes.commonCss.*topHeaderLeftAlign*}' /


 My problem occurs using* **method 1** *(*g:Image*) because I see an 
 undesirable *gray border* around my logo. For example you can see 
 theses borders in the footer's social icons of my website : 
 http://127.0.0.1:/MananaSeguro.html?gwt.codesvr=127.0.0.1:9997#!inicio
  
 Moreover, I do not want to use *method 2* (div) because I need to add 
 some handler for the mouse events (I do not know if it is possible in the 
 worst case).

 Could you give me the best solution to display my images using the sprite 
 (correctly appearing, without the border) and having all the necessaries 
 event listeners ?

 Thanks you.







-- 
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/-/CRFtKiYFdtwJ.
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: Explain difference between using g:Image or a div (in UI Binder) when using GWT sprite ?

2012-06-13 Thread regnoult axel


 Hello Tomas, 


I am trying this solution (but no image is displayed ) : 

//uibinder.xml
*g:Image* ui:field=eventoImg /

//view.java (in the constructor, just after widget = 
binder.createAndBindUi(this) ) :
eventoImg.*setUrlAndVisibleRect*(./common/sprites_MS.png, 0, 0, 64, 64); 

//css - (nothing for this method)

I am asking if the problem is that I do not know how to refer the path for 
*setUrlAndVisibleRect 
?
*(because I tried some wrong path and I do not have a PATH ERROR so I 
cannot debug the problem)
The absolute URL of this sprite image called sprites_MS.png is : 
client.resources.common.sprites_MS.png

Do you see the problem ?


-- 
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/-/FhN5855FoRQJ.
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: Explain difference between using g:Image or a div (in UI Binder) when using GWT sprite ?

2012-06-13 Thread regnoult axel
I forgott to precize that I used the DATA RESOURCE declaration : 
 

 * @Source(./common/sprites_MS.png)*
 * @ImageOptions(preventInlining = true)*
 * ImageResource sprites_MS();*


-- 
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/-/Xu3mExgnyZsJ.
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: how to specify the id to a span element with a ui:field using UI binder?

2012-03-20 Thread Thomas Broyer

On Monday, March 19, 2012 8:18:20 PM UTC+1, Stevko wrote:

 I am using span id=mySpanId  within my UI Binder ui.xml files 
 along with the debugId 
 I also use span ui:field=mySpan to identify dynamic elements 
 available to the associated View. 

 Adding both yields this error message -- Cannot declare id and 
 ui:field on the same element Element(:26) 
 Is there a way work around?


Yes, assign it from within your Java code using getElement().setId(...).
See http://code.google.com/p/google-web-toolkit/issues/detail?id=4176

You can also use the debugId instead.
See http://code.google.com/p/google-web-toolkit/issues/detail?id=4179
See 
also https://docs.google.com/Doc?docid=0AQcd-Zsy2T-YZG1mZG5jNl84Z3NkMmJuZHo 
which is an export from the Wave I linked to in comment #7 of the above 
issue.

-- 
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/-/bdhh6FVIuyMJ.
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.



how to specify the id to a span element with a ui:field using UI binder?

2012-03-19 Thread Stevko
I am using span id=mySpanId  within my UI Binder ui.xml files
along with the debugId
I also use span ui:field=mySpan to identify dynamic elements
available to the associated View.

Adding both yields this error message -- Cannot declare id and
ui:field on the same element Element(:26)
Is there a way work around?

-- 
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: how to specify the id to a span element with a ui:field using UI binder?

2012-03-19 Thread -sowdri-
Did you try styleName tag?? in case 'class' would do..

On Tuesday, March 20, 2012 12:48:20 AM UTC+5:30, Stevko wrote:

 I am using span id=mySpanId  within my UI Binder ui.xml files 
 along with the debugId 
 I also use span ui:field=mySpan to identify dynamic elements 
 available to the associated View. 

 Adding both yields this error message -- Cannot declare id and 
 ui:field on the same element Element(:26) 
 Is there a way work around?

-- 
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/-/dxSt779H_fEJ.
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.



Multiple UI Binder XML file for one Widget?

2012-02-14 Thread skippy
This is an interesting question.

I have a java widget that uses a UI binder xml file to define some
HTML Structure to the widget.

WE bind the to like this:

public class PortfolioFrozenDateFilterWidget extends TDCBComposite
{
@UiTemplate(PortfolioFrozenDateFilterWidget.ui.xml) interface Binder
extends
UiBinderWidget, PortfolioFrozenDateFilterWidget
{
}

Maybe I am just getting to old for this, but can I somehow have
multiple ui.xml file for the same widget. This way I could reuse the
java object with a different HTML structure.

Thanks

-- 
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: Multiple UI Binder XML file for one Widget?

2012-02-14 Thread Jens
Take a look at 
http://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideUiBinder.html#Apply_different_xml

-- J.

-- 
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/-/uvb757Bi19AJ.
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.



GWT designer does not autocomplete ui binder?

2012-01-19 Thread Elhanan
hi...

actually i have 2 issues, in my attempts to use GXT i swiched to GWT 
designer

however, after trying to use ui binder i saw i have no auto 
complete support , is this a bug? known bug? feature.

also i understand that the ui binder won't support GXT , but according to 
this: 
http://www.sencha.com/learn/ext-gwt-3-declarative-markup-with-uibinder/ some 
works is being done, but i don't get it.
does this mean GXT 2.5 official release can't be used AT ALL with ui 
binder? would i have to wait for GXT 3 to actually use it?

does Intelij have better support for GXT?

-- 
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/-/8f8xqQArrN4J.
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.



how to gwt value of radio button from ui binder

2011-09-01 Thread Sanjay Jain India
Lets say I have three radio buttons belonging to a group.   Upon some
event,
I would like to retrieve the value of the radio button selected in my
UiBInder class.

One possible approach, I guess, is to declare a ui:field for each of
the
radio buttons(like in the example below) and thus retrieve the
selected
value in the UiBInder class.

g:RadioButton ui:field=value1 value=value1
ui:name=rbnamevalue1/g:RadioButton
g:RadioButton ui:field=value2 value=value2
ui:name=rbnamevalue2/g:RadioButton
g:RadioButton ui:field=value3 value=value3
ui:name=rbnamevalue3/g:RadioButton

Is there any other way to achieve this without having to declare a
ui:filed
for each and every radio button of a group.

-- 
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: UI Binder Button Problem

2011-08-17 Thread walker1c
Hi Alex,

That would be a start.

Does the tag in your post work?  The Javadoc at
http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/CustomButton.html
shows upFace as a sub-node of the PushButton tag. If I'm reading the
UIBinder documentation correctly, upFace can only be an attribute of
the PushButton tag if the class has a method called setUpFace().

As a matter of fact this seems to be really a problem with UiBinder
and PushButton.  I've converted my button to @UiField(provided =
true), and I'm loading the images direct from URLs when I construct
the PushButton, and even then the button isn't rendered.

Thanks for the reply.

Chris


On Aug 16, 3:00 pm, Alex Dobjanschi alex.dobjans...@gmail.com wrote:
 What are you trying to do exactly? Setting the upFace of a PushButton?

 Then go with
 {{{
    g:PushButton ui:field=button
           upFace={img.button} /

 }}}

 (not sure highlight will work)

-- 
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: UI Binder Button Problem

2011-08-16 Thread Alex Dobjanschi
What are you trying to do exactly? Setting the upFace of a PushButton?

Then go with
{{{
   g:PushButton ui:field=button
  upFace={img.button} /
}}}

(not sure highlight will work)

-- 
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/-/lOs0rJa8_YcJ.
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.



UI Binder Button Problem

2011-08-15 Thread walker1c
Can anyone tell me what I'm doing wrong here?  g:Image gets an image
URL, but g:upFace just gets a text input field.

ButtonPanel.ui.xml
---
ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder
xmlns:g=urn:import:com.google.gwt.user.client.ui

ui:with field='img' type='test.client.Images'/

g:HTMLPanel ui:field='htmlPanel'
h3Button panel/h3
The image:
g:Image resource={img.saveButton} /
hr /
The button:
g:PushButton ui:field=button
g:upFace image={img.saveButton} /
/g:PushButton
/g:HTMLPanel
/ui:UiBinder

ButtonPanel.java

public class ButtonPanel extends Composite
{
interface MyUiBinder extends UiBinderWidget, ButtonPanel {}
private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);

@UiField PushButton button;

public ButtonPanel()
{
initWidget(uiBinder.createAndBindUi(this));
}
}

Resulting HTML (part)
---
h3Button panel/h3
The image:
img class=gwt-Image border=0 style=width: 20px; height: 20px;
background: url(data:image/
png;base64,iVBORw0KGgoNSUhEUgAAABQUCAYAAACNiR0NAAABCUlEQVR42mP4DwX79+//
X19fTxZevnw5zJj/DN+/f/9vZKr1X9dM4L9PGgNZ2MqT77+0nMj/+/fv/
2cAmQ4SmHmGgSIcXsLyPycv9T9DdFzI//h6BooNLJ7J8N/S1gC7gdb
+DP8NHbFjFQMIBqkh2kCQRlwuARnGwAChqWpgUhMJBsK8BcPI3hWTgxhIkpdhrgBhkAEwcZhhJHsZl4HI4mQbCDMUXYwiA91iGf4HZFHRQJBhFBkIikH0mEbHJMUy1bPe4DIwJS3uf3Ql5QbmTWL47+Rq8Z/
h/Pnz/5U1+f937yTfsP79DP9t/Tn/9/Z1/2cAFds9vW3/
RcT4UJIFKZiXnxNcuIJKfwBn9ylqL8bV6QBJRU5ErkJggg==) no-repeat 0px
0px src=http://127.0.0.1:/gwttest/clear.cache.gif;
onload=this.__gwtLastUnhandledEvent=load;
hr
The button:
div class=gwt-PushButton tabindex=0 role=button
input type=text tabindex=-1 style=opacity: 0; height: 1px;
width: 1px; z-index: -1; overflow: hidden; position: absolute;
/div

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



GWT generated UI Binder code says Field xxx has no corresponding field in template file

2011-07-01 Thread slowpoison
If I generate a new UI Binder, add a named field to the .xml template, in 
the .java file, the java compiler complains
Field xxx has no corresponding field in template file
The field is of-course defined in the .ui.xml template. Having said that, 
the code compiles fine. But, it's just annoying because my project shows 
errors and it makes it harder to navigate to real errors. Anybody else 
seeing the same issue? Resolution?

Here are the details of software installed on my Eclipse
  Google Web Toolkit SDK 2.3.0 2.3.0.r35v201105191506 
com.google.gwt.eclipse.sdkbundle.e35.feature.feature.group
  GWT Designer 2.3.2.r35x201106201114 
com.google.gdt.eclipse.designer.feature.feature.group
  WindowBuilder Core Documentation 1.0.0.r35x201106161114 
org.eclipse.wb.doc.user.feature.feature.group
  WindowBuilder Core UI 1.0.0.r35x201106161114 
org.eclipse.wb.core.ui.feature.feature.group
  Eclipse Platform 3.5.2 Eclipse Platform
  Google Plugin for Eclipse 3.5 2.3.2.r35v201106211634 
com.google.gdt.eclipse.suite.e35.feature.feature.group

-- 
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/-/ek8Z6fWnGYEJ.
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: GWT generated UI Binder code says Field xxx has no corresponding field in template file

2011-07-01 Thread slowpoison
On Friday, July 1, 2011 2:02:24 PM UTC-7, slowpoison wrote:

 If I generate a new UI Binder, add a named field to the .xml template, in 
 the .java file, the java compiler complains
 Field xxx has no corresponding field in template file


Too bad I was only concentrating on compiling. This problem resolved itself 
after I pressed F11 to build and run in hosted mode.

-- 
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/-/aJ89qJ3GwskJ.
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.



UI binder design mode error

2011-06-22 Thread srini malka
HI folks,

I created Test.ui.xml UI biner , when i open in design mode i am
getting  following error:
i am using eclips 3.6 and For GWT SDK  Plugin  
http://dl.google.com/eclipse/plugin/3.6
For GWT Designer  plug in   
http://dl.google.com/eclipse/inst/d2gwt/latest/3.6


ERROR:

GWT Designer encountered unexpected internal error.

This could be caused by a GWT Designer bug or by a misconfiguration
issue, conflict, partial update, etc.

java.lang.VerifyError: (class: com/google/gwt/core/client/Scheduler,
method: signature: ()V) Illegal constant pool index



Show stack trace.
Hide stack trace.

Stack trace:
java.lang.VerifyError: (class: com/google/gwt/core/client/Scheduler,
method: init signature: ()V) Illegal constant pool index
at
com.google.gwt.dom.client.StyleInjector.schedule(StyleInjector.java:
393)
at com.google.gwt.dom.client.StyleInjector.inject(StyleInjector.java:
386)
at com.google.gwt.dom.client.StyleInjector.inject(StyleInjector.java:
226)
at com.google.gwt.dom.client.StyleInjector.inject(StyleInjector.java:
212)
at
com.test.jpmc.client.TestDatabinder_TestDatabinderUiBinderImpl_designTime1308752509288_GenBundle_default_InlineClientBundleGenerator
$1.ensureInjected(TestDatabinder_TestDatabinderUiBinderImpl_designTime1308752509288_GenBundle_default_InlineClientBundleGenerator.java:
14)
at
com.test.jpmc.client.TestDatabinder_TestDatabinderUiBinderImpl_designTime1308752509288.createAndBindUi(TestDatabinder_TestDatabinderUiBinderImpl_designTime1308752509288.java:
34)
at
com.test.jpmc.client.TestDatabinder_TestDatabinderUiBinderImpl_designTime1308752509288.createAndBindUi(TestDatabinder_TestDatabinderUiBinderImpl_designTime1308752509288.java:
1)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.eclipse.wb.internal.core.utils.reflect.ReflectionUtils.invokeMethod(ReflectionUtils.java:
836)
at
com.google.gdt.eclipse.designer.uibinder.parser.UiBinderParser.parse0(UiBinderParser.java:
122)
at
com.google.gdt.eclipse.designer.uibinder.parser.UiBinderParser.access
$0(UiBinderParser.java:107)
at com.google.gdt.eclipse.designer.uibinder.parser.UiBinderParser
$1.run(UiBinderParser.java:94)
at
com.google.gdt.eclipse.designer.uibinder.parser.UiBinderContext.runDesignTime(UiBinderContext.java:
153)
at
com.google.gdt.eclipse.designer.uibinder.parser.UiBinderParser.parse(UiBinderParser.java:
91)
at
com.google.gdt.eclipse.designer.uibinder.editor.UiBinderDesignPage.parse(UiBinderDesignPage.java:
93)
at
org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.internal_refreshGEF(XmlDesignPage.java:
409)
at org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.access
$2(XmlDesignPage.java:401)
at org.eclipse.wb.internal.core.xml.editor.XmlDesignPage
$7$1.run(XmlDesignPage.java:375)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:
179)
at
org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:
150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4584)
at org.eclipse.wb.internal.core.xml.editor.XmlDesignPage
$7.run(XmlDesignPage.java:372)
at
org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:
464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:
372)
at
org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:
507)
at
org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.internal_refreshGEF_withProgress(XmlDesignPage.java:
393)
at
org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.internal_refreshGEF(XmlDesignPage.java:
346)
at
org.eclipse.wb.internal.core.xml.editor.UndoManager.refreshDesignerEditor(UndoManager.java:
229)
at
org.eclipse.wb.internal.core.xml.editor.UndoManager.activate(UndoManager.java:
85)
at
org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.setActive(XmlDesignPage.java:
165)
at
org.eclipse.wb.internal.core.xml.editor.AbstractXmlEditor.pageChange(AbstractXmlEditor.java:
328)
at org.eclipse.ui.part.MultiPageEditorPart
$2.widgetSelected(MultiPageEditorPart.java:290)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:
234)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
at 

Re: UI binder design mode error

2011-06-22 Thread Eric Clayberg
Looks like a JDK issue...

http://code.google.com/p/google-web-toolkit/issues/detail?id=4254

If you are using JDK 1.5, give it a try using JDK 1.6.

On Jun 22, 10:31 am, srini malka srini.j...@gmail.com wrote:
 HI folks,

 I created Test.ui.xml UI biner , when i open in design mode i am
 getting  following error:
 i am using eclips 3.6 and For GWT SDK  
 Plugin  http://dl.google.com/eclipse/plugin/3.6
 For GWT Designer  plug in  
 http://dl.google.com/eclipse/inst/d2gwt/latest/3.6

 ERROR:

 GWT Designer encountered unexpected internal error.

 This could be caused by a GWT Designer bug or by a misconfiguration
 issue, conflict, partial update, etc.

 java.lang.VerifyError: (class: com/google/gwt/core/client/Scheduler,
 method: signature: ()V) Illegal constant pool index

 Show stack trace.
 Hide stack trace.

 Stack trace:
 java.lang.VerifyError: (class: com/google/gwt/core/client/Scheduler,
 method: init signature: ()V) Illegal constant pool index
         at
 com.google.gwt.dom.client.StyleInjector.schedule(StyleInjector.java:
 393)
         at com.google.gwt.dom.client.StyleInjector.inject(StyleInjector.java:
 386)
         at com.google.gwt.dom.client.StyleInjector.inject(StyleInjector.java:
 226)
         at com.google.gwt.dom.client.StyleInjector.inject(StyleInjector.java:
 212)
         at
 com.test.jpmc.client.TestDatabinder_TestDatabinderUiBinderImpl_designTime13 
 08752509288_GenBundle_default_InlineClientBundleGenerator
 $1.ensureInjected(TestDatabinder_TestDatabinderUiBinderImpl_designTime13087 
 52509288_GenBundle_default_InlineClientBundleGenerator.java:
 14)
         at
 com.test.jpmc.client.TestDatabinder_TestDatabinderUiBinderImpl_designTime13 
 08752509288.createAndBindUi(TestDatabinder_TestDatabinderUiBinderImpl_desig 
 nTime1308752509288.java:
 34)
         at
 com.test.jpmc.client.TestDatabinder_TestDatabinderUiBinderImpl_designTime13 
 08752509288.createAndBindUi(TestDatabinder_TestDatabinderUiBinderImpl_desig 
 nTime1308752509288.java:
 1)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
 39)
         at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp 
 l.java:
 25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at
 org.eclipse.wb.internal.core.utils.reflect.ReflectionUtils.invokeMethod(Ref 
 lectionUtils.java:
 836)
         at
 com.google.gdt.eclipse.designer.uibinder.parser.UiBinderParser.parse0(UiBin 
 derParser.java:
 122)
         at
 com.google.gdt.eclipse.designer.uibinder.parser.UiBinderParser.access
 $0(UiBinderParser.java:107)
         at com.google.gdt.eclipse.designer.uibinder.parser.UiBinderParser
 $1.run(UiBinderParser.java:94)
         at
 com.google.gdt.eclipse.designer.uibinder.parser.UiBinderContext.runDesignTi 
 me(UiBinderContext.java:
 153)
         at
 com.google.gdt.eclipse.designer.uibinder.parser.UiBinderParser.parse(UiBind 
 erParser.java:
 91)
         at
 com.google.gdt.eclipse.designer.uibinder.editor.UiBinderDesignPage.parse(Ui 
 BinderDesignPage.java:
 93)
         at
 org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.internal_refreshGEF(X 
 mlDesignPage.java:
 409)
         at org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.access
 $2(XmlDesignPage.java:401)
         at org.eclipse.wb.internal.core.xml.editor.XmlDesignPage
 $7$1.run(XmlDesignPage.java:375)
         at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:
 179)
         at
 org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:
 150)
         at org.eclipse.swt.widgets.Display.syncExec(Display.java:4584)
         at org.eclipse.wb.internal.core.xml.editor.XmlDesignPage
 $7.run(XmlDesignPage.java:372)
         at
 org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.ja 
 va:
 464)
         at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:
 372)
         at
 org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.j 
 ava:
 507)
         at
 org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.internal_refreshGEF_w 
 ithProgress(XmlDesignPage.java:
 393)
         at
 org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.internal_refreshGEF(X 
 mlDesignPage.java:
 346)
         at
 org.eclipse.wb.internal.core.xml.editor.UndoManager.refreshDesignerEditor(U 
 ndoManager.java:
 229)
         at
 org.eclipse.wb.internal.core.xml.editor.UndoManager.activate(UndoManager.ja 
 va:
 85)
         at
 org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.setActive(XmlDesignPa 
 ge.java:
 165)
         at
 org.eclipse.wb.internal.core.xml.editor.AbstractXmlEditor.pageChange(Abstra 
 ctXmlEditor.java:
 328)
         at org.eclipse.ui.part.MultiPageEditorPart
 $2.widgetSelected(MultiPageEditorPart.java:290)
         at
 org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:
 234)
         at 

[gwt-contrib] [google-web-toolkit] r10110 committed - Rollback of r10107 due to broken ui binder templates...

2011-04-28 Thread codesite-noreply

Revision: 10110
Author:   rj...@google.com
Date: Thu Apr 28 13:42:59 2011
Log:  Rollback of r10107 due to broken ui binder templates

Was

Add ability to include SafeHtml objects in dom based UI's if the lazy
widget option is being used (this is the only way that the setters
will work correctly).

Adds missing integration test for @UiChild, covering bug exposed by
the first shot at this change. Tidies the UiBinder test suites in the
process.

Also fixes some warnings in UiBinderWriter.

Restores r10100 (rolled back in r10103)

http://code.google.com/p/google-web-toolkit/source/detail?r=10110

Added:
 /trunk/user/test/com/google/gwt/uibinder/UiBinderGwtSuite.java
  
/trunk/user/test/com/google/gwt/uibinder/test/client/TestParameterizedWidgets.java

Deleted:
 /trunk/user/test/com/google/gwt/uibinder/LazyWidgetBuilderSuite.java
 /trunk/user/test/com/google/gwt/uibinder/UiBinderSuite.java
  
/trunk/user/test/com/google/gwt/uibinder/test/LazyWidgetBuilderSuite.gwt.xml

 /trunk/user/test/com/google/gwt/uibinder/test/UiBinderSuite.gwt.xml
  
/trunk/user/test/com/google/gwt/uibinder/test/client/ParameterizedWidgetsTest.java
  
/trunk/user/test/com/google/gwt/uibinder/test/client/SafeHtmlAsComponentsTest.Ui.ui.xml
  
/trunk/user/test/com/google/gwt/uibinder/test/client/SafeHtmlAsComponentsTest.java

 /trunk/user/test/com/google/gwt/uibinder/test/client/SafeHtmlObject.java
 /trunk/user/test/com/google/gwt/uibinder/test/client/UiChildTest.Ui.ui.xml
 /trunk/user/test/com/google/gwt/uibinder/test/client/UiChildTest.java
Modified:
 /trunk/user/src/com/google/gwt/uibinder/elementparsers/HtmlInterpreter.java
 /trunk/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java
 /trunk/user/test/com/google/gwt/uibinder/All.java
 /trunk/user/test/com/google/gwt/uibinder/client/UiBinderUtilTest.java
  
/trunk/user/test/com/google/gwt/uibinder/elementparsers/AbsolutePanelParserTest.java

 /trunk/user/test/com/google/gwt/uibinder/test/UiBinderTestApp.gwt.xml
 /trunk/user/test/com/google/gwt/uibinder/test/UiJavaResources.java
 /trunk/user/test/com/google/gwt/uibinder/test/client/Abstract.java
 /trunk/user/test/com/google/gwt/uibinder/test/client/InnerWidgetTest.java
  
/trunk/user/test/com/google/gwt/uibinder/test/client/ParameterizedWidget.java

 /trunk/user/test/com/google/gwt/uibinder/test/client/UiBinderTest.java

===
--- /dev/null
+++ /trunk/user/test/com/google/gwt/uibinder/UiBinderGwtSuite.java	Thu Apr  
28 13:42:59 2011

@@ -0,0 +1,44 @@
+/*
+ * Copyright 2009 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the License); you may  
not
+ * use this file except in compliance with the License. You may obtain a  
copy of

+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,  
WITHOUT

+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations  
under

+ * the License.
+ */
+package com.google.gwt.uibinder;
+
+import com.google.gwt.junit.tools.GWTTestSuite;
+import com.google.gwt.uibinder.client.UiBinderUtilTest;
+import com.google.gwt.uibinder.test.client.InnerWidgetTest;
+import com.google.gwt.uibinder.test.client.TestParameterizedWidgets;
+import com.google.gwt.uibinder.test.client.UiBinderTest;
+
+import junit.framework.Test;
+
+/**
+ * Test suite for UiBinder GWTTestCases.
+ */
+public class UiBinderGwtSuite {
+  public static Test suite() {
+GWTTestSuite suite = new GWTTestSuite(
+Test suite for UiBinder GWTTestCases);
+
+suite.addTestSuite(UiBinderTest.class);
+suite.addTestSuite(UiBinderUtilTest.class);
+suite.addTestSuite(TestParameterizedWidgets.class);
+suite.addTestSuite(InnerWidgetTest.class);
+
+return suite;
+  }
+
+  private UiBinderGwtSuite() {
+  }
+}
===
--- /dev/null
+++  
/trunk/user/test/com/google/gwt/uibinder/test/client/TestParameterizedWidgets.java	 
Thu Apr 28 13:42:59 2011

@@ -0,0 +1,33 @@
+/*
+ * Copyright 2009 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the License); you may  
not
+ * use this file except in compliance with the License. You may obtain a  
copy of

+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,  
WITHOUT

+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations  
under

+ * the License.
+ */
+package com.google.gwt.uibinder.test.client;
+
+import com.google.gwt.junit.client.GWTTestCase;
+
+/**
+ * Test that {@literal @}UiFactory and parameterized return types get  
along.

+ */
+public class TestParameterizedWidgets

Re: UI Binder Alignment problems

2011-02-18 Thread pete
I had the same problem just a while ago, even though I had it with
g:VerticalPanel horizontalAlignment=ALIGN_CENTER

The reason in my case at least was, that UiBinder first adds the
children, then sets the attribute horizontalAlignment, but
horizontalAlignment is only taken into account for widgets added after
the property is set, so it has no effect on widgets added in the
template.

This is actually fixed in GWT 2.1.1., because I had version 2.1.0.
running and updated for that. Afterwards it worked as expected... Hope
that helps, since I haven't tried it with g:cell ... and I don't
know if the problems are related...


On Feb 17, 8:58 pm, Philippe Beaudoin philippe.beaud...@gmail.com
wrote:
 I've had tons of problem using Vertical and HorizontalPanel to align
 correctly. In my most recent project I followed the advice from GWT
 documentation and moved away from them. Now I do everything with FlowPanel
 (or HTMLPanel) and careful use of floats. It has made my life much easier. I
 don't know if you can give that approach a spin in the current context?

 Cheers,

    Philippe

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



UI Binder Alignment problems

2011-02-17 Thread skippy
I have the following UI Binder XML:
g:ScrollPanel ui:field='outerPanel' 
g:VerticalPanel
g:Cell verticalAlignment=ALIGN_TOP
g:HorizontalPanel ui:field='topPanel'
g:cell width=30%
horizontalAlignment=ALIGN_LEFT // not working and does not show
g:SimplePanel ui:field='logoPanel' /
g:SimplePanel
/g:cell
g:cell width=70%
horizontalAlignment=ALIGN_RIGHT // this looks center
g:FlexTable ui:field='bannerArea' /
/g:cell
/g:HorizontalPanel
/g:Cell
g:Cell horizontalAlignment=ALIGN_CENTER
   g:SimplePanel ui:field='bodyPanel'/
/g:Cell
g:Cell verticalAlignment=ALIGN_BOTTOM  // not working
g:HTML ui:field=footer/
/g:Cell
   /g:VerticalPanel
   /g:ScrollPanel

-- 
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: UI Binder Alignment problems

2011-02-17 Thread skippy
One follow up.

I am using GWT 2.0.4 with the eclipse 3.5 and the plug-in

On Feb 17, 9:34 am, skippy al.leh...@fisglobal.com wrote:
 I have the following UI Binder XML:
 g:ScrollPanel ui:field='outerPanel' 
         g:VerticalPanel
             g:Cell verticalAlignment=ALIGN_TOP
                 g:HorizontalPanel ui:field='topPanel'
                     g:cell width=30%
 horizontalAlignment=ALIGN_LEFT // not working and does not show
                         g:SimplePanel ui:field='logoPanel' /
 g:SimplePanel
                     /g:cell
                     g:cell width=70%
 horizontalAlignment=ALIGN_RIGHT     // this looks center
                             g:FlexTable ui:field='bannerArea' /
                     /g:cell
                     /g:HorizontalPanel
             /g:Cell
             g:Cell horizontalAlignment=ALIGN_CENTER
                    g:SimplePanel ui:field='bodyPanel'/
             /g:Cell
             g:Cell verticalAlignment=ALIGN_BOTTOM  // not working
                 g:HTML ui:field=footer/
             /g:Cell
        /g:VerticalPanel
    /g:ScrollPanel

-- 
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: UI Binder Alignment problems

2011-02-17 Thread Philippe Beaudoin
I've had tons of problem using Vertical and HorizontalPanel to align 
correctly. In my most recent project I followed the advice from GWT 
documentation and moved away from them. Now I do everything with FlowPanel 
(or HTMLPanel) and careful use of floats. It has made my life much easier. I 
don't know if you can give that approach a spin in the current context?

Cheers,

   Philippe

-- 
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: UI Binder File Not Loaded During Runtime

2011-02-16 Thread Nick Apperley
As it turns out a line was missing in the LoginPage's constructor for
properly initializing itself which is required for UIBinder. This
would explain why an instance of LoginPage couldn't be added to
RootLayoutPanel.

initWidget(uiBinder.createAndBindUi(this));



On Feb 16, 10:30 am, Nick Apperley napper...@gmail.com wrote:
 Something is not being initialized properly (most likely the
 Composite). Shouldn't the server take care of this?

 On Feb 16, 10:23 am, Nick Apperley napper...@gmail.com wrote:

  Based on the exception the problem occurs when the login page (a
  Composite) is being added to the RootLayoutPanel.

-- 
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: UI Binder File Not Loaded During Runtime

2011-02-15 Thread Nick Apperley
Interestingly enough if I adjust the code to only attach a Label to
RootLayoutPanel in the onModuleLoad method no compilation is done, and
nothing is displayed on the web page. This is weird since a minor
change has been made to the code, even if nothing was displayed
Firefox should freeze to indicate that compilation is currently being
done. No error messages are being displayed in Eclipse's Console
window, absolutely nothing to go by.


On Feb 15, 10:51 am, Jeff Larsen larse...@gmail.com wrote:
 Pop open firebug and start drilling down into the DOM and see if you can
 find your code in there. I.e. any of your labels, widgets, panels. If they
 aren't there, then maybe an error is being caught somewhere and not thrown,
 if they are there but not visible, start mucking around with CSS properties
 to see if you've attached stuff correctly.

 Note, if you're using layout panels, you're best case scenario is to use
 layoutpanels from rootpanel all the way through to your top level panels.

 doing something like
 FlowPanel panel = new FlowPanel();
 DockLayoutPanel dockPanel = new DockLayoutPanel();
 //do stuff with docklayoutpanel
 RootLayoutPanel.get().add(panel);

 this will cause nothing to be displayed.

If it is done outside of the onModuleLoad method of an EntryPoint.

-- 
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: UI Binder File Not Loaded During Runtime

2011-02-15 Thread Jeff Larsen
Are you working in offline mode? That happened to me earlier today. 

-- 
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: UI Binder File Not Loaded During Runtime

2011-02-15 Thread Nick Apperley
Not in offline mode. Anyway I have recreated the project as a new Web
Application (the Google one) project in Eclipse. Compilation works
normally but now I have an exception appearing in development mode,
which didn't occur previously with the old project type (GWT Java).


---
10:11:55.193 [ERROR] [autohome_automator] Unable to load module entry
point class com.darc.autohome.automatortool.client.AutohomeAutomator
(see associated exception for details)

java.lang.AssertionError: This UIObject's element is not set; you may
be missing a call to either Composite.initWidget() or
UIObject.setElement()
at com.google.gwt.user.client.ui.UIObject.getElement(UIObject.java:
528)
at
com.google.gwt.user.client.ui.ComplexPanel.add(ComplexPanel.java:94)
at
com.google.gwt.user.client.ui.AbsolutePanel.add(AbsolutePanel.java:97)
at
com.darc.autohome.automatortool.client.Controller.showLoginPage(Controller.java:
28)
at
com.darc.autohome.automatortool.client.AutohomeAutomator.onModuleLoad(AutohomeAutomator.java:
17)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
396)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
183)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
510)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)
at java.lang.Thread.run(Thread.java:619)
---

-- 
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: UI Binder File Not Loaded During Runtime

2011-02-15 Thread Nick Apperley
Based on the exception the problem occurs when the login page (a
Composite) is being added to the RootLayoutPanel.


On Feb 16, 10:17 am, Nick Apperley napper...@gmail.com wrote:
 Not in offline mode. Anyway I have recreated the project as a new Web
 Application (the Google one) project in Eclipse. Compilation works
 normally but now I have an exception appearing in development mode,
 which didn't occur previously with the old project type (GWT Java).

 ---
 10:11:55.193 [ERROR] [autohome_automator] Unable to load module entry
 point class com.darc.autohome.automatortool.client.AutohomeAutomator
 (see associated exception for details)

 java.lang.AssertionError: This UIObject's element is not set; you may
 be missing a call to either Composite.initWidget() or
 UIObject.setElement()
     at com.google.gwt.user.client.ui.UIObject.getElement(UIObject.java:
 528)
     at
 com.google.gwt.user.client.ui.ComplexPanel.add(ComplexPanel.java:94)
     at
 com.google.gwt.user.client.ui.AbsolutePanel.add(AbsolutePanel.java:97)
     at
 com.darc.autohome.automatortool.client.Controller.showLoginPage(Controller.java:
 28)
     at
 com.darc.autohome.automatortool.client.AutohomeAutomator.onModuleLoad(AutohomeAutomator.java:
 17)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
 39)
     at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
 25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
 396)
     at
 com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
 183)
     at
 com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
 510)
     at
 com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
 352)
     at java.lang.Thread.run(Thread.java:619)
 ---

-- 
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: UI Binder File Not Loaded During Runtime

2011-02-15 Thread Nick Apperley
Something is not being initialized properly (most likely the
Composite). Shouldn't the server take care of this?


On Feb 16, 10:23 am, Nick Apperley napper...@gmail.com wrote:
 Based on the exception the problem occurs when the login page (a
 Composite) is being added to the RootLayoutPanel.


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



UI Binder File Not Loaded During Runtime

2011-02-14 Thread Nick Apperley
Whenever I run the application nothing is displayed on the main page
(using the development server). The only thing that is displayed is
the page's title. Everything has been checked including adding a
widget to the Root Panel when the module is loaded. Is there anything
else that is worth checking?

-- 
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: UI Binder File Not Loaded During Runtime

2011-02-14 Thread Jeff Larsen
Are you using layout panels? If so, have you set the doctype to standards 
mode? Also, if you are using layout panels, you need to attach them to 
RootLayoutPanel, not RootPanel. 

Another thing to check is to see if the widgets are attached to the DOM with 
something like firebug. 

-- 
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: UI Binder File Not Loaded During Runtime

2011-02-14 Thread Nick Apperley
Doc type is set to standards mode and I have switched from RootPanel
to RootLayoutPanel, but it has not changed anything with displaying
the main page. There doesn't appear to be anything in the DOM related
to the application. What should I specifically look for with GWT in
the DOM?


On Feb 15, 10:15 am, Jeff Larsen larse...@gmail.com wrote:
 Are you using layout panels? If so, have you set the doctype to standards
 mode? Also, if you are using layout panels, you need to attach them to
 RootLayoutPanel, not RootPanel.

 Another thing to check is to see if the widgets are attached to the DOM with
 something like firebug.

-- 
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: UI Binder File Not Loaded During Runtime

2011-02-14 Thread Jeff Larsen
Pop open firebug and start drilling down into the DOM and see if you can 
find your code in there. I.e. any of your labels, widgets, panels. If they 
aren't there, then maybe an error is being caught somewhere and not thrown, 
if they are there but not visible, start mucking around with CSS properties 
to see if you've attached stuff correctly. 

Note, if you're using layout panels, you're best case scenario is to use 
layoutpanels from rootpanel all the way through to your top level panels. 

doing something like 
FlowPanel panel = new FlowPanel();
DockLayoutPanel dockPanel = new DockLayoutPanel();
//do stuff with docklayoutpanel
RootLayoutPanel.get().add(panel);

this will cause nothing to be displayed. 

For more information, 
http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html



-- 
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: UI Binder File Not Loaded During Runtime

2011-02-14 Thread Nick Apperley
After looking at a similar application that does something very
similar (in code) it displays the main page just fine. In the
corresponding DOM the are 3 defined GWT variables (__gwt_SessionID,
__gwt_scriptsLoaded, __gwt_stylesLoaded). With the problematic
application it doesn't have the defined GWT variables, and it does not
compile (no compile error messages appear in Eclipse's Console
window). Hence Firefox doesn't freeze when the application is loaded
the first time.



On Feb 15, 10:51 am, Jeff Larsen larse...@gmail.com wrote:
 Pop open firebug and start drilling down into the DOM and see if you can
 find your code in there. I.e. any of your labels, widgets, panels. If they
 aren't there, then maybe an error is being caught somewhere and not thrown,
 if they are there but not visible, start mucking around with CSS properties
 to see if you've attached stuff correctly.

 Note, if you're using layout panels, you're best case scenario is to use
 layoutpanels from rootpanel all the way through to your top level panels.

 doing something like
 FlowPanel panel = new FlowPanel();
 DockLayoutPanel dockPanel = new DockLayoutPanel();
 //do stuff with docklayoutpanel
 RootLayoutPanel.get().add(panel);

 this will cause nothing to be displayed.

 For more 
 information,http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html

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



setting debugId on nested menu item (UI Binder)

2011-02-07 Thread x-fission
Is there a way to set a debugId (for selenium testing) on a nested
menu item in UI binder? I have a setup similar to a typical menubar
such as:

g:MenuBar ui:field=topMenu
g:MenuItem ui:field=file
 bFile/b
 g:MenuBar
  g:MenuItem ui:field=saveSave/g:MenuItem
   g:MenuItem ui:field=printPrint/g:MenuItem
...(closing tags for everything)

If I set a debugId on all menuItems, only the top level menu item is
visible, and the rest are just indexed items (i.e. gwt-debug-file  for
the top level, and gwt-debug-file-item0 is save, gwt-debug-file-item1
is print, etc.). There is a way to set this up in the Java code using
a base id:

 ensureDebugId(file, file);
ensureDebugId(save, file, save) (file is the baseId argument)

this produces debugId's: gwt-debug-file, and gwt-debug-file-save. Cant
this baseId be set from UI binder?

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



Extending UI Binder

2010-12-06 Thread Abdullah Shaikh
Hi All,


I want to have my own custom xml file definition for defining UI, like
ui.xml, any idea on how to extend UI Binder for this ?

Also is it possible to generated the java script code at runtime, for
the requested screen instead of doing this at compile time ?

The idea is, for example there is a screen Screen1 and a initial place
holder screen (main screen), maybe a DockPanel or any container, when
the user request for Screen1, the server checks if the Screen1 is
already compiled (converted to javascript), if not, converted it to
javascript using the GWT complier, and return the javascript back to
the client, so that it can render this screen inside the container
(main screen).

This is like traditional web application, but here instead of
returning html, javascript will be returned.

I am doing all this, bcoz we have an ERP system, which has all the
screens defined in xml files, I want to integrated GWT with it, so
that the user can define the gwt ui, using the same xml files.


Any links of extending UI binder or how the GWT compiler works will be helpful ?

Thanks,
Abdullah

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



GWT 2 UI Binder Flex, Flash widgets

2010-10-15 Thread caustic
Hi there
I have successfully used Flex integration into my GWT 2.0.4
application with this tutorial:
http://lgrammel.blogspot.com/2010_02_01_archive.html
I have now moved my interface using GWT-platform but the demos are
using UIBinder.
Is there any code examples or library projects that are updated to
successfully integrate Flex widgets into the UIBinder. I also want to
communicate with the Flex SWF with some parameters.
I am looking forward to GWT 2.1 as well.
Thanks

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



Custom Widget ui Binder and a constructor that takes other widgets

2010-09-23 Thread dparish
I've got a custom widget (code below) that takes in two widget's as a
constructor.  I'd like to use this widget in UI Binder.  I can see
from the docs (http://code.google.com/webtoolkit/doc/latest/
DevGuideUiBinder.html#Using_a_widget) that it's pretty easy to do this
if the constructor is a set of strings, but how would I do this if I
want the constructor args to be Widget.  I'm sure this isn't right,
but I'm looking for something like this:

  my:FocusChangeWidget ui:field='nameField'
  g:LabelDoctor Suess/g:Label
  g:TextBox ui:field=nameInputField/
  /my:FocusChangeWidget

Here's the code so you can see what I'm referring to:

public class FocusChangeWidget extends Composite {

private FocusPanel container = new FocusPanel(); // the container for
the custom widget
Widget displayWidget; // the main display widget and what we display
first
Widget changeWidget; // what we display when we get focus

public FocusChangeWidget (Widget displayWidget, Widget changeWidget)
{
this.displayWidget = displayWidget;
this.changeWidget = changeWidget;
container.add(displayWidget);
initWidget(container);
container.addFocusHandler(new FocusChangedHandler());
}


private class FocusChangedHandler implements FocusHandler {

@Override
public void onFocus(FocusEvent event) {
container.clear();
container.add(changeWidget);
}

}
}

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



Using UI Binder

2010-08-13 Thread $ a r j i t h Pullithodi
HI All,


   I am a beginner in GWT, I was trying to develop an application through UI
Binder way. but it found really difficult to integrate designers (html) code
to gwt widgets. is it possible to use g:widgets inside html tag and vice
versa?. I can't use complete html as ui binder xml since its owner class
will be an UIObjects instance instead of a widget instance.

Any suggessions?? or any site for reference ??

--
Thanks and Regards
Sarjith

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



Navigate trough Widgets declared at Ui Binder

2010-07-16 Thread Thiago Miranda de Oliveira
Hi all..

Well I have a problem here and I really don't know how to do it, and
if you guys could help..

I'm building an app and the developer should be able to build the app
xml like this:

 lqd:MainPanel
lqd:Projects contentId=project/
lqd:ProjectPreview contentId=edit/
lqd:Ftp contentId=ftp/
lqd:Report contentId=report/
lqd:Account contentId=account/
lqd:Account contentId=my-account/
  /lqd:MainPanel

Each one of these childs is 1 action of the application ( just one
would be showed at a time) and the Main Panel should be able to
control that.

I've build the MainPanel like this: http://www.copypastecode.com/32793/
( password: 789 )

So the problem is that when I navigate through the childs, they loose
their handlers ( like a button click). BUT if I refresh at a child it
will retain the handlers. E.g: I'm at the Projects so its events are
working but when I go to the projectpreview they don't. But if I
refresh the browser at the ProjectPreview its events will work but
when I go to the Projects, its events dont work.

Does anyone have a better idea?

Thanks for the attention.

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



UI binder and custom classes

2010-05-14 Thread mic
I wanted to ping community members to see how UI binder is used to
handle adding widgets to a flex table, for example.

g:FlexTable
 g:CheckBox ui:field='test'/
/g:FlexTable

This doesn't cut it, given that flex table has row, column, I want to
be able to specify that.

One option is to extends all widgets to be included in a flex table
and specify the position


my:FlexTable
 my:CheckBox ui:field='test' row='1' column='2'/
/my:FlexTable

Are there any better ways to do this?

Thanks,

mic

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



UI Binder and gwt-validation

2010-04-27 Thread John Ivens
Does anyone have these two (UI Binder and gwt-validation) working together?
Whenever I make a class that has an equivalent ui.xml file (and which
extends Composite, but this may not matter) implement IValidatable, I get an
error saying that GWT.create() can only be run on the client side.  All of
my code is on the client side, so I should not be getting this error... any
ideas?

What do people use for validation if not gwt-validation?

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



UI Binder and MVP

2010-03-24 Thread skippy
I am using the UI Binder to build a site.
I like the MVP design pattern shown in the contacts example.

However, when I try to put the ui binder in a view and have the
appControler construct the presenter I get a blank page when ask for
asWidget.

I think this is because both the MCP entry point and the UI Binder
creates a RootPanel.

An thoughts on this topic?

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



Re: UI Binder and MVP

2010-03-24 Thread jocke eriksson
RootPanel is a singleton so that should not be the case. Could you share
some code thats shows how the view is created and attached to the RootPanel.

2010/3/24 skippy a...@2lehmans.com

 I am using the UI Binder to build a site.
 I like the MVP design pattern shown in the contacts example.

 However, when I try to put the ui binder in a view and have the
 appControler construct the presenter I get a blank page when ask for
 asWidget.

 I think this is because both the MCP entry point and the UI Binder
 creates a RootPanel.

 An thoughts on this topic?

 --
 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



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



Re: UI Binder and MVP

2010-03-24 Thread davidroe
the examples of the mvp4g project seem to mix MVP and UiBinder well.

http://code.google.com/p/mvp4g/

On Mar 24, 10:57 am, skippy a...@2lehmans.com wrote:
 I am using the UI Binder to build a site.
 I like the MVP design pattern shown in the contacts example.

 However, when I try to put the ui binder in a view and have the
 appControler construct the presenter I get a blank page when ask for
 asWidget.

 I think this is because both the MCP entry point and the UI Binder
 creates a RootPanel.

 An thoughts on this topic?

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



Re: UI Binder bugs - maybe config issue on my side(?)

2010-03-18 Thread Kenyth
This doesn't work for me.

My project has the file layout below:
1. java source path: src/main/java
2. package layout:
- aaa.projectname
- aaa.projectname.modulename
-- contains modulename.gwt.xml
- aaa.projectname.modulename.client
-- contains *.java and *.ui.xml
3. war directory, as default, is war/

I use springsource STS 2.3.0 based on Eclipse 3.5.1, Google Plugin for
Eclipse 3.5 1.3.0.v201003161223, Google App Engine Java SDK 1.3.1
1.3.1.v201002101412, Google Web Toolkit SDK 2.0.3   2.0.3.v201002191036,
and m2eclilpse 0.9.8. My project uses m2eclipse (or maven2) to manage
the dependencies.

I tried all the workarounds mentioned above but in vain. However,
following Google Web application wizard provided by GEP, thus having a
standard project file layout, works perfectly. Currently in my case I
have to disable the @uifield errors/warning report in the preference
dialog.

Any GWT team guys please check on this. Thanks a lot.

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



Re: Extending UI-Binder

2010-03-11 Thread Gal Dolber
It should be... I have seen the custom parsers on the gwt source, but I
didn't see if is there any extension system to declare one of your own.

You can still do this:

g:HorizontalPanel
g:HTML
  SVG
rect ... /
circle ... /
  /SVG
/g:HTML
/g:HorizontalPanel

2010/3/11 Jan Ehrhardt jan.ehrha...@googlemail.com

 Hi,

 I would like to extend the UI-Binder to handle custom types. In my case
 these are SVG DOM elements. I would like to do something like:

 g:HorizontalPanel
   SVG
 rect ... /
 circle ... /
   /SVG
 /g:HorizontalPanel

 In the above example, SVG is a subclass of Widget, that wraps the svgweb
 library (http://code.google.com/p/svgweb/). The 'rect' and 'circle' tags
 should be handled as subclasses  of Element, like 'div' tags in the
 HTMLPanel. Of cause, I want to bind a RectElement object in my Java class to
 the 'rect' tag in my ui.xml file.

 I know, that UI-Binder uses deferred binding by parsing the XML and
 generating an implementation of UIBinder interface for compiling, but how
 can I extend this by my own handler for doing the above stuff?

 Regards
 Jan Ehrhardt

 --
 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


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



Re: Extending UI-Binder

2010-03-11 Thread Chris Lercher
Well, you can import any package, and bind it to a namespace prefix as
explained here:

http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#Hello_Widget_World

I imagine, that it would also be possible to have an addRect(),
addCircle() method etc in your SVG class (or maybe some wrapper of
that class, if you can't modify it), and use that in UiBinder, but I'm
not 100% sure if simply declaring these methods is enough. You should
certainly try it, and report back, if this works!

Chris


On Mar 11, 8:08 am, Jan Ehrhardt jan.ehrha...@googlemail.com wrote:
 Hi,

 I would like to extend the UI-Binder to handle custom types. In my case
 these are SVG DOM elements. I would like to do something like:

 g:HorizontalPanel
   SVG
     rect ... /
     circle ... /
   /SVG
 /g:HorizontalPanel

 In the above example, SVG is a subclass of Widget, that wraps the svgweb
 library (http://code.google.com/p/svgweb/). The 'rect' and 'circle' tags
 should be handled as subclasses  of Element, like 'div' tags in the
 HTMLPanel. Of cause, I want to bind a RectElement object in my Java class to
 the 'rect' tag in my ui.xml file.

 I know, that UI-Binder uses deferred binding by parsing the XML and
 generating an implementation of UIBinder interface for compiling, but how
 can I extend this by my own handler for doing the above stuff?

 Regards
 Jan Ehrhardt

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



Extending UI-Binder

2010-03-10 Thread Jan Ehrhardt
Hi,

I would like to extend the UI-Binder to handle custom types. In my case
these are SVG DOM elements. I would like to do something like:

g:HorizontalPanel
  SVG
rect ... /
circle ... /
  /SVG
/g:HorizontalPanel

In the above example, SVG is a subclass of Widget, that wraps the svgweb
library (http://code.google.com/p/svgweb/). The 'rect' and 'circle' tags
should be handled as subclasses  of Element, like 'div' tags in the
HTMLPanel. Of cause, I want to bind a RectElement object in my Java class to
the 'rect' tag in my ui.xml file.

I know, that UI-Binder uses deferred binding by parsing the XML and
generating an implementation of UIBinder interface for compiling, but how
can I extend this by my own handler for doing the above stuff?

Regards
Jan Ehrhardt

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



TabPanel depreciated when using UI Binder

2010-02-19 Thread Paul Stockley
When I use a TabPanel with UI Binder it says that it is depreciated in
favor of the new TabLayoutPanel. The problem is that I am using a
TabPanel within a DialogBox. From what I understand TabLayoutPanel
will not work in this case. So either I am mistaken and I can use
TabLayoutPanel or they have depreciated a component for which there is
no substitute!

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



Re: UI Binder bugs - maybe config issue on my side(?)

2010-01-28 Thread erha
Have the same problem here...
But it happen suddenly, I believe there is a problem with the eclipse
plug in.

What I did to solve this problem is to copy the old .metadata folder
in the eclipse workspace folder.
And viola..., everything is working again...

Hope this info help.

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



Re: GWT 2.0 UI BINDER MVP

2010-01-27 Thread Dalla
If someone is interested, I solved this by injecting my child view
both into their respective presenters, aswell as into the parent view,
like so:


CouponWidget couponWidget = new CouponWidget();
GameStatsWidget gameStatsWidget = new GameStatsWidget();
CouponPresenter coupon = new CouponPresenter(rpcService,
eventBus, couponWidget);
GameStatsPresenter gameStats = new GameStatsPresenter
(rpcService, eventBus, gameStatsWidget);
presenter = new MainPresenter(rpcService, eventBus, coupon,
gameStats, new MainPanel(couponWidget,gameStatsWidget));

Coupon and Gamestats are child widgets here, they are injected into
their presenters as usual.
MainPresenter is the presenter responsible for the parent view,
MainPanel.

Beside this, I pretty much used code similar to the one suggested by
jarrod above.


On 26 Jan, 16:46, Dalla dalla_man...@hotmail.com wrote:
 To clarify what I´m looking for, let´s assume that I´m working with
 GooglesMVPContacts example.

 Instead of having EditContactView and ContactsView as completly
 separate views, I want to add them to a DockLayoutPanel,
 showing both views at the same time.
 Let´s assume that I want to put the ContactsView in the center panel,
 and the EditContactView in the south panel.

 I guess I would do this by creating a third view, called e.g. MainView
 (and MainPresenter),
 and then putting my existing views in this third view? But I´m still
 confused as to how I would set this up,
 or if creating a third view would even be the correct approach.

 Please advice :-)

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



Re: GWT 2.0 UI BINDER MVP

2010-01-26 Thread Stine Søndergaard
That is the question I felt like asking as well, Dalla.

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



Re: GWT 2.0 UI BINDER MVP

2010-01-26 Thread Dalla
To clarify what I´m looking for, let´s assume that I´m working with
Googles MVP Contacts example.

Instead of having EditContactView and ContactsView as completly
separate views, I want to add them to a DockLayoutPanel,
showing both views at the same time.
Let´s assume that I want to put the ContactsView in the center panel,
and the EditContactView in the south panel.

I guess I would do this by creating a third view, called e.g. MainView
(and MainPresenter),
and then putting my existing views in this third view? But I´m still
confused as to how I would set this up,
or if creating a third view would even be the correct approach.

Please advice :-)

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



  1   2   >