Monday, October 31, 2011

GWT CELLTABLE: How to set column's cell value depending on changes in other column ?

Hi,

I have 3 column + 10 rows in celltable.
value1Column, value2Column, RecordState
 1 | 2 | *
 2 | 4 | -
:
:
3 | 5 | -
6 | 5 | *

Whenever user changes values either value1 or value2 then immediately cell related to that record set to * in RecordState column.

How to set * in RecordState column on  value changes?

How to use setFieldUpdater to update values in column ?

value1Column.setFieldUpdater(new FieldUpdater<Record, integer>() {
            public void update(int index,
                    RecordVO object, integer value) {
//How to set * in RecordState column ?
}



--
Best Regards,
Vaibhav






--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Has anybody setup an owned Collection in RequestFactory? Does know how to set the ParentKey/ChildKey?

1. Well, the previous post has the link to the AppEngine JDO documentation on how to do that but it doesn't work in JPA the same way, more on that later in #4
2. You're right. I've been using gin for so long that I've forgotten about the setFactory method. The reason it works is not because of the class you pointed me too but this one here:

http://code.google.com/p/gwt-examples/source/browse/trunk/WalletInventory/src/com/gonevertical/client/app/ClientFactoryImpl.java

You're constructing your place tokenizers manually. You gain complete control of how you construct you tokenizers but at the expense of having to write the code yourself. In my code, I don't have anything implementing ApplicationPlaceHistoryMapper like you do, it's provided by gin.

However, now that i think about, gin should be able to do the same with ctor arguments provided the necessary Provider<T>s are in place

4. So you did:

@ElementCollection(targetClass=WalletItemData.class)
@CollectionTable(name="items")
@MapKey(name="key")
private List<WalletItemData> items;

What you're asking for is exactly:

@OneToMany(mappedBy="items") // mappedBy is ignored on AppEngine
private List<WalletItemData> items;

and in WalletItemData:
@ManyToOne
private WalletData parent;

but @ManyToOne isn't supported on AppEngine

and what I think you're looking for is something with automatic management of the child's relationship which is:

@OneToMany(mappedBy="items", cascade=ALL) // mappedBy is ignored on AppEngine
private List<WalletItemData> items;

Now, from inside a transaction, any new object you put in items will be persisted, any modified object will be updated and anything removed from the collection will be automatically deleted. You never need to call merge, persist or remove on an EntityManager for any of these operations since this collection is already managed and known to the entity manager.

If you absolutely need to know your parent from the child, outside of it being present in the parent's collection that is, you do it exactly the way you did it by setting and managing the parent key manually. The difference is the object type will be of the key type instead of the actual parent type.

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

Unit teting using GWTTestCase

I am getting following error when I tried to test using GWTTestCases.

com.google.gwt.junit.JUnitFatalLaunchException: The test class
'com.abc.myapp.client.MyAppTestCase' was not found in module
'com.abc.myapp.Myapp'; no compilation unit for that type was seen
at
com.google.gwt.junit.JUnitShell.checkTestClassInCurrentModule(JUnitShell.java:
743)
at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1346)
at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1309)
at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:653)
at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:
441)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:296)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:
91)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:
49)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:
38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:
467)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:
683)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:
390)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:
197)

Here is the test class source code.

package com.abc.myapp.client;

import org.junit.Assert;
import com.google.gwt.junit.client.GWTTestCase;

public class MyAppTestCase extends GWTTestCase {
@Override
public String getModuleName() {
return "com.abc.myapp.Myapp";
}

public void testX(){
Assert.assertTrue(true);
}
}

In eclispe I am using following set up, it is as per maven standard.
src/main/java for which output folder is target/classes
src/main/resources for which output folder is target/classes
src/main/webapp
src/test/java for which output folder is target/test-
classes
src/test/resources for which output folder is target/test-
classes

Let me know if I am missing anything else.

FYI!, I am using GWT 2.3.

Thanks,

Vish

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Has anybody setup an owned Collection in RequestFactory? Does know how to set the ParentKey/ChildKey?

Thanks for looking at my code. I wanted to follow up.

to 1. I was having problems with the implying the parent in the ownership, so I had to do it manually. I have other projects where I use RPC and I don't have to set the parent. For some reason I wasn't able to get it to work in this codebase. I'll try again  Thanks for noticing that.

to 2. I found you can have arguments in the tokenizer. The one you saw was not really being used. Here is a better example: http://code.google.com/p/gwt-examples/source/browse/trunk/WalletInventory/src/com/gonevertical/client/app/activity/places/WalletEditPlace.java

to 3. I'll have to try the editor driver. On the Todo list. 

to 4. I wouldn't/don't mind using JPA, but I could not find a path of success using the annotations to setup the Owned Collections annotations. I tried everything I could think of and settled with this. I do like the concise annotations in JPA although, when it came to Owned Collections in App Engine it failed for me. If you look into the history, I tried twice on this code base. Its most likely operator error. 
This is the JPA version I tried: http://code.google.com/p/gwt-examples/source/browse/trunk/WalletInventory/src/com/gonevertical/server/domain/WalletData.java?r=2908 - no worky for me. 

Do you know how to annotate owned Collections in JPA. 

Thanks for looking through the code! :)

Brandon Donnelson
http://gwt-example.googlecode.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/-/aiPr9JdBph8J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: JSON Data in GWT

HI
i recommend piriti, it's very simple to use. its a tool that can map json to bean in client code

regards

Fabricio

