Super Dev Mode stopped working in Chrome

2017-01-12 Thread N Troncoso
Super Dev Mode is no longer working for me in Chrome. It used to give me 
the little shield in the address bar that let me accept mixed content. That 
got annoying, so I added the "--allow-running-insecure-content" parameter 
and it didn't make me go through that anymore.

Now, in Chrome 55, the shield looks different, and even when I click *Load 
Unsafe Scripts*, I get an error in the console like this:

"Mixed Content: The page at 'https://localhost:8443/weboffice/' was loaded 
over HTTPS, but requested an insecure script 
'http://localhost:9876/Home/FFC7A6090089FC6C17C3AE41F1F2F628.cache.js'. 
This request has been blocked; the content must be served over HTTPS."

The only thing I found so far is to add the parameter 
"--disable-web-security", but that didn't work.

Does anyone have a work around for this issue? I am using SSL.

-- 
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: GSS changes aren't recognized in SDM

2016-10-05 Thread N Troncoso
Oh. I didn't know that was needed. It's a little inconvenient, but it's 
better than restarting the code server. Thanks!

On Wednesday, October 5, 2016 at 11:28:39 AM UTC-4, Thomas Broyer wrote:
>
> Do you "mvn process-resources" when you change something in 
> src/main/resources?
>
> On Wednesday, October 5, 2016 at 2:12:07 PM UTC+2, N Troncoso wrote:
>>
>> I'm starting a new project using GWT 2.8-rc2, and am setting up my GSS 
>> resources. It all works and the pages render correctly, but if I change a 
>> GSS file, the changes aren't loading when I refresh the browser.
>>
>> I have my ResourceBundles in 
>> *src/main/java/com/company/project/client/resources*
>>
>> And I have my gss files in 
>> *src/main/resources/com/company/project/client/resources/gss*
>>
>> So, when setting up my ResourceBundle, I do *@Source("gss/style.gss")*
>>
>> Just in case this is relevant, here are the properties in my gwt.xml file 
>> for GSS:
>>
>> 
>> > "strict" />
>>
>> This works, but like I said, if I make a change in style.gss, the change 
>> is not loaded when refreshing the browser. I have to stop the codeserver 
>> and restart it
>>
>> I don't think this matters, but the way I set up my resources is to have 
>> a CssResource per gss file. Then, I have a singleton Resource.java class. 
>> In it, I have a single ClientBundle that hooks each CssResource to its gss 
>> file. Then, I create static methods for each Resource. It looks like this:
>>
>> public class Resources
>> {
>> public static interface ResourceBundle extends ClientBundle
>> {
>> @Source("gss/flex.gss")
>> FlexStyleResource flex();
>>
>> @Source("gss/colors.gss")
>> ColorResource col();
>>
>> @Source("gss/fonts.gss")
>> FontResource font();
>>
>> @Source("gss/widgets.gss")
>> WidgetResource widget();
>> }
>>
>> private static Resources INSTANCE;
>>
>> public synchronized static Resources get()
>> {
>> if (INSTANCE == null)
>> {
>> INSTANCE = new Resources();
>> }
>>
>> return INSTANCE;
>> }
>>
>> public static FlexStyleResource flex()
>> {
>> return get().resources.flex();
>> }
>>
>> public static ColorResource col()
>> {
>> return get().resources.col();
>> }
>>
>> public static FontResource font()
>> {
>> return get().resources.font();
>> }
>>
>> public static WidgetResource widget()
>> {
>> return get().resources.widget();
>> }
>>
>> private final ResourceBundle resources;
>>
>> public Resources()
>> {
>> resources = GWT.create(ResourceBundle.class);
>> }
>>
>> public void init()
>> {
>> resources.flex().ensureInjected();
>> resources.col().ensureInjected();
>> resources.widget().ensureInjected();
>> resources.font().ensureInjected();
>> }
>> }
>>
>> And so, when I need something, I can do *Resources.col().primaryColor()* for 
>> example. *Note*: I call init() in my EntryPoint.onModuleLoad()
>>
>> Thanks in advance for any advice
>>
>

-- 
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: NoClassDefFoundError (HttpSessionIdListener) when launching SDM, after switching from gwt-2.8.0-beta1 to rc2

2016-10-05 Thread N Troncoso
For anyone with the same issue as me, I had to remove the 
*provided* in the dependency management for javax.servlet

On Monday, October 3, 2016 at 9:22:48 AM UTC-4, N Troncoso wrote:
>
>
> I'm having the same issue as Boris, except my dependency tree shows that 
> I'm using 3.1:
>
> [INFO] +- com.google.gwt:gwt-user:jar:2.8.0-rc2:compile
> [INFO] |  \- javax.servlet:javax.servlet-api:jar:3.1.0:provided (scope 
> managed from compile)
> [INFO] \- com.google.gwt:gwt-dev:jar:2.8.0-rc2:compile
> [INFO]\- org.eclipse.jetty:apache-jsp:jar:9.2.14.v20151106:compile
> [INFO]   +- org.eclipse.jetty:jetty-server:jar:9.2.14.v20151106:compile
> [INFO]   |  \- (javax.servlet:javax.servlet-api:jar:3.1.0:provided - 
> scope managed from compile; omitted for duplicate)
> [INFO]   \- (javax.servlet:javax.servlet-api:jar:3.1.0:provided - 
> scope managed from compile; omitted for duplicate)
>
> The only place this is specified is in the parent pom:
>
>
> 
> 
> 
> com.google.gwt
> gwt
> 2.8.0-rc2
> pom
> import
> 
> 
> javax.servlet
> javax.servlet-api
> 3.1.0
> provided
> 
> 
> 
>
> I get the exact same error that he posted when trying to run the 
> codeserver. The only difference is that he's using 
> *gwt-maven-plugin:1.0-rc-4* and I'm using *gwt-maven-plugin:1.0-rc-6*
>

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


