Re: GWT2.8 : org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration

2016-12-15 Thread Adam Gerbert
Ran into the same issue after upgrading to 2.8 from 2.7. Only happened in 
super dev mode, as the xerces dependency was coming from gwt-dev.jar. I 
fixed it in the same manner as Ian Whyman (thanks!), by including the 
dependency explicitly. 

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


Re: Teavm

2015-12-02 Thread Adam M
Call me old school but for me direction in which GWT 3.0 is going is 
strange - if I'm forced to use HTML5/JavaScript libraries instead GWT 
widgets why I should do anything in Java in the first place - just grab 
Angular or Ember and be done - GWT doesn't help me too much with server 
side code anyway. The whole purpose of using GWT/GWTP was to avoid to deal 
with JavaScript, at least in my case.

For me TeaVM has completely different approach to the problem than GWT - it 
allows language agnostic web application development (I never liked GWT no 
prisoners taken approach - Java or nothing - but as you know there was 
nothing better in "dark ages" of web application development)  - even that 
end result is very similar - JavaScript code running in the browser.
I wonder if something similar like Java Byte Code to JavaScript could be 
done with Microsoft CLI to JavScript (just wild shot - I'm not too familiar 
with the whole .Net infrastructure - different programming environment)

On Tuesday, December 1, 2015 at 9:45:20 PM UTC-5, Satguru Srivastava wrote:
>
> Not sure if TeaVM serves different need than GWT. Seems like both want to 
> provide a better alternative to JavaScript.
> Now TeaVM does not have anything equivalent to GWT widgets but then  it 
> seems, after watching the GWT Create session videos, the recommendation, 
> for newer apps, is not to use the GWT widgets anyway.
> Instead of GWT widgets the direction seems to be to use more HTML5 based 
> components like web components polymer etc which technology like the newer 
> GWT JSInterop could make it easier to consume.
> Like GWT JSInterop , TeaVM has something called JSO which also propose to 
> make consuming java script libraries easier.
> I haven't used JSInterop or JSO so can't compare the two.
>
> Anyway, what is interesting is the Java Source Code to Javascript vs Java 
> Byte Code to JavaScript issue.
> Wonder if GWT creators ever debated this issue when they started work on 
> GWT.
>
>
>
>
>
>
> On Tuesday, December 1, 2015 at 12:28:20 PM UTC-6, Adam M wrote:
>>
>> TeavVM seams be very interesting project however for me it looks like it 
>> serves different needs that GWT. It has tons of very interesting stuff and 
>> using Java Byte Code for compilation to JavaScript makes it almost 100% 
>> language agnostic as source code input (in theory - you can compile it to 
>> byte code and run it on JVM - you can run it with TeaVM - of course with 
>> some reasonable restrictions because of JavaScript nature).
>> However for me there are two major show stoppers for broad adoption in 
>> production:
>>  - project is still in early growing phase 
>>  - virtually this is one pony show - except Alexey there are no major 
>> contributors (nothing against Alexey of course he is brilliant guy)
>>
>> On Tuesday, December 1, 2015 at 10:43:44 AM UTC-5, Satguru Srivastava 
>> wrote:
>>>
>>> So, I recently came across TeaVM (http://teavm.org/)
>>> Similar to GWT but unlike GWT, which compiles Java Source Code to 
>>> JavaScript, TeaVM compiles Java Byte Code to JavaScript.
>>> It is an interesting approach.
>>> The big advantage to this approach is that you do not have to create and 
>>> maintain your own compiler.
>>> You ride on the back of the JavaC compiler and can take advantage of the 
>>> optimizations, latest changes and updates made to the compiler.
>>> So while GWT is working on supporting Java 8 , TeaVM already provides 
>>> support for that.
>>>
>>> What do you guys think?
>>> What are the pros/cons of this approach ?
>>>
>>>
>>>
>>>
>>>
>>>

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


Re: Teavm

2015-12-02 Thread Adam M
I feel your pain - too bad that everybody are so hell bend to develop 
"better mouse trap" in JavaScript so they are lost sight of different ways 
of doing things. I'm planning to start working on TeaVM in the next 6 
months - maybe approach every little bit helps will move TeaVM from corner 
closer to center stage.

On Wednesday, December 2, 2015 at 7:51:12 AM UTC-5, Alexey Andreev wrote:
>
> Not sure if TeaVM serves different need than GWT. Seems like both want to 
>> provide a better alternative to JavaScript.
>> Now TeaVM does not have anything equivalent to GWT widgets but then  it 
>> seems, after watching the GWT Create session videos, the recommendation, 
>> for newer apps, is not to use the GWT widgets anyway.
>> Instead of GWT widgets the direction seems to be to use more HTML5 based 
>> components like web components polymer etc which technology like the newer 
>> GWT JSInterop could make it easier to consume.
>> Like GWT JSInterop , TeaVM has something called JSO which also propose to 
>> make consuming java script libraries easier.
>> I haven't used JSInterop or JSO so can't compare the two.
>>
> Besides JSO wich provides interop with JS libraries, there is forthcoming 
> project called TeaVM Flavour 
> . It's a framework similar 
> to Angular, but written entirely in Java. I have a lot of disappointing 
> experience with GWT widgets (but still use it, as it's still 10 times 
> better than maintaining megabytes of JS code), since it's virtually 
> impossible to create good widget-based abstraction over HTML technoligies. 
> A better approach is a thin layer of abstraction, wich allows easy 
> interaction with underlying nature of HTML.
>
> I could take experience of dukescript  guys 
> (BTW, TeaVM can be used as dukescript backend) and wrap existing libraries 
> like Angular and Knockout. However, I don't think it is a good approach, 
> since I ask myself: what makes me use Java on front-end? My answer is: it's 
> static typing. When I refactor code, I get errors displayed immediately in 
> Eclipse and have a chance to fix them before I even run application. 
> Consider I wrap angular and pass Java method name to ng-click directive. If 
> later I refactor my Java code and this method got renamed, I won't get any 
> feedback from IDE. And so on. I took many cases and figured out that pure 
> Java-based approach is far superior than JavaScript wrappers, except for 
> complexity.
>

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


Re: Teavm

2015-12-01 Thread Adam M
TeavVM seams be very interesting project however for me it looks like it 
serves different needs that GWT. It has tons of very interesting stuff and 
using Java Byte Code for compilation to JavaScript makes it almost 100% 
language agnostic as source code input (in theory - you can compile it to 
byte code and run it on JVM - you can run it with TeaVM - of course with 
some reasonable restrictions because of JavaScript nature).
However for me there are two major show stoppers for broad adoption in 
production:
 - project is still in early growing phase 
 - virtually this is one pony show - except Alexey there are no major 
contributors (nothing against Alexey of course he is brilliant guy)

On Tuesday, December 1, 2015 at 10:43:44 AM UTC-5, Satguru Srivastava wrote:
>
> So, I recently came across TeaVM (http://teavm.org/)
> Similar to GWT but unlike GWT, which compiles Java Source Code to 
> JavaScript, TeaVM compiles Java Byte Code to JavaScript.
> It is an interesting approach.
> The big advantage to this approach is that you do not have to create and 
> maintain your own compiler.
> You ride on the back of the JavaC compiler and can take advantage of the 
> optimizations, latest changes and updates made to the compiler.
> So while GWT is working on supporting Java 8 , TeaVM already provides 
> support for that.
>
> What do you guys think?
> What are the pros/cons of this approach ?
>
>
>
>
>
>

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


Re: images not showing in any browser

2014-04-23 Thread Adam
When i made the first post i was experiencing 2 problems, one the images 
weren't showing, and two the path wouldn't change, no matter how i tried, 
ie (1.jpg) or (2.jpg) etc. However this was resolved after i created a 
new project. Your right though NewProject did in fact show twice, i also 
noticed this at the time but after creating a new project that problem was 
also rectified..

As for Google Chrome inspector img src=1.jpg class=gwt-Image

In the end you nailed it with your first post, the instruction to use the 
war directory, for some reason doing this the first time made no 
difference, but now it works!! Thanks to all that helped, well appreciated.


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


Re: images not showing in any browser

2014-04-19 Thread Adam
The image path is correct, to prove this i right clicked the image in 
project explorer and clicked properties then copied and pasted the path. 
Managed to get the path to change by creating a new project, but the image 
still wont show in browser. Once the applet is running in Chrome i can see 
an icon image where the image should be displayed, if i right click the 
icon and select open in new tab i get the following message,

HTTP ERROR 404

Problem accessing /NewProject/images/1.jpg. Reason:

Not Found

--

*Powered by Jetty://*
which is the same message the console outputted, when i change the path and 
save i get the same message with a diffrent image path.



On Thursday, April 17, 2014 7:06:49 AM UTC+1, Davide Micheletti wrote:

 when you run MyProject look at the HTML code and see the url of the 
 image.. So you can see where is the problem in the path.. However i've a 
 project with images and i put the image in war/Images/1.jpg and in the code 
 i've 

 ...
 ...

 Image img = new Image();

 img.setUrl(Images/1.jpg); 

 Panel p = new Panel();

 p.add(img); 

 ...
 ... 



 On Wed, Apr 16, 2014 at 10:51 PM, Adam adam.t...@googlemail.comjavascript:
  wrote:

 Hi, i'm new to gwt programming, for some reason the image wont show in 
 any browsers, any idea's? Also the path seems to be stuck 
 on/myproject//MyProject/images/1.jpg

 Image img = new Image(/MyProject/images/12345.jpg);
  vPanel.add(img);

 [WARN] Server class 'org.eclipse.jetty.servlet.listener.ELContextCleaner' 
 could not be found in the web app, but was found on the system classpath
[WARN] Adding classpath entry 
 'file:/C:/eclipse%20se/plugins/com.google.gwt.eclipse.sdkbundle_2.6.0/gwt-2.6.0/gwt-dev.jar'
  
 to the web app classpath for this session
For additional info see: 
 file:/C:/eclipse%20se/plugins/com.google.gwt.eclipse.sdkbundle_2.6.0/gwt-2.6.0/doc/helpInfo/webAppClassPath.html
 [WARN] 404 - GET /myproject//MyProject/images/1.jpg (127.0.0.1) 1398 bytes
Request headers
   Host: 127.0.0.1:
   Connection: keep-alive
   Accept: image/webp,*/*;q=0.8
   User-Agent: Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.36 (KHTML, 
 like Gecko) Chrome/34.0.1847.116 Safari/537.36
   Referer: 
 http://127.0.0.1:/MyProject.html?gwt.codesvr=127.0.0.1:9997
   Accept-Encoding: gzip,deflate,sdch
   Accept-Language: en-GB,en-US;q=0.8,en;q=0.6
Response headers
   Content-Type: text/html;charset=ISO-8859-1
   Cache-Control: must-revalidate,no-cache,no-store
   Content-Length: 1398
  
  

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


Re: images not showing in any browser

2014-04-19 Thread Adam
I've also tried doing the following which made no difference.

Image img = new Image();
img.setUrl(Images/1.jpg);

  

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


images not showing in any browser

2014-04-16 Thread Adam
Hi, i'm new to gwt programming, for some reason the image wont show in any 
browsers, any idea's? Also the path seems to be stuck 
on/myproject//MyProject/images/1.jpg

Image img = new Image(/MyProject/images/12345.jpg);
 vPanel.add(img);

[WARN] Server class 'org.eclipse.jetty.servlet.listener.ELContextCleaner' 
could not be found in the web app, but was found on the system classpath
   [WARN] Adding classpath entry 
'file:/C:/eclipse%20se/plugins/com.google.gwt.eclipse.sdkbundle_2.6.0/gwt-2.6.0/gwt-dev.jar'
 
to the web app classpath for this session
   For additional info see: 
file:/C:/eclipse%20se/plugins/com.google.gwt.eclipse.sdkbundle_2.6.0/gwt-2.6.0/doc/helpInfo/webAppClassPath.html
[WARN] 404 - GET /myproject//MyProject/images/1.jpg (127.0.0.1) 1398 bytes
   Request headers
  Host: 127.0.0.1:
  Connection: keep-alive
  Accept: image/webp,*/*;q=0.8
  User-Agent: Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.36 (KHTML, 
like Gecko) Chrome/34.0.1847.116 Safari/537.36
  Referer: 
http://127.0.0.1:/MyProject.html?gwt.codesvr=127.0.0.1:9997
  Accept-Encoding: gzip,deflate,sdch
  Accept-Language: en-GB,en-US;q=0.8,en;q=0.6
   Response headers
  Content-Type: text/html;charset=ISO-8859-1
  Cache-Control: must-revalidate,no-cache,no-store
  Content-Length: 1398

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


Re: Best Practices for Server-side Authentication in GWT 2.5+

2014-01-10 Thread Adam Browning
If you're just looking for simple authentication then you may want to take 
a look at: http://shiro.apache.org/. I've used it for simple authentication 
all the way up through using an LDAP backing store and it's pretty simple. 
It has some cool things like @RequiresAuthentication annotations that you 
can put on any RPC call you want to make sure the user is logged in for.

On Thursday, December 5, 2013 1:52:14 PM UTC-7, doctra...@gmail.com wrote:

 Hi,

 I'm trying to implement a login service whereby the user submits their 
 username and password to the app server (using RPC or RF, it doesn't really 
 matter).  Then on the server side, once I've verified that the credentials 
 are valid, I need to:

1. Call a loginDAO and record the login to persistence, then
2. Set some sort of session variable and/or cookie that can be used on 
subsequent requests to authenticate the user against
3. On such subsequent requests, check for the existence of the cookie 
and validate it;
4. Then, if they are inactive for a period of time, or they want to 
log out, I need a way to clear the cookie or end the session somehow

 I can handle #1 above all on my own, but I'm struggling with #2 - #4.  In 
 older versions of GWT I read that I could implement my own UserInformation 
 (and then configure the web.xml to accept this impl as a context param) 
 like so:

 public class MyUserInformation implements UserInformation {
 @Override
 public boolean isUserLoggedIn() {
 HttpServletRequest request = 
 RequestFactoryServlet.getThreadLocalRequest();

 // Now query the request for the presence of a cookie or session 
 var, etc. and return true or false accordingly.
 }
 }

 *However*, as of 2.5.1 (the version I'm using) this class has been 
 removed altogether (or so it seems). So I ask, what is the proper way to 
 implement GWT authentication now-a-days?  Is it still session/cookie based? 
 If so, what does it look like, for both the login and the logout? Thanks!


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


[gwt-contrib] GWT CellTable Column Header

2013-09-16 Thread Adam Arjomandi
Is there any plan to add Filtering function to the GWT CellTable Column 
Header.

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
You received this message because you are subscribed to the Google Groups GWT 
Contributors group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Stack trace deobfuscation problem - missing function names

2013-05-13 Thread Adam
 by 
default, we don't have it enabled.

https://code.google.com/p/google-web-toolkit/issues/detail?id=7803


You can see the two files here:
https://www.dropbox.com/sh/h1bwe9e8jr2040x/RVlEdqrvHg

Thanks in advance for your time.

Adam

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




Re: Celltable loading state

2013-03-13 Thread Adam
This works for me as well with DataGrid and AsyncDataProvider and 2.5rc1. 
 I'll take hackish over not showing the loading indicator at all. Thanks 
guys.

On Tuesday, May 15, 2012 12:38:35 PM UTC-4, Jens wrote:

 You need to make sure that the cell-widget thinks the current page 
 size is non-zero e.g. setRowCount(x) (where x  0). You're basically 
 trying to convince this method to enter the LOADING state - 

   private void updateLoadingState() { 
 int cacheSize = getVisibleItemCount(); 
 int curPageSize = isRowCountExact() ? getCurrentPageSize() : 
 getPageSize(); 
 if (cacheSize = curPageSize) { 
   view.setLoadingState(LoadingState.LOADED); 
 } else if (cacheSize == 0) { 
   view.setLoadingState(LoadingState.LOADING); 
 } else { 
   view.setLoadingState(LoadingState.PARTIALLY_LOADED); 
 } 
   } 


 Ok I have now:

 list.setVisibleRangeAndClearData(list.getVisibleRange(), true);
 list.setRowCount(1);

 and it works for empty data in the CellList as well as with data. But to 
 me it seems really hackish.

 -- J. 


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




Stillborn dragstart event

2013-03-03 Thread Adam Augusta
The ClientWebApp sample application in GWT 2.5 contains example
drag-and-drop code, as seen below.
When I use it, it works great the first time I drag a TaskTemplate. On
subsequent drags, event.getDataTransfer() fails because
event.dead=true. Halp?

public class DesktopTaskEditView extends Composite implements TaskEditView {
//...
  static class TaskTemplateCell extends AbstractCellTaskProxy {
//...
public TaskTemplateCell() {
  // Register the kinds of event this cell will manage.
  super(dragstart);
}
//...
/**
 * Handles drag-start events inside the element named root.
*/
@UiHandler({root})
void onDragStart(DragStartEvent event, Element parent, Context context) {
  // Save the ID of the TaskProxy.
  DataTransfer dataTransfer = event.getDataTransfer();
  dataTransfer.setData(text, String.valueOf(context.getIndex()));

  // Set the image.
  dataTransfer.setDragImage(parent, 25, 15);
}
  }
//...
}

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




Re: Stillborn dragstart event

2013-03-03 Thread Adam Augusta
I should add that this only happens in dev mode. The compiled JS works fine.

On Sun, Mar 3, 2013 at 4:10 PM, Adam Augusta rox...@gmail.com wrote:
 The ClientWebApp sample application in GWT 2.5 contains example
 drag-and-drop code, as seen below.
 When I use it, it works great the first time I drag a TaskTemplate. On
 subsequent drags, event.getDataTransfer() fails because
 event.dead=true. Halp?

 public class DesktopTaskEditView extends Composite implements TaskEditView {
 //...
   static class TaskTemplateCell extends AbstractCellTaskProxy {
 //...
 public TaskTemplateCell() {
   // Register the kinds of event this cell will manage.
   super(dragstart);
 }
 //...
 /**
  * Handles drag-start events inside the element named root.
 */
 @UiHandler({root})
 void onDragStart(DragStartEvent event, Element parent, Context context) {
   // Save the ID of the TaskProxy.
   DataTransfer dataTransfer = event.getDataTransfer();
   dataTransfer.setData(text, String.valueOf(context.getIndex()));

   // Set the image.
   dataTransfer.setDragImage(parent, 25, 15);
 }
   }
 //...
 }

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




Problem with DynaTableRf Sample with Maven

2013-02-26 Thread Adam Augusta
I get an error when I try to run the DynaTableRf sample application
with maven.  Can anyone enlighten me?

Sample app from GWT 2.5.0 release.
Maven 2.2.1

There are four CG errors (one for each domain object?), then I get a
The RequestFactory ValidationTool... error.

Adams-MacBook-Pro:DynaTableRf roxton$ mvn gwt:run
[INFO] Scanning for projects...
[INFO] 
[INFO] Building com.google.gwt.sample.dynatablerf.DynaTableRf
[INFO]task-segment: [gwt:run]
[INFO] 
[INFO] Preparing gwt:run
snip
[INFO] [gwt:run {execution: default-cli}]
[INFO] create exploded Jetty webapp in
/Users/roxton/dev/gwt-2.5.0/samples/DynaTableRf/target/DynaTableRf-1.0-SNAPSHOT
[ERROR] Feb 26 15:55:03 Adams-MacBook-Pro.local java[7139] Error:
CGContextGetCTM: invalid context 0x0
[ERROR] Feb 26 15:55:03 Adams-MacBook-Pro.local java[7139] Error:
CGContextSetBaseCTM: invalid context 0x0
[ERROR] Feb 26 15:55:03 Adams-MacBook-Pro.local java[7139] Error:
CGContextGetCTM: invalid context 0x0
[ERROR] Feb 26 15:55:03 Adams-MacBook-Pro.local java[7139] Error:
CGContextSetBaseCTM: invalid context 0x0
[INFO] Hibernate Validator 4.1.0.Final
[ERROR] Feb 26, 2013 3:55:22 PM
com.google.web.bindery.requestfactory.server.RequestFactoryServlet
doPost
[ERROR] SEVERE: Unexpected error
[ERROR] java.lang.RuntimeException: The RequestFactory ValidationTool
must be run for the
com.google.gwt.sample.dynatablerf.shared.DynaTableRequestFactory
RequestFactory type
[ERROR] at 
com.google.web.bindery.requestfactory.vm.impl.Deobfuscator$Builder.load(Deobfuscator.java:57)

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




Re: Problem with DynaTableRf Sample with Maven

2013-02-26 Thread Adam Augusta
I ended up fixing this by adding the following two plug-in configurations.

So, was this a bug, or was my annotation-processor discovery not
working right for some environmental reason? I don't want to violate
best practices, especially on a new codebase. Let me know if you have
any tips or suggestions.

  plugin
groupIdorg.bsc.maven/groupId
artifactIdmaven-processor-plugin/artifactId
version2.0.5/version
executions
  execution
idprocess/id
goals
  goalprocess/goal
/goals
phasegenerate-sources/phase
  /execution
/executions
dependencies
  dependency
groupIdcom.google.web.bindery/groupId
artifactIdrequestfactory-apt/artifactId
version${gwtVersion}/version
  /dependency
/dependencies
  /plugin
  plugin
groupIdorg.codehaus.mojo/groupId
artifactIdbuild-helper-maven-plugin/artifactId
version1.7/version
executions
  execution
idadd-source/id
phasegenerate-sources/phase
goals
  goaladd-source/goal
/goals
configuration
  sources

source${project.build.directory}/generated-sources/apt/source
  /sources
/configuration
  /execution
/executions
  /plugin


On Tue, Feb 26, 2013 at 4:12 PM, Adam Augusta rox...@gmail.com wrote:
 I get an error when I try to run the DynaTableRf sample application
 with maven.  Can anyone enlighten me?

 Sample app from GWT 2.5.0 release.
 Maven 2.2.1

 There are four CG errors (one for each domain object?), then I get a
 The RequestFactory ValidationTool... error.

 Adams-MacBook-Pro:DynaTableRf roxton$ mvn gwt:run
 [INFO] Scanning for projects...
 [INFO] 
 
 [INFO] Building com.google.gwt.sample.dynatablerf.DynaTableRf
 [INFO]task-segment: [gwt:run]
 [INFO] 
 
 [INFO] Preparing gwt:run
 snip
 [INFO] [gwt:run {execution: default-cli}]
 [INFO] create exploded Jetty webapp in
 /Users/roxton/dev/gwt-2.5.0/samples/DynaTableRf/target/DynaTableRf-1.0-SNAPSHOT
 [ERROR] Feb 26 15:55:03 Adams-MacBook-Pro.local java[7139] Error:
 CGContextGetCTM: invalid context 0x0
 [ERROR] Feb 26 15:55:03 Adams-MacBook-Pro.local java[7139] Error:
 CGContextSetBaseCTM: invalid context 0x0
 [ERROR] Feb 26 15:55:03 Adams-MacBook-Pro.local java[7139] Error:
 CGContextGetCTM: invalid context 0x0
 [ERROR] Feb 26 15:55:03 Adams-MacBook-Pro.local java[7139] Error:
 CGContextSetBaseCTM: invalid context 0x0
 [INFO] Hibernate Validator 4.1.0.Final
 [ERROR] Feb 26, 2013 3:55:22 PM
 com.google.web.bindery.requestfactory.server.RequestFactoryServlet
 doPost
 [ERROR] SEVERE: Unexpected error
 [ERROR] java.lang.RuntimeException: The RequestFactory ValidationTool
 must be run for the
 com.google.gwt.sample.dynatablerf.shared.DynaTableRequestFactory
 RequestFactory type
 [ERROR] at 
 com.google.web.bindery.requestfactory.vm.impl.Deobfuscator$Builder.load(Deobfuscator.java:57)

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




Re: [gwt-contrib] GWT 2.5 Final - Next Week

2012-10-25 Thread Adam Hawthorne
Hi Unnur,

We just discovered that
http://code.google.com/p/google-web-toolkit/issues/detail?id=7628 severely
breaks our application; is a fix for this a possibility for 2.5.0-final?

For a little bit of background, we have a large number of high-level
command objects that may return data.  The web application requests using
RPC and the server responds with these commands.  When the client completes
the commands, it can send responses back to the server with its next
request.  These responses share a common parameterized superclass that
holds a value of that type.  Each subclass specifies a concrete type to the
type parameter.

What we initially found to be a problem was a class 'IntArrayResponse
extends ResponseArrayListInteger '.  If the ArrayList had any elements,
we receive the RPC error.  It might be possible to specify the value in
each subclass, but we haven't yet verified that.

Thanks for your response,

Adam

On Thu, Oct 18, 2012 at 11:56 AM, unnurg unn...@google.com wrote:

 Hi Guys -
   We are going to be pushing the 2.5 RC2 (plus 1-2 minor cherrypicks) to
 Final next week - if there are any problems, please let me (
 unn...@google.com) know before Monday morning.  Note that problems
 includes only regressions - so stuff that worked in 2.4 and is now broken
 in 2.5.

 Thanks everyone!
 - Unnur

 --
 http://groups.google.com/group/Google-Web-Toolkit-Contributors




-- 
Adam Hawthorne
Software Architect
BASIS International Ltd.
www.basis.com
+1.505.938.6169 Phone
+1.505.750.4128 Direct

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

ValueBoxEditorDecorator error message style?

2012-10-22 Thread Adam Dean
Hello,
I'm using a ValueBoxEditorDecorator in an application using the GWT 
BeanValidator framework (
http://code.google.com/p/google-web-toolkit/wiki/BeanValidation)
I am seeing the error messages along the TextBox which is invalidate, but 
the text is black.
I'm looking for the style name of other method to change this to red.
thanks,
Adam

-- 
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/-/nNi4PIFOWgEJ.
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: Retrieving values from fields in GWT generators

2012-09-11 Thread Adam Gordon
On Monday, September 10, 2012 3:14:40 PM UTC-6, Thomas Broyer wrote:


 What's wrong with accessing the field directly? (using JSNI to bypass the 
 Java access rules)
 Maybe have a look at the kind of code generated by the JSR303 built-in 
 support.


I was under the impression that JSNI was more of a last resort technique 
however based on your answer, it sounds like this is not the case. 

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



Retrieving values from fields in GWT generators

2012-09-10 Thread Adam Gordon
I'm building a GWT generator and I'm parsing a class.  I've gotten to the 
point where i have a JField[] and am iterating over the class fields.  I 
need to know how to get the value from a field and the GWT documentation is 
a bit lacking (i.e., non-existent, at least from a javadoc perspective). 
 Anyone have any insight?  Thanks.

--adam

-- 
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/-/guHbVU1TM2cJ.
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: Retrieving values from fields in GWT generators

2012-09-10 Thread Adam Gordon
They Thomas, thanks for the quick reply.

Yea.  Sorry about that.  I should have been more clear.  I realized that, 
at least for my implementation, reading the field isn't exactly what I 
wanted.

I'm writing writing generators to generate bean validator classes, only the 
bean fields are annotated with custom annotations that dictate the 
requirements of the field (which come from some industry specs).  We cannot 
use a JSR-303 solution (which probably would have been the easiest) because 
we cannot introduce a 3rd party dependency on our beans (even though we 
already using JAXB, so this requirement seems a bit silly).

The path I went down was to generate a validate(FooBean bean) method and 
using GWT reflection iterate over the fields of the bean looking for my 
annotation.  If present, get the details and then attempt to validate that 
the bean method parameter validated according to the annotations.  What I 
realized is that I don't need access to the field value, rather, I need to 
execute a getter method on the bean and validate that value - only, there's 
no way to map the bean methods to whatever field on which I'm iterating.

So ultimately, I was going down the wrong path to begin with in that I 
didn't need the JField value, rather, I needed a way to do the mapping as 
described above, which essentially cannot be done...or at least, not easily.

Thanks for the quick reply.

On Monday, September 10, 2012 10:44:13 AM UTC-6, Thomas Broyer wrote:


 On Monday, September 10, 2012 6:36:50 PM UTC+2, Adam Gordon wrote:

 I'm building a GWT generator and I'm parsing a class.  I've gotten to the 
 point where i have a JField[] and am iterating over the class fields.  I 
 need to know how to get the value from a field and the GWT documentation is 
 a bit lacking (i.e., non-existent, at least from a javadoc perspective). 
  Anyone have any insight?  Thanks.


 Getting the value of a field is a runtime operation, and a generator runs 
 at compile-time. The only thing you can do is generate code that will read 
 the field's value and act upon it at runtime, and then hope for the 
 compiler to possibly detect that the value is actually constant and thus 
 optimize out all the code you generated that would never be reached.

 Put differently, imagine the generator runs right within Eclipse (or your 
 IDE of choice) and generates *.java files. This is more or less what 
 happens actually, except internally during the compilation.


-- 
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/-/C9f6w_rIb1IJ.
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: Not able to use Celltable for a requirement where I need different widgets under one column.

2012-09-06 Thread Adam T
Hi!

You should be able to use custom table rendering of a GWT 2.5 cell table to 
do what you want in your point (1) (extending AbstractCellTableBuilder and 
implement the buildStandardRowImpl method to put the relevant cell type 
into the column that alters based upon your condition in your point (2). 
 Then pass that renderer to the cell table, instead of the standard one, 
using its setTableBuilder method)

Information about this is a little sparse, but you could check out:

* http://showcase2.jlabanca-testing.appspot.com/#!CwCustomDataGrid , or
* GWTinAction edition 2 http://www.manning.com/tacy - a relevant example 
http://code.google.com/p/gwtinaction2/wiki/DataPresentation(different 
cells in the Tags column) can be found in code 
herehttp://code.google.com/p/gwtinaction2/source/browse/trunk/gwtia-ch10-data-presentation-widgets/src/com/manning/gwtia/ch10/client/datagrid/CellDataGridExample.java.
 
(it is still work in progress just now, so missing comments, but should be 
relatively self explanatory)

Hope that helps in some way!

//Adam

On Sunday, September 2, 2012 11:43:43 AM UTC+2, Saurabh Tripathi wrote:

 Hi all,

 I am stuck here with a requirement which is mentioned as follow:

 1)A table where one or more (for now just one) column need to have 
 different widgets in editable cell.
for example: Class is Plant having property: 'name' and 
 access method: 'String getName()';
   Now if(name.equals(true) || 
 name.equals(false){ 
  --- Render 
 CheckBox with respective checked value
  }else if(name.equals(~)) {
- Render 
 ListBox with some predefined items
  }else {
 -just render 
 the String.
  }
 2)The cell where we render just the String should be Editable (i.e on 
 click textbox appear for edit), other than this other cells should be 
 non-editable i.e cells for checkbox and listbox should be non editable, 

 You may find this requirement very unusual and I agree it is because here 
 we dealing with raw xml/text kind of metadata.
 Anyway I have given a lot of effort over this, but I am in a catch 22 
 situation if somehow I am able to attain 1 condition than I am have 
 editable problem, if somehow I make that up, the valueupdater doesn't seem 
 to work properly

 At last I am thinking that may be 'CellTable' API was never there for such 
 kind of requirement. So FlexTable could be the answer.
 Even if it is so there would be a lot of work for me then like - 
 implementing sorting(while click on header), pagination etc, it would be 
 great if 
 some open source library is already there for it.  

 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/-/Xy3F9oc6y0EJ.
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 In Eclipse Debug Mode All Of A Sudden is Super Slow

2012-09-03 Thread Adam Sas
Hi, 

Recently I experienced the same problem. Have you figured out how to solve 
it?

Best regards

W dniu poniedziałek, 11 kwietnia 2011 15:54:44 UTC+2 użytkownik innusius 
napisał:

 No breakpoints and it is slow as hell. This is some code issue as I 
 see that after each reload of debug , it takes longer and longer to 
 reload application or maybe it depends of how long it runs... 

 On Apr 7, 6:27 pm, Chris Conroy con...@google.com wrote: 
  Eclipse's debug hooks can sometimes cause pathological slowdowns if you 
 have 
  a breakpoint set on a method entry point. This can happen for regular 
 java 
  (read: non-GWT) programs as well. Try removing any breakpoints you have 
 set 
  (or at least, removing any on the method entry--you can set them just 
 fine 
  on the first line of the function instead) 
  
  
  
  
  
  
  
  On Wed, Apr 6, 2011 at 3:15 PM, PTJ pjuckiew...@gmail.com wrote: 
   Recently I was running my GWT application in devmode via the Eclipse 
   plugin in the Google Chrome Browser.  Chrome stopped responding and my 
   browser completely crashed, requiring me to restart my computer.  I 
   restarted my computer and tried to run my GWT application again, but 
   this time it was SUPER slow.  Devmode has always been a little slow, 
   but now it's at the point where it is not even usable anymore.  The 
   weird part is that it is only when running in debug mode via the 
   Eclipse plugin, standard run (not debug) via eclipse, the devmode Ant 
   target, and production depoyment (WAR) work fine. 
  
   I have tried to run other GWT applications and now they are all 
   running unbearably slow now as well.  I uninstalled/reinstalled the 
   Google Plugin, upgraded to Eclipse Helios (was using Galileo), 
   upgraded to GWT 2.2.0 (was using 2.0.3), etc and nothing has worked. 
   I am the only one on my team having this issue and we are all running 
   the EXACT same codebase. 
  
   Has anyone encountered this issue before?  Any help would be greatly 
   appreciated.  I have spent ~2 days straight trying to figure out this 
   out! 
  
   Environment (at this point I have tried a number of different versions 
   of the below libraries, all produced the same issue of being too slow 
   in devmode debugging via Eclipse): 
   -GWT 2.2.0 
   -Eclipse Helios w/ Google Plugin for Eclipse 3.6  GWT SDK 2.2.0 
   -Google Chrome 10.0.648.204 
   -GXT 2.2.3 (for GWT 2.2) 
  
   Regards, 
   Paul J. 
  
   -- 
   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.comjavascript:. 

   To unsubscribe from this group, send email to 
   google-web-toolkit+unsubscr...@googlegroups.com javascript:. 
   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 view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/IZ6-0TFDik0J.
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: Abridged summary of google-web-toolkit@googlegroups.com - 8 Messages in 4 Topics

2012-06-25 Thread Adam Bradley


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



[no subject]

2012-06-25 Thread Adam Bradley


-- 
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: Abridged summary of google-web-toolkit@googlegroups.com - 38 Messages in 16 Topics

2012-06-22 Thread Adam Bradley


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



Unexpected server to client exception translation occurring

2012-04-10 Thread Adam Gordon
We're building some internal web applications for divisions and we have a 
need to send any server side stack traces to the client so that when 
employee end-users encounter errors they can put a stacktrace in our 
ticketing system.

I have registered my own GWT.UncaughtExceptionHandler that recursively 
iterates over the throwable (and any nested throwables/exceptions) to 
generate a stacktrace and then, for now, puts this in a dialog.  This code 
is working but the behavior I am seeing is that the exception thrown on the 
server is not what is being displayed.  It's like it's being translated.

Anyone have any idea what's going on here and how to fix it?  Thanks.

--adam

-- 
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/-/0r1EgRhF4h4J.
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: Unexpected server to client exception translation occurring

2012-04-10 Thread Adam Gordon
Ok, I figured out what's going on here.  Checked exceptions appear to be 
handled automatically by GWT and thrown to the client (not sure what 
happens here if they're not serializable).

Unchecked exceptions are processed by 
AbstractRemoteServiceServlet.doUnexpectedFailure(Throwable).  There does 
not appear to be a way to register a global exception handler so a base 
class overriding this method was necessary.  Additionally, this method 
defers to RPCServletUtils.writeResponseForUnexpectedFailure(...) to write 
the response to the server.  This utility method essentially ignores the 
error thrown on the server and writes a generic response.

The solution was to override the method and rather than call the 
RPCServletUtils method, to copy and tweak it so that it sends back the 
message I need to send.

On Tuesday, April 10, 2012 9:26:19 AM UTC-6, Adam Gordon wrote:

 We're building some internal web applications for divisions and we have a 
 need to send any server side stack traces to the client so that when 
 employee end-users encounter errors they can put a stacktrace in our 
 ticketing system.

 I have registered my own GWT.UncaughtExceptionHandler that recursively 
 iterates over the throwable (and any nested throwables/exceptions) to 
 generate a stacktrace and then, for now, puts this in a dialog.  This code 
 is working but the behavior I am seeing is that the exception thrown on the 
 server is not what is being displayed.  It's like it's being translated.

 Anyone have any idea what's going on here and how to fix it?  Thanks.

 --adam


-- 
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/-/xn19Fk6mMW8J.
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: Can't open my code with the GWT Designer

2012-04-08 Thread Adam Trojnar
On ubuntu 12.04 with OpenJDK and Java version 1.7.1 I can't open GWT 
DESIGNER to :( but on ubuntu 11.10 with Java 1.7.3 GWT Designer working 
good.


-- 
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/-/ZJ2WH9KtJckJ.
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: FF10, here we go again

2012-02-01 Thread Adam
Well, hopefully their long term support of FF10, will allow it to be used 
for GWT dev for a while w/o all the hassle of updates all the 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/-/4LKS7YD_0QsJ.
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.



Activity / Place + History.back()

2012-01-28 Thread Adam
I'm having an issue where the History.back() is intermittently not
working.

I'm using Places mapped to each activity in my application and
navigating forward works great.

For instance lets say we start out on #search-#result.  If I
programmatically use History.back() as a button in my application to
return the the #search it occasionally does not load the #search
page even though the url bar reflects the action.

I've debugged the code and have tracked down where the problem is,
just not 100% why.  The PlaceHistoryHandler class listens for
ValueChangeEventString from the browser which is fired when the
History.back() is called.
This in turn calls the PlaceHistoryHandler.handleHistoryToken(...)
method which calls the PlaceController.goTo(Place) method.  THe
PlaceController.goTo(Place) method is doing an if check if where ==
place and if so returns without firing a PlaceChangeEvent.  That if
check is causing the ActivityManager not to fire it's
onPlaceChangeEvent, which in turns makes it so that the previous
activity is not restarted for handling the #search place.

As I said sometimes it works, sometimes it doesn't.  It's all based on
the if check for where == place though as to the outcome.  I know
for a fact by staring at the url bar that there is a change.

So is this a bug that others have see or am I doing something wrong?

Any help would be appreciated.

-Adam

-- 
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: Activity / Place + History.back()

2012-01-28 Thread Adam
So I solved my problem.  We'd created a convience method that called
EventBus.fireEvent(new PlaceChangeEvent(Place)) instead of using the
PlaceController.goTo(Place).  This was causing issues because even
though it felt the same it wasn't updating the where Place property
of the PlaceController so when History.back() was called it was
checking against a stale where object.

-Adam

On Jan 28, 12:44 pm, Adam ambr...@gmail.com wrote:
 I'm having an issue where the History.back() is intermittently not
 working.

 I'm using Places mapped to each activity in my application and
 navigating forward works great.

 For instance lets say we start out on #search-#result.  If I
 programmatically use History.back() as a button in my application to
 return the the #search it occasionally does not load the #search
 page even though the url bar reflects the action.

 I've debugged the code and have tracked down where the problem is,
 just not 100% why.  The PlaceHistoryHandler class listens for
 ValueChangeEventString from the browser which is fired when the
 History.back() is called.
 This in turn calls the PlaceHistoryHandler.handleHistoryToken(...)
 method which calls the PlaceController.goTo(Place) method.  THe
 PlaceController.goTo(Place) method is doing an if check if where ==
 place and if so returns without firing a PlaceChangeEvent.  That if
 check is causing the ActivityManager not to fire it's
 onPlaceChangeEvent, which in turns makes it so that the previous
 activity is not restarted for handling the #search place.

 As I said sometimes it works, sometimes it doesn't.  It's all based on
 the if check for where == place though as to the outcome.  I know
 for a fact by staring at the url bar that there is a change.

 So is this a bug that others have see or am I doing something wrong?

 Any help would be appreciated.

 -Adam

-- 
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: Formatting lists with GWT i18n API

2011-12-15 Thread Adam T
Hi Luiz,

If you've not stumbled across this already, just add the format marker
text in your message definitions and it should work, i.e.

@DefaultLocale(pt_BR)
public interface AppMessages extends Messages {


@DefaultMessage(elementos: {0,list,text})
@AlternateMessage({one, elemento: {0,list,text}})
String formatElements(@PluralCount ListString elements);
}

//Adam

On 15 Dec, 00:43, Luiz Mineo luiz.mi...@gmail.com wrote:
 Hi,

 I'm trying to format a list of Strings using a Messages interface:

 @DefaultLocale(pt_BR)
 public interface AppMessages extends Messages {

         @DefaultMessage(elementos: {0, list})
         @AlternateMessage({one, elemento: {0, list}})
         String formatElements(@PluralCount ListString elements);

 }

 In my module.gwt.xml, I have:

 !-- languages supported --
 extend-property name=locale values=pt_BR /
 set-property-fallback name=locale value=pt_BR /

 But when I try to format a list, for example:

 AppMessages appMessages = GWT.create(AppMessages.class);
 appMessages.formatElements(Arrays.asList({A}));
 appMessages.formatElements(Arrays.asList({A,B,C}));

 I get:

 elemento: 1
 elementos: 3

 Instead of:

 elemento: A
 elementos: A, B e C

 I'm using pt_BR for default locale, since it is the only language my
 app supports for now. Does it only work for en? I tryied to change the
 default locale for en, but it didn't work either :(

 So, what I'm doing wrong?

-- 
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 add click events to multiple images in a cell/celltable

2011-10-17 Thread Adam
ImageCells by themselves don't care about click events. What I did was
made a decorator that wraps any cell to handle click events and
delegates them to the FieldUpdater:


public class ClickableCellDecoratorC implements CellC {

   private static final String CLICK_EVENT = click;

   private final CellC cell;

   private final SetString events;

   /**
* Constructor accepts the cell to be wrapped.
*
* @param cell
*   The wrapped cell.
*/
   public ClickableCellDecorator(final CellC cell) {
  super();

  this.cell = cell;

  // Add the click event to the wrapped cell's list of consumed
events
  SetString wrappedEvents = this.cell.getConsumedEvents();
  if (wrappedEvents == null || wrappedEvents.isEmpty()) {
 this.events = Collections.singleton(CLICK_EVENT);
  } else {
 this.events = new HashSetString(wrappedEvents);
 this.events.add(CLICK_EVENT);
  }
   }

   @Override
   public boolean dependsOnSelection() {
  return cell.dependsOnSelection();
   }

   @Override
   public SetString getConsumedEvents() {
  return events;
   }

   @Override
   public boolean handlesSelection() {
  return cell.handlesSelection();
   }

   @Override
   public boolean isEditing(
 final com.google.gwt.cell.client.Cell.Context context,
 final Element parent, final C value) {
  return cell.isEditing(context, parent, value);
   }

   @Override
   public void onBrowserEvent(
 final com.google.gwt.cell.client.Cell.Context context,
 final Element parent, final C value, final NativeEvent event,
 final ValueUpdaterC valueUpdater) {
  if (CLICK_EVENT.equals(event.getType())  valueUpdater != null)
{
 valueUpdater.update(value);
  }

  cell.onBrowserEvent(context, parent, value, event,
valueUpdater);
   }

   @Override
   public void render(final com.google.gwt.cell.client.Cell.Context
context,
 final C value, final SafeHtmlBuilder sb) {
  cell.render(context, value, sb);
   }

   @Override
   public boolean resetFocus(
 final com.google.gwt.cell.client.Cell.Context context,
 final Element parent, final C value) {
  return cell.resetFocus(context, parent, value);
   }

   @Override
   public void setValue(final com.google.gwt.cell.client.Cell.Context
context,
 final Element parent, final C value) {
  cell.setValue(context, parent, value);
   }
}

It was much easier and more flexible than extending every cell type i
wanted to be clickable.

Now you can just use new ClickableCellDecorator(new ImageCell())) and
you should see events.

Hope this helps,

Adam

On Oct 17, 4:36 am, Thomas Trebbien Pedersen
thomas.trebbien.peder...@gmail.com wrote:
 Hi Adam,

 Yes thank you, this helps a lot - I havn't thought about that.

 But am now having trouble constructing an CompositeCell with the 2
 images. Can you help me a bit here with a little code example.

 I have to do something like this right:

         ListHasCellT, C hasCells = new ArrayListHasCellT, C();
         hasCells.add(new HasCellT, C() {
                 // Setup the image here?
         });
         hasCells.add(new HasCellT, C() {
                 // Setup the image here?
         });

         CompositeCell myCell = new CompositeCellC(hasCells) {

         // Then add the myCell to the CellTable here

 Maybe you can help me in the right direction.

 Thanks,
 \Thomas

 On 14 Okt., 19:16, Adam asnyde...@gmail.com wrote:







  I use CompositeCell for this type of thing.  Create a composite of 2
  cells, each with an image in them, and each cell handling click
  events.  Each cell can detect clicks in their respective FieldUpdaters
  and still be rendered in the same cell.

  Hope this helps,
  Adam

  On Oct 14, 9:41 am, Thomas Trebbien Pedersen

  thomas.trebbien.peder...@gmail.com wrote:
   Hi,

   I have a celltable where I would like to sort the rows by clicking
   either a up or a down arrow. The two sort-direction arrows are placed
   in a single cell on each row.

   Now how do I add a click event to each image? I know a cell has a
   onBrowserEvent(...) put thats for the entire cell right? What about
   multiple images in a cell?

   Does anyone have some good suggestions.

   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: How to add click events to multiple images in a cell/celltable

2011-10-14 Thread Adam
I use CompositeCell for this type of thing.  Create a composite of 2
cells, each with an image in them, and each cell handling click
events.  Each cell can detect clicks in their respective FieldUpdaters
and still be rendered in the same cell.

Hope this helps,
Adam

On Oct 14, 9:41 am, Thomas Trebbien Pedersen
thomas.trebbien.peder...@gmail.com wrote:
 Hi,

 I have a celltable where I would like to sort the rows by clicking
 either a up or a down arrow. The two sort-direction arrows are placed
 in a single cell on each row.

 Now how do I add a click event to each image? I know a cell has a
 onBrowserEvent(...) put thats for the entire cell right? What about
 multiple images in a cell?

 Does anyone have some good suggestions.

 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: Unable to suppress header sorting in DataGrid using GWT 2.4

2011-10-13 Thread Adam
Found this in the trunk:
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/user/cellview/client/HeaderCreator.java?r=10581

Line 37: // TODO(jlabanca): Add API to handle events in the header.

Any idea when this will be added and if the sorting behavior will be
changed?

On Oct 12, 4:31 pm, Adam asnyde...@gmail.com wrote:
 I am trying to add a button to a DataGrid header by extending Header
 and I've been able to do that and detect the click event just fine.
 My problem is that the underlying AbstractCellTable code is firing
 ColumnSortEvents for every click in the header and there is no simple
 way to stop that behavior outside of not making that column sortable
 or completely overriding AbstractCellTable#onBrowserEvent2, neither of
 which I want to do.  Has anyone else ran into this issue?

 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.



Unable to suppress header sorting in DataGrid using GWT 2.4

2011-10-12 Thread Adam
I am trying to add a button to a DataGrid header by extending Header
and I've been able to do that and detect the click event just fine.
My problem is that the underlying AbstractCellTable code is firing
ColumnSortEvents for every click in the header and there is no simple
way to stop that behavior outside of not making that column sortable
or completely overriding AbstractCellTable#onBrowserEvent2, neither of
which I want to do.  Has anyone else ran into this issue?

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: Exception in thread UnitWriteThread

2011-07-28 Thread Adam
To answer my own question. It turns out that the file descriptor count
required from 2.1 to 2.4 has increased.  Our Jenkins box runs as a
normal user which has the default ulimit enforced on it. In one of the
compiles we had issues attempting to compile an ImageResource because
too many files open.  After increasing the ulimit from 1024 to 2048
all errors went away.

I guess the only question would be what was the count before and what
changed that would increase the file descriptor limit?  As a side we
build our GWT projects in parallel using the parallel/ ant task.  We
are limiting the number of concurrent threads to 2, which was the same
before we updated GWT.

-Adam

On Jul 27, 9:43 pm, Adam ambr...@gmail.com wrote:
 We recently upgraded from GWT 2.1 to GWT 2.4 Beta.  Since the update
 we have been getting Exception in thread UnitWriteThread
 java.lang.NullPointerException.  It doesn't seem to cause any
 problems in that the code still successfully compiles and runs.

 Here's some GWT Compiler debug output:

      [java]             Found better fallback match for replace-with
 class='com.google.gwt.user.client.ui.impl.RichTextAreaImplIE6'/
      [java]             Checking rule replace-with
 class='com.google.gwt.user.client.ui.ResizeLayoutPanel.ImplIE6'/
      [java]                Checking if all subconditions are true
 (all)
      [java]                   when-type-is
 class='com.google.gwt.user.client.ui.ResizeLayoutPanel.Impl'/
      [java]                      Not an exact match
      [java]                   No: One or more subconditions was false
      [java]             Rule did not match
      [java]             Found better fallback match for replace-with
 class='com.google.gwt.user.client.ui.ResizeLayoutPanel.ImplIE6'/
      [java]             Checking rule replace-with
 class='com.google.gwt.user.client.ui.ResizeLayoutPanel.ImplTrident'/
      [java]                Checking if all subconditions are true
 (all)
      [java]                   when-type-is
 class='com.google.gwt.user.client.ui.ResizeLayoutPanel.Impl'/
      [java]                      Not an exact match
      [java]                   No: One or more subconditions was false
      [java]             Rule did not match
      [java]             Found better fallback match for replace-with
 class='com.google.gwt.user.client.ui.ResizeLayoutPanel.ImplTrident'/
      [java]             Checking rule replace-with
 class='com.google.gwt.user.client.ui.ResizeLayoutPanel.ImplStandard'/
      [java]                Checking if all subconditions are true
 (all)
      [java]                   when-type-is
 class='com.google.gwt.user.client.ui.ResizeLayoutPanel.Impl'/
      [java]                      Not an exact match
      [java]                   No: One or more subconditions was false
      [java]             Rule did not match
      [java]             Found better fallback match for replace-with
 class='com.google.gwt.user.client.ui.ResizeLayoutPanel.ImplStandard'/
      [java]             Checking rule generate-with
 class='com.google.gwt.user.rebind.rpc.ServiceInterfaceProxyGenerator'/

      [java]                Checking if all subconditions are true
 (all)
      [java]                   when-assignable
 class='com.google.gwt.user.client.rpc.RemoteService'/
      [java] Exception in thread UnitWriteThread
 java.lang.NullPointerException
      [java]     at
 com.google.gwt.dev.util.DiskCache.transferFromStream(DiskCache.java:
 154)
      [java]     at
 com.google.gwt.dev.javac.SourceFileCompilationUnit.asCachedCompilationUnit( 
 SourceFileCompilationUnit.java:
 59)
      [java]     at
 com.google.gwt.dev.javac.CompilationUnit.writeReplace(CompilationUnit.java:
 392)
      [java]     at
 sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
      [java]     at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp 
 l.java:
 25)
      [java]     at java.lang.reflect.Method.invoke(Method.java:597)
      [java]     at
 java.io.ObjectStreamClass.invokeWriteReplace(ObjectStreamClass.java:
 1032)
      [java]     at
 java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1115)
      [java]     at
 java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
      [java]     at com.google.gwt.dev.javac.PersistentUnitCache
 $UnitWriter.run(PersistentUnitCache.java:226)
      [java]                      No, the requested type was not
 assignable
      [java]                   No: One or more subconditions was false
      [java]             Rule did not match
      [java]             Found better fallback match for generate-with
 class='com.google.gwt.user.rebind.rpc.ServiceInterfaceProxyGenerator'/

      [java]             Checking rule replace-with
 class='com.google.gwt.user.client.ui.impl.PopupImplIE6'/
      [java]                Checking if all subconditions are true
 (all)
      [java]                   when-type-is
 class='com.google.gwt.user.client.ui.impl.PopupImpl'/
      [java

Exception in thread UnitWriteThread

2011-07-27 Thread Adam
We recently upgraded from GWT 2.1 to GWT 2.4 Beta.  Since the update
we have been getting Exception in thread UnitWriteThread
java.lang.NullPointerException.  It doesn't seem to cause any
problems in that the code still successfully compiles and runs.

Here's some GWT Compiler debug output:


 [java] Found better fallback match for replace-with
class='com.google.gwt.user.client.ui.impl.RichTextAreaImplIE6'/
 [java] Checking rule replace-with
class='com.google.gwt.user.client.ui.ResizeLayoutPanel.ImplIE6'/
 [java]Checking if all subconditions are true
(all)
 [java]   when-type-is
class='com.google.gwt.user.client.ui.ResizeLayoutPanel.Impl'/
 [java]  Not an exact match
 [java]   No: One or more subconditions was false
 [java] Rule did not match
 [java] Found better fallback match for replace-with
class='com.google.gwt.user.client.ui.ResizeLayoutPanel.ImplIE6'/
 [java] Checking rule replace-with
class='com.google.gwt.user.client.ui.ResizeLayoutPanel.ImplTrident'/
 [java]Checking if all subconditions are true
(all)
 [java]   when-type-is
class='com.google.gwt.user.client.ui.ResizeLayoutPanel.Impl'/
 [java]  Not an exact match
 [java]   No: One or more subconditions was false
 [java] Rule did not match
 [java] Found better fallback match for replace-with
class='com.google.gwt.user.client.ui.ResizeLayoutPanel.ImplTrident'/
 [java] Checking rule replace-with
class='com.google.gwt.user.client.ui.ResizeLayoutPanel.ImplStandard'/
 [java]Checking if all subconditions are true
(all)
 [java]   when-type-is
class='com.google.gwt.user.client.ui.ResizeLayoutPanel.Impl'/
 [java]  Not an exact match
 [java]   No: One or more subconditions was false
 [java] Rule did not match
 [java] Found better fallback match for replace-with
class='com.google.gwt.user.client.ui.ResizeLayoutPanel.ImplStandard'/
 [java] Checking rule generate-with
class='com.google.gwt.user.rebind.rpc.ServiceInterfaceProxyGenerator'/

 [java]Checking if all subconditions are true
(all)
 [java]   when-assignable
class='com.google.gwt.user.client.rpc.RemoteService'/
 [java] Exception in thread UnitWriteThread
java.lang.NullPointerException
 [java] at
com.google.gwt.dev.util.DiskCache.transferFromStream(DiskCache.java:
154)
 [java] at
com.google.gwt.dev.javac.SourceFileCompilationUnit.asCachedCompilationUnit(SourceFileCompilationUnit.java:
59)
 [java] at
com.google.gwt.dev.javac.CompilationUnit.writeReplace(CompilationUnit.java:
392)
 [java] at
sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
 [java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
 [java] at java.lang.reflect.Method.invoke(Method.java:597)
 [java] at
java.io.ObjectStreamClass.invokeWriteReplace(ObjectStreamClass.java:
1032)
 [java] at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1115)
 [java] at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
 [java] at com.google.gwt.dev.javac.PersistentUnitCache
$UnitWriter.run(PersistentUnitCache.java:226)
 [java]  No, the requested type was not
assignable
 [java]   No: One or more subconditions was false
 [java] Rule did not match
 [java] Found better fallback match for generate-with
class='com.google.gwt.user.rebind.rpc.ServiceInterfaceProxyGenerator'/

 [java] Checking rule replace-with
class='com.google.gwt.user.client.ui.impl.PopupImplIE6'/
 [java]Checking if all subconditions are true
(all)
 [java]   when-type-is
class='com.google.gwt.user.client.ui.impl.PopupImpl'/
 [java]  Not an exact match
 [java]   No: One or more subconditions was false
 [java] Rule did not match
 [java] Found better fallback match for replace-with
class='com.google.gwt.user.client.ui.impl.PopupImplIE6'/
 [java] Checking rule replace-with
class='com.google.gwt.user.client.ui.impl.PopupImplMozilla'/
 [java]Checking if all subconditions are true
(all)
 [java]   when-type-is
class='com.google.gwt.user.client.ui.impl.PopupImpl'/
 [java]  Not an exact match
 [java]   No: One or more subconditions was false
 [java] Rule did not match
 [java] Found better fallback match for replace-with

Re: Populating ListBox's using Activities and Places

2011-07-13 Thread Adam
We use a slight various of Thomas' suggestion.  We introduced a new
interface / class called a Broker which we define all of our rpc
calling methods in.  Then be default we typically have the activity
implement the Broker interface, but if need be we could have a new
class implement it.  We pass the Broker to the View so if the view
needs access to rpc services it can call methods on the broker as need
be.  This still allows for the View to be stupid, but can help keep
the activity code cleaner.


On Jul 13, 5:44 am, Thomas Broyer t.bro...@gmail.com wrote:
 One of the goal of MVP is to make your presentation logic quickly  easily
 testable (in GWT, that means using pure JUnit rather than the sluggish
 GWTTestCase). As a result, you'd like to make you view as dumb as possible
 (without necessarily pushing everything to presenter though, as it'd lose
 readability and thus maintainability). So, you'd better put your RPC call in
 your presenter (activity).

-- 
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: Shortcomings in Places

2011-06-05 Thread Adam T
Hi,

I think you can do this relatively simply, but it's not directly noted
in the documentation.

(warning, a little plug ahead...) We're looking at how to do this for
the 2nd edition of the GWT in Action book, and the approach below is
where we are at the moment, though we have not thought through all
implementations yet.  The final solution will be described in detail
in the book, but the following is the essence of the current solution:

*  GWT has a FilteredActivityMapper that you can use to run another
activity rather than the one associated with the requested Place; for
example if you go to a PhotoEditPlace when not logged in, you might
want to run the LoginActivity rather than PhotoEditActivity.
*  To do that, we created a Filter, such as:

Filter filter = new Filter(){
public Place filter(Place place) {
// Always allow the WelcomePlace
if(place instanceof WelcomePlace) return place;

// If user is not logged in, redirect
the activity for requested place to the login activity
if(!isLoggedIn()) return loginPlace;

// If user is logged in, then allow
the requested place/activity
else return place;
}};

* To use the filter, we created the ActivityMapper using a
FilteredActivityMapper instead of the standard ActivityMapper, i.e.:

// Difference to normal here
ActivityMapper activityMapper = new
FilteredActivityMapper(filter, new AppActivityMapper(clientFactory));
// Carry on as normal from here
ActivityManager activityManager = new
ActivityManager(activityMapper, eventBus);


* In the login activity, there is code to refresh the browser page if
the user logs in successfully (a simple Window.Location.reload() has
worked so far)

The flow is:

* User goes to a protected page
* If logged in the FilteredActivityMapper allows the appropriate
activity to start
* If not logged in,
   * the FilteredActivityMapper starts the login activity
   * when user logs in successfully, the fact they are logged in is
captured and the browser page is reloaded
   * since the filter only redirected the activity, not the place,
then the reload goes to the original place, this time the filter
should detects the user is logged in, and so the requested activity is
started, rather than the login activity.

Hope that is of some use!

//Adam

On 5 Juni, 11:34, Thomas Broyer t.bro...@gmail.com wrote:
 On Saturday, June 4, 2011 11:47:08 PM UTC+2, Jeff Schnitzer wrote:

  I'm trying to implement a simple pattern that is *very* common in the
  world of normal webapps:

  1) Most of my application requires authentication in order to access.
  2) I allow deep links to protected content.
  3) When visiting a deep link, you are given a login page - after
  logging in, you get the content.

  I have a single-page GWT app that uses Places.  I've spent a lot of
  time on this issue, and I *almost* have it working - but it's not
  elegant and there are still broken edge cases.  If you want to
  experience it firsthand, visithttp://www.similarity.com/#matches:

  The specific issues with the Places system are:

   * The default place is different in authenticated mode vs anonymous
  mode.  When you are anonymous, your default place is the hello,
  stranger place but when you're logged in, the default place is all
  about your account.  Since I can't reset the default place in the
  PlaceHistoryHandler, I need to swap out the instance when I switch
  modes.

 Or maybe you could have a single place and have the ActivityMappers (or
 whatever PlaceChangeHandler if you're not using Activities) react
 differently whether the user is authenticated or not.

  * The PlaceController has no way to reset the current place.  When an

  anonymous user tries to go to the #matches: link, the place is set to
  MatchesPlace (which my special handler translates into a you must log
  in first message).  When the user logs in, I force another
  handleCurrentHistory(), but it doesn't actually do anything - because
  the PlaceController is already at MatchesPlace.  I'll have to swap out
  the PlaceController instance when I switch modes.

 Authentication is (should be) orthogonal to navigation. When the user
 authenticates, you should dispatch a LoginEvent (or similar) on the event
 bus and have the activities (or whatever) refresh their content (restart).

  And now a little rant:

  All in all, this seems ludicrously difficult for something I could
  have done with dozen lines of code if I wasn't trying to use the
  standard GWT tools.  I feel like I've wasted a lot of time learning
  the system, and what I've ultimately learned is that I would be better
  off building it from scratch.

  Am I the only one that thinks the Places system is WAY
  over-engineered, yet not all that useful

Re: Custom Clickable Cell with CellTable

2011-05-12 Thread Adam
Matt thanks for the response.

By default the celltable wires up click events for the cell (aka
div).  The problem is when I click on any text in the table/
table it's swallowing the click event and therefore the celltable is
never notified that I clicked in the cell.

Here's an example of what I'm talking about:

- (row)
Bar, Foo ** |
123 Main St** |
--(end row)

if I click anywhere on Bar, Foo or 123 Main St nothing happens.
if I click on either of the ** then it does the click event (via the
FieldUpdater.update).  Simply put I'd like for it to work if I click
anywhere inside the cell including the text.  I think though you've
answered my question though in a round about way.  I can add a click
listener to the table I defined and then call the onBrowserEvent
myself.

Unless you or someone else can think of a better way.

-Adam

On May 12, 10:53 am, matttai matt...@hotmail.com wrote:
 Hi Adam,

 What exactly is it that you are trying to achieve by doing this?

 If you wish to find thecellthat was clicked and manipulate it you
 can also do it this way :

 Add clickHandler to table/grid
 Call getSource() on received clickEvent
 Cast source to grid/flextable
 Call getCellForEvent(event) on the table which gives you aCell
 element

 Then you can call row /cellindex on the object and you would have
 your row / column.

 Cheers,

 Matt

 On May 7, 5:51 am, Adam ambr...@gmail.com wrote:







  Hey Gang,

  I've created a lightweight customcellthat extends AbstractCell. I've
  included the code below.  What I've determined is that the parent is
  the DIV associated with thecell.  What I'm trying to do is make it so
  if I click anywhere in thecellincluding the text of the tds that the
  onBrowserEvent is fired. I've figured out that what's happening is
  that the click on the table I'm rendering or the tds is swallowing
  the events of the div and therefore the onBrowserEvent isn't being
  called.  If this was a regular widget I'd just do a sinkEvent.  The
  issue I'm having is hope to sink the td mouse events into thecell
  div.  I looked at the source for AbstractCell and saw that public void
  setValue(...) is calling render and also has access to the parent so
  I've tried to do something like

  DOM.sinkEvent(parent.getFirstChildElement().getFirstChildElement().getFirst 
  ChildElement(),

 Event.ONCLICK).  But that didn't see to do the trick either. Any
  thoughts would be most appreciated.

          class OrderCell extends AbstractCellMockOrder {
              public OrderCell() {
                  super(click, keydown);
              }

              @Override
              public void onBrowserEvent(Element parent, MockOrder value,
  Object key,
                          NativeEventevent, ValueUpdaterMockOrder 
  valueUpdater) {
                  super.onBrowserEvent(parent, value, key,event, 
  valueUpdater);
                  if (click.equals(event.getType())) {
                          onEnterKeyDown(parent, value, key,event, 
  valueUpdater);
                  }
              }

              @Override
              protected void onEnterKeyDown(Element parent, MockOrder value,
  Object key,
                          NativeEventevent, ValueUpdaterMockOrder 
  valueUpdater) {
                  if (valueUpdater != null) {
                          valueUpdater.update(value);
                  }
              }

              @Override
              public void render(MockOrder value, Object key, SafeHtmlBuilder
  sb) {
                  // Value can be null, so do a null check..
                  if (value == null) {
                          return;
                  }

                  sb.appendHtmlConstant(table);

                  // Add the name and address.
                  sb.appendHtmlConstant(trtd);
                  sb.appendEscaped(value.getApplicant().getLastName() + ,  +
  value.getApplicant().getFirstName());
                  sb.appendHtmlConstant(/td/trtrtd);
                  sb.appendEscaped(value.getStatus());
                  sb.appendHtmlConstant(/td/tr/table);
              }
          }

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



Custom Clickable Cell with CellTable

2011-05-06 Thread Adam
Hey Gang,

I've created a lightweight custom cell that extends AbstractCell. I've
included the code below.  What I've determined is that the parent is
the DIV associated with the cell.  What I'm trying to do is make it so
if I click anywhere in the cell including the text of the tds that the
onBrowserEvent is fired. I've figured out that what's happening is
that the click on the table I'm rendering or the tds is swallowing
the events of the div and therefore the onBrowserEvent isn't being
called.  If this was a regular widget I'd just do a sinkEvent.  The
issue I'm having is hope to sink the td mouse events into the cell
div.  I looked at the source for AbstractCell and saw that public void
setValue(...) is calling render and also has access to the parent so
I've tried to do something like

 
DOM.sinkEvent(parent.getFirstChildElement().getFirstChildElement().getFirstChildElement(),

Event.ONCLICK).  But that didn't see to do the trick either. Any
thoughts would be most appreciated.

class OrderCell extends AbstractCellMockOrder {
public OrderCell() {
super(click, keydown);
}

@Override
public void onBrowserEvent(Element parent, MockOrder value,
Object key,
NativeEvent event, ValueUpdaterMockOrder 
valueUpdater) {
super.onBrowserEvent(parent, value, key, event, valueUpdater);
if (click.equals(event.getType())) {
onEnterKeyDown(parent, value, key, event, valueUpdater);
}
}

@Override
protected void onEnterKeyDown(Element parent, MockOrder value,
Object key,
NativeEvent event, ValueUpdaterMockOrder 
valueUpdater) {
if (valueUpdater != null) {
valueUpdater.update(value);
}
}

@Override
public void render(MockOrder value, Object key, SafeHtmlBuilder
sb) {
// Value can be null, so do a null check..
if (value == null) {
return;
}

sb.appendHtmlConstant(table);

// Add the name and address.
sb.appendHtmlConstant(trtd);
sb.appendEscaped(value.getApplicant().getLastName() + ,  +
value.getApplicant().getFirstName());
sb.appendHtmlConstant(/td/trtrtd);
sb.appendEscaped(value.getStatus());
sb.appendHtmlConstant(/td/tr/table);
}
}

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



[gwt-contrib] Re: Future of CellTable

2011-04-19 Thread Adam Bender
Just wanted to see if there have been any updates regarding the
CellTable and the use of fixed headers + scrollable content areas. I
have been keeping an eye on the commit logs and havent seen anything
related to scrolling. Is this a feature that is still planned for
2.3?

Thanks,
Adam



On Feb 18, 2:47 pm, Ray Ryan rj...@google.com wrote:
 Do you mean patches for CellTable? It's part of GWT, so the usual way:

 http://code.google.com/webtoolkit/makinggwtbetter.html







 On Fri, Feb 18, 2011 at 3:30 AM, dflorey daniel.flo...@gmail.com wrote:
  Thanks for the info!
  I guess I'll wait until 2.3 and will start to port the TreeTable + filter
  stuff.
  Is there a way to contribute patches since the incubator is deprecated?

  --
 http://groups.google.com/group/Google-Web-Toolkit-Contributors

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Future of CellTable

2011-04-19 Thread Adam Bender
Excellent, thanks for the update.

Adam

On Apr 19, 10:03 am, John LaBanca jlaba...@google.com wrote:
 I'm working on it this week.  It won't be included in 2.3, but should be
 committed to trunk next week.

 Thanks,
 John LaBanca
 jlaba...@google.com







 On Mon, Apr 18, 2011 at 2:14 PM, Adam Bender adamben...@gmail.com wrote:
  Just wanted to see if there have been any updates regarding the
  CellTable and the use of fixed headers + scrollable content areas. I
  have been keeping an eye on the commit logs and havent seen anything
  related to scrolling. Is this a feature that is still planned for
  2.3?

  Thanks,
  Adam

  On Feb 18, 2:47 pm, Ray Ryan rj...@google.com wrote:
   Do you mean patches for CellTable? It's part of GWT, so the usual way:

  http://code.google.com/webtoolkit/makinggwtbetter.html

   On Fri, Feb 18, 2011 at 3:30 AM, dflorey daniel.flo...@gmail.com
  wrote:
Thanks for the info!
I guess I'll wait until 2.3 and will start to port the TreeTable +
  filter
stuff.
Is there a way to contribute patches since the incubator is deprecated?

--
   http://groups.google.com/group/Google-Web-Toolkit-Contributors

  --
 http://groups.google.com/group/Google-Web-Toolkit-Contributors

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors


CompositeCell

2010-11-08 Thread Adam
We're in the process of converting to CellTable and we have a column
that has a vertically displayed list of items.  This sounds perfect
for using a CompositeCell with a List of ClickableTextCells, except
for the fact that our list needs to be dynamic.  I suppose I could use
AbstractColumn and define our own implementation, but I am hoping that
we have just miss understood CompositeCell.

Any thoughts would be greatly appreciated,
- Adam

-- 
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-tool...@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: CompositeCell

2010-11-08 Thread Adam
It's the latter, though for what we're wanting to do I don't think
AbstractEditableCell is what we want.

What we want to do is bring a name per line in one cell that's
clickable similar to ClickableTextCell for every object of a sub-list
from the model object.

For instance if we had the following two classes:

public class Foo {
  private ListBar bars;
  private String something;

  public ListBar getBars() {
return bars;
  }

  public String getSomething() {
return something;
  }
}

public class Bar {
  private String name;

  public String getName() {
return name;
  }
}

Then we define a cellTable / Column as so:
...
  CellTableFoo table = new CellTableFoo();
  ColumnFoo, String somethingColumn = new ColumnFoo, String(new
TextCell()) {
public String getValue(Foo object) {
   return object.getSomething();
}
  };
  table.addColumn(somethingColumn);

  // Here's the ideal part + some pseudo code
  ColumnFoo, String barNames = new ColumnFoo, String(new
CompositeCellFoo, String(HasCellClickableTextCell, String()) {
public String getValue(Foo object) {
  for (Bar b: object.getBars()) {
return b.getName();
  }
}
  };
  table.addColumn(barNames);

And finally the output would be something like:

| Something Header | Bar Header |
-
| Cool Stuff  | Bar 1 |
| | Bar 2 |
| | Bar 3 |
-
| More stuff  | Bar 7 |
...


On Nov 8, 1:33 pm, John LaBanca jlaba...@google.com wrote:
 Is it dynamic based on the row value, or dynamic in that it can change?  If
 its the former, you can extend CompositeCell and override the render()
 method to hide spans that aren't needed.  If its the latter, you will
 probably want to extend AbstractEditableCell and copy the examples in
 TextInputCell or CheckboxCell.

 Thanks,
 John LaBanca
 jlaba...@google.com

 On Mon, Nov 8, 2010 at 7:38 AM, Adam ambr...@gmail.com wrote:
  We're in the process of converting to CellTable and we have a column
  that has a vertically displayed list of items.  This sounds perfect
  for using a CompositeCell with a List of ClickableTextCells, except
  for the fact that our list needs to be dynamic.  I suppose I could use
  AbstractColumn and define our own implementation, but I am hoping that
  we have just miss understood CompositeCell.

  Any thoughts would be greatly appreciated,
  - Adam

  --
  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-tool...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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-tool...@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: Animate an images rotation

2010-10-29 Thread K. Adam Christensen
Hi,

stymie jamesty...@gmail.com writes:

 I was wondering if there were any built in ways or libraries that
 would allow me to continously rotate an image in a 360 degrees
 circle.Been using google but have not come up with anything as of yet.

You could extend GWT's Animation class to loop through 360 images to
give you that rotation.  Check out the following links:

http://giantflyingsaucer.com/blog/?p=1548
http://stackoverflow.com/questions/2669065/gwt-animation-final-value-is-not-respected
http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/animation/client/Animation.html

You can also get a feel for what this technique could look like by
checking out the 360 demo at http://www.apple.com/html5/

There is of course another way where you can use an animated gif to
animate over all of the different angles of whatever you have.

All of that being said, please reconsider a continuously rotating
image.  It can be very distracting as a user to see something constantly
animating as well as I don't know how performant this will be on the
page.  What I do like about 360 degree demos is when I actively interact
with it, clicking and dragging to see all the different angles.  I think
we can say that there is a reason the 360 degree spinning logo images
from the 1990s are gone today :)

Cheers,
- Adam

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



NoSuchMethodError in BeanParser

2010-10-12 Thread Adam
(UiBinderWriter.java:
627)
 [java] at
com.google.gwt.uibinder.rebind.UiBinderParser.parse(UiBinderParser.java:
139)
 [java] at
com.google.gwt.uibinder.rebind.UiBinderWriter.parseDocumentElement(UiBinderWriter.java:
935)
 [java] at
com.google.gwt.uibinder.rebind.UiBinderWriter.parseDocument(UiBinderWriter.java:
712)
 [java] at
com.google.gwt.uibinder.rebind.UiBinderGenerator.generateOnce(UiBinderGenerator.java:
142)
 [java] at
com.google.gwt.uibinder.rebind.UiBinderGenerator.generate(UiBinderGenerator.java:
119)
 [java] at
com.google.gwt.dev.javac.StandardGeneratorContext.runGenerator(StandardGeneratorContext.java:
427)
 [java] at
com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:
39)
 [java] at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.tryRebind(StandardRebindOracle.java:115)
 [java] at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.rebind(StandardRebindOracle.java:58)
 [java] at
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
161)
 [java] at
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
150)
 [java] at com.google.gwt.dev.Precompile
$DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(Precompile.java:
345)
 [java] at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:
106)
 [java] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.process(AbstractCompiler.java:254)
 [java] at
org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
 [java] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.compile(AbstractCompiler.java:175)
 [java] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.compile(AbstractCompiler.java:288)
 [java] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.access$400(AbstractCompiler.java:145)
 [java] at
com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:
632)
 [java] at
com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:
124)
 [java] at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:
54)
 [java] at
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:
484)
 [java] at
com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:
32)
 [java] at
com.google.gwt.dev.Precompile.precompile(Precompile.java:544)
 [java] at
com.google.gwt.dev.Precompile.precompile(Precompile.java:465)
 [java] at com.google.gwt.dev.Compiler.run(Compiler.java:205)
 [java] at com.google.gwt.dev.Compiler.run(Compiler.java:177)
 [java] at com.google.gwt.dev.Compiler$1.run(Compiler.java:149)
 [java] at
com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
 [java] at
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:
81)
 [java] at com.google.gwt.dev.Compiler.main(Compiler.java:156)

-Adam

-- 
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-tool...@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: NoSuchMethodError in BeanParser

2010-10-12 Thread Adam
Nevermind... It was a mismatch of 2.0.x and 2.1 jars.  Apparently
there's UiBinder code in gwt-server.jar. Go figure!

