Re: Image element will hang test execution

2011-02-25 Thread Alex D.
Greg, thanks for your reply.
I've given a test example above that hangs... I don't understand what
you mean by all those steps :). Just copy-paste the code above and run
it as a gwt testcase.

On Feb 24, 5:48 pm, Greg Dougherty dougherty.greg...@mayo.edu wrote:
 Right before this object's constructor, try to create the image object
 on its own.  If that doesn't work, try to create the image as the
 first think your app does.  If that does work, you've got something in
 your app breaking the image.  If that doesn't work, you have a bad
 image.  If they both work, then you've got a problem somewhere in your
 object, so try allocating the Image at different points of the
 constructor, until you've found the command that breaks the Image
 loading process.

 You can also try a different Image, to see if the SPECIFIC Image is
 the problem there, or if any image is a problem.

 IOW, at this point we have no idea whether or not it's a GWT problem,
 and (since you haven't given us the code necessary to replicate the
 problem) noway to help you if it IS a GWT problem.

 Greg

 On Feb 24, 5:54 am, Alex D. alex.dobjans...@gmail.com wrote:







  Still no idea guys?

  On Feb 23, 6:19 pm, Alex D. alex.dobjans...@gmail.com wrote:

   Hi,
   The code below will not finish (gets hanged in the Image constructor):

   public class ATest extends GWTTestCase {
          // . init code  //

           public void testShouldNotHang () {
                   // Create an empty image
                   final Image img = new Image();
           }

   }

   The hang happens on Image:237 =
   Event.sinkEvents(image.getElement(), Event.ONLOAD);

   Now, I'm not trying to test the Image constructor, but I have complex
   components that cannot be modified for testing purposes, and the
   happen to have Image inside. I have searched but I couldn't find any
   answer ... nobody else had 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: How to make GWT pages search engine friendly?

2011-02-25 Thread Salvador Diaz
The following link should give you a generic overview of the requirements to 
make a crawlable ajax application (crawlable by google that is, AFAIK no 
other search engine supports this) : 
http://code.google.com/web/ajaxcrawling/docs/getting-started.html

From there, you should be able to google for something GWT-specific

HTH

Salvador

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



Outofmemory when call findxxx many times Requestfactory+JPA

2011-02-25 Thread Mike.G
hi all:
  I'm not sure i'm using requestfactory+JPA the right way even through i 
followed the example(expense) step by step. the memory at server side 
increase everytime i query some data from Entityi use Mysql, after several 
times, the server heap overflow. 

server side:
public static ListScenario findScenarioEntriesByProduct2( Long 
productId, int startIndex, int maxCount )
{
//get all Scenarios from startIndex to startIndex+maxCount
EntityManager em = entityManager();
ListScenario resultList = new ArrayListScenario();
try
{
Query q = em.createQuery( select o from Scenario o where 
o.product.id = :productid );
q.setParameter( productid, productId );
q.setFirstResult( startIndex );
q.setMaxResults( maxCount );
@SuppressWarnings( unchecked )
ListScenario rl = q.getResultList();


rl.size();
resultList.addAll( rl );
return resultList;
}
catch( Exception ex )
{
logger.error( exception occur!, ex );
}
finally
{
em.close();
}
return Collections.emptyList();
}

As you can see the code is quite simple and i can't figure out where's the 
problem. Could anyone help? 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.



Disclosure Panel ListEditor?

2011-02-25 Thread Milan Cvejic
Hi Everyone,
I am wondering how to properly make a list of widgets that have their
editor, and allowing that list to be collapsable. Also as i want to
create that list to have editors, is it proper way to create class
ListDisclosurePanel and implement HasData interface?

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: GWT 2.2 on linux: Designer not wokring

2011-02-25 Thread Filipe Sousa
I'm having exactly the same problem. The problem started to show up after I 
updated java to version 1.6.0_24

$ java -version
java version 1.6.0_24
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)

$ cat /etc/redhat-release 
Fedora release 14 (Laughlin)

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



can we print page without open print dialog

2011-02-25 Thread Neel
Hi

Is it possible  to print page without open Print Dialog.

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



Deploying on Google App Engine with GWT Designer

2011-02-25 Thread csaffi
Hi everybody,
I'm using GWT Designer + Google Plugin for Eclipse, and I'd like to
design the GUI with the designer and deploy the resulting app on
Google App Engine. I'm fighting from days with this problem: if I
deploy on GAE an application developed using the GWT Designer, it does
NOT run.

This is what I did:
- create a new project with wizard New Web Application Project, with
package com.myproject
- check both Use Google Web Toolkit and Use Google App Engine
- create a new GWT module, with package com.myproject.myapp
- deploy on GAE with id myapplication
- try running on http://myapplication.appspot.com, does NOT work

The only way for running it on GAE is creating a new project with GWT
project sample code and then modifying it.

Please help me! Thank you very much 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: GWT CellTree update nodes on the fly

2011-02-25 Thread Thomas Lefort
I have the exact same problem, albeit for any browser in fact. As well
keeping record of data providers is not sustainable for me. I am
looking into opening and closing the parent node to refresh but at
this stage I am not sure if it is completely possible.

On Feb 16, 7:05 pm, Lakshitha Ranasinghe lakshitha@gmail.com
wrote:
 I have recently used GWT CellTree widget to populate an XML data in my
 project, The tree allows user to add, edit, move up/down tree nodes
 and finally update the actual XML file, I have managed to implement
 this functionality by storing ListDataProvider instances  which are
 used in the tree.
 if user removes a node I remove it from both corresponding data
 provider instance and XML tree. Then it updates the list dynamically
 and reflects the changes in the tree. I used this approach because I
 did not find any other alternative way to do dynamic tree manipulation
 in GWT cell tree.

 but I encountered a problem with node removal functionality in IE (7 
 8). after removing a node and try to collapse or open any node in the
 tree GWT throws a runtime 'firstChild' is null or not an object
 error and cannot do any operation on the tree after that.

 Can anyone faced this problem? please let me know if there are any
 workaround found, I am using GWT 2.1.1

 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.



RequestFactory entity values updated before merge called

2011-02-25 Thread opn
Hello everybody!

I've got a problem:
I'm using Hibernate version 3.6 and RequestFactory together to manage
all the database work. Until now i did not run into any problems.
But now I've got the case that I want to update an entity (merge), but
need access to the old values of the entity in the update method.
I realized, surprisingly, that when i do a find(entityToUpdate.getId)
within the update method i already get the new values, although i did
not call flush, merge, persist or anything like that.

Does the RF something when i'm sending a proxy over the wire to
explain this behaviour or is it because of my Hibernate settings.

I've got to admit that i am not an expert in Hibernate, but until now
i could do everything i need to.

Thanks for any advice!

Regards

-- 
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: RequestFactory entity values updated before merge called

2011-02-25 Thread opn
Sorry! Using GWT 2.1

-- 
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: Stack Layout Panel - strange layout problem after switching tabs!

2011-02-25 Thread Magnus
Dear Philippe,

yeah this was the reason and the workaround works as hell! Many
thanks! This saved my fascination for building GWT apps! :-)

But some questions remain:

Why does this only affect IE7? I first thought that it was a bug
originated in the browser specific generated code. But I could
reproduce it in hosted and web mode, but only in IE7, not in FF. So,
where exactly is the bug?

It seems that it only affects DockLayoutPanel inside a
StackLayoutPanel. I remember that the bug was not present when I had
other Panels inside my StackLayoutPanel.

For now, I just implemented a forceLayout method in MyStackLayoutPanel
as follows:
-
public class MyStackLayoutPanel extends StackLayoutPanel
{
...
 public void forceLayout ()
 {
IteratorWidget itr = iterator ();

  while (itr.hasNext ())
  {
   Widget w = itr.next ();

   if (w instanceof DockLayoutPanel)
   {
((DockLayoutPanel) w).forceLayout();
   }
  }
 }
-

As you can see, I only handle children that are DockLayoutPanels,
because I know that my problems are solved with it. However, how would
a more generic workaround look like?

And last but not least: Will this be fixed in future GWT versions?
(This is not the first IE7-specific piece of code in my project...)

Again, a thousand thanks!

Magnus

/* Chess players, who want to join a small but growing community,
please e-mail me! */

-- 
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: Outofmemory when call findxxx many times Requestfactory+JPA

2011-02-25 Thread Jack
Just a short note: You can remove the @SuppressWarnings annotation when 
using em.createQuery(query, Scenario.class)

Your server code seems ok. We do not use RequestFactory yet but we are 
sometimes fetching a lot of entities on our server (Glassfish 3.1 + bundled 
Eclipselink 2.2) and haven't seen any problems yet. For each request to our 
server we create a new EntityManager instance and when we are done we call 
em.clear() and em.close(). Our EntityManagerFactory is pretty much a 
singleton and will be created once for each new customer doing the first 
server request. We also deactivated the EntityManagerFactory cache (second 
level cache). For testing purposes you can clear the second level cache in 
your code by calling emf.getCache().evictAll().

Maybe you can create a rpc remote service and call your findXXX method via 
the service to see if its a RequestFactory bug or if its a JPA related 
problem.

-- 
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: Deferred Binding, Gin in library/widget ?

2011-02-25 Thread Uemit
@Brian: 
I agree, after thinking a little bit more about that problem and taking your 
comments into account I think that deferred binding might not be really 
suitable for my use case.

I also agree that the best approach is to set the datasource in the 
constructor thus enabling users to use Dependency injection if they want. 
But do I have to annotate the constructor with @Inject in order to allow 
for DI ? (because in that case I would create a dependency to gin and guice 
in my standalone library which i want to avoid). 


-- 
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: Deferred Binding, Gin in library/widget ?

2011-02-25 Thread Uemit
Hi Phillipe

Thanks for the interesting comments. I am still trying to fully understand 
dependency injection and sometimes I am not sure that I have ;-) 
I agree that dependency injection is more powerful and flexible compared to 
deferred binding. 

So the three cases you described apply when I want to mix deferred binding 
with DI? 
After thinking a little bit about my problem and taking Biran's previous 
comments into account I decided against deferred binding and for designing 
the API so it can be used with DI (dependency injection). 
I haven't really decided whether the url is going to be an application wide 
resources or if it can be set to different values on an instance base. But 
does it really make a difference in regards to DI? 

In both cases I would try to inject the URL as a constructor injection? (I 
could use annotated dependency injection for different URLs in the app I 
guess?)

The HttpDataSource class is a special implementation of the DataSouce and 
doesn't necessary mix with different datasource implementations. For example 
I might add a HTML5 LocalStoreDataSource which doesn't need an URL 
ressources but might take something else in the constructor.  

In your opinion what is the best DI setup for this use-case?
And do I have to annotate my DataSource constructors with @Inject if I want 
to enable DI? This would create a dependency to GIN/GUICE in my library 
which I want to avoid. 

thanks in advance 

Uemit


-- 
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: is it possible to use an SLF4J adapter in GWT to wrap java.util.logging ?

2011-02-25 Thread Thomas Broyer


On Friday, February 25, 2011 4:04:12 AM UTC+1, zixzigma wrote:

 is it possible to use an SL4J adapter in GWT to wrap java.util.logging ?


I started working on something like that at work, and we will eventually 
open source it.

For now, I can use Slf4J in my client code. In DevMode, it will use whatever 
Slf4j implementation it finds in the classpath (which means that it will 
write to the console, not to the DevMode window), and it compiles out in 
prod mode.
I've been thinking recently about just wrapping java.util.logging (and using 
jul-to-slf4j.jar to format my logs using logback) instead of my default, 
emulated NOPLoggerFactory (used in web mode only), but we actually don't use 
it that much in client code (and overall), so I didn't invest any more time 
in it for now.

There's also a project on GitHub: https://github.com/derjan1982/slf4gwt more 
like gwt-log than JUL integration in GWT though, IIRC.
 

 I would like to be able to use logging.properties file to define 
 formatting,
 which I believe is not possible with java.util.logging.


I believe you can (at least in DevMode I mean, or when using a 
RemoteLogHandler), though you might have to make your own Formatter class 
(or pick a third-party one).

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



how do i use google font api on uibinder/gwt?

2011-02-25 Thread dadada
hi all,

question as above.

uibinder doesn't accept  ui: rel=stylesheet type=text/css
href=http://fonts.googleapis.com/css?family=Tangerine;

/bryan

-- 
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: can we print page without open print dialog

2011-02-25 Thread Michael.Krog
Not easily

On 25 Feb., 10:53, Neel neel.3.ka...@gmail.com wrote:
 Hi

 Is it possible  to print page without open Print Dialog.

-- 
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: RequestFactory entity values updated before merge called

2011-02-25 Thread Juan Pablo Gardella
JPA provides two modes of flushing query objects namely AUTO and COMMIT
(which are defined in FlushModeType Enumeration). If the AUTO mode is set on
the Query object which is the default one, then any changes made to entity
objects will be reflected the very next time when a select query is made.
That means that the persistence engine must make sure to update all the
states of the entity objects which will affect the results of a SELECT
query.
Then when you do a find(entityToUpdate.getId) probably hibernate flush your
changes.