GSS changes aren't recognized in SDM

2016-10-05 Thread N Troncoso
I'm starting a new project using GWT 2.8-rc2, and am setting up my GSS 
resources. It all works and the pages render correctly, but if I change a 
GSS file, the changes aren't loading when I refresh the browser.

I have my ResourceBundles in 
*src/main/java/com/company/project/client/resources*

And I have my gss files in 
*src/main/resources/com/company/project/client/resources/gss*

So, when setting up my ResourceBundle, I do *@Source("gss/style.gss")*

Just in case this is relevant, here are the properties in my gwt.xml file 
for GSS:




This works, but like I said, if I make a change in style.gss, the change is 
not loaded when refreshing the browser. I have to stop the codeserver and 
restart it

I don't think this matters, but the way I set up my resources is to have a 
CssResource per gss file. Then, I have a singleton Resource.java class. In 
it, I have a single ClientBundle that hooks each CssResource to its gss 
file. Then, I create static methods for each Resource. It looks like this:

public class Resources
{
public static interface ResourceBundle extends ClientBundle
{
@Source("gss/flex.gss")
FlexStyleResource flex();

@Source("gss/colors.gss")
ColorResource col();

@Source("gss/fonts.gss")
FontResource font();

@Source("gss/widgets.gss")
WidgetResource widget();
}

private static Resources INSTANCE;

public synchronized static Resources get()
{
if (INSTANCE == null)
{
INSTANCE = new Resources();
}

return INSTANCE;
}

public static FlexStyleResource flex()
{
return get().resources.flex();
}

public static ColorResource col()
{
return get().resources.col();
}

public static FontResource font()
{
return get().resources.font();
}

public static WidgetResource widget()
{
return get().resources.widget();
}

private final ResourceBundle resources;

public Resources()
{
resources = GWT.create(ResourceBundle.class);
}

public void init()
{
resources.flex().ensureInjected();
resources.col().ensureInjected();
resources.widget().ensureInjected();
resources.font().ensureInjected();
}
}

And so, when I need something, I can do *Resources.col().primaryColor()* for 
example. *Note*: I call init() in my EntryPoint.onModuleLoad()

Thanks in advance for any advice

-- 
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: NoClassDefFoundError (HttpSessionIdListener) when launching SDM, after switching from gwt-2.8.0-beta1 to rc2

2016-10-03 Thread N Troncoso

I'm having the same issue as Boris, except my dependency tree shows that 
I'm using 3.1:

[INFO] +- com.google.gwt:gwt-user:jar:2.8.0-rc2:compile
[INFO] |  \- javax.servlet:javax.servlet-api:jar:3.1.0:provided (scope 
managed from compile)
[INFO] \- com.google.gwt:gwt-dev:jar:2.8.0-rc2:compile
[INFO]\- org.eclipse.jetty:apache-jsp:jar:9.2.14.v20151106:compile
[INFO]   +- org.eclipse.jetty:jetty-server:jar:9.2.14.v20151106:compile
[INFO]   |  \- (javax.servlet:javax.servlet-api:jar:3.1.0:provided - 
scope managed from compile; omitted for duplicate)
[INFO]   \- (javax.servlet:javax.servlet-api:jar:3.1.0:provided - scope 
managed from compile; omitted for duplicate)

The only place this is specified is in the parent pom:





com.google.gwt
gwt
2.8.0-rc2
pom
import


javax.servlet
javax.servlet-api
3.1.0
provided




I get the exact same error that he posted when trying to run the 
codeserver. The only difference is that he's using 
*gwt-maven-plugin:1.0-rc-4* and I'm using *gwt-maven-plugin:1.0-rc-6*

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Ui Binder Alternatives

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

I found Errai  as one option. But, this seems 
to be an entire framework, rather than just a template system.

Any insight would be greatly appreciated. Thanks

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Maven Plugin for GWT - Access Dev Mode Remotely

2016-07-08 Thread N Troncoso
I'm using the net.ltgt.gwt.maven.gwt-maven-plugin. I didn't know the 
bindAddress was strickly for the mojo plugin. From what I can tell it's a 
fairly common parameter for opening something to a network.

I'm not sure what config you're asking about, but this is how the plugin is 
setup in the pom file:


net.ltgt.gwt.maven
gwt-maven-plugin

path.to.Home
Home



When working locally, I use https://localhost:8443 to hit dev mode and that 
works fine. From remote, I'm using https://:8443. Here's the 
message I'm getting:

<http://i.imgur.com/6Q468cM.png>

