Re: GWT project with maven

2013-05-22 Thread kim young ill
cannot believe you know know this yet:

https://github.com/tbroyer/gwt-maven-archetypes


On Thu, May 23, 2013 at 5:36 AM, Navin Surtani wrote:

> Take a look here for source code for the basic HelloWorld example:
>
> https://github.com/steinsag/gwt-maven-example
>
> I used that as an example to follow while building my application.
>
>
> On Thursday, May 23, 2013 7:32:35 AM UTC+8, Srinivasa Rao wrote:
>>
>> Hi , I am looking for the GWT project with the maven setup.
>>
>>  Can you please provide me the link for  the sample project ?
>>
>  --
> 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: GWT project with maven

2013-05-22 Thread Navin Surtani
Take a look here for source code for the basic HelloWorld example:

https://github.com/steinsag/gwt-maven-example

I used that as an example to follow while building my application.


On Thursday, May 23, 2013 7:32:35 AM UTC+8, Srinivasa Rao wrote:
>
> Hi , I am looking for the GWT project with the maven setup. 
>
>  Can you please provide me the link for  the sample project ?
>

-- 
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: Can't deploy my project anymore

2013-05-22 Thread Jeff Smith
I ran into the same problem and could not figure out which configuration
setting got hosed. Fortunately for me, I had a backup on another computer
and just reverted back to that project and GWT 2.5.

That is one of the drawbacks of GWT--there is too much magic going on
behind the scenes spread out in many directories and files. I will never
try upgrading to a new version of GWT without backing up everything first.

Sorry this probably won't help you--I feel your pain.

Best,
Jeff
On May 22, 2013 7:20 PM, "Jack Gage"  wrote:

> Has anyone pinpointed the cause of this?
>
> I have tried to fix this with fresh installations of Eclipse Juno and
> Indigo with the GWT SDK and Designer plugins, have deleted the gwt-cache
> dirs, am using jre6, and yet the problem persists, very weird.  What else
> bothers me about this is that I can't figure out what I did that made this
> start happening; from my perspective this functionality was working just
> fine and then started failing one day when I did not make any substantial
> (from my perspective) changes to my environment.
>
> Maybe next I should try to print out all my code on paper, buy a new
> computer, install and setup everything, and type in the code again.
>
> Thanks!
>
>
> On Monday, March 18, 2013 4:38:02 PM UTC-4, JoyaleXandre wrote:
>>
>> Hi everybody,
>>
>> Since friday I can't deploy my project anymore.
>>
>> Went I start the war generation with the deploy button I instantly get an
>> error *message saying*:
>> "Designer error occured.
>> Select Details >> for more information.
>> See the Error Log for more information.
>>
>> Reason:
>> Parse error or internal Designer error,"
>>
>> *The stack trace is this: *
>> "Plug-in Provider: Google
>> Plug-in Name:
>> Plug-in ID: org.eclipse
>>
>> java.lang.**NoClassDefFoundError: org/eclipse/jdt/launching/**
>> IJavaLaunchConfigurationConsta**nts
>> at com.google.gdt.eclipse.**designer.actions.deploy.**
>> DeployModuleAction.**getGWTProjectClasspath(**
>> DeployModuleAction.java:364)
>> at com.google.gdt.eclipse.**designer.actions.deploy.**
>> DeployModuleAction.**createBuildScript(**DeployModuleAction.java:150)
>> at com.google.gdt.eclipse.**designer.actions.deploy.**
>> DeployModuleAction.access$1(**DeployModuleAction.java:131)
>> at com.google.gdt.eclipse.**designer.actions.deploy.**
>> DeployModuleAction$1.run(**DeployModuleAction.java:103)
>> at org.eclipse.jface.operation.**ModalContext$**
>> ModalContextThread.run(**ModalContext.java:121)
>>
>> Full stack trace (to see full context):
>> java.lang.reflect.**InvocationTargetException
>> at com.google.gdt.eclipse.**designer.actions.deploy.**
>> DeployModuleAction$1.run(**DeployModuleAction.java:114)
>> at org.eclipse.jface.operation.**ModalContext$**
>> ModalContextThread.run(**ModalContext.java:121)
>> Caused by: java.lang.**NoClassDefFoundError: org/eclipse/jdt/launching/**
>> IJavaLaunchConfigurationConsta**nts
>> at com.google.gdt.eclipse.**designer.actions.deploy.**
>> DeployModuleAction.**getGWTProjectClasspath(**
>> DeployModuleAction.java:364)
>> at com.google.gdt.eclipse.**designer.actions.deploy.**
>> DeployModuleAction.**createBuildScript(**DeployModuleAction.java:150)
>> at com.google.gdt.eclipse.**designer.actions.deploy.**
>> DeployModuleAction.access$1(**DeployModuleAction.java:131)
>> at com.google.gdt.eclipse.**designer.actions.deploy.**
>> DeployModuleAction$1.run(**DeployModuleAction.java:103)
>> ... 1 more
>> "
>>
>> I completely uninstalled the Google Plugin and reinstalled it. I still
>> get this error.
>>
>> My last chance is probably to reinstall Eclipse from scratch, but I would
>> like to avoid reinstalling and configuring all my dev envirronnement.
>>
>> Can somebody help me please. Am I the only one who got this problem since
>> I tried to update the Google Plugin?
>>
>  --
> 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/e3DoVrI6V70/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: primer for mobile development

2013-05-22 Thread mike b
Nino , thx for the links. I will look into those. 

-- 
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: primer for mobile development

2013-05-22 Thread mike b
Ed , thx for the reply. Can you point me to a device emulator? 

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




Re: GWT project with maven

2013-05-22 Thread Spear Timothy
There are a few examples on the web. Start here 
http://mojo.codehaus.org/gwt-maven-plugin/


On May 22, 2013, at 7:32 PM, Srinivasa Rao  wrote:

> Hi , I am looking for the GWT project with the maven setup. 
> 
> Can you please provide me the link for  the sample project ?
> 
> -- 
> 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.




GWT project with maven

2013-05-22 Thread Srinivasa Rao
Hi , I am looking for the GWT project with the maven setup. 

 Can you please provide me the link for  the sample project ?

-- 
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: Can't deploy my project anymore

2013-05-22 Thread Jack Gage
Has anyone pinpointed the cause of this?

I have tried to fix this with fresh installations of Eclipse Juno and 
Indigo with the GWT SDK and Designer plugins, have deleted the gwt-cache 
dirs, am using jre6, and yet the problem persists, very weird.  What else 
bothers me about this is that I can't figure out what I did that made this 
start happening; from my perspective this functionality was working just 
fine and then started failing one day when I did not make any substantial 
(from my perspective) changes to my environment.

Maybe next I should try to print out all my code on paper, buy a new 
computer, install and setup everything, and type in the code again.

Thanks!


On Monday, March 18, 2013 4:38:02 PM UTC-4, JoyaleXandre wrote:
>
> Hi everybody,
>
> Since friday I can't deploy my project anymore. 
>
> Went I start the war generation with the deploy button I instantly get an 
> error *message saying*:
> "Designer error occured.
> Select Details >> for more information.
> See the Error Log for more information.
>
> Reason:
> Parse error or internal Designer error,"
>
> *The stack trace is this: *
> "Plug-in Provider: Google
> Plug-in Name: 
> Plug-in ID: org.eclipse
>
> java.lang.NoClassDefFoundError: 
> org/eclipse/jdt/launching/IJavaLaunchConfigurationConstants
> at 
> com.google.gdt.eclipse.designer.actions.deploy.DeployModuleAction.getGWTProjectClasspath(DeployModuleAction.java:364)
> at 
> com.google.gdt.eclipse.designer.actions.deploy.DeployModuleAction.createBuildScript(DeployModuleAction.java:150)
> at 
> com.google.gdt.eclipse.designer.actions.deploy.DeployModuleAction.access$1(DeployModuleAction.java:131)
> at 
> com.google.gdt.eclipse.designer.actions.deploy.DeployModuleAction$1.run(DeployModuleAction.java:103)
> at 
> org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
>
> Full stack trace (to see full context):
> java.lang.reflect.InvocationTargetException
> at 
> com.google.gdt.eclipse.designer.actions.deploy.DeployModuleAction$1.run(DeployModuleAction.java:114)
> at 
> org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
> Caused by: java.lang.NoClassDefFoundError: 
> org/eclipse/jdt/launching/IJavaLaunchConfigurationConstants
> at 
> com.google.gdt.eclipse.designer.actions.deploy.DeployModuleAction.getGWTProjectClasspath(DeployModuleAction.java:364)
> at 
> com.google.gdt.eclipse.designer.actions.deploy.DeployModuleAction.createBuildScript(DeployModuleAction.java:150)
> at 
> com.google.gdt.eclipse.designer.actions.deploy.DeployModuleAction.access$1(DeployModuleAction.java:131)
> at 
> com.google.gdt.eclipse.designer.actions.deploy.DeployModuleAction$1.run(DeployModuleAction.java:103)
> ... 1 more
> "
>
> I completely uninstalled the Google Plugin and reinstalled it. I still get 
> this error.
>
> My last chance is probably to reinstall Eclipse from scratch, but I would 
> like to avoid reinstalling and configuring all my dev envirronnement.
>
> Can somebody help me please. Am I the only one who got this problem since 
> I tried to update the Google Plugin?
>

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




show selected items after filter

2013-05-22 Thread Rauel
the 2 items selected before the filtering are not shown (as selected) in 
the ListGrid. So the user gets confused because he doesn't know that they 
are saved externally, so I would like to check them again for him. So that 
his view is consistent to what he already checked.

I found the forum a way, I write "addDataArrivedHandler" but how could I do 
this? has anyone ever done this and could help me?

Follow my code

private static ListGrid criaGradeAuxiliares() {
final ListGrid gridAuxiliares = new ListGrid();

gridAuxiliares.setDataSource(DataSource.get(Constantes.DS_USUARIO));
//gridAuxiliares.setAutoFetchData(true);
gridAuxiliares.setFetchOperation("usuariosFiscalizacao");
ListGridField colunaNome = 
FabricaComponentes.criaListGridField(new ConfigListGridField().setNome("nome"));
ListGridField colunaPerfil = 
FabricaComponentes.criaListGridField(new 
ConfigListGridField().setNome("perfil"));
ListGridField colunaUF = 
FabricaComponentes.criaListGridField(new 
ConfigListGridField().setNome("siglaEstado"));
ListGridField colunaEmpresa = 
FabricaComponentes.criaListGridField(new 
ConfigListGridField().setNome("empresaFiscalizadora"));
gridAuxiliares.setWidth100();
gridAuxiliares.setHeight(300);
gridAuxiliares.setFields(colunaNome, colunaPerfil, colunaUF, 
colunaEmpresa);
gridAuxiliares.setSelectionType(SelectionStyle.SIMPLE);

gridAuxiliares.setSelectionAppearance(SelectionAppearance.CHECKBOX);
gridAuxiliares.setShowFilterEditor(true);
gridAuxiliares.setFilterOnKeypress(true);
gridAuxiliares.setFetchDelay(ConstantesVisao.CAMPO_TAM_50);
gridAuxiliares.setAutoFetchData(true);

return gridAuxiliares;
}

-- 
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: primer for mobile development

2013-05-22 Thread Alain Ekambi
Well there s also Touch4j and Titanium4j if you wanna use GWT on mobile.
Touch4j wraps Sencha Touch
Titanium4j wraps Appcelerator Titanium.

Disclaimer:

I m one of the person behind both projects




2013/5/23 Ed 

> I use m-gwt  . You may want to run a device
> emulator to test on. Since it is a browser based environment, you can start
> with the desktop then test on devices.
>
>
> On Wed, May 22, 2013 at 6:56 PM, Mohammad Al-Quraian 
> wrote:
>
>> I'm on the same train, I would like to get some guidance on mobile GWT.
>> At least how to start on that. I'm doing my app in MVP pattern, so it would
>> be great if it fits that.
>>
>> --
>> 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.
>
>
>

-- 
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: primer for mobile development

2013-05-22 Thread Ed
I use m-gwt  . You may want to run a device emulator
to test on. Since it is a browser based environment, you can start with the
desktop then test on devices.


On Wed, May 22, 2013 at 6:56 PM, Mohammad Al-Quraian wrote:

> I'm on the same train, I would like to get some guidance on mobile GWT. At
> least how to start on that. I'm doing my app in MVP pattern, so it would be
> great if it fits that.
>
> --
> 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: primer for mobile development

2013-05-22 Thread Mohammad Al-Quraian
I'm on the same train, I would like to get some guidance on mobile GWT. At 
least how to start on that. I'm doing my app in MVP pattern, so it would be 
great if it fits that.

-- 
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: Exception reporting is broken in GWT: would you support a kickstarter project to fix it?

2013-05-22 Thread Alex Epshteyn
Correction: when I said that a browser needs to support sourcemaps to
generate accurate stack traces, that wasn't entirely accurate.  What a
browser needs to support is the "stack" property of exception objects,
which provides a JavaScript stack trace with both line and column numbers.
 It's the GWT compiler that uses a sourcemap to derive original Java line
numbers and filenames from the browser-provided line and column numbers.
 This functionality is currently broken in GWT, however, and Chrome is
currently the only browser that provides column numbers.  And even if more
browsers add column info in the future, it's almost certain that their
stack trace formats will all be different, so we'll have to patch GWT every
time a new browser adds the support.  My proposed project will leave us in
good shape to be able to do that easily.


On Wed, May 22, 2013 at 5:53 PM, Alex Epshteyn  wrote:

> Thanks for your comment.  Let me respond to your points:
>
> 1) I've seen this point discussed before, and the standard
> counter-argument is that the spirit of OSS is free as in "freedom," not
> "beer."  Lots of developers get paid to work on OSS projects.
>
> 2) This is actually one of the reasons I'm thinking about raising funds.
>  I am already on the verge of using my patch inside my own GWT-based app,
> but if I get some funding I'd be able to justify taking the extra time to
> make sure the patch will pass the review process.
>
> 3) I must point out that your third argument is not in the spirit of GWT,
> which aims to support as many browsers as possible.
>
> As of today, you will not get good stack traces with GWT on any modern
> browser, including WebKit.  By "relevant information", I assume you mean
> sourcemaps support.  Well, Chrome is the only browser that currently
> supports sourcemaps but GWT's existing support for generating stack traces
> with that information is very buggy, and this is one of the things I'm
> working on improving.  I'm also not optimistic that sourcemaps will achieve
> universal support any time soon, if ever.
>
>
>
> On Wed, May 22, 2013 at 4:38 PM, Jens  wrote:
>
>> I dont think you will get paid for it, because:
>>
>> 1.) Its somewhat not in the spirit of open source software
>> 2.) Your patch must go through review and there is no guarantee that it
>> will be committed
>> 3.) GWT will remove IE6/7 support soon and probably in 2014 also IE8
>> support. Also Opera moves to WebKit. That means that there is probably no
>> need for StackTrace emulation anymore in the near future as modern browsers
>> provide the relevant information.
>>
>> -- J.
>>
>> --
>> 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/hP8cQ7AdDUc/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: Exception reporting is broken in GWT: would you support a kickstarter project to fix it?

2013-05-22 Thread Alex Epshteyn
Thanks for your comment.  Let me respond to your points:

1) I've seen this point discussed before, and the standard counter-argument
is that the spirit of OSS is free as in "freedom," not "beer."  Lots of
developers get paid to work on OSS projects.

2) This is actually one of the reasons I'm thinking about raising funds.  I
am already on the verge of using my patch inside my own GWT-based app, but
if I get some funding I'd be able to justify taking the extra time to make
sure the patch will pass the review process.

3) I must point out that your third argument is not in the spirit of GWT,
which aims to support as many browsers as possible.

As of today, you will not get good stack traces with GWT on any modern
browser, including WebKit.  By "relevant information", I assume you mean
sourcemaps support.  Well, Chrome is the only browser that currently
supports sourcemaps but GWT's existing support for generating stack traces
with that information is very buggy, and this is one of the things I'm
working on improving.  I'm also not optimistic that sourcemaps will achieve
universal support any time soon, if ever.



On Wed, May 22, 2013 at 4:38 PM, Jens  wrote:

> I dont think you will get paid for it, because:
>
> 1.) Its somewhat not in the spirit of open source software
> 2.) Your patch must go through review and there is no guarantee that it
> will be committed
> 3.) GWT will remove IE6/7 support soon and probably in 2014 also IE8
> support. Also Opera moves to WebKit. That means that there is probably no
> need for StackTrace emulation anymore in the near future as modern browsers
> provide the relevant information.
>
> -- J.
>
> --
> 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/hP8cQ7AdDUc/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: Exception reporting is broken in GWT: would you support a kickstarter project to fix it?

2013-05-22 Thread Jens
I dont think you will get paid for it, because:

1.) Its somewhat not in the spirit of open source software
2.) Your patch must go through review and there is no guarantee that it 
will be committed
3.) GWT will remove IE6/7 support soon and probably in 2014 also IE8 
support. Also Opera moves to WebKit. That means that there is probably no 
need for StackTrace emulation anymore in the near future as modern browsers 
provide the relevant information.

-- 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-22 Thread yves
Hello GWT-team guys !
Nobody has an idea at least if is it a bug or a feature?
Thanks a lot for your help
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.




Exception reporting is broken in GWT: would you support a kickstarter project to fix it?

2013-05-22 Thread Alex Epshteyn
One of the big problems with deployed GWT apps has always been the
impossibility of tracing JavaScript exceptions back to the Java source
code.  What we need is a true equivalent of Java stack traces.

There was an effort made by the GWT team a couple years ago to solve
this problem ( 
https://code.google.com/p/google-web-toolkit/wiki/WebModeExceptions
), and it was a good start, but unfortunately they gave up without
producing an adequate solution. If you've ever tried to use the
compiler.emulatedStack.recordLineNumbers setting, you know that it is
badly broken: the line numbers and file names reported in the stack
traces are incorrect most of the time, while the the resulting
compiled JavaScript is 70-90% larger than the original.  The way this
feature is currently implemented, the compiler puts instrumentations
in the wrong places most of the time, doesn't do enough to optimize
for code size, and does not provide enough information via symbol maps
for StackTraceDeobfuscator.  On Chrome, theoretically we could use
compiler.useSourceMaps instead, but that feature is badly broken too.

I have spent the last 2 months working on this problem full time, and
I almost have the perfect solution ready.  But I'm an indie developer,
and I can't really afford to go unpaid much longer, because I've
already put business aside for two months to work on this (originally
I thought it would take a week, but I kept finding more and more bugs
and tricky problems to solve, which is why I'm guessing the original
developers gave up on seeing this project through to fruition).

If I started a crowdfunding campaign to help me fund this work to
completion, would you or your employer be willing to contribute?  The
original Google Atlanta team did an amazing job developing GWT for 10+
years, but those guys are all gone, and Google has not had a dedicated
team working on GWT since last summer, so I think it will be up to the
user community to fund its future development from now on.

My goal is perfect JavaScript stack traces with exact Java line
numbers, with only a 50-60% output size increase and similar
performance metrics.  For browsers that support sourcemaps (only
Chrome for now), there will be no output size increase at all, because
I intend to fix all the bugs associated with the
compiler.useSourceMaps feature as well.

-- 
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: drag and drop group

2013-05-22 Thread bhomass
conceptually, of course that is what you want to do. I tried disallow the 
drop from inside the onDragEnter and onDragOver events, but don't see any 
api to set the drag icon to disabled mode. I played 
with event.getDataTransfer().setDragImage(...), but it has no effect.


On Wednesday, May 22, 2013 3:45:39 AM UTC-7, Jens wrote:
>
> Haven't used GWT Drag and Drop yet but can't you just skip the code in 
> your drag or drop handler if your group condition isn't true?
>
> -- 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: Creating clickable links within text

2013-05-22 Thread Joel
Thanks for the response. I made some progress, like you say the trick is 
mostly in processing the DOM in the onBrowserEvent. I also had the issue of 
the pointer/selection trying to be handled by the CellList, this requires 
un-styling it appropriately and turning off selection mode:

cellList.setSelectionModel(new NoSelectionModel(),

DefaultSelectionEventManager.createWhitelistManager());

Propagating the click events will be a little interesting as well as 
conditionally constructing these links in the cell renderer, but the end 
state is in sight.

Thanks!,
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.




primer for mobile development

2013-05-22 Thread mike b
The company I work for just got a secure mobile app that has browser 
integration for the specific platform (iOS,android). 

We have an existing GWT app (several actually) that could have some 
convenient mobile features. 

Can someone provide direction on resources (articles, books, blogs, forum 
posts) that I should read in order to get started on the right track.  

So, I've been using GWT for 2.5 years now and am very familiar with that. 
 I've read about phonegap and the associated GWT projects around it.  

https://code.google.com/p/gwt-phonegap/
http://www.m-gwt.com/

What else??

My biggest question is:  
How to setup a browser environment to test chrome and safari (iOS) ?  

I will most likely never have the ability to actually have a Mac or iPad 
and will have to test on my personal iPhone. (argh)


Thanks in advance!

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




Build tree table with GWT CellTableBuilder

2013-05-22 Thread jaga
Hi, I managed this. I followed the example given on the latest GWT showcase for 
the custom data grid 
http://gwt.googleusercontent.com/samples/Showcase/Showcase.html#!CwCellTable

Key is new TableRowBuilder. You can inject rows into the table. Use a Click 
event on a cell to trigger the injection. I used an asynchronous callback to 
get the data and found it easier to redraw the entire table. In the example the 
objects already contain the data. He iterates through a list building a new row 
for each item. 

James 

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




Build tree table with GWT CellTableBuilder

2013-05-22 Thread Ben


Is it possible to build a tree table like 
thiswith the new 
CellTableBuilder of "vanilla" GWT?

The GWT Showcase 
example
 only 
allows to expand the "top level" rows. My use case requires expansion of 
multiple row levels.

How can I achieve this with pure GWT?


Regards
Ben

-- 
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-22 Thread Juan Pablo Gardella
Show how you are persisting the entities.


2013/5/22 Nermin 

> Dear Alfredo and Juan,
>
> obviously there is an hidden problem with my code i simply do not see.
> Could you please have a short look at these 3 classes (full code) and tell
> me what am I doing wrong here:
>
> https://dl.dropboxusercontent.com/u/2983671/JPA_Problem/JPA_Problem.zip
>
> Please note: Everything works fine as log as I do not try to make any
> changes to the Tradesman entity (its parameters).
> When is set new password or any other parameter, i get an error message of
> type:
>
> Detected attempt to establish Company(no-id-yet) as the parent of
> Tradesman(358) but the entity identified by Tradesman(358) has already been
> persisted without a parent.  A parent cannot be established or changed once
> an object has been persisted.
>
> I am using: JPA with DataNucleus on Google Datastore. (Standard setting
> that come with GWT 2.5)
>
> Thank you in advance for your help!!
>
> Best regards:
>
> Nermin
>
>
> Am Dienstag, 21. Mai 2013 18:29:54 UTC+2 schrieb Alfredo Quiroga-Villamil:
>>
>> 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://**
> develop**ers.google.com/**appengine/**community
>
> --
> You received this message becaus

Re: gwt-maven-archetypes with multiple client modules

2013-05-22 Thread Thomas Broyer


On Wednesday, May 22, 2013 1:08:38 PM UTC+2, Thomas Käfer wrote:
>
> Thanks for your reply, and thanks for the info! Have a working debug-able 
> environment now!
>
> With this "Debug As… → Web Application (running on an external server)" on 
> the client project, I get the error "Could not find any host-pages in 
> project -client" 
>
My setup is generated by your maven archetype "modular-webapp" and nearly 
> no changes, only played around with debug configurations and maven a little 
> bit.
>

This is strange 'cause I tested it as I was replying, with a freshly 
created "modular-webapp" project. I had an error about 
test-client/target/test-client-1.0.0-SNAPSHOT not existing, but that was 
because I hadn't previously "mvn package" (or even run "mvn tomcat7:run"). 
I deleted the launch config and started again (Debug As…) and it just 
worked.

But based on your other info I've managed to create a "Web Application" 
> debug configuration manually, and it works!
>

That's generally what I do, as I like to have control. 

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




Re: gwt-maven-archetypes with multiple client modules

2013-05-22 Thread Thomas Käfer
Thanks for your reply, and thanks for the info! Have a working debug-able 
environment now!

With this "Debug As… → Web Application (running on an external server)" on 
the client project, I get the error "Could not find any host-pages in 
project -client"
My setup is generated by your maven archetype "modular-webapp" and nearly 
no changes, only played around with debug configurations and maven a little 
bit.

But based on your other info I've managed to create a "Web Application" 
debug configuration manually, and it works!

Huge thanks again! (also for creating these archetypes)

Am Mittwoch, 22. Mai 2013 12:44:04 UTC+2 schrieb Thomas Broyer:

>
> On Wednesday, May 22, 2013 12:09:44 PM UTC+2, Thomas Käfer wrote:
>>
>> how to launch the DevMode from within eclipse on a setup with seperate 
>> client & server project like your maven-archetype "modular-webapp", without 
>> using maven?
>>
>> I'm trying to find this already for a few weeks, but I did not find a 
>> solution yet. 
>> Problem with the maven gwt:run launch is, that the client-side code isn't 
>> debug-able that way --> only server-side with the tomcat7-run can be 
>> debugged that way..
>>
>
> Yes it is; far from ideal, but it's possible: use gwt:debug instead of 
> gwt:run, and then attach a debugger to the process; see 
> http://mojo.codehaus.org/gwt-maven-plugin/debug-mojo.html
>
> I've tried to create an eclipse run configuration analog to my 
>> single-project setups, but nothing worked so far...
>>
>
> It should be as easy as "Debug As… → Web Application (running on an 
> external server)" and using http://localhost:8080/ as the "External 
> server root" and unchecking "Select an HTML page"; assuming you run Tomcat 
> with "mvn tomcat7:run" (or any other setup such that it serves both 
> myapp-client/target/myapp-client-1.0.0-SNAPSHOT and 
> myapp-server/target/myapp-server-1.0.0-SNAPSHOT in the webapp; otherwise 
> just go edit the launch configuration and change the -war to point to the 
> myapp-server/target/myapp-server-1.0.0-SNAPSHOT)
>
>

-- 
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: drag and drop group

2013-05-22 Thread Jens
Haven't used GWT Drag and Drop yet but can't you just skip the code in your 
drag or drop handler if your group condition isn't true?

-- 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: gwt-maven-archetypes with multiple client modules

2013-05-22 Thread Thomas Broyer


On Wednesday, May 22, 2013 12:09:44 PM UTC+2, Thomas Käfer wrote:
>
> how to launch the DevMode from within eclipse on a setup with seperate 
> client & server project like your maven-archetype "modular-webapp", without 
> using maven?
>
> I'm trying to find this already for a few weeks, but I did not find a 
> solution yet. 
> Problem with the maven gwt:run launch is, that the client-side code isn't 
> debug-able that way --> only server-side with the tomcat7-run can be 
> debugged that way..
>

Yes it is; far from ideal, but it's possible: use gwt:debug instead of 
gwt:run, and then attach a debugger to the process; see 
http://mojo.codehaus.org/gwt-maven-plugin/debug-mojo.html

I've tried to create an eclipse run configuration analog to my 
> single-project setups, but nothing worked so far...
>

It should be as easy as "Debug As… → Web Application (running on an 
external server)" and using http://localhost:8080/ as the "External server 
root" and unchecking "Select an HTML page"; assuming you run Tomcat with 
"mvn tomcat7:run" (or any other setup such that it serves both 
myapp-client/target/myapp-client-1.0.0-SNAPSHOT and 
myapp-server/target/myapp-server-1.0.0-SNAPSHOT in the webapp; otherwise 
just go edit the launch configuration and change the -war to point to the 
myapp-server/target/myapp-server-1.0.0-SNAPSHOT)

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




Re: gwt-maven-archetypes with multiple client modules

2013-05-22 Thread Thomas Käfer
how to launch the DevMode from within eclipse on a setup with seperate 
client & server project like your maven-archetype "modular-webapp", without 
using maven?

I'm trying to find this already for a few weeks, but I did not find a 
solution yet. 
Problem with the maven gwt:run launch is, that the client-side code isn't 
debug-able that way --> only server-side with the tomcat7-run can be 
debugged that way..

I've tried to create an eclipse run configuration analog to my 
single-project setups, but nothing worked so far...

Am Freitag, 7. Dezember 2012 10:01:00 UTC+1 schrieb Thomas Broyer:
>
>
> On Friday, December 7, 2012 9:45:19 AM UTC+1, kim young ill wrote:
>>
>> Hi there, i start using this for gwt-modular webapp, quite great,
>
>
> Thanks
>  
>
>> but now i put a second gwt-module in the client package, how to configure 
>> the pom file so that both are avail. in -Ddev ?
>>
>
> You'll have to replace the  with  in the gwt-maven-plugin 
> configuration, and add the modules as  child elements. You'd 
> probably want to introduce another property in addition to gwt.module.
>
> Note that I made this dev profile only to make it easier to start up, but 
> I highly recommend you to launch the DevMode from your IDE. gwt:run is far 
> from ideal in this multi-module setup.
>

-- 
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-22 Thread Nermin
Dear Alfredo and Juan,

obviously there is an hidden problem with my code i simply do not see.
Could you please have a short look at these 3 classes (full code) and tell 
me what am I doing wrong here:

https://dl.dropboxusercontent.com/u/2983671/JPA_Problem/JPA_Problem.zip

Please note: Everything works fine as log as I do not try to make any 
changes to the Tradesman entity (its parameters).
When is set new password or any other parameter, i get an error message of 
type:

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

I am using: JPA with DataNucleus on Google Datastore. (Standard setting 
that come with GWT 2.5)

Thank you in advance for your help!!

Best regards:

Nermin


Am Dienstag, 21. Mai 2013 18:29:54 UTC+2 schrieb Alfredo Quiroga-Villamil:
>
> 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(**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...@googlegroup

Re: Creating clickable links within text

2013-05-22 Thread Thomas Broyer


On Tuesday, May 21, 2013 9:51:10 PM UTC+2, Joel wrote:
>
> 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?
>

Make a custom Cell: 
http://www.gwtproject.org/doc/latest/DevGuideUiCustomCells.html
 and 
http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/cell/client/AbstractCell.html
Your "links" will be s with specific class names, and in 
onBrowserEvent you'll check whether the event target is on of those spans 
and take action accordingly. Using UiRenderer will make it easier if you 
can use it: 
http://www.gwtproject.org/doc/latest/DevGuideUiBinder.html#Rendering_HTML_for_Cells

2) Is InlineLabel really the appropriate widget to use (I just want to take 
> an action on the page, not leave the page)?
>

No, just like any widget. You use Cells, so you can't use widgets (within 
them).

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