Juan
2011/2/25 opn open...@gmx.net

 Hello everybody!

 I've got a problem:
 I'm using Hibernate version 3.6 and RequestFactory together to manage
 all the database work. Until now i did not run into any problems.
 But now I've got the case that I want to update an entity (merge), but
 need access to the old values of the entity in the update method.
 I realized, surprisingly, that when i do a find(entityToUpdate.getId)
 within the update method i already get the new values, although i did
 not call flush, merge, persist or anything like that.

 Does the RF something when i'm sending a proxy over the wire to
 explain this behaviour or is it because of my Hibernate settings.

 I've got to admit that i am not an expert in Hibernate, but until now
 i could do everything i need to.

 Thanks for any advice!

 Regards

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



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



Re: Spring GWT Integration

2011-02-25 Thread Ezequiel Palumbo


On 24 feb, 16:48, lascarayf lascar...@gmail.com wrote:
 Why GWT team do not make a OFFICIAL GWT SPRING INTEGRATION
 DOCUMENT??

Like the other guys well said, there's a lot of ways to do that job,
and it also depends of your needs. I have coded a few lines in order
to use spring beans as RemoteService implementations, using Spring
MVC. - http://code.google.com/p/gwt-spring-integration/. But we all
expect an official approach of course; it's more a Spring thing
(because we talk about integration) rather than GWT thing.
Salud!

Ezequiel.-

-- 
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: Spring GWT Integration

2011-02-25 Thread Juan Pablo Gardella
I integrate Spring and gwt-dispatch using this approach:

http://pgt.de/2009/09/16/use-spring-with-gwt-dispatch/

And here is the sample
 http://pgt.de/2009/12/09/sample-gwt-dispath-project/

Juan

2011/2/25 Ezequiel Palumbo ehpalu...@gmail.com



 On 24 feb, 16:48, lascarayf lascar...@gmail.com wrote:
  Why GWT team do not make a OFFICIAL GWT SPRING INTEGRATION
  DOCUMENT??

 Like the other guys well said, there's a lot of ways to do that job,
 and it also depends of your needs. I have coded a few lines in order
 to use spring beans as RemoteService implementations, using Spring
 MVC. - http://code.google.com/p/gwt-spring-integration/. But we all
 expect an official approach of course; it's more a Spring thing
 (because we talk about integration) rather than GWT thing.
 Salud!

 Ezequiel.-

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



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



Re: is it possible to use an SLF4J adapter in GWT to wrap java.util.logging ?

2011-02-25 Thread Richard Allen
I'm also currently working on an emulation of org.slf4j.Logger and 
org.slf4j.LoggerFactory. The emulated LoggerFactory class simply calls 
java.util.logging.Logger.getLogger(String) to create a logger, and the 
emulation of org.slf4j.Logger that is returned from LoggerFactory wraps the 
java.util.logging.Logger. I didn't bother emulating the Marker methods 
because we aren't using them. The org.slf4j.Logger emulation is loosely 
based on org.slf4j.impl.JDK14LoggerAdapter.

-- 
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: Spring GWT Integration

2011-02-25 Thread Nicolas Antoniazzi
Just because gin/guice is better than spring ;)

2011/2/24 lascarayf lascar...@gmail.com

 Why GWT team do not make a OFFICIAL GWT SPRING INTEGRATION
 DOCUMENT??

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



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



Re: CellTable: Unable to combine CSS-selectors

2011-02-25 Thread Julian
Thank you John, Brian and zakness. All of you were spot on! 

I was confusing descendant selectors and multiple selectors. I guess the 
reason I was having such a hard time figuring out this one was because the 
parent TR had many of the same styles applied. This gave the illusion that 
the way I was trying to use the selectors was working in some cases but not 
in others.

Removing the space and thus turning it into a multi class selector solved 
the problem:

.cellTableFirstColumn.cellTableKeyboardSelectedRowCell {
  background-color: fuchsia !important;
}

-- 
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 2.2 on linux: Designer not wokring

2011-02-25 Thread Eric Clayberg
See the discussion and suggestions here...

http://code.google.com/p/google-web-toolkit/issues/detail?id=6029

-- 
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 mvp sessions

2011-02-25 Thread Thomas Broyer
Of course! I didn't mean to imply that you shouldn't secure your app, but 
honestly if someone succeeds in hijacking your session, then he could 
possibly do it before loading the host page, so that your GWT app will run 
with the hijacked session, and the auth token in the request payload won't 
be of any help.

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



SV: Problem to set height in ScrollPanel in gwt 2.1.1

2011-02-25 Thread oskar.kaver
Does anyone have any thoughts?

/O

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



CellTable: Prevent styling of selected rows

2011-02-25 Thread Julian
Hi awesome people

I'm trying to control which of the columns in a CellTable will trigger a 
SelectionChangeEvent by implementing CellPreviewEvent.Handler. 

The problem is that even if I cancel the SelectionChangeEvent, the 
CSS-styles for *selected rows* are still applied (
.cellTableKeyboardSelectedRow), which means it looks like the row i being 
selected to the user. Is there any way to change this behavior, or is there 
some other way of controlling which columns trigger selection? I have a 
CellTable with several button columns and several text columns, and I want 
to disable selection on some of them.

The code below creates a CellTable with to columns. When you click on one of 
the columns an alert-box pops up, and when you click other the nothing pops 
up, but the row looks like it's being selected.


CellTableMyProxy cellTable = new CellTableMyProxy(50);

final NoSelectionModelMyProxy selectionModel = new 
NoSelectionModelMyProxy();

selectionModel.addSelectionChangeHandler(new SelectionChangeEvent.Handler() 
{
public void onSelectionChange(SelectionChangeEvent event) {
Object selected = selectionModel.getLastSelectedObject();
if (selected != null) {
Window.alert(Selected something);
}
}
});

CellPreviewEvent.HandlerMyProxy selectionEventManager = new 
CellPreviewEvent.HandlerMyProxy() {
@Override
public void onCellPreview(CellPreviewEventMyProxy event) {
if (event.getColumn() == 0) {
event.setCanceled(true);
}
else {
// Handle default selection.
NativeEvent nativeEvent = event.getNativeEvent();
String type = nativeEvent.getType();
if (click.equals(type)) {
if (nativeEvent.getCtrlKey() || nativeEvent.getMetaKey()) {
// Toggle selection on ctrl+click.
selectionModel.setSelected(event.getValue(), 
!selectionModel.isSelected(event.getValue()));
}
else {
// Select on click.
selectionModel.setSelected(event.getValue(), true);
}
}
else if (keyup.equals(type)) {
// Toggle selection on space.
int keyCode = nativeEvent.getKeyCode();
if (keyCode == 32) {
selectionModel.setSelected(event.getValue(), 
!selectionModel.isSelected(event.getValue()));
}
}
}
}
};

cellTable.addColumn(new TextColumnMyProxy() {
@Override
public String getValue(MyProxy object) {
return object.getTitle();
}
});

cellTable.addColumn(new TextColumnMyProxy() {
@Override
public String getValue(MyProxy object) {
return object.getId();
}
});


-- 
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: can we print page without open print dialog

2011-02-25 Thread Greg Dougherty
Would you want some random web page to be able to start your printer
going, printing out whatever the writer of that web page wants,
without any warning to you, or any way to stop it?

No?

Then no, you can't print from a web application running in a properly
functioning web browser w/o first putting up a print dialog that lets
teh user control what you're doing.  :-)

Greg

On Feb 25, 3:53 am, Neel neel.3.ka...@gmail.com wrote:
 Hi

 Is it possible  to print page without open Print Dialog.

-- 
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 implement Enter Key Submit Form in GWT

2011-02-25 Thread El Mentecato Mayor
If you want to do it when a PasswordTextBox is on focus for example
(this is from my sign-in page):

passwordTextBox.addKeyPressHandler(new KeyPressHandler() {
 public void onKeyPress(KeyPressEvent event) {
if (((int)event.getCharCode()) == 13) {  // User hit
Enter key
   submitForm();
}
 }
});

On Feb 24, 4:55 pm, Néstor Boscán nesto...@gmail.com wrote:
 Hi

 I need to simulate the Enter Key submit form in GWT where hay hit the
 enter key and the form is submitted. Any ideas on how to acomplish this?

 Regards,

 Néstor Boscán

-- 
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 implement Enter Key Submit Form in GWT

2011-02-25 Thread Greg Dougherty
Search for EnterButton in this group.  At the top is a class
everyone should have.  Below that is a discussion of using sinkEvents
to get key down events from Widgets that normally don't pass them.

Greg

On Feb 25, 7:59 am, El Mentecato Mayor rogelio.flo...@gmail.com
wrote:
 If you want to do it when a PasswordTextBox is on focus for example
 (this is from my sign-in page):

 passwordTextBox.addKeyPressHandler(new KeyPressHandler() {
          public void onKeyPress(KeyPressEvent event) {
             if (((int)event.getCharCode()) == 13) {  // User hit
 Enter key
                submitForm();
             }
          }

 });

 On Feb 24, 4:55 pm, Néstor Boscán nesto...@gmail.com wrote:

  Hi

  I need to simulate the Enter Key submit form in GWT where hay hit the
  enter key and the form is submitted. Any ideas on how to acomplish this?

  Regards,

  Néstor Boscán

-- 
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 mvp sessions

2011-02-25 Thread Jeff Schwartz
Hi Thomas,

On Fri, Feb 25, 2011 at 8:49 AM, Thomas Broyer t.bro...@gmail.com wrote:

 Of course! I didn't mean to imply that you shouldn't secure your app, but
 honestly if someone succeeds in hijacking your session, then he could
 possibly do it before loading the host page, so that your GWT app will run
 with the hijacked session, and the auth token in the request payload won't
 be of any help.


First off, the hacker couldn't have access to the local cookie on the user's
machine unless the user has been infected with a virus. If the user's
computer has been infected with a virus that can some how target local
cookies then this user has a lot more to worry about than someone hijacking
their session. So let's rule that scenario out.

Secondly, if the hacker could somehow manage to hijack your session -
meaning they've some how coerced the request to use a different value for
the session id) and do it before loading the host page it wouldn't make a
difference if every Servlet method that is called does the following:
1) checks each payload for an auth token (a value equal to the sid stored as
a cookie on the client) and
2) compares the auth token's value to the HttpSession's session id value. If
they aren't the same then throw a custom exception and catch it on the
client and authenticate the user (either form-based auth or some other
method such as Google Account, OpenId, et. al)

Not only does the above protect against session hijacking but it also solves
the how do I know if the session is timed out question. So you solve two
use cases in one implementation which isn't bad.

You can even use filters to do this eliminating the need for every Servlet
method to implement this logic.

It's a simple, viable solution to an attack that is quite prevalent these
days. It's implementation on both the client and server are trivial yet (I
would venture to guess) is regrettably ignored by many if not most
developers (to which I am not limiting to GWT developers).

Of course, having a secure transport protocol (ie SSL) is the ultimate
solution but not every site or every page on a site requires SSL yet every
page that communicates with the server on every site requires a proactive
defense against these kinds of attacks.


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




-- 
*Jeff Schwartz*
http://jefftschwartz.appspot.com/
http://www.linkedin.com/in/jefftschwartz
follow me on twitter: @jefftschwartz

-- 
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: Spring GWT Integration

2011-02-25 Thread nacho
1+

-- 
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: Outofmemory when call findxxx many times Requestfactory+JPA

2011-02-25 Thread Mike.G
Hi:
Thank you for your answer Jack, i followed your note and tried, but seem it 
did not behave well, the server memory soon increased and finally eat up the 
physical memory. i'm using Hibernate JPA 3.6 and Jetty.
About using GWT RPC, i'll try it later.
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.



How AsyncCallback works? - RPC services

2011-02-25 Thread dreamer
Hi,

Not sure how the AsyncCallback works in GWT. Could somebody share
please?

1) Will it create a thread and polls the server ?
 or
2) Will servers register's client IP and when result is available
makes a fresh TCP/IP connection to client
and calls client.

Within this call back, will server calls a method on skeleton
(server side stubs) for remote call ?
   or
It just makes a tcp call and client handles calling the Async
method ?


-- 
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: Number format #

2011-02-25 Thread PARAG
Thanks Yegor.

On Feb 24, 9:19 pm, Yegor yegor.jba...@gmail.com wrote:
 Hi, PARAG,

 Whether 0 is the correct result or not is debatable. After all, an
 empty string is not a number at all, therefore for number zero, the
 zero symbol itself is not a leading zero.

 Perhaps the documentation should clarify that only leading zeros of
 the whole portion and trailing zeros of the fraction portion of the
 number will show as absent, not just any zero symbol.

 As for solution for your problem, just put an if statement:

 if (num == 0) {
   return ;} else {

   return formatter.format(num);

 }

 Yegor

 On Feb 24, 1:45 am, PARAG paragbchaudh...@gmail.com wrote:

  Hi,

  I have number format defined as #. For value 0 I am expecting it to be
  empty but it shows 0 value. Is any thing I can do here to get the
  correct behavior?

  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: is it possible to use an SLF4J adapter in GWT to wrap java.util.logging ?

2011-02-25 Thread Palo G.
May I ask why do you need something like that? Basically everything
what you need is inside of gwt-user package.

Let's look what is actually SLF4J. It's just an interface for many
logging frameworks [java.lang, apache.logger , etc]. So when you have
plenty of libraries using different logging frameworks and want to
collect all these logs, you will use SLF4J for agregating these logs
to same format.

Now let's look what is inside gwt. There is pack with loggers to
firebug, jsconsole, system.out for dev mode, logger with remoteservice
to send logs to server. When you instantiate logger and make a log,
enabled frameworks are used. I agree thet format of log is horrible,
but inheriting this loggers and setting up own log formatter solve
this problem.

