Re: CSP issues with UiBinder

2024-08-01 Thread Craig Mitchell
Apologies.  Didn't realise CSP isn't enabled in browsers by default.

On Friday 2 August 2024 at 11:26:55 am UTC+10 Craig Mitchell wrote:

> What am I missing here.  I use CssResource and don't have "style-src 
> unsafe-inline" anywhere, and it all works fine.
>
> Ie:
>
> public class ResourcesCommon {
>   private static final ResourcesCommonDefinitions INSTANCE = GWT.create(
> ResourcesCommonDefinitions.class);
>   public static ResourcesCommonDefinitions inst() {
> return INSTANCE;
>   }
> }
>
> public interface ResourcesCommonDefinitions extends ClientBundle {
>   @Source("style.css") ResourcesCommonCSS css();
> }
>
> public interface ResourcesCommonCSS extends CssResource {
>   @ClassName("someStyle") String someStyle();
> }
>
> Have all the css in style.css:
>
> .someStyle {
>   color: red;
> }
>
> And in the ui.xml files:
>
> 
>
> 
>   
>   
> 
>
> On Thursday 1 August 2024 at 1:11:45 pm UTC+10 Colin Alworth wrote:
>
>> After some discussion in gitter a few hours ago 
>> <https://matrix.to/#/!AvXTCxQwVkniJBaCEi:gitter.im/$eQPedHE1EIVfShi8awSlne0eZG5CMP41Aa_8EQXOjRw>,
>>  
>> we filed https://github.com/gwtproject/gwt/issues/9990 as a research 
>> topic to look more deeply into this within GWT itself.
>>
>> It looks to me as though a separate StyleInjector implementation could be 
>> provided that no longer batches style tag creation, but instead inserts 
>> each individually. When the app is compiled, the hash for each block of CSS 
>> could be computed (...minus any runtime value interpolation), and a 
>> generated file made available to the server so that appropriate CSP headers 
>> can be set on http responses.
>>
>> Creating many individual css files and loading them via  tags is an 
>> option too, but won't load synchronously that way, unless you hit them all 
>> at startup (which then would mean that you may load them unnecessarily).
>>
>> Alternatively, a nonce could be specified and injected with each style 
>> tag - but that seems like a weaker approach in general, since it requires 
>> making the nonce available to the page's script code.
>>
>> On Wednesday, July 31, 2024 at 8:26:57 PM UTC-5 ma...@craig-mitchell.com 
>> wrote:
>>
>>> There are multiple ways of using CSS in the UIBinder, I'm not sure which 
>>> one uses injectStyleSheet behind the scenes.  Are you referring to using:
>>>
>>>1. The  tag in the ui.xml files.
>>>2. Resources with CssResource and the  tag in the 
>>>ui.xml files.
>>>3. Or are you programmatically injecting CSS in the code.
>>>
>>> The obvious workaround would be to put your CSS in the main index.html 
>>> file, and reference it from there, however, that might not be practical for 
>>> your situation.
>>>
>>> On Thursday 1 August 2024 at 1:42:16 am UTC+10 mighty...@gmail.com 
>>> wrote:
>>>
>>>> Hello all. I am working to make our webapp compliant with our CSP, and 
>>>> have removed `style-src unsafe-inline`. I am working through any errors 
>>>> that have popped up, but one is stumping me
>>>>
>>>> At runtime, it appears that GWT is injecting all the CSS from our Ui 
>>>> Binder files using StyleInjectorImpl 
>>>> <https://www.gwtproject.org/javadoc/latest/com/google/gwt/dom/client/StyleInjector.StyleInjectorImpl.html>
>>>>  `injectStyleSheet` 
>>>> method. 
>>>>
>>>> This is violating the CSP. Is there any way around this? I'm aware that 
>>>> the main way to ensure CSP compliance is to use a nonce value, but due to 
>>>> some quirks with our setup, this is not possible. 
>>>>
>>>

-- 
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/aacc5451-fce6-406b-9742-d046b1d3f237n%40googlegroups.com.


Re: CSP issues with UiBinder

2024-08-01 Thread Craig Mitchell
What am I missing here.  I use CssResource and don't have "style-src 
unsafe-inline" anywhere, and it all works fine.

Ie:

public class ResourcesCommon {
  private static final ResourcesCommonDefinitions INSTANCE = GWT.create(
ResourcesCommonDefinitions.class);
  public static ResourcesCommonDefinitions inst() {
return INSTANCE;
  }
}

public interface ResourcesCommonDefinitions extends ClientBundle {
  @Source("style.css") ResourcesCommonCSS css();
}

public interface ResourcesCommonCSS extends CssResource {
  @ClassName("someStyle") String someStyle();
}

Have all the css in style.css:

.someStyle {
  color: red;
}

And in the ui.xml files:




  
  


On Thursday 1 August 2024 at 1:11:45 pm UTC+10 Colin Alworth wrote:

> After some discussion in gitter a few hours ago 
> <https://matrix.to/#/!AvXTCxQwVkniJBaCEi:gitter.im/$eQPedHE1EIVfShi8awSlne0eZG5CMP41Aa_8EQXOjRw>,
>  
> we filed https://github.com/gwtproject/gwt/issues/9990 as a research 
> topic to look more deeply into this within GWT itself.
>
> It looks to me as though a separate StyleInjector implementation could be 
> provided that no longer batches style tag creation, but instead inserts 
> each individually. When the app is compiled, the hash for each block of CSS 
> could be computed (...minus any runtime value interpolation), and a 
> generated file made available to the server so that appropriate CSP headers 
> can be set on http responses.
>
> Creating many individual css files and loading them via  tags is an 
> option too, but won't load synchronously that way, unless you hit them all 
> at startup (which then would mean that you may load them unnecessarily).
>
> Alternatively, a nonce could be specified and injected with each style tag 
> - but that seems like a weaker approach in general, since it requires 
> making the nonce available to the page's script code.
>
> On Wednesday, July 31, 2024 at 8:26:57 PM UTC-5 ma...@craig-mitchell.com 
> wrote:
>
>> There are multiple ways of using CSS in the UIBinder, I'm not sure which 
>> one uses injectStyleSheet behind the scenes.  Are you referring to using:
>>
>>1. The  tag in the ui.xml files.
>>2. Resources with CssResource and the  tag in the ui.xml 
>>files.
>>3. Or are you programmatically injecting CSS in the code.
>>
>> The obvious workaround would be to put your CSS in the main index.html 
>> file, and reference it from there, however, that might not be practical for 
>> your situation.
>>
>> On Thursday 1 August 2024 at 1:42:16 am UTC+10 mighty...@gmail.com wrote:
>>
>>> Hello all. I am working to make our webapp compliant with our CSP, and 
>>> have removed `style-src unsafe-inline`. I am working through any errors 
>>> that have popped up, but one is stumping me
>>>
>>> At runtime, it appears that GWT is injecting all the CSS from our Ui 
>>> Binder files using StyleInjectorImpl 
>>> <https://www.gwtproject.org/javadoc/latest/com/google/gwt/dom/client/StyleInjector.StyleInjectorImpl.html>
>>>  `injectStyleSheet` 
>>> method. 
>>>
>>> This is violating the CSP. Is there any way around this? I'm aware that 
>>> the main way to ensure CSP compliance is to use a nonce value, but due to 
>>> some quirks with our setup, this is not possible. 
>>>
>>

-- 
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/c6889143-04cb-4ca8-a907-11d408a0434fn%40googlegroups.com.


Re: CSP issues with UiBinder

2024-07-31 Thread Colin Alworth
After some discussion in gitter a few hours ago 
<https://matrix.to/#/!AvXTCxQwVkniJBaCEi:gitter.im/$eQPedHE1EIVfShi8awSlne0eZG5CMP41Aa_8EQXOjRw>,
 
we filed https://github.com/gwtproject/gwt/issues/9990 as a research topic 
to look more deeply into this within GWT itself.

It looks to me as though a separate StyleInjector implementation could be 
provided that no longer batches style tag creation, but instead inserts 
each individually. When the app is compiled, the hash for each block of CSS 
could be computed (...minus any runtime value interpolation), and a 
generated file made available to the server so that appropriate CSP headers 
can be set on http responses.

Creating many individual css files and loading them via  tags is an 
option too, but won't load synchronously that way, unless you hit them all 
at startup (which then would mean that you may load them unnecessarily).

Alternatively, a nonce could be specified and injected with each style tag 
- but that seems like a weaker approach in general, since it requires 
making the nonce available to the page's script code.

On Wednesday, July 31, 2024 at 8:26:57 PM UTC-5 ma...@craig-mitchell.com 
wrote:

> There are multiple ways of using CSS in the UIBinder, I'm not sure which 
> one uses injectStyleSheet behind the scenes.  Are you referring to using:
>
>1. The  tag in the ui.xml files.
>2. Resources with CssResource and the  tag in the ui.xml 
>files.
>3. Or are you programmatically injecting CSS in the code.
>
> The obvious workaround would be to put your CSS in the main index.html 
> file, and reference it from there, however, that might not be practical for 
> your situation.
>
> On Thursday 1 August 2024 at 1:42:16 am UTC+10 mighty...@gmail.com wrote:
>
>> Hello all. I am working to make our webapp compliant with our CSP, and 
>> have removed `style-src unsafe-inline`. I am working through any errors 
>> that have popped up, but one is stumping me
>>
>> At runtime, it appears that GWT is injecting all the CSS from our Ui 
>> Binder files using StyleInjectorImpl 
>> <https://www.gwtproject.org/javadoc/latest/com/google/gwt/dom/client/StyleInjector.StyleInjectorImpl.html>
>>  `injectStyleSheet` 
>> method. 
>>
>> This is violating the CSP. Is there any way around this? I'm aware that 
>> the main way to ensure CSP compliance is to use a nonce value, but due to 
>> some quirks with our setup, this is not possible. 
>>
>

-- 
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/830b1bc0-0bc7-440f-a39f-c392a11abe1dn%40googlegroups.com.


Re: CSP issues with UiBinder

2024-07-31 Thread Craig Mitchell
There are multiple ways of using CSS in the UIBinder, I'm not sure which 
one uses injectStyleSheet behind the scenes.  Are you referring to using:

   1. The  tag in the ui.xml files.
   2. Resources with CssResource and the  tag in the ui.xml 
   files.
   3. Or are you programmatically injecting CSS in the code.

The obvious workaround would be to put your CSS in the main index.html 
file, and reference it from there, however, that might not be practical for 
your situation.

On Thursday 1 August 2024 at 1:42:16 am UTC+10 mighty...@gmail.com wrote:

> Hello all. I am working to make our webapp compliant with our CSP, and 
> have removed `style-src unsafe-inline`. I am working through any errors 
> that have popped up, but one is stumping me
>
> At runtime, it appears that GWT is injecting all the CSS from our Ui 
> Binder files using StyleInjectorImpl 
> <https://www.gwtproject.org/javadoc/latest/com/google/gwt/dom/client/StyleInjector.StyleInjectorImpl.html>
>  `injectStyleSheet` 
> method. 
>
> This is violating the CSP. Is there any way around this? I'm aware that 
> the main way to ensure CSP compliance is to use a nonce value, but due to 
> some quirks with our setup, this is not possible. 
>

-- 
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/1a28cca6-974c-4265-b018-af95dcf52c4en%40googlegroups.com.


CSP issues with UiBinder

2024-07-31 Thread mighty...@gmail.com
Hello all. I am working to make our webapp compliant with our CSP, and have 
removed `style-src unsafe-inline`. I am working through any errors that 
have popped up, but one is stumping me

At runtime, it appears that GWT is injecting all the CSS from our Ui Binder 
files using StyleInjectorImpl 

 `injectStyleSheet` 
method. 

This is violating the CSP. Is there any way around this? I'm aware that the 
main way to ensure CSP compliance is to use a nonce value, but due to some 
quirks with our setup, this is not possible. 

-- 
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/b4c2f50e-7bf9-4947-8000-f9dff600a837n%40googlegroups.com.


Re: Adding a custom attribute to Button using UiBinder?

2022-05-11 Thread Jens
UiBinder XML can only call setters on the widget itself. In the 
corresponding java file you can call button.getElement().setAttribute().

-- J.

ime...@gmail.com schrieb am Dienstag, 10. Mai 2022 um 20:55:41 UTC+2:

> All,
>
> Is there a way to add a custom attribute to a Button using UiBinder? I'm 
> looking for smth like eem-id="my-button". 
>
> Ideally it would be the button element itself, worst case the GWT 
> container.
>
> TIA,
>
> Slava
>

-- 
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/073fe01e-bd2d-45c3-93a9-5d95f89744e2n%40googlegroups.com.


Adding a custom attribute to Button using UiBinder?

2022-05-10 Thread Slava Imeshev
All,

Is there a way to add a custom attribute to a Button using UiBinder? I'm 
looking for smth like eem-id="my-button". 

Ideally it would be the button element itself, worst case the GWT container.

TIA,

Slava