2011/10/31 IDeshpande <indraneeld2909@gmail.com>
Hi All,

I have my application which sends me a form in JSON format.
Is there any direct way or API GWT provides to render this JSON data
into any GWT UI element like Panel or a Dialog box?

--
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+unsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Clarifying Understanding of Presenter Interface

You should definitely read part 2 of the article you have mentioned. It describes the use of MVP in combination with UiBinder. Following part 2 the presenter interface is defined inside the view interface (which means one presenter interface per view if the view provides some user interaction). I found it more intuitive as part 1.

The approach of part 2 also leads to cleaner code.


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

Re: generate a web page from java file

Your GWT application is one page. You reveal different portions by
hiding/showing different objects on that page. Look at the Showcase
sample to see what I mean.

On Oct 31, 2:26 pm, scania113 <spider6...@gmail.com> wrote:
> hello ,
>
> I'm new to GWT, I installed the gwt plugin and the windowbuilder
> plugin on eclipse, I created a new project with a class that
> implements the EntryPoint interface, I was able to graph components
> thanks to this class windowbuilder and I've even run, my problem is
> when I create a second composite gwt, I build my GUI with
> WindowBuilder, but at run-time is always the first page that runs, now
> i'd like to know how to execute the second page

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Clarifying Understanding of Presenter Interface

On 31 October 2011 10:52, Ari <ari.brandeis.king@gmail.com> wrote:
> After reading Large scale application development and MVP, I'm a bit
> unclear on the Presenter interface and I'd appreciate help in
> clarifying my understanding. Specifically I'm unclear as to whether
> each Presenter is supposed to have it's own Presenter Interface or is
> there supposed to be a universal Presenter interface, which all
> Presenters then implement?

In general, you would have a separate presenter interface for each
view. Your views do different things after all so the presenters can't
all be the same.

You could have each presenter extend a parent interface but so far I
have not needed that. That doesn't mean there are no situations where
that might be useful.

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Findbugs problem by GWT Project.

On 31 October 2011 07:37, Kotuboy <aliyuruz@googlemail.com> wrote:
> I have a maven GWT project and i am using findbugs to analyze the code.
>
> <plugin>
>                 <groupId>org.codehaus.mojo</groupId>
>                 <artifactId>findbugs-maven-plugin</artifactId>
>                 <version>2.3.2</version>
>                 <configuration>
>                     <targetJdk>1.6</targetJdk>
>                     <onlyAnalyze>com.mycompany.</onlyAnalyze>
>
>                 </configuration>
> </plugin>
>
> But I am getting the following error and dont get any result from findbugs.
> The other plugins are working properly.
>
> [INFO] Fork Value is true
> [java] The following classes needed for analysis were missing:
> [java] com.google.gwt.core.client.GWTBridge
> [java] Missing classes: 2
> [INFO] xmlOutput is false
>
> What is the difference of findbugs?? What do you recommend?

GWTBridge is in gwt-dev. Did you add that as a dependency? Mind you, I
don't know why FindBugs would need it given your <onlyAnalyze>...

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: JSON Data in GWT

On Mon, Oct 31, 2011 at 4:37 PM, IDeshpande <indraneeld2909@gmail.com> wrote:
> Hi All,
>
> I have my application which sends me a form in JSON format.
> Is there any direct way or API GWT provides to render this JSON data
> into any GWT UI element like Panel or a Dialog box?

GWT itself does not support direct JSON Widget data binding.
If you want to parse JSON data I can recommend
https://github.com/chirino/resty-gwt . Rendering data after parsing
with resty gwt is simple...

Best,

Raphael

>
> --
> 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+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

--
inc: http://ars-machina.raphaelbauer.com
tech: http://ars-codia.raphaelbauer.com
web: http://raphaelbauer.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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

how to instantiate a uib class in junit?


I've done this successfully using gwt-uibinder-mock but it no longer works in gwt 2.4.   
Does anyone know of a simple way to structure a uib class to avoid the following error when running in junit?

java.lang.ExceptionInInitializerError
at com.netuitive.gwt.portal.client.portal.PortalUIB$$FastClassByGuice$$504f2a91.newInstance(<generated>)
at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40)
at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:60)
..
Caused by: java.lang.UnsupportedOperationException: ERROR: GWT.create() is only usable in client code!  It cannot be called, for example, from server code.  If you are running a unit test, check that your test case extends GWTTestCase and that GWT.create() is not called from within an initializer or constructor.
at com.google.gwt.core.client.GWT.create(GWT.java:92)
at com.google.gwt.user.client.ui.UIObject.<clinit>(UIObject.java:188)
... 39 more


Here is how I structire the UIB class now:
public class TheUIB  extends Composite  {

    interface MyUiBinder extends UiBinder<Widget, TheUIB  > {}
    private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);
  
    public TheUIB()  {
        super();
        initWidget(uiBinder.createAndBindUi(this));
    }



thanks,
David

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

generate a web page from java file

hello ,

I'm new to GWT, I installed the gwt plugin and the windowbuilder
plugin on eclipse, I created a new project with a class that
implements the EntryPoint interface, I was able to graph components
thanks to this class windowbuilder and I've even run, my problem is
when I create a second composite gwt, I build my GUI with
WindowBuilder, but at run-time is always the first page that runs, now
i'd like to know how to execute the second page

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Clarifying Understanding of Presenter Interface