SO you just need familiar use of gwt logging. Make a class
LoggerFactory.getLogger ane one Logger class , make a mapping from
java.lang levels to SLF4J logger . - 2 classes and 1 class per log
channel.

Make it yourself.





On Feb 25, 12:50 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On Friday, February 25, 2011 4:04:12 AM UTC+1, zixzigma wrote:

  is it possible to use an SL4J adapter in GWT to wrap java.util.logging ?

 I started working on something like that at work, and we will eventually
 open source it.

 For now, I can use Slf4J in my client code. In DevMode, it will use whatever
 Slf4j implementation it finds in the classpath (which means that it will
 write to the console, not to the DevMode window), and it compiles out in
 prod mode.
 I've been thinking recently about just wrapping java.util.logging (and using
 jul-to-slf4j.jar to format my logs using logback) instead of my default,
 emulated NOPLoggerFactory (used in web mode only), but we actually don't use
 it that much in client code (and overall), so I didn't invest any more time
 in it for now.

 There's also a project on GitHub:https://github.com/derjan1982/slf4gwtmore
 like gwt-log than JUL integration in GWT though, IIRC.

  I would like to be able to use logging.properties file to define
  formatting,
  which I believe is not possible with java.util.logging.

 I believe you can (at least in DevMode I mean, or when using a
 RemoteLogHandler), though you might have to make your own Formatter class
 (or pick a third-party one).

-- 
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 AsyncCallback works? - RPC services

2011-02-25 Thread Jeff Schwartz
RPC uses Ajax so understanding how Ajax works will answer all your
questions.

On Fri, Feb 25, 2011 at 9:49 AM, dreamer venugopal.vasire...@gmail.comwrote:

 Hi,

 Not sure how the AsyncCallback works in GWT. Could somebody share
 please?

 1) Will it create a thread and polls the server ?
 or
 2) Will servers register's client IP and when result is available
 makes a fresh TCP/IP connection to client
and calls client.

Within this call back, will server calls a method on skeleton
 (server side stubs) for remote call ?
   or
It just makes a tcp call and client handles calling the Async
 method ?


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




-- 
*Jeff Schwartz*
http://jefftschwartz.appspot.com/
http://www.linkedin.com/in/jefftschwartz
follow me on twitter: @jefftschwartz

-- 
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: Spring GWT Integration

2011-02-25 Thread Ashton Thomas
I have a simple app with spring integration for some reference:
https://github.com/ashtonthomas/beans

important places:
- war/WEB-INF/ spring-servlet.xml  web.xml
- src/appContext
- src/com/billy/bob/server/request/ GwtRpc files etc

GWT/Spring != Rails. You're in a whole new ballgame. There will be
times when you have to just figure things out..

On Feb 25, 9:28 am, nacho vela.igna...@gmail.com wrote:
 1+

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



Very strange long assignment issue

2011-02-25 Thread shahid
I have the following piece of test code in my application (using GWT
2.1.0):

Date expiry = new Date();
long expiryTime  = expiry.getTime();
expiryTime = expiryTime +  (1000 * 60 * 60 * 24 * 90); 
// 90 days

When I debug this code in Eclipse and I break at line 3, I can see
that the value of expiryTime is 1298645926486. However after adding
the 90 days milisecs to it, the result works out as 1297831991894
(less than before the addition). I tried to just test the following
line:

long test = 1000;

and when I check the value of test in debug, it is negative. The same
happens to the expiry time. What is going on ?

-- 
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: GPE auto-complete only partially working for UiBinder tags

2011-02-25 Thread Sekhar Ravinutala
If you want to make UiBinder Template Editor the default, choose it through 
Open With-Other rather than directly.

-- 
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 mvp sessions

2011-02-25 Thread veenatic
Does this mean that auth token in the request payload is not of much use?
Also, I want to understand when i have the token set in the requestfactory 
payload, how to retrieve from the payload when a service call is made by 
requestfactory since i will have to validate the token for every service 
request.

On Friday, February 25, 2011 3:49:32 PM UTC+2, Thomas Broyer wrote:

 Of course! I didn't mean to imply that you shouldn't secure your app, but 
 honestly if someone succeeds in hijacking your session, then he could 
 possibly do it before loading the host page, so that your GWT app will run 
 with the hijacked session, and the auth token in the request payload won't 
 be of any help.

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



Redirecting to jsp

2011-02-25 Thread Deepak Singh
Hi,

In my celltable, i have one button column.
In the fieldAdapter(), i am opening a new window using Window.open( url,
_blank, );
It opens a new window withe the url using the http get() method. I want to
open this window with http post() method. How can i acheive this ?
I think it is not possible at the client side using java script, so i though
it to redirect to a jsp as follows

HttpServletRequest req = getThreadLocalRequest();
HttpServletResponse res = getThreadLocalResponse();
res.addHeader(Referer, http://www.domain.com;);
try {
res.sendRedirect(param);
} catch (IOException e) {
e.printStackTrace();
}


but this does not work. Nothing happens when i click the button.

How it is possible to redirect to a jsp page from gwt?


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.



Own GWT library without web.xml

2011-02-25 Thread klemensr
Dear all,

I have two projects in my workspace - a master project and a
specialised project which uses the master project as a library. Both
projects are maven based. The master project is using jar packaging so
that I can use this lib in the specialised project. The master project
includes gwt views and RPC definitions (servlets, ...).

I get the error message The web.xml file does not exist in the
master project.
Right, I don't have a web.xml file in the master project because it is
in the specialised project.

Which settings do I  have to make to get rid of the error message?

I am using GWT 2.1.1 at the moment - I was using GWT 2.0.0 before and
it was working fine.

Thanks for your help!

-- 
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 mvp sessions

2011-02-25 Thread Jeff Schwartz
On Fri, Feb 25, 2011 at 10:14 AM, veenatic praveen.bit...@gmail.com wrote:

 Does this mean that auth token in the request payload is not of much use?
 Also, I want to understand when i have the token set in the requestfactory
 payload, how to retrieve from the payload when a service call is made by
 requestfactory since i will have to validate the token for every service
 request.


 On Friday, February 25, 2011 3:49:32 PM UTC+2, Thomas Broyer wrote:

 Of course! I didn't mean to imply that you shouldn't secure your app, but
 honestly if someone succeeds in hijacking your session, then he could
 possibly do it before loading the host page, so that your GWT app will run
 with the hijacked session, and the auth token in the request payload won't
 be of any help.


To the contrary - it means that every request to the server should include
it and that ever request should validate it against the HttpSession's
session id value and respond accordingly.

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




-- 
*Jeff Schwartz*
http://jefftschwartz.appspot.com/
http://www.linkedin.com/in/jefftschwartz
follow me on twitter: @jefftschwartz

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



CellTable + FlexTable

2011-02-25 Thread Douglas
Hello guys,

I'm having a problem with the widgets CellTable and FlexTable (or Grid). 

I made my layout using a FlexTable. The first row is the header and into the 
second row I'm trying to put a CellTable, but the CellTable isn't rendering. 


I've tested putting the CellTable into the RootPanel and it worked.

Am I doing something wrong ?

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.



CellTable extension to TreeTable

2011-02-25 Thread timothyja
Can anyone tell me if an upcoming version of CellTable will include
TreeTable like features (expanding of entire rows including multiple
columns ) I read the survey on the upcoming CellTable features and
this was mentioned in there.

I have read multiple posts asking for solutions to this but there
doesnt seem to be anything out there.

I'm converting a program from SWT to GWT and I really need this
functionality, I find it hard to believe there is not already a
solution for this.

I've only been playing with GWT for a month now and really dont want
to have to write my own widget any help would be greatly appreciated.
(And I don't want to use Smart GWT)

Cheers,
Tim

-- 
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 make GWT pages search engine friendly?

2011-02-25 Thread sunil S
ho r u

On 2/25/11, Jan Mostert j...@mycee.com wrote:
 hashbang and hijax

 Hashbang will only work on Google though.

 --
 Jan Vladimir Mostert
 BEngSci

 MyCee Technologies


 On Fri, Feb 25, 2011 at 6:13 AM, Kurtt kurtt@gmail.com wrote:

 I want to add automatically hidden sub-menus in my page, and do this
 with GWT, thus they are actually embedded in the js files. How to make
 the links in the sub-menus visible to the search engine?

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



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




-- 
*
*
**
**
*
sunil*
*

   9860412073
*

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



How to implement custom find methods in GWT+roo scaffolding app

2011-02-25 Thread Zed
Hellow everyone, I started to deal with GWT+roo scaffolding ap and
found the idea very cool. Thank you guys!
But I found it hard for me to understanf how to implement custom
find methods like for example -  findAllEmployeesByName.
I looked all the documentations and it's written there that I can add
this method to Entity object itself like this:

 @RooJavaBean
 @RooToString
 @RooEntity
public class Employee {

.

@NotNull
private String displayName;

@SuppressWarnings(unchecked)
public static ListEmployee findAllEmployeesByName(String name){
return entityManager().createQuery(select ... from Employee
o).getResultList();
}
}
I added it but nothing happend. No code generation started.
I see all finder methods are in Aspects which are generated by Roo
itself and I can't put my code there.
Can you guys give me some hint please.

With respect
Andrew Efremov

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



Can I set some piece of code to be ignored by GWT compiler

2011-02-25 Thread lalit
I know that certain methods in my class are never going to be used in
client side. They are specific to server. Can I somehow notify the GWT
compiler to ignore these code fragments either at class level or
method level.

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.



PNGs breaking the build on Linux (GWT 2.1.0)

2011-02-25 Thread Nick
Hi,
I've got a GWT 2.1 project that has some transparent 8-bit PNGs as
resources. I'm developing on Mac OS X Snow Leopard, and building/
packaging my project (with Maven) works fine. But when I upload it to
our TeamCity CI box (Linux, Ubuntu 9.01) with the same pom.xml, same
local Maven repo, etc., I get the following error on build (see
below). It's complaining about some PNGs that have the following
attributes (from ImageMagick 'identify' command):

filter-att.png PNG 25x50 25x50+0+0 8-bit DirectClass 2.74KiB 0.000u
0:00.000

Any ideas? Is there an OS incompatibility or is there a GWT library
that I might be missing? Both versions of GWT are the same (2.1.0).


[ERROR] Unrecognized image file format
[INFO][ERROR] Generator
'com.google.gwt.resources.rebind.context.InlineClientBundleGenerator'
threw an exception while rebinding
'com.peek.qcom.war.client.FilterBarViewImpl_BinderImpl_GenBundle'
java.lang.NullPointerException
at com.google.gwt.resources.rg.ImageResourceGenerator
$BundledImage.addImage(ImageResourceGenerator.java:97)
at
com.google.gwt.resources.rg.ImageResourceGenerator.prepare(ImageResourceGenerator.java:
542)
at
com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.initAndPrepare(AbstractClientBundleGenerator.java:
628)
at
com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.initAndPrepare(AbstractClientBundleGenerator.java:
654)
at
com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.generate(AbstractClientBundleGenerator.java:
243)
at
com.google.gwt.dev.javac.StandardGeneratorContext.runGenerator(StandardGeneratorContext.java:
427)
at
com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:
39)
at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.tryRebind(StandardRebindOracle.java:115)
at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.rebind(StandardRebindOracle.java:58)
at
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
161)
at
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
150)
at com.google.gwt.dev.Precompile
$DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(Precompile.java:
345)
at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:
106)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.process(AbstractCompiler.java:254)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:
444)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.compile(AbstractCompiler.java:175)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.compile(AbstractCompiler.java:288)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access
$400(AbstractCompiler.java:145)
at
com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:
632)
at
com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:
124)
at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:
54)
at
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:
484)
at
com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:
32)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:545)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:466)
at com.google.gwt.dev.Compiler.run(Compiler.java:205)
at com.google.gwt.dev.Compiler.run(Compiler.java:177)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:149)
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
87)
at
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:
81)
at com.google.gwt.dev.Compiler.main(Compiler.java:156)

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



Recaptcha on GWT - Improved

2011-02-25 Thread agks mehx
Part 1:
RootPanel rootPanel = RootPanel.get();
this.html_panel_id = HTMLPanel.createUniqueId();
html_panel = new HTMLPanel(div id=\ + this.html_panel_id + \/
div);
rootPanel.add(html_panel);

Part 2:
public native void recaptcha_show() /*-{
var recaptcha_container_id =
th...@com.example.www.index.client.Index::html_panel_id;
$wnd.Recaptcha.create(YOUR_RECAPTCHA_PUBLIC_KEY,
recaptcha_container_id, {theme: clean, callback:
$wnd.Recaptcha.focus_response_field});
}-*/;

Part 3:
public native String recaptcha_get_challenge() /*-{
return $wnd.Recaptcha.get_challenge();
}-*/;
public native String recaptcha_get_response() /*-{
return $wnd.Recaptcha.get_response();
}-*/;

Part 4, 5, etc.:
Left as exercise for the reader

-- 
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: Own GWT library without web.xml

2011-02-25 Thread Jeff Schwartz
Are you importing the library into your web.xml file?

