Re: GWT ui:style how big of a bad idea (or not) is it to use it?

2012-08-08 Thread Nuno Godinho de Matos
Thank you all for your replies,

And In general I tend to agree that you should not promote tight coupling 
between your app functionality and the presentation styles.
On the other hand, Ryan Shillington, JQuery is javascript, but as you know 
most Great Jscript libraries jave wrappers for GWT. That is the case with 
jquery, http://code.google.com/p/gwt-jquery/. So yes, you can use JQuery 
from withing GWT.

Another thing is, 
say, for example that in page that you are rendered you have a list of row 
and each of these rows has a cless ODD or EVEN. Say that you want to hide 
away all ODD rows.
Why would it be best to have your GWT code traverse every single row in the 
set an based on your index % 2 decide weather or not collapse it, than have 
a CSS selector in gwt-jquery kill away all ODD rows?
Much less code!
I would normally live very well wich such a depencency, provided that if 
would be making my code use a CSS resource getter to find out the ODD 
classname.

My kindest regards,
Nuno.


On Saturday, August 4, 2012 11:33:09 PM UTC+2, Joseph Lust wrote:
>
> To start with CSSResource is awesome and I highly recommend using it. It 
> forces you to program *better*. Should you really be trying to pull 
> elements out of the page depending on their CSS names? Seems like a bad day 
> if you ever want to rebrand or dress up your UI. If CSS is the graphical 
> dressing of the site, separate those concerns from the functional aspects. 
> Further, using those CSSResource interfaces keeps you from ever using 
> string literals in your Java code or UiBinders, which is a best practice.
>
> Additionally, with UI Automation tests our testers are tempted to use ugly 
> selectors based on class names. This is a poor idea because then a class 
> name changes a year later and 400 tests fail, even though functionally the 
> site works just as well as before.
>
> The real question here is what you want to do with your CSS. If you want 
> to apply rules the site over, then don't use , but rather a 
> CSSResource interface. This way that interface can be used by many widgets' 
> UiBinders. However bespoke, small CSS tweaks do fit nicely into  
> and you can always move them out to a CSSResource interface in the future 
> if you want to use them multiple places. Note, from my experience you 
> cannot well handle CSS inheritance/overriding between widgets with 
> , but you can with standalone CSSResource interfaces.
>
>
> Sincerely,
> Joseph
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/WyVpjyTcYf8J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



display GWT dialog when a link is clicked in jsp

2012-08-08 Thread James
I have already used GWT to develop a dialog. From a gwt application, I can 
open this dialog from Anchor. I have a struts 2 application. I want to 
integrate this GWT dialog to a dynamic jsp page. On this jsp page, there 
are a lot of links that represent records. I want to open a GWT dialog once 
a link is clicked from this jsp page. I also pass a value from a link in 
jsp page to GWT dialog. How do I implement this feature?


James


-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/ORQVdobUsb4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



LayoutPanel animation with Canvas

2012-08-08 Thread RyanZA
I have a layout panel with two child panels, with one of the children being 
a HTML5 canvas.

It all works well until I try to use the animate() method of the parent 
canvas to move the children around. It makes the canvas lose its image and 
reset to transparent.
Any idea why animate() would do this, and any workarounds to animate panel 
movement while not making the canvas redraw?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/I-LgFS0sL24J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Adjusting height of GWT Panels based on content dynamically

2012-08-08 Thread Andrei
You use the same HTML/CSS techniques for building fluid layouts in GWT as in 
any other framework. You want to rely as much as possible on the browser's 
ability to re-flow the content, instead of using fixed width/heights. Typically 
this means using a LayoutPanel to split the page into 2-3 areas (e.g. Top Menu, 
Left Menu, and Main Area), and using pure HTML (HTML panel) or FlowPanels to 
organize the content inside those areas.

Normally you would also wrap the main area in a ScrollPanel for situations when 
content does not fit into the visible area of the browser window.

Personally, I almost never use Vertical or Horizontal panels, because you can 
easily achieve the same layouts with CSS while keeping them more flexible.

I suggest that you do some additional reading on "using CSS for fluid page 
layouts": you can use all of suggested techniques in GWT.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/dhwVmCDnKzQJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Tree View

2012-08-08 Thread Thad
If you mean a CellTree, you're gonna need to generate a List for each level 
of your tree. See the second example in 
http://google-web-toolkit.googlecode.com/svn/javadoc/2.4/com/google/gwt/user/cellview/client/CellTree.html

On Wednesday, August 8, 2012 2:18:30 AM UTC-4, Praveen Jesudoss wrote:
>
> HI,
>
> I want to show tree view in my application. From db i retrieved data like 
> level,id,name,parent id. I stored this in array list. now i want to show 
> the data in tree view. i am not able to get correct parent node and child.
>
> Please help me to achieve this.
>
> Thanks and Regards,
> Praveen J
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/39lqZsRvRCsJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT future

2012-08-08 Thread David
That would be gwt-platform as in "gwtP"  
http://code.google.com/p/gwt-platform.

I'm not looking for comparisons to other MVP solutions.  I'm just wondering 
if gwtP is something that will continue to be developed.
thanks.  



On Wednesday, August 8, 2012 1:20:19 PM UTC-4, Stevko wrote:
>
> David,
> Its a "BUY-long"  on my list. 
> Seeing the huge line of peeps waiting for the "history & future" session 
> was a sure signal that there is a lot of interest (outside of google).
> The volume of GWT recruiter hits on my LinkedIn profile means there is new 
> work being done,
> Moving to an external F/OSS respository and master commiters will increase 
> the velocity of the framework rather than waiting months & years for google 
> to vet the commits to protect the stability of their internal systems. 
>  (see my signature for my philosophy) 
> Not to say its a sure bet. Growing up is hard to do...
>
>
>
> On Wed, Aug 8, 2012 at 7:56 AM, David >wrote:
>
>> Anyone have insight as to the future of gwt-platform?
>>
>>
>
>
> -- 
> -- A. Stevko
> ===
> "If everything seems under control, you're just not going fast enough." 
> M. Andretti
>
>
>
>
>
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/XjrkpxRChYoJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



GWT 2.4 DevMode almost always hangs at "Checking for updates"

2012-08-08 Thread Tim Boemker
When I try to launch a GWT project, com.google.gwt.dev.DevMode hangs about 90% 
of the time after writing "Checking for updates" to the console.

Here's the stack trace for the threads that look interesting:

Thread [main] (Suspended)   
DevMode(DevModeBase).ensureCodeServerListener() line: 925   
DevMode(DevModeBase).doStartup(File) line: 915  
DevMode.doStartup() line: 424   
DevMode(DevModeBase).startUp() line: 1058   
DevMode(DevModeBase).run() line: 811
DevMode.main(String[]) line: 311
Thread [Thread-0] (Suspended)   
URLClassPath.getLoader(int) line: 279   
URLClassPath.getResource(String, boolean) line: 168 
URLClassLoader$1.run() line: 194
AccessController.doPrivileged(PrivilegedExceptionAction, 
AccessControlContext) line: not available [native method]   
Launcher$AppClassLoader(URLClassLoader).findClass(String) line: 190 
Launcher$AppClassLoader(ClassLoader).loadClass(String, boolean) line: 
306   
Launcher$AppClassLoader.loadClass(String, boolean) line: 301
Launcher$AppClassLoader(ClassLoader).loadClass(String) line: 247
DescriptorProtos$DescriptorProto.() line: 1539
DescriptorProtos$DescriptorProto.() line: 1144  

DescriptorProtos$FileDescriptorProto$Builder.mergeFrom(CodedInputStream, 
ExtensionRegistryLite) line: 769   

DescriptorProtos$FileDescriptorProto$Builder.mergeFrom(CodedInputStream, 
ExtensionRegistryLite) line: 593   

DescriptorProtos$FileDescriptorProto$Builder(AbstractMessage$Builder).mergeFrom(CodedInputStream)
 line: 244

DescriptorProtos$FileDescriptorProto$Builder(AbstractMessage$Builder).mergeFrom(CodedInputStream)
 line: 182

DescriptorProtos$FileDescriptorProto$Builder(AbstractMessageLite$Builder).mergeFrom(byte[],
 int, int) line: 161

