Re: Eclipse, GWT, which class to use and how to call it via a hyperlink?

2013-01-16 Thread Andy King
Glyn, just my two cents ... please take it with a grain of salt if you 
don't like it! ... it appears that you have programming experience, and I 
am impressed that you have got as far as you have ... my recommendation is 
that you go through a Java book (e.g., Head First Java) and a GWT book 
(e.g., GWT In Action, 2nd Edition) before trying to proceed with a major 
project.  I don't think it will take you much time to get through the Java 
training, and when you start the GWT book you could just develop your 
application as you learn.

On Monday, January 14, 2013 3:34:32 PM UTC-7, Glyndwr Bartlett wrote:
>
> I am new to both java and GWT and am using Eclipse (Juno with the GWT 
> plugin) to develop an application for a volunteer organisation. I have 
> created a class called AwardTracker (in org.AwardTracker.client) which is 
> my entry point. This displays a standard login page. I followed a tutorial 
> for this and it is working. The next part I want to implement is to build a 
> page to create an account. For this I have a “Create an account” hyperlink 
> on the login page. I have created a new Package 
> (org.AwardTracker.client.CreateAccount) to hold this class. 
>
> To create the class I am selecting, at the top of the page, Create new 
> visual classes / GWT / GWT Java UI / Composite is this the correct one?
>
> Once I have created the page how do I call it with the following event 
> handler?
>
>  Hyperlink hprlnkCreateAnAccount = *new* Hyperlink("Create an 
> account", *false*, "newHistoryToken");
>
>  hprlnkCreateAnAccount.addAttachHandler(*new* Handler() {
>
> *public* *void* onAttachOrDetach(AttachEvent event) {
> }
> Thanks,
> Glyn
>

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



GWT Maven Archetypes

2013-01-16 Thread Brandon Donnelson

I added another GWT archetype using App Engine and Guice DI. This post 
seems a bit redundant but I thought I'd add it here for future search 
flavor. 

https://github.com/branflake2267/Archetypes/tree/master/archetypes/gwt-basic-rpc-appengine-guice
 - *Archetype Home* 

*Project Creation*

mvn archetype:generate -DarchetypeGroupId=com.github.branflake2267.archetypes \
-DarchetypeArtifactId=gwt-basic-rpc-appengine-guice-archetype \
-DarchetypeVersion=1.0-SNAPSHOT \
-DgroupId=com.projectname.project \
-DartifactId=new-project-name \
-DarchetypeRepository=https://oss.sonatype.org/content/repositories/snapshots


https://github.com/branflake2267/Archetypes - *Find more of Archetypes here*

Does anybody have any suggestions for Archetypes?

Brandon Donnelson
http://c.gwt-examples.com

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



Re: RequestFactory - persist method that returns the saved Entity.

2013-01-16 Thread bloo
Hi Thomas - I was not tracking my own question here! I apologize. I'm still 
hacking around this - that is, returning my new instance from my 
InstanceRequest "persist()", then turning around and doing a 
find(response.stableId()) on it to get a usable EntityProxy. I'll paste the 
wire data below - it was the smallest back-and-forth in my app I could 
find. Let me know if you need me to dig something else up for this or help 
decipher anything.

>>> 
{"F":"com.app.web.shared.bindery.AppServiceRequestFactory","I":[{"O":"gYfjUQeKypl3aT70L$lmyH$je_Q=","P":[[]]}]}
>>> 
{"F":"com.app.web.shared.bindery.AppInstanceRequestFactory","I":[{"O":"mZy6R_9WbCm4npb8ui4de53bLjM=","P":[{"R":"1","C":1,"T":"lUUyvXo8bCZWuM6Ew6LR72oN2nQ="}],"R":["product.type","images"]}],"O":[{"O":"PERSIST","R":"1","C":1,"T":"lUUyvXo8bCZWuM6Ew6LR72oN2nQ=","P":{"product":{"R":"1","C":2,"T":"UCoe6wjm6hP1YdFtuSowpMxJ0ow="},"vendor":{"S":"IjQi","T":"NMnlePAPPa8$chg1XXK6I_qmRTc="},"defaultQuantity":100,"defaultUnit":"lb.","name":"foo","defaultPrice":"10","images":[]}},{"O":"PERSIST","R":"1","C":2,"T":"UCoe6wjm6hP1YdFtuSowpMxJ0ow=","P":{"type":{"S":"IjEi","T":"vCoN_GmihaJOTBwUCW2N_JPjlaY="},"name":"foo"}},{"O":"UPDATE","S":"IjEi","T":"vCoN_GmihaJOTBwUCW2N_JPjlaY=","V":"MC4w"}]}
<<< {"S":[true],"I":[null]}
<<< 
{"S":[true],"O":[{"T":"lUUyvXo8bCZWuM6Ew6LR72oN2nQ=","V":"MC4w","P":{"product":{"T":"UCoe6wjm6hP1YdFtuSowpMxJ0ow=","S":"IjkwIg=="},"id":"90","defaultQuantity":100,"name":"foo","images":[],"defaultUnit":"lb.","active":true,"defaultPrice":"10"},"S":"IjkwIg==","C":1,"O":"PERSIST"},{"T":"UCoe6wjm6hP1YdFtuSowpMxJ0ow=","V":"MC4w","P":{"name":"foo","type":{"T":"vCoN_GmihaJOTBwUCW2N_JPjlaY=","S":"IjEi"}},"S":"IjkwIg==","C":2,"O":"PERSIST"},{"T":"NMnlePAPPa8$chg1XXK6I_qmRTc=","V":"Ni4w","S":"IjQi","O":"UPDATE"},{"T":"vCoN_GmihaJOTBwUCW2N_JPjlaY=","V":"MC4w","P":{"name":"Other"},"S":"IjEi","O":"UPDATE"}],"I":[{"T":"lUUyvXo8bCZWuM6Ew6LR72oN2nQ=","S":"IjkwIg=="}]}
>>> 
{"F":"com.app.web.shared.bindery.AppInstanceRequestFactory","I":[{"O":"?","P":[{"S":"IjkwIg==","T":"lUUyvXo8bCZWuM6Ew6LR72oN2nQ="}],"R":["product.type","images"]}]}
<<< 
{"S":[true],"O":[{"T":"lUUyvXo8bCZWuM6Ew6LR72oN2nQ=","V":"MC4w","P":{"product":{"T":"UCoe6wjm6hP1YdFtuSowpMxJ0ow=","S":"IjkwIg=="},"id":"90","defaultQuantity":100,"name":"foo","images":[],"defaultUnit":"lb.","active":true,"defaultPrice":"10.00"},"S":"IjkwIg==","O":"UPDATE"},{"T":"UCoe6wjm6hP1YdFtuSowpMxJ0ow=","V":"MC4w","P":{"name":"foo","type":{"T":"vCoN_GmihaJOTBwUCW2N_JPjlaY=","S":"IjEi"}},"S":"IjkwIg==","O":"UPDATE"},{"T":"vCoN_GmihaJOTBwUCW2N_JPjlaY=","V":"MC4w","P":{"name":"Other"},"S":"IjEi","O":"UPDATE"}],"I":[{"T":"lUUyvXo8bCZWuM6Ew6LR72oN2nQ=","S":"IjkwIg=="}]}


(I have a hunch that on the server side, an incomplete @Entity is being 
passed to the GWT serializing code before the @Transaction demarcation 
completes and the entity in memory is totally updated. Hunch.. I am not 
certain.)


On Wednesday, October 17, 2012 2:22:21 PM UTC-4, Thomas Broyer wrote:
>
>
>
> On Wednesday, October 17, 2012 7:57:33 PM UTC+2, bloo wrote:
>>
>> Hi David,
>>
>> I hate to bring up an old thread, but I noticed this happening with my 
>> switch from 2.4.0 to 2.5.0.  I am using JPA/Hibernate on the backend, and 
>> my entity instance's persist() method returns "this" on the server.  It 
>> stopped working with 2.5.0 with the Unfrozen bean error - BUT, it only 
>> happens when you persist an entity for the first time (not subsequent 
>> perists for update).
>>
>> Just wondering if you have any insight into what would cause this.  I'm 
>> working around this by calling Request.find(EntityStableId) after the 
>> successful persist() call ONLY IF it was a new object being persisted (it 
>> is not necessary to do that for subsequent updates to the object).
>>
>
> Could you post the payloads exchanged? (capture them with your browser, 
> Wireshark, or set the gwt.rpc.dumpPayload system property to true on your 
> server and it'll print them to System.out)
> Preferably the smallest request that fails so it's easier to read ;-)
>

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



Re: GWT Application misbehaving on Chrome

2013-01-16 Thread bloo
This is what I was hoping to find - thank you Thomas. I'm not crazy.

Do you know when 2.5.1 is going out or is it contingent on all of these 
being 
reviewed: 
https://code.google.com/p/google-web-toolkit/issues/list?q=milestone=2_5_1%20status=ReviewPending

I'm not terribly familiar with your release procedures or if it's simply a 
"when it's done" thing. Thanks again for your help.

-Blue


On Wednesday, January 16, 2013 2:37:15 PM UTC-5, Thomas Broyer wrote:
>
>
>
> On Wednesday, January 16, 2013 8:30:32 PM UTC+1, bloo wrote:
>>
>> I haven't come across any misbehaving in my GWT 2.5 projects with Chrome 
>> 24 (24.0.1312.52) - BUT Chrome "source maps" suddenly stopped working 
>> for all of my development projects with the Chrome update. I created a GWT 
>> 2.5 app from scratch (via Google's Eclipse plugin wizard) and still do not 
>> have access to the source files via "source maps" that I had just before 
>> the update.
>>
>> I realize this is a GWT list but I wanted to put it out there to see if 
>> I'm alone or not. Not a show-stopper, but hurts debugging.
>>
>
> See https://code.google.com/p/google-web-toolkit/source/detail?r=11408
> Will be in the upcoming GWT 2.5.1.
>

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



Re: GWT 2.5 dev mode refresh error

2013-01-16 Thread Michal Moravcik
I found a workaround solution.

When I manually reset the cached generator result in 
my ServiceInterfaceProxyGenerator the problem disappears.

public class RpcInterceptorServiceProxyGenerator extends 
ServiceInterfaceProxyGenerator { 
@Override
public RebindResult generateIncrementally(TreeLogger logger, 
GeneratorContext ctx, String requestedClass) throws 
UnableToCompleteException {
((StandardGeneratorContext) ctx).setCachedGeneratorResult(null); // reset 
cached result here 
 super.generateIncrementally(logger, ctx, requestedClass);
 // ... generate code ...
 return new RebindResult(RebindMode.USE_ALL_NEW, newTypeName);
}
}

If anybody finds a better solution, please let me know. Thanks.

Michal Moravcik


Dňa utorok, 15. januára 2013 23:08:23 UTC+1 Michal Moravcik napísal(-a):
>
> Lately I have upgraded GWT to version 2.5.0 and sice then I am 
> experiencing a problem with Developer mode.
>
> First time the GWT module is loaded as usually with no problem, but when I 
> try to reload it (F5 in browser) without doing anything on page or changing 
> any code I am getting following error:
>
>
> 00:00:22.768 [ERROR] Generator 
> 'eu.geomodel.solargis.gwt.codegen.RpcInterceptorServiceProxyGenerator' 
> threw an exception while rebinding 
> 'eu.geomodel.solargis.common.rpc.CustomerService'
>
> java.lang.NullPointerException: null 
> at 
> com.google.gwt.user.rebind.rpc.TypeSerializerCreator.findReusableCachedFieldSerializerIfAvailable(TypeSerializerCreator.java:328)
>  
> at 
> com.google.gwt.user.rebind.rpc.TypeSerializerCreator.createFieldSerializer(TypeSerializerCreator.java:260)
>  
> at 
> com.google.gwt.user.rebind.rpc.TypeSerializerCreator.createFieldSerializers(TypeSerializerCreator.java:288)
>  
> at 
> com.google.gwt.user.rebind.rpc.TypeSerializerCreator.realize(TypeSerializerCreator.java:189)
>  
> at 
> com.google.gwt.user.rebind.rpc.ProxyCreator.generateTypeHandlers(ProxyCreator.java:702)
>  
> at 
> com.google.gwt.user.rebind.rpc.ProxyCreator.create(ProxyCreator.java:352) 
> at 
> com.google.gwt.user.rebind.rpc.ServiceInterfaceProxyGenerator.generateIncrementally(ServiceInterfaceProxyGenerator.java:67)
>  
> at 
> eu.geomodel.solargis.gwt.codegen.RpcInterceptorServiceProxyGenerator.generateIncrementally(RpcInterceptorServiceProxyGenerator.java:55)
>  
> at 
> com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:651)
>  
> at 
> com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41) 
> at 
> com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:79)
>  
> at 
> com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:276)
>  
> at 
> com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java:141)
>  
> at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:595) 
> at 
> com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:465) 
> at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49) 
> at com.google.gwt.core.shared.GWT.create(GWT.java:57) 
> at com.google.gwt.core.client.GWT.create(GWT.java:85) 
> at 
> eu.geomodel.solargis.common.rpc.eu_geomodel_solargis_gwt_account_gin_AccountGinjector_AccountGinjectorGinjector_fragment.get_Key$type$eu$geomodel$solargis$common$rpc$CustomerServiceAsync$_annotation$$none$$(eu_geomodel_solargis_gwt_account_gin_AccountGinjector_AccountGinjectorGinjector_fragment.java:83)
>  
> at 
> eu.geomodel.solargis.gwt.customer.eu_geomodel_solargis_gwt_account_gin_AccountGinjector_AccountGinjectorGinjector_fragment.get_Key$type$eu$geomodel$solargis$gwt$customer$CustomerPresenter$_annotation$$none$$(eu_geomodel_solargis_gwt_account_gin_AccountGinjector_AccountGinjectorGinjector_fragment.java:51)
>  
> at 
> eu.geomodel.solargis.gwt.customer.eu_geomodel_solargis_gwt_account_gin_AccountGinjector_AccountGinjectorGinjector_fragment.initializeEagerSingletons(eu_geomodel_solargis_gwt_account_gin_AccountGinjector_AccountGinjectorGinjector_fragment.java:125)
>  
> at 
> eu.geomodel.solargis.gwt.account.gin.eu_geomodel_solargis_gwt_account_gin_AccountGinjector_AccountGinjectorGinjector.initializeEagerSingletons(eu_geomodel_solargis_gwt_account_gin_AccountGinjector_AccountGinjectorGinjector.java:788)
>  
> at 
> eu.geomodel.solargis.gwt.account.gin.eu_geomodel_solargis_gwt_account_gin_AccountGinjectorImpl.(eu_geomodel_solargis_gwt_account_gin_AccountGinjectorImpl.java:10)
>  
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 
> at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>  
> at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>  
> at java.lang.reflect.Constructor.newInstance(Constructor.java:525) 
> at 
> com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:475) 
> at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49) 
> at com.