-Adam

On Oct 12, 1:48 pm, Adam ambr...@gmail.com wrote:
 Hey Gang,

 I was hoping someone might have an idea why this is happening.  I have
 two projects of 8 that use UiBinder at the moment.  One project
 compiles fine, the other however always fails with the following since
 I updated to GWT 2.1.0-RC1.  I've combed over it looking for some
 small issue, but can't find any.

     [java]             Checking rule generate-with
 class='com.google.gwt.uibinder.rebind.UiBinderGenerator'/
      [java]                Checking if all subconditions are true
 (all)
      [java]                   when-assignable
 class='com.google.gwt.uibinder.client.UiBinder'/
      [java]                      Yes, the requested type was
 assignable
      [java]                   Yes: All subconditions were true
      [java]             Rule was a match and will be used
      [java]             Invoking generator
 com.google.gwt.uibinder.rebind.UiBinderGenerator
      [java]    [ERROR] Errors in 'file:/devel/src//trunk/gwt-dashboard-
 ui/java/com/example/client/ViewImpl.java'
      [java]       [ERROR]  Internal compiler error
      [java] java.lang.NoSuchMethodError:
 com.google.gwt.uibinder.elementparsers.BeanParser.init(Lcom/google/
 gwt/uibinder/rebind/UiBinderContext;)V
      [java]     at
 com.google.gwt.uibinder.rebind.UiBinderWriter.getParsersForClass(UiBinderWriter.java:
 870)
      [java]     at
 com.google.gwt.uibinder.rebind.UiBinderWriter.parseElementToField(UiBinderWriter.java:
 627)
      [java]     at
 com.google.gwt.uibinder.rebind.UiBinderParser.parse(UiBinderParser.java:
 139)
      [java]     at
 com.google.gwt.uibinder.rebind.UiBinderWriter.parseDocumentElement(UiBinderWriter.java:
 935)
      [java]     at
 com.google.gwt.uibinder.rebind.UiBinderWriter.parseDocument(UiBinderWriter.java:
 712)
      [java]     at
 com.google.gwt.uibinder.rebind.UiBinderGenerator.generateOnce(UiBinderGenerator.java:
 142)
      [java]     at
 com.google.gwt.uibinder.rebind.UiBinderGenerator.generate(UiBinderGenerator.java:
 119)
      [java]     at
 com.google.gwt.dev.javac.StandardGeneratorContext.runGenerator(StandardGeneratorContext.java:
 427)
      [java]     at
 com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:
 39)
      [java]     at com.google.gwt.dev.shell.StandardRebindOracle
 $Rebinder.tryRebind(StandardRebindOracle.java:115)
      [java]     at com.google.gwt.dev.shell.StandardRebindOracle
 $Rebinder.rebind(StandardRebindOracle.java:58)
      [java]     at
 com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
 161)
      [java]     at
 com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
 150)
      [java]     at com.google.gwt.dev.Precompile
 $DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(Precompile.java:
 345)
      [java]     at
 com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:
 106)
      [java]     at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
 $CompilerImpl.process(AbstractCompiler.java:254)
      [java]     at
 org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
      [java]     at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
 $CompilerImpl.compile(AbstractCompiler.java:175)
      [java]     at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
 $CompilerImpl.compile(AbstractCompiler.java:288)
      [java]     at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
 $CompilerImpl.access$400(AbstractCompiler.java:145)
      [java]     at
 com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:
 632)
      [java]     at
 com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:
 124)
      [java]     at
 com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:
 54)
      [java]     at
 com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:
 484)
      [java]     at
 com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:
 32)
      [java]     at
 com.google.gwt.dev.Precompile.precompile(Precompile.java:544)
      [java]     at
 com.google.gwt.dev.Precompile.precompile(Precompile.java:465)
      [java]     at com.google.gwt.dev.Compiler.run(Compiler.java:205)
      [java]     at com.google.gwt.dev.Compiler.run(Compiler.java:177)
      [java]     at com.google.gwt.dev.Compiler$1.run(Compiler.java:149)
      [java]     at
 com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
      [java]     at
 com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:
 81)
      [java]     at com.google.gwt.dev.Compiler.main(Compiler.java:156)
      [java] [ERROR] Unexpected
      [java] java.lang.NoSuchMethodError