After reading Large scale application development and MVP, I'm a bit
unclear on the Presenter interface and I'd appreciate help in
clarifying my understanding. Specifically I'm unclear as to whether
each Presenter is supposed to have it's own Presenter Interface or is
there supposed to be a universal Presenter interface, which all
Presenters then implement?

-Ari

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Data Grid and GWT-RPC

DataGrid just takes a List of results and is in no way coupled to RequestFactory. Return a list of results from an rpc call and send them to the grid. 

--
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/-/f-DrGwBFBk4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Data Grid and GWT-RPC

Dear All,

I would like to ask that whether possible to use DataGrid with gwt-rpc
and it is available an example?
As I see on the showcase page the datagrid example uses RequestFactory.

Thanks in advance!

András

--
- -
--  Csanyi Andras (Sayusi Ando)  -- http://sayusi.hu --
http://facebook.com/andras.csanyi
--  ""Trust in God and keep your gunpowder dry!" - Cromwell

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Has anybody setup an owned Collection in RequestFactory? Does know how to set the ParentKey/ChildKey?

I didn't see this thread earlier but you might find this information useful. Looking at some of your code, some observations:


1. For WalletData and WalletItemData, you don't have to manually set up the owning key yourself.  See the following:

http://code.google.com/appengine/docs/java/datastore/jdo/relationships.html#Owned_One_to_Many_Relationships

2.

/** 
   * I'm not really using the tokenizer here, but good for example
   */
  @Prefix("Entry")
  public static class Tokenizer implements PlaceTokenizer<SignInPlace> {

    private RequestFactory requestFactory;

    
    public Tokenizer(RequestFactory requestFactory) {
      this.requestFactory = requestFactory;
    }
    

You can't have ctor arguments on a tokenizer, it's created by the framework using GWT.create()

3. Callling r.with()

If you're using an EditorDriver, the driver provides a getPath() method that you give to with().


4. Lastly, even if the AppEngine documentation seems to favor JDO, I've found that JPA is nonetheless easier to use and it's supported on AppEngine too, albeit only 1.0, not >= 2


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

Re: I can't get RichTextAre OnPaste Event hooking|sinking to work?

As I suspected, your trying to solve the exact same problem I had.
People pasteing from Word into my app produced a crazy amount of junk
formating I wanted to get rid of ;)

I managed to deal (more or less) with it in normal TextBox's, but not
RTF.

Btw, if you run into an Opera compatibility issue with OnPaste, dont
worry about it. The browser doesnt seem to support it.....but it
strips away formating data itself anyway!

On Oct 31, 3:52 pm, Brandon Donnelson <branflake2...@gmail.com> wrote:
> I setup the source to look deeper and I'm looking at the source to see how
> the build it. I'm looking at two approaches to get to the iframe, one
> try accessing it through JSNI, find the iframe in the DOM..., 2, find how
> the source is passing events through the iframe and replicate that with
> onpaste. 3. keep trying... :) My goal is to intercept the onPaste event any
> way I can in the iframe.
>
> One thing that still puzzles me is, how do they get the cursor to blink in
> that iframe/(RichTextArea Element). I don't see where they attach any input
> elements. The textarea element they use looks like a container for
> transport only. Is there a trick to blink the cursor in innerHTML? I
> inspect the element and its either not picking up something b/c of focus or
> I'm missing the boat still.
>
> Either way, I intend to figure out a way to paste word document (text) with
> no formatting into the RichTextArea and which means I have to figure out
> how to catch OnPaste Events and access ClipBoardData API(s) in the browser.
>
> I'll be glad to share the results after I figure it out. Thanks for the
> reply.
>
> Brandon Donnelsonhttp://gwt-examples.googlecode.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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: future of gwt & who use gwt

For the original posters question of GWT applications out there, I can
offer two of my own modest pieces of work

http://www.rateoholic.co.uk
(A website for reviewing stuff, the whole interface is GWT with a
MySQL/PHP backend)

http://www.cuyperscode.com/cuyperscode/CuypersCode2/CCIIstart.html
(A online dutch adventure game I was commisioned to make the code for,
when the login comes up you can go "Log in als gastspeler!" to play as
guest and test out the interface.)

Both of these still have bugs to iron out, but without GWT it would
probably have been utterly impossible for a single person to have made
these, and be cross browser compatible.

-Thomas Wrobel

On Oct 31, 4:16 pm, Brandon Donnelson <branflake2...@gmail.com> wrote:
> I initial had this thought when it came out but then found the future is
> bright for GWT. I'm seeing extensive development planned and in progress
> for GWT after reading posts from the engineers. Even if and when it
> development does trend to dart, its really similar migration and I believe
> GWT just might translate to DART.
>
> My two cents :)
> Brandon Donnelsonhttp://gwt-examples.googlecode.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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: GaeAuthFilter and RequestFactory

Thank you for your help. It works now.

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

JSON Data in GWT

Hi All,

I have my application which sends me a form in JSON format.
Is there any direct way or API GWT provides to render this JSON data
into any GWT UI element like Panel or a Dialog box?

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Has anybody setup an owned Collection in RequestFactory? Does know how to set the ParentKey/ChildKey?

I put more info and demo here: http://code.google.com/p/gwt-examples/wiki/DemoActivitiesAndPlaces

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

Re: Error installing Eclipse Google App Engine Plugin

Hmmm. I'd suggest getting a newer version of eclipse if you can. 
Maybe this might help: http://www.youtube.com/watch?v=uvbz6Mw2I00&list=PL29B4CCEF46EFF4F2&index=1&feature=plpp_video