Re: Building GWT 2.5 From Source

2013-01-16 Thread emurmur
I got this same error the first time I tried the build.  This issue is that 
I checked out the source using Tortoise SVN.  It was using version 1.6 SVN 
database.  My command line svn tools (which I installed for this purpose) 
were using 1.7 database format, so the call to "svn info" failed.  You can 
verify this by going into the trunk folder and running the command from the 
command prompt.

The fix was to uninstall the command line svn tools and install and older 
version (1.6.20) so it would use the same database format as Tortoise.

Ed


On Tuesday, January 15, 2013 12:48:03 AM UTC-8, shahid...@docobo.co.uk 
wrote:
>
> Platform: *Windows 7, ANT 1.8.2, Subversion 1.7.8*
>
> I checked out the latest source with Tortoise SVN and am trying to build 
> after putting a fix for Issue 2467 but I am getting the following error. I 
> have had to install Subversion 1.7.8 to get the command line svn working 
> because previously I was getting an SVN command error when building:
>
> BUILD FAILED
> C:\Projects\GWT\build.xml:114: The following error occurred while 
> executing this
>  line:
> C:\Projects\GWT\build.xml:27: The following error occurred while executing 
> this
> line:
> C:\Projects\GWT\build.xml:56: The following error occurred while executing 
> this
> line:
> C:\Projects\GWT\dev\build.xml:203: The following error occurred while 
> executing
> this line:
> C:\Projects\GWT\common.ant.xml:293: Non-zero status code result (1) 
> running comm
> and: svn info --xml
>
> Total time: 10 seconds
>
>

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