DescriptorProtos$FileDescriptorProto$Builder(AbstractMessage$Builder).mergeFrom(byte[],
 int, int) line: 642

DescriptorProtos$FileDescriptorProto$Builder(AbstractMessage$Builder).mergeFrom(byte[],
 int, int) line: 182

DescriptorProtos$FileDescriptorProto$Builder(AbstractMessageLite$Builder).mergeFrom(byte[])
 line: 152  

DescriptorProtos$FileDescriptorProto$Builder(AbstractMessage$Builder).mergeFrom(byte[])
 line: 635  
DescriptorProtos$FileDescriptorProto.parseFrom(byte[]) line: 542
Descriptors$FileDescriptor.internalBuildGeneratedFileFrom(String[], 
Descriptors$FileDescriptor[], 
Descriptors$FileDescriptor$InternalDescriptorAssigner) line: 276  
DescriptorProtos.() line: 8623  
DescriptorProtos$FileOptions$OptimizeMode.() line: 4717 
DescriptorProtos$FileOptions.() line: 4745
DescriptorProtos$FileOptions.() line: 4635  
DescriptorProtos$FileDescriptorProto.() line: 428 
DescriptorProtos$FileDescriptorProto.() line: 332   
Descriptors$FileDescriptor.internalBuildGeneratedFileFrom(String[], 
Descriptors$FileDescriptor[], 
Descriptors$FileDescriptor$InternalDescriptorAssigner) line: 276  
RemoteMessageProto.() line: 10853   
RemoteMessageProto$Message$MessageType.() line: 97  
RemoteMessageProto$Message.() line: 9822  
RemoteMessageProto$Message.() line: 15  
MessageTransport$3.run() line: 320  
Thread.run() line: 662  
Daemon Thread [GWT Update Checker] (Suspended)  
ProviderConfig.getProvider() line: 188  
ProviderList.getProvider(int) line: 215 
ProviderList.getService(String, String) line: 313   
GetInstance.getInstance(String, Class, String) line: 140
CertificateFactory.getInstance(String) line: 148
PKCS7.parseSignedData(DerValue) line: 244   
PKCS7.parse(DerInputStream, boolean) line: 141  
PKCS7.parse(DerInputStream) line: 110   
PKCS7.(byte[]) line: 92   
SignatureFileVerifier.(ArrayList, ManifestDigester, String, 
byte[]) line: 80  
JarVerifier.processEntry(ManifestEntryVerifier) line: 267   
JarVerifier.update(int, byte[], int, int, ManifestEntryVerifier) line: 
199  
JarFile.initializeVerifier() line: 323  
JarFile.getInputStream(ZipEntry) line: 388  
JarIndex.getJarIndex(JarFile, MetaIndex) line: 120  
URLClassPath$JarLoader$1.run() line: 608
AccessController.doPrivileged(PrivilegedExceptionAction) line: not 
available [native method] 
URLClassPath$JarLoader.ensureOpen() line: 599   
URLClassPath$JarLoader.(URL, URLStreamHandler, 
HashMap) line: 583  
URLClassPath$3.run() line: 333  
AccessController.doPrivileged(PrivilegedExceptionAction) line: not 
available [native method] 
URLClassPath.getLoader(URL) line: 322   
URLClassPath.

How to implement new Date component in GWT

2012-08-08 Thread varshith


-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/7H7Yi1IaBYgJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



How to do Collapse/expand CellTable in GWT 2.4

2012-08-08 Thread Salcon


I would like to have a CellTable with Collapse/Expand rows. I have seen 
that in GWT 2.5 has a way to do that but I've not been able to find a way 
to do that in GWT 2.4.

I tried to do with CellTree, but CellTree only supports one column and I 
need 3 or 4 columns in the child node.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/iz2olLvgZzYJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



RequestFacory Validation issues

2012-08-08 Thread Cristian Rinaldi
Validation in the RequestFactory API is done only over Default group, and 
it is performed at the RF ServiceLayer level. It is not possible to map 
ConstraintViolationExceptions raised at the application level.
I have been analysing the SimpleRequestProcessor.process() method and I 
have concluded that it could be rewritten to support mapping of 
ConstraintViolationExceptions from the application level, and/or non 
default groups.
It is such feature in the GWT roadmap, or there is currently a way to solve 
this?

Regards.


-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/UBmhtaIqx-cJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Can't install gwt plugin from Internet Explorer

2012-08-08 Thread Anjum Abbas
Hi I'm new to this group.

I've been using Firefox for GWT testing so far but now need to use IE. 
But when I try and use IE it comes up with a message saying I need to install 
the GWT developer plugin. 
So I've tried clicking on the link and I can manage to save the 
gwt-dev-plugin-x86.exe file. But when I run the installer it comes up with a 
box saying "The feature you are trying to use is on a network resource that is 
unavailable" and the source it is tyring to use appears to be on my C: drive 
here:
C:\Users\anjum.abbas\AppData\Local\Google\Update\Install\{9F0309C0-878F-4280-85AA-6B065C2D8642}\

Can anyone shed any light? All I want to be able to do is install the plugin! ;)

Thanks,
Anjum

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/hsWmDE4rhWoJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: DevMode not working in Chrome after update

2012-08-08 Thread Bertrand CHEVRIER
Got the same issue, any way to force the developper mode?

