Re: Wishlist - What GWT developers want for Christmas

2012-12-13 Thread Joonas Lehtinen
Looks like our login form is using wrong scope from OAuth API. We'll fix 
this asap. We are definitely not using contacts (only stored information is 
persons own email-address).

The wishlist page is quite simple and there is no admin inferface, so there 
is no be easy way to edit the contents. I think that better than trying to 
remove duplicates (and for that matter split comments with multiple 
proposals), you might like to analyze the most important stuff (both by 
seeing votes and number of similar entries) and publish a blog post about 
the analysis. This would probably clarify the results.

On Wednesday, December 12, 2012 6:53:09 PM UTC+2, V.B. wrote:
>
> Hello Joonas,
>Thanks for your work on the report and for posting the wishlist.
> While I agree with the previous post that the majority of the 2,600 
> wishlist items are duplicates, there are several other valid items buried 
> in the middle or near bottom of the list, which were not covered in the 
> report. At the moment, these are not getting much attention because most 
> voters stop looking after the first 50 or so items. For example, I found 
> comments from a number of members about bugs that don't get fixed (e.g. 
> some are even 2-3 years old), and patches that don't get accepted. I also 
> saw some very important comments about how GWT needs to be better 
> marketed/publicized in order to attract more developers. I suspect that 
> issues like these would get much more up-voting if they were more visible. 
> Perhaps a member of the community (me, for example) could volunteer to 
> remove duplicates, or perhaps the list could be randomized every time it's 
> viewed. Anything to make sure *all* the important issues get attention.
>
> On a separate note, I think even more members might log in and vote if not 
> for the Access-to-Contacts requirement.
>
> Thanks again.
>

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



Send contents of Editor/RequestFactory managed form to server multiple times

2012-12-13 Thread salk31
Hello,

We are using UiBinder/Editors/RequestFactory nicely to do normal forms very 
happily. However we would now like to sometimes send the latest contents of 
the form to the server to do extra validation, generated derived values 
etc... This should all be transparent to the user.

I can't think of a particularly nice way to do this. I've got hacks to 
always fail validation (so the Request fails to that the RequestContext is 
not frozen). I guess I could modify GWT so that AbstractRequestContext 
exposes reuse..

Am I missing something obvious? Some way to clone RequestContext?

Cheers

Sam

-- 
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/-/pV_-ZNRW3zEJ.
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.



Remote debugging with gwt:debug works, with Eclipse it doesn't

2012-12-13 Thread Maik Riechert
Hi,

I am trying to debug a GWT app which is deployed on a Glassfish 3 server. 
When I use gwt:debug from command line, everything works as expected. 
However, I want to use it directly in Eclipse and therefore created a run 
configuration with "Debug as -> Web application (running on an external 
server)", where the args are:

"-war /home/.../workspace/project/.../target/admin -remoteUI 
"${gwt_remote_ui_server_port}:${unique_id}" -startupUrl 
http://my.remote.server/ -logLevel INFO -noserver -codeServerPort 9997 
a.b.c.Application"

When I access a page, I get the following exception:

16:15:41.142 [ERROR] [a.b.c.Application] Generator 
'com.google.gwt.user.rebind.rpc.ServiceInterfaceProxyGenerator' threw an 
exception while rebinding 'a.b.c.services.AdminService'
java.lang.UnsupportedOperationException: isProdMode is only available from 
GeneratorContextExt.
at 
com.google.gwt.core.ext.GeneratorContextExtWrapper.isProdMode(GeneratorContextExtWrapper.java:91)
at 
com.google.gwt.user.rebind.rpc.SerializableTypeOracleBuilder.logReachableTypes(SerializableTypeOracleBuilder.java:1496)
at 
com.google.gwt.user.rebind.rpc.SerializableTypeOracleBuilder.build(SerializableTypeOracleBuilder.java:843)
at 
com.google.gwt.user.rebind.rpc.ProxyCreator.create(ProxyCreator.java:306)
at 
com.google.gwt.user.rebind.rpc.ServiceInterfaceProxyGenerator.generateIncrementally(ServiceInterfaceProxyGenerator.java:60)
at com.google.gwt.core.ext.GeneratorExt.generate(GeneratorExt.java:52)
at 
com.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(IncrementalGenerator.java:40)
at 
com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:657)
at 
com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
at 
com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:79)
at 
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:276)
at 
com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java:141)
at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:595)
at 
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:465)
at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
at com.google.gwt.core.client.GWT.create(GWT.java:97)
at a.b.c.Application.onModuleLoad(Application.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:406)
at 
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
at 
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
at 
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
at java.lang.Thread.run(Thread.java:679)