Re: GWT panel for HTML UL/LI lists

2010-10-04 Thread Adam Mark
Just extend FlowPanel and override setElement:

public class MyList extends FlowPanel {

...

@Override
protected void setElement(com.google.gwt.user.client.Element elem)
{
super.setElement(DOM.createElement(ul));
}

   ...

}

On Oct 2, 5:42 am, Markus Kramer tomaton...@googlemail.com wrote:
 Yes that's true.
 But I don't like the UIBinder stuff that much. There is a lot which I
 found difficult to do with UIBinder, so I'll stay with the old way.
 Just a personal taste.

 On Sep 27, 6:45 am, lalit lalit.bh...@gmail.com wrote:







  Cannot this be done with UIBinder in an easy way? Just write the
  layout in ui.xml and insert  the widget in the li tags.

  On Sep 25, 2:51 am, Markus Kramer tomaton...@googlemail.com wrote:

   Hi, for my current GWT project I wanted to make more use of HTML UL/LI
   elements than the table based layouts that you normally use in GWT
   applications.
   Biggest advantages for me is that other people can make changes to the
   layout/design of the page without having to touch the code itself.

   I couldn't find a class in GWT or anywhere else that helps with that,
   so I wrote my own. I can now create HTML like this:

   ul class=sampleList
     liWidget A/li
     liWidget B/li
   /ul

   with this code:

   UlListPanel ulList = new UlListPanel();
   ulList.addStyleName(sampleList);
   ulList.add(widgetA);
   ulList.add(widgetB);

   For the code go 
   here:http://markusbraindump.blogspot.com/2010/09/gwt-panel-for-html-ulli-l...

   Or did I reinvent the wheel?

   Markus

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