Like I said before. This is normal on the local machine. I just disable the 
security from the browser and it works. But it does not in this case.

I think that answered all your questions.

On Friday, July 8, 2016 at 1:13:19 PM UTC-4, Thomas Broyer wrote:
>
>
>
> On Friday, July 8, 2016 at 6:32:26 PM UTC+2, N Troncoso wrote:
>>
>> I need to be able to hit my dev mode machine remotely. I'm using the 
>> Maven Plugin for GWT (tbroyer version). The standard commands don't let you 
>> hit the remote machine at all.
>>
>> If I add -Dgwt.bindAddress=0.0.0.0 to the code server command:
>>
>> call mvn gwt:codeserver -pl client -am -Dgwt.bindAddress=0.0.0.0
>>
>
> net.ltgt.gwt.maven:gwt-maven-plugin, which has a gwt:codeserver goal, has 
> no property that binds to gwt.bindAddress "natively", so unless you define 
> a gwt.bindAddress property in your POM and pass -bindAddress explicitly in 
> codeserverArgs, that won't do anything.
>
> org.codehaus.mojo:gwt-maven-plugin has a gwt.bindAddress, but its goal is 
> gwt:run-codeserver.
>
> So, which one do you use, and what's your configuration?
>  
>
>> I can hit it remotely, but I get a dialog that says "Can't find code 
>> server. Please make sure it's ready". I don't know what to do to get past 
>> that.
>> On the same machine, that just means the browser is blocking insecure 
>> content. Clicking the shield in the address bar (left in FF, right in 
>> Chrome) let's you disable this.
>> I did this on the remote machine, but it still fails to load.
>>
>
> What are the URLs the browser loads or tries to load?
> Also, you may have to pass your machine's IP address or network name 
> instead of 0.0.0.0; and make sure you reach your web server with that same 
> value (I can't remember if it's really needed, but just in caseā€¦)
>

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


Maven Plugin for GWT - Access Dev Mode Remotely

2016-07-08 Thread N Troncoso
I need to be able to hit my dev mode machine remotely. I'm using the Maven 
Plugin for GWT (tbroyer version). The standard commands don't let you hit 
the remote machine at all.

If I add -Dgwt.bindAddress=0.0.0.0 to the code server command:

call mvn gwt:codeserver -pl client -am -Dgwt.bindAddress=0.0.0.0

I can hit it remotely, but I get a dialog that says "Can't find code 
server. Please make sure it's ready". I don't know what to do to get past 
that.
On the same machine, that just means the browser is blocking insecure 
content. Clicking the shield in the address bar (left in FF, right in 
Chrome) let's you disable this.
I did this on the remote machine, but it still fails to load.

Any help would be great. For reference, I'm starting tomcat like this:

call mvn tomcat7:run -pl server -am -Denv=dev

-- 
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, Firefox, and focusout

2016-04-26 Thread N Troncoso
This is a GWT issue in that I'm trying to get it to work in GWT. I've tried 
implementing the code in that link, but a GWT browser event is still not 
fired even when the javascript focusout event is fired.

On Friday, April 22, 2016 at 11:11:59 AM UTC-4, JonL wrote:
>
> This is not a GWT issue really, so let me GTFY:
>
> https://gist.github.com/nuxodin/9250e56a3ce6c0446efa
>
> On Thursday, April 21, 2016 at 1:16:00 PM UTC-7, N Troncoso wrote:
>>
>> I have an issue where an event isn't firing in Firefox, and it turns out 
>> this is because Firefox doesn't currently support the focusin and focusout 
>> events.
>>
>> This is a problem in a custom cell where I'm overriding onBrowserEvent. 
>> On the blur event, the ValueUpdater parameter is null, but it's not null on 
>> the focusout event. How can I work around this issue?
>>
>

-- 
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, Firefox, and focusout

2016-04-21 Thread N Troncoso
I have an issue where an event isn't firing in Firefox, and it turns out 
this is because Firefox doesn't currently support the focusin and focusout 
events.

This is a problem in a custom cell where I'm overriding onBrowserEvent. On 
the blur event, the ValueUpdater parameter is null, but it's not null on 
the focusout event. How can I work around this issue?

-- 
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: Unable to install GWT Developer Plugin (ver 1.0.11357) on Chrome 48

2016-01-29 Thread N Troncoso
The plugin is no longer supported. You'll need to use super dev mode. What 
version of GWT are you using? 2.7 runs SDM by default.

On Friday, January 29, 2016 at 9:11:52 AM UTC-5, Sambodhan Dhammapathee 
wrote:
>
> Hi All,
>
> I am new to web technology and preferred GWT. 
> I have install as follows:
> windows 7, Eclipse Mars 4.5.1, 
> Plugin for Eclipse 4.3 (Kepler) (Since for Mars 4.4 Luna is not working, 
> Ref- StackOverflow.com)
> GWT Developer Plugin 1.0.11357, Chrome Version 48.0.2564.97 m
>
> I am also able to generate URL :
> http://127.0.0.1:/StockWatcher.html?gwt.codesvr=127.0.0.1:9997
> However, even after restarting Eclipse and Chrome I am not able to see 
> application but still gets message that: "
> Development Mode requires the GWT Developer Plugin"
>
> Hence, please suggest if I missed anything. PFA for your reference.
> Please let me know if you need any other information.
>
> Regards
> Sambodhan
>
>

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


