Re: drag and drop group

2013-05-21 Thread bhomass
you mean no body has done this before? 

On Thursday, May 16, 2013 11:23:02 AM UTC-7, bhomass wrote:
>
> I have been using GWT native Dnd successfully.
>
> Now I have a need to create Dnd group. This means if Widget A and panel B 
> are in the same group, I want to allow user to drag A into B. C and D forms 
> another group. So, A can not be dropped onto D, only C can. and likewise, C 
> can not be dropped into B.
>
> Anyone knows how to implement this?
>

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




Re: Error: com.google.gwt.user.client.rpc.StatusCodeException: 404 on Tomcat server

2013-05-21 Thread Maurice
Hi Ahmed,

Yes the problem was the hosting company did not support GWT.  I now use 
arvixe.com which works fine.

http://stackoverflow.com/questions/9691609/gwt-servlet-error-com-google-gwt-user-client-rpc-statuscodeexception-404-on-to


Good luck


On Monday, May 20, 2013 1:17:58 PM UTC-6, Ahmed El-Fayomy wrote:
>
> I'm having the exact same problem, any luck?!
>
> On Friday, February 24, 2012 11:30:38 PM UTC+3, Maurice wrote:
>>
>> Hello All, 
>>
>> I am having problems getting my RPC code working on a Tomcat server 
>> hosted by serversanddomains.com.  The steps I have followed are: 
>> 1) Using GWT 2.4, and eclipse I create an new web application project 
>> - with a 
>>  project = Hello 
>>  package = com.gwt.hello 
>>  Using Google Web ToolKit 
>>  Not using Google App Engine 
>>  And Using Generate project sample code 
>>
>> 2) In the generated file com.gwt.hello.client.Hello.java I change line 
>> serverResponseLabel.setHTML(SERVER_ERROR); to 
>> serverResponseLabel.setHTML(caught.toString()); 
>> To understand the errors better. 
>>
>> 3) I then test the program in development mode and it works as 
>> expected. 
>>
>> 4) Compile - Build the project with the GWT compiler 
>> Compiling module com.gwt.hello.Hello 
>>Compiling 6 permutations 
>>   Compiling permutation 0... 
>>   Compiling permutation 1... 
>>   Compiling permutation 2... 
>>   Compiling permutation 3... 
>>   Compiling permutation 4... 
>>   Compiling permutation 5... 
>>Compile of permutations succeeded 
>> Linking into /Users/xxx/Documents/www/Hello/war/hello 
>>Link succeeded 
>>Compilation succeeded -- 65.826s 
>>
>> 5) Upload the files everything in the war directory (Folders hello, 
>> WEB-INF and files Hello.html, and Hello.css) into my hosted account in 
>> the public_html folder 
>>
>> 6) Test the production site at http://www.example.com/Hello.html 
>> I get the following error 
>>
>> Sending name to the server: 
>> GWT User 
>>
>> Server replies: 
>> com.google.gwt.user.client.rpc.StatusCodeException: 404 
>> Not Found 
>>
>> The requested URL /hello/greet was not found on this server. 
>>
>> Additionally, a 404 Not Found error was encountered while trying to 
>> use an ErrorDocument to handle the request. 
>>
>> 7) Contacted serversanddomains.com and they respond 
>>
>> There does not appear to be any error on the server side. The jsp test 
>> page seems to be working fine now at http://example.com/jsptest.jsp so 
>> tomcat itself appears to be just fine. 
>>
>> The page in question is simply trying to request a file URL which does 
>> not exist. When submitting the form, this shows up in the error log 
>> for apache. 
>>
>> [Thu Feb 23 16:44:31 2012] [error] [client 208.74.121.102] File does 
>> not exist: /home/xxx/public_html/hello/greet, referer: 
>> http://example.com/Hello.html 
>>
>> That's because there is no such file called "greet" in the hello 
>> folder. This is likely because you have not properly installed the 
>> application. 
>> =
>>  
>>
>>
>> So we have written back to see if we can get exact steps on how you 
>> need to upload everything. 
>>
>> But I can tell you that if you get hosting with Plesk on Linux with 
>> us, Plesk allows you to upload your WAR files and it creates the 
>> application for you for your site. 
>>
>>
>> 8) Tried to follow the steps outlined in 
>>
>> http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideRPCDeployment
>>  
>> Simple Example with Apache Tomcat 
>>
>>
>> Thanks for taking the time to read this, and any suggestions are 
>> welcome. 
>>
>> Cheers, 
>> Maurice 
>>
>>
>>
>>

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




Re: Testing GWT without GwtTestCase

2013-05-21 Thread Joseph Lust
Early on in the presentation Erik also mentions a recently released GWT 
Mockito setup that might benefit your non-GwtTestCase goals.

https://www.youtube.com/watch?v=kilmaSRq49g


Sincerely,
Joseph

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




Creating clickable links within text

2013-05-21 Thread Joel
I have a cell that contains some text. I would like to create links within 
the text that are clickable.

"For, example abc and xyz should be links."

I figured on using InlineLabel to create the links within the text. 
However, since the whole thing is a cell I can't click on the individual 
label/links. 

1) Is there a way to turn off "click grabbing" at the CellList level, so my 
inner links will work? I also need to know which one was clicked? How?
2) Is InlineLabel really the appropriate widget to use (I just want to take 
an action on the page, not leave the page)?  

J

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