On Thursday, August 2, 2012 3:23:33 PM UTC+2, Rahul wrote:
>
> +1 for the issue. Annoying.
>
> On Thursday, August 2, 2012 9:20:45 AM UTC+2, Moshe Shaham wrote:
>>
>> I have the same problem with newest chrome 21
>> it was not installed previously. tried to install, and doesn't let me, 
>> says i need to install from the store
>>
>>
>>
>> On Tuesday, July 17, 2012 5:16:03 PM UTC+3, Andy wrote:
>>>
>>> I updated Chrome this morning and now when I try to use DevMode I get an 
>>> error "Could not load GWT DevMode Plugin" and an offer to Download the GWT 
>>> Developer Plugin. When I try to download it (it's already installed), it 
>>> says "Extensions, apps, and user scripts can only be added from the Chrome 
>>> Web Store." and there's no GWT plugin in the store.
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/XDmePItmEfAJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Tree View

2012-08-08 Thread Praveen Jesudoss
HI,

I want to show tree view in my application. From db i retrieved data like 
level,id,name,parent id. I stored this in array list. now i want to show 
the data in tree view. i am not able to get correct parent node and child.

Please help me to achieve this.

Thanks and Regards,
Praveen J

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/KqFGpMoWn_oJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Examples and implementation of Dynamic String Internationalization for UIBinder and its classes.

2012-08-08 Thread Bens
Hi all,

We have started a small GWT project which needs to support multiple 
languages. For that we go for internationalization technique in GWT. As far 
we read the GWT Internalization module, static implementation was simple 
but for that we need to re-compile each and every time we change any thing 
in properties files or while adding new labels & languages. It is ok when 
we change labels and add new languages. But for replacing gramatical and 
verbal errors in the properties files for other languages, we have to 
re-compile them. 

So, we analyzed and checked whether we can move the properties files alone 
from the interface calling location to separate location away from project 
and call them externally. But localization in GWT requires the properties 
files need to be in same location, where the respective interface calls are 
done. Is there any other way to do this?

Also, we came to know the GWT supports internalization using dynamic string 
method, where we can write all the labels in the hosted HTML page change 
them for each language using Java-Script calls. Can this Dynamic String 
Internalization supports the change (in multiple languages) for the labels 
declared in UIBinder and its java class.? If so, can anyone explain it with 
simple example...


Regards,
Nataraj...

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/FPy9gykFWkUJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT AND SOAP

2012-08-08 Thread Vassilis Virvilis

Hi everybody,

Sorry for the late post. I was offline

On 07/26/12 16:31, Blake McBride wrote:

Greetings,

I ran through the same issues.  Spent quite a bit of time banging my 
head against the wall. (Still am!!)  I sense a lot of GWT stuff is 
simple to those who already know HTML/JavaScript/CSS/JSP/etc..  They 
understand what is going on underneath, what the limitations are, and 
what common workarounds are.  For those of us non-experts in the above 
technologies, GWT is very difficult.  It seems to be filled with 
arbitrary limitations and arbitrary mechanisms.  It is sad in a way 
because I believe GWT was meant to hide all that stuff.  In spite of 
all these frustrations however, I have found GWT to be the best thing 
out there.  HTML is the worst environment I've ever seen for writing 
interactive applications by far!




Couldn't put it better my self.

Naturally, GWT includes a communications mechanism that works and is 
sufficient if you write the front-end and backend in GWT.  There is no 
need for trying to use another mechanism - you'd be adding a lot of 
unnecessary work.  On the other hand, if you already have an existing 
back-end and you are trying to link it up with a GWT front-end you 
need something else like SOAP.  I spent a huge amount of time trying 
all sorts of ways to get this working with little success for a long 
time until I finally settled on something that worked well.  What I 
did was use GWT to create the front-end and backend so that the two 
sides were communicating in native GWT.  I then had the GWT backend 
create a socket connection with the real backend and communicate with 
it.  I created all of the code to very easily form the socket 
connection and have the ability to bi-directionally communicate via 
named methods and arbitrary structured data.  This can all be done 
without adding new classes for each communication (to specify the 
arguments).  Another beauty of this is that the real server and the 
GWT server can be operating on different machines, different URL's, 
different ports, etc..




I am on a similar position right now. We are evaluating ways to bridge 
SOAP and GWT. If you are using Apache-CXF as your GWT backend you could 
use their javascript support and to JSNI from GWT to their client 
javascript library (http://cxf.apache.org/docs/javascript-clients.html). 
Unfortunately in my case I can't use it because I have a strict 
requirement for ws-security that cxf's generated javascript does not 
support. So we are looking to build GWT RPC as middle end (as you 
suggested) and maybe auto generate the java interface files.


I offered the code to the GWT community before but there was no 
interest.  I haven't spent the time to package up the code due to the 
lack of interest but if you want it I'd be happy to package it up and 
give it to you.  Let me know.




I would be very interested to see how you solved this problem.

  Thanks

   Vassilis Virvilis

--
You received this message because you are subscribed to the Google Groups "Google 
Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT ui:style how big of a bad idea (or not) is it to use it?

2012-08-08 Thread Ryan Shillington
I don't use JQuery, and I can't see a reason why you would.  JQuery is 
Javascript, which brings you back into the world of not having your code 
compiled until you (or worse your user) executes it.

If you really want to use JQuery for something, you can always us the 
@external flag.  Then it won't get obstruficated.  

http://code.google.com/p/google-web-toolkit/wiki/CssResource#External_and_legacy_scopes



Ryan

On Saturday, August 4, 2012 9:40:23 AM UTC-5, Nuno Godinho de Matos wrote:
>
> Hi,
> I am wondering how big a mistake is it to take advantage of the ui:style 
> feature in ui binder interfaces?
> Say your styles are all comprised within ui:style tags, and you always 
> refer to them using the {style.} notation.
> Now, on the browser, this shall all become obfuscated after 
> gwt:compilation, the style name are not recognizable.
> If we were to follow this approach for every style used on the 
> application, wouldn't we also lose the potential of navigating the page dom 
> with css selectors for example using library such as the Jquery gwt wrapper?
> What's the policy here? 
> One should never depend on the defined style names for executing, say, 
> presentation logic such as collapsing dom elements?
>
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/vDlEbkLHFNMJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: RequestFactory Error -- java.lang.IllegalArgumentException: Something other than a Java object was returned from JSNI method

2012-08-08 Thread Ryan Shillington
It's already been reported here: 
http://code.google.com/p/google-web-toolkit/issues/detail?id=5778

Looks like it's a devMode only issue.

Ryan

On Wednesday, April 25, 2012 10:14:04 PM UTC-5, Pradeep B Pillai wrote:
>
>
>
> The following is the other error i get  frequently and this seems like 
> its more related to request factory 
> and I dont know why its happening ..Should I open a bug ? 
>
> I'm using GWT 2.4, browser Chrome 18.0.1025.1065 
>
> One or more exceptions caught, see full set in 
> UmbrellaException#getCauses - 
>  CAUSE java.lang.IllegalArgumentException: Something other than a Java 
> object was returned from JSNI method 
> '@com.google.web.bindery.autobean.gwt.client.impl.ClientPropertyContext 
> $Setter::beanSetter(Lcom/google/web/bindery/autobean/shared/impl/ 
> AbstractAutoBean;Ljava/lang/String;)': JS value of type boolean, 
> expected java.lang.Object 
> java.lang.IllegalArgumentException: Something other than a Java object 
> was returned from JSNI method 
> '@com.google.web.bindery.autobean.gwt.client.impl.ClientPropertyContext 
> $Setter::beanSetter(Lcom/google/web/bindery/autobean/shared/impl/ 
> AbstractAutoBean;Ljava/lang/String;)': JS value of type boolean, 
> expected java.lang.Object 
>  STACKTRACE : 
> com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext 
> $StandardPayloadDialect.processPayload(AbstractRequestContext.java: 
> 387) 
> com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext 
> $5.onTransportSuccess(AbstractRequestContext.java:1108) 
> com.google.web.bindery.requestfactory.gwt.client.DefaultRequestTransport 
> $1.onResponseReceived(DefaultRequestTransport.java:136) 
> com.citrix.ws.democenter.module.shared.client.requestfactory.DemoCenterRequestTransport
>  
>
> $1.onResponseReceived(DemoCenterRequestTransport.java:84) 
> com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java: 
> 287) 
> com.google.gwt.http.client.RequestBuilder 
> $1.onReadyStateChange(RequestBuilder.java:395) 
> sun.reflect.GeneratedMethodAccessor352.invoke(Unknown Source) 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
>  
>
> 25) 
> java.lang.reflect.Method.invoke(Method.java:597) 
> com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) 
> com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) 
> com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: 
>
> 172) 
> com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:
>  
>
> 337) 
> com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
>  
>
> 218) 
> com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 
> 136) 
> com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 
> 561) 
> com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: 
> 269) 
> com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
>  
>
> 91) 
> com.google.gwt.core.client.impl.Impl.apply(Impl.java) 
> com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213) 
> sun.reflect.GeneratedMethodAccessor345.invoke(Unknown Source) 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
>  
>
> 25) 
> java.lang.reflect.Method.invoke(Method.java:597) 
> com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) 
> com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) 
> com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: 
>
> 172) 
> com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
>  
>
> 292) 
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
>  
>
> 546) 
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 
>
> 363) 
> java.lang.Thread.run(Thread.java:680) 
>  from 
> sourceClasscom.google.web.bindery.event.shared.UmbrellaExceptionwith 
> exception com.google.web.bindery.event.shared.UmbrellaException: One 
> or more exceptions caught, see full set in UmbrellaException#getCauses

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/r-_YNz5nAWgJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



[2.5rc1]bugs in CompositeCell?

2012-08-08 Thread 退5的工科苹岷
Dear All

I am just a newbie, I don't know whether this is a place to report bug. If
not, please tell me where should I put.

Seems CompositeCell only accept 2 child-Cells, otherwise, exceptions will
be thrown in Development Mode.
If these 2 child-Cells are both ActionCells, it might trigger ActionCell's
handler when you click even on the blank area of the CompositeCell.

=
EntryPoint:

class UserInfo{
String userName;
String userLevel;
String nickName;
String eMail;
String title;
Date createDate;
String body;
 public UserInfo(String userName){
this.userName = "userName:" + userName;
this.userLevel = "userLevel:" + userName;
this.nickName = "nickName:" + userName;
this.eMail = "eMail:" + userName;
this.title = "title:"  + userName;
this.createDate = new Date();
this.body = "body:" +  userName;
}
}


List al =  Arrays.asList(new UserInfo("1234"),new UserInfo("qwer"),
new UserInfo("asdf"),new UserInfo("zxcv"),
new UserInfo("uiop"),new UserInfo("hjkl"),
new UserInfo("vbmn"),new UserInfo("7890"),
new UserInfo("uytr"),new UserInfo("同济大学"));


