Monday, March 31, 2014

Re: Why “word-wrap” css style doesn't work inside a <table> (GWT)?

I couldn't fix the <table> tag so I start to use Grid. But Grid din't recognize the break-word
 

<g:Grid addStyleNames="{style.myBreakWord}">  
   
<g:row>
       
<g:cell>
           Subject
       
</g:cell>
       
<g:customCell>
           
<g:Label text="Aaaaaaaa....very long a...aaaaaaaaaaa" />
       
</g:customCell>
     
</g:row>
 
</g:Grid>

in Css
.myBreakWord{
    word-wrap:break-word; 
    table-layout:fixed;
}

Is there anything wrong with my code?

On Monday, March 31, 2014 9:58:13 PM UTC+11, Jens wrote:
Do you know how to fix it?

The most basic example works: http://jsfiddle.net/84dsH/

So investigate your CSS using your browsers Dev Tools.

-- 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+unsubscribe@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.

Send data (keep alive probe) across GWT RPC connection

I have a web application running on an Amazon server using a Elastic load balancer and when I make a RPC call between my client and the server it is timing out after 1 minute, because there is no activity on the RPC connection for more then a minute. The reason there is no activity on the connection is because the process invoked by the client takes 2-3 minutes to run on the server. I have 2 solutions to this problem which are 1) have amazon increase the idle timeout to 2-3 minutes, or 2) send data ever 50 seconds over the RPC.  I am in the process of getting Amazon to increase the idle timeout, but in the meantime does anyone know how to do option 2.  I know how to send a message every 50 seconds between the client and server after the RPC is made, but this does not solve the problem because the message is not sent across the original RPC connection and it has to be in order to keep the connection up. I'm new to GWT and JAVA and don't know if option 2 is even doable, but I would really appreciate any suggestions or help with this that anyone can give me.

--
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+unsubscribe@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 access a web page in Frame


com.google.gwt.dom.client.Document.getElementsByTagName("body") returns one Node. I can cast it into Element and do some style changes in Java code. Any style changes in Java code is not reflected in html code that is confirmed by Firebug.


com.google.gwt.dom.client.Document.getElementsByTagName("div") still returns an empty NodeList.




On Monday, March 31, 2014 9:26:31 PM UTC-4, Leon wrote:
I don't know why 
com.google.gwt.dom.client.Document.getElementsByTagName("div") returns an empty NodeList.

Is there a solution how to get a element in terms of tag name?

Leon


On Monday, March 31, 2014 5:59:47 AM UTC-4, Jens wrote:
Document iframeDoc = ((IFrameElement) frame.getElement()).getContentDocument();

If you need that more often then you should probably extend GWTs Frame class and make a public method to access the content document.

Keep in mind that you should wait until the frame is loaded using frame.addLoadHandler().

-- 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+unsubscribe@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 access a web page in Frame

I don't know why 
com.google.gwt.dom.client.Document.getElementsByTagName("div") returns an empty NodeList.

Is there a solution how to get a element in terms of tag name?

Leon


On Monday, March 31, 2014 5:59:47 AM UTC-4, Jens wrote:
Document iframeDoc = ((IFrameElement) frame.getElement()).getContentDocument();

If you need that more often then you should probably extend GWTs Frame class and make a public method to access the content document.

Keep in mind that you should wait until the frame is loaded using frame.addLoadHandler().

-- 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+unsubscribe@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.

Responsive Web App

Hi everybody,

How can i build a responsive design with GWT? and is it possible to integrate a GWT components into a responsive template?.

Thanks in advance.



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

Re: using gwt with hibernate example

Thank you it was that problem and now it works.

On Saturday, March 29, 2014 11:30:06 PM UTC+10, Mic L wrote:
HI,
I have found a nice article "using gwt with hibernate example". However, I have trouble to import this code into Eclipse. I always get the following warnings, but the app does not start:
[WARN] Server class 'org.eclipse.jetty.servlet.listener.ELContextCleaner' could not be found in the web app, but was found on the system classpath
   [WARN] Adding classpath entry 'file:/home/mic/apps/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.6.0/gwt-2.6.0/gwt-dev.jar' to the web app classpath for this session
   For additional info see: file:/home/mic/apps/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.6.0/gwt-2.6.0/doc/helpInfo/webAppClassPath.html