The project uses GWT 2.4, but I guess this wasn't an issue that was fixed 
in 2.5, right?

Do you have any idea why this isn't working? I do have the GWT 2.4 SDK 
installed and setup in Eclipse.

Cheers
Maik

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



Exceptions when compiling obfuscated; pretty is fine

2012-12-13 Thread BDT
Suddenly I am getting all kinds of runtime exceptions when compile 
obfuscated.  If I compile set to pretty, everything is fine.  This is not 
new code and I did not just update my tools.  I have tried completely 
cleaning everything out and rebuilding, reverting to old known good code, 
etc to no avail.

I am using GWT 2.5 + Eclipse Juno on a Mac.  I am running on the assumption 
that I must have changed something in the environment but I don't know what.

The most common exception is an UnsupportedOperationException from 
ValueCode.java:339 when making RequestFactory calls (.fire).

-- 
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/-/5qEpDqmYjpsJ.
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 Compiler Fails and alert for a file that is generated by its own process!

2012-12-13 Thread Rodrigo Teixo
Hi, 

I am trying to gwt compile my modules that are 100% POJO using objectify. 
All my classes are Serializable and have a default constructor and a 
private static final long serialVersionUID = 0 

But now I got this error for a file called MyClass_FieldSerializer.java 
that is not mine.. 
Its generated by gwt.. How can I handle a error in a file thats not 
mine MyClass.java is my code only!


Look the message. What it means?? 



Compiling module mypackage.gwt.modules.Etapa4
   Adding '65' new generated units
  Validating units:
 Errors in 
'generated://49472B773B2AD1E77578D7B9AFA3F28A/mypackage/database/MyClass_FieldSerializer.java'
See snapshot: 
C:\Users\rteixo\AppData\Local\Temp\mypackage.database.MyClass_FieldSerializer9183554606345761956.java
 Errors in 
'generated://2EA8F9DCCDFC60D3FE5F4C069BADA943/mypackage/gwt/modules/client/ISessionSuportService_Proxy.java'
See snapshot: 
C:\Users\rteixo\AppData\Local\Temp\mypackage.gwt.modules.client.ISessionSuportService_Proxy8931017856230998927.java
 Ignored 2 units with compilation errors in first pass.
Compile with -strict or with -logLevel set to TRACE or DEBUG to see all 
errors.
   [ERROR] Errors in 
'generated://2EA8F9DCCDFC60D3FE5F4C069BADA943/mypackage/gwt/modules/client/ISessionSuportService_Proxy.java'
  [ERROR] Line 834: No source code is available for 
type mypackage.database.MyClass; did you forget to inherit a required 
module?
  See snapshot: 
C:\Users\rteixo\AppData\Local\Temp\mypackage.gwt.modules.client.ISessionSuportService_Proxy6356200757964546648.java
   [ERROR] Errors in 'mypackage/gwt/modules/client/Etapa4.java'
  [ERROR] Line 72: Rebind result 
'mypackage.gwt.modules.client.ISessionSuportService_Proxy' could not be 
found
   [ERROR] Errors in 'mypackage/gwt/modules/client/Etapa4.java'
  [ERROR] Line 168: Rebind result 
'mypackage.gwt.modules.client.ISessionSuportService_Proxy' could not be 
found



Help please.
Thanks in advance.

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



Remove gwt.codesvr parameter from URL?

2012-12-13 Thread jcubeta
We are developing a GWT application on a closed network, and we'd like to 
remove the gwt.codesvr parameter from the development URL when running the 
application with Eclipse. How can this be accomplished?

Thanks,
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/-/TevngsFN-AAJ.
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 issue in reading file from classpath

2012-12-13 Thread shankar
Hi,

Can someone help me out here pleasee, am trying to read and
write the CSV / XLS file into the classpath
below snippet to Write a file in to the location CSV in the weblogic
domain directory

String fileName="CSV/Failures"+System.currentTimeMillis()+".csv";

 writer = new FileWriter(fileName);