-- 
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/a7498817-056b-4e08-86d9-b3cae9481ae6n%40googlegroups.com.


Re: Share Header, Footer, ... in different views with UIBinder

2020-10-09 Thread Guillen Antonio
Thnaks a lot Frank,

I read and test and use your Nalu example. Very nice and interesting job. I
start to implement it in my project, but I change my mind because I
discover MaterialDesign and using the MaterialContainer where I can put
after clear all of my views it's much more simple I think.

Thanks a lot.

Antonio

Le jeu. 8 oct. 2020 à 22:07, Frank Hossfeld  a
écrit :

> There is a project generator, that generates a Nalu project. The generated
> project has a header, footer, navigation and content area.The content area
> will change when clicking a navigation item. It works in the same way as
> the way, Thomas mentioned, but is based on Nalu instead of Activities and
> Places. Nalu is a routing based framework to create applications. It uses
> the same patterns but in a different implementation. May be it helps to
> learn it.
>
> http://www.mvp4g.org/boot-starter-nalu/BootStarterNalu.html
>
> ATM there is a bug inside the generator, if you select Domino-UI.
> Domino-UI updates a method name and I did not update the generator. (will
> do it during as soon as I have some free time)
> You need to replace 'setLeftAddon' with 'addLeftAddOn'.
>
>
> tonio@gmail.com schrieb am Donnerstag, 8. Oktober 2020 um 18:49:10
> UTC+2:
>
>> Thanks a lot Thomas,
>>
>> II have already read the pages you propose, but maybe I have some gaps
>> because I really don't understand the system.  A concrete example with the
>> code would surely help me. Is there an example of how to do this? I guess
>> it already exists but I can't find it after several hours of searching.
>> Thank you very much for your help
>> Le jeudi 8 octobre 2020 à 16:35:06 UTC+2, t.br...@gmail.com a écrit :
>>
>>> If *all* your "views" share the same header/footer/nav, then they
>>> should be part of your "shell", with your ActivityManager only managing the
>>> "main" part of the screen.
>>> See https://blog.ltgt.net/gwt-21-activities/ and
>>> https://blog.ltgt.net/gwt-21-activities-nesting-yagni/ (wow, 10 years
>>> old!)
>>>
>>>
>>> On Thursday, October 8, 2020 at 2:39:50 PM UTC+2, Guillen Antonio wrote:

 Hi all,

 I am still learning GWT and now I want to build views using
 materialdesign  (with MVP and activity/places)  sharing the same header,
 footer and side navigation. I don't found examples or tutorial to do this
 and I have no idea how to do.

 Thanks for your help

 Antonio

>>> --
> 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/a269c740-1524-4793-96ee-a2d81803271cn%40googlegroups.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/CAKULUq8UuAAg60F9VSrk8qM9ztAMQz%3DtM5Mwu0xH7yrUF4tWaQ%40mail.gmail.com.


Re: Share Header, Footer, ... in different views with UIBinder

2020-10-08 Thread Frank Hossfeld
There is a project generator, that generates a Nalu project. The generated 
project has a header, footer, navigation and content area.The content area 
will change when clicking a navigation item. It works in the same way as 
the way, Thomas mentioned, but is based on Nalu instead of Activities and 
Places. Nalu is a routing based framework to create applications. It uses 
the same patterns but in a different implementation. May be it helps to 
learn it. 

http://www.mvp4g.org/boot-starter-nalu/BootStarterNalu.html

ATM there is a bug inside the generator, if you select Domino-UI. Domino-UI 
updates a method name and I did not update the generator. (will do it 
during as soon as I have some free time)
You need to replace 'setLeftAddon' with 'addLeftAddOn'.


tonio@gmail.com schrieb am Donnerstag, 8. Oktober 2020 um 18:49:10 
UTC+2:

> Thanks a lot Thomas,
>
> II have already read the pages you propose, but maybe I have some gaps 
> because I really don't understand the system.  A concrete example with the 
> code would surely help me. Is there an example of how to do this? I guess 
> it already exists but I can't find it after several hours of searching. 
> Thank you very much for your help
> Le jeudi 8 octobre 2020 à 16:35:06 UTC+2, t.br...@gmail.com a écrit :
>
>> If *all* your "views" share the same header/footer/nav, then they should 
>> be part of your "shell", with your ActivityManager only managing the "main" 
>> part of the screen.
>> See https://blog.ltgt.net/gwt-21-activities/ and 
>> https://blog.ltgt.net/gwt-21-activities-nesting-yagni/ (wow, 10 years 
>> old!)
>>
>>
>> On Thursday, October 8, 2020 at 2:39:50 PM UTC+2, Guillen Antonio wrote:
>>>
>>> Hi all,
>>>
>>> I am still learning GWT and now I want to build views using 
>>> materialdesign  (with MVP and activity/places)  sharing the same header, 
>>> footer and side navigation. I don't found examples or tutorial to do this 
>>> and I have no idea how to do.
>>>
>>> Thanks for your help
>>>
>>> Antonio
>>>
>>

-- 
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/a269c740-1524-4793-96ee-a2d81803271cn%40googlegroups.com.


Re: Share Header, Footer, ... in different views with UIBinder

2020-10-08 Thread Guillen Antonio
Thanks a lot Thomas,

II have already read the pages you propose, but maybe I have some gaps 
because I really don't understand the system.  A concrete example with the 
code would surely help me. Is there an example of how to do this? I guess 
it already exists but I can't find it after several hours of searching. 
Thank you very much for your help
Le jeudi 8 octobre 2020 à 16:35:06 UTC+2, t.br...@gmail.com a écrit :

> If *all* your "views" share the same header/footer/nav, then they should 
> be part of your "shell", with your ActivityManager only managing the "main" 
> part of the screen.
> See https://blog.ltgt.net/gwt-21-activities/ and 
> https://blog.ltgt.net/gwt-21-activities-nesting-yagni/ (wow, 10 years 
> old!)
>
>
> On Thursday, October 8, 2020 at 2:39:50 PM UTC+2, Guillen Antonio wrote:
>>
>> Hi all,
>>
>> I am still learning GWT and now I want to build views using 
>> materialdesign  (with MVP and activity/places)  sharing the same header, 
>> footer and side navigation. I don't found examples or tutorial to do this 
>> and I have no idea how to do.
>>
>> Thanks for your help
>>
>> Antonio
>>
>

-- 
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/47238d3f-7460-4480-9c78-7a90a8a9dd2cn%40googlegroups.com.


Re: Share Header, Footer, ... in different views with UIBinder

2020-10-08 Thread Thomas Broyer
If *all* your "views" share the same header/footer/nav, then they should be 
part of your "shell", with your ActivityManager only managing the "main" 
part of the screen.
See https://blog.ltgt.net/gwt-21-activities/ 
and https://blog.ltgt.net/gwt-21-activities-nesting-yagni/ (wow, 10 years 
old!)

On Thursday, October 8, 2020 at 2:39:50 PM UTC+2, Guillen Antonio wrote:
>
> Hi all,
>
> I am still learning GWT and now I want to build views using 
> materialdesign  (with MVP and activity/places)  sharing the same header, 
> footer and side navigation. I don't found examples or tutorial to do this 
> and I have no idea how to do.
>
> Thanks for your help
>
> Antonio
>

-- 
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/2e2554c5-a3cf-4b61-a299-5923bb4a51d0o%40googlegroups.com.


Share Header, Footer, ... in different views with UIBinder

2020-10-08 Thread Guillen Antonio
Hi all,

I am still learning GWT and now I want to build views using materialdesign  
(with MVP and activity/places)  sharing the same header, footer and side 
navigation. I don't found examples or tutorial to do this and I have no 
idea how to do.

Thanks for your help

Antonio

-- 
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/1bc83baa-d15b-457f-9503-6174b764b953n%40googlegroups.com.


Re: How to use DatePicker with UiBinder

2019-06-28 Thread Craig Mitchell
I don't believe GWT supports a Time picker out of the box.  Only date:  
http://samples.gwtproject.org/samples/Showcase/Showcase.html#!CwDatePicker

A quick search shows that some people have created one:  
https://stackoverflow.com/questions/4509655/gwt-time-picker

Or you could use JSNI to bind to a JavaScript one.


On Tuesday, 25 June 2019 17:07:22 UTC+2, Shweta Thainua wrote:
>
> Can u tell me how to make are and time picker both in ui binder file

-- 
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/569651a2-3334-49df-bd1a-cc8b46160615%40googlegroups.com.


Re: How to use DatePicker with UiBinder

2019-06-25 Thread Shweta Thainua
Can u tell me how to make are and time picker both in ui binder file

-- 
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/062e960a-fdb2-4aac-afee-a73c3b5e069b%40googlegroups.com.


Re: Migrating a css file into gwt uibinder

2019-03-27 Thread Craig Mitchell
I never figured out how to add the @keyframes in the GWT resources.  As a 
workaround, you can add the CSS like you would a standard site.  Eg, in 
your index.html like this:

  @keyframes fadeIn {
0% { opacity: 0 }
100% { opacity: 1 }
  }


Then in your ui.xml, you can just refer to it as normal.  Eg:
blah

Not an idea solution.  If anyone knows how to add @keyframes to the 
resources, that would be very helpful.

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


Migrating a css file into gwt uibinder

2019-03-27 Thread Gary Barnes
I have a Display panel that contains an image that displays a gif spinner, 
however the spinner just doen't look great. 
So want to replace the gif spinner with something else, well I found a css 
file that looks a lot more like what we expect. Question is how do I 
migrate the css spinner into my panel?

Existing code snippets
Panel.ui.xml 

  
.apwidth {
  width: 100%
}
.
.
.
  
  

  

  
  Sys 1

  


Panel.java
class Panel extends Composite
{
private static final PanelUiBinder uiBinder = GWT.create(PanelUiBinder.
class);

interface PanelUiBinder extends UiBinder
{ }

interface Style extends CssResource
{
String grey();
String red();
String yellow();
}

@UiField
Style style;
@UiField
Image   SpinnerUp;
@UiField
Label   HardwareStat;

Panel
{
initWidget(uiBinder.createAndBindUi(this));

SpinnerUp.setUrl("images/load16.gif");
.
.
.
}
.
.
.
}



Want to integrate this:
from https://projects.lukehaas.me/css-loaders/
.loader {
  font-size: 10px;
  margin: 50px auto;
  text-indent: -em;
  width: 11em;
  height: 11em;
  border-radius: 50%;
  background: #ff;
  background: -moz-linear-gradient(left, #ff 10%, rgba(255, 255, 255, 
0) 42%);
  background: -webkit-linear-gradient(left, #ff 10%, rgba(255, 255, 
255, 0) 42%);
  background: -o-linear-gradient(left, #ff 10%, rgba(255, 255, 255, 0) 
42%);
  background: -ms-linear-gradient(left, #ff 10%, rgba(255, 255, 255, 0) 
42%);
  background: linear-gradient(to right, #ff 10%, rgba(255, 255, 255, 0) 
42%);
  position: relative;
  -webkit-animation: load3 1.4s infinite linear;
  animation: load3 1.4s infinite linear;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
}
.loader:before {
  width: 50%;
  height: 50%;
  background: #ff;
  border-radius: 100% 0 0 0;
  position: absolute;
  top: 0;
  left: 0;
  content: '';
}
.loader:after {
  background: #0dc5c1;
  width: 75%;
  height: 75%;
  border-radius: 50%;
  content: '';
  margin: auto;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}
@-webkit-keyframes load3 {
  0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
  }
  100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
  }
}
@keyframes load3 {
  0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
  }
  100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
  }
}


I understand how to integrate up until the @-webkit

Any help is appreciated

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


Injecting CSS and JS into UiBinder - Issue with getting access to image path

2017-11-02 Thread Muhammad Zbeedat


Hi,
I'm trying to implement a JS library (VisJs: http://visjs.org/) in my GWT 
project.
So, in order to use it from my UiBinder I used the ScriptInjector:
ScriptInjector.fromString(JsResources.INSTANCE.visScript().getText()).inject();

and in ui.xml I used the following:
 .htmlPanel { font-size: 
12px; font-family: Verdana, Geneva, sans-serif; border: 1px; border-style: 
solid; border-color: #969696; margin-top: 10px; } 

in my project I created a folder called resources as follow;

   - resources
   vis.js
   vis-min.css
  - img
 - network
  
in my gwt.xml i added: ** in order to get 
access to these resources.

The script is working for me and loading the graph, but not completely. I'm 
getting such errors:

vis.js:52995 GET http://127.0.0.1:/css/img/network/cross.png 404 (Not 
Found)

Somehow the "css" is part of the url and images can't be found!
Can you please advise how to fix it?

B.R.

-- 
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: GWT 2.8.1 Super dev mode error uibinder

2017-10-03 Thread Серик Идрисов
Unfortunately didn't helped. Probably it's bug of xerces or in class path 
there is another xerces... what do you think?