[WARN] No startup URLs supplied and no plausible ones found -- use -startupUrl

How is it possible to import the code into Eclipse and would ActiveJDBC solves Hibernates problems?

Thank you in advance.

Mic




--
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+unsubscribe@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: Why “word-wrap” css style doesn't work inside a <table> (GWT)?

Do you know how to fix it?

The most basic example works: http://jsfiddle.net/84dsH/

So investigate your CSS using your browsers Dev Tools.

-- 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+unsubscribe@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 access a web page in Frame

Document iframeDoc = ((IFrameElement) frame.getElement()).getContentDocument();

If you need that more often then you should probably extend GWTs Frame class and make a public method to access the content document.

Keep in mind that you should wait until the frame is loaded using frame.addLoadHandler().

-- 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+unsubscribe@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: Why “word-wrap” css style doesn't work inside a <table> (GWT)?

i did but it look really ugly. Ex: I got a DockLayoutPanel & in the <g:center> I have a HTMLPanel that hold <table>. So if i use <table style="table-layout:fixed"> then some how the text inside the table were centralised like this

|                  Aaaaaaaaaaaaaaaaaaaaaaaaaa                               |---> this is the edge of the <g:center>
                   aaaaaaaaaaaaaaaaaaaaaaaaaa                                |
                   aaaaaaaaaaaaaaaaaaaaaaaaaa

Am i doing right?

I want the text to go through all the spaces, ex it should look like this:
Aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

even i use<table width="100%"> but it didn't work.

Do you know how to fix it?

On Monday, March 31, 2014 1:34:59 AM UTC+11, Jens wrote:
You have to use table-layout:fixed in your CSS for the table element.

-- 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+unsubscribe@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: window namespace in super-dev-mode

Nevermind... It seems to be solved already...

https://gwt.googlesource.com/gwt.git/+/7ed2e49921fb67ac4998186a7b33f421d2b42729


Am Montag, 31. März 2014 09:34:50 UTC+2 schrieb Klemens Schrage:
Hello,

I'm experiencing some problems when debugging (especially) static methods in super-dev-mode in Chrome. When I have inspected / unfolded the this-node in the scope variables view on a previous breakpoint the devtools-window begins to hang when entering a breakpoint in a static method. Chrome automatically unfolds the static method's this-node which seems to be the window-node. The scope variables view is filled with a huge number (all?) of functions. Obviously too much for the devtools. 

Would it be possible to enclose those methods in an additional subnode / container variable to avoid the performance problem? Besides the problem for static methods it would also help with "normal" inspecting the window namespace. Correct me if I'm wrong, but one doesn't need those functions for debugging purposes.

Best regards
Klemens Schrage

--
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+unsubscribe@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 Application not showing in Safari

I have a iPad Air available, but I cannot even show the source of the host page.

Can you install Google Chrome on the iPad and see if your app works in Google Chrome? 

On iOS every browser is forced to use the same rendering engine as mobile Safari but they are not allowed to use JIT. So if your app works in Chrome but not in Safari then it is most likely a Safari JIT issue.

-- 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+unsubscribe@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.

DateTimeFormat is not showing the locales specific formatting.

Hi,

I am using the DateTimeFormat and it's working fine for English, however, in Arabic it's showing the exact value as shown for the English locale!

Here's the code:

public static String getFormattedDate(String date) {
        final DateTimeFormat formatter = DateTimeFormat.getFormat("yyyy-MM-dd'T'HH:mm:ss");

        try {
            final Date parsedDate = formatter.parse(date);
            return DateTimeFormat.getFormat(DateTimeFormat.PredefinedFormat.DATE_MEDIUM).format(parsedDate);
        } catch (IllegalArgumentException e) {
            e.printStackTrace();
            return date;
        }

    }

--
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+unsubscribe@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 Application not showing in Safari



On Monday, March 31, 2014 10:37:34 AM UTC+2, Magnus wrote:
What about the promise of GWT:

"GWT supports the following browsers:

  • Firefox
  • Internet Explorer 6, 7, 8, 9
  • Safari 5, 6
  • Chromium and Google Chrome
  • Opera latest version"

I would expect that an app looks different, but not that it doesn't show at all...

You'll note that this page doesn't talk about mobile browsers, and iPad's Safari is actually "Mobile Safari".

(and the page needs updating for IE10 and IE11, and deprecation of IE6/7 and Opera 12.x –which is still the latest version on Linux– support) 

But still, there's no reason (apart from browser bugs, as Jens said already) it wouldn't work.

--
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+unsubscribe@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 Application not showing in Safari

I have a iPad Air available, but I cannot even show the source of the host page.

What about the promise of GWT:

"GWT supports the following browsers:

  • Firefox
  • Internet Explorer 6, 7, 8, 9
  • Safari 5, 6
  • Chromium and Google Chrome
  • Opera latest version"

I would expect that an app looks different, but not that it doesn't show at all...

Magnus

--
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+unsubscribe@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.

window namespace in super-dev-mode

Hello,

I'm experiencing some problems when debugging (especially) static methods in super-dev-mode in Chrome. When I have inspected / unfolded the this-node in the scope variables view on a previous breakpoint the devtools-window begins to hang when entering a breakpoint in a static method. Chrome automatically unfolds the static method's this-node which seems to be the window-node. The scope variables view is filled with a huge number (all?) of functions. Obviously too much for the devtools. 

Would it be possible to enclose those methods in an additional subnode / container variable to avoid the performance problem? Besides the problem for static methods it would also help with "normal" inspecting the window namespace. Correct me if I'm wrong, but one doesn't need those functions for debugging purposes.

Best regards
Klemens Schrage

--
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+unsubscribe@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.

Sunday, March 30, 2014

How to access a web page in Frame

I open a web page in Frame. I need to access its dom from another widget. How do I do it?

Thanks,

Leon

--
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+unsubscribe@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.

selectionmodel with mvp