this creates the file in the specified location , but when i attempt
to read this ended up with the below exception


Bellow the code snippet to read the file from the same location.

String filename="/CSV/Failures"+System.currentTimeMillis()+".csv";

Window.open(fileName, "_self",null);

Exception
--

 Error 404--Not Found
>From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:10.4.5 404 Not
Found

The server has not found anything matching the Request-URI. No
indication is given of whether the condition is temporary or
permanent.

Thanks in advance :)

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



Re: How to retrieve client's date in Short format as configured on client machine

2012-12-13 Thread Shades Se
Sachin,

Have you seen the *com.google.gwt.i18n.client.DateTimeFormat *class? This
class has many options to work on the date and time.

Let me know if you have any issue with this class.


On Thu, Dec 13, 2012 at 12:15 PM, Sachin  wrote:

> Hi All,
>
> I would like to retrieve client's date in short format. Short format can
> be configured in windows from Control Panel->Date & Time Settings option,
> there I can define format for short date like dd/mm/ or dd/mmm/yy etc.
> Currently I am using JsDate and tried to use 
> *toLocaleDateString*(),
> *toLocaleString*()
> etc, but all of them are returning date in Long format.
>
> Can anyone suggest me solution for this.
>
> Thanks & Regards,
> Sachin
>
>
> --
> 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/-/TCX406jiu_gJ.
> 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.
>



-- 
Thanks and Regards,
Shades
Software Craftsman

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



Doclet to manage translations

2012-12-13 Thread Tom
Greetings,

I've been working on a large GWT project with many Constants and Messages 
interfaces scattered throughout the code (I prefer to keep them along with 
the classes which use them rather than having one single application wide 
file, it helps modularity etc). There are something in the order of 400 
constants and messages, more like 450 when we count different plural forms, 
so translation is outsourced from my client to various external entities. 
We can't sensibly give them the source tree, not only is it confidential 
but they wouldn't know what to do with it anyway.

So, what I've done is I've created a doclet. This doclet will scan the 
source tree for sub-interfaces of Messages or Constants, read javadoc plus 
any annotations (@Meaning, @Description etc) along with plural forms for 
messages, default values etc. It will then look to see if there's already a 
properties file for the specified locale, using values defined there if so. 
It writes a properties file for each interface into a 'translations/LOCALE' 
directory parallel to the first element in the source path, building all 
available information into the properties files as comments. If you've 
annotated the code properly with docs and annotations these properties 
files then contain all the information required by a translation bureau, 
and can be shipped off for translation. When you have the translations back 
you can run the doclet again in import mode which will parse the translated 
properties and write out any values which have been translated out into the 
appropriate places in the source tree.

Code is a single doclet (so compile with tools.jar on the classpath) and 
currently under MIT license (if that's a problem I can easily re-license 
it), github repo is at https://github.com/tomoinn/gwt-translation-helper, 
help yourself - hopefully it'll be of use to others attempting to make full 
use of the i18n support in GWT!

Cheers,

Tom

-- 
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/-/uGpcluPj0OoJ.
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 issue in reading file from classpath

2012-12-13 Thread Jens
I am pretty sure that when you call System.currentTimeMillis() *two times*you 
get two different results because time moves on ;-)

-- 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/-/CZprN_xMR6UJ.
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: Exceptions when compiling obfuscated; pretty is fine

2012-12-13 Thread Colin Alworth
I've not seen this specific issue (GWT 2.5.0 from Juno or maven command 
line on both mac and linux) in my projects that use RequestFactory, at 
least not from a source where I can point to as our own JSNI mistakes.

One kind of error I've seen that only emerges in OBF is JSNI local variable 
rewriting. In the specific cases I'm referring to, it usually only matters 
when something is relying on that name staying the same, such as an eval. 
Which is not great code to have in a library anyway...

If using 2.5.0 and the optional Closure Compiler optimization, more issues 
like this can arise - Closure is much more aggressive than style=OBF.