Brandon Donnelson
http://gwt-example.googlecode.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/-/dlaMJhVQuxgJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: future of gwt & who use gwt

I initial had this thought when it came out but then found the future is bright for GWT. I'm seeing extensive development planned and in progress for GWT after reading posts from the engineers. Even if and when it development does trend to dart, its really similar migration and I believe GWT just might translate to DART.

My two cents :)
Brandon Donnelson
http://gwt-examples.googlecode.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/-/8z-009jDD3gJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: GWT + GAE common issues.

I have found no issues with using GWT with GAE and have tried a multitude of ways. I just setup a demo using RequestFactory, JDO and I've showed how to used owned collections of another entity. 

http://code.google.com/p/gwt-examples/wiki/DemoActivitiesAndPlaces

You'll find key serialization and owned collection use there. Now I haven't made every possible use in my demo, but using key serialization in RequestFactory vai a StringId, you can do about anything you want. 

Hope that helps,
Brandon Donnelson
http://gwt-examples.googlecode.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/-/akegPrR1GMoJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: java.lang.NoClassDefFoundError:org/json/JSONException

I think you need to add the gwt-servlet-deps to the class path. right click on gwt-servlet-deps.jar and add to buildpath. I'm pretty sure that's where the json classes where.

http://code.google.com/p/gwt-examples/wiki/DemoRequestFactory - my setup notes.

Brandon Donnelson
http://gwt-examples.googlecode.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/-/0ZyMl2hOnSQJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: what container should i use?

If you want a Panel that you can control positioning in, use VerticalPanel and HorizontalPanel, then set the CellPositioning in the properties. If you use FlowPanel, you'll need to use CSS to Stylesheets to control positioning. You can always change it later to something else. 

Hope that helps,
Brandon Donnelson
http://gwt-examples.googlecode.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/-/7HMt7r8mNSEJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: I want to learn GWT,..

Here are some videos I've done to help folks get going.

http://www.youtube.com/playlist?list=PL29B4CCEF46EFF4F2&feature=viewall

Brandon Donnelson
http://gwt-examples.googlecode.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/-/ihjwmdEV7ZkJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: I can't get RichTextAre OnPaste Event hooking|sinking to work?

I setup the source to look deeper and I'm looking at the source to see how the build it. I'm looking at two approaches to get to the iframe, one try accessing it through JSNI, find the iframe in the DOM..., 2, find how the source is passing events through the iframe and replicate that with onpaste. 3. keep trying... :) My goal is to intercept the onPaste event any way I can in the iframe.

One thing that still puzzles me is, how do they get the cursor to blink in that iframe/(RichTextArea Element). I don't see where they attach any input elements. The textarea element they use looks like a container for transport only. Is there a trick to blink the cursor in innerHTML? I inspect the element and its either not picking up something b/c of focus or I'm missing the boat still.

Either way, I intend to figure out a way to paste word document (text) with no formatting into the RichTextArea and which means I have to figure out how to catch OnPaste Events and access ClipBoardData API(s) in the browser. 

I'll be glad to share the results after I figure it out. Thanks for the reply.

Brandon Donnelson
http://gwt-examples.googlecode.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/-/H_AbKlVwGtEJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Findbugs problem by GWT Project.

I have a maven GWT project and i am using findbugs to analyze the code.

<plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>findbugs-maven-plugin</artifactId>
                <version>2.3.2</version>               
                <configuration>
                    <targetJdk>1.6</targetJdk>
                    <onlyAnalyze>com.mycompany.</onlyAnalyze>                   
                </configuration>
</plugin>

But I am getting the following error and dont get any result from findbugs. The other plugins are working properly.

[INFO] Fork Value is true
[java] The following classes needed for analysis were missing:
[java] com.google.gwt.core.client.GWTBridge
[java] Missing classes: 2
[INFO] xmlOutput is false

What is the difference of findbugs?? What do you recommend?


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

Re: Drag & drop

Also GWT has native HTML5 DnD support.

You could find more info about it here :GWT + HTML5: A web developers dream!


--
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/-/4UL0ESE9btAJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: How to align header/footer text in cell table

I will definitely try this out.  Thanks for sharing... Though, I still believe this should be inherent behavior for the Column Header itself.

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

Re: GWT Developer Plugin for Firefox 7

Cool !

May be Alan could be interested by your systems specs ?...
By the way it is always better to give a little bit of these info for
every question/remark you have.

It's sad but computing is still very sensitive to the context :-/