понедельник, 25 сентября 2017 г., 14:49:49 UTC+6 пользователь Jens написал:
>
> Hmm never seen this before. Have you tried cleaning SuperDevMode caches? 
> You can do so by opening the SuperDevMode UI (usually localhost:9876 but 
> seems like you use localhost:7002) and hit the small "clean" button at the 
> bottom.
>
> -- J.
>

-- 
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: GWT 2.8.1 Super dev mode error uibinder

2017-09-25 Thread Jens
Hmm never seen this before. Have you tried cleaning SuperDevMode caches? 
You can do so by opening the SuperDevMode UI (usually localhost:9876 but 
seems like you use localhost:7002) and hit the small "clean" button at the 
bottom.

-- J.

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


GWT 2.8.1 Super dev mode error uibinder

2017-09-25 Thread Серик Идрисов
Hi all!

I tried to use super dev mode in my project, but faced with compilation 
problems.

There are a lot of error like 

Computing all possible rebind results for 
'com.wktransportservices.wktsadmin.web.client.adminmodule.view.EventPopupDialog.EventPopupViewUiBinder'
Rebinding 
com.wktransportservices.wktsadmin.web.client.adminmodule.view.EventPopupDialog.EventPopupViewUiBinder
   Invoking generator 
com.google.gwt.uibinder.rebind.UiBinderGenerator
  [ERROR] Bad prefix on ? The root element must 
be in xml namespace "urn:ui:com.google.gwt.uibinder" (usually with prefix 
"ui:"), but this has prefix "null":  (:3)
 [ERROR] Errors in 'EventPopupDialog.java'
[ERROR] Line 34: Failed to resolve 
'EventPopupDialog.EventPopupViewUiBinder' via deferred binding

EventPopupDialog.ui.xml 


   
  

  
  
  

  
   
 



I run via IntelliJ Idea 2017 with parameters


-port 7001 -logLevel TRACE -codeServerPort 7002  -noserver -war 
F:\dev\jetty-distribution-9.4.7.v20170914\jetty-distribution-9.4.7.v20170914\webapps


Could somebody point me right direction.


PS: package of files I've removed 


-- 
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: Errors in UIBinder XML files

2017-03-27 Thread Magnus
This are the steps to reproduce the problem:

   - create the project:
   webAppCreator -templates sample,maven test.Application
   - import as "Maven Project" into eclipse
   - copy the above ui.xml file into the project

 Magnus

-- 
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: Errors in UIBinder XML files

2017-03-27 Thread Magnus
It's strange:


   - When I create a project inside eclipse, no error is shown in my 
   *ui.xml file.
   - When I create a project with maven and import it into eclipse, the 
   same ui.xml file produces the validation error.
   
The validation settings are the same in both projects. I noticed some 
differences in the "Builders" section of the project settings, e. g. there 
is a builder called "Validation", which is enabled in the maven-created 
project and not enabled in the eclipse-created project.
However, even when I remove all ot the builders, the error remains (after 
building manually or refreshing)


This is an ui.xml-file which shows the error at the g:MenuItemSeparator 
element:

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


.important {
font-weight: bold;
}




  
   




   
  

 
 



I need a solution, because having the red error symbols in eclipse is 
boring and may hide real errors...

Magnus 

-- 
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: Errors in UIBinder XML files

2017-03-24 Thread Jens


> But if the error results from XML validation: Why doesn't eclipse show the 
> error in the non-maven project?
>

No idea. Maybe your non Maven project does not have an XML validator 
active? If I remember correctly you can see the validators somewhere in the 
project preferences.

-- J.

-- 
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: Errors in UIBinder XML files

2017-03-24 Thread Magnus

>
> @Magnus: I think you could fix that issue in Eclipse by disabling XML 
> validation.
>

It's true that the problem only exists inside eclipse. The maven project 
compiles without errors on the command line.

But if the error results from XML validation: Why doesn't eclipse show the 
error in the non-maven project?

Magnus

-- 
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: Errors in UIBinder XML files

2017-03-24 Thread Jens


> Check your dependencies, this was fixed in GWT 2.4: 
> https://github.com/gwtproject/gwt/commit/ad144ac26693272b2d897454a13b7fddf389fedf
>  
> (see linked issue, exact same error message)


@tbroyer: While it is fixed in the UiBinder parser, I think the real issue 
causing the Eclipse error is that the XSD file hasn't been updated and 
Eclipse now uses it to validate the XML. See 
https://github.com/gwtproject/gwt/blob/master/user/src/com/google/gwt/uibinder/resources/com.google.gwt.user.client.ui.xsd#L381
 


@Magnus: I think you could fix that issue in Eclipse by disabling XML 
validation.


-- J.

-- 
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: Errors in UIBinder XML files

2017-03-24 Thread Thomas Broyer
Check your dependencies, this was fixed in GWT 2.4: 
https://github.com/gwtproject/gwt/commit/ad144ac26693272b2d897454a13b7fddf389fedf
 (see linked issue, exact same error message)

-- 
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: Errors in UIBinder XML files

2017-03-24 Thread Magnus
This is my UIBinder xml file:
(It works within the old project)

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

 
  
 

 

  
   









   
  
...
 

 


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


Errors in UIBinder XML files

2017-03-24 Thread Magnus
Hello,

while moving a project to maven, I copied a source tree into src/main/java 
of the maven tree. This source tree also contains UIBinder xml files.

There is no error in the original project, but in the maven project, the 
same UIBinder xml files cause errors like this:

cvc-complex-type.2.4.a: Invalid content was found starting with element 
'g:MenuItemSeparator'. One of 
'{"urn:import:com.google.gwt.user.client.ui":MenuItem}' is expected. 
MainMenuBar.ui.xml /msm-app-bcs/src/main/java/msm/app/bcs/client/sys/uib line 
58 XML Problem


I guess the xml files are handled like java source files.
What's the problem here?

Magnus

-- 
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: styling Uibinder with external css using background image

2017-01-06 Thread NewbieGwtUser
Any help please on this point ?

I know that my problem is resolvable using the simpliest manner of 
ClientBundle with both solutions of cssResource or ImageResource. But, I 
really want to optimize my gwt project with the use of gss since 
cssResource will completely disappear with the coming of GWT 3.0 as it's 
mentioned in this blog 
<http://blog.lteconsulting.fr/gwt/2015/06/10/gwt-meetup.html>.

big thanks for any helpful idea.




On Friday, January 6, 2017 at 12:50:01 PM UTC+1, NewbieGwtUser wrote:
>
> Hi ! thanks first for your reply.
>
> Actually, I've already investigated around this track using the gss 
> mechanism, following exactly what is mentioned in this tuto 
> <http://blog.arcbees.com/2015/04/14/getting-started-with-css-gss-gwt/#resource-loader-file>
> .
>
> So I created the gss file instead of the css and so... but, was blocked at 
> the ResourceLoader binding class (which has to be within the ClientModule 
> class extending the AbstractPresenterModule class of the gwtp framework), 
> since I'm using the mvp4g API instead.
>
> So I'm wondering if there is any way of replacing the ClientModule class 
> by the appropriate one in the mvp4g to get the ResourceLoader binding work?
>
> thanks a lot for your help !
>
>
> On Thursday, January 5, 2017 at 6:30:03 PM UTC+1, Juan Pablo Gardella 
> wrote:
>>
>> Did you check 
>> http://www.gwtproject.org/doc/latest/DevGuideClientBundle.html#ImageResource
>> ?
>>
>> On Thu, 5 Jan 2017 at 13:40 NewbieGwtUser <maale...@gmail.com> wrote:
>>
>>> Hello everyone,
>>>
>>> Since two days, i'm struggling to find a tip for showing an image as a 
>>> background within my uibinder file but I were unable to get it work.
>>>
>>> Actually I've a gwt-maven project with of course an src/main/java and 
>>> src/main/resources structure. In this latter, I've made a public directory 
>>> in which a set my images and external css files et defined a css class with 
>>> a background-image.
>>>
>>> Then, when I called this style within a uibinder .ui.xml file, and tried 
>>> to run it, the image used as the background fails to be loaded at the 
>>> browser page.
>>>
>>> (error msg when I inspect with developer tool: Failed to load resource: 
>>> the server responded with a status of 404 (Not Found))
>>>
>>> PS: I notice that external css file styles are already referenced in the 
>>> module configuration file (with .gwt.xml extension) and work fine.
>>>
>>> Any idea will be very appreciated.
>>>
>>> -- 
>>> 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-we...@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: styling Uibinder with external css using background image

2017-01-06 Thread NewbieGwtUser
Hi ! thanks first for your reply.

Actually, I've already investigated around this track using the gss 
mechanism, following exactly what is mentioned in this tuto 
<http://blog.arcbees.com/2015/04/14/getting-started-with-css-gss-gwt/#resource-loader-file>
.

So I created the gss file instead of the css and so... but, was blocked at 
the ResourceLoader binding class (which has to be within the ClientModule 
class extending the AbstractPresenterModule class of the gwtp framework), 
since I'm using the mvp4g API instead.

So I'm wondering if there is any way of replacing the ClientModule class by 
the appropriate one in the mvp4g to get the ResourceLoader binding work?

thanks a lot for your help !


On Thursday, January 5, 2017 at 6:30:03 PM UTC+1, Juan Pablo Gardella wrote:
>
> Did you check 
> http://www.gwtproject.org/doc/latest/DevGuideClientBundle.html#ImageResource
> ?
>
> On Thu, 5 Jan 2017 at 13:40 NewbieGwtUser <maale...@gmail.com 
> > wrote:
>
>> Hello everyone,
>>
>> Since two days, i'm struggling to find a tip for showing an image as a 
>> background within my uibinder file but I were unable to get it work.
>>
>> Actually I've a gwt-maven project with of course an src/main/java and 
>> src/main/resources structure. In this latter, I've made a public directory 
>> in which a set my images and external css files et defined a css class with 
>> a background-image.
>>
>> Then, when I called this style within a uibinder .ui.xml file, and tried 
>> to run it, the image used as the background fails to be loaded at the 
>> browser page.
>>
>> (error msg when I inspect with developer tool: Failed to load resource: 
>> the server responded with a status of 404 (Not Found))
>>
>> PS: I notice that external css file styles are already referenced in the 
>> module configuration file (with .gwt.xml extension) and work fine.
>>
>> Any idea will be very appreciated.
>>
>> -- 
>> 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-we...@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: styling Uibinder with external css using background image

2017-01-05 Thread Juan Pablo Gardella
Did you check
http://www.gwtproject.org/doc/latest/DevGuideClientBundle.html#ImageResource
?

On Thu, 5 Jan 2017 at 13:40 NewbieGwtUser <maalej.a...@gmail.com> wrote:

> Hello everyone,
>
> Since two days, i'm struggling to find a tip for showing an image as a
> background within my uibinder file but I were unable to get it work.
>
> Actually I've a gwt-maven project with of course an src/main/java and
> src/main/resources structure. In this latter, I've made a public directory
> in which a set my images and external css files et defined a css class with
> a background-image.
>
> Then, when I called this style within a uibinder .ui.xml file, and tried
> to run it, the image used as the background fails to be loaded at the
> browser page.
>
> (error msg when I inspect with developer tool: Failed to load resource:
> the server responded with a status of 404 (Not Found))
>
> PS: I notice that external css file styles are already referenced in the
> module configuration file (with .gwt.xml extension) and work fine.
>
> Any idea will be very appreciated.
>
> --
> 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.


styling Uibinder with external css using background image

2017-01-05 Thread NewbieGwtUser
Hello everyone,

Since two days, i'm struggling to find a tip for showing an image as a 
background within my uibinder file but I were unable to get it work.

Actually I've a gwt-maven project with of course an src/main/java and 
src/main/resources structure. In this latter, I've made a public directory 
in which a set my images and external css files et defined a css class with 
a background-image.

Then, when I called this style within a uibinder .ui.xml file, and tried to 
run it, the image used as the background fails to be loaded at the browser 
page.

(error msg when I inspect with developer tool: Failed to load resource: the 
server responded with a status of 404 (Not Found))

PS: I notice that external css file styles are already referenced in the 
module configuration file (with .gwt.xml extension) and work fine.

Any idea will be very appreciated.

-- 
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: UiBinder alternative

2016-09-16 Thread Predrag Remark
Ahmed, just a few suggestions: This time try to build it more abstract so 
that it does not depend on particular version of GWT/GXT. Try to avoid all 
unnecessary things that might disappear over time (like UIBinder - use 
html, css instead). In fact, try to make it future proof by not depending 
on GXT at all. Even better, make it undependable on GWT as well. Take a 
look on this example how the same code can run as Sencha GXT and 
GwtBootstrap/Vaadin: https://www.youtube.com/watch?v=gAN6iWAStZ8