Re: Testing GWT without GwtTestCase

2013-05-21 Thread Jens
I am also in the process of making GWT-RPC method implementation 
independent of GWT-RPC/Servlet for easier testing. I don't really bother 
about introducing new short lived objects created for each request. Short 
living objects are not a real problem in todays JVMs and you can probably 
save a lot more resources by optimizing heavy weight algorithms, etc. But 
as always: Only start optimizing if you have to because some service is too 
slow or consumes too much resources. As long as everything works fine just 
write clear, easy to understand code.

So in case of GWT-RPC + command pattern you maybe end up with something 
like:

public Result execute(Command cmd) {
  HttpSession session = getThreadLocalRequest().getSession();
  //HttpSession needs to be mocked or stubbed
  Cache cache = new SessionBackedCache(session); 
  //following code does not know anything about servlets and GWT-RPC
  CommandDispatcher dispatcher = new DefaultCommandDispatcher();
  CommandExecutor executor = new DefaultCommandExecutor(cache, dispatcher);
  Result result = executor.execute(cmd);
  return result;
}

With this code you can unit test SessionBackedCache, 
DefaultCommandDispatcher, DefaultCommandExecutor and then I would think 
twice if I would write a test case for the GWT-RPC method itself as its 
implementation is super simple. When using an injection library like 
google-guice this code would probably be even shorter.

If I could avoid it, I would never delegate to a private method, like in 
your example code, and then make this private method accessible again using 
reflection during tests. IMHO tests should cover public methods and not 
private ones.

-- J.

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




Re: Offline debugging my gwt app

2013-05-21 Thread yves
Yes hosted.html is included in the CACHE section of the manifest.
I don't have a "devmode.js" file.
Yves

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




Re: Testing GWT without GwtTestCase

2013-05-21 Thread Thad

On Monday, May 20, 2013 2:14:42 PM UTC-4, Goktug Gokdogan wrote:
>
>
>
> On Mon, May 20, 2013 at 6:42 AM, Thad  >wrote:
>
>> Can anyone clarify for me this Google testing blog entry? 
>> http://googletesting.blogspot.com/2009/08/tott-testing-gwt-without-gwttest.html
>>
>> Model, view, presenter I think I'm clear on (ha! yeah, sure), but I'm 
>> trying to understand the Server.class. It's described as "a completely 
>> standard backend with *no dependency on GWT*." (Their emphasis.) So what 
>> is that? Does that mean *not* a service interface and *not* a service 
>> Impl class? If so, where is the RPC coming in?
>>
>>
> That is the Async interface. Technically, it still depends on GWT for the 
> AsyncCallback interface.
> I think what they actually meant is, it doesn't depend on any native 
> methods so it is easy to mock.
>  
>
>> What I'm trying to do--what I think many would like to do--is test RPC 
>> methods without the RPC delay. Right now I do that by calling my 
>> ServiceImpl methods in my JUnit test. This often forces me to mock an 
>> HttpSession object and add an extra method so I can pass that in 
>> (since getThreadLocalRequest() is protected). Testing through my client 
>> would be preferable but the delay is a pain.
>>
>
>
> Refactor your service out of your servlet. A common useful pattern is:
>
> class ServerServlet extends RemoteServiceServlet implements ServerService {
>   ServerServiceImpl service = 
>
>   public void someServerMethod() {
> service.someServerMethod();
>   }
> }
> class ServerServiceImpl implements ServerService {
>   // implement your logic here
> }
>
> Then write the test against for ServerServiceImpl which doesn't depend on 
> any servlet internals. Note that, this is pattern also useful if you need 
> to call ServerService at server side in production.
>

Is that safe? My services makes heavy use of the HttpSession. At a minimum, 
I store the user's connection to the legacy server app I work with, but 
there are other things, too--tables last queried, images retrieved, etc. 
This is why I wish I could override getThreadLocalRequest() with a mock for 
testing.

To have an entirely separate class, I'd have to instantiate it with each 
RPC call so the session object wouldn't get stomped on by another user. I'm 
worried about that overhead once I'm out of development and test and into 
production. Failing that I could pass the session in with the call, but 
then I don't see the point of a separate class. I could just have something 
like this for each public method.

@Override
public LoginInfo doLogin(String server, String name, String passwd) {
  return doLogin(getThreadLocalRequest().getSession(true), server, name, 
password);
}

private LoginInfo doLogin(HttpSession session, String server, String name, 
String passwd) {
  MyApp app = new MyApp();
  // prep more params and log in
  ...
  app.login(server, name, passwd, param0...);
  // remember session
  ...
  return app.getLoginInfo();
}

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




Re: JPA issue: A parent cannot be established or changed once an object has been persisted.

2013-05-21 Thread Alfredo Quiroga
Or use a cascade persist, merge to force creation or merge respectively

Sent from my iPhone

On May 21, 2013, at 7:02 AM, Juan Pablo Gardella  
wrote:

> You should persist company before persist Tradesman or attach to an existent 
> company. This relation should be explicit. Create 
> company.addTrademan(Trademan t) method:
> 
> company.addTrademan(Trademan t){
> users.add(t);
> t.setCompany(this);
> }
> 
> Call this in a transactional method.
> 
> Juan
> 
> 
> 
> 
> 
> 
> 2013/5/21 Nermin 
>> Dear Juan,
>> 
>> I tried @ManyToOne(optional=false), unfortunately no changes.
>> In my current setting, the @PrePersist is called only once. (I see it on 
>> system out) That means: no multiple attempts to persist Tradesman entity.
>> 
>> However, it looks to me that whenever I change parameters on the Tradesman 
>> entity JPA creates/persists for some reason the Tradesman in the DB, 
>> independently from the Company entity.
>> I use Standard GWT settings: GWT 2.5, DataNucleus on Appengine Datastore.
>> 
>> The scenario I am describing here is a standard scenario you will face when 
>> using GWT with JPA. I am surprised that my code is not working.
>> @PrePersist works fine as long as the Entity is not in a owned relation with 
>> other entities.
>> 
>> Does anyone has an idea what could be wrong here?
>> 
>> Thank you!!
>> 
>> Nermin
>> 
>> @Thomas: Thank you for the advise. I will 
>> 
>> Am Dienstag, 21. Mai 2013 12:01:43 UTC+2 schrieb Juan Pablo Gardella:
>>> 
>>> Update your entity as: 
>>> 
>>> @Entity
>>> public class Tradesman extends User{
>>> @ManyToOne(optional=false)
>>> private Company company;
>>> 
>>> @PrePersist
>>> public void hashPassword(){
>>> setPassword(BCrypt.hashpw(entity.getPassword(), BCrypt.gensalt());
>>> }
>>> 
>>> And then check where are you persisting Tradesman without company. 
>>> 
>>> 
>>> 
>>> 2013/5/21 Thomas Broyer 
 
 
 On Tuesday, May 21, 2013 11:18:42 AM UTC+2, Nermin wrote:
> 
> Dear GWT developers,
> 
> I have a "probably simple" problem with my application which I am 
> obviously not able to solve.
> 
> Two Classes: Company, Tradesman
> 
> @Entity
> public class Company {
> @OneToMany(cascade = CascadeType.ALL, mappedBy = "company")
> private List users = new ArrayList();
> 
> 
> }
> 
> 
> @Entity
> public class Tradesman extends User{
> @ManyToOne
> private Company company;
> 
> @PrePersist
> public void hashPassword(){
> setPassword(BCrypt.hashpw(entity.getPassword(), BCrypt.gensalt());
> }
> 
> JSR 303 validation on GWT is activated.
> 
> Here is the error message:
> Detected attempt to establish Company(no-id-yet) as the parent of 
> Tradesman(356) but the entity identified by Tradesman(356) has already 
> been persisted without a parent.  A parent cannot be established or 
> changed once an object has been persisted.
> 
> My problem is obviously that when I change some parameters within the 
> Tradesman entity within the @PrePersist method, a new child entity is 
> created.
> In case I do not touch any parameter, in the @PrePersist, everything 
> works fine.
> 
> What am I doing wrong here?
 
 You're not reaching the appropriate group ;-)
 
 I suppose you're using AppEngine (form what I know of JPA, I can't see a 
 reason for that kind of message, unless you're using JPA on AppEngine), in 
 which case you can ask for support on StackOverflow: 
 https://developers.google.com/appengine/community
 -- 
 You received this message because you are subscribed to the Google Groups 
 "Google Web Toolkit" group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to google-web-toolkit+unsubscr...@googlegroups.com.
 To post to this group, send email to google-we...@googlegroups.com.
 Visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google Web Toolkit" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to google-web-toolkit+unsubscr...@googlegroups.com.
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group

Re: Handling Violations controlled by groups or Violations not found by default validation

2013-05-21 Thread Thomas Broyer
>From the point of view of RF, these are just an exception thrown by the 
service method, like any other.
If you want to communicate failure to your client with specific 
information, then you have to make your service method return a response 
object containing the status (success/failure) and the details about the 
failure. onFailure is about *exceptional cases*, i.e. things that should 
*not* happen.

If it were me, I'd remove bean validation from RF entirely. It was useful 
when and meaningful when RF had optimistic locking (back in its really 
early days in the first GWT 2.1 milestones), but currently it's just 
confusing: because you send a diff, validation could fail not because you 
failed on the client-side, but because someone else modified a field that 
you didn't touch, and now conflicts with a field you modified on the 
client; now how do you fix that?
Keep RF automatic validation only for field-level syntactic / range 
validation, not for anything else; and for "business rules" inside service 
methods, they're just errors like any other, so treat them as such (see 
above)

On Tuesday, May 21, 2013 4:13:52 PM UTC+2, Alex opn wrote:
>
> Thanks for your answer!
>
> Well...propably I'm abusing bean validation (?), but in my case that 
> doesn't help (actually I'm already doing it like this with different 
> groups).
>
> I'll try to explain my problem:
>
> Basically I've got two validation groups which both should be run on the 
> server-side: Client and Server 
>
> Client: These validators should be run when an object enters the server 
> from the client (in the ServiceLayerDecorator)
> Server: These validators should be run before persist / update etc happens 
> (in my DAOs)
>
> The reason why I separated it like this is that there are some class level 
> constraints which may be violated when an object enters the server that 
> should get corrected in the service method afterwards, but for safety be 
> checked again before updating the database.
>
> So far that works good and was pretty easy to implement:
>
> ServiceLayerDecorator:
>
> @Override
> public  Set> validate(T domainObject) {
> return validator.validate(domainObject, Client.class);
> }
>
> But ViolationExceptions occuring later are, as Michael already explained 
> pretty well, reported as ServerFailures, not as ConstraintViolations -> 
> non-resusable RequestContext, no error messages shown etc :-/
>
> I already tried to copy/paste SimpleRequestProcessor & 
> RequestFactoryServlet (into com.google... package structure) to change it 
> to my needs. I have to admit though that I couldn't figure out how to catch 
> all exceptions and not handle ConstraintViolationExceptions as server 
> failures. I would already be happy with that although it feels a bit hacky 
> :)! 
>
> Am Dienstag, 21. Mai 2013 14:58:32 UTC+2 schrieb Jens:
>>
>> By default, GWT calls validator.validate(domain) in 
>> ReflectiveServiceLayer.validate(), but you probably want 
>>
>> if(domain.getId() == null) {
>>   return validator.validate(domain, CreateGroup.class);
>> }
>> return validator.validate(domain, Server/DefaultGroup.class);
>>
>> You can do this by providing a custom ServiceLayerDecorator to 
>> RequestFactoryServlet and implement ServiceLayerDecorator.validate(T 
>> domain) accordingly.
>>
>> -- J.
>>
>

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




Re: Handling Violations controlled by groups or Violations not found by default validation

2013-05-21 Thread Alex opn
Thanks for your answer!

Well...propably I'm abusing bean validation (?), but in my case that 
doesn't help (actually I'm already doing it like this with different 
groups).