On Oct 27, 6:38 am, morteza adi <morteza...@gmail.com> wrote:
> Thanks Joel !
>
> it worked for me very well !
>
> Truly yours,
> Morteza Adi
>
>
>
>
>
>
>
> On Wed, Oct 26, 2011 at 6:41 PM, Joel <glatap...@gmail.com> wrote:
> > Thank you very much :-)
>
> > On Oct 25, 5:14 pm, Alan Leung <acle...@google.com> wrote:
> > > Sometimes this week.
>
> > > It seems to be pretty stable.
>
> > > -Alan
>
> > > On Tue, Oct 25, 2011 at 7:31 AM, Ivan Dimitrijevic <dim...@gmail.com>
> > wrote:
> > > > Works regular for me on Mac OS X 10.7.2
> > > > 64bit
>
> > > > --
> > > > S postovanjem,
> > > > *Ivan Dimitrijevic*, dipl.ing. ISiT, MSc
> > > > d...@dnjcompany.com <d...@dnjcopmany.com>
> > > >http://dimi.dnjcompany.com
>
> > > > On Tue, Oct 25, 2011 at 16:29, Joel <glatap...@gmail.com> wrote:
>
> > > >> It seems to work for me as well, under Firefox 7.0.1 with Windows 7
> > > >> x64.
>
> > > >> When is the deployment planned ?
>
> > > >> On Oct 10, 6:27 pm, Alan Leung <acle...@google.com> wrote:
> > > >> > For those who had experienced a crash on 32bit Linux, would you mind
> > > >> doing
> > > >> > me a favor by trying the attached xpi file?
>
> > > >> > Thanks!
>
> > > >> > -Alan
>
> > > >> > On Mon, Oct 10, 2011 at 3:15 PM, Michael Vogt <
> > vmei...@googlemail.com
> > > >> >wrote:
>
> > > >> > > > works perfectly on my Ubuntu 64 bit
> > > >> > > > Linux N53SV 2.6.38-11-generic #50-Ubuntu SMP Mon Sep 12 21:17:25
> > UTC
> > > >> 2011
> > > >> > > > x86_64 x86_64 x86_64 GNU/Linux
> > > >> > > > FF 7.0.1
>
> > > >> > > Yes works also on my ThinkPad with Ubuntu 11.04 64-bit and Firefox
> > > >> > > 7.0.1 at home.
>
> > > >> > > --
> > > >> > > 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+unsubscribe@googlegroups.com.
> > > >> > > For more options, visit this group at
> > > >> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > > >> >  gwt-dev-plugin.xpi
> > > >> > 4080KViewDownload
>
> > > >> --
> > > >> 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+unsubscribe@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+unsubscribe@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+unsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: LayoutPanel - how to set background image?

In Uibinder specify your image on src attribute of <ui:image> tag,
Inside the <ui:style> attribute specify your @sprite.backgroundPicture
tag. Try the below example.

S. Abraham
www.DataStoreGwt.com
Persist objects directly in Google App Engine

<?xml version="1.0" encoding="UTF-8"?>
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'>

<ui:image field='backgroundPicture' src='easyxbrl_logo_1.png' />

<ui:style>
@sprite .backgroundPicture {
gwt-image: 'backgroundPicture';
float: left;
margin-top:5px;
margin-bottom:5px;
margin-left: 50px;

}
</ui:style>
<g:LayoutPanel styleName="{style.backgroundPicture}"/>
</ui:binder>


--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: GWT Celltable: How to apply mouse enter event in celltable's cell

Subclass the EditTextCell(), call the onBrowserEvent() method. This
method handle a browser event that took place within the cell.
Capture the event using event.getType().

S. Abraham
www.DataStoreGwt.com
Persist objects directly in Google App Engine

On Oct 31, 1:28 pm, vaibhav bhalke <bhalke.vaib...@gmail.com> wrote:
> Hi,
> How to apply mouse enter event in celltables cell.
>
> If Mouse enter in cell for record edition then I want to set string to
> Record State column that record is edited "Record modify"
> On Mouse enter I will check cellvalaue is not equal old value then I will
> set "Record modify" value to related record for State column other wise
> empty.
>
> Is it possible to apply Mouse enter event in setFieldUpdater() of column?
> Or How to apply OnBrowseEvent on cell ?
>
> regards,
> Vaibhav
>
> <http://about.me/vaibhavbhalke>

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Swapping an image at runtime....possible without setUrl?

I have some animated sprites (which extend image) where the images are
loaded at runtime (so no ImageBundles), and I wondered whats the best
way to animate the images.

Precacheing the images and using "setUrl" does work. But I cant help
feeling it would be better to store the images in an array and somehow
"applyTo" or update one image to become another.

Anyone have a good method to do this?

I thought of using a simplePanel containing a image which could then
be swapped for another....but that adds unnesscery html and I can no
longer treat my animatedSprites just as images.

Is there anyway to just swap a images data for another? much like you
can with AbstractImagePrototypes....only with Image data loaded (once)
from a url at startup?

Hope I am clear enough.
Thanks,
Thomas

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Drag & drop

Strongly second "gwt-dnd". Its excelent, very very flexible and works
well.

I have worked on two rather massive projects which used it for a
(game) inventory system and it really saved a lot of work. We even
have used it to have dragging and dropping accross multiple
inventorys.

Not sure exactly why it isnt built into GWT, but its certainly no pain
to use.
Just be very sure to track your drophandlers and be sure to unattach
them correctly when they arnt attached to the page anymore.

On Oct 30, 8:02 pm, Ed <post2edb...@gmail.com> wrote:
> See the probject gwt-dnd:http://code.google.com/p/gwt-dnd/
> The owner is a member of the gwt dev team.
> - Ed
>
> On Oct 29, 10:13 pm, Celinio <cel...@gmail.com> wrote:
>
>
>
> > Hi GWT developers,
>
> > what can GWT offer regarding the drag and drop capabilities ?
>
> > 1) Can i easily do some drag and drop, in the same web page, from one widget
> > to another ?
> > 2) Can i easily do drag and drop some file from the file explorer to a
> > widget in a web page ?
>
> > I'm thinking of providing the drag and drop feature to the user, if he needs
> > to attach a document to form (instead of using the Import/Upload button).
>
> > Thanks for helping.

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: I can't get RichTextAre OnPaste Event hooking|sinking to work?