Cell Table keyboard navigation doesn't work in Firefox

2016-01-28 Thread N Troncoso
The CellTable has a keyboard mode to allow moving around with arrow keys. 
In Chrome, when moving to an input cell, the cell content is selected 
(hightlighted), but you can still moving to other cells until you start 
typeing.

In Firefox, the cell content does not highlight. You have to press enter to 
start typing.

Is this a known issue? Does anyone know of a work around?

-- 
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: Are there any currently developed GWT Widget Libraries?

2016-01-20 Thread N Troncoso
 I started using GWT Polymer for my Web App a few weeks ago. I had to get 
over some difficult hurdles, but I think it's really paying off. The UI is 
sleek and responsive and just overall works very well. 

It's more or less the same as GWT Material from what I can tell (they are 
both designed around Google's Material spec). GWT Polymer is really just a 
wrapper, though, for their javascript library, so it requires jsInterop.

-- 
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 Plugin for Maven with Polymer (jsinterop)

2016-01-13 Thread N Troncoso
Switching to the Maven Plugin for GWT 
, I'm unable to get GWT to 
recognize the jsinterop flag. I'm assuming not many people using this 
plugin are using jsinterop, because I can only find a single source about 
it: https://github.com/tbroyer/gwt-maven-plugin/issues/22

In which there is no answer. I've tried putting:


-XjsInteropMode
JS


-XjsInteropMode
JS


in the parent pom under the gwt-maven-plugin configuration, as well as in 
the client, as well as both. Since I'm using GWT 2.8, I've also tried the 
-generateJsInteropExports 
flag. When I try to run the application, I get:



In the codeserver logs, I see:

 Arguments: com.google.gwt.dev.codeserver.CodeServer -logLevel DEBUG 
-workDir \target\gwt\codeserver -sourceLevel 1.8 -failOnError 
-launcherDir \target\gwt\launcherDir -XjsInteropMode JS 
-allowMissingSrc -src \client\src\main\java -src 
\shared\src\main\java com.ecrsoft.supportnet.Main

 The experimental -XjsInteropMode option is deprecated and will be removed 
very soon. See https://goo.gl/uMdOQS for migration instructions.

Which tells me the flag is being recognized.

I see lines like this that make me think it's getting compiled:

[INFO] Resolving annotation for jsinterop.annotations.JsMethod
[INFO]  Resolving method $isInstance
[INFO] Resolving annotation for jsinterop.annotations.JsMethod


But it still gives me that error. I've been looking at this for several 
days. Turning on jsinterop with mojo's plugin works fine, so I have to 
determine that the issue is with this plugin. That issue I link above was 
closed back in April. Has no one at all seriously tried using this plugin 
with polymer since then? I'm only using jsinterop for Polymer, so I don't 
have any existing annotations or anything. I'm very open to suggestions. 
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: GWT Plugin for Maven with Polymer (jsinterop)

2016-01-13 Thread N Troncoso
Thanks for that. Nothing you said was the issue, but it prompted me to 
double check my GWT version. It turns out I was using 2.8 beta instead of 
SNAPSHOT. I guess your plugin doesn't work with beta? Before switching, I 
was using beta for my gwt version and snapshot for my mojo plugin version 
and everything was good. Granted, maybe the -XjsInteropMode flag was 
removed in beta, which would explain the issue. I didn't think it'd be 
removed until release.

On Wednesday, January 13, 2016 at 8:47:18 AM UTC-5, Thomas Broyer wrote:
>
>
>
> On Wednesday, January 13, 2016 at 1:34:51 PM UTC+1, N Troncoso wrote:
>>
>> Switching to the Maven Plugin for GWT 
>> <https://tbroyer.github.io/gwt-maven-plugin/>, I'm unable to get GWT to 
>> recognize the jsinterop flag. I'm assuming not many people using this 
>> plugin are using jsinterop, because I can only find a single source about 
>> it: https://github.com/tbroyer/gwt-maven-plugin/issues/22
>>
>> In which there is no answer. I've tried putting:
>>
>> 
>> -XjsInteropMode
>> JS
>> 
>> 
>> -XjsInteropMode
>> JS
>> 
>>
>> in the parent pom under the gwt-maven-plugin configuration, as well as in 
>> the client, as well as both. Since I'm using GWT 2.8, I've also tried the 
>> -generateJsInteropExports flag. When I try to run the application, I get:
>>
>> <http://i.imgur.com/0MyGN5e.png>
>>
>> In the codeserver logs, I see:
>>
>>  Arguments: com.google.gwt.dev.codeserver.CodeServer -logLevel DEBUG 
>> -workDir \target\gwt\codeserver -sourceLevel 1.8 -failOnError 
>> -launcherDir \target\gwt\launcherDir -XjsInteropMode JS 
>> -allowMissingSrc -src \client\src\main\java -src 
>> \shared\src\main\java com.ecrsoft.supportnet.Main
>>
>>  The experimental -XjsInteropMode option is deprecated and will be 
>> removed very soon. See https://goo.gl/uMdOQS for migration instructions.
>>
>> Which tells me the flag is being recognized.
>>
>> I see lines like this that make me think it's getting compiled:
>>
>> [INFO] Resolving annotation for jsinterop.annotations.JsMethod
>> [INFO]  Resolving method $isInstance
>> [INFO] Resolving annotation for jsinterop.annotations.JsMethod
>>
>>
>> But it still gives me that error. I've been looking at this for several 
>> days. Turning on jsinterop with mojo's plugin works fine, so I have to 
>> determine that the issue is with this plugin. That issue I link above was 
>> closed back in April. Has no one at all seriously tried using this plugin 
>> with polymer since then? I'm only using jsinterop for Polymer, so I don't 
>> have any existing annotations or anything. I'm very open to suggestions. 
>> Thanks.
>>
>
> jsinterop.annotations.* require -XjsInteropMode JS_RC, which BTW is now 
> the default in 2.8.0-SNAPSHOT (i;e. you don't even need to pass 
> -XjsInteropMode). The legacy "-XjsInteropMode JS" (which should be gone in 
> 2.8.0) uses com.google.gwt.core.js.* annotations.
> I don't know GWT-Polymer much (not even sure which project you're talking 
> about; gwt-polymer-elements from Vaadin?), but it's possible that they 
> moved to the new annotations but forgot to update their error message. Or 
> it might be a totally unrelated issue (like forgetting to load polymer.js)
>

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