I'll try to explain my problem:

Basically I've got two validation groups which both should be run on the 
server-side: Client and Server 

Client: These validators should be run when an object enters the server 
from the client (in the ServiceLayerDecorator)
Server: These validators should be run before persist / update etc happens 
(in my DAOs)

The reason why I separated it like this is that there are some class level 
constraints which may be violated when an object enters the server that 
should get corrected in the service method afterwards, but for safety be 
checked again before updating the database.

So far that works good and was pretty easy to implement:

ServiceLayerDecorator:

@Override
public  Set> validate(T domainObject) {
return validator.validate(domainObject, Client.class);
}

But ViolationExceptions occuring later are, as Michael already explained 
pretty well, reported as ServerFailures, not as ConstraintViolations -> 
non-resusable RequestContext, no error messages shown etc :-/

I already tried to copy/paste SimpleRequestProcessor & 
RequestFactoryServlet (into com.google... package structure) to change it 
to my needs. I have to admit though that I couldn't figure out how to catch 
all exceptions and not handle ConstraintViolationExceptions as server 
failures. I would already be happy with that although it feels a bit hacky 
:)! 

Am Dienstag, 21. Mai 2013 14:58:32 UTC+2 schrieb Jens:
>
> By default, GWT calls validator.validate(domain) in 
> ReflectiveServiceLayer.validate(), but you probably want 
>
> if(domain.getId() == null) {
>   return validator.validate(domain, CreateGroup.class);
> }
> return validator.validate(domain, Server/DefaultGroup.class);
>
> You can do this by providing a custom ServiceLayerDecorator to 
> RequestFactoryServlet and implement ServiceLayerDecorator.validate(T 
> domain) accordingly.
>
> -- J.
>

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




Re: IE9 problem with GWT

2013-05-21 Thread Honza Rames
If you display the message in DialogBox (or PopupPanel), are you displaying 
glass to darken the window? If so doesn't the glass overlap your message? 
It could be a problem of layouting, are you using multiple z-orders in your 
app? These issues should be easy to figure out in developer tools that are 
present in IE9.

Honza

On Tuesday, May 21, 2013 12:48:41 PM UTC+2, Mike wrote:
>
> GWT Release: 2.5.0
>
> Browser: IE9
> Our clients have a problem using our web application because, on IE9, when 
> the application shows a message (i.e., to confirm if a file is uploaded or 
> not), the focus
> remains behind the message shown and it is impossible to interact with the 
> message, so you can't close it and you can't work with the application either.
> It is not a problem of the application code, it is a problem of the version 9 
> of IE, it does not happen with IE 10.
> The message shown is modal.
>
> I know it is an alternative using Mozilla or Google Chrome, but our client is 
> a little bit special, so he does not want to use other web browsers.
>
> Any idea? Has this problem happened to someone else?
>
> P.D.: Sorry if there is any mistake in the grammar or in some word.
>
>

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




Re: Super dev mode - sourcemap not working anymore

2013-05-21 Thread Martones
I tryed to reinstall the bookmark, this didnt help. But thanks for your tip 
;)

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




Re: Handling Violations controlled by groups or Violations not found by default validation

2013-05-21 Thread Jens
By default, GWT calls validator.validate(domain) in 
ReflectiveServiceLayer.validate(), but you probably want 

if(domain.getId() == null) {
  return validator.validate(domain, CreateGroup.class);
}
return validator.validate(domain, Server/DefaultGroup.class);

You can do this by providing a custom ServiceLayerDecorator to 
RequestFactoryServlet and implement ServiceLayerDecorator.validate(T 
domain) accordingly.

-- J.

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




Re: MVP For Popups

2013-05-21 Thread David

Typically you would have a Presenter that  initializes your view ( the 
static dom) , loads your view with data from an  async server invocation , 
and receives requests from the view for more data .   Have a look at 
https://developers.google.com/web-toolkit/articles/mvp-architecture-2.

Apart from dispatching url place requests via browser History, I personally 
hold off from using the event bus until  I have a situation where multiple 
views may be interested in a single event or a given view is reused by many 
use cases with different presenters.The EventBus also is handy 
for managing a model cache (broadcasting model changes to interested views).