I was trying to work this out a few months back but gave up.
If anyone has a answer Id be interested too hear as well.

I suspect somehow you have to tie it to the inner iframes DOM, but I
dont know how to do that.
(in fact, not even sure if you can get the inner DOM of a iframe :-/)

On Oct 30, 4:30 pm, Brandon Donnelson <branflake2...@gmail.com> wrote:
> I'm trying to observe the OnPaste Event but can't seem to hook it into the
> RichTextArea and not sure why yet.
>
> http://code.google.com/p/gwt-examples/source/browse/trunk/GoneVertica...
> - source (snippet below)
>
>      // deal with messy pasting
>     /**
>      * TODO - No Worky - iframe? I see the ook events in the RichTextAreaImpl and how come I can't hook them in here?
>      */
>     sinkEvents(Event.ONPASTE); // TODO ? no worky
>     DOM.sinkEvents(getElement(), Event.ONPASTE); //TODO ? no worky
>
>     //sinkEvents(Event.ONKEYUP);
>
>     /**
>      * TODO this won't work either, b/c it won't capture once focued on richtextarea  
>      */
>     Event.addNativePreviewHandler(new NativePreviewHandler() {
>       public void onPreviewNativeEvent(NativePreviewEvent event) {
>         NativeEvent ne = event.getNativeEvent();
>         if (event.getTypeInt() == Event.ONPASTE) {
>           System.out.println("Pasting?????");
>           Window.alert("works");
>         }
>         System.out.println("event.toDebutString()=" + event.toDebugString() + " ne.getType=" + ne.getType() + " ne.toString=" + ne.toString() + " charCode=" + ne.getCharCode() + " key=" + (char)ne.getCharCode());
>       }
>     });
>
> Has anybody hooked the onpaste event onto richtextarea?
>
> Thanks
> Brandon Donnelsonhttp://gwt-examples.googlecode.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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: TabLayoutPanel,how to catch the mouse click event on tab

You can use either of the BeforeSelectionHandler or SelectionHandler
for the TabLayoutPanel. If you want to perform your operation after
the tab is clicked use the latter

example:

@UiHanlder("myTabPanel")
public void onMyTabClick(SelectionEvent<Integer> event) {

int item = event.getSelectedItem();

//note item holds the tab id. now compare this against the tab's you
have, index starts from zero.

switch(item) {
case tab1 :
break;
case tab2:
break;
}

}


Thanks
Ashwin

On Monday 31 October 2011 12:03:13 PM IST, wahaha wrote:
> there is a TabLayoutPanel instance,i want to alert something while i
> clicked on the tab button.
>
> how to implement this?
>


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

Re: GWT Celltable: How to apply mouse enter event in celltable's cell

Capture the click event/ change events. You will have to override the
EditableCell and write your own OnBrowseEvent Handler.

For reference, check the code for EditableTextCell. it actually would
give you hints on how to check for old values as it already does, you
can extend it to perform your record modify operation

Thanks
Ashwin

On Monday 31 October 2011 01:58:40 PM IST, vaibhav bhalke wrote:
> Hi,
> How to apply mouse enter event in celltables cell.
>
> If Mouse enter in cell for record edition then I want to set string to
> Record State column that record is edited "Record modify"
> On Mouse enter I will check cellvalaue is not equal old value then I
> will set "Record modify" value to related record for State column
> other wise empty.
>
> Is it possible to apply Mouse enter event in setFieldUpdater() of column?
> Or How to apply OnBrowseEvent on cell ?
>
> regards,
> Vaibhav
>
> <http://about.me/vaibhavbhalke>
>
>
>
> --
> 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+unsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: GWT Celltable How to make Non-Editable cell in Editable column

you mean 1st column of row to be non-editable or readonly. Use a
TextColumn or use TextCell instead of EditTextCell

Thanks
Ashwin

On Monday 31 October 2011 04:08:25 PM IST, vaibhav bhalke wrote:
> Hi,
>
> I added EditTextCell(stringTestEditTextCell) to Column(testColumn).
>
> EditTextCell editTextCell = new EditTextCell();
> Column<Record, String> stringColumn = new Column<Record, String>(
> editTextCell) {
> @Override
> public String getValue(Record object) {
>
> return object.getValue();
> }
> };
>
> All cells in testColumn are editable.
>
> I want 1st cell of column such way that 1st cell of column should be
> Non-Editable.
>
> --
> Best Regards,
> Vaibhav
>
> <http://about.me/vaibhavbhalke>
>
>
>
> --
> 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+unsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: java.lang.NoClassDefFoundError:org/json/JSONException

I have the same problem:
java.lang.NoClassDefFoundError: org/json/JSONException
at runtime when I try to call request.fire().
I tried including in my WEB-INF/lib several combinations of these jars (gwt-servlet.jar, gwt-servlet-deps.jar, requestfactory-servlet.jar, validation-api-1.0.0.GA.jar), without success.
I only realized that validation-api-1.0.0.GA.jar is needed in my application (otherwise the RF Servlet does not respond properly on /gwtRequest) and that JSONException is actually included in gwt-servlet-deps.jar and requestfactory-servlet.jar.
Any help? Thanks,

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

GWT Celltable How to make Non-Editable cell in Editable column

Hi,

I added EditTextCell(stringTestEditTextCell) to Column(testColumn).

 EditTextCell editTextCell = new EditTextCell();
       Column<Record, String> stringColumn = new Column<Record, String>(
                editTextCell) {
            @Override
            public String getValue(Record object) {
             
                return object.getValue();
            }
        };