On Fri, Feb 25, 2011 at 10:32 AM, klemensr klem...@reinthaler.info wrote:

 Dear all,

 I have two projects in my workspace - a master project and a
 specialised project which uses the master project as a library. Both
 projects are maven based. The master project is using jar packaging so
 that I can use this lib in the specialised project. The master project
 includes gwt views and RPC definitions (servlets, ...).

 I get the error message The web.xml file does not exist in the
 master project.
 Right, I don't have a web.xml file in the master project because it is
 in the specialised project.

 Which settings do I  have to make to get rid of the error message?

 I am using GWT 2.1.1 at the moment - I was using GWT 2.0.0 before and
 it was working fine.

 Thanks for your help!

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




-- 
*Jeff Schwartz*
http://jefftschwartz.appspot.com/
http://www.linkedin.com/in/jefftschwartz
follow me on twitter: @jefftschwartz

-- 
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: Spring GWT Integration

2011-02-25 Thread Kayode Odeyemi
I think it is flexible enough to be used without an official support. Still
depends on how you want to use it.

As a rule of thumb, I normally see it like this:


   - If your architecture is built around SpringMVC such that your view is
   handled by Spring, then use Spring
   - If your architecture is towards the MVP approach (view is handled by
   GWT), then use GWT.
   - Obviously, you can use both in a project, your view determines whether
   you should use Spring or GWT.
   - Use GWTController for GWT view and SpringRoo controller for JSP(x)
   view. This is because GWT can handle view on it's own due to its Layout
   Panels, DOM Manipulation features, event management, Drag and drop features,
   fantastic cross-browser CSS support and data presentation model. When you
   create a controller using SpringRoo, it's best you make use of SpringRoo
   controller. Why? It does every thing for you. Creates the jsp(x) files for
   each of the controller overrides that requires a view.

HTH

On Fri, Feb 25, 2011 at 3:00 PM, Ashton Thomas ash...@acrinta.com wrote:

 I have a simple app with spring integration for some reference:
 https://github.com/ashtonthomas/beans

 important places:
 - war/WEB-INF/ spring-servlet.xml  web.xml
 - src/appContext
 - src/com/billy/bob/server/request/ GwtRpc files etc

 GWT/Spring != Rails. You're in a whole new ballgame. There will be
 times when you have to just figure things out..

 On Feb 25, 9:28 am, nacho vela.igna...@gmail.com wrote:
  1+

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




-- 
Odeyemi 'Kayode O.

B.Sc(Hons) Econs, Application Developer  Systems Engineer (Sun Certified
Professional),
Oracle Certified Associate, Solaris Systems Administrator, Drupal Developer

Website: http://sinati.com http://www.sinati.com
Socialize with me: http://profile.to/charyorde, http://twitter.com/charyorde,

http://www.google.com/profiles/dreyemi
Skype:drecute

-- 
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: Own GWT library without web.xml

2011-02-25 Thread Jack
Go to project properties - Google - Web Application and uncheck This 
project has a war directory.




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



Deploy application on Oracle HTTP Server

2011-02-25 Thread harshyadav
Hi all,

Is it possible to deploy a GWT (RPC-based) application to Oracle HTTP
Server.

I would really appreciate the if someone could point me to proper
documentation or enlist the steps for the same.

Thanks,
Harsh Yadav

-- 
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: Upadate Data of CellList

2011-02-25 Thread Andreas

 If you're only adding to the end of the list, then keep track of how
 many items you've already added, and call updateRowData (prevNumAdded
 - 1, newData);


Unfortunately this works only on initial filling. The second time I
call this I've got nullPointers in my cell.render method for the first
items added. This is another thing I dont understand: why is the
render method call for my whole list and not only for the one that
I've added in the updateRowData method and why the first 10 are null.

Also I dont understand which method forces the list to re render?

 If you're changing things / adding things in the middle, you can do
 all sorts of complicated things to figure out where the changes are,
 and only give your CellList the changes, but you're probably better
 off simply replacing everything and letting CellList worry about it.

Draw the whole list is not that good cause you have a short delay
where the list disappears. And there must be  a way to get it work, as
shown in the showcase example.



-- 
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: Can I set some piece of code to be ignored by GWT compiler

2011-02-25 Thread Ben Imp
There is GWT.isClient().  I'm not certain if the compiler will ignore
the unused chunks, however.

-Ben

On Feb 25, 12:22 am, lalit lalit.bh...@gmail.com wrote:
 I know that certain methods in my class are never going to be used in
 client side. They are specific to server. Can I somehow notify the GWT
 compiler to ignore these code fragments either at class level or
 method level.

 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: Can I set some piece of code to be ignored by GWT compiler

2011-02-25 Thread Jeff Chimene
On Thu, Feb 24, 2011 at 11:22 PM, lalit lalit.bh...@gmail.com wrote:

 I know that certain methods in my class are never going to be used in
 client side. They are specific to server. Can I somehow notify the GWT
 compiler to ignore these code fragments either at class level or
 method level.

 thanks in advance


Have you seen
http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html#DevGuideDirectoriesPackageConventions

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



Selectively preserving CSS class references in *.ui.xml

2011-02-25 Thread Andrew n marshall


  
  
I have a UiBinder managed Composite widget with a SplitLayoutPanel
at top. I'm trying to style the .gwt-SplitLayoutPanel-HDragger like
so...

  ui:style type='com.example.ContentPanel.MyStyle'
 .gwt-SplitLayoutPanel-HDragger {
  background-color: #FFA65E;
  cursor: e-resize;
 }
/ui:style

but GWT renames the style during compilation thinking it is an
'internal' style.

Similarly, I might declare a style class to expose for external
reference, yet still provide a default style. I wouldn't want class
in that default style to be renamed.

How do I prevent GWT from renaming some of these class references in
the style sheet?


Anm
  




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




Making a cross site request to a service returning back XML

2011-02-25 Thread ialexei
I have a legacy middleware application that returns back XML.
It has lots of methods and is doing well in a stable production
environment.
I would like my GWT app (running on a different domain) to consume
this data with minimal changes to the middleware.

The way I see it I have these 2 options
1. Modify my middleware to return back JSONP instead of XML with an
optional argument for return type.
2. Proxy calls to the middleware through a GWT servlet

#1 would mean a change to every remote method call into equivalent
JSONP.
#2 would mean an additional hop

-- 
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: Can I set some piece of code to be ignored by GWT compiler

2011-02-25 Thread Anm
Any code that is only run server-side should be outside the packages
declare for compilation in your .gwt.xml file.

For example, if you have data structure classes shared by both client
and server, you can put them in a .shared package (and update
your .gwt.xml to compile this package).  However, your database
methods to store and retrieve these classes should be located
elsewhere, outside your .client and .shared packages.

Follow Jeff's link for more details.

-- 
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: Making a cross site request to a service returning back XML

2011-02-25 Thread ialexei
My question was, Is there an option #3 ?

On Feb 25, 11:28 am, ialexei iale...@gmail.com wrote:
 I have a legacy middleware application that returns back XML.
 It has lots of methods and is doing well in a stable production
 environment.
 I would like my GWT app (running on a different domain) to consume
 this data with minimal changes to the middleware.

 The way I see it I have these 2 options
 1. Modify my middleware to return back JSONP instead of XML with an
 optional argument for return type.
 2. Proxy calls to the middleware through a GWT servlet

 #1 would mean a change to every remote method call into equivalent
 JSONP.
 #2 would mean an additional hop

-- 
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: migrate GWT 2.1.1 to 2.2 error

2011-02-25 Thread David Chandler
See

http://groups.google.com/group/google-web-toolkit/msg/a5afd58dfa6f4763
http://groups.google.com/group/google-web-toolkit/msg/3b945fe28bbea3b8

To resolve the GWT Designer error, you can either install the latest GWT
Designer from the beta channel as described in Eric's message above or
manually copy the gwt-dev jar as I described.

/dmc

On Thu, Feb 24, 2011 at 7:41 PM, Jason Sheedy mobileja...@gmail.com wrote:

 It appears this is not really a workable solution. After adding a
 dependency to another GWT module in my pom I started getting the
 following error:

 java.lang.NoSuchFieldError:
  reportUnusedDeclaredThrownExceptionIncludeDocCommentReference

 Apparently this is caused quote: when there are multiple versions of
 the JDT
 CompilerOptions class on the classpath, one of which comes from
 gwt-dev.jar: org/eclipse/jdt/internal/compiler/impl/
 CompilerOptions.class

 I'm still looking for a solution to this problem if anyone has any
 other ideas.

 Cheers,

 Jason

 On Feb 21, 4:20 pm, Jason Sheedy mobileja...@gmail.com wrote:
  Hi Alex,
  Just to confirm ... I had the same problem and your suggested fix to
  add gwt-dev to the pom fixed it for me.
 
  Cheers,
 
  Jason
 
  On Feb 15, 6:34 pm, F. Lancer flance...@gmail.com wrote:
 
 
 
 
 
 
 
   Hi, Brice.
 
   Try  to add 'gwt-dev-2.2.0.jar' to your project and rebuild.
 
   pom.xml:
   dependency
   groupIdcom.google.gwt/groupId
   artifactIdgwt-dev/artifactId
   version2.2.0/version
   typejar/type
   scopecompile/scope
   /dependency
 
   You will have [WARNING] Don't declare gwt-dev as a project
   dependency. This may introduce complex dependency conflicts but you
   project will be built.Probably :)
 
   Regards,
 
   Alex.
 
   On Feb 15, 8:46 am, Brice Beaumesnil skalim...@gmail.com wrote:
 
Hello, i just try GWT 2.2 on my project, i just change my POM file to
 use
version 2.2 and when i try to compile i have this error :
 
Loading inherited module 'com.google.gwt.user.User'
[INFO]Loading inherited module
 'com.google.gwt.user.RemoteService'
[INFO]   [ERROR] Unexpected error while processing XML
[INFO] java.lang.NoClassDefFoundError:
 com/google/gwt/core/ext/GeneratorExt
[INFO] at java.lang.ClassLoader.defineClass1(Native Method)
[INFO] at
 java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
[INFO] at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
[INFO] at
   
 java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
[INFO] at
 java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
[INFO] at
 java.net.URLClassLoader.access$000(URLClassLoader.java:58)
[INFO] at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
[INFO] at java.security.AccessController.doPrivileged(Native
 Method)
[INFO] at
 java.net.URLClassLoader.findClass(URLClassLoader.java:190)
[INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
[INFO] at
 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
[INFO] at
   
 com.google.gwt.dev.cfg.ModuleDefSchema$ClassAttrCvt.convertToArg(ModuleDefS
 ­chema.java:778)
[INFO] at
   
 com.google.gwt.dev.util.xml.HandlerArgs.convertToArg(HandlerArgs.java:64)
[INFO] at
   
 com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:22
 ­1)
[INFO] at
   
 com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement(ReflectivePa
 ­rser.java:274)
...
 
Idid'nt have any problem with older version of 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.




-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

-- 
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 mvp sessions

2011-02-25 Thread Thomas Broyer


On Friday, February 25, 2011 3:21:18 PM UTC+1, Jeff wrote:

 Hi Thomas,

 On Fri, Feb 25, 2011 at 8:49 AM, Thomas Broyer t.br...@gmail.com wrote:

 Of course! I didn't mean to imply that you shouldn't secure your app, but 
 honestly if someone succeeds in hijacking your session, then he could 
 possibly do it before loading the host page, so that your GWT app will run 
 with the hijacked session, and the auth token in the request payload won't 
 be of any help. 


 First off, the hacker couldn't have access to the local cookie on the 
 user's machine unless the user has been infected with a virus. If the user's 
 computer has been infected with a virus that can some how target local 
 cookies then this user has a lot more to worry about than someone hijacking 
 their session. So let's rule that scenario out.


I can setup an web page at attacker.appspot.com that sets a cookie with 
Domain=.appspot.com, and it'll target every appspot.com app out there. If 
victim.appspot.com uses its own authentication mechanism and its own 
cookies, I can then easily set a cookie to a user's browser visiting 
attacker.appspot.com and redirect it to victim.appspot.com, and he would 
then be automatically authenticated with my own session (session fixation 
attack).
 

 Secondly, if the hacker could somehow manage to hijack your session - 
 meaning they've some how coerced the request to use a different value for 
 the session id) and do it before loading the host page it wouldn't make a 
 difference if every Servlet method that is called does the following:
 1) checks each payload for an auth token (a value equal to the sid stored 
 as a cookie on the client) and
 2) compares the auth token's value to the HttpSession's session id value. 
 If they aren't the same then throw a custom exception and catch it on the 
 client and authenticate the user (either form-based auth or some other 
 method such as Google Account, OpenId, et. al)


But if the auth token is initialized from the cookie (or somehow attached to 
the authenticated user) and the attacker managed to set the cookie value on 
behalf of the webapp (or at least do a session fixation attack), then those 
two checks won't detect it.

-- 
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: Selectively preserving CSS class references in *.ui.xml

2011-02-25 Thread Thomas Broyer
@external .gwt-SplitLayoutPanel-HDragger;

.gwt-SplitLayoutPanel-HDragger { ... }

See: 
http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html#External_and_legacy_scopes

-- 
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: Making a cross site request to a service returning back XML