Re: SAP Workflow ABAP Analyst [ Houston, TX ] G

2013-01-16 Thread Pandya, Amit
Here I am sending you my profile

My 
Profile


-- 
Warm Regards,

Amit Pandya

End is not end, In-fact E.N.D is "EFFORT NEVER DIES"
If you get NO in answer, remember N.O. is "NEXT OPPORTUNITY"
Impossible just separate the word - I M Possible

On Tue, Jan 15, 2013 at 4:04 AM, Godwin Lobo wrote:

> Hi,
>
> Hope you are doing great.
>
> Please review an urgent requirement from our client, detailed below. We
> would love to review profiles of any consultant
>
> you have in your employ that matches this description. Please include
> rates and contact information.
>
> *Please send resumes at sumit.si...@acg-usa.com*
>
>
>
> *Job Title*
>
> *SAP Workflow ABAP Analyst*
>
> *Job Location*
>
> *Houston, TX*
>
> *Job Start Date:*
>
> *ASAP*
>
> *Duration:*
>
> *24 months *
>
> *Rate*
>
> *Daily Rate (All Inclusive)*
>
>
>
> *Requirements:*
>
> *SAP Workflow/ABAP Analyst with 5 years of SAP workflow development
> experience with at least one full cycle SAP implementation. The successful
> candidate should have the following skills:*
>
> *Implemented at least one SAP workflow successfully*
>
> *HR business knowledge *
>
> *Ability to clearly define all the steps required during a workflow
> implementation. Including Configuration, Substitute definition, SAP MAPI
> Service Provider, Components of SAP Business Workflow. *
>
> *Ability to list the standard workflow transactions *
>
> *Ability to discuss the association between the Org structure and
> workflow touch points, such as org units, jobs, positions, user sand task
> profiles. *
>
> *Knowledge of the workflow authorization consideration*
>
> *ABAP experience will be required in the systematic debugging of SAP
> standard programs to identify issues with delivered code or assist analyst
> with identifying possible options to addressing design of new
> functionality. Knowledgeable in performance tuning activities of existing
> programs to improve runtime. *
>
> *Support of existing SAP R3 solution Evaluate and implement service
> requests SAP Workflow development with one full cycle SAP implementation*
>
> *Experience in Systems development and/or Applications Support which
> includes experience in Analysis, Design, Programming, Production Selection,
> Support and/or maintenance.*
>
> * *
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> --
> Sumit Singh
> Axiom Consulting Group
> Phone: (925) 271-6121
> sumit.si...@acg-usa.com
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Default Bounds for Custom Panel in GWT Designer