In this particular example there is no code (PetClinic is built with 0 
lines of code), but in cases when you write the code, there is 
no GWT/GXT/GwtBootsrap/Vaadin specific code at all (you should not include 
any GWT/GXT/GwtBootsrap/Vaadin package in your application code), use only 
Interfaces and never GWT/GXT/GwtBootsrap/Vaadin widgets (or Elements) 
directly. Build abstracted event handling in such a way that your 
application code never use any GWT/GXT/GwtBootsrap/Vaadin events (event 
and handler classes) directly. That way you will be able to replace not 
only GXT/GwtBootsrap/Vaadin but also GWT if needed. 

You are welcome to visit our site http://www.codeless.solutions where you 
can find blogs section where we are discussing about our way of solving the 
problem: "getting stuck again". 

Hope it will be helpful, maybe you will get some new ideas how to solve 
your problems.

Regards,
Predrag.


-- 
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: UiBinder alternative

2016-09-08 Thread Slava Pankov
UiBinder should not be removed. It's not about widgets, but about 
convenient way of defining UI. And also it's quite similar to Android way 
of developing, so quite comfortable for developers with Android experience. 

On Thursday, September 8, 2016 at 8:25:52 AM UTC-7, Ahmad Bawaneh wrote:
>
> and one more thing
> I think publishing news about the major changes in an API early is a good 
> thing, as long the road map and the upgrade process and the alternatives 
> are known, because if not the uncertin things might cause people to 
> backaway from the API, people like to know what is comming ahead.
> I might be wrong but this is what i think.
>
> On Thursday, September 8, 2016 at 4:41:43 PM UTC+3, Thomas Broyer wrote:
>>
>>
>>
>> On Thursday, September 8, 2016 at 3:00:36 PM UTC+2, Ahmad Bawaneh wrote:
>>>
>>> Hi
>>> Is there any plans or suggestions for the UiBinder alternatives since 
>>> UiBinder will be removed from GWT 3.0?
>>>
>>
>> *might* be removed would be more accurate.
>>
>> Let me repeat one more time: development on GWT 3.0 has not started yet, 
>> not even discussions and preliminary plans (except that Google has been 
>> working on J2Cl and GWT 3.0 will be based on it, and that brings many 
>> changes to the way you'll develop); nobody knows yet what GWT 3.0 will or 
>> won't be (except that it won't have GWT.create() anymore: no more 
>> generators, no more deferred binding)
>> And again, there are reasons why GWT 2.x won't be discontinued as soon as 
>> GWT 3.x will be released.
>>
>> and i wonder why such cool feature should be removed instead of being 
>>> updated to match the new changes?
>>>
>>
>> It has to do with "resource driven" (or "non-java-source driven") code 
>> generation.
>> When code is generated based on Java code, it can be done with an 
>> annotation processor. But when code is generated based on a non-Java 
>> resource, "something" has to trigger the code generation whenever the 
>> resource changes; and in the case of UiBinder (and I18N's 
>> Constants/Messages, and ClientBundle), the code is generated based on 
>> *both* the ui.xml and the Java (so it needs to run as an annotation 
>> processor to easily get access to the Java model, but be triggered when the 
>> ui.xml changes –and the .java not).
>> It's only/mostly a "problem" of tooling (mostly during development). Far 
>> from being insurmontable though.
>>
>>
>>

-- 
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: UiBinder alternative

2016-09-08 Thread Ahmad Bawaneh
and one more thing
I think publishing news about the major changes in an API early is a good 
thing, as long the road map and the upgrade process and the alternatives 
are known, because if not the uncertin things might cause people to 
backaway from the API, people like to know what is comming ahead.
I might be wrong but this is what i think.

On Thursday, September 8, 2016 at 4:41:43 PM UTC+3, Thomas Broyer wrote:
>
>
>
> On Thursday, September 8, 2016 at 3:00:36 PM UTC+2, Ahmad Bawaneh wrote:
>>
>> Hi
>> Is there any plans or suggestions for the UiBinder alternatives since 
>> UiBinder will be removed from GWT 3.0?
>>
>
> *might* be removed would be more accurate.
>
> Let me repeat one more time: development on GWT 3.0 has not started yet, 
> not even discussions and preliminary plans (except that Google has been 
> working on J2Cl and GWT 3.0 will be based on it, and that brings many 
> changes to the way you'll develop); nobody knows yet what GWT 3.0 will or 
> won't be (except that it won't have GWT.create() anymore: no more 
> generators, no more deferred binding)
> And again, there are reasons why GWT 2.x won't be discontinued as soon as 
> GWT 3.x will be released.
>
> and i wonder why such cool feature should be removed instead of being 
>> updated to match the new changes?
>>
>
> It has to do with "resource driven" (or "non-java-source driven") code 
> generation.
> When code is generated based on Java code, it can be done with an 
> annotation processor. But when code is generated based on a non-Java 
> resource, "something" has to trigger the code generation whenever the 
> resource changes; and in the case of UiBinder (and I18N's 
> Constants/Messages, and ClientBundle), the code is generated based on 
> *both* the ui.xml and the Java (so it needs to run as an annotation 
> processor to easily get access to the Java model, but be triggered when the 
> ui.xml changes –and the .java not).
> It's only/mostly a "problem" of tooling (mostly during development). Far 
> from being insurmontable though.
>
>
>

-- 
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: UiBinder alternative

2016-09-08 Thread Ahmad Bawaneh


On Thursday, September 8, 2016 at 4:41:43 PM UTC+3, Thomas Broyer wrote:
>
>
>
> On Thursday, September 8, 2016 at 3:00:36 PM UTC+2, Ahmad Bawaneh wrote:
>>
>> Hi
>> Is there any plans or suggestions for the UiBinder alternatives since 
>> UiBinder will be removed from GWT 3.0?
>>
>
> *might* be removed would be more accurate.
>
> Let me repeat one more time: development on GWT 3.0 has not started yet, 
> not even discussions and preliminary plans (except that Google has been 
> working on J2Cl and GWT 3.0 will be based on it, and that brings many 
> changes to the way you'll develop); nobody knows yet what GWT 3.0 will or 
> won't be (except that it won't have GWT.create() anymore: no more 
> generators, no more deferred binding)
> And again, there are reasons why GWT 2.x won't be discontinued as soon as 
> GWT 3.x will be released.
>
> and i wonder why such cool feature should be removed instead of being 
>> updated to match the new changes?
>>
>
> It has to do with "resource driven" (or "non-java-source driven") code 
> generation.
> When code is generated based on Java code, it can be done with an 
> annotation processor. But when code is generated based on a non-Java 
> resource, "something" has to trigger the code generation whenever the 
> resource changes; and in the case of UiBinder (and I18N's 
> Constants/Messages, and ClientBundle), the code is generated based on 
> *both* the ui.xml and the Java (so it needs to run as an annotation 
> processor to easily get access to the Java model, but be triggered when the 
> ui.xml changes –and the .java not).
> It's only/mostly a "problem" of tooling (mostly during development). Far 
> from being insurmontable though.
>
>
>  Thank you for the clarification

the fears i have are comming from a previouse experiance i had with GXT 2.3 
which as i remember was using GWT 2.5.1, in our company we developed our 
own framework for building applications which works in a very dynamic way 
modeliing every thing around the cool features - we thought they are cool - 
we had, then at some point after we had milions of lines of code written 
GXT 3.0 released which came with major changes to the api, and with that we 
got stuck we couldnt upgrade our framework to either gxt 3 or event use a 
newer version of gwt so we are still stuck with these 2 version. i dont 
blame GWT or GXT because they did what i think is right but i blame those 
dinasors like developers at the company for not listening to the advice, 
now i am in charge of incrementally rebuild the framework around the latest 
gwt, so i am asking to simply avoid getting stuck again, i want to avoid 
the parts that are going to be removed and prepare the road for a smooth 
upgrade.

-- 
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: UiBinder alternative

2016-09-08 Thread Thomas Broyer


On Thursday, September 8, 2016 at 3:00:36 PM UTC+2, Ahmad Bawaneh wrote:
>
> Hi
> Is there any plans or suggestions for the UiBinder alternatives since 
> UiBinder will be removed from GWT 3.0?
>

*might* be removed would be more accurate.

Let me repeat one more time: development on GWT 3.0 has not started yet, 
not even discussions and preliminary plans (except that Google has been 
working on J2Cl and GWT 3.0 will be based on it, and that brings many 
changes to the way you'll develop); nobody knows yet what GWT 3.0 will or 
won't be (except that it won't have GWT.create() anymore: no more 
generators, no more deferred binding)
And again, there are reasons why GWT 2.x won't be discontinued as soon as 
GWT 3.x will be released.

and i wonder why such cool feature should be removed instead of being 
> updated to match the new changes?
>

It has to do with "resource driven" (or "non-java-source driven") code 
generation.
When code is generated based on Java code, it can be done with an 
annotation processor. But when code is generated based on a non-Java 
resource, "something" has to trigger the code generation whenever the 
resource changes; and in the case of UiBinder (and I18N's 
Constants/Messages, and ClientBundle), the code is generated based on 
*both* the ui.xml and the Java (so it needs to run as an annotation 
processor to easily get access to the Java model, but be triggered when the 
ui.xml changes –and the .java not).
It's only/mostly a "problem" of tooling (mostly during development). Far 
from being insurmontable though.


-- 
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: UiBinder alternative

2016-09-08 Thread Ümit Seren
Why not just use HTML ? GWT's widget are quite "heavy" and probably will be 
replaced by web-components down the road. If you really need widgets you 
can look into Errai framework (http://erraiframework.org/)

On Thursday, September 8, 2016 at 3:00:36 PM UTC+2, Ahmad Bawaneh wrote:
>
> Hi
> Is there any plans or suggestions for the UiBinder alternatives since 
> UiBinder will be removed from GWT 3.0?
> and i wonder why such cool feature should be removed instead of being 
> updated to match the new changes?
> 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: UiBinder alternative

2016-09-08 Thread zakaria amine
Elemento is the only one that I can think of: 
https://github.com/hal/elemento

You could also lay your layout in the .html and use elemental for 
interaction with the elements.

Le jeudi 8 septembre 2016 15:00:36 UTC+2, Ahmad Bawaneh a écrit :
>
> Hi
> Is there any plans or suggestions for the UiBinder alternatives since 
> UiBinder will be removed from GWT 3.0?
> and i wonder why such cool feature should be removed instead of being 
> updated to match the new changes?
> 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.


UiBinder alternative

2016-09-08 Thread Ahmad Bawaneh
Hi
Is there any plans or suggestions for the UiBinder alternatives since 
UiBinder will be removed from GWT 3.0?
and i wonder why such cool feature should be removed instead of being 
updated to match the new changes?
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.


Elemental 2 inside uiBinder

2016-07-26 Thread Stefano Pulze
Hi all,

Can I use elemental 2 inside a uiBinder?
Where I can find examples and what is the best way to do that?

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.


gwt material and uibinder + gradle

2016-07-05 Thread Michael Joyner

two dimes:

We find Gradle much easier to work with than Maven here at my shop. 
Especially for "loosely coupled" project dependency setup. We never 
could get Maven to simply reference other projects arbitrarily. We find 
Maven is too strict in specifying how projects are connected up with 
each other.


Plus we use Gretty to automatically run our projects server and client 
code from multiple projects together as a single localhost tomcat server.


On 07/04/2016 03:32 AM, Thomas Broyer wrote:




A little off-topic but, before going Maven (unless you know it 
already) explore Gradle too (and, why not, Ant+Ivy, Buildr, SBT, or 
even Pants or Bazel); then make an informed choice. Just sayin'




--
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: gwt material and uibinder

2016-07-04 Thread Pierre Mineaud

>
> Oups... This topic is really gone ! :) 
>
But last answer for Gilberto : 

Without entering too much in detail, our project is about making a huge 
platform (intranet) for our enterprise with different real application in 
there with different rules for each login. This can be planning scheduler 
and comptability gestion for the administration, gestion of production for 
the concrete maker, Vehicule consomation for driver's formaters and printer 
administration (cups style) / server admin and terminal spying for our Info 
Team... etc etc...
We began our dev on meteor for reactivity (especially the native mongoDB 
<-> meteor communication), multiplatform, and easy development. But we 
encoured some problems with meteor and we are working with physical device 
like truk's can bus, gps, old database (cisam). Java is a needed part of 
our project. So the promise of gwt to develop web app and android stuff is 
really interesting for us to develop our project with the same langage. 

-- 
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: gwt material and uibinder

2016-07-04 Thread Vassilis Virvilis
I use ant+ivy. It's not perfect for sure but with time it grew deep roots
in my company. If you invest on it you can do anything (Turing complete).
Right now it's a major undertaking for me to leave ant+ivy for maven. I am
not event sure that I like maven that much to do the necessary work...

One big plus form maven is that is hot and everybody is using it these
days. That was also true for ant in the previous years but not so much
anymore.

One big minus for ant+ivy (ivy looks deadish - last release Dec 2014)

Another problem is the transitive dependencies. Let me explain
Project P depends on libA and libB. libA and libB depend on differenct
versions of log4j or worse slf4j

P: libA libB

libA: log4j-v1

libB: log4j-v2


Guess what happens. Answer: both are included in the final war, jar etc.