2011-02-25 Thread Jeff Chimene
On Fri, Feb 25, 2011 at 9:28 AM, ialexei iale...@gmail.com wrote:

 I have a legacy middleware application that returns back XML.
 It has lots of methods and is doing well in a stable production
 environment.
 I would like my GWT app (running on a different domain) to consume
 this data with minimal changes to the middleware.

 The way I see it I have these 2 options
 1. Modify my middleware to return back JSONP instead of XML with an
 optional argument for return type.
 2. Proxy calls to the middleware through a GWT servlet

 #1 would mean a change to every remote method call into equivalent
 JSONP.
 #2 would mean an additional hop


GWT is Javascript executing in a browser context. Just as, for example,
Firefox can download and render an XML file, so too can your app. I don't
know the mechanics of the request, but it sounds like it's a CGI contract
(as opposed to Java RPC): your middleware app will set the response MIME
type to text/XML, your response handler will receive the response, if the
status is HTTP 200, it will parse the response via the browser.

You then navigate the resulting DOM tree and extract the relevant
tags/attributes/content.

hth,
jec

-- 
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: Deferred Binding, Gin in library/widget ?

2011-02-25 Thread Philippe Beaudoin


I haven't really decided whether the url is going to be an application wide 
resources or if it can be set to different values on an instance base. But 
does it really make a difference in regards to DI? 

The difference is that if you provide the url on an instance basis than your 
creation mechanism has to be aware of that url. In other words, all your 
 DataSource-derived classes need to take a URL at creation time. (They could 
ignore it if they don't need it, but it's a code smell.)

If the URL is an app-wide resource, then you can create both 
StandardDataSource and HttpDataSource without specifying a URL so they are 
effectively the same.

If you have a limited number of URLs to different resources, an option might 
be to extend HttpDataSource with, say:
  TwitterDataSource
  FlickrDataSource
  ...

These DataSource can then have a parameter-less constructor.

Cheers,

Philippe

-- 
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: Feedback Requested: Preview of new GWT Style Theme

2011-02-25 Thread John LaBanca
We've updated the theme based on some of the feedback.  The TabPanel header
background color is now gray instead of blue, and we added rounded corners
to buttons and tabs for browsers that support the border-radius CSS
attribute.

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


On Wed, Feb 23, 2011 at 2:19 AM, George Moschovitis 
george.moschovi...@gmail.com wrote:

 For example, the look and feel of the Google Groups app is pretty neat, why
 not try to grab their widgets?


 exactly, the theme of Google Groups would make an excellent default
 theme...

 -g.

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


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



Re: gwt mvp sessions

2011-02-25 Thread Jeff Schwartz
You are talking about using request cookies so of course the scenario you
describe might be possible. Everyone knows they are vulnerable and hence
their ease of hijacking. The right way to do it is not using request cookies
at all on the server because they cannot be trusted - the auth token must be
delivered to the server as part of the payload and it must never be read
from a request cookie.

On Fri, Feb 25, 2011 at 11:38 AM, Thomas Broyer t.bro...@gmail.com wrote:



 On Friday, February 25, 2011 3:21:18 PM UTC+1, Jeff wrote:

 Hi Thomas,


 On Fri, Feb 25, 2011 at 8:49 AM, Thomas Broyer t.br...@gmail.com wrote:

 Of course! I didn't mean to imply that you shouldn't secure your app, but
 honestly if someone succeeds in hijacking your session, then he could
 possibly do it before loading the host page, so that your GWT app will run
 with the hijacked session, and the auth token in the request payload won't
 be of any help.


 First off, the hacker couldn't have access to the local cookie on the
 user's machine unless the user has been infected with a virus. If the user's
 computer has been infected with a virus that can some how target local
 cookies then this user has a lot more to worry about than someone hijacking
 their session. So let's rule that scenario out.


 I can setup an web page at attacker.appspot.com that sets a cookie with
 Domain=.appspot.com, and it'll target every appspot.com app out there. If
 victim.appspot.com uses its own authentication mechanism and its own
 cookies, I can then easily set a cookie to a user's browser visiting
 attacker.appspot.com and redirect it to victim.appspot.com, and he would
 then be automatically authenticated with my own session (session fixation
 attack).


 Secondly, if the hacker could somehow manage to hijack your session -
 meaning they've some how coerced the request to use a different value for
 the session id) and do it before loading the host page it wouldn't make a
 difference if every Servlet method that is called does the following:
 1) checks each payload for an auth token (a value equal to the sid stored
 as a cookie on the client) and
 2) compares the auth token's value to the HttpSession's session id value.
 If they aren't the same then throw a custom exception and catch it on the
 client and authenticate the user (either form-based auth or some other
 method such as Google Account, OpenId, et. al)


 But if the auth token is initialized from the cookie (or somehow attached
 to the authenticated user) and the attacker managed to set the cookie value
 on behalf of the webapp (or at least do a session fixation attack), then
 those two checks won't detect it.

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




-- 
*Jeff Schwartz*
http://jefftschwartz.appspot.com/
http://www.linkedin.com/in/jefftschwartz
follow me on twitter: @jefftschwartz

-- 
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 mvp sessions

2011-02-25 Thread Thomas Broyer
You contradict yourself (compare the HttpSession's ID with the auth token 
–the HttpSession is maintained by a cookie, whose value generally is the 
session's ID– vs. do not send the auth token in a cookie), but that's not 
the problem.

The problem is: how are you initializing the auth token on the client side, 
and how you associate it with the user on the server-side? The client and 
server have to share some knowledge at some point, and if you have use form 
based authentication on another web page (i.e. your app's host page is 
protected and cannot be accessed without being authenticated), then the only 
way (not accurate, but that's how 99.999% of auth is done, because the 
alternative comes with a UX penalty) to transfer the authentication from 
the login page to the app's page is to use either a cookie or pass a unique 
token in the URL, both of which can be hijacked.

-- 
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: Very strange long assignment issue

2011-02-25 Thread Hilco Wijbenga
On 25 February 2011 15:06, shahid shahidza...@gmail.com wrote:
 I have the following piece of test code in my application (using GWT
 2.1.0):

                        Date expiry = new Date();
                        long expiryTime  = expiry.getTime();
                        expiryTime = expiryTime +  (1000 * 60 * 60 * 24 * 90); 
 // 90 days

This statement is your problem. The (1000 * ... * 90) part is still
using int arithmetic and results in -813934592. Change it to something
like

expiryTime = expiryTime +  (1000L * 60 * 60 * 24 * 90); // 90 days
[Note that it's now 1000L instead of 1000.]

Now the whole (1000L * ... * 90) will use long arithmetic instead of
int and you'll get the correct result.

-- 
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 mvp sessions

2011-02-25 Thread Jeff Schwartz
On Fri, Feb 25, 2011 at 12:30 PM, Thomas Broyer t.bro...@gmail.com wrote:

 You contradict yourself (compare the HttpSession's ID with the auth token
 –the HttpSession is maintained by a cookie, whose value generally is the
 session's ID– vs. do not send the auth token in a cookie), but that's not
 the problem.


Actually I am not contradicting myself, Thomas. You just failed to
understand!


 The problem is: how are you initializing the auth token on the client side,
 and how you associate it with the user on the server-side? The client and
 server have to share some knowledge at some point, and if you have use form
 based authentication on another web page (i.e. your app's host page is
 protected and cannot be accessed without being authenticated), then the only
 way (not accurate, but that's how 99.999% of auth is done, because the
 alternative comes with a UX penalty) to transfer the authentication from
 the login page to the app's page is to use either a cookie or pass a unique
 token in the URL, both of which can be hijacked.


If the user is authenticated the authentication process should then send
down the HttpSession id as part of the payload back to the client. The
client then stores the session id it receives as part of the payload from
the server as a local cookie. Encryption can even be applied on the server
for extra security as it's value has no real meaning to the client, only
that it needs to include it in each payload to the server.

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




-- 
*Jeff Schwartz*
http://jefftschwartz.appspot.com/
http://www.linkedin.com/in/jefftschwartz
follow me on twitter: @jefftschwartz

-- 
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: Very strange long assignment issue

2011-02-25 Thread shahid
Thanks Hilco.

On Feb 25, 5:33 pm, Hilco Wijbenga hilco.wijbe...@gmail.com wrote:
 On 25 February 2011 15:06, shahid shahidza...@gmail.com wrote:

  I have the following piece of test code in my application (using GWT
  2.1.0):

                         Date expiry = new Date();
                         long expiryTime  = expiry.getTime();
                         expiryTime = expiryTime +  (1000 * 60 * 60 * 24 * 
  90); // 90 days

 This statement is your problem. The (1000 * ... * 90) part is still
 using int arithmetic and results in -813934592. Change it to something
 like

 expiryTime = expiryTime +  (1000L * 60 * 60 * 24 * 90); // 90 days
 [Note that it's now 1000L instead of 1000.]

 Now the whole (1000L * ... * 90) will use long arithmetic instead of
 int and you'll get the correct result.

-- 
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 mvp sessions

2011-02-25 Thread Thomas Broyer


On Friday, February 25, 2011 6:39:40 PM UTC+1, Jeff wrote:



 On Fri, Feb 25, 2011 at 12:30 PM, Thomas Broyer t.br...@gmail.com wrote:

 You contradict yourself (compare the HttpSession's ID with the auth token 
 –the HttpSession is maintained by a cookie, whose value generally is the 
 session's ID– vs. do not send the auth token in a cookie), but that's not 
 the problem.


 Actually I am not contradicting myself, Thomas. You just failed to 
 understand!


And the other way around! ;-)

The problem is: how are you initializing the auth token on the client side, 
 and how you associate it with the user on the server-side? The client and 
 server have to share some knowledge at some point, and if you have use form 
 based authentication on another web page (i.e. your app's host page is 
 protected and cannot be accessed without being authenticated), then the only 
 way (not accurate, but that's how 99.999% of auth is done, because the 
 alternative comes with a UX penalty) to transfer the authentication from 
 the login page to the app's page is to use either a cookie or pass a unique 
 token in the URL, both of which can be hijacked.


 If the user is authenticated the authentication process should then send 
 down the HttpSession id as part of the payload back to the client. The 
 client then stores the session id it receives as part of the payload from 
 the server as a local cookie.


This is where you fail to understand me: you make the assumption that the 
authentication process takes place, while I'm talking about bypassing it 
with a session-fixation attack.

One possible scenario (easily mitigated through the use of your own domain 
name):
*Attacker*: authenticates to victim.example.com, grabs the cookies in use, 
store them at attacker.example.com (note: same domain, different subdomains, 
much like appspot.com hosted apps)
*Victim*: goes to attacker.example.com, which sets the cookies with 
Domain=.example.com and redirects it to victim.example.com
The victim's browser sends the cookies to victim.example.com (because of 
Domain=.example.com, they apply, even though they've been set by 
attacker.example.com)
The victim is then authenticated to victim.example.com with the *same 
session* as the attacker.
The session id is sent down to the client as part of the payload, but it's 
too late.

-- 
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 Compile problem, JdtCompiler, please !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2011-02-25 Thread Steven
I keep getting the error below and am so desperate for a solution. I
have tried everything reodering the class path, look for the
jasper.jdtcompiler and nothing seems to work. I don't have tomcat
installed on my computer so there should be no duplicate jars. I am
really lost and I don't know what to do. If someone can give me the
step by step process to solving this problem I will be so happy.




Compiling module com.GAEJ.GAEJ
[ERROR] Unexpected
java.lang.NoSuchFieldError: warningThreshold
at
com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions(JdtCompiler.java:
340)
at com.google.gwt.dev.javac.JdtCompiler
$CompilerImpl.init(JdtCompiler.java:174)
at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:
616)
at com.google.gwt.dev.javac.CompilationStateBuilder
$CompileMoreLater.compile(CompilationStateBuilder.java:193)
at
com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:
390)
at
com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:
275)
at
com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:
325)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:512)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:495)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:407)
at com.google.gwt.dev.Compiler.run(Compiler.java:215)
at com.google.gwt.dev.Compiler.run(Compiler.java:187)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:159)
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
87)
at
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:
81)
at com.google.gwt.dev.Compiler.main(Compiler.java:166)

-- 
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 2.2 /Eclipse 3.6 Pugin Development Mode Trouble

2011-02-25 Thread X.P.L
Hi!,

I am working for my client to explore the possibility to upgrade from
GWT 2.0 to GWT 2.2. My first step was install a bran new Eclipes 3.6
and then installed GWT 3.6 plugin. I ran into troubles when
downloading ( many times of timeout), so I simply downloaded the
plugin and installed it manually. Simply created first project
ExampleWebApp following the what described in the website. When
creating the web app project, I selected Use Google Web Tookit but
not select Use Google App Engine.

When I ran it, it did not give any error info from the console nor in
the Development Mode window. When I tried to connect from browser

http://127.0.0.1:/StockWatcher.html?gwt.codesvr=127.0.0.1:9997

I got Unable to connect popup from the browser. I have tried to change
the 127... to the formal host name or ips, it gave me the same. The
example works for my GWT 2.0 installation.

I appreciate any help or hint. Thanks!

BTW, here is the output from the console, when I turned on the trace
when running:

==
hecking for updates
   First launch was 12d576e05b9
   Checking for new version at