2013-01-16 Thread jhartmann
I'm not sure if this has been covered before, but I was wondering if there 
is some way to add support for a custom panel width having other then the 
default bounds.  My custom widget is direct descendant of HTMLPanel, and 
has some custom css to center the contained components vertically and 
horizontally.  Functional it works fine, but since the default bounds are 
450px by 300px most of my widgets are getting clipped in the designer.  I 
would like the widget to not have the default size applied, but would like 
to choose a larger one so I can edit the contained widgets inside the 
designer.  I am basically setting this widget as the top level widget in my 
composites that need centered, and have a single composite that wraps a 
whole 'page' of functionality.  I would really like this to show up 
properly in the designer.  I'm willing to write a plugin java code if that 
is necessary, a pointer in the general direction would be save me some time 
so I thought I would reach out to the group.

-Jeff

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



Re: GUI Design - Layout Panels

2013-01-16 Thread Jamel Hamas
Hello,

I Think, you have only to delete this line:
disclosurePanel.setAnimationEnabled(true);
from your code, 


Regrads

Le mercredi 19 septembre 2012 23:14:18 UTC+2, Marco a écrit :
>
> Hello,
> i have planned to design my application with following areas:
> ---
> Toolbar Area
> --
> Workspace Header (for some information or filter criteria's)
> ---
> Workspace Area
> ---
> Statusbar Area
> ---
>
> To use a datagrid which automatically resizes with the screensize, I have 
> read that the best way
> is to use the DockLayoutPanel.
> I have also read following article:
> https://developers.google.com/web-toolkit/doc/latest/DevGuideUiPanels 
>
> In this articel it's also recommended to use Layout Panels for better 
> standard mode support. 
> Therefore I have build a very easy example to test the Layout Panels.
>
> In my GwtTestDock.java example I have created a empty application skeleton 
> with Layout Panels.
> In GwtTestDockFilled.java I have filled this skeleton with some widgets.
>
> In this example I have some problems:
> * The css padding is not working for SimpleLayoutPanel. Which class should 
> I use instead?
> I want to use the css padding in the empty skeleton class because if I 
> replace the widgets for
> this place holder, it should automatically use the css of the parent 
> (slpWorkspaceHeaderPlaceholder).
> I don't want to set the padding for every child 
> of slpWorkspaceHeaderPlaceholder.
>
> * The Disclosure Panel for "Additional Details" is not working. The reason 
> is because the DockLayoutPanel
> has a fix size for North. I tested a solution that I just change the North 
> size if I open the Disclosure Pane but
> the animation is not working.
>
> * Is this the right track to design my application or should I use 
> different Panels?
>
> * Should I try to use only Layout Panels (better standard-mode support) or 
> are there special cases for other Panels?
>
> Thx for any help.
> Marco
>

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



ClassCastException & Umbrella Exception: GUI randomly crashes

2013-01-16 Thread Marco
Dear all,
I have a problem with a GWT application (*not pure GWT but SmartGWT*): I 
have created dedicated classes for each window that I want to render (MVP 
model); 
every time I want to switch between windows I call destroy method to the 
layout that I want to close and I launch a custom event in order to load 
the new page (with related Layout). 

The problem is that sometimes (I was not able to find a predefined pattern) 
the method MyCurrentLoadedLayout.destroy() (example class name), 
called from my current loaded layout, throws an exception and the program 
crash. This is the exception that has been launched:

Code:
java.lang.ClassCastException: null
at java.lang.Class.cast(Class.java:2990)
at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:169)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:57)
at 
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
at 
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
at 
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
at 
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
at 
com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:299)
at 
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
at com.smartgwt.client.widgets.BaseWidget.destroy(BaseWidget.java)
at com.myTestClass.myTestLayout.destroyLytMain(myTestLayout.java:867) *<--- 
here there is the command MyCurrentLoadedLayout.destroy() and 
MyCurrentLoadedLayout is NOT null because it contains all object that are 
currently displayed on a screen*
[...]