Guess what happens when you are using commons-logging or slf4j and a third
party library pulls in log4j. Your logging configuration is flipped to use
a new probably unconfigured backend. So you are writing exceptions but the
exceptions are in the scope of Project P (and not in the libA, libP scope)
because project P knows what transitive libraries has in total. So it's a
kind of a mess... Does happen handle things better? I seriously doubt it.

Oups totally of topic: Sorry

Vassilis












On Mon, Jul 4, 2016 at 10:32 AM, Thomas Broyer  wrote:

>
>
> On Monday, July 4, 2016 at 8:58:10 AM UTC+2, Pierre Mineaud wrote:
>>
>> About maven, you're probably right. But at the moment in my enterprise,
>>> we are switching direction for our web development (we were on meteor, a
>>> javascript framework client and server side), and for all developers and
>>> director, maven were most a barrier than a real help. But I'm agree with
>>> you, you must be right when we see all gwt dev on maven ! :) But to be
>>> honest, we will try to learn gwt and his environment before trying maven
>>> with.
>>>
>>
> A little off-topic but, before going Maven (unless you know it already)
> explore Gradle too (and, why not, Ant+Ivy, Buildr, SBT, or even Pants or
> Bazel); then make an informed choice. Just sayin'
>
> --
> 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.
>



-- 
Vassilis Virvilis

-- 
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: gwt material and uibinder

2016-07-04 Thread Gilberto
Yes, Thomas is right: you should try other dependency/build management tools 
before making a final decision on which one to use. The important thing, in my 
opinion, is to use something that can read the maven central repository and can 
automate and standardize your build.

Glad your problems are solved!

By the way, out of curiosity, can you share your experience a little bit about 
the transition from meteor to GWT? What aspects of GWT made you and your team 
to choose it? I'd like to hear from you because I have a similar scenario in 
one company.

-- 
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: gwt material and uibinder

2016-07-04 Thread Thomas Broyer


On Monday, July 4, 2016 at 8:58:10 AM UTC+2, Pierre Mineaud wrote:
>
> About maven, you're probably right. But at the moment in my enterprise, we 
>> are switching direction for our web development (we were on meteor, a 
>> javascript framework client and server side), and for all developers and 
>> director, maven were most a barrier than a real help. But I'm agree with 
>> you, you must be right when we see all gwt dev on maven ! :) But to be 
>> honest, we will try to learn gwt and his environment before trying maven 
>> with.
>>
>
A little off-topic but, before going Maven (unless you know it already) 
explore Gradle too (and, why not, Ant+Ivy, Buildr, SBT, or even Pants or 
Bazel); then make an informed choice. Just sayin'

-- 
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: gwt material and uibinder

2016-07-04 Thread Pierre Mineaud

>
> Hi Gilberto and thanks for your answer ! ;)
>
 
 Thanks too for the invitation on the gwt material chat, I will come !

About maven, you're probably right. But at the moment in my enterprise, we 
are switching direction for our web development (we were on meteor, a 
javascript framework client and server side), and for all developers and 
director, maven were most a barrier than a real help. But I'm agree with 
you, you must be right when we see all gwt dev on maven ! :) But to be 
honest, we will try to learn gwt and his environment before trying maven 
with.

And finally, my problem is solved. I really don't know what I did to get 
it, but after some days on manipulating gwt and gwt material, I understood 
how it works and I can't reproduce my initial problem :)

-- 
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: gwt material and uibinder

2016-07-02 Thread Gilberto
Hi Pierre!

Welcome to GWT and GWT Material =)

If you want a faster, direct communication with the developers from GWT 
Material, join us at the Gitter chat: 
https://gitter.im/GwtMaterialDesign/gwt-material

Also, I advise you to really try to use Maven. I know it's hard and 
sometimes frustrating, but when you finally get it working, can save you a 
lot of time when using continuous integration, and allows your project to 
be IDE independent (which is really important to have - you'll never know 
when a vi expert will join your team).

About your problem with the waves, I imagine it's something related to the 
layout of your entire view. I'd have to test. Do you have a complete 
working example so I can copy-paste-and-test ?

-- 
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: gwt material and uibinder

2016-06-29 Thread Pierre Mineaud
Ok... I finally found my error... 
Here is what I have done :

in my myButton2.java code : 
public class myButton2 extends Composite {

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

@UiTemplate("myButton2.ui.xml")
interface MyUiBinder extends UiBinder<Widget, myButton2> {
}
public myButton2() {
initWidget(uiBinder.createAndBindUi(this));
}
}

And in my "main" I simply did that : 
RootPanel.get("stockList").add(new HelloWorld());

All is fine now, exept one thing ! :D (Yeah... nothing can directly be 
perfect !)
My wave effect when I'm clicking on the button don't show up. 
My waves attribute is still there in my .ui.xml like that :



-- 
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: gwt material and uibinder

2016-06-29 Thread Pierre Mineaud
I didn't mentionned : 
I follow this get Started 
: http://gwtmaterialdesign.github.io/gwt-material-demo/snapshot/#!gettingstarted
So I added well the "" in my app.gwt.xml.

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


gwt material and uibinder

2016-06-29 Thread Pierre Mineaud
Hello. 
I'm totally new on gwt and I would like to use gwt material to make my 
application's UI.

I'm not really confortable with maven, so I downloaded the .jar and 
imported it in my project. I can so use the component like that :
MaterialButton myButton1 = new MaterialButton();
myButton1.setTextColor("white");
myButton1.setText("myButton1");
myButton1.setType(ButtonType.RAISED);
myButton1.setWaves(WavesType.DEFAULT);

RootPanel.get("divContainer").add(myButton1);

My button is shown in my page and it is perfect. 
But I would like to do the same with uiBinder cause it's a lot more 
confortable to develop a huge application in my opinion ! 

So I created a myButton2.ui.xml file with this : 






And the respective class : 
package com.google.gwt.sample.testGwtMaterial.client;

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 myButton2 extends Composite {

interface MyUiBinder extends UiBinder<Widget, HelloWorld> {
}

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

public myButton2() {
}
}

But when I change my RootPanel.add thing to :
myButton2 fooBtn = new myButton2();
RootPanel.get("divContainer").add(fooBtn);

There is nothing printed in my page. What I did wrong ?
Thanks for tips !

-- 
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: Designer Problem : « uibinder template should be in client package »

2016-06-03 Thread Steve Cook
This was an unacceptable solution for me as I needed to share features 
between modules and you cannot go up a directory.

The problem:  The UI Editor looks for a gwt.xml file, then reads it, if the 
file it finds does not contain the path which your UI xml file resides, it 
decides that it is not in the package and does not look for additional 
files.

My Solution 1 and 2:
I solved this by creating a "aadev.gwt.xml" that included all paths needed 
for all modules.  This one was not added to my compilation, but acted as a 
dummy so that the GWT designer would see it in the path.  My assumption is 
that the paths are read alphabetically, which may be a flawed assumption.

The other solution (I tried first actually) was to add that path to the 
module that did work (As one always works).  Assuming the gwt.xml files are 
close enough in configuration this should work, however if they are vastly 
different it may not function as desired, in which I would copy a dummy to 
the package path, and tweak its paths to make it work (Assuming fix 1 does 
not solve it for you).




On Wednesday, July 13, 2011 at 1:41:22 PM UTC-5, khiem nguyen wrote:
>
> try to move package1.gwt.xml into package1,  package2.gwt.xml into 
> package2. i have this kind of issue too, keeping this helps:
>
> package
> client
> server
> shared
> module.gwt.xml
>
>
>
>
>
>
> On Wed, Jul 13, 2011 at 8:29 AM, cruser <cruser...@gmail.com 
> > wrote:
>
>> Thanks Kojo, 
>>
>> I had a look there and all the source is included. :(
>> Here is a basic package layout, perhaps there is something wrong :
>>
>> src--
>>   |
>>   topPackage
>>  |
>>  package1
>>   |
>>   client
>>   server
>>  package2
>>   |
>>   client
>>  |
>>  widget
>>   |
>>   timewidget
>>  |
>> 
>>  TimeView.java
>> 
>>  TimeView.ui.xml
>>   server
>>  public
>>  |
>>  images(folder)
>>  package1.css
>>  package2.css
>>  package1.gwt.xml
>>  package2.gwt.xml
>>
>> ...(referenced libraries and war directory etc)
>>
>> In this example layout the TimeView.ui.xml  gives the error "uibinder 
>> template should be in client package".
>>
>> Is there anything you can spot is wrong with the package layout? Is there 
>> anything that says there can be only one "client" package? When running the 
>> project everything works fine, I just can't use the designer
>>
>> -- 
>> 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/-/rfkZElLh7-IJ.
>>
>> To post to this group, send email to google-we...@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.
>>
>
>

-- 
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: Organizing project files with UIBinder

2016-04-20 Thread Thomas Broyer
This all depends how you do MVP; see tutorials on GWT website for various 
flavors; one doesn't involve HasText / HasClickHandlers.

-- 
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: Organizing project files with UIBinder

2016-04-20 Thread Martinus van de Ruitenbeek
Hi, 

I also started using MVP and Polymer with UIBinder. Problem is, that 
Polymer does not have all the interfaces that vanilla GWT has to enable MVP 
and proper unit testing, for example HasText, HasClickListeners etc. How 
did you manage to implement MVP with GWT-Polymer? I am using 
vaadin-gwt-polymer-elements version 1.2.3.0 with GWT2.8beta1. 

Thanks!

On Tuesday, 15 December 2015 09:26:20 UTC+1, va...@ant.ee wrote:
>
> Thank you for response Luke,
>
>I am going to build project using Polymer UI elements and MVP. Thus 
> I have no option other than GWT 2.8.0 and GSS. CSS is not working for this 
> type of projects (or better to say - they work in auto conversion mode). I 
> am afraid that if I keep .java, .gss, .ui.xml files in the same packages 
> they become rather big. There is also kind of "scare" to mix different 
> types of files in JAVA packages. Shouldn't JAVA packages be only for .java 
> files and all the rest of the stuff -- somewhere at /resources?  This is my 
> main question.
>
>
> On Tuesday, December 15, 2015 at 5:43:09 AM UTC+2, Luke Last wrote:
>>
>> Here's my quick stab at these, hope it helps.
>>
>> 1. I've never seen this done differently, and personally I find it 
>> helpful to have them in the same package.
>> 2. UIBinder is only client side.
>> 3. UIBinder will work with classic CSS. You could also consider using 
>> CssResource (gss) or using gss embedded in UIBinder templates.
>>
>> On Monday, December 14, 2015 at 8:31:14 AM UTC-5, va...@ant.ee wrote:
>>>
>>> Hello all,
>>>
>>> I have read the chapter 
>>> http://www.gwtproject.org/doc/latest/DevGuideOrganizingProjects.html 
>>> about GWT project layout, but still have some questions:
>>>
>>>1. View .ui.xml files are "by default" located at the same folder 
>>>where .java files are. Is it better to move them to some "resource" 
>>>package?  How to bind .ui.xml in corresponding composite .java if so?
>>>2. Going through UIBuinder example there is only "client" side that 
>>>is executed at client browser. Is server side remains pretty much the 
>>> same 
>>>as described at 
>>>http://www.gwtproject.org/doc/latest/DevGuideServerCommunication.html 
>>>? 
>>>3. If I have root .css (gss) at my WEB-INF -- will this resource be 
>>>accessible for all .ui.xml modules ?
>>>
>>> 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: UIBinder & Materials

2016-03-07 Thread Sam Wootton
Stefan,

Already did - thanks! If you look at the chat room history, you'll see me
being a nuisance there too :)

Regards, Sam

On 7 March 2016 at 10:36, Stefan Falk <stefan.r.f...@gmail.com> wrote:

> You can visit the guys on Gitter:
> https://gitter.im/GwtMaterialDesign/gwt-material
>
> :)
>
> BR; Stefan
>
>
> On Sunday, 6 March 2016 15:46:45 UTC+1, Sam Wootton wrote:
>>
>> Dear GWT Users,
>>
>> As ever, thanks for any help.
>>
>> Quick (possibly stupid) question.  I'd like to start investigating GWT
>> Materials
>>
>> http://gwtmaterialdesign.github.io/gwt-material-demo/#!gettingstarted
>>
>> ... states "*Assuming that you're using UIBinder, add the following
>> namespace to the  element*".
>>
>> My current gwt application does not use UIBinder framework (just
>> traditional Java).  Do I *have* to switch to UIBinder if I want to use
>> GWT Materials?
>>
>> Regards, Sam
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "GWT Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/AEO4jZeujTo/unsubscribe
> .
> 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 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: UIBinder & Materials

2016-03-07 Thread Stefan Falk
You can visit the guys on Gitter: 
https://gitter.im/GwtMaterialDesign/gwt-material

:) 

BR; Stefan