http://tools.google.com/webtoolkit/currentversion.xml?v=2.2.0id=12d576e05b9r=tags/2.2.0@9724e=DevMode
Started code server on port 9997
Parsing file:/C:/Documents%20and%20Settings/C123690/workspace2/
ExampleWebApp/war/WEB-INF/web.xml
   startElement: web-app
   startElement:   servlet
   startElement: servlet-name
 characters:   greetServlet
 endElement: servlet-name
   startElement: servlet-class
 characters:   com.example.server.GreetingServiceImpl
 endElement: servlet-class
 endElement:   servlet
   startElement:   servlet-mapping
   startElement: servlet-name
 characters:   greetServlet
 endElement: servlet-name
   startElement: url-pattern
 characters:   /examplewebapp/greet
 endElement: url-pattern
 endElement:   servlet-mapping
   startElement:   welcome-file-list
   startElement: welcome-file
 characters:   ExampleWebApp.html
 endElement: welcome-file
 endElement:   welcome-file-list
 endElement: web-app
Loading modules
   com.example.ExampleWebApp
  Module location: file:/C:/Documents%20and%20Settings/C123690/
workspace2/ExampleWebApp/src/com/example/ExampleWebApp.gwt.xml
  Loading inherited module 'com.google.gwt.user.User'
 Module location: jar:file:/C:/eclipse-new/plugins/
com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/
gwt-user.jar!/com/google/gwt/user/User.gwt.xml
 Loading inherited module 'com.google.gwt.canvas.Canvas'
Module location: jar:file:/C:/eclipse-new/plugins/
com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/
gwt-user.jar!/com/google/gwt/canvas/Canvas.gwt.xml
Loading inherited module 'com.google.gwt.user.User'
   Module 'com.google.gwt.user.User' has already been
loaded and will be skipped
Loading inherited module 'com.google.gwt.canvas.dom.DOM'
   Module location: jar:file:/C:/eclipse-new/plugins/
com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/
gwt-user.jar!/com/google/gwt/canvas/dom/DOM.gwt.xml
   Loading inherited module 'com.google.gwt.dom.DOM'
  Module location: jar:file:/C:/eclipse-new/plugins/
com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/
gwt-user.jar!/com/google/gwt/dom/DOM.gwt.xml
  Loading inherited module 'com.google.gwt.core.Core'
 Module location: jar:file:/C:/eclipse-new/plugins/
com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/
gwt-user.jar!/com/google/gwt/core/Core.gwt.xml
 Loading inherited module
'com.google.gwt.dev.jjs.intrinsic.Intrinsic'
Module location: jar:file:/C:/eclipse-new/
plugins/com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/
gwt-2.2.0/gwt-dev.jar!/com/google/gwt/dev/jjs/intrinsic/
Intrinsic.gwt.xml
Loading inherited module
'com.google.gwt.lang.LongLib'
   Module location: jar:file:/C:/eclipse-new/
plugins/com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/
gwt-2.2.0/gwt-dev.jar!/com/google/gwt/lang/LongLib.gwt.xml
 Loading inherited module
'com.google.gwt.emul.Emulation'
Module location: jar:file:/C:/eclipse-new/
plugins/com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/
gwt-2.2.0/gwt-user.jar!/com/google/gwt/emul/Emulation.gwt.xml
Loading inherited module
'com.google.gwt.logging.LogImpl'
   Module location: jar:file:/C:/eclipse-new/
plugins/com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/
gwt-2.2.0/gwt-user.jar!/com/google/gwt/logging/LogImpl.gwt.xml
 Loading inherited module
'com.google.gwt.xhr.XMLHttpRequest'
Module location: 

gwt plugin install for eclipse failing

2011-02-25 Thread snailgem
hi,
i did some search but could not find an answer to my question.
i am trying to install the gwt plugin for eclipse 3.6 as detailed at:
http://code.google.com/eclipse/docs/install-eclipse-3.6.html

i have eclipse 3.6 with the java ee ide:

Eclipse Platform
Version: 3.6.1.r361_v20100909-9gF78GrkFqw7GrsZnvz0JWNTeb6fue6896L
Build id: M20100909-0800

Eclipse Java EE IDE for Web Developers.
Version: 1.3.1.20100916-1202
Build id: 20100917-0705


several attempts have resulted in the installation errors below after
a few minutes of waiting.
any tips would be appreciated.

--
An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee,
phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=,
action=).
No repository found containing:
org.eclipse.update.feature,org.eclipse.epp.usagedata.feature,
1.3.1.R201102081640
No repository found containing:
osgi.bundle,org.eclipse.epp.usagedata.gathering,1.3.1.R201102081640
No repository found containing:
osgi.bundle,org.eclipse.epp.usagedata.recording,1.3.1.R201102081640
No repository found containing:
osgi.bundle,org.eclipse.epp.usagedata.ui,1.3.1.R201102081640
No repository found containing: osgi.bundle,org.eclipse.jem.proxy,
2.0.301.v201101101700
No repository found containing: osgi.bundle,org.eclipse.jem.util,
2.1.3.v20101207
No repository found containing:
osgi.bundle,org.eclipse.jst.common.frameworks,1.1.403.v20101216
No repository found containing: osgi.bundle,org.eclipse.jst.common.ui,
1.0.3.v201101101700
No repository found containing: osgi.bundle,org.eclipse.jst.j2ee,
1.1.404.v201102081800
No repository found containing: osgi.bundle,org.eclipse.jst.j2ee.core,
1.2.4.v201102101900
No repository found containing: osgi.bundle,org.eclipse.jst.j2ee.web,
1.1.404.v201102030400
No repository found containing: osgi.bundle,org.eclipse.jst.jee,
1.0.302.v201101122300
No repository found containing: osgi.bundle,org.eclipse.jst.jsp.core,
1.2.304.v201102160550
No repository found containing: osgi.bundle,org.eclipse.jst.jsp.ui,
1.1.503.v201101262228
No repository found containing: osgi.bundle,org.eclipse.wst.common.emf,
1.2.3.v201012100400
No repository found containing:
osgi.bundle,org.eclipse.wst.common.emfworkbench.integration,
1.2.3.v201012020600
No repository found containing:
osgi.bundle,org.eclipse.wst.common.modulecore,1.2.5.v201101270100
No repository found containing:
osgi.bundle,org.eclipse.wst.common.modulecore.ui,1.0.4.v201101101700
No repository found containing:
osgi.bundle,org.eclipse.wst.common.snippets,1.2.2.v201101130441
No repository found containing: osgi.bundle,org.eclipse.wst.css.core,
1.1.402.v201102031915
No repository found containing: osgi.bundle,org.eclipse.wst.css.ui,
1.0.502.v201101122002
No repository found containing: osgi.bundle,org.eclipse.wst.dtd.core,
1.1.401.v201101122255
No repository found containing: osgi.bundle,org.eclipse.wst.html.core,
1.1.404.v201101190004
No repository found containing: osgi.bundle,org.eclipse.wst.html.ui,
1.0.504.v201101122108
No repository found containing: osgi.bundle,org.eclipse.wst.jsdt.core,
1.1.4.v201102102045
No repository found containing:
osgi.bundle,org.eclipse.wst.jsdt.debug.core,1.0.3.v201011040143
No repository found containing:
osgi.bundle,org.eclipse.wst.jsdt.debug.ui,1.0.3.v201011040143
No repository found containing: osgi.bundle,org.eclipse.wst.jsdt.ui,
1.1.4.v201102160540
No repository found containing:
osgi.bundle,org.eclipse.wst.jsdt.web.core,1.0.304.v201102160550
No repository found containing:
osgi.bundle,org.eclipse.wst.jsdt.web.support.jsp,1.0.303.v201012160047
No repository found containing:
osgi.bundle,org.eclipse.wst.jsdt.web.ui,1.0.304.v201012160349
No repository found containing:
osgi.bundle,org.eclipse.wst.server.core,1.1.206.v20110110
No repository found containing: osgi.bundle,org.eclipse.wst.server.ui,
1.1.207.v20110119
No repository found containing: osgi.bundle,org.eclipse.wst.sse.core,
1.1.504.v201102160550
No repository found containing: osgi.bundle,org.eclipse.wst.sse.ui,
1.2.3.v201102102045
No repository found containing: osgi.bundle,org.eclipse.wst.validation,
1.2.201.v201101270100
No repository found containing: osgi.bundle,org.eclipse.wst.web,
1.1.402.v20101216
No repository found containing:
osgi.bundle,org.eclipse.wst.ws.service.policy,1.0.204.v201011011834
No repository found containing: osgi.bundle,org.eclipse.wst.wsdl,
1.2.104.v201012082239
No repository found containing: osgi.bundle,org.eclipse.wst.wsdl.ui,
1.2.304.v201012071645
No repository found containing: osgi.bundle,org.eclipse.wst.xml.core,
1.1.503.v201102102045
No repository found containing: osgi.bundle,org.eclipse.wst.xml.ui,
1.1.103.v201101122108
No repository found containing: osgi.bundle,org.eclipse.wst.xsd.core,
1.1.503.v201011121919
No repository found containing: osgi.bundle,org.eclipse.wst.xsd.ui,
1.2.304.v201101251958
No repository found containing:

Re: GWT Compile problem, JdtCompiler, please !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2011-02-25 Thread David Chandler
Please run this script in your WEB-INF/lib dir and reply with the output:

jargrep.sh:
#!/bin/sh
LOOK_FOR=$1
for i in `find . -name *jar`
do
  echo $i
  jar tvf $i | grep $LOOK_FOR
done

Example:
./jargrep.sh CompilerOptions

If you're not on a Unix system, use WinRAR to search the whole WEB-INF/lib
directory for CompilerOptions

/dmc

On Fri, Feb 25, 2011 at 1:58 PM, Steven sir5...@gmail.com wrote:

 I keep getting the error below and am so desperate for a solution. I
 have tried everything reodering the class path, look for the
 jasper.jdtcompiler and nothing seems to work. I don't have tomcat
 installed on my computer so there should be no duplicate jars. I am
 really lost and I don't know what to do. If someone can give me the
 step by step process to solving this problem I will be so happy.




 Compiling module com.GAEJ.GAEJ
 [ERROR] Unexpected
 java.lang.NoSuchFieldError: warningThreshold
at
 com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions(JdtCompiler.java:
 340)
at com.google.gwt.dev.javac.JdtCompiler
 $CompilerImpl.init(JdtCompiler.java:174)
at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:
 616)
at com.google.gwt.dev.javac.CompilationStateBuilder
 $CompileMoreLater.compile(CompilationStateBuilder.java:193)
at

 com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:
 390)
at

 com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:
 275)
at
 com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:
 325)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:512)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:495)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:407)
at com.google.gwt.dev.Compiler.run(Compiler.java:215)
at com.google.gwt.dev.Compiler.run(Compiler.java:187)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:159)
at
 com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
 87)
at

 com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:
 81)
at com.google.gwt.dev.Compiler.main(Compiler.java:166)

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




-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

-- 
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 plugin install for eclipse failing

2011-02-25 Thread snailgem
answering my own question: not sure why this happened, but gwt is not
the problem.
what i did to fix was to edit the url of each checked site and add
a // at the end.
install ran fine afterwards.

-- 
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 mvp sessions

2011-02-25 Thread Jeff Schwartz
I am not dismissing your scenarios outright as I never said that the method
was foolproof and I also said that only SSL will give you something close to
that.

Also lets not forget that if the user manages to be lured to an attackers
site via a link in an email for instance and then doesn't notice that they
are then redirected to another site then they have bigger problems than
having their session hijacked lol.

However, there are ways to mitigate even the cross-subdomain attack that you
use as an example...


On Fri, Feb 25, 2011 at 2:20 PM, Thomas Broyer t.bro...@gmail.com wrote:

 This is where you fail to understand me: you make the assumption that the
 authentication process takes place, while I'm talking about bypassing it
 with a session-fixation attack.


I understood perfectly, Thomas. To reiterate, the attacker will have had to
authenticate in order to acquire a valid sid which he then stores and waits
in prey for the user to respond to his email with a link to his site. When
the user takes the bait and visits the attacker's site the attacker
redirects the user to another site including the sid as a query parameter.

One possible scenario (easily mitigated through the use of your own domain
 name):
 *Attacker*: authenticates to victim.example.com, grabs the cookies in use,
 store them at attacker.example.com (note: same domain, different
 subdomains, much like appspot.com hosted apps)


At this point the request hits the server and the session id is set the
query parameter, the same one as the attackers. This attack can be mitigated
by changing the session ID when users logs in and to additionally require
the user to authenticate on every important request. A pain in the rear for
the user of course but it will largely work. The fact that it does work is
due to the reluctance to require users to log in for every important
request.

Sure enough, even if you used SSL it would require that every request uses
it in order to be close to 100% protected from this kind of attack. The only
sites I know that do that are some banks. I believe Citibank does for
instance. Interestingly I believe Facebook announced that they will be
rolling this out to all their members. It will be interesting to see how it
affects the performance of their site.

Perhaps requiring every one to use SSL for every request is the right
approach. Maybe we should all be going in that direction but service
providers might be loathe to provide this service as it adds additional
demands on their servers that they might not be able to handle and the users
might complain because of the increased latency.

Perhaps using HttpOnly headers would also mitigate this kind of attack. I
don't think App Engine supports it though but I wish it did.

The bottom line is this, it really comes down to a multi-faceted approach to
security. One big wall isn't going to cut it and the more obstacles put up
the less chances are that some malcontent will be successful.

-- 
*Jeff Schwartz*
http://jefftschwartz.appspot.com/
http://www.linkedin.com/in/jefftschwartz
follow me on twitter: @jefftschwartz

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



Multiple warnings in GWT 2.2