I am sure that the Layout class is not null because, as I wrote, the major 
of the time it works correctly: the crash happens randomly when I click on 
"Logout" button that destroys the current Layout and launches the event 
that loads the new Layout.

This strange behaviour happens, randomly, also when I try to launch an 
event via EventBus:

Code:
com.google.gwt.event.shared.UmbrellaException: Exception caught: null
at com.google.gwt.event.shared.EventBus.castFireEvent(EventBus.java:69)
at 
com.google.gwt.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:57)
at com.myTestClass.myTestLayout$10.onSuccess(myTestLayout.java:842)
at 
com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:232)
at 
com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:287)
at 
com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:395)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at 
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
at 
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
at 
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
at 
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
at 
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
[...]

Please could you help me understanding what is the cause of the block or 
can you suggest me how to deeply debug it in order to find the problem?
Thank you very much for your support.

Best Regards,
Marco.

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



Re: GWT WebApp and iOS 6 Safari

2013-01-16 Thread Leif Åstrand
We also stumbled upon what seems to be the same issue. We tracked it down 
to javascript in iOS6 behaving strangely in the canCastUnsafe method that 
is used whenever a java typecast is done. In our case, this only happend 
when attempting to cast a String value and it only seems to happen in 
relation to calling Map.get or Map.containsKey with a String key. We 
haven't found any trivial way of reproducing the issue.