On Sunday, 6 March 2016 15:46:45 UTC+1, Sam Wootton wrote:
>
> Dear GWT Users,
>
> As ever, thanks for any help.
>
> Quick (possibly stupid) question.  I'd like to start investigating GWT 
> Materials
>
> http://gwtmaterialdesign.github.io/gwt-material-demo/#!gettingstarted
>
> ... states "*Assuming that you're using UIBinder, add the following 
> namespace to the  element*".
>
> My current gwt application does not use UIBinder framework (just 
> traditional Java).  Do I *have* to switch to UIBinder if I want to use 
> GWT Materials?
>
> Regards, Sam
>

-- 
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: UIBinder & Materials

2016-03-06 Thread Jens


> Can I continue the same approach 'converting' each instance to Material 
> versions?  I'd stil like to use some of my existing styling / css.
>

I never used the library and I don't know you app. So no idea, if 
everything that this library offers fits your needs. But I am pretty sure 
you can mix it with your own stuff.

 

> What, in your opinion, is the best way to Materialise a gwt project?
>

Just do what works for you.


-- J. 


-- 
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: UIBinder & Materials

2016-03-06 Thread Sam Wootton
Thanks Jens,

Many thanks.  Yes, I see I can just instantiate Material objects directly

MaterialButton popupBtn = new MaterialButton();
// Button popupBtn = new Button();

Can I continue the same approach 'converting' each instance to Material
versions?  I'd stil like to use some of my existing styling / css.

What, in your opinion, is the best way to Materialise a gwt project?

Regards, Sam




On 6 March 2016 at 14:52, Jens <jens.nehlme...@gmail.com> wrote:

>
> My current gwt application does not use UIBinder framework (just
>> traditional Java).  Do I *have* to switch to UIBinder if I want to use
>> GWT Materials?
>>
>
> No, of course not.
>
> -- J.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "GWT Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/AEO4jZeujTo/unsubscribe
> .
> 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 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: UIBinder & Materials

2016-03-06 Thread Jens


> My current gwt application does not use UIBinder framework (just 
> traditional Java).  Do I *have* to switch to UIBinder if I want to use 
> GWT Materials?
>

No, of course not. 

-- J.

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


UIBinder & Materials

2016-03-06 Thread Sam Wootton
Dear GWT Users,

As ever, thanks for any help.

Quick (possibly stupid) question.  I'd like to start investigating GWT 
Materials

http://gwtmaterialdesign.github.io/gwt-material-demo/#!gettingstarted

... states "*Assuming that you're using UIBinder, add the following 
namespace to the  element*".

My current gwt application does not use UIBinder framework (just 
traditional Java).  Do I *have* to switch to UIBinder if I want to use GWT 
Materials?

Regards, Sam

-- 
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: Using events but keeping styles out of UiBinder??

2016-03-02 Thread Adolfo Rodriguez
Thanks for your comment Michael. Happy that I ignored this possibility 
since looks the right fit.

It would be good having a compilation of the possible options to declare 
the CSS in GWT. I have seen at least: 6 different. As a quick review:

1* normal reference in main HTML file, i.e.

2* included in the .gwt.xml module file, i.e.

3* imported to UiBinder and declared as<*ui*:*style* 
src="stylesheet.css" 
/>

4* created inside UiBinder as.panel { 
width: 100%; }  used as *addStyleNames="{style.panel}*

5* created inside UiBinder with @external

6* referenced from uiBinder as you said *addStyleNames="btn btn-default 
get"*


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: Using events but keeping styles out of UiBinder??

2016-03-02 Thread Michael Harray
I may be misunderstanding the question, but you don't need to define the 
styles in the UiBinder inside a , you can just do:



and they will be treated as plain text stylenames, which your imported css 
file will recognise

On Wednesday, 2 March 2016 10:23:10 UTC+13, Adolfo Rodriguez wrote:
>
> Hi, I have imported a full template. I added the HTMLs as UiBinder and 
> referenced the js and css from the main HTML page. So far it works great.
>
> I am trying to keep the styles outside of UiBinder as most as I can to 
> avoid a hardcoded maintenance. However, I need to handle some events on 
> some components, for example buttons. 
>
> PROBLEM: The fact of handling events has the side effect to force me to 
> import the styles in UiBinder when I think they should be separated roles.
>
> My button as it comes from the template is:
>
>
>
> In order to use the events, I need to create some kind of component, e.g.:
>
> ui:field="submit" *addStyleNames="{style.btn} {style.btn-default} 
> {style.get}"* />
>
> However, this will make me add the styles, as shown bolded above, and 
> therefore use some of the mechanisms available in UiBinder to import them.
>
> I tried a kind of workaround embedding my button in a dummy div defined as 
> DiVElement in my View class but them I wont have a component anymore but a 
> JavascriptObject in the View.
>
> ** type="button" class="btn btn-default get">Get it now**
>
> I would expect an attribute in the components to allow style definitions 
> being ignored by UiBinder and loaded somewhere else, but it does exist as 
> far as I know.
>
> So, is there any way to work with the events of a component without having 
> to import the styles in UiBinder??
>
> 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.


Using events but keeping styles out of UiBinder??

2016-03-01 Thread Adolfo Rodriguez
Hi, I have imported a full template. I added the HTMLs as UiBinder and 
referenced the js and css from the main HTML page. So far it works great.

I am trying to keep the styles outside of UiBinder as most as I can to 
avoid a hardcoded maintenance. However, I need to handle some events on 
some components, for example buttons. 

PROBLEM: The fact of handling events has the side effect to force me to 
import the styles in UiBinder when I think they should be separated roles.

My button as it comes from the template is:

   

In order to use the events, I need to create some kind of component, e.g.:

   

However, this will make me add the styles, as shown bolded above, and 
therefore use some of the mechanisms available in UiBinder to import them.

I tried a kind of workaround embedding my button in a dummy div defined as 
DiVElement in my View class but them I wont have a component anymore but a 
JavascriptObject in the View.

**Get it now**

I would expect an attribute in the components to allow style definitions 
being ignored by UiBinder and loaded somewhere else, but it does exist as 
far as I know.

So, is there any way to work with the events of a component without having 
to import the styles in UiBinder??

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: UIBinder and UI update/change at runtime

2016-02-28 Thread vadim

Gilberto,

 Thank you very much - you saved me a lot of time figuring out what is 
happening. The problem was indeed in DockLayoutPanel "add" method that is 
locked after adding "center" widget. I didn't mention this note at 
documentation. When I replaced DockLayoutPanel with LayoutPanel - 
everything start to work as expected. I was not dare to use flexbox yet, 
because I don't know  how to couple it with GWT and modify CSS properties 
from JAVA code, but this project looks very interesting. When I get more 
mature I will try it.

Thanks again, the problem is solved.

-- 
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: UIBinder and UI update/change at runtime

2016-02-27 Thread Gilberto
That's not an issue of the UiBinder, but the DockLayoutPanel itself. Once 
you add the central widget, you cannot add anymore other widgets to it (
reference 
<http://www.gwtproject.org/javadoc/latest/com/google/gwt/user/client/ui/DockLayoutPanel.html#add(com.google.gwt.user.client.ui.Widget)>
).

In my opinion you should consider a different layout panel, or using pure 
CSS to layout your widgets (by using flexbox 
<https://css-tricks.com/snippets/css/a-guide-to-flexbox/> for instance). It 
will be better to handle when you move to mobile.

On Friday, February 26, 2016 at 1:19:45 PM UTC-3, va...@ant.ee wrote:
>
> Hello all,
>
>I have View, created by UIBinder using DockLayoutPanel. I have a 
> button there. I would like after pushing the button change UI layout of the 
> view (for example add new widget to it). Having it attached to uifield = 
> "dockPanel" allows me to read different properties of the DockLayoutPanel, 
> but when I try to modify it (by adding something like HTMLPanel to the 
> east) has no effect. What is wrong?
>
> Thank you. 
>

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


UIBinder and UI update/change at runtime

2016-02-26 Thread vadim
Hello all,

   I have View, created by UIBinder using DockLayoutPanel. I have a 
button there. I would like after pushing the button change UI layout of the 
view (for example add new widget to it). Having it attached to uifield = 
"dockPanel" allows me to read different properties of the DockLayoutPanel, 
but when I try to modify it (by adding something like HTMLPanel to the 
east) has no effect. What is wrong?

Thank you. 

-- 
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: Layout principles for UIBinder with Polymer elements

2016-01-06 Thread vadim
Thank you for response N Troncoso,

I have figured out that none of my assumptions were true. If I don't give 
width/heights as parameters for DockLayoutPanel it is still present in 
document DOM, but not visible. The reason for that is somehow depends from 
the widget I put into it. For example:



Test1


 




Will print anchor "Test1" in the north, but "Login" input will be 
invisible. If I try to replace "Login" with Anchor like:



Test1


Test2




None of the widgets will be visible. Somehow east panel widget influence 
north panel. I don't get UI building logic with DockLayoutPanel when such 
simple examples are not working as I have expected.

-- 
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: Layout principles for UIBinder with Polymer elements

2016-01-06 Thread vadim
I am using UIBinder and MVP to construct View.  View ui.xml file is very 
simple (with DockLayoutPanel on the top):



.panelHeight {
height: 300px;
}



Empty


Not empty 




DockLayoutPanel is not a part of the other panel, but in JAVA EntyPoint I 
have this:

private SimplePanel appWidget = new SimplePanel();

.
activityManager.setDisplay(appWidget);
.
RootPanel.get().add(appWidget);



So, I guess it should be part of SimplePanel isn't it?

I have noticed, that if I define height of the DockLayoutPanel manually (in 
PX) I am able to see all the components (look style block in example). 
DockLayoutPanel automatically takes full width, but not height. And I don't 
know how get full height automatically as well. 

-- 
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: Layout principles for UIBinder with Polymer elements

2016-01-06 Thread vadim
DockLayoutPanel does not implement AcceptsOneWidget interface and thus can 
not be passed to ActivityManager as parameter for 
activityManager.setDisplay(appWidget). Without ActivityManager display 
function widget is not shown. It seems tricky.


-- 
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: Layout principles for UIBinder with Polymer elements

2016-01-06 Thread Frank
This look to me because one of the parent panels of the docklayout is not a 
layout panel.
When one of the parent panel is not a layoutpanel the height gets broken.

-- 
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: Layout principles for UIBinder with Polymer elements

2016-01-06 Thread N Troncoso
What is your DockLayoutPanel in? You should be putting it in a 
RootLayoutPanel, or some other LayoutPanel.

-- 
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: Layout principles for UIBinder with Polymer elements

2016-01-06 Thread Thomas Broyer


On Wednesday, January 6, 2016 at 2:55:02 PM UTC+1, va...@ant.ee wrote:
>
> DockLayoutPanel does not implement AcceptsOneWidget interface and thus can 
> not be passed to ActivityManager as parameter for 
> activityManager.setDisplay(appWidget). Without ActivityManager display 
> function widget is not shown. It seems tricky.
>

Use SimpleLayoutPanel instead of SimplePanel, and RootLayoutPanel instead 
of RootPanel; see ProvidesResize/RequiresResize all the way down, 
uninterrupted chain.

-- 
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: Layout principles for UIBinder with Polymer elements

2016-01-06 Thread vadim
Thank you, Thomas. Your advice helped again.  Now I know the main UI layout 
building principle -- do not mix *Panels with *LayoutPanels!  :)

On Wednesday, January 6, 2016 at 6:12:48 PM UTC+2, Thomas Broyer wrote:
>
>
> Use SimpleLayoutPanel instead of SimplePanel, and RootLayoutPanel instead 
> of RootPanel; see ProvidesResize/RequiresResize all the way down, 
> uninterrupted chain.
>

-- 
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: Layout principles for UIBinder with Polymer elements

2016-01-05 Thread N Troncoso
The DockLayoutPanel is designed to take up the whole screen. You only have 
to define the size of the north/south/east/west panels (or don't give them 
a size for them to not appear). The center takes up the rest of the 
available space.

As for Polymer, look at the catalog for the elements you want to style. 
Here is paper-button for 
example: https://elements.polymer-project.org/elements/paper-button