One more thing to consider - is your optimization level the same when 
running as both OFB and PRETTY? By default, setting the style to PRETTY 
turns down the optimizations level. I'm having trouble backing up this 
statement with source code, so take it with a grain of salt, but perhaps 
try setting -optimize 9 (see 
https://developers.google.com/web-toolkit/doc/latest/DevGuideCompilingAndDebugging#DevGuideCompilerOptions)
 
or optimizationLevel set to 9 if using maven (see 
http://mojo.codehaus.org/gwt-maven-plugin/compile-mojo.html#optimizationLevel).

And finally, does it work with DETAILED? The string interning optimization 
is skipped in PRETTY, as to make code more readable, but is run when you 
use DETAILED, as a sort of way to get slightly readable OBF code.

If all of these don't work, you may be left with using sourcemaps to 
seewhere in Java code it is failing, or pause on exception in a JS 
debugger, and try to find a variable or stack frame that looks like code 
you know to see where it is happening.

On Thursday, December 13, 2012 3:45:02 AM UTC-6, BDT wrote:
>
> Suddenly I am getting all kinds of runtime exceptions when compile 
> obfuscated.  If I compile set to pretty, everything is fine.  This is not 
> new code and I did not just update my tools.  I have tried completely 
> cleaning everything out and rebuilding, reverting to old known good code, 
> etc to no avail.
>
> I am using GWT 2.5 + Eclipse Juno on a Mac.  I am running on the 
> assumption that I must have changed something in the environment but I 
> don't know what.
>
> The most common exception is an UnsupportedOperationException from 
> ValueCode.java:339 when making RequestFactory calls (.fire).
>

-- 
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/-/TBRGf1kKkGwJ.
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: Issue with gwt-maps3-0.2b.jar

2012-12-13 Thread julioinfope
Hi, did you find a solution for your problem? I am having the same issue 
over here. Thanks in advance!

Am Donnerstag, 27. September 2012 16:39:22 UTC+2 schrieb Nitin:
>
> I am getting following error on my gwt console:
>
> Caused by: java.lang.RuntimeException: Deferred binding failed for 
> 'com.google.gwt.maps.client.impl.MapOptionsImpl' (did you forget to inherit 
> a required module?)
> at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
> at com.google.gwt.core.shared.GWT.create(GWT.java:57)
> at com.google.gwt.core.client.GWT.create(GWT.java:85)
> at 
> com.google.gwt.maps.client.impl.MapOptionsImpl.(MapOptionsImpl.java:31)
> at com.google.gwt.maps.client.MapOptions.(MapOptions.java:40)
> at 
> com.yieldstar.mpfui.client.ui.ViewMapPopUpPanel.buildUi(ViewMapPopUpPanel.java:85)
> at 
> com.yieldstar.mpfui.client.ui.ViewMapPopUpPanel.(ViewMapPopUpPanel.java:39)
> at 
> com.yieldstar.mpfui.client.ui.EditProperty.viewMapDetail(EditProperty.java:2056)
> at 
> com.yieldstar.mpfui.client.ui.EditProperty_BinderImpl$Widgets$10.onClick(EditProperty_BinderImpl.java:150)
> at 
> com.google.gwt.event.dom.client.ClickEvent.dispatch(ClickEvent.java:56)
> at 
> com.google.gwt.event.dom.client.ClickEvent.dispatch(ClickEvent.java:1)
> at com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:1)
>
> I am using gwt-maps3-0.2b.jar in gwt 2.5rc1 project.
>
> I have also added the following line in gwt.xml file:
>  
>
> The code snippet that I tried to view a map is as following:
>
> final MapOptions options = new MapOptions();
> options.setZoom(8);
> options.setCenter(new LatLng(latitude, longitude));
> options.setMapTypeId(new MapTypeId().getRoadmap());
> options.setDraggable(true);
> options.setMapTypeControl(true);
> MapWidget mapWidget = new MapWidget(options);
> mapWidget.setSize("800px", "600px");
> dock.add(mapWidget);
>
> Am I missing something here? I am trying to debug this from morning. Could 
> someone please help me with this?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/GvOrX-FZ2kMJ.
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: Styling Cell individually in CellTable

2012-12-13 Thread Alex opn
I know this is pretty old but I face the same issue for a few hours now. 
Anybody found a solution or has an idea? I even tried crazy GQuery stuff 
but there is no event which indicates that the table/grid has been 
redrawn/drawn and so my tricks all didn't work sadly!

Am Mittwoch, 23. März 2011 18:49:06 UTC+1 schrieb Raphaël Brugier:
>
> Hi,
>
> I've got a use case with the CellTable where a cell should be rendered 
> with a different background color depending on the cell content. I've also 
> some TD with a rowspan > 1. 
> I've implemented an AbstractCell to set a style depending on the status 
> (short version) :
>
> public class StatusCell extends AbstractCell {
> @Override
> public void render(final Status status, final Object key, final 
> SafeHtmlBuilder sb) {
> String cellStyle;
> if (status == Status.OK) {
> cellStyle = "greenCell";
> } else {
> cellStyle = "redCell";
> }
> sb.appendHtmlConstant("");
> sb.appendEscaped(status.toString());
> sb.appendHtmlConstant("");
> }
> }
>
> Here is the result : 
>
> 
> 
> 
> Product
> Status
> 
> 
> 
> 
> 
> 
> car
> 
> 
> 
> OK
> 
> 
> 
> 
> 
> car
> 
> 
> 
> 
> car
> 
> 
> 
> KO
> 
> 
> 
> 
> 
>
> But the point is that when the cell is rendered by the CellTable view, it 
> encapsulates it inside an other DIV and then put it in the TD. Then my Div 
> where I have applied a style will not have the max height of the TD so the 
> background color will not be fully applied to the TD. (The green of the OK 
> cell does not extend to the TD)
>
>
> I got two ideas : 
> 1/ Use css to extends the DIV to be the height of the TD. But setting 
> height: 100% did not work.
> 2/ Find a way to set manually a style to the . But there is nothing on 
> the CellTable api to access the TD after they have been rendered.
>
> Is anybody have encountered this use case or have a solution please ?
>
> Thanks in advance.
>
>
>
>
>

-- 
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/-/7bZq3cWmHTAJ.
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: Exceptions when compiling obfuscated; pretty is fine

2012-12-13 Thread BDT
Thanks for the feedback.

- I had already given up on using closure compile since it was causing a 
bunch of problems in funky CSS things I do.
- I tried optimize level 0 and 9 for each setting.
- Yes, it works with both DETAILED and PRETTY.

The thing thats baffling me is that this is all code that has worked and 
worked with this version of the tools.  I must have changed something small 
that has blown things up.

On Thursday, December 13, 2012 11:33:52 AM UTC-8, Colin Alworth wrote:
>
> I've not seen this specific issue (GWT 2.5.0 from Juno or maven command 
> line on both mac and linux) in my projects that use RequestFactory, at 
> least not from a source where I can point to as our own JSNI mistakes.
>
> One kind of error I've seen that only emerges in OBF is JSNI local 
> variable rewriting. In the specific cases I'm referring to, it usually only 
> matters when something is relying on that name staying the same, such as an 
> eval. Which is not great code to have in a library anyway...
>
> If using 2.5.0 and the optional Closure Compiler optimization, more issues 
> like this can arise - Closure is much more aggressive than style=OBF.
>
> One more thing to consider - is your optimization level the same when 
> running as both OFB and PRETTY? By default, setting the style to PRETTY 
> turns down the optimizations level. I'm having trouble backing up this 
> statement with source code, so take it with a grain of salt, but perhaps 
> try setting -optimize 9 (see 
> https://developers.google.com/web-toolkit/doc/latest/DevGuideCompilingAndDebugging#DevGuideCompilerOptions)
>  
> or optimizationLevel set to 9 if using maven (see 
> http://mojo.codehaus.org/gwt-maven-plugin/compile-mojo.html#optimizationLevel
> ).
>
> And finally, does it work with DETAILED? The string interning optimization 
> is skipped in PRETTY, as to make code more readable, but is run when you 
> use DETAILED, as a sort of way to get slightly readable OBF code.
>
> If all of these don't work, you may be left with using sourcemaps to 
> seewhere in Java code it is failing, or pause on exception in a JS 
> debugger, and try to find a variable or stack frame that looks like code 
> you know to see where it is happening.
>
> On Thursday, December 13, 2012 3:45:02 AM UTC-6, BDT wrote:
>>
>> Suddenly I am getting all kinds of runtime exceptions when compile 
>> obfuscated.  If I compile set to pretty, everything is fine.  This is not 
>> new code and I did not just update my tools.  I have tried completely 
>> cleaning everything out and rebuilding, reverting to old known good code, 
>> etc to no avail.
>>
>> I am using GWT 2.5 + Eclipse Juno on a Mac.  I am running on the 
>> assumption that I must have changed something in the environment but I 
>> don't know what.
>>
>> The most common exception is an UnsupportedOperationException from 
>> ValueCode.java:339 when making RequestFactory calls (.fire).
>>
>

-- 
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/-/RBdjEQtQCbUJ.
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: Exceptions when compiling obfuscated; pretty is fine

2012-12-13 Thread Colin Alworth
Smells a bit like JSNI that doesn't cope well with being rewritten then, or 
some other code depending on a local variable not being renamed. That might 
give you a good starting point, or else debugging OBF JavaScript, with or 
without sourcemaps is probably the way to hunt it down.

Fortunatly, you know the series of steps that cause the issue to be 
replaced, which should allow you to remove large portions of your app. 
This'll do two main things - limit compile times, and reduce the size of 
the .cache.html, always a plus when trying to hunt a bug in compiled code.

On Thursday, December 13, 2012 5:28:53 PM UTC-6, BDT wrote:
>
> Thanks for the feedback.
>
> - I had already given up on using closure compile since it was causing a 
> bunch of problems in funky CSS things I do.
> - I tried optimize level 0 and 9 for each setting.
> - Yes, it works with both DETAILED and PRETTY.
>
> The thing thats baffling me is that this is all code that has worked and 
> worked with this version of the tools.  I must have changed something small 
> that has blown things up.
>
> On Thursday, December 13, 2012 11:33:52 AM UTC-8, Colin Alworth wrote:
>>
>> I've not seen this specific issue (GWT 2.5.0 from Juno or maven command 
>> line on both mac and linux) in my projects that use RequestFactory, at 
>> least not from a source where I can point to as our own JSNI mistakes.
>>
>> One kind of error I've seen that only emerges in OBF is JSNI local 
>> variable rewriting. In the specific cases I'm referring to, it usually only 
>> matters when something is relying on that name staying the same, such as an 
>> eval. Which is not great code to have in a library anyway...
>>
>> If using 2.5.0 and the optional Closure Compiler optimization, more 
>> issues like this can arise - Closure is much more aggressive than style=OBF.
>>
>> One more thing to consider - is your optimization level the same when 
>> running as both OFB and PRETTY? By default, setting the style to PRETTY 
>> turns down the optimizations level. I'm having trouble backing up this 
>> statement with source code, so take it with a grain of salt, but perhaps 
>> try setting -optimize 9 (see 
>> https://developers.google.com/web-toolkit/doc/latest/DevGuideCompilingAndDebugging#DevGuideCompilerOptions)
>>  
>> or optimizationLevel set to 9 if using maven (see 
>> http://mojo.codehaus.org/gwt-maven-plugin/compile-mojo.html#optimizationLevel
>> ).
>>
>> And finally, does it work with DETAILED? The string interning 
>> optimization is skipped in PRETTY, as to make code more readable, but is 
>> run when you use DETAILED, as a sort of way to get slightly readable OBF 
>> code.
>>
>> If all of these don't work, you may be left with using sourcemaps to 
>> seewhere in Java code it is failing, or pause on exception in a JS 
>> debugger, and try to find a variable or stack frame that looks like code 
>> you know to see where it is happening.
>>
>> On Thursday, December 13, 2012 3:45:02 AM UTC-6, BDT wrote:
>>>
>>> Suddenly I am getting all kinds of runtime exceptions when compile 
>>> obfuscated.  If I compile set to pretty, everything is fine.  This is not 
>>> new code and I did not just update my tools.  I have tried completely 
>>> cleaning everything out and rebuilding, reverting to old known good code, 
>>> etc to no avail.
>>>
>>> I am using GWT 2.5 + Eclipse Juno on a Mac.  I am running on the 
>>> assumption that I must have changed something in the environment but I 
>>> don't know what.
>>>
>>> The most common exception is an UnsupportedOperationException from 
>>> ValueCode.java:339 when making RequestFactory calls (.fire).
>>>
>>

-- 
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/-/EfVOOYL_KVsJ.
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 not get multiple matches using regex

2012-12-13 Thread bhomass
I am using GWT Regex

RegExp regExp = RegExp.compile("\\b" + searchWord + "\\b", "gi");
MatchResult matcher = regExp.exec(input);

this only returns the first match. why is that? I already set the global 
option. any one knows how to get multiple match return?

-- 
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/-/WqWI381-Id4J.
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.