PagingScrollTable Future

2010-09-30 Thread Adam
I've done some googling around and curious if anyone knows what the
future holds for PagingScrollTable.

We're currently using GWT 2.0.4 and have a need for such a table, but
our hesitant to start using it if it's going to be replaced in the
near future.  I've not done a tone of digging around GWT 2.1, but I
know that they're working on a new Cell Table and my gut tells me that
it or one of it's kin folk will replace PagingScrollTable.

Any thoughts or suggestions would be appreciated.

-- 
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-tool...@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: PagingScrollTable Future

2010-09-30 Thread Adam

So the features were similar? Meaning support for pagination and
sorting?

Thanks,
Adam

On Sep 30, 12:37 pm, Gal Dolber gal.dol...@gmail.com wrote:
 I did the migration from PagingScrollTable to CellTable 2 weeks ago. It
 didn't take very much.. less than a day.
 The new table work awesome, it is very customizable and fast as hell. They
 are still working on it, a few days ago they added keyboard support! BTW
 thanks for that GWT team!

 Definitely give it a shoot.





 On Thu, Sep 30, 2010 at 9:21 AM, Adam ambr...@gmail.com wrote:
  I've done some googling around and curious if anyone knows what the
  future holds for PagingScrollTable.

  We're currently using GWT 2.0.4 and have a need for such a table, but
  our hesitant to start using it if it's going to be replaced in the
  near future.  I've not done a tone of digging around GWT 2.1, but I
  know that they're working on a new Cell Table and my gut tells me that
  it or one of it's kin folk will replace PagingScrollTable.

  Any thoughts or suggestions would be appreciated.

  --
  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-tool...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs 
  cr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.

 --
 Guit: Elegant, beautiful, modular and *production ready* gwt applications.

 http://code.google.com/p/guit/

-- 
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-tool...@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: UiBinder Performance

2010-08-14 Thread Adam
Thanks Falcon,

I have been waiting for GWT 2.1 to come out and the enhancements look
promising.  Unfortunately we can neither continue to wait nor use GWT
2.1 M2 for our product code.  So I was hoping to do something in the
mean time.

-Adam

On Aug 13, 4:32 pm, Falcon msu.fal...@gmail.com wrote:
 It sounds like the Cell widgets (specifically CellTable in this case)
 would be perfect for you; unfortunately those are coming in 2.1
 (although I suppose you could grab 2.1 M2 and try that).

 Seehttp://stackoverflow.com/questions/2891803/how-to-use-gwt-2-1-data-pr...
 for some information.

 On Aug 13, 3:13 pm, Adam ambr...@gmail.com wrote:

  I have been looking over the ColumnDefinition code 
  fromhttp://code.google.com/webtoolkit/articles/mvp-architecture-2.html
  MVP Architecture 2.  In particular the render method.  We have
  considered using UiBinder in the render portions.  The concern some of
  us have are the performance implications.  Consider an example where
  we generate a table with 10 columns and 100 rows.  Just like in the
  architecture each row is a model object.  The though is instead of
  using inner html to render (probably the fastest way) we're
  considering using a UiBinder.ui.xml view instantiated multiple times
  (once per row). So based on my example above we'd have 100 model
  objects, and UiBinder fragmets. The reason we've considered this
  method is to remove html code generation in Java.

  I was wondering what everyone thought about this or if they have
  another idea?

  -Adam

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



UiBinder Performance

2010-08-13 Thread Adam
I have been looking over the ColumnDefinition code from
http://code.google.com/webtoolkit/articles/mvp-architecture-2.html
MVP Architecture 2.  In particular the render method.  We have
considered using UiBinder in the render portions.  The concern some of
us have are the performance implications.  Consider an example where
we generate a table with 10 columns and 100 rows.  Just like in the
architecture each row is a model object.  The though is instead of
using inner html to render (probably the fastest way) we're
considering using a UiBinder.ui.xml view instantiated multiple times
(once per row). So based on my example above we'd have 100 model
objects, and UiBinder fragmets. The reason we've considered this
method is to remove html code generation in Java.

I was wondering what everyone thought about this or if they have
another idea?

-Adam

-- 
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-tool...@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 DevMode and gwt.codesvr parameter

2010-05-26 Thread Adam
Jeff,

Thanks for the quick response.  Yes, basically if you follow the
normal application flow you loose the gwt.codesvr parameter and
therefore the debug module logic doesn't work.

As for the authentication, we do authenticate people outside of GWT.
Our login process is actually done via struts.  The issue is we have
web filters that redirect a user to the login page if they're not
authenticated yet.  At the point of the redirect the gwt.codesvr is
lost.  Honestly I think we shot ourself in the foot with the
javascript snippet that doesn't allow us to navigate away from the
page.  Even if you're putting the same URL in the location bar as
shown it'll log you out.

Thanks for the code examples, I'll let you know what I end up doing.

-Adam

On May 25, 10:34 pm, Jeff Chimene jchim...@gmail.com wrote:
 On 05/25/2010 01:14 PM, Adam wrote:



  Hey Gang,

  I'm having an issue with DevMode working properly.  We're using
  noserver option and instead connecting to our JBoss application.  I've
  configured the GWT Plugin in Eclipse to point to our entrypoint page.
  The issue is that container security redirects us to authenticate to
  the application.  This in itself isn't really an issue because I can
  re-paste the link in the browser after authentication and I should be
  at my entrypoint.  The issue is we do not allow the user to navigate
  away from our app without logging out.  This is done through a simple
  javascript hook that posts to a logout if you try to change the URL in
  the location of the browser.  The only way around this I've found is
  to use a browser with Tab support and login on one tab and then
  navigate to the GWT entrypoint including gwt.codesvr= in another
  tab.

  Ideally I'd like to be able to login and navigate to my entrypoint
  from within the app and have the debugging take place when I hit the
  GWT module.  The issue is that gwt-codesvr is lost once you start to
  click around on the application.

  -Adam

 By ... click around on the application I assume you mean the URL changes.

 You have to preserve the gwt.codesvr parameter on each URL. This isn't
 difficult.

 I have a stand-alone login page that redirects to the GWT entrypoint.
 The login page transmits the url to the GWT entrypoint.

 script
 function getQueryVariable(variable) {
   var query = window.location.search.substring(1);
   var vars = query.split();
   for (var i=0;ivars.length;i++) {
     var pair = vars[i].split(=);
     if (pair[0] == variable) {
       return pair[1];
     }
   }}

 /script
 /head

 body
 form id='loginForm' action='cgi-bin/authenticate.cgi'
 onsubmit=document.getElementById('gwt.codesvr').value=getQueryVariable('gwt.codesvr');
 return true;
 input type=hidden name='gwt.codesvr' id='gwt.codesvr'/
 span class=labelUsername/span
 input type=text size='30' maxLength='50' id='username' /
 span class=labelPassword/span
 input type=password size='30' maxLength='50' id='password' /
 input type=submit value=login /
 /form

 I think the consensus is to perform authentication outside the GWT
 environment. When authentication fails, you can have a lightweight GWT
 session that redirects to the login page. By lightweight I mean to use
 codesplitting or GIN to lazy-load the bulk of the application after
 successfully authenticating.

 if (NOT AUTHENTICATED) {
   UrlBuilder urlBuilder = Window.Location.createUrlBuilder();
   urlBuilder.setPath(CONSTANTS.urlLogin());
   if (null != Window.Location.getParameter(gwt.codesvr)) {
     urlBuilder.setParameter(gwt.codesvr,
       Window.Location.getParameter(gwt.codesvr));
    }
   Window.Location.assign(urlBuilder.buildString());
   return;

 }

-- 
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-tool...@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 DevMode and gwt.codesvr parameter

2010-05-26 Thread Adam
Jeff,

Yeah I have a working prototype of that working now. The route we've
decided to take though is to have a developer mode and if set a
request filter will auto authenticate allowing direct connection to
GWT EntryPoint URLS with gwt.codeSvr included.

Thanks for all your help Jeff.

-Adam

On May 26, 10:14 am, Jeff Chimene jchim...@gmail.com wrote:
 Hi Adam:

 I get what you're saying.

 Do you have control over the logout hook? If so, why not add some
 intelligence that copies the gwt.codesvr parameter if it exists in the URL?
 I don't see any security implications here (perhaps I'm not sufficiently
 caffeinated)

 On Wed, May 26, 2010 at 5:25 AM, Adam ambr...@gmail.com wrote:
  Jeff,

  Thanks for the quick response.  Yes, basically if you follow the
  normal application flow you loose the gwt.codesvr parameter and
  therefore the debug module logic doesn't work.

  As for the authentication, we do authenticate people outside of GWT.
  Our login process is actually done via struts.  The issue is we have
  web filters that redirect a user to the login page if they're not
  authenticated yet.  At the point of the redirect the gwt.codesvr is
  lost.  Honestly I think we shot ourself in the foot with the
  javascript snippet that doesn't allow us to navigate away from the
  page.  Even if you're putting the same URL in the location bar as
  shown it'll log you out.

  Thanks for the code examples, I'll let you know what I end up doing.

  -Adam

  On May 25, 10:34 pm, Jeff Chimene jchim...@gmail.com wrote:
   On 05/25/2010 01:14 PM, Adam wrote:

Hey Gang,

I'm having an issue with DevMode working properly.  We're using
noserver option and instead connecting to our JBoss application.  I've
configured the GWT Plugin in Eclipse to point to our entrypoint page.
The issue is that container security redirects us to authenticate to
the application.  This in itself isn't really an issue because I can
re-paste the link in the browser after authentication and I should be
at my entrypoint.  The issue is we do not allow the user to navigate
away from our app without logging out.  This is done through a simple
javascript hook that posts to a logout if you try to change the URL in
the location of the browser.  The only way around this I've found is
to use a browser with Tab support and login on one tab and then
navigate to the GWT entrypoint including gwt.codesvr= in another
tab.

Ideally I'd like to be able to login and navigate to my entrypoint
from within the app and have the debugging take place when I hit the
GWT module.  The issue is that gwt-codesvr is lost once you start to
click around on the application.

-Adam

   By ... click around on the application I assume you mean the URL
  changes.

   You have to preserve the gwt.codesvr parameter on each URL. This isn't
   difficult.

   I have a stand-alone login page that redirects to the GWT entrypoint.
   The login page transmits the url to the GWT entrypoint.

   script
   function getQueryVariable(variable) {
     var query = window.location.search.substring(1);
     var vars = query.split();
     for (var i=0;ivars.length;i++) {
       var pair = vars[i].split(=);
       if (pair[0] == variable) {
         return pair[1];
       }
     }}

   /script
   /head

   body
   form id='loginForm' action='cgi-bin/authenticate.cgi'

  onsubmit=document.getElementById('gwt.codesvr').value=getQueryVariable('gwt.codesvr');
   return true;
   input type=hidden name='gwt.codesvr' id='gwt.codesvr'/
   span class=labelUsername/span
   input type=text size='30' maxLength='50' id='username' /
   span class=labelPassword/span
   input type=password size='30' maxLength='50' id='password' /
   input type=submit value=login /
   /form

   I think the consensus is to perform authentication outside the GWT
   environment. When authentication fails, you can have a lightweight GWT
   session that redirects to the login page. By lightweight I mean to use
   codesplitting or GIN to lazy-load the bulk of the application after
   successfully authenticating.

   if (NOT AUTHENTICATED) {
     UrlBuilder urlBuilder = Window.Location.createUrlBuilder();
     urlBuilder.setPath(CONSTANTS.urlLogin());
     if (null != Window.Location.getParameter(gwt.codesvr)) {
       urlBuilder.setParameter(gwt.codesvr,
         Window.Location.getParameter(gwt.codesvr));
      }
     Window.Location.assign(urlBuilder.buildString());
     return;

   }

  --
  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-tool...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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

GWT user.agent and rename-to

2010-05-26 Thread Adam
I'm a little foggy on how the Working Module is suppose to work with
a build system and if inheritance takes place.  I've read the
documentation at 
http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html
Renaming modules section.  That looks pretty simple, but I'm not
getting the desired experience.  So here's a little background of how
our environment is setup.

Module Layout / Inheritance:
CommonCore.gwt.xml
- UserObjects.gwt.xml
- UserUI.gwt.xml
- CustomerUI.gwt.xml
- AdminUI.gwt.xml
- IPTools.gwt.xml

So roughtly, UserObjects.gwt.xml is inherits CommonCore.gwt.xml,
UserUI.gwt.xml inherits UserObjects.gwt.xml and CommonCore.gwt.xml,
etc.  At the moment I'm able to directly modify CommonCore.gwt.xml and
set user.agent=gecko1_8 and locale=default and the compile time via
ant of our projects is reduced by about 9 minutes. I also rand the GWT
Compiler with log level INFO to see that only 1 permutation is being
compiled.

So we'd be done, but we're afraid a developer might accidental commit
their user.agent and locale settings and we end up with support for
one browser in production.

So that's why the documentation about Renaming modules and the
concept of a Working Module was very appealing. So our hope was to
create one Working Module for CommonCore.gwt.xml to handle
everything.

Our project structure is pretty typical:
common-core
  - com.company.common
  - CommonCore.gwt.xml
  - com.company.common.client
   etc

So we added a DevCommonCore.gwt.xml module that looks like this:
module rename-to=com.company.common.CommonCore
inherits name=com.company.common.CommonCore /
!-- Developers: Set this to your test browser, values are ie6 ie8
gecko gecko1_8 safari opera --
!-- set-property name=user.agent value=ie6,gecko1_8 / --
set-property name=user.agent value=gecko1_8 /
set-property name=locale value=default /
/module

When doing an ant build after this one change has been put in place
produced a compile less that all permutations, but greater than 1
permutation.

So one question I had is does all other modules that have inherits
com.company.common.CommonCore / now actually inherit
DevCommonCore.gwt.xml?

The other issue I was wording is that in the ant compile you specify
the module name so I tried passing com.company.common.DevCommonCore if
a property was set for deployment=dev.  This build fine, but all GWT
modules after that didn't work.

So ultimately I'm asking how far off was I in my thinking?  Do I have
to create a working module for each module?  Is there changes I have
to make to the entrypoint?  I think not based on the fact that I'm
renaming.

Any help would be most appreciate.

-Adam

-- 
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-tool...@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 DevMode and gwt.codesvr parameter

2010-05-25 Thread Adam
Hey Gang,

I'm having an issue with DevMode working properly.  We're using
noserver option and instead connecting to our JBoss application.  I've
configured the GWT Plugin in Eclipse to point to our entrypoint page.
The issue is that container security redirects us to authenticate to
the application.  This in itself isn't really an issue because I can
re-paste the link in the browser after authentication and I should be
at my entrypoint.  The issue is we do not allow the user to navigate
away from our app without logging out.  This is done through a simple
javascript hook that posts to a logout if you try to change the URL in
the location of the browser.  The only way around this I've found is
to use a browser with Tab support and login on one tab and then
navigate to the GWT entrypoint including gwt.codesvr= in another
tab.

Ideally I'd like to be able to login and navigate to my entrypoint
from within the app and have the debugging take place when I hit the
GWT module.  The issue is that gwt-codesvr is lost once you start to
click around on the application.

-Adam

-- 
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-tool...@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 Compiler 2.0 Changes

2010-05-18 Thread Adam
]   private
java.lang.String scoreKey
 [java]Is instantiable
 [java]
com.choicepoint.wps.gwt.applicant.client.add.SelectPackagePanel.ComponentTypeComparator
is not accessible from a class in its same package; it will be
excluded from the set of serializable types (reached via
com.choicepoint.wps.gwt.common.model.customer.GCustomer)
 [java]
com.choicepoint.wps.gwt.applicant.client.add.SelectPackagePanel.ListItemsComparator
is not accessible from a class in its same package; it will be
excluded from the set of serializable types (reached via
com.choicepoint.wps.gwt.common.model.customer.GCustomer)
 [java]
com.google.gwt.i18n.client.impl.ConstantMap is not default
instantiable (it must have a zero-argument constructor or no
constructors at all) and has no custom serializer. (reached via
com.choicepoint.wps.gwt.common.model.customer.GCustomer)
 [java]
com.google.gwt.i18n.client.impl.ConstantMap is not default
instantiable (it must have a zero-argument constructor or no
constructors at all) and has no custom serializer. (reached via
com.choicepoint.wps.gwt.common.model.customer.GCustomer)
 [java]
com.google.gwt.i18n.client.impl.ConstantMap is not default
instantiable (it must have a zero-argument constructor or no
constructors at all) and has no custom serializer. (reached via
com.choicepoint.wps.gwt.common.model.customer.GCustomer)
 [java]
com.google.gwt.user.client.ui.FastStringMapT is not assignable to
'com.google.gwt.user.client.rpc.IsSerializable' or
'java.io.Serializable' nor does it have a custom field serializer
(reached via com.choicepoint.wps.gwt.common.model.customer.GCustomer)
 [java]
com.google.gwt.user.client.ui.FastStringMapT is not assignable to
'com.google.gwt.user.client.rpc.IsSerializable' or
'java.io.Serializable' nor does it have a custom field serializer
(reached via com.choicepoint.wps.gwt.common.model.customer.GCustomer)
 [java]
com.google.gwt.user.client.ui.FastStringMapT is not assignable to
'com.google.gwt.user.client.rpc.IsSerializable' or
'java.io.Serializable' nor does it have a custom field serializer
(reached via com.choicepoint.wps.gwt.common.model.customer.GCustomer)


On May 17, 4:28 pm, Adam ambr...@gmail.com wrote:
 Does anyone know if the GWT 2.0 Compiler has become more strict or
 made some breaking changes?  I've recently attempted to update from
 GWT 1.7.1 to GWT 2.0.3 and we're getting tons of messages stating is
 not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' or
 'java.io.Serializable' nor does it have a custom field serializer.
 Switching which version of the GWT SDK makes the different between our
 several GWT projects compiling in ANT or not.

 --
 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-tool...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group 
 athttp://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-tool...@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 2.0 Changes

2010-05-17 Thread Adam
Does anyone know if the GWT 2.0 Compiler has become more strict or
made some breaking changes?  I've recently attempted to update from
GWT 1.7.1 to GWT 2.0.3 and we're getting tons of messages stating is
not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' or
'java.io.Serializable' nor does it have a custom field serializer.
Switching which version of the GWT SDK makes the different between our
several GWT projects compiling in ANT or not.

-- 
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-tool...@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 Update from 1.7.1 to 2.0.3

2010-05-14 Thread Adam
 field serializer
(reached via XX.client.ISubjectRecord)

As part of the messages is also our code, but what boggles me is that
a large number of GWT code classes are also showing this error.

-Adam

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



detect a mouseup when mouse is off the browser

2010-05-14 Thread Adam D
Dear all,