On Monday, December 28, 2015 at 1:44:16 PM UTC-5, va...@ant.ee wrote:
>
> Hello all, 
>
>   After a number of experiments I have decided to build UI using 
> UIBuilder and Polymer elements library. Tutorials went well and I have 
> build my own interface mixing standard GWT DockLayotPanel (for widget 
> placement) and paper/iron elements from the library. I am not very 
> experienced at CSS/UI building and feel that I am doing something wrong, 
> because:
>
>1. DockLayotPanel requires pre-defined size of the panel in pixels. 
>Otherwise it is not shown at all. I read that required property is "unit" 
>and I can omit width and height, but it doesn't seem so.
>2. Polymer elements somehow ignore styles. I can't set colour of the 
>elements, for example. I have tried to define style within HTMLPanel (like 
>it is in tutorial 

Layout principles for UIBinder with Polymer elements

2015-12-28 Thread vadim
Hello all, 

  After a number of experiments I have decided to build UI using 
UIBuilder and Polymer elements library. Tutorials went well and I have 
build my own interface mixing standard GWT DockLayotPanel (for widget 
placement) and paper/iron elements from the library. I am not very 
experienced at CSS/UI building and feel that I am doing something wrong, 
because:

   1. DockLayotPanel requires pre-defined size of the panel in pixels. 
   Otherwise it is not shown at all. I read that required property is "unit" 
   and I can omit width and height, but it doesn't seem so.
   2. Polymer elements somehow ignore styles. I can't set colour of the 
   elements, for example. I have tried to define style within HTMLPanel (like 
   it is in tutorial 

Re: Organizing project files with UIBinder

2015-12-15 Thread Rogelio Flores
I've done both approaches. I started creating UiBinder ui.xml files in the 
resources folder separate from java files (same package name). This helps 
to cleanly separate .java from other types of files just like I do for 
css/etc. However, I think both eclipse and IntelliJ create the pair of 
files (.java, and ui.xml) in the same folder by default (using 
New->UiBinder...) which is an annoyance if you have to move one every time, 
unless you create them from scratch. Haven't investigated if this default 
behavior can be modified, because I changed my ways and now put them on the 
same folder along with .java files because I've also found that IntelliJ 
sometimes complains about them being separate and even if it still works, I 
hate seeing some warnings/red text in the editor. It's just more practical 
to have them together.

On Tuesday, December 15, 2015 at 1:52:50 AM UTC-7, Thomas Broyer wrote:
>
>
>
> On Tuesday, December 15, 2015 at 4:43:09 AM UTC+1, Luke Last wrote:
>>
>> Here's my quick stab at these, hope it helps.
>>
>> 1. I've never seen this done differently, and personally I find it 
>> helpful to have them in the same package.
>>
>
> The need to be in the same package (unless you use @UiTemplate), but that 
> does not necessarily mean they have to be in the same folder.
> I personally like to put everything in src/main/java but YMMV; others 
> prefer src/main/resources.
>
> Anyway, this is a Maven/Gradle issue, GWT proper doesn't care (as long as 
> both are somehow in the classpath)
>

-- 
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: Organizing project files with UIBinder

2015-12-15 Thread vadim
Thank you Thomas,

   I did as you said - put my resources under src/main/resources with 
the same package name. I have better project layout under Eclipse and maven 
puts them into the same package during deploy, so application runs without 
error.


On Tuesday, December 15, 2015 at 10:52:50 AM UTC+2, Thomas Broyer wrote:
>
>
>
> On Tuesday, December 15, 2015 at 4:43:09 AM UTC+1, Luke Last wrote:
>>
>> Here's my quick stab at these, hope it helps.
>>
>> 1. I've never seen this done differently, and personally I find it 
>> helpful to have them in the same package.
>>
>
> The need to be in the same package (unless you use @UiTemplate), but that 
> does not necessarily mean they have to be in the same folder.
> I personally like to put everything in src/main/java but YMMV; others 
> prefer src/main/resources.
>
> Anyway, this is a Maven/Gradle issue, GWT proper doesn't care (as long as 
> both are somehow in the classpath)
>

-- 
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: Organizing project files with UIBinder

2015-12-15 Thread Thomas Broyer


On Tuesday, December 15, 2015 at 4:43:09 AM UTC+1, Luke Last wrote:
>
> Here's my quick stab at these, hope it helps.
>
> 1. I've never seen this done differently, and personally I find it helpful 
> to have them in the same package.
>

The need to be in the same package (unless you use @UiTemplate), but that 
does not necessarily mean they have to be in the same folder.
I personally like to put everything in src/main/java but YMMV; others 
prefer src/main/resources.

Anyway, this is a Maven/Gradle issue, GWT proper doesn't care (as long as 
both are somehow in the classpath)

-- 
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: Organizing project files with UIBinder

2015-12-15 Thread vadim
Thank you for response Luke,

   I am going to build project using Polymer UI elements and MVP. Thus 
I have no option other than GWT 2.8.0 and GSS. CSS is not working for this 
type of projects (or better to say - they work in auto conversion mode). I 
am afraid that if I keep .java, .gss, .ui.xml files in the same packages 
they become rather big. There is also kind of "scare" to mix different 
types of files in JAVA packages. Shouldn't JAVA packages be only for .java 
files and all the rest of the stuff -- somewhere at /resources?  This is my 
main question.


On Tuesday, December 15, 2015 at 5:43:09 AM UTC+2, Luke Last wrote:
>
> Here's my quick stab at these, hope it helps.
>
> 1. I've never seen this done differently, and personally I find it helpful 
> to have them in the same package.
> 2. UIBinder is only client side.
> 3. UIBinder will work with classic CSS. You could also consider using 
> CssResource (gss) or using gss embedded in UIBinder templates.
>
> On Monday, December 14, 2015 at 8:31:14 AM UTC-5, va...@ant.ee wrote:
>>
>> Hello all,
>>
>> I have read the chapter 
>> http://www.gwtproject.org/doc/latest/DevGuideOrganizingProjects.html 
>> about GWT project layout, but still have some questions:
>>
>>1. View .ui.xml files are "by default" located at the same folder 
>>where .java files are. Is it better to move them to some "resource" 
>>package?  How to bind .ui.xml in corresponding composite .java if so?
>>2. Going through UIBuinder example there is only "client" side that 
>>is executed at client browser. Is server side remains pretty much the 
>> same 
>>as described at 
>>http://www.gwtproject.org/doc/latest/DevGuideServerCommunication.html 
>>? 
>>3. If I have root .css (gss) at my WEB-INF -- will this resource be 
>>accessible for all .ui.xml modules ?
>>
>> 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: Organizing project files with UIBinder

2015-12-14 Thread Luke Last
Here's my quick stab at these, hope it helps.

1. I've never seen this done differently, and personally I find it helpful 
to have them in the same package.
2. UIBinder is only client side.
3. UIBinder will work with classic CSS. You could also consider using 
CssResource (gss) or using gss embedded in UIBinder templates.

On Monday, December 14, 2015 at 8:31:14 AM UTC-5, va...@ant.ee wrote:
>
> Hello all,
>
> I have read the chapter 
> http://www.gwtproject.org/doc/latest/DevGuideOrganizingProjects.html 
> about GWT project layout, but still have some questions:
>
>1. View .ui.xml files are "by default" located at the same folder 
>where .java files are. Is it better to move them to some "resource" 
>package?  How to bind .ui.xml in corresponding composite .java if so?
>2. Going through UIBuinder example there is only "client" side that is 
>executed at client browser. Is server side remains pretty much the same as 
>described at 
>http://www.gwtproject.org/doc/latest/DevGuideServerCommunication.html 
>? 
>3. If I have root .css (gss) at my WEB-INF -- will this resource be 
>accessible for all .ui.xml modules ?
>
> 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.


Organizing project files with UIBinder

2015-12-14 Thread vadim
Hello all,

I have read the chapter 
http://www.gwtproject.org/doc/latest/DevGuideOrganizingProjects.html about 
GWT project layout, but still have some questions:

   1. View .ui.xml files are "by default" located at the same folder where 
   .java files are. Is it better to move them to some "resource" package?  How 
   to bind .ui.xml in corresponding composite .java if so?
   2. Going through UIBuinder example there is only "client" side that is 
   executed at client browser. Is server side remains pretty much the same as 
   described at 
   http://www.gwtproject.org/doc/latest/DevGuideServerCommunication.html ? 
   3. If I have root .css (gss) at my WEB-INF -- will this resource be 
   accessible for all .ui.xml modules ?

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.


[gwt-contrib] Re: uibinder/safehtml disagreement on xlink:href attribute

2015-11-19 Thread Thomas Broyer
Well, three things:

   - There's an impedance mismatch between UiBinder (using XML with 
   namespaces) and HTML. UiBinder has not been designed to output "namespaced 
   HTML", and actually there's no such thing as "namespaced HTML" (SVG-in-HTML 
   hardcodes the "xlink:href" name to translate to an "href" attribute in the 
   XLink namespace in the InfoSet: 
   
https://html.spec.whatwg.org/multipage/syntax.html#adjust-foreign-attributes). 
   To have UiBinder play well in those cases, it'd have to somehow follow the 
   "InfoSet to HTML syntax" rules: 
   https://html.spec.whatwg.org/multipage/syntax.html#serialising-html-fragments
   - UiBinder should probably converge to use jsilver's 
   HtmlUtils.isAttributeUri and co. so we at least have the same rule 
   everywhere.
   - JSilver should adjust to those special cases like "xhtml:href", and 
   UiBinder should pass the appropriate name to JSilver (following the same 
   "InfoSet to HTML syntax" mapping rules).

That doesn't look like an big effort (though too late for 2.8 I'm afraid…)

On Wednesday, November 18, 2015 at 3:49:03 PM UTC+1, Stephen Haberman wrote:
>
> I'm attempting to use icons in an svg file in a ui.xml file like:
>
> 
>
> But with a variable, so:
>
> 
>
> However, because of the xlink namespace (which the browser requires, 
> AFAICT), UiBinder and SafeHtml end up disagreeing on whether this is a 
> SafeUri-requiring attribute.
>
> E.g. here is the UiBinder logic, which ignores namespace because it uses 
> local name:
>
>
> https://github.com/gwtproject/gwt/blob/master/user/src/com/google/gwt/uibinder/elementparsers/HtmlInterpreter.java#L48
>
> And here is the SafeHtml logic, which does looks at namespace+attribute 
> due to the underlying jsilver implementation:
>
>
> https://github.com/gwtproject/gwt/blob/master/user/src/com/google/gwt/safehtml/rebind/SafeHtmlTemplatesImplMethodCreator.java#L301
>
>
> https://code.google.com/p/jsilver/source/browse/trunk/src/com/google/streamhtmlparser/impl/HtmlParserImpl.java#237
>
> So, it ends up failing because UiBinder generated SafeUri, but SafeHtml 
> says "this attribute shouldn't be a SafeUri, did you SafeHtml or String".
>
> I'm wondering how to make them agree...while in this scenario it is true 
> that xlink:href is a URI, so UiBinder was right, in theory there could be 
> other namespaces where that is not the case, and the heuristic of "any 
> attribute named href is a uri, regardless of namespace" could be wrong.
>
> Any great ideas?
>
> ...I suppose the other option is to just turn off safe html templates for 
> now.
>
> - Stephen
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/15c92aa1-5e1f-49f1-8997-2d60db6d6505%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Mixing Html and Widgets in UiBinder

2015-09-23 Thread Jens


> @Jens
> Any idea what will be UI Binder replacement in GWT 3.0 and above ? 
>

Well I hope that UiBinder can be made GWT 3.0 friendly however that would 
require code changes in each app (you would need to place annotation on 
your UiBinder sub interface and replace GWT.create() calls). Also a good 
way to trigger APT when resource files (*ui.xml) are updated would be 
required. However before that Widgets/Elements would need to be ported to 
GWT 3 as well.

Alternatives might be Singular once it is released or Elemento which is 
already based on annotation processors. Elemento is pretty similar to Errai 
UI and I would guess its kind of a proof of concept how to move Errai, or 
parts of it, to GWT 3.

-- J.

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


Re: Mixing Html and Widgets in UiBinder

2015-09-23 Thread Andrei Preda
Thank you very much for the clarification and hint!

On Tuesday, September 22, 2015 at 9:04:29 PM UTC+2, Andrei Preda wrote:
>
> I tried to figure this out for some time now and I hope someone can help 
> me to figure this out, because I have no idea what I am missing.
>
> I'm using Gwt 2.7 and I want to mix html and my own widgets inside the 
> UiBinder as following:
> 
> 
>
>
>
> 
> 
>
> In this case SomeOtherObject throws "[ERROR] Not allowed in an HTML 
> context:"
>
> I am puzzled because the following configurations work and the above 
> should be a combination of both:
> 
>    
> 
> 
> 
> 
>
> I have not worked much with html directly inside UiBinder and I don't know 
> if my configuration is even possible, so I hope someone can clarify.
>
> Thank you for the help,
> Andrei
>

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


Re: Mixing Html and Widgets in UiBinder

2015-09-23 Thread Alain Ekambi
@Jens
Any idea what will be UI Binder replacement in GWT 3.0 and above ?

On 23 September 2015 at 10:01, Andrei Preda <hadesskywal...@gmail.com>
wrote:

> Thank you very much for the clarification and hint!
>
> On Tuesday, September 22, 2015 at 9:04:29 PM UTC+2, Andrei Preda wrote:
>>
>> I tried to figure this out for some time now and I hope someone can help
>> me to figure this out, because I have no idea what I am missing.
>>
>> I'm using Gwt 2.7 and I want to mix html and my own widgets inside the
>> UiBinder as following:
>> 
>> 
>>
>>
>>
>> 
>> 
>>
>> In this case SomeOtherObject throws "[ERROR] Not allowed in an HTML
>> context:"
>>
>> I am puzzled because the following configurations work and the above
>> should be a combination of both:
>> 
>>
>> 
>> 
>> 
>> 
>>
>> I have not worked much with html directly inside UiBinder and I don't
>> know if my configuration is even possible, so I hope someone can clarify.
>>
>> Thank you for the help,
>> Andrei
>>
> --
> 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.
>