getSession().getServletContext().getRealPath returns wrong path

2016-01-11 Thread N Troncoso
I restructured a project to use tbroyer's gwt maven plugin and split the 
code into client/shared/server modules. Since then, 
getSEssion().getServletContext().getRealPath("/") is returning 
Project\server\src\main\webapp\, when it should be returning the target 
directory. Is there something in that plugin that affects this, or is there 
a setting I can check to fix this?

-- 
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: How to Load html files through iframe

2016-01-11 Thread N Troncoso
Frame iframe = new Frame();
iframe.setUrl("path/to/file");

On Monday, December 28, 2015 at 10:23:01 AM UTC-5, Chandan Kumar Rout wrote:
>
> Hi  all.
> I want to load a html file which is in location file:///C:/test.html. 
> How i can load it in my GWT application. Is it possible or not.
>

-- 
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: getSession().getServletContext().getRealPath returns wrong path

2016-01-11 Thread N Troncoso
I am. The problem I'm getting is that I'm trying to get the path to a file, 
but getRealPath() returns null because the path doesn't exist, since I'm 
trying to find something in /resources (target) vs. 
webapp/resources (src)

On Monday, January 11, 2016 at 12:18:40 PM UTC-5, N Troncoso wrote:
>
> I restructured a project to use tbroyer's gwt maven plugin and split the 
> code into client/shared/server modules. Since then, 
> getSEssion().getServletContext().getRealPath("/") is returning 
> Project\server\src\main\webapp\, when it should be returning the target 
> directory. Is there something in that plugin that affects this, or is there 
> a setting I can check to fix this?
>

-- 
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: GWT maven plugin can't find shared sources (take 2)

2016-01-05 Thread N Troncoso
Well... upon using the debug flag, I found that I needed to add 
gwt-lib to the dependency..

-- 
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 Maven plugin can't find shared source