All cells in testColumn are editable.

 I want 1st cell of column such way that  1st cell of column should be Non-Editable.

--
Best Regards,
Vaibhav





--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Firefox 7.0.1 plugin does not work

Hello.

Well, I am working with Firefox 7 since begining of this month without
any problem. Please see this thread to download it:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/f7f283aed77d31d0/e5e7c26fee6514dd?lnk=gst&q=firefox+7+plugin#e5e7c26fee6514dd


Hope this helps,
Michael

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: SerializationException with List

Your problem should be either that the list itself is a problem, or one or more of the elements inside it is a problem.

The list itself can be non-serializable if your RPC interfaces do not indicate that this list implementation will be required. You can check by looking first in your *.gwt.rpc file that's created from your compile to see whether your list implementation is present. If it's not, then the problem is with your list implementation and not (necessarily) the things you put in the list.

Your compile should also generate a *.rpc.log file where GWT shows you what it worked out about the serializability of each type.

If your list implementation is in the gwt.rpc file, then the problem should be with whatever you're putting into the list.

Remember that gwt-serializability is more than just whether you implement Serializable. There are other constraints too, most notably that you need a no-arg constructor and that all your non-static non-final fields must also be gwt-serializable (unless you provide a CustomFieldSerializer).

HTH
Paul

On 29/10/11 16:00, darkling wrote:
> Just an addendum but I tried removing maven and running the eclipse
> gwt plugin directly to build my project. I got the exact same errors:
> "The response can not be deserialized" when I have gwt-servlet-2.2.jar
> in my war lib and "The response can not be deserialized expected
> version 7 but server had 5" when I don't.
>
> Any help would be wonderful because we're trying to do a release come
> Monday
> Thanks
>
> On Oct 28, 7:52 pm, darkling<darkling...@aol.com> wrote:
>> Yes but I still got The response could not be deserialized
>>
>> Im using maven plugin so my POM looks like this:
>>
>> <plugins>
>> <plugin>
>> <groupId>org.codehaus.mojo</groupId>
>> <artifactId>gwt-maven-plugin</artifactId>
>> <version>2.4.0</version>
>> <configuration>
>> <localWorkers>1</localWorkers>
>> <warSourceDirectory>${basedir}/war</warSourceDirectory>
>> <module>${cura.assessor.module}</module>
>> <style>OBFUSCATED</style>
>> <gwtVersion>2.4.0</gwtVersion>
>> <disableCastChecking>true</disableCastChecking>
>> <soyc>false</soyc>
>> </configuration>
>> <executions>
>> <execution>
>> <goals>
>> <goal>compile</goal>
>> <goal>generateAsync</goal>
>> </goals>
>> </execution>
>> </executions>
>> </plugin>
>>
>> I'm not manually including any gwt jars, though I added gwt-
>> servlet.jar to my war folder because I got the explicit mismatching
>> version error when I didn't
>> Matt
>>
>> On Oct 28, 4:18 pm, Markus Zywitza<markus.zywi...@gmail.com> wrote:
>>
>>
>>
>>
>>
>>
>>
>>> Did you already try ArrayList instead of List?
>>> --Markus
>>> 2011/10/28 darkling<darkling...@aol.com>
>>>> I've just managed to update my GWT (2.4) and I'm having problems with
>>>> my RPCs. Every time I try to send a List object it says the item can
>>>> not be deserialized. I single stepped through it and it comes out as a
>>>> SerializationException which GWT wraps in a
>>>> IncompatibleRemoteServiceException.
>>>> The Lists are of pojo objects that do implement Serializable and have
>>>> always been deserializable before. I thought that it might be related
>>>> to mismatching GWT jars so I tried changing them. When I use the gwt-
>>>> servlet.jar (version 2.2.) it says
>>>> "Response can not be deserialized".
>>>> When I use a different version of that jar it says "
>>>> Response can not be deserialized expected version 7 but server had 5"
>>>> or something like that which leads me to believe my jars are correct.
>>>> But for some reason I can't deserialize a list. I've seen a lot of
>>>> postings on this subject but no concrete answers. I'm not running in
>>>> hosted mode, just using raw tomcat. I can't figure out what's wrong.
>>>> Can anyone recommend some other things I should check? Or a way to
>>>> debug so I know what versions are being used? The System no longer
>>>> complains about the versions when I use the "correct" jars but if the
>>>> versions are correct can anyone suggest a reason why the List object
>>>> can not be deserialized?
>>>> Any help would be great, thanks.
>>>> --
>>>> You received this message because you are subscribed to the Google Groups
>>>> "Google Web Toolkit" group.
>>>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>>>> To unsubscribe from this group, send email to
>>>> google-web-toolkit+unsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

GWT Celltable: How to apply mouse enter event in celltable's cell

Hi,
How to apply mouse enter event in celltables cell.

If Mouse enter in cell for record edition then I want to set string to Record State column that record is edited "Record modify"
On Mouse enter I will check cellvalaue is not equal old value then I will set "Record modify" value to related record for State column other wise empty.

Is it possible to apply Mouse enter event in setFieldUpdater() of column?
Or How to apply OnBrowseEvent on cell ?

regards,
Vaibhav





--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Firefox 7.0.1 plugin does not work

Alright thank you :)

Fortunately the chrome plugin works so we can cope, for the time
being.