I am trying to create a table similar to the one in google
spreadsheet, where the user can with a mousedrag select cells.
In google spreadsheet when I end my selection out of the browser the
selection finalises, it actually puts a blue border on the last cell.

I have created a flextable and added some labels on it, I can detect
mouseup and mousedown and the cellselection almost works when the
mouse is in the flextable,but when someone starts the drags from
inside the table and then releases the mouse outside the browser then
the table continues to select cells without any mouse buttons being
pressed.

Does anyone knows how to detect a mouseup event when it happens
outside the browser?

Thank you all happy coding

Adam

-- 
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-tool...@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: detect a mouseup when mouse is off the browser

2010-05-14 Thread Adam D
Well Google spreadsheet is able to do it somehow and I am sure setting
an onclick on the body will fire even if the mouseup is out of the
screen. So there must be a way to do it. If I was working on
Javascript I would easily have code it but I am looking for a GWT
solution.


Adam


On 14 May, 21:48, kozura koz...@gmail.com wrote:
 No, you need to detect the MouseOut event and deal with it there;
 after that all bets are off of what mouse events you can get depending
 on browser and OS.

 On May 13, 4:52 pm, Adam D adamantios.dal...@googlemail.com wrote:





  Dear all,

  I am trying to create a table similar to the one in google
  spreadsheet, where the user can with a mousedrag select cells.
  In google spreadsheet when I end my selection out of the browser the
  selection finalises, it actually puts a blue border on the last cell.

  I have created a flextable and added some labels on it, I can detect
  mouseup and mousedown and the cellselection almost works when the
  mouse is in the flextable,but when someone starts the drags from
  inside the table and then releases the mouse outside the browser then
  the table continues to select cells without any mouse buttons being
  pressed.

  Does anyone knows how to detect a mouseup event when it happens
  outside the browser?

  Thank you all happy coding

  Adam

  --
  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-tool...@googlegroups.com.
  To unsubscribe from this group, send email to 
  google-web-toolkit+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://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-tool...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group 
 athttp://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-tool...@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: Hosted mode won't work since 2.0 upgrade

2009-12-16 Thread Adam S
Copying another version of eclipse worked for me.
After that i retrieved code from my SVN server and everything is as it
was before.

BR

--

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-tool...@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: Hosted mode won't work since 2.0 upgrade

2009-12-15 Thread Adam S
Same outcome here. I tried to swtich to GWT2.0, but my app using
smarGwt
compononets didn't exacly looked as i inteded so i tried to switch
back to 1.7.1
Now my hosted mode tries to connect to some weird site and
 keeps saying :  Unknown module requested 'missingplugin'

On 14 Gru, 22:17, Mike McLean mike.mclea...@gmail.com wrote:
 Hi All,

 Last week, I installed GWT 2.0, Chrome, Chromium and the SpeedTracer
 plugin on my 10.6 OS X installation. I also updated my Eclipse plugin.

 It was a quick try to see if my current project would keep working on
 2.0 when I'd find the time to upgrade and test properly.

 Ever since the update, I've been unable to start hosted mode ...

 [WARN] Unknown module requested 'missingplugin'; all active GWT
 modules must be specified in the command line arguments

 I've tried removing Chrome and Chromium; I've removed the 2.0 install
 of GWT; I've used TimeMachine to restore my Eclipse installation as
 well as my workspace ... to no avail.

 Where should I be looking? What's going on?

 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-tool...@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: OOPHM not connecting to Code Server

2009-12-04 Thread Adam Hawthorne
I think the issue was not having compiled once with 2.0, which should
produce the new hosted.html, correct?  Once I did that, many other things
began to fail due to stray jars.  After I finally waded through that mess,
things worked well.

On an unrelated note, are there any plans for a Chrome for Linux OOPHM
plugin?  How different is it from the windows plugin?

Adam

On Fri, Dec 4, 2009 at 17:01, Chris Ramsdale cramsd...@google.com wrote:

 You may have already done this, but you'll want to make sure that you
 update your hosted.html that you are serving up as well. In working through
 some other upgrade scenarios, I forgot to update this file and my app ran
 but wasn't hitting any of my breakpoints.


 On Tue, Dec 1, 2009 at 2:44 PM, ahawtho adam.hawtho...@gmail.com wrote:

 Hi all,

 This is resolved, but I'm sorry to say I can't say exactly what the
 problem was.  There's a few things I did that seemed as though they
 may have helped:

 1.  We have a complex classloader structure in our servlets.  We add
 files to certain jar files, and because of this, there was a stray
 copy of gwt-user.jar from 1.7.0 somewhere in our build process.
 2.  It may have been that compiling used 1.7.1 due to some old
 dependencies in our custom Ant scripts, and so things were working
 in production mode.
 3.  I'm not sure what caused the OOPHM plugin to connect to the Code
 Server after all, my guess is that it was due to the difference
 between the gwt.codesvr and gwt.hosted query parameters.

 Adam

 On Dec 1, 12:43 pm, ahawtho adam.hawtho...@gmail.com wrote:
  Thanks Rajeev,
 
  I added that and I have good news and bad news:
 
  The good news is that adding the cmdline arg did cause the
  Development Mode tab in Eclipse to display a URL:
 http://localhost:8080/webconfig/default?gwt.codesvr=127.0.1.1:9997,
  and I was able to paste that into firefox.
 
  The bad news is that doing so did not seem to change anything about
  the execution.  No breakpoints, no attempt to connect to the code
  server, etc..  If you have any more ideas about this, I'd very much
  appreciate it.
 
  Side question:  Does the use of the gwt.codesvr query parameter
  trigger the OOPHM plugin, or is it something else?
 
  Thanks,
 
  Adam
 
  On Dec 1, 10:07 am, Rajeev Dayal rda...@google.com wrote:
 
 
 
   Hey Adam,
 
   Try adding the following to the program arguments of your launch
   configuration:
 
   -startupUrl webconfig/default
 
   Rajeev
 
   On Tue, Dec 1, 2009 at 12:03 AM, ahawtho adam.hawtho...@gmail.com
 wrote:
When running in Development mode from the Eclipse plugin, the
 DevMode
console does not indicate any URL, and starting DevMode does not
 open
a browser.  From the UsingOOPHM wiki link, I found the text:
 
 If you start DevMode in a browser without the plugin, you will get
 to the
 page allowing you to install the plugin. If you want to install it
 ahead
 of time, you can go directly to that missing-plugin page to
 install the
 plugin.
 
Since nothing appeared, I went to the missing-plugin page to install
the plugin, and found references to the gwt.hosted query param.
 
Our GWT pages are all served via servlets from a context URL of /
webconfig/*. We do not have a static HTML page.  I tried to follow
 the
same pattern by navigating in FF to
 localhost:/webconfig/default?
gwt.hosted=localhost:9997 .  Our application does seem to load and
function normally, but although I had run the DevMode configuration
from Eclipse's Debug menu, breakpoints don't work and I never see a
connection from the OOPHM plugin noted in the logs.  I even
 suspended
the Code Server thread from within the DevMode JVM to see if it ever
returned from the ServerSocket.accept() (it didn't).  It seems as
though the URL I'm using is bypassing the mechanism that invokes the
OOPHM plugin.
 
Another anomaly that I think might be related is that when creating
 or
editing a Run/Debug Configuration, the GWT tab on the configuration
dialog appears different when I select my GWT project (it's missing
the Browser URL field and replaces the Compiler  Shell section with
 a
Development Mode section, see attached images for details).  I idly
wondered if it was related to our GWT bootstrap HTML pages being
generated by servlets, so I mention it here.
 
I found this:
 
   
 http://groups.google.com/group/google-web-toolkit/browse_thread/threa...
 
but I verified the gwt-servlet.jar was the same in the 2.0rc2 dir
 and
my war/WEB-INF/lib dir .
 
This looks like maybe the URL field is no longer valid:
 
   
 http://groups.google.com/group/google-web-toolkit/browse_thread/threa...
 
But in any case, perhaps my servlet is handling things before it
 gets
to yours?  FWIW, I do have load-on-startup tags in my web.xml .
 
Thanks for any help,
 
Adam
 
--
 
You received this message because you are subscribed to the Google

Re: Garmin Communicator API

2009-11-22 Thread Adam T
Stephen,

You're most likely going to need to use the $wnd or $doc variable
within your JSNI code as the Garmin JS is not loaded into the same
area as GWT code (http://code.google.com/webtoolkit/doc/1.6/
DevGuideCodingBasics.html#DevGuideJavaScriptNativeInterface)

i.e. var display = new $wnd.Garmin.DeviceDisplay(garminDisplay,
{

//Adam

On 21 Nov, 20:25, Stephen Walsh stephenwalsh@gmail.com wrote:
 I am trying to use the above api to implement some JSNI code in my
 onModuleLoad method.  I am having the darnedest time trying to get it to
 recognize that I have the extra javascript files available.  The JS debugger
 in Chrome keeps saying that Garmin is undefined (see below).  Here's the
 dilemma: when I create my JSNI it gets compiled in the main JS code and
 evidently the Garmin JS code is out of the scope of where the call happens
 in the compiled JS.  I'm somewhat new to GWT, and I'm not sure if I'm doing
 something incorrectly or not. Here's what I've got in my project:

 src
 ---public
 --communicator-api
 -miscellaneous garmin folders in the original structure
 ---garmin_project.gwt.xml

 com.stephenlwalsh.garmin_project.client
 ---garmin_project.java

 Contents of garmin_project.gwt.xml  The script src tags are doing a fine job
 of pulling in the js needed and the entire communicator-api folder on
 compile.

 ?xml version=1.0 encoding=UTF-8?
 !DOCTYPE module PUBLIC -//Google Inc.//DTD Google Web Toolkit 1.7.1//EN 
 http://google-web-toolkit.googlecode.com/svn/tags/1.7.1/distro-source...
 
 module rename-to='garmin_favorites_sync'
   !-- Inherit the core Web Toolkit stuff.                        --
   inherits name='com.google.gwt.user.User'/

   !-- Inherit the default GWT style sheet.  You can change       --
   !-- the theme of your GWT application by uncommenting          --
   !-- any one of the following lines.                            --
   inherits name='com.google.gwt.user.theme.standard.Standard'/
   !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ --
   !-- inherits name='com.google.gwt.user.theme.dark.Dark'/     --

   !-- Other module inherits                                      --
   script src=http://www.google.com/uds/api?file=uds.jsv=1.0gwt=1
 /
   script src=communicator-api/garmin/device/GarminDeviceDisplay.js/
   script src=communicator-api/prototype/prototype.js/
   stylesheet src=communicator-api/garmin/device/style/communicator.css/
   !-- Specify the app entry point class.                         --
   entry-point
 class='com.stephenlwalsh.garminsync.client.Garmin_Favorites_Sync'/
 /module

 JSNI function within EntryPoint()

     private native void load() /*-{
         var display = new Garmin.DeviceDisplay(garminDisplay, {
             pathKeyPairsArray:
 [http://developer.garmin.com,49048b3369edffd4a511d920202a6214;],

             autoFindDevices: true, //start searching for devices
             showStatusElement: true, //basic feedback provided
             showReadDataElement: false //don't offer to read data
             //add other options per the documentation
             });
     }-*/;

 From within onModuleLoad() I have the function called and it works fine.
 The problem lies within the line above in the var display declaration.  It
 says that Garmin is undefined.  I have moved files and reworded and
 everything trying to give that function access to the JS that it should have
 access to.  It's interesting that when I place the js load function in the
 html, it works just fine even when GWT is compiling the external javascript.

 Any thoughts?

 Thanks,
 Stephen Walsh

--

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-tool...@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=.




Re: Connecting Widgets

2009-11-02 Thread Adam T

The following library might work for you, or give you hints on what
you need to do: http://code.google.com/p/gwt-diagrams/

//Adam

On 2 Nov, 00:23, sony sonyp...@gmail.com wrote:
 My project is about drawing ER Diagrams, for this I am using GWT. For
 now i have most of the frontend working. Now I want to have lines
 connecting two widgets to create a relationship between the entities
 and attributes. For that I want to create 4 corner points to which the
 lines can connect (Technology something similar to EDrawMax or DIA).
 Example picturehttp://www.cs.uofs.edu/~sudhakaras2/Example.jpg

 Any help would be appreciated.
 Thank you.
--~--~-~--~~~---~--~~
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 do I boostrap my Entry Point class with the User service?

2009-10-25 Thread Adam T

This tutorial might help, particularly section 3 that covers using
AppEngine User service in GWT : 
http://code.google.com/webtoolkit/tutorials/1.6/appengine.html

//Adam

On 24 Okt, 19:43, nacho vela.igna...@gmail.com wrote:
 Hi, im developing an aplication in gwt and i have an entry point
 class. What i do no realize how to do is how to only permit access to
 the user that is logged using the user service 
 (http://code.google.com/appengine/docs/java/gettingstarted/usingusers
 )

 Do i have to put something in the web.xml?

 Can somebody please help me?

 Thanks a lot.
--~--~-~--~~~---~--~~
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: change css rules dynamically

2009-10-18 Thread Adam T

You can do it in at least 4 different ways in GWT.  Say you define a
label as Label first = new Label(First Label) and add it to the DOM,
then you can do one of the following to hide it:

a) first.setVisible(false);
b) first.getElement().getStyle().setVisibility(Visibility.HIDDEN);
c) first.getElement().getStyle().setProperty(display, hidden);
d) first.addStyleName(hidden-style);  (assuming you have hidden-
style defined in your style sheet and that sets the display property
to hidden)

//Adam

On 18 Okt, 09:07, bhomass bhom...@gmail.com wrote:
 I found there is a way to change css rules using javascript.

 http://twelvestone.com/forum_thread/view/31411.

 is there a way to do this using gwt?
--~--~-~--~~~---~--~~
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: change css rules dynamically

2009-10-18 Thread Adam T

...if you mean actually changing a value in an already defined style
sheet, then you need to use JSNI (or rethink your application to
change the style applied to elements rather than the style
definition).

//A

On 18 Okt, 15:52, Adam T adam.t...@gmail.com wrote:
 You can do it in at least 4 different ways in GWT.  Say you define a
 label as Label first = new Label(First Label) and add it to the DOM,
 then you can do one of the following to hide it:

 a) first.setVisible(false);
 b) first.getElement().getStyle().setVisibility(Visibility.HIDDEN);
 c) first.getElement().getStyle().setProperty(display, hidden);
 d) first.addStyleName(hidden-style);  (assuming you have hidden-
 style defined in your style sheet and that sets the display property
 to hidden)

 //Adam

 On 18 Okt, 09:07, bhomass bhom...@gmail.com wrote:

  I found there is a way to change css rules using javascript.

 http://twelvestone.com/forum_thread/view/31411.

  is there a way to do this using gwt?
--~--~-~--~~~---~--~~
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: Gadget more ?

2009-09-29 Thread Adam T

can't you do it using the normal GWT menu and menuitem widgets?
//A

On 29 Sep, 13:50, Ice13ill andrei.fifi...@gmail.com wrote:
 Does someone knows a library with gadget/widget like the more item
 from the google main menu ? (the menu seen on the top of the page,
 with links to other apps)
--~--~-~--~~~---~--~~
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: Problem with Getting Scripts Tag Working

2009-09-26 Thread Adam T

You might want to follow the getting started with Google maps api and
GWT guide (http://code.google.com/docreader/#p=gwt-google-apiss=gwt-
google-apist=MapsGettingStarted)?

//A

On 25 Sep, 22:33, thc tclotwor...@integratedsecure.com wrote:
 Hi, I am creating a very simple GWT that uses Google Maps API, and
 trying to run in hosted mode. At runtime, I receive the exception:

 The Maps API has not been loaded.
 Is a script tag missing from your host HTML or module file?  Is the
 Maps key missing or invalid?

 However, since I am running localhost, the documentation (Getting
 Started with Google Maps) indicates I will not need a key, so I did
 not acquire one from Google.

 Do I still need the script tag in the gwt.xml file? If so, how do I
 construct the tag? I would be grateful for any advice. 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: Compilation Error

2009-09-25 Thread Adam T

 u can not use these classes in GWT - client side,
 read the doc for the allowed class,


more specifically, this is what you are allowed to use on GWT client
side: http://code.google.com/webtoolkit/doc/1.6/RefJreEmulation.html

//A


--~--~-~--~~~---~--~~
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: Problem compiling deploying GWT-Fx

2009-09-19 Thread Adam T

Hi Carlos,

You shouldn't see anything in the war file, the code for gwt-fx gets
compiled into JavaScript by the GWT compiler - just adding the jar
file as you have to a lib directory and is enough (assuming your
classpaths are set up ok).

I'd suggest checking the log of the compile to make sure your code has
compiled, and if so, then using an inspection tool on your browser to
see what is happening (e.g. Firebug or similar).

Hope that helps,

Adam


On 12 Sep, 02:15, Carlos Niebla cnie...@gmail.com wrote:
 Hi,

 I've been working with some examples ofGWT-Fx, they run fine in
 hosted mode within Eclipse, but when I compile and deply to web server
 they show nothing at all.

 I've inspected the resulting war dir, and there's not a org/adam*
 set of directories.

 As I said, in my setup I have added the jar filegwt-fxv4.0.0.jar to
 a lib sub-dir in my workspace, then added it to my build path. It's
 working without problems on hosted mode.

 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: Need help with GWT FX

2009-09-08 Thread Adam T

Hi Rodders,

I'm guessing you are using v4 or below of the library, in which case,
this is one of the limitations in those versions - effects are applied
to the content of the NEffectPanel.  So your contents would move but
the NEffectPanel would stay.

If you're able to download the code from trunk, then this limitation
disappears, as you no longer need to use an NEffectPanel and can apply
effects directly to widgets.  Hopefully it will only be a few weeks
before the trunk becomes a stand-alone download.

For example, in v4 and below you had to write

NEffectPanel ep = new NEffectPanel()
Move theEff = new Move(100,50);
Widget someWidget = new SomeWidget();
ep.add(someWidget);
ep.addEffect(theEff);
ep.playEffects();

With v5 (in trunk) you can just write

Widget someWidget = new SomeWidget();
Move theEff = new Move(someWidget.getElement(), 100, 50);
theEff.play();

Also, when you add a Move effect to an element then it gets assigned
position:absolute property, so if you apply a move to all your boxes,
you may not see the others alter position on screen if you move just
one of them.

Hope that helps in some way.

//Adam