Here's a recent video from last weeks Google IO :
https://www.youtube.com/watch?v=kilmaSRq49g   .  The EventBus is covered 
about halfway in.

David


On Monday, May 20, 2013 8:15:22 AM UTC-4, Tim Hill wrote:
>
> Thanks Oliver, that has got me on the right track :)
>
> Next question... When I click on the save address button (for example), 
> the callback registers that the save button for address has been clicked 
> and runs the required method in the callback. This then calls an async 
> method in another class to save the address to a local SQLite instance. 
> What would be the best way to pass back the success/failure of the database 
> operation? Would it be on the eventbus, or is there a more preferred way?
>
> Sorry for the noddy questions, but still learning!
>
> Cheers
>
> Tim
>
>

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




Re: Handling Violations controlled by groups or Violations not found by default validation

2013-05-21 Thread Alex opn
I just ran into the same issue. As there is no way to get or change the 
SimpleRequestProcessor im stuck now! Have you found out anything more, 
Michael Wiles?

Am Mittwoch, 27. März 2013 10:52:24 UTC+1 schrieb Michael Wiles:
>
> I'm using GWT 2.5.0 and Request Factory.
>
> I have configured a constraint to only apply on create (initial save) of 
> my object.
>
> This violation is not picked up by the default gwt request factory 
> violation check mechanism - which kind of makes sense I guess, because it's 
> in a group (I assume).
>
> But it is thrown when I actually call my method.
>
> So then what happens is that the violation exception is picked up as a 
> server failure and not as a violation exception.
>
> This is because in the 
> SimpleRequestProcessor
>  and 
> method void process(RequestMessage req, ResponseMessage resp). The check 
> violations is called before the method is invoked. This is fine, except 
> that because my violation is in a group and I've configured it via this 
> group to only apply on create the violation is not picked up. It is only 
> picked up when the actually method is called.
>
> And there is no check to see if the _method_ throws a violation exception 
> and then to deal with any violation exceptions actually thrown by my 
> method...
>
> Would it not be possible to add a try catch around my method being called 
> and dealing with these violations the same as the "normal" violation 
> exceptions?
>
> Or maybe somebody can tell me how to configure the gwt request processing 
> to handle these violation exceptions and send them to the client as 
> violation exceptions?
>

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




Re: IE9 problem with GWT

2013-05-21 Thread Juan Pablo Gardella
How do you show messages?


2013/5/21 Mike 

> GWT Release: 2.5.0
>
> Browser: IE9
> Our clients have a problem using our web application because, on IE9, when 
> the application shows a message (i.e., to confirm if a file is uploaded or 
> not), the focus
> remains behind the message shown and it is impossible to interact with the 
> message, so you can't close it and you can't work with the application either.
> It is not a problem of the application code, it is a problem of the version 9 
> of IE, it does not happen with IE 10.
> The message shown is modal.
>
> I know it is an alternative using Mozilla or Google Chrome, but our client is 
> a little bit special, so he does not want to use other web browsers.
>
> Any idea? Has this problem happened to someone else?
>
> P.D.: Sorry if there is any mistake in the grammar or in some word.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

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




Re: JPA issue: A parent cannot be established or changed once an object has been persisted.

2013-05-21 Thread Juan Pablo Gardella
You should persist company before persist Tradesman or attach to an
existent company. This relation should be explicit. Create
company.addTrademan(Trademan t) method:

company.addTrademan(Trademan t){
users.add(t);
t.setCompany(this);
}

Call this in a transactional method.

Juan






2013/5/21 Nermin 