List> hasCells = new ArrayList>();
 hasCells.add(new HasCell() {

private ActionCell cell4 = new ActionCell("ActionCell4",
 new ActionCell.Delegate(){
@Override
public void execute(UserInfo object) {
Window.alert("ActionCell cell4:username:"+object.userName);
}
 }
);
@Override
public Cell getCell() {
  return cell4;
}
@Override
public UserInfo getValue(UserInfo object) {
return object;
}
@Override
public FieldUpdater getFieldUpdater() {
//Window.alert("ActionCell cell4");
return null;
}

  });


hasCells.add(new HasCell() {

private ActionCell cell5 = new ActionCell("ActionCell5",
 new ActionCell.Delegate(){
@Override
public void execute(UserInfo object) {
Window.alert("ActionCell cell5:createDate:"+object.getCreateDateFormated());
}
 }
);
@Override
public Cell getCell() {
  return cell5;
}
@Override
public UserInfo getValue(UserInfo object) {
return object;
}
@Override
public FieldUpdater getFieldUpdater() {
//Window.alert("ActionCell cell5");
return null;
}

  });



HelloWorldCompositeCell hwcc = new HelloWorldCompositeCell(hasCells);
CellList cl = new CellList(hwcc);
cl.setRowData(al);
RootPanel.get().add(cl);
=

public class HelloWorldCompositeCell extends CompositeCell {
 interface MyUiRenderer extends UiRenderer {
void render(SafeHtmlBuilder sb, UserInfo user);
  }
private static MyUiRenderer renderer = GWT.create(MyUiRenderer.class);

public HelloWorldCompositeCell(List> hasCells) {
super(hasCells);
}

@Override
public void render(Context context, UserInfo user, SafeHtmlBuilder sb) {
if (user == null) {
  return;
}
 renderer.render(sb, user);
sb.appendHtmlConstant("");
super.render(context, user, sb);
sb.appendHtmlConstant("");
}
@Override
protected  void render(Context context, UserInfo value,
SafeHtmlBuilder sb, HasCell hasCell) {

  if ((value == null) || (hasCell == null)) {
 return;
  }

  Cell cell = hasCell.getCell();
  sb.appendHtmlConstant("");
  cell.render(context, hasCell.getValue(value), sb);
  sb.appendHtmlConstant("");
}
}

=
HelloWorldCompositeCell.ui.xml

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

  

  
.floatLeft { float:left }
.floatRigth { float:right }
.authorInfo { width: 25%; background-color:pink; border: 1px solid red;
}
.content {  width: 75%;border: 1px solid black; }
.title { background-color:gray; }
.body { color:gray; }
.enabled { color:black; }
.disabled { color:gray; }
  

  
  



hello, .





  
  
  
  
  
  

  
  
  
  



  

=
You will see every item in the CellList will be shown as a 2x2 table. In
right-bottom grid, ActionCell4 and ActionCell5 are there. But when you
click first row of the item,  ActionCell4 will be triggered. when you click
second row ot the item, even black area of the row, ActionCell5 will be
triggered. I think it's a bug.
=
=

There is another problem.
If you give one more child-cell, not mater TextCell, ButtonCell or
CheckboxCell, when you click exception will be thrown on Development Mode.
 =
You can put this TextCell:
 hasCells.add(new HasCell() {

private TextCell cell3 = new TextCell(){};
@Override
public Cell getCell() {
  return cell3;
}
@Override
public String getValue(UserInfo object) {
return object.eMail;
}
@Override
public FieldUpdater getFieldUpdater() {
Window.alert("TextCell3");
return null;
}

});
=
You will get this exception:
23:09:26.062 [ERROR] [gwtlearn25rc1] Uncaught exception escaped

com.google.gwt.core.client.JavaScriptException: (TypeError)
@com.google.gwt.core.client.impl.Impl::

Re: log4j for GWT

2012-08-08 Thread Hendrik Brummermann
Vinayak wrote:

> How to configure log4j for GWT.

I ported log4j to GWT: http://log4j-gwt.sourceforge.net/

It uses the GWT handlers as appenders, so the configuration is done in your 
something.gwt.xml file as described on 
https://developers.google.com/web-toolkit/doc/latest/DevGuideLogging#Configuring_GWT_Logging

Hendrik

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/I4jCQRdPLScJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Can't install gwt plugin for chrome/firefox/internet explorer

2012-08-08 Thread danielMartinus
I tried to install the browser plugin of gwt to finally run an application 
in my browser, now did i found out its a really painfull operation.
And to make sure to everyone i searched on many discussions but could not 
find the answer.

I am using Windows 7 and Eclipse (with all sdk's etc. needed for gwt).

My problem (Chrome):
When i try to download the plugin on chrome it says i can't download this 
plugin directly, and that i have to download it from the market..
There is no gwt plugin on the market of google.. i searched for it. So i 
readed somewhere to put the scx file in the Chrome://Extensions directory, 
but this did not work. Chrome asked again if i wanted to install this gwt 
plugin when i try to run the application.

Problem (Firefox):
Firefox could not find any plugin, so i uninstalled firefox, and downloaded 
the newest version. When i started the gwt application in firefox it says 
its outdated! but i have the newest version of firefox!? how is this 
possible? anyone? How to solve this?

My last try is going to be Internet explorer, its outdated so i download 
the newest version, but how to fix it on Chrome or firefox? Anyone?
How can i download a plugin on chrome without downloading it from the so 
called "market"?




-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/gNQrdue62hgJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: CellList categories

2012-08-08 Thread 退5的工科苹岷
Why not CellTree or CellBrowser?

2012/8/7 Jens 

> Hi,
>
> is it somehow possible to extend CellList so it supports categories? And
> maybe make it possible that categories get attached to the top of the
> CellList when scrolling, so you can always see to which category the
> currently visible items belong?
>
> Has anyone already done something like that?
>
> -- J.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/YLO7lQLcQHgJ.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>



-- 
Gong Min
gongmin...@gmail.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT Cross Site Iframe Linker and Script Tags

2012-08-08 Thread blurk
On Tuesday, July 24, 2012 11:32:56 AM UTC+2, Daniel wrote:
> Thanks for the explanation.
> I find this very interesting. This means I'll be able to extend 
> the CrossSiteIframeLinker Linker and overwrite 
> the fillSelectionScriptTemplate() function to include all required scripts 
> with sth like document.write() 
> or document.getElementsByTagName("head")[0].appendChild()
> 
> 
> And to guarantee that they are present during onModuleLoad() there should be 
> a couple of workarounds, like checking in every entry point module if scripts 
> are ready (with sth like typeof LibraryName === "undefined") and if not 
> postpone startup until they are ready.
> Or maybe taking a closer look at the regular IFrameLinker. From what I see 
> right now it basically uses document.write(" defer="defer">module.onInjectionDone('module')") and then 
> calls maybeStartModule() which hopefully will have code I can reuse.
> 
> 
> And the reason google didn't include this in their CrossSiteIframeLinker is 
> because they didn't want to use document.write() for this linker?

do you have found how to handle that; i have the same trouble

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/ULWKN3Drqg8J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: RequestFactory Error -- java.lang.IllegalArgumentException: Something other than a Java object was returned from JSNI method

2012-08-08 Thread Ryan Shillington
I've been seeing something similar for ages.  My code isn't anywhere in 
this stack trace.  I have no idea what to do.  I'll report it.

java.lang.IllegalArgumentException: Something other than a Java object was 
returned from JSNI method 
'@com.google.gwt.core.client.impl.Impl::apply(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)':
 JS value of type boolean, expected java.lang.Object
at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:178)
at 
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:271)
at 
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
at sun.reflect.GeneratedMethodAccessor181.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at 
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at 
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
at 
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292)
at 
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546)
at 
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
at java.lang.Thread.run(Thread.java:619)


Ryan