On 7 Sep, 12:26, Rodders david.andrew.chap...@googlemail.com wrote:
 Hi,

 I'm hoping someone can help... I've been using the (very useful) gwt-
 fx library (by Adam Tacy) and have run into a couple of problems and
 I'm not sure if it's how I'm structuring my code.

 I'm trying to layout a bunch of boxes (absolutely positioned) and then
 animate each of them independently

 e.g.

 FlowPanel container = new FlowPanel();
 container.setStylePrimaryName(my-container);

 Box boxA = new Box();
 container.add(boxA);

 Box boxB = new Box();
 container.add(boxB);

 ...

 The Box Class is a Composite that contains an NEffectPanel as it's
 initWidget and I add a bunch of other Widgets to the NEffectPanel
 (and I'm styling the NEffectPanel with a border, background etc).

 If I try and animate the position one of the Boxes it all goes a bit
 pear shaped - rather than the Box moving,  its contents moves...?

 Is this the correct behaviour and if so is there a way of doing what I
 want?

 Hope this makes sense!

 Cheers,
 Rodders
--~--~-~--~~~---~--~~
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 can I get GWT 2.0

2009-09-07 Thread Adam

There is no official GWT 2.0 right now.  But you can build what's in
the trunk though.

To do that, you need to subversion and ant.

Make a work directory
mkdir google-web-toolkit
cd google-web-toolkit

Checkout the GWT tools:
svn checkout http://google-web-toolkit.googlecode.com/svn/tools

Then, checkout the trunk
svn checkout http://google-web-toolkit.googlecode.com/svn/trunk

Change your directory to the trunk and type:
ant

Then, in build/dist, there will by an archive of GWT and it's like
installing and setting up any GWT release.

On Sep 6, 7:11 pm, Karan Sardana karansard...@gmail.com wrote:
 I am using a commercial library - EXT GWT 2.0, and for that I need GWT
 2.0; where can I get that from?

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



GWT.create() doesn't work outside onModuleLoad()

2009-08-18 Thread Adam Pratt

Hey All,

I'm trying to get one very simple line of code to work:

MyService service = GWT.create(MyService.class);

I've been playing around with this a lot, and I'm noticing that this
works fine within in the onModuleLoad() method, but anywhere else in
my client code, I get the following error (when in hosted mode):

java.lang.ClassCastException: [packagename].shared.MyService_Proxy
cannot be cast to [packagename].aspect.shared.MyService

Anyone know what might be causing this error?

Thanks,
Adam

--~--~-~--~~~---~--~~
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.create() doesn't work outside onModuleLoad()

2009-08-18 Thread Adam Pratt

The problem I was having with MyServiceAsync is that if I want to call
service.getSomething(), I had to pass in an AsyncCallBack object with
two functions: onSuccess() and onFailure(), both of which are of type
void. I can't, within onSuccess(), set a global string variable to a
certain value, which is what I'm trying to do (if you don't understand
what I mean, check out 
http://www.java-forums.org/new-java/20629-callbacks.html).

Also, if I'm able to use GWT.create() to create a MyService object in
onModuleLoad(), why am I unable to do this elsewhere?

On Aug 18, 5:03 pm, davis davisf...@zenoconsulting.biz wrote:
 Hi Brian, I think you want:

 MyServiceAsync service = GWT.create(MyService.class);

 On Aug 18, 3:00 pm, Adam Pratt mehmeh...@mailinator.com wrote:

  Hey All,

  I'm trying to get one very simple line of code to work:

  MyService service = GWT.create(MyService.class);

  I've been playing around with this a lot, and I'm noticing that this
  works fine within in the onModuleLoad() method, but anywhere else in
  my client code, I get the following error (when in hosted mode):

  java.lang.ClassCastException: [packagename].shared.MyService_Proxy
  cannot be cast to [packagename].aspect.shared.MyService

  Anyone know what might be causing this error?

  Thanks,
  Adam
--~--~-~--~~~---~--~~
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: event when item is visible, and getOffsetHeight isn't 0

2009-07-30 Thread Adam T

try the onLoad() method:


  /**
   * This method is called immediately after a widget becomes attached
to the
   * browser's document.
   */
  protected void onLoad() {
  }

//Adam


On 30 Juli, 22:10, bradr brad.rydzew...@gmail.com wrote:
 I'm working on a widget and need to do calculations based on it's
 height in order to layout its child components. So i do something like
 this:

 @Override
 public void setHeight(String height) {

    super.setHeight(height);
    ...do height calculations

 }

 The problem i'm having is that setHeight is called before the widget
 is visible on the screen, and therefore, I can't do the calculation
 because getOffsetHeight is equal to zero.

 Is there a method I can override or an event I can subscribe to that
 tells me when the widget is visible and has been laid out on the
 screen, at which point i could run the calculation?
--~--~-~--~~~---~--~~
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: Async socket

2009-07-30 Thread Adam T

The so-called Comet technique is perhaps what you are looking for:
http://ajaxian.com/archives/comet-a-new-approach-to-ajax-applications

//Adam

On 31 Juli, 02:03, Blessed Geek blessedg...@gmail.com wrote:
 In Flash, I could create an async socket.
 Which is very useful because it allows server pushing data
 asynchronously (i.e. on the events of new data is available or changes
 in data) to the client without the client's constant initiative.

 Does GWT have a means to create async sockets?

 Actually, how would you create an browser-side async socket in
 javascript?

 I know of a way some people play cheat by polling. Using the browser's
 javascript, they create a so-called listener in which you declare the
 url you wish to listen to and the interval of polling. And on the
 listenee side, you have to install a message pusher that would listen
 for the browser's listener polling.

 I think that is cheating because the actual listener is the server not
 the browser, because the browser is initiating data transfer by
 polling and the server listens to the poll.
--~--~-~--~~~---~--~~
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: conversion to JavaScriptObject fails with cross site communication

2009-07-29 Thread Adam T

Hi Dale,

Could be a couple of things...

1) Your asBasicComputerInfo() method takes a variable jso and you
try and return a reference to a variable json - though maybe that's
just a typo in your message?

2) Your JSON response from server doesn't appear to be an array, so
ignoring any potential typo above, your asBasicComputerInfo() could be
failing when trying to cast a simple JavaScriptObject into a JsArray
- I'd suggest either returning an array from the server, or altering
your code so you don't use a JsArray.

Also, the data in your JSON is all strings, therefore methods like
public final native int RAM() will possibly fail later in your code -
you could create a new method in the BasicComputerInfo class that does
the conversion for you, e.g. public int getRAM(){Integer.parseInt(RAM
());} and change RAM() to return the String in the JSON.

Hope some of that helps!

//Adam

On 28 Juli, 23:57, dale fortiscont...@gmail.com wrote:
 I am creating my first GWT app and have hit a snag. I suspect that the
 problem is one things below. I can see in the server logs that the
 server returns ok.

    This is the method that fails, there is no error ... that I can
 see :)
           private final native JsArrayBasicComputerInfo asBasicComputerInfo
 (JavaScriptObject jso) /*-{
             return json;
           }-*/;

 I am calling it in the handleJsonResonse  method and execution never
 makes it to the UpdateDetailPanel Method.

           public void handleJsonResponse(JavaScriptObject jso) {
                     if (jso == null) {
                       displayError(Couldn't retrieve JSON);
                       return;
                     }

                     updateDetailPanel(asBasicComputerInfo (jso));//--After 
 the
 breakpoint here it never gets to updateDetailPanel

                   }

 This is the response from the server looks like this when I get it
 from a browser.

 callback0(
 {
 LastBootTime: 7/27/2009 8:46:25 AM,
 UserName: aUser,
 OS: xp,
 OSVersion: 5.1.2600,
 BuildDate: 5/6/2008 3:18:06 PM,
 RAM: 1063329792,
 HDCapasity: 2676800,
 HDFree: 7487799296,
 NumProcessors: 1,
 PowerState: Unknown,
 Site: NA,
 Office: NA,
 IPAddress: NA,
 IPAddress: Dell Inc.,
 Model: OptiPlex GX620}

 );

 here is the BasicComputerInfo Class:

 public class BasicComputerInfo extends JavaScriptObject {

         protected BasicComputerInfo(){}

           // JSNI methods to get stock data.
           public final native String LastBootTime() /*-{ return
 this.LastBootTime; }-*/;
           public final native String UserName() /*-{ return this.UserName; }-
 */;
           public final native String OS() /*-{ return this.OS; }-*/;
           public final native String OSVersion() /*-{ return
 this.OSVersion; }-*/;
           public final native String BuildDate() /*-{ return
 this.BuildDate; }-*/;
           public final native int RAM() /*-{ return this.RAM; }-*/;
           public final native Long HDCapasity() /*-{ return
 this.HDCapasity; }-*/;
           public final native Long HDFree() /*-{ return this.HDFree; }-*/;
           public final native int NumProcessors() /*-{ return
 this.NumProcessors; }-*/;
           public final native String PowerState() /*-{ return
 this.PowerState; }-*/;
           public final native String Site() /*-{ return this.Site; }-*/;
           public final native String Office() /*-{ return this.Office; }-*/;
           public final native String IPAddress() /*-{ return
 this.IPAddress; }-*/;
           public final native String Manufacturer() /*-{ return
 this.Manufacturer; }-*/;
           public final native String Model() /*-{ return this.Model; }-*/;

 }
--~--~-~--~~~---~--~~
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: Indexed Panel

2009-07-27 Thread Adam T

Hi Rahul,

It's not a panel per se, it is an interface that a number of different
panels implement.  If a panel implements the interface, then you know
you can that you can get a widget at a particular index, count the
number of widgets on the panel, remove a widget at a particular index
and get the index of a particular widget.

There's always the JavaDoc if you need information, i.e.
http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/ui/IndexedPanel.html
.

Hope that helps.

//Adam

On 27 Juli, 17:36, Rahul coolrahul18...@gmail.com wrote:
 Hi,
 I could not find any documentation regarding this Panel
 Can someone get me started with Indexed Panel?

 Sincerely,
 Rahul Mukhedkar
--~--~-~--~~~---~--~~
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: Reading styles directly from the stylesheet?

2009-07-24 Thread Adam T

Hi Graham, there's not a directly way in GWT as yet.

As part of a project I'm doing, I've been building up an animation
library that is based on tweening between 2 styles that I've been able
to kept as open source.  You can find the library here:
http://code.google.com/p/gwt-fx/ and an example here:
http://gwtfx.adamtacy.com/EffectsExample.html  (for example, the logo
is animated from styles in a style sheet); maybe it meets your needs*

If you wanted to do it your own way, then two bits that caused me the
most headaches were:

a) understanding when the style sheet was available to you wrt the GWT
code - simplest solution I've found is to use a script tag in the
applications .gwt.xml file or in-line the style in the HTML file.
b) trying to pick up an underlying style - i.e. it was simplest to
define properties for the style I wanted to tween in both the start
and end style, rather than just in the end - i.e.  start{width: 100px;
height: 200px;} and end{width: 400px; height: 400px;}  rather than
start{width: 100px}  and end{width: 400px; height: 400px;} and assume
I could work out the start height.

Good Luck

//Adam


* the current downloadable zip file essentially requires you to put
the component you want to tween into a NEffectPanel, apply an effect
to that panel (either a built in one such as Fade, or build your own
using NMorphStyle(new Selector(Style1), new Selector(Style2));,
and fire the play() method, i.e.

NEffectPanel ePanel = new NEffectPanel();
ePanel.add(myWidget);
NMorphStyle effect = new NMorphStlye(new Selector(Style1), new
Selector(Style2));
ePanel.addEffect(effect);
effect.play();

the version in the trunk removes the need for a separate panel, so you
can just create an effect as follows:

NMorphStyle effect = NMorphStlye(myWidget.getElement(), new Selector
(Style1), new Selector(Style2));
effect.play();

On 24 Juli, 22:41, Graham J graham.j...@gmail.com wrote:
 Is there a convenient way to access a stylesheet in programmatic form?
 My intention is to have an animation, and to let another developer
 specify a 'before' style and an 'after' style in the CSS rather than
 the code (just width and height at this point), and then to have the
 animation tween between them.

 However, I can't seem to think of an effective/not-ugly way for
 getting both those styles. Is there any way to directly access a
 stylesheet? Or can anyone suggest an alternative effective way of
 handling this?
--~--~-~--~~~---~--~~
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: Suggestion: Toggle style name

2009-07-23 Thread Adam T

Célio,

GWT is of course open source, so you could easily create an issue in
the issue manager (http://code.google.com/p/google-web-toolkit/issues/
list) and submit a patch including your code below on, presumably, the
UIObject class.  It could then get discussed and perhaps included in
the main code.

(I wonder, for example, if you would also want a method that allows
you to inspect what the status of the toggle is - a sort of public
boolean widget.hasStyle(SomeStyleName) method that would return the
result of toggleStyleName, or, perhaps better and more generic,  the
result of querying the style for a particular name?)

//Adam

On 22 Juli, 19:00, Célio ccidral@gmail.com wrote:
 Eventually I find my self doing this:

         toggleStyleName = !toggleStyleName;
         if (toggleStyleName)
         {
             widget.addStyleName(SomeStyleName);
         }
         else
         {
             widget.removeStyleName(SomeStyleName);
         }

 So here goes my 2 cents: instead of manually toggling a style name, it
 could be simply:

         widget.toggleStyleName(SomeStyleName);

 jQuery actually has such a method, it's usefull, helps keep my code
 clean.
--~--~-~--~~~---~--~~
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: Selection of Widgets

2009-07-23 Thread Adam T

Hi Ewald,

I guess it selects the whole of the html once you are out of it, as
you are only preventing default on the html widget, once outside the
html widget normal browser functionality is back in play.

One way you could consider solving your issue is to have the elements
you want to link together held within another panel and have the
default events on that outer panel prevented; or you could look at
previewing the event instead (so you trap the event before anything in
your application gets to use it ) - this is what the DialogBox class
in GWT does, so you could look at that to see how to use
PreviewNativeEvent.

(alternatively, maybe the gwt-diagrams library gives the functionality
similar to what you want? (http://kolos.math.uni.lodz.pl/~balon/gwt-
diagrams-demo/pl.balon.gwt.diagramsexample.GwtDiagramsExample/
GwtDiagramsExample.html))

//Adam

On 23 Juli, 10:06, Ewald Pankratz ewald.pankr...@gmail.com wrote:
 Hi Adam
 I did something and it works partly. The text will not be selected as
 before but when I press the mouse and go out of the widget the full
 text will be selected again.
 Any idea?

 Regards,
 Ewald

 package g26v01.client;

 import com.google.gwt.dom.client.Element;
 import com.google.gwt.event.dom.client.MouseDownEvent;
 import com.google.gwt.event.dom.client.MouseDownHandler;
 import com.google.gwt.event.dom.client.MouseMoveEvent;
 import com.google.gwt.event.dom.client.MouseMoveHandler;
 import com.google.gwt.event.dom.client.MouseOutEvent;
 import com.google.gwt.event.dom.client.MouseOutHandler;
 import com.google.gwt.user.client.ui.HTML;

 public class MyHTML extends HTML {

         public MyHTML() {
                 super();
                 // TODO Auto-generated constructor stub
         }

         public MyHTML(Element element) {
                 super(element);
                 // TODO Auto-generated constructor stub
         }

         public MyHTML(String html, boolean wordWrap) {
                 super(html, wordWrap);
                 // TODO Auto-generated constructor stub
         }

         public MyHTML(String html) {

                 super(html);
                 // TODO Auto-generated constructor stub

                 MyMouseDownHandler ha = new MyMouseDownHandler();
                 this.addMouseDownHandler(ha);

                 MyMouseMoveHandler ha2 = new MyMouseMoveHandler();
                 this.addMouseMoveHandler(ha2);

                 MyMouseOutHandler ha3 = new MyMouseOutHandler();
                 this.addMouseOutHandler(ha3);

         }

         class MyMouseOutHandler implements MouseOutHandler {
                 @Override
                 public void onMouseOut(MouseOutEvent event) {
                         // TODO Auto-generated method stub
                         event.preventDefault();
                 }
         }

         class MyMouseDownHandler implements MouseDownHandler {
                 @Override
                 public void onMouseDown(MouseDownEvent event) {
                         // TODO Auto-generated method stub
                         event.preventDefault();
                 }
         }

         class MyMouseMoveHandler  implements MouseMoveHandler {
                 @Override
                 public void onMouseMove(MouseMoveEvent event) {
                         // TODO Auto-generated method stub
                         event.preventDefault();
                 }
         }

 }

 On 23 Jul., 07:56, Adam T adam.t...@gmail.com wrote:

  Hi Ewald,

  Sounds like you want to prevent the default event handling of the
  browser.  You'll need to add some event handlers to your HTML widget
  and the call the preventDefault() method in them.  For example:

                  HTML widget = new HTML();
                  widget.addMouseDownHandler(new MouseDownHandler(){
                          public void onMouseDown(MouseDownEvent event) {
                                  event.preventDefault();
                          }
                  });

  (you might get away with just handling the mouse down event, you might
  have to also handle mouse move - I can't remember without building a
  full example myself, but you get the point, hopefully).

  Regards,

  Adam

  On 22 Juli, 22:37, Ewald Pankratz ewald.pankr...@gmail.com wrote:

   Hi
   When I create a widget e.g. a HTML widget and go with the mouse over
   the widget and press the left mouse button and move the mouse
   somewhere else the widget or part of the widget will be selected. How
   can I get rid of this selection. I don't want any selection instead I
   want to draw a line from the widget to my current mouse pointer. Any
   ideas how to do that? I am a newbie.
   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

Re: Problem while loading stylesheet dynamically

2009-07-23 Thread Adam T

Hi Rick,

The last line in your native method should read:

$doc.getElementsByTagName(head)[0].appendChild(fileref);

As GWT uses $doc to refer to the pages document.  See:
http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#DevGuideJavaScriptNativeInterface

//Adam

On 23 Juli, 15:03, Rick rick4...@gmail.com wrote:
 Hi All

 I am building an application using GWT 1.6. In my application I need
 to load external stylesheet at runtime. But its not working. I am able
 to load stylesheet in an independent html file. But when I am using
 same with GWT, its not reflecting. Below is a sample code to produce
 this case. Any help/suggestion will be highly appriciated.

 StyleSheetEntryPoint.java

 package com.example.foo.client;
 import com.google.gwt.core.client.EntryPoint;
 import com.google.gwt.user.client.ui.HTML;
 import com.google.gwt.user.client.ui.RootPanel;

 public class StyleSheetEntryPoint implements EntryPoint {

         public void onModuleLoad() {
                 loadStyleSheet();
                 HTML html = new HTML(Hello);
                 html.setStyleName(sendButton);
                 RootPanel.get().add(html);
         }

         public static native void loadStyleSheet()/*-{
                 var fileref=document.createElement(link);
                 fileref.setAttribute(rel, stylesheet);
                 fileref.setAttribute(type, text/css);
                 fileref.setAttribute(href, Component.css);
                 document.getElementsByTagName(head)[0].appendChild(fileref);
         }-*/;

 }

 Component.css
         .sendButton {font-weight:bold;font-size: 16pt;}

 Following HTML is giving me expected behaviour.
 html
 head
 script type=text/javascript
 function loadCSS(){
         var fileref=document.createElement(link);
         fileref.setAttribute(rel, stylesheet);
         fileref.setAttribute(type, text/css);
         fileref.setAttribute(href, Component.css);
         document.getElementsByTagName(head)[0].appendChild(fileref);}

 /script
 /head
 body onload=loadCSS()
 DIV class=sendButtonHello/DIV
 /body
 /html

 Thanks and regards

 Rick
--~--~-~--~~~---~--~~
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: Selection of Widgets

2009-07-22 Thread Adam T

Hi Ewald,

Sounds like you want to prevent the default event handling of the
browser.  You'll need to add some event handlers to your HTML widget
and the call the preventDefault() method in them.  For example:

HTML widget = new HTML();
widget.addMouseDownHandler(new MouseDownHandler(){
public void onMouseDown(MouseDownEvent event) {
event.preventDefault();
}
});

(you might get away with just handling the mouse down event, you might
have to also handle mouse move - I can't remember without building a
full example myself, but you get the point, hopefully).

Regards,

Adam

On 22 Juli, 22:37, Ewald Pankratz ewald.pankr...@gmail.com wrote:
 Hi
 When I create a widget e.g. a HTML widget and go with the mouse over
 the widget and press the left mouse button and move the mouse
 somewhere else the widget or part of the widget will be selected. How
 can I get rid of this selection. I don't want any selection instead I
 want to draw a line from the widget to my current mouse pointer. Any
 ideas how to do that? I am a newbie.
 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: JSNI issues

2009-07-21 Thread Adam T

.perhaps you have the Javascript library in the wrong place and it
is not being loaded.  I'd still suggest you get hold of a debug tool
in your browser to see what's loaded etc as you're going to need it
when you get into trying to access the library and going further, but,
the following works for me to access the library.

1.  In my applications .gwt.xml file I have put: script src=protovis-
r2.6.js/
2.  I also have defined my module in the .gwt.xml file as follows:
module rename-to='testAA'
3.  I'm using GWT1.6, so the protovis-r2.6.js file needs to go in
within the war file, i.e. it goes in the folder /war/testAA/
4.  In my application I just create a simple JSNI method

public native JavaScriptObject getVis()/*-{
var vis = new $wnd.pv.Panel().canvas(test);
return vis;
}-*/;

5.  In my onModuleLoad I simply call the method and alert the fact
that I have an object

public void onModuleLoad() {
JavaScriptObject v =  getVis();
Window.alert(v.toString());
}

that tells me I have got a valid JavaScript object and I see no
exceptions or errors.

Hope that helps, or at least gives you some hints.

//Adam

On 21 Juli, 16:23, wsaleem wsal...@gmail.com wrote:
 I checked the link. Overlay types could surely make my life easier in
 terms of wrapping Protovis but as long as I cannot access $wnd.pv
 through JSNI, I cannot use them.

 On Jul 20, 11:28 pm, wsaleem wsal...@gmail.com wrote:

  2) is the pure JS scenario, which I trying to port to GWT using JSNI.
  I fail, though, as the very first command
        vis = new $wnd.pv.Panel().canvas(PVis);
  fails with the following JavaScript exception
        $wnd.pv has no properties
  I will see if the overlay types help. Thanks for the pointer!

  On Jul 20, 7:48 pm, Adam T adam.t...@gmail.com wrote:

   It could still be a similar thing; I'm not 100% clear what you are
   trying to do above, but it looks like your steps are:

   1) Load an external JavaScript library, e.g. protovis.js
   2) Run some other JavaScript which creates something in the DOM, e.g.
   the vis = new pv.Panel().canvas(PVis); .vis.render(); part
   3) In GWT access the rendered PVis component.

   If that's correct, then by moving the protovis.js to the .gwt.xml
   part your ensuring that the library loads before your GWT, but it is
   still possible that part (2) is executing after your GWT code, and
   hence it is not available to your GWT code when it runs.  You could
   wrap that code in it's own file and load through the script tag
   (though I'm not sure about ordering in the gwt.xl file).

   I'd also suggest you use some debugging tools (Firebug for example in
   Firefox) to look at what your code is doing, that should show you the
   scoping of pv etc.

   (though you might be better off writing a wrapper using JavaScript
   Overlay types (http://googlewebtoolkit.blogspot.com/2008/08/getting-to-
   really-know-gwt-part-2.html) that would let you merge GWT and the
   protovis library in a more natural style, than the approach you're
   taking just now)

   Good luck,

   //Adam

   On 20 Juli, 17:41, wsaleem wsal...@gmail.com wrote:

Adam, I added
    script src=protovis.js /
to the .gwt.xml.

No change!

On Jul 20, 4:24 pm, Adam T adam.t...@gmail.com wrote:

 Hi,

 It might be the case that in both cases your GWT code is loaded and
 executing before the browser has loaded your externally referenced
 JavaScript file.  To remove that possiblity, you can place the
 script tag you have in the HTML into your module's .gwt.xml
 definition, i.e.

 module
    inherits name='com.google.gwt.user.User' /
    script type=text/javascript src=protovis.js
 /module

 With this sett up, the GWT boostrap code should ensure the library
 JavaScript is loaded before your GWT code executes.

 //Adam

 On 19 Juli, 18:19, wsaleem wsal...@gmail.com wrote:

  I am not a JS developer and use it pretty much by example, so it 
  might
  be that I am missing something really basic below.

  I have come across problems using JSNI in the following 2 scenarios:

  1.
  I use Google Visualization API successfully in JS as follows:
  
  HTML file
      script type=text/javascript 
  src=http://www.google.com/jsapi;/
  script
  JS file
      google.load('visualization', '1', {'packages':['piechart']});  
  //
  == future JSNI problems occur here
      var chart = new google.visualization.LineChart
  (document.getElementById('GoogleVisChart'));
      // other JS commands to draw the chart
  **
  and then try to write a wrapper using GWT JSNI as follows:
  
  HTML file
      script type=text/javascript 
  src=http://www.google.com/jsapi;/
  script
  JAVA file
      class GChart

Re: JSNI issues

2009-07-20 Thread Adam T

Hi,

It might be the case that in both cases your GWT code is loaded and
executing before the browser has loaded your externally referenced
JavaScript file.  To remove that possiblity, you can place the
script tag you have in the HTML into your module's .gwt.xml
definition, i.e.

module
   inherits name='com.google.gwt.user.User' /
   script type=text/javascript src=protovis.js
/module

With this sett up, the GWT boostrap code should ensure the library
JavaScript is loaded before your GWT code executes.

//Adam

On 19 Juli, 18:19, wsaleem wsal...@gmail.com wrote:
 I am not a JS developer and use it pretty much by example, so it might
 be that I am missing something really basic below.

 I have come across problems using JSNI in the following 2 scenarios:

 1.
 I use Google Visualization API successfully in JS as follows:
 
 HTML file
     script type=text/javascript src=http://www.google.com/jsapi;/
 script
 JS file
     google.load('visualization', '1', {'packages':['piechart']});  //
 == future JSNI problems occur here
     var chart = new google.visualization.LineChart
 (document.getElementById('GoogleVisChart'));
     // other JS commands to draw the chart
 **
 and then try to write a wrapper using GWT JSNI as follows:
 
 HTML file
     script type=text/javascript src=http://www.google.com/jsapi;/
 script
 JAVA file
     class GChart {
       static { _init(); }
       private static native void _init() /*-{ // === ERROR at this
 function
         $wnd.google.load('visualization', '1', {'packages':
 ['piechart']});
       }-*/;

       JavaScriptObject gvis;
       public GChart( String id ) { gvis = _chart( id ); }
       private native JavaScriptObject _chart( String id ) /*-{
         return new $wnd.google.visualization.LineChart
 ($wnd.document.getElementById( id ) );
       }-*/;
       // methods to draw the chart through native functions
 **
 The GWT compiler gives the following error for the above code
 
 [ERROR] Unable to load module entry point class
 com.google.gwt.app.testGViz.client.TestGViz (see associated exception
 for details)
 java.lang.RuntimeException: Failed to invoke native method:
 @com.google.gwt.app.testGViz.client.GChart::_init() with 0 arguments.
         at com.google.gwt.dev.shell.moz.LowLevelMoz.invoke(LowLevelMoz.java:
 132)
         at com.google.gwt.dev.shell.moz.ModuleSpaceMoz.doInvoke
 (ModuleSpaceMoz.java:98)
         at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
 447)
         at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid
 (ModuleSpace.java:248)
         at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid
 (JavaScriptHost.java:107)
         at com.google.gwt.app.testGViz.client.GChart._init(GChart.java)
         at com.google.gwt.app.testGViz.client.GChart.clinit(GChart.java:7)
         at com.google.gwt.app.testGViz.client.TestGViz.onModuleLoad
 (TestGViz.java:21)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke
 (NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke
 (DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:320)
         at com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace
 (BrowserWidget.java:329)
         at com.google.gwt.dev.shell.moz.BrowserWidgetMoz.access$100
 (BrowserWidgetMoz.java:35)
         at com.google.gwt.dev.shell.moz.BrowserWidgetMoz
 $ExternalObjectImpl.gwtOnLoad(BrowserWidgetMoz.java:59)
         at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native
 Method)
         at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:
 1428)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2840)
         at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720)
         at com.google.gwt.dev.GWTShell.run(GWTShell.java:593)
         at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)
 **
 Moving the statement in the native _init function to the constructor
 does not help either. To get it to work, I have to move it out to the
 HTML file
 
 HTML file
     script type=text/javascript src=http://www.google.com/jsapi;/
 script
     script type=text/javascript
         google.load('visualization', '1', {'packages':['piechart']});
     /script
 **
 This was also suggested 
 inhttp://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
 Although this works, I do not understand why I could no do the
 google.load through JSNI.
 In the meanwhile, this is not an issue as GWT now provides its own
 wrappers for the Google Visualization API. But, I would still like to
 understand the error.

 2.
 I am trying this time to write a wrapper for another Visualization
 library, Protovis. An example

Re: why GWT hosted mode showed a blank page?

2009-07-20 Thread Adam S

I'm using IE 6, and have cleared the cache. I've done lots of
searchin' in the internet before i had written here.

I also tried to launch it on another computer, but the result was the
same.

i have my code stored on SVN server, so if anyone wise, would like to
look i'll share the address in private email.




On Jul 20, 5:36 pm, Rajeev Dayal rda...@google.com wrote:
 What version of IE are you using? Are you still running into the problem?
 Also, try the suggestion mentioned above - clear IE's cache.

 On Fri, Jul 17, 2009 at 7:42 PM, Adam S servic.a...@gmail.com wrote:

  I have similar problem. I use gwt with with smartGwt, eclipse (google
  plugin) and embeded server for hosted mode under windows.

  App isn't working under hosted mode but compiled in IE, Chrome and FF
  browers is working fine.
  That's really strange for me, because it worked fine, day earlier.
  Debuger show that compiler go entire code to .draw() method ( smartGwt
  method ) and i suspect something isn't working with injecting
  nocache.js into host html.
  But no errors are shown. Thats disturbing me for a while till now...
--~--~-~--~~~---~--~~
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: JSNI issues

2009-07-20 Thread Adam T

It could still be a similar thing; I'm not 100% clear what you are
trying to do above, but it looks like your steps are:

1) Load an external JavaScript library, e.g. protovis.js
2) Run some other JavaScript which creates something in the DOM, e.g.
the vis = new pv.Panel().canvas(PVis); .vis.render(); part
3) In GWT access the rendered PVis component.

If that's correct, then by moving the protovis.js to the .gwt.xml
part your ensuring that the library loads before your GWT, but it is
still possible that part (2) is executing after your GWT code, and
hence it is not available to your GWT code when it runs.  You could
wrap that code in it's own file and load through the script tag
(though I'm not sure about ordering in the gwt.xl file).

I'd also suggest you use some debugging tools (Firebug for example in
Firefox) to look at what your code is doing, that should show you the
scoping of pv etc.

(though you might be better off writing a wrapper using JavaScript
Overlay types (http://googlewebtoolkit.blogspot.com/2008/08/getting-to-
really-know-gwt-part-2.html) that would let you merge GWT and the
protovis library in a more natural style, than the approach you're
taking just now)

Good luck,

//Adam

On 20 Juli, 17:41, wsaleem wsal...@gmail.com wrote:
 Adam, I added
     script src=protovis.js /
 to the .gwt.xml.

 No change!

 On Jul 20, 4:24 pm, Adam T adam.t...@gmail.com wrote:

  Hi,

  It might be the case that in both cases your GWT code is loaded and
  executing before the browser has loaded your externally referenced
  JavaScript file.  To remove that possiblity, you can place the
  script tag you have in the HTML into your module's .gwt.xml
  definition, i.e.

  module
     inherits name='com.google.gwt.user.User' /
     script type=text/javascript src=protovis.js
  /module

  With this sett up, the GWT boostrap code should ensure the library
  JavaScript is loaded before your GWT code executes.

  //Adam

  On 19 Juli, 18:19, wsaleem wsal...@gmail.com wrote:

   I am not a JS developer and use it pretty much by example, so it might
   be that I am missing something really basic below.

   I have come across problems using JSNI in the following 2 scenarios:

   1.
   I use Google Visualization API successfully in JS as follows:
   
   HTML file
       script type=text/javascript src=http://www.google.com/jsapi;/
   script
   JS file
       google.load('visualization', '1', {'packages':['piechart']});  //
   == future JSNI problems occur here
       var chart = new google.visualization.LineChart
   (document.getElementById('GoogleVisChart'));
       // other JS commands to draw the chart
   **
   and then try to write a wrapper using GWT JSNI as follows:
   
   HTML file
       script type=text/javascript src=http://www.google.com/jsapi;/
   script
   JAVA file
       class GChart {
         static { _init(); }
         private static native void _init() /*-{ // === ERROR at this
   function
           $wnd.google.load('visualization', '1', {'packages':
   ['piechart']});
         }-*/;

         JavaScriptObject gvis;
         public GChart( String id ) { gvis = _chart( id ); }
         private native JavaScriptObject _chart( String id ) /*-{
           return new $wnd.google.visualization.LineChart
   ($wnd.document.getElementById( id ) );
         }-*/;
         // methods to draw the chart through native functions
   **
   The GWT compiler gives the following error for the above code
   
   [ERROR] Unable to load module entry point class
   com.google.gwt.app.testGViz.client.TestGViz (see associated exception
   for details)
   java.lang.RuntimeException: Failed to invoke native method:
   @com.google.gwt.app.testGViz.client.GChart::_init() with 0 arguments.
           at 
   com.google.gwt.dev.shell.moz.LowLevelMoz.invoke(LowLevelMoz.java:
   132)
           at com.google.gwt.dev.shell.moz.ModuleSpaceMoz.doInvoke
   (ModuleSpaceMoz.java:98)
           at 
   com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
   447)
           at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid
   (ModuleSpace.java:248)
           at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid
   (JavaScriptHost.java:107)
           at com.google.gwt.app.testGViz.client.GChart._init(GChart.java)
           at 
   com.google.gwt.app.testGViz.client.GChart.clinit(GChart.java:7)
           at com.google.gwt.app.testGViz.client.TestGViz.onModuleLoad
   (TestGViz.java:21)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke
   (NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke
   (DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at 
   com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:320

Re: why GWT hosted mode showed a blank page?

2009-07-17 Thread Adam S

I have similar problem. I use gwt with with smartGwt, eclipse (google
plugin) and embeded server for hosted mode under windows.

App isn't working under hosted mode but compiled in IE, Chrome and FF
browers is working fine.
That's really strange for me, because it worked fine, day earlier.
Debuger show that compiler go entire code to .draw() method ( smartGwt
method ) and i suspect something isn't working with injecting
nocache.js into host html.
But no errors are shown. Thats disturbing me for a while till now...

--~--~-~--~~~---~--~~
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: Fade animation with IE opacity doesn't work....

2009-07-15 Thread Adam T

Hi Ed,

IE is always going to throw you some interesting challenges.  The one
you've hit here relates to IE only applying filters if an element has
position.  You've achieved that by directly setting the element's
height; another, perhaps more common way is to set the zoom style
property to 1, i.e. element.getStyle().setProperty(zoom, 1);

You might also want to note that your code will not work in IE8 in
strict mode as Microsoft are finally beginning to edge towards
something resembling standards compliance, and the filter CSS
property is replaced with the more correct -ms-filter (eg. see:
http://acidmartin.wordpress.com/2008/11/28/setting-opacity-and-other-filters-in-internet-explorer-8/)

//Adam

On 16 Juli, 00:42, Ed post2edb...@hotmail.com wrote:
 He,
 The following occurred against 1.6.4.

 In hosted mode (IE 7 I quess as I have IE7 installed) I found out that
 when I set the opacity in a FadeInAnimation.update(double) class that
 is a subclass of Animation, it has no effect until I first set some
 other style property...

 Example:
 In the  FadeInAnimation.update method, I do something like (for IE in
 hosted mode):
 -
 update(double progress) {
  getElement().getStyle().setProperty(filter, alpha(opacity=  +
 value * 100 + ));}

 

 I tried the above in several ways, with the following simple test:
 ---
 FlowPanel main = new FlowPanel();
 RootPanel.get().add(main);
 HTML html = new HTML(some textbrmore textbr);
 main.add(html);
 FadeInAnimation an = new FadeInAnimation(html.getElement());
 an.run(1);
 ---

 The html widget kept on showing up immediately, until I set another
 style like the height in the above update statement before setting the
 opactity, like:
 
 update(double progress) {
  this.element.getStyle().setProperty(height, 200px); // NEW
  this.element.getStyle().setProperty(filter, alpha(opacity=  +
 value * 100 + ));}

 -

 And all of a sudden it worked... Appearantly the opacity statement
 doesn't trigger a css refresh.
 Anybody an idea what's happening here? Doe anybody else experience
 this as well, or can try this ?

 BTW: I used a clean html page without any style definitions to make
 sure that not some strange style was causing this.

 Ed
--~--~-~--~~~---~--~~
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: Does GWT 1.7 support Class.getSimpleName()?

2009-07-15 Thread Adam T

GWT supports the following: 
http://code.google.com/webtoolkit/doc/1.6/RefJreEmulation.html

//Adam

On 15 Juli, 19:00, Pandaman p4nda...@gmail.com wrote:
 Does GWT 1.7 support Class.getSimpleName()?
--~--~-~--~~~---~--~~
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: Edit CSS Attributes

2009-07-07 Thread Adam T

Something like the following should work:

Image img = new Image(SomeImage.png);
img.getElement().setPropertyString(left, 100px);

//Adam

On 7 Juli, 14:12, stephan17 stephanbe...@gmx.at wrote:
 Hi,

 In GWT i have an image and I want to edit a css attribute like left
 or top. The attributes should have dynamic values, so
 setStylePrimaryName() is not good.

 What should I do?

 thx
--~--~-~--~~~---~--~~
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 know when a Widget is fully loaded....

2009-06-28 Thread Adam T

You can generally hook into when a widget is ready in the DOM by
overriding it's onLoad() method.

However, if you have Images you need to do more work as whilst the DOM
aspect of the Image widget may be ready in DOM it may not have size as
the actual image is not downloaded yet - your resizing is most likely
working a second time around as images are also already cached and
available immediately.

I can think of two options of the top of my head, there are probably
more

a) use LoadHandlers on your Image(s) these will tell you when the
Image has loaded and then you can trigger your resize (however, it's
not 100% perfect with IE and the current version of GWT -
http://code.google.com/p/google-web-toolkit/issues/detail?id=863q=ie%20loadlistener)
b) enforce Image size using CSS either directly on the Image, or put
the Image widget in another container (SimplePanel, for example) and
set Image to 100% and size of SimplePanel to what you require through
CSS
c) do what you're doing with a timer until approach in (a) is fixed in
gwt

I wonder though if you can't achieve what you want just by using
percentages in Style Sheet

Hope that helps

//Adam


On 27 Juni, 16:42, Sean slough...@gmail.com wrote:
 I'm having trouble with pictures loading fully to know a widgets full
 size. I have my main website component as a Composite. It's got quite
 a few pictures, including one large one. I place this main component
 on an Absolute Panel. I have a Resize Listener to figure out how big
 the Client Window is, and if it's larger then the main component, make
 the Absolute Panel as big as the Client window and put the main
 component in the middle of the ABS.

 It works perfectly when the page is cached, however, if it's not, the
 size of the main component can be anywhere from 0-300-to1044(it's full
 size) depending on what's loaded the first time I try to arrange them
 all together.

 How can I, besides using a timer with an arbitrary time, know when all
 of the main component's sub-components are loaded to know when to call
 the resize function?

 Thank you!
--~--~-~--~~~---~--~~
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: UiBinder in trunk or incubator?

2009-06-05 Thread Adam T

Hi Ricardo - see this:
http://groups.google.se/group/Google-Web-Toolkit-Contributors/browse_thread/thread/4539b203c2aba4ad?hl=sv#

//Adam

On 5 Juni, 15:07, rocha.po...@gmail.com rocha.po...@gmail.com
wrote:
 Hi all.

 I'm trying to use the UiBinder, i've searched this and the contrib
 group a bit, I get it that it's not in 1.6 and it's not certain it
 will go in 2.0, but is it available somewhere?

 I'm already using the trunk for other features, but can't find the
 UiBinder stuff in there. Also in the incubator there's a reference to
 it, but no documentation apart from the proposal wiki (also checked
 out the source for the incubator and can't find any classes matching
 this).

 Am i missing something or is it really not available at all for the
 moment?

 Thanks in advance,
   Ricardo
--~--~-~--~~~---~--~~
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: $doc.selection is undefined in GWT

2009-06-04 Thread Adam T

Hi,

Seems there is something strange going on with search - I answered
your question and can't see the reply either!

The $ before doc is due to GWT loading into an IFrame - GWT ensures
that $doc points to the window's document object (you can read more on
that in the JSNI documentation from GWT home page).

You don't mention which operating system you use, but I believe
document.selection.createRange() only works on IE and not other
browsers, so I guess yuo are developing on Windows, which uses IE as
hosted mode browser and then testing on other browsers in web mode.
Just do a google search for cross-browser
document.selection.createRange() to see how you would do it for Opera,
Safari, Chrom, Firefox etc.

//Adam


On 4 Juni, 02:05, bhomass bhom...@gmail.com wrote:
 I have a native method which uses
 $doc.selection.createRange()

 I am not sure why the $ before doc. I simply copied it from some
 sample code. this method works find when in hosted mode. but after
 compile and called directly from a browser I get the $doc.selection is
 undefined error.

 any one knows what's wrong with this?

 sorry if this is second posting. I posted this question a few days
 ago, but it does not come up in search.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



  1   2   >