> Dear Juan,
>
> I tried *@ManyToOne(optional=false)*, unfortunately no changes.
> In my current setting, the @PrePersist is called only once. (I see it on
> system out) That means: no multiple attempts to persist Tradesman entity.
>
> However, it looks to me that whenever I change parameters on the Tradesman
> entity JPA creates/persists for some reason the Tradesman in the DB,
> independently from the Company entity.
> I use Standard GWT settings: GWT 2.5, DataNucleus on Appengine Datastore.
>
> The scenario I am describing here is a standard scenario you will face
> when using GWT with JPA. I am surprised that my code is not working.
> @PrePersist works fine as long as the Entity is not in a owned relation
> with other entities.
>
> Does anyone has an idea what could be wrong here?
>
> Thank you!!
>
> Nermin
>
> @Thomas: Thank you for the advise. I will
>
> Am Dienstag, 21. Mai 2013 12:01:43 UTC+2 schrieb Juan Pablo Gardella:
>>
>> Update your entity as:
>>
>> @Entity
>> public class Tradesman extends User{
>> @ManyToOne(optional=false)
>> private Company company;
>>
>> *@PrePersist*
>> public void hashPassword(){
>> setPassword(BCrypt.hashpw(**enti**ty.getPassword(),
>> BCrypt.gensalt());
>> }
>>
>> And then check where are you persisting Tradesman without company.
>>
>>
>>
>> 2013/5/21 Thomas Broyer 
>>
>>>
>>>
>>> On Tuesday, May 21, 2013 11:18:42 AM UTC+2, Nermin wrote:

 Dear GWT developers,

 I have a "probably simple" problem with my application which I am
 obviously not able to solve.

 Two Classes: Company, Tradesman

 @Entity
 public class Company {
 @OneToMany(cascade = CascadeType.ALL, mappedBy = "company")
 private List users = new ArrayList();

 
 }


 @Entity
 public class Tradesman extends User{
 @ManyToOne
 private Company company;

 *@PrePersist*
 public void hashPassword(){
 setPassword(BCrypt.hashpw(**enti**ty.getPassword(),
 BCrypt.gensalt());
 }

 *JSR 303 validation on GWT is activated.*

 Here is the *error message:
 *Detected attempt to establish Company(no-id-yet) as the parent of
 Tradesman(356) but the entity identified by Tradesman(356) has already been
 persisted without a parent.  A parent cannot be established or changed once
 an object has been persisted.

 My problem is obviously that when I change some parameters within the
 Tradesman entity within the *@PrePersist* method, a new child entity
 is created.
 In case I do not touch any parameter, in the @PrePersist, everything
 works fine.

 What am I doing wrong here?

>>>
>>> You're not reaching the appropriate group ;-)
>>>
>>> I suppose you're using AppEngine (form what I know of JPA, I can't see a
>>> reason for that kind of message, unless you're using JPA on AppEngine), in
>>> which case you can ask for support on StackOverflow: https://**
>>> developers.google.com/**appengine/community
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Google Web Toolkit" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to google-web-toolkit+**unsubscr...@googlegroups.com.
>>> To post to this group, send email to google-we...@**googlegroups.com.
>>> Visit this group at http://groups.google.com/**
>>> group/google-web-toolkit?hl=en
>>> **.
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out
>>> .
>>>
>>>
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

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




IE9 problem with GWT

2013-05-21 Thread Mike


GWT Release: 2.5.0

Browser: IE9
Our clients have a problem using our web application because, on IE9, when the 
application shows a message (i.e., to confirm if a file is uploaded or not), 
the focus
remains behind the message shown and it is impossible to interact with the 
message, so you can't close it and you can't work with the application either.
It is not a problem of the application code, it is a problem of the version 9 
of IE, it does not happen with IE 10.
The message shown is modal.

I know it is an alternative using Mozilla or Google Chrome, but our client is a 
little bit special, so he does not want to use other web browsers.

Any idea? Has this problem happened to someone else?

P.D.: Sorry if there is any mistake in the grammar or in some word.

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




Re: JPA issue: A parent cannot be established or changed once an object has been persisted.

2013-05-21 Thread Nermin
Dear Juan,

I tried *@ManyToOne(optional=false)*, unfortunately no changes.
In my current setting, the @PrePersist is called only once. (I see it on 
system out) That means: no multiple attempts to persist Tradesman entity.

However, it looks to me that whenever I change parameters on the Tradesman 
entity JPA creates/persists for some reason the Tradesman in the DB, 
independently from the Company entity.
I use Standard GWT settings: GWT 2.5, DataNucleus on Appengine Datastore.

The scenario I am describing here is a standard scenario you will face when 
using GWT with JPA. I am surprised that my code is not working.
@PrePersist works fine as long as the Entity is not in a owned relation 
with other entities.

Does anyone has an idea what could be wrong here?

Thank you!!

Nermin

@Thomas: Thank you for the advise. I will 

Am Dienstag, 21. Mai 2013 12:01:43 UTC+2 schrieb Juan Pablo Gardella:
>
> Update your entity as: 
>
> @Entity
> public class Tradesman extends User{
> @ManyToOne(optional=false)
> private Company company;
>
> *@PrePersist*
> public void hashPassword(){
> setPassword(BCrypt.hashpw(**entity.getPassword(), 
> BCrypt.gensalt());
> }
>
> And then check where are you persisting Tradesman without company. 
>
>
>
> 2013/5/21 Thomas Broyer >
>
>>
>>
>> On Tuesday, May 21, 2013 11:18:42 AM UTC+2, Nermin wrote:
>>>
>>> Dear GWT developers,
>>>
>>> I have a "probably simple" problem with my application which I am 
>>> obviously not able to solve.
>>>
>>> Two Classes: Company, Tradesman
>>>
>>> @Entity
>>> public class Company {
>>> @OneToMany(cascade = CascadeType.ALL, mappedBy = "company")
>>> private List users = new ArrayList();
>>>
>>> 
>>> }
>>>
>>>
>>> @Entity
>>> public class Tradesman extends User{
>>> @ManyToOne
>>> private Company company;
>>>
>>> *@PrePersist*
>>> public void hashPassword(){
>>> setPassword(BCrypt.hashpw(**entity.getPassword(), 
>>> BCrypt.gensalt());
>>> }
>>>
>>> *JSR 303 validation on GWT is activated.*
>>>
>>> Here is the *error message:
>>> *Detected attempt to establish Company(no-id-yet) as the parent of 
>>> Tradesman(356) but the entity identified by Tradesman(356) has already been 
>>> persisted without a parent.  A parent cannot be established or changed once 
>>> an object has been persisted.
>>>
>>> My problem is obviously that when I change some parameters within the 
>>> Tradesman entity within the *@PrePersist* method, a new child entity is 
>>> created.
>>> In case I do not touch any parameter, in the @PrePersist, everything 
>>> works fine.
>>>
>>> What am I doing wrong here?
>>>
>>
>> You're not reaching the appropriate group ;-)
>>
>> I suppose you're using AppEngine (form what I know of JPA, I can't see a 
>> reason for that kind of message, unless you're using JPA on AppEngine), in 
>> which case you can ask for support on StackOverflow: 
>> https://developers.google.com/appengine/community
>>  
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google Web Toolkit" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to google-web-toolkit+unsubscr...@googlegroups.com .
>> To post to this group, send email to 
>> google-we...@googlegroups.com
>> .
>> Visit this group at 
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

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




Re: JPA issue: A parent cannot be established or changed once an object has been persisted.

2013-05-21 Thread Juan Pablo Gardella
Update your entity as:

@Entity
public class Tradesman extends User{
@ManyToOne(optional=false)
private Company company;

*@PrePersist*
public void hashPassword(){
setPassword(BCrypt.hashpw(**entity.getPassword(), BCrypt.gensalt());
}

And then check where are you persisting Tradesman without company.



2013/5/21 Thomas Broyer 

>
>
> On Tuesday, May 21, 2013 11:18:42 AM UTC+2, Nermin wrote:
>>
>> Dear GWT developers,
>>
>> I have a "probably simple" problem with my application which I am
>> obviously not able to solve.
>>
>> Two Classes: Company, Tradesman
>>
>> @Entity
>> public class Company {
>> @OneToMany(cascade = CascadeType.ALL, mappedBy = "company")
>> private List users = new ArrayList();
>>
>> 
>> }
>>
>>
>> @Entity
>> public class Tradesman extends User{
>> @ManyToOne
>> private Company company;
>>
>> *@PrePersist*
>> public void hashPassword(){
>> setPassword(BCrypt.hashpw(**entity.getPassword(),
>> BCrypt.gensalt());
>> }
>>
>> *JSR 303 validation on GWT is activated.*
>>
>> Here is the *error message:
>> *Detected attempt to establish Company(no-id-yet) as the parent of
>> Tradesman(356) but the entity identified by Tradesman(356) has already been
>> persisted without a parent.  A parent cannot be established or changed once
>> an object has been persisted.
>>
>> My problem is obviously that when I change some parameters within the
>> Tradesman entity within the *@PrePersist* method, a new child entity is
>> created.
>> In case I do not touch any parameter, in the @PrePersist, everything
>> works fine.
>>
>> What am I doing wrong here?
>>
>
> You're not reaching the appropriate group ;-)
>
> I suppose you're using AppEngine (form what I know of JPA, I can't see a
> reason for that kind of message, unless you're using JPA on AppEngine), in
> which case you can ask for support on StackOverflow:
> https://developers.google.com/appengine/community
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

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




Re: JPA issue: A parent cannot be established or changed once an object has been persisted.

2013-05-21 Thread Thomas Broyer


On Tuesday, May 21, 2013 11:18:42 AM UTC+2, Nermin wrote:
>
> Dear GWT developers,
>
> I have a "probably simple" problem with my application which I am 
> obviously not able to solve.
>
> Two Classes: Company, Tradesman
>
> @Entity
> public class Company {
> @OneToMany(cascade = CascadeType.ALL, mappedBy = "company")
> private List users = new ArrayList();
>
> 
> }
>
>
> @Entity
> public class Tradesman extends User{
> @ManyToOne
> private Company company;
>
> *@PrePersist*
> public void hashPassword(){
> setPassword(BCrypt.hashpw(entity.getPassword(), BCrypt.gensalt());
> }
>
> *JSR 303 validation on GWT is activated.*
>
> Here is the *error message:
> *Detected attempt to establish Company(no-id-yet) as the parent of 
> Tradesman(356) but the entity identified by Tradesman(356) has already been 
> persisted without a parent.  A parent cannot be established or changed once 
> an object has been persisted.
>
> My problem is obviously that when I change some parameters within the 
> Tradesman entity within the *@PrePersist* method, a new child entity is 
> created.
> In case I do not touch any parameter, in the @PrePersist, everything works 
> fine.
>
> What am I doing wrong here?
>

You're not reaching the appropriate group ;-)

I suppose you're using AppEngine (form what I know of JPA, I can't see a 
reason for that kind of message, unless you're using JPA on AppEngine), in 
which case you can ask for support on StackOverflow: 
https://developers.google.com/appengine/community

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




JPA issue: A parent cannot be established or changed once an object has been persisted.

2013-05-21 Thread Nermin
Dear GWT developers,

I have a "probably simple" problem with my application which I am obviously 
not able to solve.

Two Classes: Company, Tradesman

@Entity
public class Company {
@OneToMany(cascade = CascadeType.ALL, mappedBy = "company")
private List users = new ArrayList();


}


@Entity
public class Tradesman extends User{
@ManyToOne
private Company company;

*@PrePersist*
public void hashPassword(){
setPassword(BCrypt.hashpw(entity.getPassword(), BCrypt.gensalt());
}

*JSR 303 validation on GWT is activated.*

Here is the *error message:
*Detected attempt to establish Company(no-id-yet) as the parent of 
Tradesman(356) but the entity identified by Tradesman(356) has already been 
persisted without a parent.  A parent cannot be established or changed once 
an object has been persisted.

My problem is obviously that when I change some parameters within the 
Tradesman entity within the *@PrePersist* method, a new child entity is 
created.
In case I do not touch any parameter, in the @PrePersist, everything works 
fine.

What am I doing wrong here?

Thank you in advance:

Nermin

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




Re: problem with javax.servlet.ServletContext in gwt-user.jar

2013-05-21 Thread Gabriele Prandini
Thanks Jens, i thik the problem is what you explain


2013/5/21 Thomas Broyer 

>
>
> On Tuesday, May 21, 2013 10:30:44 AM UTC+2, gabriele.prandini wrote:
>>
>> I'm not deployng the app...
>> the error comes in compile time.
>>
>
> Er, you're running Tomcat at compile-time? (or is the blog you linked to
> actually unrelated to your issue?)
>
> Deleting the servletcontext.class in the jar resolved the problem
>>
>>
> The correct fix is that you shouldn't compile your server-side classes
> with gwt-user. I don't know Grails build system and I don't know how the
> Grails GWT plugin works (heck I don't actually know Grails but by name), so
> I can't tell how to solve your problem in Grails, but you should only use
> gwt-user for client-side code, and use gwt-servlet for server-side code
> (and for deployment).
> You should ask the Grails-GWT guys.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Google Web Toolkit" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/JMp7pOX08VA/unsubscribe?hl=en
> .
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

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




Re: Super dev mode - sourcemap not working anymore

2013-05-21 Thread Juan Pablo Gardella
I don't know what is your problem, but try
https://groups.google.com/forum/?fromgroups#!topic/google-web-toolkit/78Hl47eFPKw
.


2013/5/21 Martones 

> Hello Brian, thanks for your answer.
>
> I tested the Showcase sample from the 2.5.1 GA bundle and the issue is the
> same. SDM works well for me. Here is my compilation result which states
> that source maps are well enabled :
>
>Compiling 1 permutation
>   Compiling permutation 0...
>   Source Maps Enabled
>Compile of permutations succeeded
> Linking into 
>Link succeeded
>Compilation succeeded -- 27,468s
> Compile completed in 27825 ms
>
> In Chrome I have "Enable source maps" checked. But I see no java in my
> source tab or the CTRL-o window. Using GWT 2.5.1.
>
> Many thanks,
>
> Ludovit
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

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




Re: problem with javax.servlet.ServletContext in gwt-user.jar

2013-05-21 Thread Thomas Broyer


On Tuesday, May 21, 2013 10:30:44 AM UTC+2, gabriele.prandini wrote:
>
> I'm not deployng the app...
> the error comes in compile time.
>

Er, you're running Tomcat at compile-time? (or is the blog you linked to 
actually unrelated to your issue?)

Deleting the servletcontext.class in the jar resolved the problem
>
>
The correct fix is that you shouldn't compile your server-side classes with 
gwt-user. I don't know Grails build system and I don't know how the Grails 
GWT plugin works (heck I don't actually know Grails but by name), so I 
can't tell how to solve your problem in Grails, but you should only use 
gwt-user for client-side code, and use gwt-servlet for server-side code 
(and for deployment).
You should ask the Grails-GWT guys.

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




Re: problem with javax.servlet.ServletContext in gwt-user.jar

2013-05-21 Thread Jens
During compilation you have a servlet 3.0 vs. servlet 2.5 (which is 
embedded in gwt-user.jar/gwt-servlet.jar) mismatch. Make sure you have 
servlet 3.0 api on classpath before gwt-user.jar.

-- J.

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




Re: problem with javax.servlet.ServletContext in gwt-user.jar

2013-05-21 Thread Gabriele Prandini
I'm not deployng the app...
the error comes in compile time.

Deleting the servletcontext.class in the jar resolved the problem


2013/5/21 Thomas Broyer 

>
>
> On Monday, May 20, 2013 10:27:17 AM UTC+2, gabriele.prandini wrote:
>>
>> I'm using GWT (2.5.0) with grails (www.grails.org)
>> I just upgraded from grails 1.3.7 to grails 2.2.2
>> Tryng to compile my project i got this error
>>
>> Caused by: java.lang.NoSuchMethodError: javax.servlet.ServletContext.**
>> getSessionCookieConfig()**Ljavax/servlet/**SessionCookieConfig;
>>
>> you can find some information here:
>> http://www.javamonamour.org/**2012/07/tomcat-error-on-**startup.html
>>
>> there seems to be a problem with the wrong version of
>> javax.servlet.ServletContext in gwt-user.jar
>>
>> I have, in my project some versione of the servletcontext, for example in
>> grails library, that have the method public SessionCookieConfig
>> getSessionCookieConfig()
>>
>> but in the servletcontext in the gwt-user.jar the servletcontext doesn't
>> have such method
>>
>> what i can do?
>>
>
> How is it that gwt-user is deployed? It's only needed at compile-time and
> must not be deployed (gwt-servlet should, if you use GWT-RPC)
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Google Web Toolkit" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/JMp7pOX08VA/unsubscribe?hl=en
> .
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

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




Re: Super dev mode - sourcemap not working anymore

2013-05-21 Thread Martones
Hello Brian, thanks for your answer. 

I tested the Showcase sample from the 2.5.1 GA bundle and the issue is the 
same. SDM works well for me. Here is my compilation result which states 
that source maps are well enabled :

   Compiling 1 permutation
  Compiling permutation 0...
  Source Maps Enabled
   Compile of permutations succeeded
Linking into 
   Link succeeded
   Compilation succeeded -- 27,468s
Compile completed in 27825 ms

In Chrome I have "Enable source maps" checked. But I see no java in my 
source tab or the CTRL-o window. Using GWT 2.5.1. 

Many thanks,

Ludovit

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