On Wednesday, April 25, 2012 10:14:04 PM UTC-5, Pradeep B Pillai wrote:
>
>
>
> The following is the other error i get  frequently and this seems like 
> its more related to request factory 
> and I dont know why its happening ..Should I open a bug ? 
>
> I'm using GWT 2.4, browser Chrome 18.0.1025.1065 
>
> One or more exceptions caught, see full set in 
> UmbrellaException#getCauses - 
>  CAUSE java.lang.IllegalArgumentException: Something other than a Java 
> object was returned from JSNI method 
> '@com.google.web.bindery.autobean.gwt.client.impl.ClientPropertyContext 
> $Setter::beanSetter(Lcom/google/web/bindery/autobean/shared/impl/ 
> AbstractAutoBean;Ljava/lang/String;)': JS value of type boolean, 
> expected java.lang.Object 
> java.lang.IllegalArgumentException: Something other than a Java object 
> was returned from JSNI method 
> '@com.google.web.bindery.autobean.gwt.client.impl.ClientPropertyContext 
> $Setter::beanSetter(Lcom/google/web/bindery/autobean/shared/impl/ 
> AbstractAutoBean;Ljava/lang/String;)': JS value of type boolean, 
> expected java.lang.Object 
>  STACKTRACE : 
> com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext 
> $StandardPayloadDialect.processPayload(AbstractRequestContext.java: 
> 387) 
> com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext 
> $5.onTransportSuccess(AbstractRequestContext.java:1108) 
> com.google.web.bindery.requestfactory.gwt.client.DefaultRequestTransport 
> $1.onResponseReceived(DefaultRequestTransport.java:136) 
> com.citrix.ws.democenter.module.shared.client.requestfactory.DemoCenterRequestTransport
>  
>
> $1.onResponseReceived(DemoCenterRequestTransport.java:84) 
> com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java: 
> 287) 
> com.google.gwt.http.client.RequestBuilder 
> $1.onReadyStateChange(RequestBuilder.java:395) 
> sun.reflect.GeneratedMethodAccessor352.invoke(Unknown Source) 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
>  
>
> 25) 
> java.lang.reflect.Method.invoke(Method.java:597) 
> com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) 
> com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) 
> com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: 
>
> 172) 
> com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:
>  
>
> 337) 
> com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
>  
>
> 218) 
> com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 
> 136) 
> com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 
> 561) 
> com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: 
> 269) 
> com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
>  
>
> 91) 
> com.google.gwt.core.client.impl.Impl.apply(Impl.java) 
> com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213) 
> sun.reflect.GeneratedMethodAccessor345.invoke(Unknown Source) 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
>  
>
> 25) 
> java.lang.reflect.Method.invoke(Method.java:597) 
> com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) 
> com.google.gwt.dev.shell.MethodDispatch.invoke(

Lock columns using flextable

2012-08-08 Thread JDThermo
I spent all day looking for a solution to my problem and couldn't find anything 
which I find surprising.  I have some flexibility on changing the code, but to 
move away from using FlexTable would be painful so I would prefer not to have 
to do that.

We had a solution that was IE specific that worked with GWT1.7 using 
expressions within the CSS, but that doesn't seem to work anymore with GWT2+.

We only support IE for our internal users so an IE only solution would be fine, 
however if you have a cross browser solution that would of course be better.

The problem in case the subject isn't enough is we need to be able to lock 
columns on the left of the table so that when you scroll horizontally those 
columns stay visible, just like Excel.  I need a ONE table solution, I know 
there are two table solutions however I find it hard to believe there are no 
CSS or one table solutions.

Thanks for you time.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/bI-fiFZkwvYJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



UiObject not supported in UiBinder's declarative XML ?

2012-08-08 Thread gwtlearner
The GWT plugin generates the type UiObject for HTML only UiBinder, However this 
class cannot be used in other widgets ui.xml
That is, for something like this:





At compile time GWT says :  [ERROR] Not allowed in an HTML context Element 
.

Can anyone help ?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/pNrKtI1SHhEJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT future

2012-08-08 Thread Tim


On Monday, August 6, 2012 1:05:55 AM UTC-7, funkforce wrote:
>
> Do you meant that if I deploy an app compiled with GWT 2.4 today and in a 
> few weeks a new browser version is released , that app wont work with the 
> new browser? 
>
> Certainly possible.  Browsers break backwards compatibility occasionally. 
 IE9 changed the way you do createElement to the more standards compliant 
way and that broke GWT (and many other javascript frameworks) that detected 
that it was IE and used the old IE way.  A new version of GWT was released 
shortly afterwards that fixed the problem, recompiling made it go away.

Thankfully, these sorts of issues are fairly uncommon and there are usually 
ways you can trigger compatibility mode via meta tags or headers to avoid 
the recompile.

Tim


-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/ddGaL7GWbl8J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: byte array to Image

2012-08-08 Thread ganesh R
Thank you it worked for too...

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/1AYWZThemMAJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT future

2012-08-08 Thread Ryan Shillington
FunkForce, do the math.  If GWT 2.4 came out before the browser was even in 
beta, how could they have tested it?

Now with that said, browsers are generally tested against a multitude of 
different sites.  At least a few of them are using GWT. So it's highly 
improbable that your site won't work at all.  There will be a few things 
off though, for sure.  A border that's not quite right here, a button 10 
pixels off of where it should be there, that kind of thing.

The biggest problem is usually IE.  They allow a meta tag that tells the 
browser "render it in version X please" that you can put in your base html. 
 That should get you through until you can fix whatever small thing is off.

Ryan

On Monday, August 6, 2012 3:05:55 AM UTC-5, funkforce wrote:
>
> Thomas,
>
> Reading this:
>
>> but until then, GWT will have adapt to each new browser version, and your 
>> app would have to be recompiled with the newer version of GWT to take 
>> advantage of it. 
>>
>
> Do you meant that if I deploy an app compiled with GWT 2.4 today and in a 
> few weeks a new browser version is released , that app wont work with the 
> new browser? 
>
> Regards 
> FF
>
> Den fredagen den 27:e juli 2012 kl. 17:32:15 UTC+2 skrev Thomas Broyer:
>>
>>
>>
>> On Friday, July 27, 2012 4:53:43 PM UTC+2, Andrei wrote:
>>>
>>> A few thoughts on the future of GWT.
>>>
>>> 1. GWT, as we currently know it, will die. It will be replaced by a more 
>>> "native" way of writing apps for the web. This process will take years. 
>>> Hopefully, GWT will also adjust, keeping its relevance for a long time. 
>>> Elemental is the step in that direction.
>>>
>>> 2. Google wants to kill Java. It started with a lawsuit from Oracle - 
>>> Google responded by launching Dart and Go. It won't be clear for at least 
>>> another year if either Dart or Go become viable alternatives to Java. I 
>>> will not be surprised if both of these efforts will be quietly abandoned by 
>>> Google now that the threat from Oracle is over. They will most likely make 
>>> no such decision any time soon, but I would not recommend starting any 
>>> major projects in Dart for at least another year.
>>>
>>
>> I absolutely do NOT agree with the above two points.
>>
>> Dart isn't there to replace GWT, it's been created to compete with 
>> JavaScript (and compile to JavaScript for a smooth transition: you don't 
>> want to code your app twice, right?) because the dynamic nature of 
>> JavaScript makes it really hard to optimize JS engines.
>>
>> And Go has been created to compete with C++, at least for some usage of 
>> it (
>> http://commandcenter.blogspot.fr/2012/06/less-is-exponentially-more.html)
>>
>> Finally, I cannot see a single reason Google would like to kill Java. 
>> Sure there was the Oracle lawsuit, but Google has too much dependency on 
>> Java. Switching over from Java would likely kill Android, and could cost 
>> Google way too much to be a viable move, unless Google would have no other 
>> choice (e.g. if Oracle had won the case, but then Oracle would have killed 
>> Java, not the other way around).
>>
>> 3. Even though GWT is not as enthusiastically supported by Google as it 
>>> should be (in my opinion), I would certainly recommend against forcing your 
>>> team to learn a completely new platform. If you are a Java shop, GWT is the 
>>> best available option for any project starting this year.
>>>
>>> 4. Web browsers have really matured (i.e. stabilized) over the past 
>>> couple of years. Unless you are building a cutting-edge 3D game or a 
>>> web-based replacement for Photoshop, your new GWT app will stay relevant 
>>> for a decade. It will morph, like all good projects do, but GWT is a very 
>>> solid foundation for data manipulation, i18n, history management, and page 
>>> rendering. And you can add as much (or as little) HTML5 and CSS3 on the 
>>> presentation side as you want - I don't feel like GWT is restricting me in 
>>> any way.
>>>
>>
>> +1 to that though (even though you'd have to recompile your app regularly 
>> against the updated versions of GWT if you want it to last "a decade": 
>> browsers have matured, but GWT still has to handle each one of them 
>> specifically; in the future maybe we'd have a single permutation across all 
>> browsers, but until then, GWT will have adapt to each new browser version, 
>> and your app would have to be recompiled with the newer version of GWT to 
>> take advantage of it.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/RFR3SeYai14J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



[2.5rc1] Does .ui.xml file for AbstractCell support GWT Panels and Widgets?

2012-08-08 Thread 退5的工科苹岷
Following instruction of  "Rendering HTML for Cells" in devGuide of
UiBinder, it works.
*But does template file (.ui.xml) support GWT Panels and Widgets?*
 I replaced  by   (also ) with  in
.ui.xml file,
no error or exception was thrown out, but also nothing was shown.

So, I guess .ui.xml file for AbstractCell doesn't support GWT Panels and
Widgets. Rigth?
If it really doesn't support, I prefer it throw out an exception.

Btw, should all render() methods be overrided by myself to render HTML to
outer widget/panel/element? just like AbstractCell's render().
*Is there any method can convert a Widget, Panel, Composite or
CompositeCell to SafeHtml? *
If yes, the render() methods can be implemented very simply.

To be honest,* what I want is to put normal Panels and Composites as an
 AbstractCell / CompositeCell template in CellList or CellTable*. Anybody
tried this before?

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Disclosure Panel - how can I avoid from button border?

2012-08-08 Thread Vaishali Kulkarni
DisclosurePanel wraps the header in an , hence the underlined text and
bordered image.
You need to remove the default CSS that GWT provides for DisclosurePanel 
and DisclosurePanelHeader
Remove .gwt-DisclosurePanel, .gwt-DisclosurePanel-closed and 
.gwt-DisclosurePanel-content from the DisclosurePanel instance you are 
using and set your own CSS style to it.
Something like this:
.my-DisclosurePanel {
}
.my-DisclosurePanel-open {

width: 100%;
height: 100%
}
.my-DisclosurePanel-closed {

}
.my-DisclosurePanel .header,
.my-DisclosurePanel .header a,
.my-DisclosurePanel .header td {
  text-decoration: none;  /* Remove underline from header */
  color: black;
  cursor: pointer;
  cursor: hand;
}
.my-DisclosurePanel .content {
width: 100%;
height: 100%
/*border-left: 3px solid #e8eef7;
  padding: 4px 0px 4px 8px;
  margin-left: 6px;*/

}

That will get ride of any decoration gwt provides unnecessarily to 
DisclosurePanel

Thanks,
Vaishali 

On Monday, April 12, 2010 9:04:50 AM UTC-4, Konstantin Konyaev wrote:
>
> Gentlemen,
> I use Disclosure Panel widget. Its OPEN button is image-based. Both in
> Hosted Mode and under Firefox there is a solid border around the
> button's image (it's blue in Hosted Mode and black under Firefox). I
> hate the border and wanna destroy 'em. How can I do it? I am clever
> guy :) and tried to cook CSS
> I used
>   border-color: white;
>   margin-left:0;
>   margin-top:0;
>   button-margin-bottom:0px;
>   margin-color:white;
>
> Unfortunately all the ways are fully useless. Lo how can I solve the
> problem?
>
> With best regards
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/NI1yRtCfWnYJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



facebook authentication

2012-08-08 Thread Alejandro Montenegro
Hi,
developing an app and would like to use facebook api to do user
authentication. Does any has a pointer about how to do this integrated with
GWT?

thanks
Alejandro

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Problem generating Elemental sources

2012-08-08 Thread John A.
Getting this stack trace when trying to run the generate target on 
elemental:

[john@vaadin elemental]$ ant generate
Buildfile: /home/john/Repositories/gwt/trunk/elemental/build.xml

generate:
 [exec] Traceback (most recent call last):
 [exec]   File "idl/scripts/elemental_fremontcutbuilder.py", line 217, 
in 
 [exec] sys.exit(main())
 [exec]   File "idl/scripts/elemental_fremontcutbuilder.py", line 214, 
in main
 [exec] return build_database(idl_files, database_dir)
 [exec]   File "idl/scripts/elemental_fremontcutbuilder.py", line 139, 
in build_database
 [exec] builder.import_idl_file(file_name, webkit_options)
 [exec]   File 
"/home/john/Repositories/gwt/trunk/elemental/idl/scripts/databasebuilder.py", 
line 472, in import_idl_file
 [exec] idl_file = self._load_idl_file(file_path, import_options)
 [exec]   File 
"/home/john/Repositories/gwt/trunk/elemental/idl/scripts/databasebuilder.py", 
line 83, in _load_idl_file
 [exec] defines=import_options.idl_defines)
 [exec]   File 