2011-02-25 Thread Eric
Hello all,
I've searched and haven't found anything.  I'm surprised that this
hasn't been discussed (or I can't find it).

After upgrading to GWT 2.2, I'm getting the warnings below both in dev
mode and compiled.  Is there anything I can do about it?  Is it a
known issue.  The only thing I'm doing that is a little weird is
creating my own cell table resources.

Are other people having this issue?

Thanks,
Eric

gwtc:
 [java] Compiling module com.greenfiling.gwt.gwtui
 [java]Scanning for additional dependencies: jar:file:/data/
install/gwt-2.2.0/gwt-user.jar!/com/google/gwt/cell/client/
IconCellDecorator.java
 [java]   Computing all possible rebind results for
'com.google.gwt.cell.client.IconCellDecorator.Template'
 [java]  Rebinding
com.google.gwt.cell.client.IconCellDecorator.Template
 [java] Invoking generator
com.google.gwt.safehtml.rebind.SafeHtmlTemplatesGenerator
 [java]Constructing interface
com.google.gwt.cell.client.IconCellDecorator.Template
 [java]   Generating method body for
imageWrapperTop()
 [java]  [WARN] Template with variable in CSS
context: The template code generator cannot guarantee HTML-safety of
the template -- please inspect manually
 [java]   Generating method body for
imageWrapperBottom()
 [java]  [WARN] Template with variable in CSS
context: The template code generator cannot guarantee HTML-safety of
the template -- please inspect manually
 [java]   Generating method body for outerDiv()
 [java]  [WARN] Template with variable in CSS
context: The template code generator cannot guarantee HTML-safety of
the template -- please inspect manually
 [java]  [WARN] Template with variable in CSS
context: The template code generator cannot guarantee HTML-safety of
the template -- please inspect manually
 [java]   Generating method body for
imageWrapperMiddle()
 [java]  [WARN] Template with variable in CSS
context: The template code generator cannot guarantee HTML-safety of
the template -- please inspect manually
 [java]  [WARN] Template with variable in CSS
context: The template code generator cannot guarantee HTML-safety of
the template -- please inspect manually
 [java]Compiling 5 permutations
 [java]   Compiling permutation 0...
 [java]   Compiling permutation 1...
 [java]   Compiling permutation 2...
 [java]   Compiling permutation 3...
 [java]   Compiling permutation 4...
 [java]Compile of permutations succeeded
 [java] Linking into /data/apps/prod/build/svn_checkout/war/gwtui
 [java]Link succeeded
 [java]Compilation succeeded -- 214.635s

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



RequestFactory + ListEditor: empty record during first save

2011-02-25 Thread Vasily
Hi All...

I have ListEditor of editable widgets. Each widget is a simple
TextBox.
Workflow:
- clicking add, populating new empty editor in the list;
- filling the TextBox;
- saving

The problem is that for the first 'save' I have a new record in DB
with version=0  all other fields=null. After that it's saving ok...
Here is some code:

public interface Driver extends
SimpleBeanEditorDriverListPhoneNumProxy, ListEditorPhoneNumProxy,
PhoneNumEditView {}

ListEditor editor = ListEditor.of(new FieldEditorSource());
ListEditor listEditor=editor;
List displayedList=listEditor.getList();

Driver driver = GWT.Driver create(Driver.class);
driver.initialize(listEditor);
driver.edit(new ArrayListPhoneNumProxy());

Here is how I'm creating a new editor:

PhoneNumProxy
proxy=requests.phoneNumRequest().create(PhoneNumProxy.class);
displayedList.add(proxy);

Also, I'm doing listEditor.flush()

Any ideas what's wrong? 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: Multiple warnings in GWT 2.2

2011-02-25 Thread John LaBanca
There is an issue to track this bug:
http://code.google.com/p/google-web-toolkit/issues/detail?id=5962

We should have it fixed for GWT 2.3, even if it means we have to replace the
templates in that Cell.

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


On Fri, Feb 25, 2011 at 4:55 PM, Eric edimickeast...@gmail.com wrote:

 Hello all,
 I've searched and haven't found anything.  I'm surprised that this
 hasn't been discussed (or I can't find it).

 After upgrading to GWT 2.2, I'm getting the warnings below both in dev
 mode and compiled.  Is there anything I can do about it?  Is it a
 known issue.  The only thing I'm doing that is a little weird is
 creating my own cell table resources.

 Are other people having this issue?

 Thanks,
 Eric

 gwtc:
 [java] Compiling module com.greenfiling.gwt.gwtui
 [java]Scanning for additional dependencies: jar:file:/data/
 install/gwt-2.2.0/gwt-user.jar!/com/google/gwt/cell/client/
 IconCellDecorator.java
 [java]   Computing all possible rebind results for
 'com.google.gwt.cell.client.IconCellDecorator.Template'
 [java]  Rebinding
 com.google.gwt.cell.client.IconCellDecorator.Template
 [java] Invoking generator
 com.google.gwt.safehtml.rebind.SafeHtmlTemplatesGenerator
 [java]Constructing interface
 com.google.gwt.cell.client.IconCellDecorator.Template
 [java]   Generating method body for
 imageWrapperTop()
 [java]  [WARN] Template with variable in CSS
 context: The template code generator cannot guarantee HTML-safety of
 the template -- please inspect manually
 [java]   Generating method body for
 imageWrapperBottom()
 [java]  [WARN] Template with variable in CSS
 context: The template code generator cannot guarantee HTML-safety of
 the template -- please inspect manually
 [java]   Generating method body for outerDiv()
 [java]  [WARN] Template with variable in CSS
 context: The template code generator cannot guarantee HTML-safety of
 the template -- please inspect manually
 [java]  [WARN] Template with variable in CSS
 context: The template code generator cannot guarantee HTML-safety of
 the template -- please inspect manually
 [java]   Generating method body for
 imageWrapperMiddle()
 [java]  [WARN] Template with variable in CSS
 context: The template code generator cannot guarantee HTML-safety of
 the template -- please inspect manually
 [java]  [WARN] Template with variable in CSS
 context: The template code generator cannot guarantee HTML-safety of
 the template -- please inspect manually
 [java]Compiling 5 permutations
 [java]   Compiling permutation 0...
 [java]   Compiling permutation 1...
 [java]   Compiling permutation 2...
 [java]   Compiling permutation 3...
 [java]   Compiling permutation 4...
 [java]Compile of permutations succeeded
 [java] Linking into /data/apps/prod/build/svn_checkout/war/gwtui
 [java]Link succeeded
 [java]Compilation succeeded -- 214.635s

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



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



Bug? AbsolutePanel in Grid not visible in Chrome and Firefox

2011-02-25 Thread cri
If you put an AbsolutePanel in a Grid, the AbsoluteGrid contents are
not visible in either Chrome or FireFox. They are visible in IE8. To
duplicate, paste the code below in an EntryPoint class and run the
code in Development mode. Does anyone know of a workaround for this
problem?


package foo.bar.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Grid;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.AbsolutePanel;

public class GwtApp implements EntryPoint {

  public void onModuleLoad() {
Grid g = new Grid(1, 1);

RootPanel rootPanel = RootPanel.get();
rootPanel.add(g);

AbsolutePanel absolutePanel = new AbsolutePanel();
g.setWidget(0, 0, absolutePanel);
absolutePanel.setSize(200, 200);

Button btnNewButton = new Button(New button);
absolutePanel.add(btnNewButton, 10, 10);
btnNewButton.setSize(100px, 28px);

Button btnNewButton_1 = new Button(New button);
absolutePanel.add(btnNewButton_1, 90, 162);
btnNewButton_1.setSize(100px, 28px);
  }
}

-- 
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 mvp sessions

2011-02-25 Thread veenatic
I think the discussion has become very interesting and I understood a lot 
about attacks and attackers but I still ponder over the question that if we 
have to put the auth token on the payload of the RequestFactory, how to do 
that?
And after this how to read the token from the payload to verify it?

-- 
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 mvp sessions

2011-02-25 Thread Jeff Schwartz
With RPC I define all my RPC synchronous methods taking  a string parameter
whose value will be assigned from the cooke storing the sid. On the server,
the handler will compare this string value to the value returned from the
Session.getId() method. If they aren't the same I throw a custom exception
which is caught on the client in the overloaded OnFailure method of the RPC
call.

Here's the typical code for a server-side handler:

@Override
public SingleRPCPayloadSomeTyoe someMethod(String clientSid, ...)
throws MyCapabilityDisabledException {
HttpSession session = getThreadLocalRequest().getSession(true);
String sid = session.getId();
if (clientSid.equals(sid)) {
.
.
.
return payload;
} else {
throw new MyInvalidSessionException();
}
}


On Fri, Feb 25, 2011 at 7:01 PM, veenatic praveen.bit...@gmail.com wrote:

 I think the discussion has become very interesting and I understood a lot
 about attacks and attackers but I still ponder over the question that if we
 have to put the auth token on the payload of the RequestFactory, how to do
 that?
 And after this how to read the token from the payload to verify it?

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




-- 
*Jeff Schwartz*
http://jefftschwartz.appspot.com/
http://www.linkedin.com/in/jefftschwartz
follow me on twitter: @jefftschwartz

-- 
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 mvp sessions

2011-02-25 Thread Jeff Schwartz
btw my bad I meant to say overridden OnFailure method... sorry about that

On Fri, Feb 25, 2011 at 7:15 PM, Jeff Schwartz jefftschwa...@gmail.comwrote:

 With RPC I define all my RPC synchronous methods taking  a string parameter
 whose value will be assigned from the cooke storing the sid. On the server,
 the handler will compare this string value to the value returned from the
 Session.getId() method. If they aren't the same I throw a custom exception
 which is caught on the client in the overloaded OnFailure method of the RPC
 call.

 Here's the typical code for a server-side handler:

 @Override
 public SingleRPCPayloadSomeTyoe someMethod(String clientSid, ...)
 throws MyCapabilityDisabledException {
 HttpSession session = getThreadLocalRequest().getSession(true);
 String sid = session.getId();
 if (clientSid.equals(sid)) {
 .
 .
 .
 return payload;
 } else {
 throw new MyInvalidSessionException();

 }
 }


 On Fri, Feb 25, 2011 at 7:01 PM, veenatic praveen.bit...@gmail.comwrote:

 I think the discussion has become very interesting and I understood a lot
 about attacks and attackers but I still ponder over the question that if we
 have to put the auth token on the payload of the RequestFactory, how to do
 that?
 And after this how to read the token from the payload to verify it?

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




 --
 *Jeff Schwartz*
 http://jefftschwartz.appspot.com/
 http://www.linkedin.com/in/jefftschwartz
 follow me on twitter: @jefftschwartz




-- 
*Jeff Schwartz*
http://jefftschwartz.appspot.com/
http://www.linkedin.com/in/jefftschwartz
follow me on twitter: @jefftschwartz

-- 
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 mvp sessions

2011-02-25 Thread veenatic
Thanks Jeff,
With RPC, this way is understood. Similarily, I have some idea with 
RequestFactory also like

requestFactory.serviceRequest().getAllEntities(clientSid);

and on the server side, in getAllEntities(String clientSid) i can verify the 
same way you did.

But this way is forcing me to put an extra parameter in all my business 
methods. I am sure there are other ways. Any Ideas?
Obviously, the above approach is not that ugly.

-- 
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 mvp sessions

2011-02-25 Thread David Chandler
You could use the Command pattern as with GWT-RPC using a ValueProxy as the
command object, but I'm not sure what you'd gain by it as you'd lose all the
RF functionality related to entities. As it currently stands, you would need
to modify the RF transport protocol, perhaps with a ServiceLayerDecorator.
Are you convinced that the token needs to be part of the payload vs. request
header? It's much easier to modify the header by extending
DefaultRequestTransport as Thomas has pointed out elsewhere.

/dmc

On Fri, Feb 25, 2011 at 7:34 PM, veenatic praveen.bit...@gmail.com wrote:

 Thanks Jeff,
 With RPC, this way is understood. Similarily, I have some idea with
 RequestFactory also like

 requestFactory.serviceRequest().getAllEntities(clientSid);

 and on the server side, in getAllEntities(String clientSid) i can verify
 the same way you did.

 But this way is forcing me to put an extra parameter in all my business
 methods. I am sure there are other ways. Any Ideas?
 Obviously, the above approach is not that ugly.

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




-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

-- 
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: Persistent class ... does not seem to have been enhanced .. Error??

2011-02-25 Thread satish
Alex,

How did you fix this error? I am seeing the same issue and i was wondering 
if you could help. 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: [gwt-contrib] Re: [RFC] GWT Widgets that ROCK!

2011-02-25 Thread Isaac Truett
Thomas Broyer wrote:

 Finally, I don't really like the Widget suffix naming convention, that's
 what namespaces (packages in Java) are for (tell a Button from another
 Buton), but I sure could live with it.
 I already have those naming conflicts using Guava and gwt-dev –which
 includes a rebased, olderguava–, and some other library that transitively
 depends on a rebased Apache Commons, in the same project (so I have many
 Lists classes to choose from; not to mention java.util.List vs.
 jaa.awt.List, and java.util.Date vs. java.sql.Date). When I'm angry that
 eclipse always pick the wrong one by default, I configure it so it ignores
 the others when suggesting completions. Or maybe the GPE could plug into
 Eclipse to make it prefer the new Button so it's always displayed before
 the old one in such autocomplete or organize imports lists?