2016-01-05 Thread N Troncoso
I migrated a maven-gwt-plugin project to "Maven Plugin for GWT" 
(https://tbroyer.github.io/gwt-maven-plugin/). To do this, I generated a 
new project with the archetype provided. Upon simply running that 
application, it worked fine.

Then I copied client files to the client, server to server, and shared to 
shared. After getting everything sorted out and attempting to run the 
codeserver, I get a bunch of:

[ERROR] Line 65: No source code is available for type com.some.package.
shared.AClass; did you forget to inherit a required module?

I ran the codeserver via *mvn gwt:codeserver -pl client -am* and I tried *mvn 
gwt:codeserver -pl client,shared -am* to see if that would help.

These are my client shared dependencies (not changed from the default 
project):


${project.groupId}
phoenix-shared
${project.version}


${project.groupId}
phoenix-shared
${project.version}
sources


my client build section:



My client build section:




net.ltgt.gwt.maven
gwt-maven-plugin

com.ecrsoft.phoenix.client.Home
Home



org.apache.maven.plugins
maven-compiler-plugin
2.3.2

1.7
1.7






My i18n stuff is in my shared module, so I had to change the build for 
shared a bit:




maven-source-plugin


org.codehaus.mojo
gwt-maven-plugin
${gwtVersion}



i18n





com.path.to.shared.i18n.PhxMessages

com.path.to.shared.i18n.ValidationMessages



org.apache.maven.plugins
maven-compiler-plugin
2.3.2

1.7
1.7





And finally my module.gwt.xml:







 





and my Shared.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.


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 

Re: Using MVP with GWT2.7

2016-01-05 Thread N Troncoso
You could technically do that, but you'd need some way to differentiate 
between events; Maybe with an enum:

public class MyEvent extends GwtEvent
{
public static enum EventTypes
{
THIS_EVENT,
THAT_EVENT;
};

public interface Handler extends EventHandler
{
void onDispatch(MyEvent event);
}

public static final GwtEvent.Type TYPE = new 
GwtEvent.Type<>(); // NOSONAR

private final EventTypes type;
public MyEvent(EventTypes type)
{
this.type = type;
}

@Override
public GwtEvent.Type getAssociatedType()
{
return TYPE;
}

public EventTypes getType()
{
return type;
}

@Override
protected void dispatch(Handler handler)
{
handler.onDispatch(this);
}
}

I don't think this is a very good approach, though, as you lose the ability 
to pass specific parameters based on that particular kind of event.

-- 
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 maven plugin can't find shared sources (take 2)

2016-01-05 Thread N Troncoso
After looking more carefully, I'm only getting this for 1 class:

[ERROR] Line 65: No source code is available for type com.
path.to.shared.i18n.PhxMessages; did you forget to inherit a required module
?

I get that a whole bunch of times (cause it's referenced many times).

Then after that, I get:

[ERROR] 109 com.path.to.shared.data.entity.impl.Employee cannot be resolved 
to a type

for pretty much every other class in my shared module.

So it sees PhxMessages and just doesn't have the source code, but it can't 
find Employee at all? I'm not sure what to make of 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.


GWT maven plugin can't find shared sources (take 2)

2016-01-05 Thread N Troncoso
Sorry. I really needed to edit this post, but it doesn't seem that I can. 
So I had to delete it and remake it. Anyway...

I migrated a maven-gwt-plugin project to "Maven Plugin for GWT" (
https://tbroyer.github.io/gwt-maven-plugin/). To do this, I generated a new 
project with the archetype provided. Upon simply running that application, 
it worked fine.

Then I copied client files to the client, server to server, and shared to 
shared. After getting everything sorted out and attempting to run the 
codeserver, I get a bunch of:

[ERROR] Line 65: No source code is available for type com.some.package.
shared.AClass; did you forget to inherit a required module?

I ran the codeserver via *mvn gwt:codeserver -pl client -am* and I tried *mvn 
gwt:codeserver -pl client,shared -am* to see if that would help.

These are my client shared dependencies (not changed from the default 
project):


${project.groupId}
phoenix-shared
${project.version}


${project.groupId}
phoenix-shared
${project.version}
sources



My client build section:




net.ltgt.gwt.maven
gwt-maven-plugin

com.path.to.client.Home
Home



org.apache.maven.plugins
maven-compiler-plugin
2.3.2

1.7
1.7






My i18n stuff is in my shared module, so I had to change the build for 
shared a bit:




maven-source-plugin


org.codehaus.mojo
gwt-maven-plugin
${gwtVersion}



i18n





com.path.to.shared.i18n.PhxMessages

com.path.to.shared.i18n.ValidationMessages



org.apache.maven.plugins
maven-compiler-plugin
2.3.2

1.7
1.7





And finally my module.gwt.xml:



 









and my Shared.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.


Re: GWT Maven plugin can't find shared source

2016-01-05 Thread N Troncoso
I can't edit my post, but my module.gwt.xml should be:






 
 





-- 
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: Activities and Places - Enabling History to reflect an updated data item

2016-01-05 Thread N Troncoso
Juan is correct. If you populate the list in the start() method of the 
activity, that will be called everytime the place corresponding to that 
activity is loaded, so you can refresh it then.

-- 
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: GSS eval not evaluating

2015-12-24 Thread N Troncoso
While I'd still like to know why this isn't working, I worked around the 
issue by creating constants:

public interface ColorResources extends CssResource
{
public static String shadowZ0  = Util.getShadow(0);

public static String shadowZ1  = Util.getShadow(1);
public static String shadowZ2  = Util.getShadow(2);
public static String shadowZ3  = Util.getShadow(3);
public static String shadowZ4  = Util.getShadow(4);
}

with this, I can skip the GSS constants altogether

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


GSS eval not evaluating

2015-12-24 Thread N Troncoso
I have a method that calculates a box shadow. To use it, I call 
getShadow(int depth). If I call this, I get the expected result. Now, I'd 
like to create a few predefined constants in GSS. So, I do this:

public interface ColorResources extends CssResource
{
String shadowZ0();
String shadowZ1();
String shadowZ2();
String shadowZ3();
String shadowZ4();
String shadowZ5();

public static class Util
{
private Util() {}


public static String getShadow(int dp)
{
return shadow;
}

public static String shadowZ0()  { return getShadow(0); }
public static String shadowZ1()  { return getShadow(1); }
public static String shadowZ2()  { return getShadow(2); }
public static String shadowZ3()  { return getShadow(3); }
public static String shadowZ4()  { return getShadow(4); }
public static String shadowZ5()  { return getShadow(5); }
}
}


colors.gss:

@def SHADOW_Z0 eval('path.to.ColorResources.Util.shadowZ0()');
@def SHADOW_Z1 eval('path.to.ColorResources.Util.shadowZ1()');
@def SHADOW_Z2 eval('path.to.ColorResources.Util.shadowZ2()');
@def SHADOW_Z3 eval('path.to.ColorResources.Util.shadowZ3()');
@def SHADOW_Z4 eval('path.to.ColorResources.Util.shadowZ4()');
@def SHADOW_Z5 eval('path.to.ColorResources.Util.shadowZ5()');


But if I do GWT.log(Resources.colors().shadowZ0()) (Where Resources is my 
ClientBundle that ColorResources is in), the print value is:

"Java expression : path.to.ColorResources.Util.shadowZ0()"

It should be evaluating the expression, not just returning it anyone 
know what's up?

-- 
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: Getting rid of Dev mode for future GWT releases

2015-12-24 Thread N Troncoso
Can you like explain a little more about your setup? In our production 
environment, our app is hosted by Tomcat, but by default GWT uses Jetty. 
There are some discrepancies there, and any Tomcat specific issues are 
super hard to debug. We've been trying to move to SDM with Tomcat, but we 
haven't gotten it working. Is there any special setup involved?

On Tuesday, December 22, 2015 at 4:45:25 AM UTC-5, DavidN wrote:
>
> On Friday, December 18, 2015 at 10:17:27 AM UTC+1, Ed wrote:
>
>> I was reluctant at first to move over to SDM, but after some time with 
>>> it, I got used to it. I combine it with SDBG in eclipse and it works mostly 
>>> ok. 
>>>
>> What is exactly not woking well with the SDBG eclipse plugin?
>> And why is this working well in IntelliJ ?
>>
>>
> Sometimes it works, sometimes it doesn't that is a bit annoying. Some 
> constructs like for loops were not properly mapped to the java sources 
> which made stepping through them a bit painful. But I am running behind on 
> SDBG, I did not do GWT development in the last year - just starting again. 
>
> In Chrome I do not always seem to get the mapping to work for all classes 
> in my project. 
>
> I have no experience with IntelliJ, but I am interested in using it since 
> maven/eclipse integration seems to be really slow and buggy. But I am 
> forced to use ClearCase for the moment and we don't have IntelliJ support 
> for it. I hope we can switch to something git based next year.
>
>
>> What SDM brings is much faster prototyping of the GUI, especially in 
>>> combination with Thomas Broyer's maven plugin it's really nice to have both 
>>> server and client refresh so easily while developing. 
>>>
>> How do you use the maven plugin to speed this up ?
>>
>
>
> I just launch tomcat and codeserver from maven instead of depending on my 
> IDE. It works really well. Any change I make to server classes gets loaded 
> automatically by Tomcat and any change on client code gets picked up by the 
> SDM codeserver. In the browser I just click on reload and I have the latest 
> version, it takes just a second or 2. (OK I seem to have an issue with GWT 
> 2.8.0-beta1, but I'm sure that will get resolved somehow).
>  
>

-- 
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: How to register custom function with GSS

2015-12-22 Thread N Troncoso
I've been looking for an answer to this as well. There is no documentation 
at all for custom functions. I found a slide show with a single slide that 
said to implement GssFunctionMapProvider and said nothing of what to 
actually do in this class or what to do with it

On Tuesday, December 15, 2015 at 7:57:09 AM UTC-5, gnet...@gmail.com wrote:
>
> Hi
>
> We'd like to know - How does one register own custom functions with gss?
>
> Already tried the proposal offered here: 
> https://groups.google.com/forum/#!topic/google-web-toolkit-contributors/oP2f3IYxZbc
>  
> but no joy.
>
> Is this doable?
>
> Many Thanks in advance
>

-- 
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: How to register custom function with GSS

2015-12-22 Thread N Troncoso
That's a shame. Though, I may be able to do what I need with a mixin, but 
the conditionals don't seem to support '='??

Is this valid? :

@defmixin shadow(SHOW)
{
@if (SHOW = 1)
{
box-shadow: 0 1px 1px rgba(0, 0, 0, .24), 0px 1px 1.5px rgba(0, 0, 
0, .12);
}
@else if (SHOW = 2)
{
box-shadow: 0 10px 5px rgba(0, 0, 0, .22), 0px 14px 14px rgba(0, 0, 
0, .25);
}
@else
{
box-shadow: none;
}
}

I also tried @if (is("SHOW = 1")), but that didn't work.

-- 
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: Understanding the Layout System

2015-12-21 Thread N Troncoso
I have content that goes under the TabPanel. (a StackLayoutPanel actually), 
so a scroll bar inside does not solve an issue like that. 

My question isn't necessarily aimed to solve that particular problem, but 
to understand the way the LayoutPanels are suppose to be used to create an 
app. The very basic examples that the documentation provides, and the fix 
you provided here does not really translate into how you'd develop an 
entire web app using these techniques. Am I only suppose to use 
LayoutPanels when I want to fill the screen and have no overflow? Am I 
stuck using the old bunch-o-tables widgets (or writing my own) otherwise? 
Supposedly these old widgets don't play well in standards mode, so it'd be 
nice to get away from them.

I guess your FlexBox suggestion at least solves the issue of building a 
proper layout, but if I forgo LayoutPanels altogether, I'm stuck with the 
"bad" old widgets and panels. Granted, I don't suppose I have to be 100% 
reliant on GWT to hand-feed me everything I need. It just feels like I'm 
missing critical components of the LayoutPanel that would allow it to work 
the way I want.


On Monday, December 21, 2015 at 1:24:25 PM UTC-5, Jens wrote:
>
> Basically ScrollPanel has an internal div element (the "scollable" 
> element) that does not have any height. That is generally fine because the 
> scrollable area should adapt to the size of its single child but that also 
> means you can not use "height:100%" for the child (percentages require 
> height on the parent).  But if you further think about it, that is totally 
> fine as well, because if you want to put a TabLayoutPanel inside a 
> ScrollPanel then IMHO you have done it wrong. What you really want to do is 
> to put a ScrollPanel as tab content into a TabLayoutPanel and that 
> TabLayoutPanel fills the content area of your app.
>
> So instead of a global DockLayoutPanel:center -> ScrollPanel for your 
> content area what you really want is DockLayoutPanel:center -> 
> SimpleLayoutPanel. If you have a screen/page/content that is based on a 
> TabLayoutPanel you can put that TabLayoutPanel into the SimpleLayoutPanel 
> and the ScrollPanel into the tab content. For other screens you can put a 
> ScrollPanel into the SimpleLayoutPanel directly.
>
> However if you do not support really old IE browsers then there is really 
> no need to use LayoutPanels at all. I would always go straight CSS with 
> either absolute/fixed positioning or, if you only support IE 10+, with the 
> new FlexBox layout system. LayoutPanels create a bunch of div elements that 
> IMHO are literally useless. Also they are kind of slow on window resize as 
> they propagate the resize event to all children who might execute code. So 
> browser resizing can become choppy.
>
> Using FlexBox is a bit complicated at first, especially because you need 
> some GSS mixins to handle all the different syntax styles efficiently. 
> However once you understand it and have your mixins in place, its really a 
> game changer for layout. This should have been part of CSS since day one. 
> Of course there are some bugs in browsers for this layout system but most 
> stuff just works and an app structure as you have described is really easy 
> to create.
>
> If you have never heard of FlexBox before, here is an example: 
> https://jsfiddle.net/d3113zo9/ (only tested in newest Chrome, Firefox, 
> Safari). The nice thing about that example is that header, sidebar and 
> footer do not have explicit sizes. They adapt to their content. Just type 
> in more text for the sidebar and it becomes wider. Add more lines to the 
> header and it becomes taller. Of course you could still give them explicit 
> sizes if desired.
>
> -- 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: Understanding the Layout System

2015-12-21 Thread N Troncoso
I have content that goes under the TabPanel. (a StackLayoutPanel actually), 
so a scroll bar inside does not solve an issue like that. 

My question isn't necessarily aimed to solve that particular problem, but 
to understand the way the LayoutPanels are suppose to be used to create an 
app. The very basic examples that the documentation provides, and the fix 
you provided here does not really translate into how you'd develop an 
entire web app using these techniques. Am I only suppose to use 
LayoutPanels when I want to fill the screen and have no overflow? Am I 
stuck using the old bunch-o-tables widgets (or writing my own) otherwise? 
Supposedly these old widgets don't play well in standards mode, so it'd be 
nice to get away from them.

I guess your FlexBox suggestion at least solves the issue of building a 
proper layout, but if I forgo LayoutPanels altogether, I'm stuck with the 
"bad" old widgets and panels. Granted, I don't suppose I have to be 100% 
reliant on GWT to hand-feed me everything I need. It just feels like I'm 
missing critical components of the LayoutPanel that would allow it to work 
the way I want.

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


Understanding the Layout System

2015-12-21 Thread N Troncoso
I've been reading a lot about the LayoutPanels introduced in 2.0 and trying 
to understand their purpose. I keep seeing that I should be using these 
instead of the older panels, but they seem way more complicated and 
limiting.

Take my app, for example. It's got a straight forward interface: A fixed 
header, fixed menu on the left, and a fixed footer. The remaining space is 
the content of unknown size.

For this, I use a DockLayoutPanel, and it works well. What does not work 
well is the content part. It makes complete sense to use a ScrollPanel here 
(right?), to accommodate any amount of content. And of course, that breaks 
the ProvidesResize/RequiresResize chain (although the ScrollPanel does 
indeed implement both of those methods...).

So anyway. I want to use the TabLayoutPanel in place of the TabPanel I am 
currently using, as that's the recommendation, but I can't. It won't show 
because it's not getting sized. So what can I do? Give it a static size or 
put it in a ResizeLayoutPanel to handle the resizing, which isn't much 
better as I still have to specify the size. I don't know how big the 
content of the tab panel will be, so that's just not an option.

>From what I read, these panels do not work with dynamic sized content.

So what's the deal here? I can see the RootLayoutPanel and DockLayoutPanel 
being used to set up the basic layout of the app. But what of the rest of 
these panels like the TabLayoutPanel and StackLayoutPanel? Unless I'm using 
these as the ground work for an entire app, they seem useless. I'd like to 
use them as they build their underlying DOM elements with divs instead of a 
bunch of nested tables, but I guess that's not an option? 

Am I missing something? Am I still suppose to be using the old panels for 
everything but the base layout of the app? Or is there some sort of new way 
of building web apps that doesn't require dynamically sized content that I 
haven't heard about?

I feel like a bunch of this old stuff will be deprecated soon in favor of 
the LayoutPanels, but where does that leave me when it doesn't work for 
what I need?

Thanks for any advice.

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