-- 

Alain Ekambi

Co-Founder

Ahomé Innovation Technologies

http://www.ahome-it.com/ <http://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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Mixing Html and Widgets in UiBinder

2015-09-22 Thread Andrei Preda
I tried to figure this out for some time now and I hope someone can help me 
to figure this out, because I have no idea what I am missing.

I'm using Gwt 2.7 and I want to mix html and my own widgets inside the 
UiBinder as following:


   
   
   



In this case SomeOtherObject throws "[ERROR] Not allowed in an HTML 
context:"

I am puzzled because the following configurations work and the above should 
be a combination of both:

   





I have not worked much with html directly inside UiBinder and I don't know 
if my configuration is even possible, so I hope someone can clarify.

Thank you for the help,
Andrei

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


Re: Mixing Html and Widgets in UiBinder

2015-09-22 Thread Jens
That would only work by using a custom element parser for UiBinder. However 
that API is private inside UiBinder, so you can not provide your own. So 
when your custom widget implements HasText, HasHTML and HasWidgets then you 
can only be in one of these contexts but you can not mix them.

In your above example the  element should be part of your SomeObject 
widget. If you need to place child widgets in specific sections of your 
parent widget then @UiChild is pretty helpful. With @UiChild you can do 
something like


  
   
   
   
   
   


Hope that helps

-- J.

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


GWT MVP and UiBinder Question

2015-08-28 Thread Abel Oszwald
Hello,

I read the documentation of MVP and i have a question about UiBinder 
ClickListener.
Is it make sense if i define the ClickListener in the UiBinder java file 
like in the docs,
which in turn call the presenter.OnItemClicked() or i define the 
Clicklistener in Presenter 
where all the logic is and from the UiBinder java, i just define methods 
which return only 
the button for example, and in the Presenter i call those methods and 
define the ClickListener
for that button? So in the UiBinder java file i only have @UiField and a 
couple 
methods which returns those UiFIelds.

Thank you!

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-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: GWT MVP and UiBinder Question

2015-08-28 Thread Alain Ekambi
This is how we do it.
Easy to understand. Easy to maintain

https://www.youtube.com/watch?v=kilmaSRq49g


On 28 August 2015 at 12:43, Abel Oszwald oszwalda...@gmail.com wrote:

 Hello,

 I read the documentation of MVP and i have a question about UiBinder
 ClickListener.
 Is it make sense if i define the ClickListener in the UiBinder java file
 like in the docs,
 which in turn call the presenter.OnItemClicked() or i define the
 Clicklistener in Presenter
 where all the logic is and from the UiBinder java, i just define methods
 which return only
 the button for example, and in the Presenter i call those methods and
 define the ClickListener
 for that button? So in the UiBinder java file i only have @UiField and a
 couple
 methods which returns those UiFIelds.

 Thank you!

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to google-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.




-- 

Alain Ekambi

Co-Founder

Ahomé Innovation Technologies

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

-- 
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: UiBinder + CssResource + @ClassName = Error

2015-08-17 Thread Thomas Broyer


On Monday, August 17, 2015 at 6:18:05 PM UTC+2, DaveC wrote:

 I get the same error if I use {style.defaultStyle}.


Then I guess maybe @ClassName is not supported with implicit CssResources 
in UiBinder (aka ui:style)…
 

 Could you clarify why {style.panel-default} is not a valid value?


Things between {} are converted to Java method calls. The value before the 
first . is a @UiField/ui:field (includes ui:style field=, ui:with 
field=, etc. the fact you can use 'style' here is because ui:style has 
an implicit field=style), then each part after the first dot is simply 
suffixed with a pair of parens, such that {style.defaultStyle} is turned 
into style.defaultStyle(). As you can see, {style.panel-default} would 
produce invalid Java code.

See 
http://www.gwtproject.org/doc/latest/DevGuideUiBinder.html#Hello_Stylish_World, 
and 
http://www.gwtproject.org/doc/latest/DevGuideUiBinder.html#Using_an_external_resource
 
where this is more apparent (though I admit not explicitly described; only 
through examples)

-- 
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: UiBinder + CssResource + @ClassName = Error

2015-08-17 Thread DaveC
I get the same error if I use {style.defaultStyle}. Could you clarify 
why {style.panel-default} is not a valid value?

Thanks.

On Saturday, 15 August 2015 20:37:57 UTC+1, Thomas Broyer wrote:

 Have you tried using {style.defaultStyle} in your attribute? 
 {style.panel-default} is not a valid value AFAICT, but maybe it'd be 
 detected only later (and is hidden by the current error)

 On Wednesday, August 5, 2015 at 11:28:37 AM UTC+2, DaveC wrote:

 Hi,

 I have the following UiBinder:

 !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 type=com.saaconsultants.gwt.ui.test.client.Main.Style
 .panel-default {
 background: grey;
 }
 /ui:style
 g:HTMLPanel addStyleNames={style.panel-default}Hello World!
 /g:HTMLPanel
 /ui:UiBinder 

 and CssResource:

 public interface Style extends CssResource {
  @ClassName(panel-default)
  String defaultStyle();
 }

 When I compile the above code I get an error stating The following 
 obfuscated style classes were missing from the source CSS 
 file: panel-default: Fix by adding .panel-default{}.

 Any idea what I'm doing wrong?

 Cheers,
 Dave



-- 
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: UiBinder + CssResource + @ClassName = Error

2015-08-15 Thread Shiv Kumar
Even i faced the same problem... if you got solution please give some ints 
to solve this, im new to GWT


On Wednesday, August 5, 2015 at 2:58:37 PM UTC+5:30, DaveC wrote:

 Hi,

 I have the following UiBinder:

 !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 type=com.saaconsultants.gwt.ui.test.client.Main.Style
 .panel-default {
 background: grey;
 }
 /ui:style
 g:HTMLPanel addStyleNames={style.panel-default}Hello World!
 /g:HTMLPanel
 /ui:UiBinder 

 and CssResource:

 public interface Style extends CssResource {
  @ClassName(panel-default)
  String defaultStyle();
 }

 When I compile the above code I get an error stating The following 
 obfuscated style classes were missing from the source CSS 
 file: panel-default: Fix by adding .panel-default{}.

 Any idea what I'm doing wrong?

 Cheers,
 Dave


-- 
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: UiBinder + CssResource + @ClassName = Error

2015-08-15 Thread Thomas Broyer
Have you tried using {style.defaultStyle} in your attribute? 
{style.panel-default} is not a valid value AFAICT, but maybe it'd be 
detected only later (and is hidden by the current error)

On Wednesday, August 5, 2015 at 11:28:37 AM UTC+2, DaveC wrote:

 Hi,

 I have the following UiBinder:

 !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 type=com.saaconsultants.gwt.ui.test.client.Main.Style
 .panel-default {
 background: grey;
 }
 /ui:style
 g:HTMLPanel addStyleNames={style.panel-default}Hello World!
 /g:HTMLPanel
 /ui:UiBinder 

 and CssResource:

 public interface Style extends CssResource {
  @ClassName(panel-default)
  String defaultStyle();
 }

 When I compile the above code I get an error stating The following 
 obfuscated style classes were missing from the source CSS 
 file: panel-default: Fix by adding .panel-default{}.

 Any idea what I'm doing wrong?

 Cheers,
 Dave


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


UiBinder + CssResource + @ClassName = Error

2015-08-05 Thread DaveC
Hi,

I have the following UiBinder:

!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 type=com.saaconsultants.gwt.ui.test.client.Main.Style
.panel-default {
background: grey;
}
/ui:style
g:HTMLPanel addStyleNames={style.panel-default}Hello World!
/g:HTMLPanel
/ui:UiBinder 

and CssResource:

public interface Style extends CssResource {
 @ClassName(panel-default)
 String defaultStyle();
}

When I compile the above code I get an error stating The following 
obfuscated style classes were missing from the source CSS 
file: panel-default: Fix by adding .panel-default{}.

Any idea what I'm doing wrong?

Cheers,
Dave

-- 
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: How to get autocomplete of CSS3 properties on Eclipse inside the ui:style tag of GWT UiBinder?

2015-07-16 Thread Gilberto
Well, after more than one month I asked this question on StackOverflow I 
still got no answers.

It must be something so stupid to find out that no one took the time to 
answer it.

Oh well...

I'll keep using the old CSS2 content assist on Eclipse till the UiBinder is 
dead on 3.0.

On Tuesday, June 23, 2015 at 3:17:48 PM UTC-3, Gilberto wrote:

 (Cross-posted from StackOverflow: 
 http://stackoverflow.com/questions/30823483/how-to-get-autocomplete-of-css3-properties-on-eclipse-inside-the-uistyle-tag
  
 - I got 0 answers and comments there so far)

 I can enable autocomplete of CSS3 properties for .css and .gss files on 
 Eclipse by following this answer 
 https://www.eclipse.org/forums/index.php?t=msgth=783118goto=1388492#msg_1388492
  
 by Nitin DahyabhaiFriend:

 The default profile in Luna is still CSS2. Bring up the *Properties* 
 dialog for your web project and you can change the default CSS profile for 
 that project on the *Web Content Settings* page. If the CSS file is not 
 in a web project, or if you don't want to use the project default, you can 
 also set it using the file's *Properties* dialog (also *Web Content 
 Settings* page).

 ... but that doesn't enable the autocompletion of CSS3 properties (such as 
 background-position, border-radius and so on) inside *.ui.xml files (GWT 
 UiBinder). For example:


 ui:style
 .randomStuff {
 background-repeat: no-repeat;
 background-position: center;
 background-s ctrl+space... no luck!
 }/ui:style

 How can I enable autocomplete of CSS3 inside those files?



-- 
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: How to get autocomplete of CSS3 properties on Eclipse inside the ui:style tag of GWT UiBinder?

2015-07-16 Thread Jens
*.ui.xml files have their own UiBinder editor in Eclipse provided by the 
GPE plugin. It might be that your Eclipse settings regarding CSS simply do 
not take effect in that editor.

As a workaround you could probably avoid using ui:style inline styles and 
instead create a *.gss file for it, ui:style src=style.gss /. Then you 
might need to tell Eclipse that *.gss are actually css files which sounds 
doable (I use IntelliJ so I don't know out of my head if that is possible 
in eclipse)

-- 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: How to get autocomplete of CSS3 properties on Eclipse inside the ui:style tag of GWT UiBinder?

2015-07-16 Thread Gilberto
Thanks Jens for the answer.

Ok, I was missing the GWT DIY Policy™ on this one =)

I'll take a look and update this thread and the StackOverflow question if I 
get something.

On Thursday, July 16, 2015 at 3:07:52 PM UTC-3, Jens wrote:

 You could also use the open source fork of GPE

 https://github.com/gwt-plugins/gwt-eclipse-plugin

 and figure out how to patch it to provide CSS 3 autocompletion.

 -- 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: How to get autocomplete of CSS3 properties on Eclipse inside the ui:style tag of GWT UiBinder?

2015-07-16 Thread Gilberto
Issue reported: https://github.com/gwt-plugins/gwt-eclipse-plugin/issues/79

-- 
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: How to get autocomplete of CSS3 properties on Eclipse inside the ui:style tag of GWT UiBinder?

2015-07-16 Thread Jens
You could also use the open source fork of GPE

https://github.com/gwt-plugins/gwt-eclipse-plugin

and figure out how to patch it to provide CSS 3 autocompletion.

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


How to get autocomplete of CSS3 properties on Eclipse inside the ui:style tag of GWT UiBinder?

2015-06-23 Thread Gilberto
(Cross-posted from StackOverflow: 
http://stackoverflow.com/questions/30823483/how-to-get-autocomplete-of-css3-properties-on-eclipse-inside-the-uistyle-tag
 
- I got 0 answers and comments there so far)

I can enable autocomplete of CSS3 properties for .css and .gss files on 
Eclipse by following this answer 
https://www.eclipse.org/forums/index.php?t=msgth=783118goto=1388492#msg_1388492
 
by Nitin DahyabhaiFriend:

The default profile in Luna is still CSS2. Bring up the *Properties* dialog 
for your web project and you can change the default CSS profile for that 
project on the *Web Content Settings* page. If the CSS file is not in a web 
project, or if you don't want to use the project default, you can also set 
it using the file's *Properties* dialog (also *Web Content Settings* page).

... but that doesn't enable the autocompletion of CSS3 properties (such as 
background-position, border-radius and so on) inside *.ui.xml files (GWT 
UiBinder). For example:


ui:style
.randomStuff {
background-repeat: no-repeat;
background-position: center;
background-s ctrl+space... no luck!
}/ui:style

How can I enable autocomplete of CSS3 inside those files?

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


  1   2   3   4   5   6   7   8   9   10   >