"/home/john/Repositories/gwt/trunk/elemental/idl/scripts/idlparser.py", 
line 444, in parse
 [exec] content = self._pre_process(content, defines, includePaths)
 [exec]   File 
"/home/john/Repositories/gwt/trunk/elemental/idl/scripts/idlparser.py", 
line 424, in _pre_process
 [exec] stdout=subprocess.PIPE, stderr=subprocess.PIPE)
 [exec]   File "/usr/lib64/python2.7/subprocess.py", line 672, in 
__init__
 [exec] errread, errwrite)
 [exec]   File "/usr/lib64/python2.7/subprocess.py", line 1202, in 
_execute_child
 [exec] raise child_exception
 [exec] OSError: [Errno 2] No such file or directory
 [exec] Traceback (most recent call last):
 [exec]   File "idl/scripts/elementaldomgenerator.py", line 164, in 

 [exec] sys.exit(main())
 [exec]   File "idl/scripts/elementaldomgenerator.py", line 155, in main
 [exec] database_dir, use_database_cache)
 [exec]   File "idl/scripts/elementaldomgenerator.py", line 120, in 
GenerateDOM
 [exec] systems = systems)
 [exec]   File 
"/home/john/Repositories/gwt/trunk/elemental/idl/scripts/elementalgenerator.py",
 
line 279, in Generate
 [exec] 
self.PopulateMixinBase(self._database.GetInterface('ElementalMixinBase'), 
mixins)
 [exec]   File 
"/home/john/Repositories/gwt/trunk/elemental/idl/scripts/database.py", line 
188, in GetInterface
 [exec] raise RuntimeError('Interface %s is not loaded' % 
interface_name)
 [exec] RuntimeError: Interface ElementalMixinBase is not loaded

Running against the latest GWT trunk (rev 11195) with Python 2.7.1 on a 
Linux (Fedora 15) platform.

Any ideas?

-- John

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/qEW4EqrM7m8J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT vs YUI

2012-08-08 Thread Sebastián Gurin
I'm doing a YUI 3 GWT Java API on 
code.google.com/p/*yuigwt*/

On Tuesday, December 4, 2007 9:59:37 AM UTC-2, eliasb...@gmail.com wrote:
>
> I personally believe GWT is best case scenarion for people that refuse or 
> want to avoid the quirks of HTML+JavaScript
> It is my personal choice because it allows me to program a web 
> application's UI the same way I program a standalone application (Swing 
> like or SWT like) 
> Also programming with a more familiar model requires less time. 
> Development times and related costs are thus reduced.
> Extensibility is also another additional benefit. Being able to create 
> custom components (either from scratch or from others) adds flexibility. 
> I would suggest creating GWT wrappers of the YUI components. I haven't 
> done something similar (yet) but I believe it is worth the effort plus I 
> wouldn't expect it to be very hard.
>
> On Dec 4, 2007 1:52 PM, Gene Ash > wrote:
>
>>
>> Hi,
>>
>> We have been using GWT as the framework in our project for quite some
>> time. Now we are considering migrating the application to YUI due to
>> the following reasons:
>>
>>  1. Richness of controls available 
>>  2. Simpler skinning model (developing custom CSS to meet the project
>> styles)
>>  3. More open - no complicated Java-to-JS tool to deal with, if we
>> really get stuck
>>  4. flexible separation between AJAX features and server-side 
>> templates
>>  5. fairly good object-oriented JavaScript - using proto-types and
>> super-classes
>>
>> But I am personally not clear as to which framework is better in the
>> long run. So I thought of getting your views in this regard. Please 
>> share your views/suggestions. Thanks.
>>
>> Kind Regards,
>> Gene
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/L7lst2rEDJAJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Showing and Editor's errors