+1 for right name, different package (and aggressive deprecation, please).


On Thu, Feb 24, 2011 at 7:30 PM, Thomas Broyer t.bro...@gmail.com wrote:
 I support the overall idea.
 A few notes though:
 I'm worried about the events in the ButtonCell example. If they're just
 there to provide hooks to inject styles, then:

 you probably don't need them if you use a native button appearance; which
 means you're listening to events but doing nothing in response to them; and
 we now too many registered events are bad for performance (that's what lead
 to the event delegation pattern, taking advantage of event bubbling,
 right?)
 why couldn't you just use :hover, :active and similar pseudo-classes?

 OK, maybe the ButtonCell is not the best example, as its appearance
 and behavior are quite… limited, but still.
 Or could, in this case, the Appearance have hasHoverBehavior or similar that
 the Cell would use to decide which events it's interested in? (so if you
 want your onHover method to be called, you'd first have to override
 hasHoverBehavior to return true). As an alternative, a few such behaviours
 could come in mixin interfaces, and the Cell would advertise (in the
 javadoc) which ones it supports (the ButtonCell would then only say it
 handles mouseover events if the Appearance is an instanceof HasHover).


 You wrote:

 Finally, note that Appearance is an abstract class. This allows us to add
 more state logic in the future without breaking existing Appearances. For
 example, we could add new methods setRightFlush() and setLeftFlush()
 which would make the right and left edges of the button flat, such that they
 could be lined up next to each other. Existing appearances may not support
 the new feature, but they would still work.

 This is not exactly true:

 Since the new method is probably something obvious I might already have
 implemented it. This is really evil because my code might still compile but
 not work any more.

 —
 Source: https://groups.google.com/d/msg/google-guice/rV21c_HQivk/NLUNASfhHq8J
 See also in the same thread:
 https://groups.google.com/d/msg/google-guice/rV21c_HQivk/mI6JP206-tsJ


 You wrote:

 Some Cells support methods to change how the Cell is rendered. For example,
 ButtonCell could provide a setTabIndex() method to set the tab index of the
 element. ButtonWidget would expose the same methods and forward through to
 the Cell.

 Does it mean there could finally be a Button interface (implemented by
 both ButtonCell and ButtonWidget) as a few people have asked
 for: http://code.google.com/p/google-web-toolkit/issues/detail?id=5275

 Finally, I don't really like the Widget suffix naming convention, that's
 what namespaces (packages in Java) are for (tell a Button from another
 Buton), but I sure could live with it.
 I already have those naming conflicts using Guava and gwt-dev –which
 includes a rebased, olderguava–, and some other library that transitively
 depends on a rebased Apache Commons, in the same project (so I have many
 Lists classes to choose from; not to mention java.util.List vs.
 jaa.awt.List, and java.util.Date vs. java.sql.Date). When I'm angry that
 eclipse always pick the wrong one by default, I configure it so it ignores
 the others when suggesting completions. Or maybe the GPE could plug into
 Eclipse to make it prefer the new Button so it's always displayed before
 the old one in such autocomplete or organize imports lists?

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

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


Re: [gwt-contrib] Re: [RFC] GWT Widgets that ROCK!

2011-02-25 Thread Jeff Larsen
I am really, really excited about this. 

+1 for aggressive Ruby style deprecation. It would be nice to get rid of the 
FooListeners/SourcesFoo stuff that is just clutter now and has 
been deprecated since 1.6

I have no problem with ButtonWidget naming style however. In eclipse you can 
just type BW and control-space and eclipse will find all classes with 
B...W... in their name. I know you can configure eclipse to do all these 
crazy things, but I never seem to end up doing that for whatever reason. 

Does it mean there could finally be a Button interface (implemented by 
both ButtonCell and ButtonWidget) as a few people have asked for: 
http://code.google.com/p/google-web-toolkit/issues/detail?id=5275


This would be an incredible feature to have a common interface between the 
new cell based widgets and their current widget counterpart. 


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

[gwt-contrib] Re: Fixes a bug in serializing Dependencies.DirectRef and (issue1365801)

2011-02-25 Thread zundel


http://gwt-code-reviews.appspot.com/1365801/diff/1/dev/core/src/com/google/gwt/dev/javac/Dependencies.java
File dev/core/src/com/google/gwt/dev/javac/Dependencies.java (right):

http://gwt-code-reviews.appspot.com/1365801/diff/1/dev/core/src/com/google/gwt/dev/javac/Dependencies.java#newcode63
dev/core/src/com/google/gwt/dev/javac/Dependencies.java:63: protected
Object writeReplace() {
On 2011/02/25 00:25:23, scottb wrote:

Can you explain what this change actually does?  My understanding is

that

setting this 'protected' simply means that subclasses of DirectRef

will replace

themselves.  (And I don't think there are any subclasses).



I added the following code to CompilationTest around line 566:



   assertTrue(origRef instanceof DirectRef);
   assertTrue(newRef instanceof SerializedRef);



(I had to make SerializedRef default access.)  This code passed.


Basically, at some point I was reading in cached units, but they were
being invalidated when running the Dependencies.validate() method.  I
traced it back to null values for CompiledClass.  The examples I was
looking at had writeReplace as a protected method so I changed the
protection.

I read over the documentation for Serialization and what you are saying
makes sense to me.  I changed protected back to private and caching
still works.  The fix must have been another change I made, but I can't
imagine what.

I added your suggested lines to the unit test.

Do you think I should back out this change?  I agree it must not have
been what solved the problem, but it seems reasonable to expect that a
subclass would need similar logic.

http://gwt-code-reviews.appspot.com/1365801/

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


[gwt-contrib] Re: Fixes a bug in serializing Dependencies.DirectRef and (issue1365801)

2011-02-25 Thread scottb


http://gwt-code-reviews.appspot.com/1365801/diff/1/dev/core/src/com/google/gwt/dev/javac/Dependencies.java
File dev/core/src/com/google/gwt/dev/javac/Dependencies.java (right):

http://gwt-code-reviews.appspot.com/1365801/diff/1/dev/core/src/com/google/gwt/dev/javac/Dependencies.java#newcode63
dev/core/src/com/google/gwt/dev/javac/Dependencies.java:63: protected
Object writeReplace() {
Nah, there's no reason to revert it.  I just wanted to be sure I
understood it correctly.

http://gwt-code-reviews.appspot.com/1365801/

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


[gwt-contrib] Severe regressions with editor overhaul at r9666

2011-02-25 Thread Thomas Broyer
Hi G-Men, hi Bob, hi Ray,

On Monday, I switched our app (I mean everyone in the team, not only on a 
local branch) to GWT trunk@9753 with a few patches that are still in review, 
in the hope that my team stop harass me with bug reports about editors and 
RequestFactory (my first idea was to switch to 2.2 and live with the 
remaining bugs, but we'll soon show the (far from finished) app to our 
clients and, even worse, make them test it for a couple of days, so it has 
to work better than what 2.2 gives us).
It unfortunately turned out to have been a bad idea, as we discovered 3 
major regressions introduced by the overhaul at r9666 (that 666 in the 
rev. number must be a sign):

   1. RequestFactoryEditorDriver failing to collect path when a dotted path 
   is given to the @Path annotation (issue 
6066http://code.google.com/p/google-web-toolkit/issues/detail?id=6066, 
   OMG a hidden 666 once more!)
   2. EditorDelegate's getPath is wrong when the subeditor is referenced 
   with a dotted path in a @Path annotation (issue 
6076http://code.google.com/p/google-web-toolkit/issues/detail?id=6076
   )
   3. ListEditor subeditors' value is not flushed when used with a 
   RequestFactoryEditorDriver (issue 
6081http://code.google.com/p/google-web-toolkit/issues/detail?id=6081
   )
   
I have fixes for the first 2, but that last one is a bit trickier to fix *
correctly* (I'll apply a dirty fix to our copy, running the visitor twice 
and living with the performance penalty; it should be OK as we're 
fortunately only targeting modern browsers, our main target being Firefox 
4).

FWIW, here's the list of patches I also apply to make our 2.3-SNAPSHOT 
version:

   - Issue 
5599http://code.google.com/p/google-web-toolkit/issues/detail?id=5599: 
HasDataEditor 
   doesn't handle removes from the list (never calls HasData#setRowCount)
   - Issue 
5952http://code.google.com/p/google-web-toolkit/issues/detail?id=5952: 
RequestContext.isChanged 
   returns true just after an edit() whenever there's a List or Set
   - Issue 
6015http://code.google.com/p/google-web-toolkit/issues/detail?id=6015: Editor 
   generator can generate filenames too long for almost all filesystems
   - Issue 
6016http://code.google.com/p/google-web-toolkit/issues/detail?id=6016: 
EditorContext 
   generated class name should take parameterization into account
   - Issue 
6040http://code.google.com/p/google-web-toolkit/issues/detail?id=6040: Editor 
   framework does not support is / has methods (we can easily live without it, 
   I believe we're no *yet* taking advantage of the fix)
   - Issue 
6059http://code.google.com/p/google-web-toolkit/issues/detail?id=6059: 
ClassCastException 
   in AbstractRequestContext.isChanged if you create()d a ValueProxy
   - http://gwt-code-reviews.appspot.com/1338807/ Introduces 
   SkipInterfaceValidation annotation (I planned to remove a few of our 
   ServiceLayerDecorator hacks and use the annotation, until the team reported 
   me the bug I logged under issue 6081)

All issues have however been verified against a fresh trunk checkout (that's 
when I can say I don't regret my switch to git-svn!)

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

[gwt-contrib] Re: Adding new style theme called Clean, and using the new theme in Showcase and in the default GWT ... (issue1330801)

2011-02-25 Thread jlabanca

http://gwt-code-reviews.appspot.com/1330801/

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


Re: [gwt-contrib] [RFC] GWT Widgets that ROCK!

2011-02-25 Thread Stephen Haberman

 Please take a look at the design doc and let me know what you think:

The introduction mentions this:

The assumptions that current widgets make regarding their structure
prevent us from modernizing existing widgets without breaking
applications that rely on the existing DOM structures.

Which is true, but I don't think the Appearance pattern will alleviate
this? E.g. if ButtonCell's default appearance outputs a certain DOM
structure (whether by SafeHtml/otherwise), aren't users' apps going to
couple themselves to the resulting DOM structure, either via custom
Element-based hacks, or CSS rules that use selectors based on the DOM
output?

Seems like you'll still end up with DefaultAppearances that can never
change?

(Not that this sinks the whole proposal, but I thought I'd point
it out. Though perhaps I'm missing something?)

- Stephen

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


Re: [gwt-contrib] [RFC] GWT Widgets that ROCK!

2011-02-25 Thread Stephen Haberman

 Please take a look at the design doc and let me know what you think:

Out of curiosity, would this allow Panels (all the way up to RootPanel)
to render their initial contents/major changes as one giant SafeHtml +
set innerHTML operation, CellTable-style?

If so, that seems pretty slick.

- Stephen

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


[gwt-contrib] Re: GWT Widgets that ROCK!

2011-02-25 Thread Ladislav Gazo
the idea seems fine but please keep an eye on the resulting size of
JS :)

On 24. Feb, 23:28 h., John LaBanca jlaba...@google.com wrote:
 GWT Contributors -

 I drafted a proposal for a new pattern that the GWT team will use to replace
 existing GWT widgets with newer, shinier widgets.  The proposal hits on the
 major pain points that users have with existing widgets:

    - Replace the styles of a widget instance
    - Replace the DOM structure of a widget instance
    - Reskin an entire GWT app (DOM and/or styles)
       - Allow third parties to provide skins
    - Isolate CSS code for each widget
       - Dead strip CSS code that is not used within the app
    - Separate presenter logic from DOM view
    - Offer an identical Cell equivalent of every (most) new widgets
       - Shared code between Cell and Widget
       - Expand Cell library

 Please take a look at the design doc and let me know what you 
 think:http://code.google.com/p/google-web-toolkit/wiki/CellBackedWIdgets

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

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


Re: [gwt-contrib] [RFC] GWT Widgets that ROCK!

2011-02-25 Thread John LaBanca
On Fri, Feb 25, 2011 at 12:34 PM, Stephen Haberman step...@exigencecorp.com
 wrote:


  Please take a look at the design doc and let me know what you think:

 Out of curiosity, would this allow Panels (all the way up to RootPanel)
 to render their initial contents/major changes as one giant SafeHtml +
 set innerHTML operation, CellTable-style?

We're working toward that.  We could add support for Cells in HtmlPanel,
such that a UiBinder backed HtmlPanel containing only HTML and Cells would
render as a sstring.


 If so, that seems pretty slick.

 - Stephen

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



Which is true, but I don't think the Appearance pattern will alleviate
 this? E.g. if ButtonCell's default appearance outputs a certain DOM
 structure (whether by SafeHtml/otherwise), aren't users' apps going to
 couple themselves to the resulting DOM structure, either via custom
 Element-based hacks, or CSS rules that use selectors based on the DOM
 output?
 Seems like you'll still end up with DefaultAppearances that can never
 change?

We can add a new appearance and maintain (or deprecate) the existing
DefaultAppearance.  The behavior would depend on the constructor that the
user uses.
ButtonCell(); // The default appearance would be replaced
ButtonCell(Appearance); // The user specified appearance remains
ButtonCell(DefaultAppearance.Resources); // The user continues to use the
old DefaultAppearance

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

  1   2   >