Hello :)
i have two classes :DevisPresenter and DevisView.
im mu devispresenter i'm called an rpc call wich return me a list of data.i'm setting this data with method setdata for the view to display data.
for that i'm using a celltable, my problem is that i want to recupered the object in the selected row.i have to use the singleselectionmodel but i don't khnow how :( i don't khnow what i should create in the presenter or the view ?
plz help

--
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+unsubscribe@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 @Override Comparator to make the Column in CellTable sort based on Integer not based on String (GWT)?

Thank you very much for your answer. So we have to use Integer when declare property of object then.

On Monday, March 31, 2014 1:31:48 AM UTC+11, Jens wrote:
Integer.parseInt() does not return an Integer object, it returns a primitive int.

You want Integer.valueOf().

-- 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+unsubscribe@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: Why “word-wrap” css style doesn't work inside a <table> (GWT)?

You have to use table-layout:fixed in your CSS for the table element.

-- 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+unsubscribe@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 @Override Comparator to make the Column in CellTable sort based on Integer not based on String (GWT)?

Integer.parseInt() does not return an Integer object, it returns a primitive int.

You want Integer.valueOf().

-- 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+unsubscribe@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 @Override Comparator to make the Column in CellTable sort based on Integer not based on String (GWT)?

Ok, I got a Table with a list of No.

No  1  2  5  10  20  

If i set columnSortHandler for the No column using String like this:

columnSortHandler.setComparator(noColumn, new Comparator<String[]>() {          @Override          public int compare(String[] o1, String[] o2) {              if (o1==o2) {                    return 0;              }                  if (o1 != null) {                    return (o2 != null) ? o1[0].compareTo(o2[0]) : 1;              }              return -1;          }      });  

Then it won't sort like integer but like String. Ex: it will sort like this:

No  1  10  2  20  5  

Then it is not correct.

So tried:

 columnSortHandler.setComparator(noColumn, new Comparator<String[]>() {          @Override          public int compare(String[] o1, String[] o2) {              if (o1==o2) {                    return 0;              }                  if (o1 != null) {                    return (o2 != null) ? Integer.parseInt(o1[0]).compareTo(Integer.parseInt(o2[0]) : 1;              }              return -1;          }      });  

But compareTo does not apply for Integer.

So my question is

How to @Override Comparator to make the Column in CellTable sort based on Integer not based on String (GWT)?

(also http://stackoverflow.com/questions/22743000/how-to-override-comparator-to-make-the-column-in-celltable-sort-based-on-intege)


--
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+unsubscribe@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.

Saturday, March 29, 2014

Why “word-wrap” css style doesn't work inside a <table> (GWT)?

We got this css to make a long string (without any space in it, URL for example) to fall into many new lines rather than just show 1 line:

.wordWrap{  word-wrap:break-word;  }

in .xml file

<table>      <tr>         <td>            <g:HTMLPanel ui:field="myPanel" addStyleNames="{style.wordWrap}" > <g:Label text="Aaaaaa..very long string without any space in it... aa"> <g:/HTMLPanel>         </td>      </tr>  </table>

This does not work.

However, if we remove the <table> then it work fine

So Why "word-wrap" css style doesn't work inside a (GWT)?

(http://stackoverflow.com/questions/22740185/why-word-wrap-css-style-doesnt-work-inside-a-table-gwt)

--
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+unsubscribe@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.

Why “word-wrap” css style doesn't work when setting in UiBinder but ok when setting via code (GWT)?

We got this css to make a long string (without any space in it, URL for example) to fall into many new lines rather than just show 1 line:

.wordWrap{  word-wrap:break-word;  }

in .xml file

<g:HTMLPanel ui:field="myPanel" addStyleNames="{style.wordWrap}" > <g:Label text="Aaaaaa..very long string without any space in it... aa"> <g:/HTMLPanel>

This does not work.

However, if we set styleName via coding:

myPanel.addStyleNames("wordWrap");

Then it works fine.

So

Why "word-wrap" css style doesn't work when setting in UiBinder but ok when setting via code (GWT)?


(also: http://stackoverflow.com/questions/22740185/why-word-wrap-css-style-doesnt-work-when-setting-in-uibinder-but-ok-when-sett)

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

Re: Error on the output directory for the project should be set to

You're doing all that is discouraged.

On Sunday, March 30, 2014 3:41:43 AM UTC+2, Dilan A wrote:
I try to create by following maven command

mvn archetype:generate 
-DarchetypeGroupId=org.codehaus.mojo 
-DarchetypeArtifactId=gwt-maven-plugin 
-DarchetypeVersion=2.6.0 
-DgroupId=myProjectGroupId 
-DartifactId=myProjectArtifactId

Don't use that archetype (and this advice comes from the de-facto maintainer of the gwt-maven-plugin).
See https://code.google.com/p/google-web-toolkit/wiki/WorkingWithMaven
If you want to start from archetypes, you'll find some good ones from GWT's main contributors (Brandon Donnelson, and myself); e.g. https://github.com/tbroyer/gwt-maven-archetypes (sorry, I don't remember where Brandon keeps his archetypes)
 
then convert to eclipse project.

mvn eclipse:eclipse

You should really use M2Eclipse (it's bundled in Eclipse for a couple releases)

Given your error message, I think the problem is you have a war/ folder at the root of your project (or the Google Plugin for Eclipse expects one). With a Maven project, you shouldn't.
This is probably due to not using M2Eclipse to import your project in Eclipse, so the Google Plugin for Eclipse can't detect that you're using Maven.

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

Re: Error on the output directory for the project should be set to

<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

<!-- POM file generated with GWT webAppCreator -->
<modelVersion>4.0.0</modelVersion>
<groupId>myProjectGroupId</groupId>
<artifactId>myProjectArtifactId</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<name>GWT Maven Archetype</name>

<properties>
<!-- Convenience property to set the GWT version -->
<gwtVersion>2.6.0</gwtVersion>
<!-- GWT needs at least java 1.5 -->
<webappDirectory>${project.build.directory}/${project.build.finalName}</webappDirectory>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-servlet</artifactId>
<version>${gwtVersion}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>${gwtVersion}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.7</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>1.0.0.GA</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>1.0.0.GA</version>
<classifier>sources</classifier>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<!-- Generate compiled stuff in the folder used for developing mode -->
<outputDirectory>${webappDirectory}/WEB-INF/classes</outputDirectory>

<plugins>

<!-- GWT Maven Plugin -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>2.6.0</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>test</goal>
<goal>i18n</goal>
<goal>generateAsync</goal>
</goals>
</execution>
</executions>
<!-- Plugin configuration. There are many available options, see
gwt-maven-plugin documentation at codehaus.org -->
<configuration>
<runTarget>MyProjectArtifactId.html</runTarget>
<hostedWebapp>${webappDirectory}</hostedWebapp>
<i18nMessagesBundle>myProjectGroupId.client.Messages</i18nMessagesBundle>
</configuration>
</plugin>

<!-- Copy static web files before executing gwt:run -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>exploded</goal>
</goals>
</execution>
</executions>
<configuration>
<webappDirectory>${webappDirectory}</webappDirectory>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
</plugins>
</build>

</project>
I try to create by following maven command

mvn archetype:generate 
-DarchetypeGroupId=org.codehaus.mojo 
-DarchetypeArtifactId=gwt-maven-plugin 
-DarchetypeVersion=2.6.0 
-DgroupId=myProjectGroupId 
-DartifactId=myProjectArtifactId

then convert to eclipse project.

mvn eclipse:eclipse


I have attached the maven file.

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

Re: using gwt with hibernate example



On Saturday, March 29, 2014 2:30:06 PM UTC+1, Mic L wrote:
HI,
I have found a nice article "using gwt with hibernate example". However, I have trouble to import this code into Eclipse. I always get the following warnings, but the app does not start:
[WARN] Server class 'org.eclipse.jetty.servlet.listener.ELContextCleaner' could not be found in the web app, but was found on the system classpath
   [WARN] Adding classpath entry 'file:/home/mic/apps/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.6.0/gwt-2.6.0/gwt-dev.jar' to the web app classpath for this session
   For additional info see: file:/home/mic/apps/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.6.0/gwt-2.6.0/doc/helpInfo/webAppClassPath.html

This is a bug in 2.6.0 that will be fixed in 2.6.1. But it doesn't prevent apps form running.
 
[WARN] No startup URLs supplied and no plausible ones found -- use -startupUrl

When launching the app (https://developers.google.com/eclipse/docs/running_and_debugging_2_0) make sure there's a --startupUrl argument in the Arguments tab with a value of Musicstore.html (i.e. --startupUrl MusicStore.html). Note that it should go *before* the module's name.

--
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+unsubscribe@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 make a very long non-stop string (without any space in it) break into many new lines when showing in HTMLPanel?

i found the answer:

.messageDisplay{
 word
-wrap:break-word;
}


On Sunday, March 30, 2014 12:16:16 AM UTC+11, Tom wrote:

I have an HTMLPanel inside a FlowPanel which is inside a ScrollPanel like this.

<g:ScrollPanel>       <g:FlowPanel>          <g:HTMLPanel ui:field="showMessageHTMLPanel" width="600px"/>      </g:FlowPanel>  </g:ScrollPanel>  

The showMessageHTMLPanel is used to hold the text that user enter a TextArea.

I want that the showMessageHTMLPanel should show exactly like how it was displayed in TextArea.

Ex,if user types in many sentences in new lines in TextArea, then the showMessageHTMLPanel should show similar like this:

This is text1    This is text2.  

So here is what I did. I uses new SafeHtmlBuilder().appendEscapedLines(message).toSafeHtml().

HTML showMessageHTML = new HTML(new SafeHtmlBuilder().appendEscapedLines(message).toSafeHtml());  getView().getShowMessageHTMLPanel().add(showMessageHTML);  

The result is that It breaks the lines quite OK, no problem.

However, When I type a non-stop very long string ( a String that doesn't have any space on it) into a TextArea. Ex, see this non-stop string:

"Aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa."

As you saw, even this non-stop string has no space, but when typing in TextArea then the string will automatically fall into new lines.

Ok, now when I show that non-stop string in getView().getShowMessageHTMLPanel(), it showed the text as one straight line without any line break:

Aaaaaaaaaaaaaaaaaaaa......aaaaa.  

The user has to scroll the scrollbar to see the complete text. This is unacceptable since it is too hard to see the whole line. Also many urls are non-stop string without spaces. So the user may not be able to copy the url.

How to make a very long non-stop string (without any space in it) break into many new lines when showing in HTMLPanel?

Or

Do you know any other widget that can handle this?

(http://stackoverflow.com/questions/22731546/how-to-make-a-very-long-non-stop-string-without-any-space-in-it-break-into-man)

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

using gwt with hibernate example

HI,
I have found a nice article "using gwt with hibernate example". However, I have trouble to import this code into Eclipse. I always get the following warnings, but the app does not start:
[WARN] Server class 'org.eclipse.jetty.servlet.listener.ELContextCleaner' could not be found in the web app, but was found on the system classpath
   [WARN] Adding classpath entry 'file:/home/mic/apps/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.6.0/gwt-2.6.0/gwt-dev.jar' to the web app classpath for this session
   For additional info see: file:/home/mic/apps/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.6.0/gwt-2.6.0/doc/helpInfo/webAppClassPath.html
[WARN] No startup URLs supplied and no plausible ones found -- use -startupUrl

How is it possible to import the code into Eclipse and would ActiveJDBC solves Hibernates problems?

Thank you in advance.

Mic




--
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+unsubscribe@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 make a very long non-stop string (without any space in it) break into many new lines when showing in HTMLPanel?

I have an HTMLPanel inside a FlowPanel which is inside a ScrollPanel like this.

<g:ScrollPanel>       <g:FlowPanel>          <g:HTMLPanel ui:field="showMessageHTMLPanel" width="600px"/>      </g:FlowPanel>  </g:ScrollPanel>  

The showMessageHTMLPanel is used to hold the text that user enter a TextArea.

I want that the showMessageHTMLPanel should show exactly like how it was displayed in TextArea.

Ex,if user types in many sentences in new lines in TextArea, then the showMessageHTMLPanel should show similar like this:

This is text1    This is text2.  

So here is what I did. I uses new SafeHtmlBuilder().appendEscapedLines(message).toSafeHtml().

HTML showMessageHTML = new HTML(new SafeHtmlBuilder().appendEscapedLines(message).toSafeHtml());  getView().getShowMessageHTMLPanel().add(showMessageHTML);  

The result is that It breaks the lines quite OK, no problem.

However, When I type a non-stop very long string ( a String that doesn't have any space on it) into a TextArea. Ex, see this non-stop string:

"Aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa."

As you saw, even this non-stop string has no space, but when typing in TextArea then the string will automatically fall into new lines.

Ok, now when I show that non-stop string in getView().getShowMessageHTMLPanel(), it showed the text as one straight line without any line break:

Aaaaaaaaaaaaaaaaaaaa......aaaaa.  

The user has to scroll the scrollbar to see the complete text. This is unacceptable since it is too hard to see the whole line. Also many urls are non-stop string without spaces. So the user may not be able to copy the url.

How to make a very long non-stop string (without any space in it) break into many new lines when showing in HTMLPanel?

Or

Do you know any other widget that can handle this?

(http://stackoverflow.com/questions/22731546/how-to-make-a-very-long-non-stop-string-without-any-space-in-it-break-into-man)

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

Re: Error on the output directory for the project should be set to

What's your POM looking like? How are you importing the project in Eclipse? (I'm assuming this message comes from the Google Plugin for Eclipse)
BTW, isn't there a quick fix in Eclipse for this?

On Saturday, March 29, 2014 6:19:46 AM UTC+1, Dilan A wrote:
Hi

I'm try to setup gwt with maven,
I'm getting following error message ;
The output directory for the project should be set to /myNewGWT/war/WEB-INF/classes


Is there is a fix for this?

--
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+unsubscribe@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.

Friday, March 28, 2014

Error on the output directory for the project should be set to

Hi

I'm try to setup gwt with maven,
I'm getting following error message ;
The output directory for the project should be set to /myNewGWT/war/WEB-INF/classes


Is there is a fix for this?

--
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+unsubscribe@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: Only subset of HTML supported by HTML class?

Could you use span to make <ol> add numbers again?
 
No. 

It is totally fine to use <ol>, <b>, <strong>, <i>, <em>, etc.. as they add semantic information to your HTML document. That's why they exist.

-- 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+unsubscribe@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: Only subset of HTML supported by HTML class?

Could you use span to make <ol> add numbers again?


On Fri, Mar 28, 2014 at 10:23 AM, jaga <j.annesley@gmail.com> wrote:
Hi, it is better to use CSS to format the text in HTML. I expect it would work if you did that. Try using <span> and CSS styles for text you want to format. E.g., <span style="font-weight: bold;">hi</span>

--
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+unsubscribe@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.

--
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+unsubscribe@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: remote source file in ui:style



On Friday, March 28, 2014 6:29:55 PM UTC+1, Leon wrote:
Can I use <ui:style src="http://www-c0-css.cc.uga.edu/uga/css/ugastyle-7.css" /> in a uibinder file?  I don't want ugastyle-7.css to be compiled by GWT and transformed into an obfuscated, minimized and optimized version

Just use an @import CSS rule within your <ui:style>:

@import url('http://www-c0-css.cc.uga.edu/uga/css/ugastyle-7.css');

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

remote source file in ui:style

Can I use <ui:style src="http://www-c0-css.cc.uga.edu/uga/css/ugastyle-7.css" /> in a uibinder file?  I don't want ugastyle-7.css to be compiled by GWT and transformed into an obfuscated, minimized and optimized version so I can access any styles such as featurecopy defined in ugastyle-7.css like:


<!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'
  xmlns:mail='urn:import:com.google.gwt.sample.mail.client'>

  <ui:style src="http://www-c0-css.cc.uga.edu/uga/css/ugastyle-7.css">

  .statusDiv {
    text-align: right;
    margin: 1em;
  }

  .linksDiv {
    text-align: right;
  }

  </ui:style>

  <g:HTMLPanel>
    <div class='{style.logo}'/>

    <div class="{style.statusDiv}">
      <div>
        <b>Welcome back, foo@example.com</b>
      </div>

      <div class='featurecopy' '>
        <g:Anchor href='javascript:;' ui:field='signOutLink'>Sign Out</g:Anchor>
        &nbsp;
        <g:Anchor href='javascript:;' ui:field='aboutLink'>About</g:Anchor>
      </div>
    </div>
  </g:HTMLPanel>
</ui:UiBinder>


Thanks,

Leon

--
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+unsubscribe@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 style a Row of CellTable when user click on a Cell (GWT)?

Thank you very much. it's working after i remove the redraw();. However, it did not accept some other style like "font-weight:normal."

Why it accepts "background:red" but not accept "font-weight:normal" or "font-color:red" 
                

On Saturday, March 29, 2014 12:53:21 AM UTC+11, Thomas Broyer wrote:
redraw() will generate some HTML and inject it with innerHTML, so your getRowElement() no longer exists after redraw().

Are you trying to re-implement SelectionModel and DefaultSelectionEventManager's createWhitelistManager or createCheckboxManager?

On Friday, March 28, 2014 2:47:21 PM UTC+1, Tom wrote:

I want that when user click on a Cell belonging to a row of CellTable, then it will style the row.

So I tried:

       myColumn.setFieldUpdater(new FieldUpdater<String[], String>(){              @Override              public void update(int index, String[] object, String value){                  if(mycondition){                      myCellTable.getRowElement(index).addClassName(getView().getRes().css().blueText());                      myCellTable.redraw();                  }                }          });  

As stated in the above code, we can capture the index of the row, so row no is not the problem, but why nothing happened.

So How to fix it?

--
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+unsubscribe@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 style a Row of CellTable when user click on a Cell (GWT)?

Thank you very much. it's working after i remove the redraw();


On Saturday, March 29, 2014 12:53:21 AM UTC+11, Thomas Broyer wrote:
redraw() will generate some HTML and inject it with innerHTML, so your getRowElement() no longer exists after redraw().

Are you trying to re-implement SelectionModel and DefaultSelectionEventManager's createWhitelistManager or createCheckboxManager?

On Friday, March 28, 2014 2:47:21 PM UTC+1, Tom wrote:

I want that when user click on a Cell belonging to a row of CellTable, then it will style the row.

So I tried:

       myColumn.setFieldUpdater(new FieldUpdater<String[], String>(){              @Override              public void update(int index, String[] object, String value){                  if(mycondition){                      myCellTable.getRowElement(index).addClassName(getView().getRes().css().blueText());                      myCellTable.redraw();                  }                }          });  

As stated in the above code, we can capture the index of the row, so row no is not the problem, but why nothing happened.

So How to fix it?

--
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+unsubscribe@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 Desktop-Notification

That looks good, however you might want to look into multi monitor support. With my browser open on Screen 2 (Windows 7 PC, Chrome) the notification window pops up on Screen 1.

Rob

On Saturday, 8 February 2014 16:23:31 UTC, Marcel K wrote:
Here you are.



Marcel


Am Freitag, 7. Februar 2014 14:34:04 UTC+1 schrieb ant...@gmail.com:
Marcel that is cool & interesting

We'll give it a go once time allows...
Why don't you post some screenshots or deploy a sample web app ( on appspot.com ) so that people can see it in action ?

Antonis

On Friday, 7 February 2014 08:26:29 UTC, Marcel K wrote:
Hey,

after some coding with gwt i want to publish a component that i wrote. It's an api for desktop-notification and should work with Chrome, FF and Safari (according to https://developer.mozilla.org/en-US/docs/Web/API/notification#Browser_compatibility).

I would really appreciate if someone could take a look at it and maybe give me some advices ;) or.. maybe even use :)



Cheers
Marcel

--
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+unsubscribe@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 style a Row of CellTable when user click on a Cell (GWT)?

without redraw it won't work anyway

On Saturday, March 29, 2014 12:53:21 AM UTC+11, Thomas Broyer wrote:
redraw() will generate some HTML and inject it with innerHTML, so your getRowElement() no longer exists after redraw().

Are you trying to re-implement SelectionModel and DefaultSelectionEventManager's createWhitelistManager or createCheckboxManager?

On Friday, March 28, 2014 2:47:21 PM UTC+1, Tom wrote:

I want that when user click on a Cell belonging to a row of CellTable, then it will style the row.

So I tried:

       myColumn.setFieldUpdater(new FieldUpdater<String[], String>(){              @Override              public void update(int index, String[] object, String value){                  if(mycondition){                      myCellTable.getRowElement(index).addClassName(getView().getRes().css().blueText());                      myCellTable.redraw();                  }                }          });  

As stated in the above code, we can capture the index of the row, so row no is not the problem, but why nothing happened.

So How to fix it?

--
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+unsubscribe@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: Only subset of HTML supported by HTML class?

Hi, it is better to use CSS to format the text in HTML. I expect it would work if you did that. Try using <span> and CSS styles for text you want to format. E.g., <span style="font-weight: bold;">hi</span>

--
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+unsubscribe@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: fullscreen and popuppanels

I see. Thanks for the links. If time permits I will cook something up and post it here for discussion.

  Vassilis


On Fri, Mar 28, 2014 at 4:13 PM, Thomas Broyer <t.broyer@gmail.com> wrote:


On Friday, March 28, 2014 3:07:20 PM UTC+1, Vassilis Virvilis wrote:
Hello,

I am playing with the fullscreen capability of newish browsers. It works fine for my GWT widget but the PopupPanels are not visible when in fullscreen mode.

They are not visible because the popup panels are children at the body element of the html and this is not visible anymore. You see my widget resides in a div and this div is promoted to fullscreen. Everything else not belonging to that div are not visible.

The problem is even bigger with submenuItems which are also popups. Assuming I am creating my custom MyPopupPanel which does not belong to RootPanel I would still have to fork MenuBar and MenuItem to make them use MyPopupPanel.

Any ideas?


Note that https://code.google.com/p/google-web-toolkit/issues/detail?id=8538 gives a workaround, but of course it wouldn't work for menus. If PopupPanel supported custom parent elements, then submenus should just use the same parent element as their parent (recursively up to the MenuBar)

--
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+unsubscribe@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.



--
Vassilis Virvilis

--
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+unsubscribe@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.