Further details as well as the GWT patch we used to workaround the issue 
can be found at http://dev.vaadin.com/ticket/10753.

/Leif

On Wednesday, October 3, 2012 6:04:51 PM UTC+3, Jens wrote:
>
> Hmm couldn't see why there should be a ClassCastException. As a side note, 
> your equals() method is not correct, email/code can be null and two 
> instances containing the same null variables are currently unequal (your if 
> forbids null values). You should also overwrite hashcode() because you have 
> overwritten equals().
>
> Back to your problem: 
>
> Have you tried to compile the app in PRETTY mode and then use Safari's 
> remote debugging to see whats going on in Javascript? Maybe the compiler 
> has generated webkit JS code that does not work as intended in Safari 6 on 
> IOS 6. Do you have the same error when using Safari 6 on Mac OS? Although 
> its not really the same situation but in 
> http://code.google.com/p/google-web-toolkit/issues/detail?id=7392 I had a 
> similar problem with a ClassCastException that should not occur. But would 
> it be the situation as in the issue it should not work on Safari in general 
> I think. But as a wild guess: Does your code work on IOS when you introduce 
> a no-arg constructor to your place that is calling this(null, null) and 
> setter methods you can call in your Tokenizer when using the no-arg 
> constructor to create the place?
>
> -- J.
>
>

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



SAP Workflow ABAP Analyst [ Houston, TX ] G

2013-01-16 Thread Godwin Lobo
Hi,

Hope you are doing great.

Please review an urgent requirement from our client, detailed below. We
would love to review profiles of any consultant

you have in your employ that matches this description. Please include rates
and contact information.

*Please send resumes at sumit.si...@acg-usa.com*



*Job Title*

*SAP Workflow ABAP Analyst*

*Job Location*

*Houston, TX*

*Job Start Date:*

*ASAP*

*Duration:*

*24 months *

*Rate*

*Daily Rate (All Inclusive)*



*Requirements:*

*SAP Workflow/ABAP Analyst with 5 years of SAP workflow development
experience with at least one full cycle SAP implementation. The successful
candidate should have the following skills:*

*Implemented at least one SAP workflow successfully*

*HR business knowledge *

*Ability to clearly define all the steps required during a workflow
implementation. Including Configuration, Substitute definition, SAP MAPI
Service Provider, Components of SAP Business Workflow. *

*Ability to list the standard workflow transactions *

*Ability to discuss the association between the Org structure and workflow
touch points, such as org units, jobs, positions, user sand task profiles. *

*Knowledge of the workflow authorization consideration*

*ABAP experience will be required in the systematic debugging of SAP
standard programs to identify issues with delivered code or assist analyst
with identifying possible options to addressing design of new
functionality. Knowledgeable in performance tuning activities of existing
programs to improve runtime. *

*Support of existing SAP R3 solution Evaluate and implement service
requests SAP Workflow development with one full cycle SAP implementation*

*Experience in Systems development and/or Applications Support which
includes experience in Analysis, Design, Programming, Production Selection,
Support and/or maintenance.*

* *



















































-- 
Sumit Singh
Axiom Consulting Group
Phone: (925) 271-6121
sumit.si...@acg-usa.com

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



GWT app data import from Google Analystics

2013-01-16 Thread Sándor Dezső
Hi,
I suffer for days with Google Analytics and my GWT application linking.
 
In my app, I need to have the recived data procces from Google Analytics 
(e.g. number of visitors).
 
For this I used the gwt-gdata library.
Probably the examples and the library is old (I think)
My question, how I can
solve to take over the data?
I attach My code to see if I stabbed just something.
Thank you for the answer!

The code:
package com.masa.statmod.client;

import com.google.api.gwt.oauth2.client.Auth;
import com.google.api.gwt.oauth2.client.AuthRequest;
import com.google.appengine.tools.admin.OAuth2Native;

import com.google.gwt.core.client.Callback;

import com.google.gwt.accounts.client.AuthSubStatus;
import com.google.gwt.accounts.client.User;
import com.google.gwt.gdata.client.GData;
import com.google.gwt.gdata.client.GDataSystemPackage;
import com.google.gwt.gdata.client.analytics.AccountEntry;
import com.google.gwt.gdata.client.analytics.AccountFeed;
import com.google.gwt.gdata.client.analytics.AccountFeedCallback;
import com.google.gwt.gdata.client.analytics.AnalyticsService;
import com.google.gwt.gdata.client.analytics.DataEntry;
import com.google.gwt.gdata.client.analytics.DataFeed;
import com.google.gwt.gdata.client.analytics.DataFeedCallback;
import com.google.gwt.gdata.client.analytics.DataQuery;
import com.google.gwt.gdata.client.impl.CallErrorException;
import com.google.gwt.user.client.Window;