2012-08-08 Thread Jens
Your editor views should implement HasEditorErrors and then you have access 
to the errors in your view so you can visualize them. As an example you can 
take a look at ValueBoxEditorDecorator which can wrap a ValueBox and 
displays any error for that ValueBox as a Label above the ValueBox.

Not sure about the next thing but I guess driver.hasErrors() only returns 
true if your Editor view implements HasEditorDelegate and you call 
delegate.recordError() in your view. You most likely use that if you 
implement ValueAwareEditor in your view so you can check the view's value 
when flush() is called.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/c3Zbg733sB8J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Showing and Editor's errors

2012-08-08 Thread Alexander Orlov
If an Editor doesn't satisfy an Entity's constraints, it calls

driverCtx.fire(new Receiver() {
>   @Override
>   public void onConstraintViolation(Set> 
> violations) {
> dialog.setText("Errors detected");
> Driver.DRIVER.setConstraintViolations(violations);
> List editorErrors = Driver.DRIVER.getErrors();
> for (EditorError editorError : editorErrors) {
>   Logger.getLogger("editorError.getMessage(): ").log(Level.INFO, 
> editorError.getMessage() + ""); // prints two constraint violations
> }
>  }
>

Are the constraint violations visualized in some way? Because I don't see 
any visualizations

Before firing the Receiver I do

final RequestContext driverCtx = Driver.DRIVER.flush();

if (Driver.DRIVER.hasErrors()) {

  dialog.setText("Invalid input");
>   return;
> }


but *Driver.DRIVER.hasErrors()* remains always *false* although *
onConstraintViolation* is executed when some fields are missing.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/5Ev4rqgXgXMJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT future

2012-08-08 Thread Andy Stevko
David,
Its a "BUY-long"  on my list.
Seeing the huge line of peeps waiting for the "history & future" session
was a sure signal that there is a lot of interest (outside of google).
The volume of GWT recruiter hits on my LinkedIn profile means there is new
work being done,
Moving to an external F/OSS respository and master commiters will increase
the velocity of the framework rather than waiting months & years for google
to vet the commits to protect the stability of their internal systems.
 (see my signature for my philosophy)
Not to say its a sure bet. Growing up is hard to do...



On Wed, Aug 8, 2012 at 7:56 AM, David  wrote:

> Anyone have insight as to the future of gwt-platform?
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/ikihJOJBCgoJ.
>
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>



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

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT future

2012-08-08 Thread David
Anyone have insight as to the future of gwt-platform?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/ikihJOJBCgoJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: SuperDevoMode and Source Maps

2012-08-08 Thread Adolfo Panizo Touzon
Thomas, you are right! Now I can see all the code, but I am receiving
SOP problems.

I've read in other posts that if I copy/paste all the *.gwt.rpc files into
my war folder, I can avoid that problems... is that correct?

But... when I am trying to compile the app I receive this error:

Compiling module uk.co.myApp.appName
 *  [WARN] Unable to read:
jar:file:/C:/gwt-2.5.0.rc1/gwt-user.jar!/com/google/gwt/user/User.gwtar.
Skipping: java.io.InvalidClassException:
com.google.gwt.dev.jjs.SourceOrigin$1; local class incompatible: stream
classdesc serialVersionUID = -2407201776821563037, local class
serialVersionUID = 4713379764594032837*
*   [WARN] Unable to read:
jar:file:/C:/gwt-2.5.0.rc1/gwt-user.jar!/com/google/gwt/core/Core.gwtar.
Skipping: java.io.InvalidClassException:
com.google.gwt.dev.jjs.SourceOrigin$1; local class incompatible: stream
classdesc serialVersionUID = -2407201776821563037, local class
serialVersionUID = 4713379764594032837*
*   [WARN] Unable to read:
jar:file:/C:/gwt-2.5.0.rc1/gwt-user.jar!/com/google/gwt/logging/Logging.gwtar.
Skipping: java.io.InvalidClassException:
com.google.gwt.dev.jjs.SourceOrigin$1; local class incompatible: stream
classdesc serialVersionUID = -2407201776821563037, local class
serialVersionUID = 4713379764594032837*
*   [ERROR] An internal compiler exception occurred*
*com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during
visit.*
**
**
*Caused by: java.io.InvalidClassException:
com.google.gwt.dev.jjs.SourceOrigin$1; local class incompatible: stream
classdesc serialVersionUID = -2407201776821563037, local class
serialVersionUID = 4713379764594032837*
* at java.io.InvalidClassException.(InvalidClassException.java:62)*
*...*

I've seen here

that
maybe is a bug (I am using RAD and WebSphere from IBM).

Any ideas?

Thank you in advance.

Adolfo.

2012/8/8 Thomas Broyer 

> I might be wrong (this is from memory) but myapp.devmode.is rings a bell:
> are you by any mean running in DevMode? I.e. do you have ?gwt.codesvr= in
> your URL?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/-L36TqToFQEJ.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
El precio es lo que pagas. El valor es lo que recibes.
Warren Buffet

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



SuperDevMode and server-side code

2012-08-08 Thread Thomas Broyer
You shouldn't load your app from the code server, but from your "app server". 
When you invoke the "Dev Mode On" bookmarklet, it'll load the app from the code 
server, but the app's "origin" will still be your app server.

Short answer: run them on distinct ports, or even distinct machines.

This is no different from the -noserver mode of the DevMode.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/KWxvGkExJSwJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: SuperDevoMode and Source Maps

2012-08-08 Thread Thomas Broyer
I might be wrong (this is from memory) but myapp.devmode.is rings a bell: are 
you by any mean running in DevMode? I.e. do you have ?gwt.codesvr= in your URL?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/-L36TqToFQEJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: SuperDevoMode and Source Maps

2012-08-08 Thread Julien Dramaix
Do you add these two lines in your gwt.xml file :





On Wednesday, August 8, 2012 11:03:11 AM UTC+2, apanizo wrote:
>
> Hi Paul,
>
> thank you for answering.
>
> Yes, I had the source maps enabled, and I did the compilation with the 
> developers Tools open and it's the same.
>
> I can see the myapp.devmode.js and the myapp.nocache.js, but not the code.
>
> It's strange because in the work dir ( -workDir The root of the directory 
> tree where the code server will write compiler output. If not supplied, a 
> temporary directory will be used.), I can see the java files.
>
> It could be something related with the -src flag when I am launching the 
> Java app?? (*I am using  -src C:\myWorkSpace\myWebApp\src\myapp\client*)
>
> Thanks in advance,
>
> Adolfo.
>
>
>
>
> 2012/8/8 Paul Robinson >
>
>> Have you enabled source map support in chrome? Click the settings 
>> cog/wheel thing in the bottom-right corner, and tick "Enable source maps".
>>
>> Also, you must compile while the developer tools tab is open, or else it 
>> won't show the java source code.
>>
>> HTH
>> Paul
>>
>> On 08/08/12 08:42, Adolfo Panizo Touzon wrote:
>> > Hi all,
>> >
>> > I am trying to user SuperDevMode with SourceMaps but I think I am doing 
>> something wrong.
>> >
>> > I succeeded running the code server as a Java process (I have the 
>> bookmarks "Dev mode on" and "Dev mode off" in my browser's tab), also I 
>> have running the app without problems and even if I make click on "Dev mode 
>> on" tab, the app's compilation works perfect.
>> >
>> > But it's impossible for me find the .java files in the Developer 
>> Tools's Scripts. In the classpath's tab I've added the src folder of my app 
>> (when I created the Java app in order to serve to the browser the non 
>> optimized JS).
>> >
>> > Further info: If I go to localhost:9087/myApp, I can see the nomal 
>> files that you obtain when you compile the app (many files XXX.gwt.rpc and 
>> the common myapp.noche.js, myap.devmode.js), and this files also appear in 
>> the Developer Tools's Scripts instead of the .java files.
>> >
>> > So, what I am missing?
>> >
>> > Thank you in advance.
>> >
>> > Adolfo.
>> >
>> >
>> >
>> >
>> > --
>> > El precio es lo que pagas. El valor es lo que recibes.
>> > Warren Buffet
>> > --
>> > You received this message because you are subscribed to the Google 
>> Groups "Google Web Toolkit" group.
>> > To post to this group, send email to 
>> > google-we...@googlegroups.com
>> .
>> > To unsubscribe from this group, send email to 
>> google-web-toolkit+unsubscr...@googlegroups.com .
>> > For more options, visit this group at 
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "Google Web Toolkit" group.
>> To post to this group, send email to 
>> google-we...@googlegroups.com
>> .
>> To unsubscribe from this group, send email to 
>> google-web-toolkit+unsubscr...@googlegroups.com .
>> For more options, visit this group at 
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>>
>
>
> -- 
> El precio es lo que pagas. El valor es lo que recibes.
> Warren Buffet
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/WiuHzgV3ZAYJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT future

2012-08-08 Thread funkforce
Thanks!

Den tisdagen den 7:e augusti 2012 kl. 16:14:14 UTC+2 skrev Richard:
>
> IE10 will be able to work as if it's a previous version.  This page should 
> explain it:
> http://msdn.microsoft.com/en-us/library/ff955275(v=vs.85).aspx 
>
> On Tuesday, August 7, 2012 4:10:22 PM UTC+2, funkforce wrote:
>>
>> Thanks Thomas,
>>
>> But what do you mean by  IE=9 mode ?
>>
>> Den tisdagen den 7:e augusti 2012 kl. 10:48:11 UTC+2 skrev Thomas Broyer:
>>>
>>> Generally it should work, but it cannot be guaranteed: workarounds now 
>>> breaking, etc. IE10 is going to be a major change though, so you'll either 
>>> have to use the IE=9 mode, or recompile with a newer GWT.
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/3oPtHQmGp3gJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: SuperDevoMode and Source Maps

2012-08-08 Thread Adolfo Panizo Touzon
Hi Paul,

thank you for answering.

Yes, I had the source maps enabled, and I did the compilation with the
developers Tools open and it's the same.

I can see the myapp.devmode.js and the myapp.nocache.js, but not the code.

It's strange because in the work dir ( -workDir The root of the directory
tree where the code server will write compiler output. If not supplied, a
temporary directory will be used.), I can see the java files.

It could be something related with the -src flag when I am launching the
Java app?? (*I am using  -src C:\myWorkSpace\myWebApp\src\myapp\client*)

Thanks in advance,

Adolfo.




2012/8/8 Paul Robinson 

> Have you enabled source map support in chrome? Click the settings
> cog/wheel thing in the bottom-right corner, and tick "Enable source maps".
>
> Also, you must compile while the developer tools tab is open, or else it
> won't show the java source code.
>
> HTH
> Paul
>
> On 08/08/12 08:42, Adolfo Panizo Touzon wrote:
> > Hi all,
> >
> > I am trying to user SuperDevMode with SourceMaps but I think I am doing
> something wrong.
> >
> > I succeeded running the code server as a Java process (I have the
> bookmarks "Dev mode on" and "Dev mode off" in my browser's tab), also I
> have running the app without problems and even if I make click on "Dev mode
> on" tab, the app's compilation works perfect.
> >
> > But it's impossible for me find the .java files in the Developer Tools's
> Scripts. In the classpath's tab I've added the src folder of my app (when I
> created the Java app in order to serve to the browser the non optimized JS).
> >
> > Further info: If I go to localhost:9087/myApp, I can see the nomal files
> that you obtain when you compile the app (many files XXX.gwt.rpc and the
> common myapp.noche.js, myap.devmode.js), and this files also appear in the
> Developer Tools's Scripts instead of the .java files.
> >
> > So, what I am missing?
> >
> > Thank you in advance.
> >
> > Adolfo.
> >
> >
> >
> >
> > --
> > El precio es lo que pagas. El valor es lo que recibes.
> > Warren Buffet
> > --
> > You received this message because you are subscribed to the Google
> Groups "Google Web Toolkit" group.
> > To post to this group, send email to google-web-toolkit@googlegroups.com
> .
> > To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
El precio es lo que pagas. El valor es lo que recibes.
Warren Buffet

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: SuperDevoMode and Source Maps

2012-08-08 Thread Paul Robinson
Have you enabled source map support in chrome? Click the settings cog/wheel 
thing in the bottom-right corner, and tick "Enable source maps".

Also, you must compile while the developer tools tab is open, or else it won't 
show the java source code.

HTH
Paul

On 08/08/12 08:42, Adolfo Panizo Touzon wrote:
> Hi all,
>
> I am trying to user SuperDevMode with SourceMaps but I think I am doing 
> something wrong.
>
> I succeeded running the code server as a Java process (I have the bookmarks 
> "Dev mode on" and "Dev mode off" in my browser's tab), also I have running 
> the app without problems and even if I make click on "Dev mode on" tab, the 
> app's compilation works perfect.
>
> But it's impossible for me find the .java files in the Developer Tools's 
> Scripts. In the classpath's tab I've added the src folder of my app (when I 
> created the Java app in order to serve to the browser the non optimized JS).
>
> Further info: If I go to localhost:9087/myApp, I can see the nomal files that 
> you obtain when you compile the app (many files XXX.gwt.rpc and the common 
> myapp.noche.js, myap.devmode.js), and this files also appear in the Developer 
> Tools's Scripts instead of the .java files.
>
> So, what I am missing?
>
> Thank you in advance.
>
> Adolfo.
>
>
>
>
> -- 
> El precio es lo que pagas. El valor es lo que recibes.
> Warren Buffet
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Adjusting height of GWT Panels based on content dynamically

2012-08-08 Thread Alexandre Ardhuin
Hi,

Have you look at com.google.gwt.user.client.ui.HeaderPanel ?

Alexandre


2012/8/8 Santosh 

> We have many screens where different types of GWT panels are used. One
> common problem across many screens is that, content size is derived at
> runtime. So, if I define a height for a panel(Vertical/Horizontal/
> DockPanel) and when any new components are getting added within panel
> or content is more, panel height remains the same. So we are not able
> to see the contents. UI look and feel becomes worst. How do we handle
> the height problems? Do we have to manually code to adjust every panel/
> widget height when something gets changed in screen. Is it not a very
> bad way of coding?
> Also, now we have datagrids at some places, if no of records are very
> less, we see a huge space left out below datagrid, not sure how do we
> handle these cases?
>
> Somebody please suggest as it is quite urgent.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



SuperDevoMode and Source Maps

2012-08-08 Thread Adolfo Panizo Touzon
Hi all,

I am trying to user SuperDevMode with SourceMaps but I think I am doing
something wrong.

I succeeded running the code server as a Java process (I have the bookmarks
"Dev mode on" and "Dev mode off" in my browser's tab), also I have running
the app without problems and even if I make click on "Dev mode on" tab, the
app's compilation works perfect.

But it's impossible for me find the .java files in the Developer Tools's
Scripts. In the classpath's tab I've added the src folder of my app (when I
created the Java app in order to serve to the browser the non optimized JS).

Further info: If I go to localhost:9087/myApp, I can see the nomal files
that you obtain when you compile the app (many files XXX.gwt.rpc and the
common myapp.noche.js, myap.devmode.js), and this files also appear in
the Developer Tools's Scripts instead of the .java files.

So, what I am missing?

Thank you in advance.

Adolfo.




-- 
El precio es lo que pagas. El valor es lo que recibes.
Warren Buffet

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Adjusting height of GWT Panels based on content dynamically

2012-08-08 Thread Santosh
We have many screens where different types of GWT panels are used. One
common problem across many screens is that, content size is derived at
runtime. So, if I define a height for a panel(Vertical/Horizontal/
DockPanel) and when any new components are getting added within panel
or content is more, panel height remains the same. So we are not able
to see the contents. UI look and feel becomes worst. How do we handle
the height problems? Do we have to manually code to adjust every panel/
widget height when something gets changed in screen. Is it not a very
bad way of coding?
Also, now we have datagrids at some places, if no of records are very
less, we see a huge space left out below datagrid, not sure how do we
handle these cases?

Somebody please suggest as it is quite urgent.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.