On Oct 30, 9:08 pm, Ed <post2edb...@gmail.com> wrote:
> This is a well known issue and has been discussed several times in
> this forum. Have a search.
> Bottom line: FF is updating it's browsers too fast at this moment such
> that the latest versions (> 7) aren't supported by the plugin yet
> (almost impossible to keep up2date with the current FF updates).
>
> Before you upgrade your browser, please first consult the GWT
> documentation to see if it's supported.
> Solution: uninstall FF and install FF 6. Works fine.
>
> - Ed

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

Sunday, October 30, 2011

TabLayoutPanel,how to catch the mouse click event on tab

there is a TabLayoutPanel instance,i want to alert something while i
clicked on the tab button.

how to implement this?

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

Re: How to align header/footer text in cell table

Actually, I just got it working by creating my own HTMLHeader and HTMLCell.  Here it is: 

1. The HTMLHeader class: 
import com.google.gwt.user.cellview.client.Header;

public class HTMLHeader extends Header<String> {
private String html;

public HTMLHeader(String html) {
super(new HTMLCell());
this.html = html;
}

@Override
public String getValue() {
return html;
}
}


2. The HTMLCell class:
import com.google.gwt.cell.client.AbstractCell;
import com.google.gwt.safehtml.shared.SafeHtmlBuilder;

public class HTMLCell extends AbstractCell<String> {
public HTMLCell() {
}

@Override
public void render(Context context, String value, SafeHtmlBuilder sb) {
if (value != null) {
sb.appendHtmlConstant(value);
}
}
}


3. Add the HTMLHeader aligning it to the right: 
myTable.addColumn(myColumn, new HTMLHeader("<div align=\"right\">Hooray</div>")); 


And you're done!

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

Re: How to align header/footer text in cell table

Actually, I just got it working by creating my own HTMLHeader and
HTMLCell. Here it is:

1. The HTMLHeader class:
import com.google.gwt.user.cellview.client.Header;

public class HTMLHeader extends Header<String> {
private String html;

public HTMLHeader(String html) {
super(new HTMLCell());
this.html = html;
}

@Override
public String getValue() {
return html;
}
}


2. The HTMLCell class:
import com.google.gwt.cell.client.AbstractCell;
import com.google.gwt.safehtml.shared.SafeHtmlBuilder;

public class HTMLCell extends AbstractCell<String> {
public HTMLCell() {
}

@Override
public void render(Context context, String value, SafeHtmlBuilder sb)
{
if (value != null) {
sb.appendHtmlConstant(value);
}
}
}


3. Add a HTML header aligning it to the right:
myTable.addColumn(myColumn, new HTMLHeader("<div align=\"right
\">Hooray</div>"));

Bingo!


On Oct 31, 4:18 pm, Craig Mitchell <m...@craig-mitchell.com> wrote:
> Star the issue and hope Google adds the functionality:http://code.google.com/p/google-web-toolkit/issues/detail?id=6500
>
> On Oct 11, 7:58 pm, Thomas Trebbien Pedersen
>
>
>
>
>
>
>
> <thomas.trebbien.peder...@gmail.com> wrote:
> > Hi,
>
> > Can someone please help.
>
> > On 7 Okt., 10:28, Thomas Trebbien Pedersen
>
> > <thomas.trebbien.peder...@gmail.com> wrote:
> > > Hi,
>
> > > How do I set the horizontal alignment for headers/footers in a
> > > CellTable?
>
> > > I want to right align the text like I can do with a Column:
>
> > > someColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
>
> > > Isn't something similar possible for headers/footers - can anyone
> > > please help.
>
> > > Thanks.
>
> > > \Thomas

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: How to align header/footer text in cell table

Star the issue and hope Google adds the functionality:
http://code.google.com/p/google-web-toolkit/issues/detail?id=6500

On Oct 11, 7:58 pm, Thomas Trebbien Pedersen
<thomas.trebbien.peder...@gmail.com> wrote:
> Hi,
>
> Can someone please help.
>
> On 7 Okt., 10:28, Thomas Trebbien Pedersen
>
>
>
>
>
>
>
> <thomas.trebbien.peder...@gmail.com> wrote:
> > Hi,
>
> > How do I set the horizontal alignment for headers/footers in a
> > CellTable?
>
> > I want to right align the text like I can do with a Column:
>
> > someColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
>
> > Isn't something similar possible for headers/footers - can anyone
> > please help.
>
> > Thanks.
>
> > \Thomas

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: what container should i use?

i find the solution,i use <div> first and then set the the <div>'s
element's css property "position" to "static".

On Oct 31, 8:59 am, wahaha <il...@yahoo.com.cn> wrote:
> do it exist?
>
> On Oct 28, 2:47 pm, wahaha <il...@yahoo.com.cn> wrote:
>
>
>
>
>
>
>
> > i need a container just logically,it will not affect the position.

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Third Party API Call in Server package

Hi All,

I want to make a third party call in server package, but issue is it
uses any UI frame's i.e. example any HTML division's ID as a
parameter. As a result the call is failing because such UI divisions
are not accessible on server side.

Also, the call couldn't be made from client package because, when i
run it. it gives me an error saying "No Source Code available"

So, i wish to know is there any workaround for it?


Thanks,
Indra

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: what container should i use?

do it exist?

On Oct 28, 2:47 pm, wahaha <il...@yahoo.com.cn> wrote:
> i need a container just logically,it will not affect the position.

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Removing entities in OneToMany with RequestFactory & JPA

In fact, you don't even need to call merge either since you're inside a transaction

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