public class GaAuth {
// Use the implementation of Auth intended to be used in the GWT client 
app.
private static final Auth AUTH = Auth.get();

private AnalyticsService service;
 private static final String ANAL_SCOPE = 
"https://www.googleapis.com/auth/analytics.readonly";;
private static final String GOOGLE_AUTH_URL = 
"https://accounts.google.com/o/oauth2/auth";;
private static final String CLIENT_SECRET = "xx-xx-xx";
private static final String GOOGLE_CLIENT_ID = 
".apps.googleusercontent.com";
private static final String CLIENT_USERNAME = "x...@xx.xx";
private static final String CLIENT_PASS = "xx";
private static final String TABLE_ID = "ga:";
private final String scope = 
"https://www.googleapis.com/auth/analytics.readonly";;
public final static String GDATA_API_KEY = "--";

void GaAuth() {
login();
if (!GData.isLoaded(GDataSystemPackage.ANALYTICS)) {
System.out.println("Loading the GData Analytics package...");
GData.loadGDataApi(GDATA_API_KEY, new Runnable() {
public void run() {
startLekerd();
}
}, GDataSystemPackage.ANALYTICS);
} else {
startLekerd();
}

}

/**
 * Retrieve the Analytics accounts feed using the Analytics service and 
the
 * accounts feed uri. In GData all get, insert, update and delete 
methods
 * always receive a callback defining success and failure handlers. 
Here,
 * the failure handler displays an error message while the success 
handler
 * obtains the first Account entry and calls queryData to retrieve the 
data
 * feed for that account.
 * 
 * @param accountsFeedUri
 *The uri of the accounts feed
 */
private void getAccounts(String accountsFeedUri) {
System.out.println("Most kéne lekérdeznie az account 
bejegyzéseit");//debug
try{
service.getAccountFeed(accountsFeedUri, new AccountFeedCallback() {

@Override
public void onSuccess(AccountFeed result) {


System.out.println("Sikerült lekérdezni az account 
bejegyzéseit");//debug
AccountEntry[] entries = result.getEntries();
if (entries.length == 0) {
System.out.println("Nincs ga accod");//debug
} else {
System.out.println("Megy a lekérdezés");//debug
AccountEntry targetEntry = entries[0];
queryData(targetEntry.getTableId().getValue());
}
}

@Override
public void onFailure(CallErrorException caught) {
// TODO Auto-generated method stub
System.out.println("Nem sikerült elérni se a ga-t.");//debug
}
});}catch(Exception e){

System.out.println("Valami az urival lesz az 
kurvahétszenség");//debug
}
}

/**
 * Retrieves a data feed for an Analytics account using a Query object. 
In
 * GData, feed URIs can contain querystring parameters. The GData query
 * objects aid in building parameterized feed URIs. Upon successfully
 * receiving the data feed, the data entries are displayed to the user 
via
 * the showData method. Query parameters are specified for start and end
 * dates, dimensions, metrics, sort field and direction and the IDs of 
the
 * account tables which should be queried.
 * 
   

GWT 2.5 dev mode refresh error

2013-01-16 Thread Michal Moravcik
Lately I have upgraded GWT to version 2.5.0 and sice then I am experiencing 
a problem with Developer mode.

First time the GWT module is loaded as usually with no problem, but when I 
try to reload it (F5 in browser) without doing anything on page or changing 
any code I am getting following error:


00:00:22.768 [ERROR] Generator 
'eu.geomodel.solargis.gwt.codegen.RpcInterceptorServiceProxyGenerator' 
threw an exception while rebinding 
'eu.geomodel.solargis.common.rpc.CustomerService'

java.lang.NullPointerException: null 
at 
com.google.gwt.user.rebind.rpc.TypeSerializerCreator.findReusableCachedFieldSerializerIfAvailable(TypeSerializerCreator.java:328)
 
at 
com.google.gwt.user.rebind.rpc.TypeSerializerCreator.createFieldSerializer(TypeSerializerCreator.java:260)
 
at 
com.google.gwt.user.rebind.rpc.TypeSerializerCreator.createFieldSerializers(TypeSerializerCreator.java:288)
 
at 
com.google.gwt.user.rebind.rpc.TypeSerializerCreator.realize(TypeSerializerCreator.java:189)
 
at 
com.google.gwt.user.rebind.rpc.ProxyCreator.generateTypeHandlers(ProxyCreator.java:702)
 
at 
com.google.gwt.user.rebind.rpc.ProxyCreator.create(ProxyCreator.java:352) 
at 
com.google.gwt.user.rebind.rpc.ServiceInterfaceProxyGenerator.generateIncrementally(ServiceInterfaceProxyGenerator.java:67)
 
at 
eu.geomodel.solargis.gwt.codegen.RpcInterceptorServiceProxyGenerator.generateIncrementally(RpcInterceptorServiceProxyGenerator.java:55)
 
at 
com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:651)
 
at 
com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41) 
at 
com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:79)
 
at 
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:276)
 
at 
com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java:141)
 
at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:595) 
at 
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:465) 
at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49) 
at com.google.gwt.core.shared.GWT.create(GWT.java:57) 
at com.google.gwt.core.client.GWT.create(GWT.java:85) 
at 
eu.geomodel.solargis.common.rpc.eu_geomodel_solargis_gwt_account_gin_AccountGinjector_AccountGinjectorGinjector_fragment.get_Key$type$eu$geomodel$solargis$common$rpc$CustomerServiceAsync$_annotation$$none$$(eu_geomodel_solargis_gwt_account_gin_AccountGinjector_AccountGinjectorGinjector_fragment.java:83)
 
at 
eu.geomodel.solargis.gwt.customer.eu_geomodel_solargis_gwt_account_gin_AccountGinjector_AccountGinjectorGinjector_fragment.get_Key$type$eu$geomodel$solargis$gwt$customer$CustomerPresenter$_annotation$$none$$(eu_geomodel_solargis_gwt_account_gin_AccountGinjector_AccountGinjectorGinjector_fragment.java:51)
 
at 
eu.geomodel.solargis.gwt.customer.eu_geomodel_solargis_gwt_account_gin_AccountGinjector_AccountGinjectorGinjector_fragment.initializeEagerSingletons(eu_geomodel_solargis_gwt_account_gin_AccountGinjector_AccountGinjectorGinjector_fragment.java:125)
 
at 
eu.geomodel.solargis.gwt.account.gin.eu_geomodel_solargis_gwt_account_gin_AccountGinjector_AccountGinjectorGinjector.initializeEagerSingletons(eu_geomodel_solargis_gwt_account_gin_AccountGinjector_AccountGinjectorGinjector.java:788)
 
at 
eu.geomodel.solargis.gwt.account.gin.eu_geomodel_solargis_gwt_account_gin_AccountGinjectorImpl.(eu_geomodel_solargis_gwt_account_gin_AccountGinjectorImpl.java:10)
 
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 
at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
 
at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 
at java.lang.reflect.Constructor.newInstance(Constructor.java:525) 
at 
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:475) 
at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49) 
at com.google.gwt.core.shared.GWT.create(GWT.java:57) 
at com.google.gwt.core.client.GWT.create(GWT.java:85) 
at 
eu.geomodel.solargis.gwt.account.gin.AccountGinjector$Holder.(AccountGinjector.java:28)
 
at 
eu.geomodel.solargis.gwt.account.AccountEntryPoint.onModuleLoad(AccountEntryPoint.java:25)
 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 
at java.lang.reflect.Method.invoke(Method.java:601) 
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:406) 
at 
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
 
at 
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
 
at 
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
 
at java.lang.Thread.run(

Re: Not able to install GWT plugin in eclipse

2013-01-16 Thread Babajide Prince Agbebiyi
Disable your antivirus and try reinstalling again.

Good luck

On Thursday, 23 August 2012 06:35:10 UTC+2, Sanjay Jain wrote:
>
> Hello all,
> I am using eclipse 3.7 version on windows xp platform.
> I want to install GWT plugin for it so I tries below url for the 
> installing plugin.
> http://dl.google.com/eclipse/plugin/3.6 
>
> I checked three box in suggested list.
> 1. Google plugin for eclipse
> 2. Google App Engine Java SDK 1.7
> 3. Google Web Tool kit 2.4
>
> I also checked the contact all update sites during installation problem.
> But it is not installing the GWT plugin and giving me below error.
>
> An error occurred while collecting items to be installed
> session context was:(profile=SDKProfile, 
> phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, 
> action=).
> Problems downloading artifact: 
> osgi.bundle,com.google.gwt.eclipse.sdkbundle,2.4.0.v201208080120-rel-r37.
> MD5 hash is not as expected. Expected: 4377ba085a0089b1641d9c989f4bd0cc 
> and found 4cacae71d159d6c14fe5b09f04b2ec16.
> Problems downloading artifact: 
> osgi.bundle,com.google.appengine.eclipse.sdkbundle,1.7.0.
> MD5 hash is not as expected. Expected: 1ba46f6b6c57b36904abecef6ae99cba 
> and found f142767a855d57c150e2383afd1c342e.
>
> I am not getting the where the problem is.I also tried eclipse 3.6 but the 
> same problem is also occurring in that version.
> Please help me out.
> Thanks in advance
>
>

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



Re: External Javascript library in GWT (Canviz)

2013-01-16 Thread Sándor Dezső
- You can put a  tag directly in the GWT manifest file to include 
the external JavaScript you need (you can also include css using