Re: Future of GWT survey

2012-09-28 Thread July
Totally agreed with this thread.

On Thursday, September 20, 2012 9:58:58 PM UTC+8, Oleg K. wrote:
>
> I've post my answers to survey. Here what was not included.
>
> 1) I use maven (with gwt-maven-plugin which is very-very good). With that 
> plugin I think meny maven users are happy. The only real problem is that it 
> cant' autoreload dependencies so GWT Dev Mode console should always be 
> restarted when I change the code in the library.
>
> 2) I don't think that "Swiss Army knife" is what is really needed. Just 
> make some central repository where gwt extensions and libraries can leave 
> with real usage reports, user comments etc. Now I do not have any way to 
> compare or even know about good gwt library. A site like 
> http://jsfmatrix.net/ could help.
>
> 3) I think that GWT is not as modular as it could be. For example, it has 
> widgets that works only in quirks mode or only in standards mode. But thay 
> all are included in one jar file and all can be used in project.
>
> 4) There are many good JS libraries. The only way now to include them is 
> wrapping existing JavaScript calls to that library and that's it. Neither 
> optimizations and code reducing can be used nor packaging of that js code 
> into "one_big_html_which_include_all".
>
> 5) Current JSON library included into GWT can not be used without tonns of 
> useless code. Custom classes that extends JavaScriptObject helps a bit but 
> that is not enougth.
>
> This points are not supposed to say "GWT is bad". I think that GWT v2.5 is 
> really great. I use it for my current projects and I think that its 
> principles are the best choise for web.
>
> Oleg K.
>

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



Cell-Backed Widgets

2012-06-28 Thread July
HI all:

I found one doc from GWT offcial wiki page, it's about cell-backed widgets:
http://code.google.com/p/google-web-toolkit/wiki/CellBackedWIdgets 

The idea in this doc is really nice, however seem GWT does not continue 
with this idea? in this package:
com.google.gwt.widget.client
there are merely only one of the "modern widget" since 2011.

I think It would be very regretful if GWT team quit this wonderful design 
pattern.

-- 
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/-/0GOp11UuyJIJ.
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 compile: can not find in dependent jar

2012-06-02 Thread July
Thanks Joseph, As you said, ClientBundle is the way.

On Saturday, June 2, 2012 3:28:50 AM UTC+8, Joseph Lust wrote:
>
> Try using a ClientBundle with 
> ImageResource<https://developers.google.com/web-toolkit/doc/latest/DevGuideClientBundle#ImageResource>in
>  the Common project. This will make it very easy to reference that bundle 
> and all of its resources, so that you don't have to worry about relative 
> file paths when trying to pull images out of it.
>
> I like to have a resources package in a given widget's package. So you'd 
> have the following structure:
> com.yourCommonStuff.yourModule.client.widgets.yourWidget.resources 
> (ClientBundle interfaces here)
> com.yourCommonStuff.yourModule.client.widgets.yourWidget.resources.images 
> (image files here)
> com.yourCommonStuff.yourModule.client.widgets.yourWidget.resources.css ( 
> css files here )
> com.yourCommonStuff.yourModule.client.widgets.yourWidget (other widget 
> stuff here)
>
> This way everything for a widget is nice and self contained, rather than a 
> bunch of widgets dumping all their CSS and images into a single public/ 
> folder. It makes referencing files far easier, otherwise you end up with 
> lines like @Source('../../../someOtherPkg/public/images/image.png').
>
> Sincerely,
> Joseph
>
> On Thursday, May 31, 2012 10:36:17 AM UTC-4, July wrote:
>>
>>
>> My project depends on the other project, i call it "common" because it 
>> contain some common widgets, some of these widget use UIbinder, i use 
>> something like below in the Uibinder:
>>
>> 
>>
>> the common project is build as jar to be used in upper project, when 
>> upper GWT project compile, it can not find the  > and give compile error.
>>
>> Anybody know how to solve this problem? Or any other ways to conquer this?
>>
>>  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/-/iy0bOV-YG08J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



GWT compile: can not find in dependent jar

2012-05-31 Thread July

My project depends on the other project, i call it "common" because it 
contain some common widgets, some of these widget use UIbinder, i use 
something like below in the Uibinder:



the common project is build as jar to be used in upper project, when upper 
GWT project compile, it can not find the  https://groups.google.com/d/msg/google-web-toolkit/-/d4l84i-qWYgJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to apply css file to html content within HTML widget?

2012-05-30 Thread July

And thanks for the explanation  Joseph Lust , that's helpful.

On Thursday, May 31, 2012 10:23:57 AM UTC+8, July wrote:
>
> I solved this by using ClientBundle.
>
> On Wednesday, May 30, 2012 11:12:07 PM UTC+8, July wrote:
>>
>> Thanks for the reply, this is what i do, however no effect.
>> it will generate html like:
>>
>> 
>> ...
>> 
>>
>> but it will not apply the style from the file to the div element 
>> automatically. 
>> Do i have to style each class in the  one by one?
>>
>>
>> On Wednesday, May 30, 2012 9:44:20 PM UTC+8, Ashu wrote:
>>>
>>> try like this: 
>>>
>>> >> xmlns:gwt='urn:import:com.google.gwt.user.client.ui'> 
>>>  
>>>
>>> On Wed, May 30, 2012 at 6:55 PM, July  wrote: 
>>> > Hello: 
>>> > 
>>> > At client side my page contain a com.google.gwt.user.client.ui.HTML, 
>>> this 
>>> > HTML will contain a large number of  and each  is associated 
>>> with 
>>> > its own style. all the styles are defined in another css file. 
>>> > 
>>> > My question is how to apply the style to the HTML content? 
>>> > i use 
>>> >  
>>> > 
>>> > but it does not work. 
>>> > 
>>> > 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/-/bGL4yPbtpY4J. 
>>> > 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 view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/FJquizwSxqsJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to apply css file to html content within HTML widget?

2012-05-30 Thread July
I solved this by using ClientBundle.

On Wednesday, May 30, 2012 11:12:07 PM UTC+8, July wrote:
>
> Thanks for the reply, this is what i do, however no effect.
> it will generate html like:
>
> 
> ...
> 
>
> but it will not apply the style from the file to the div element 
> automatically. 
> Do i have to style each class in the  one by one?
>
>
> On Wednesday, May 30, 2012 9:44:20 PM UTC+8, Ashu wrote:
>>
>> try like this: 
>>
>> > xmlns:gwt='urn:import:com.google.gwt.user.client.ui'> 
>>  
>>
>> On Wed, May 30, 2012 at 6:55 PM, July  wrote: 
>> > Hello: 
>> > 
>> > At client side my page contain a com.google.gwt.user.client.ui.HTML, 
>> this 
>> > HTML will contain a large number of  and each  is associated 
>> with 
>> > its own style. all the styles are defined in another css file. 
>> > 
>> > My question is how to apply the style to the HTML content? 
>> > i use 
>> >  
>> > 
>> > but it does not work. 
>> > 
>> > 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/-/bGL4yPbtpY4J. 
>> > 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 view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/ABsa8wE3Ae4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to apply css file to html content within HTML widget?

2012-05-30 Thread July
Thanks for the reply, this is what i do, however no effect.
it will generate html like:


...


but it will not apply the style from the file to the div element 
automatically. 
Do i have to style each class in the  one by one?


On Wednesday, May 30, 2012 9:44:20 PM UTC+8, Ashu wrote:
>
> try like this: 
>
>  xmlns:gwt='urn:import:com.google.gwt.user.client.ui'> 
>  
>
> On Wed, May 30, 2012 at 6:55 PM, July  wrote: 
> > Hello: 
> > 
> > At client side my page contain a com.google.gwt.user.client.ui.HTML, 
> this 
> > HTML will contain a large number of  and each  is associated 
> with 
> > its own style. all the styles are defined in another css file. 
> > 
> > My question is how to apply the style to the HTML content? 
> > i use 
> >  
> > 
> > but it does not work. 
> > 
> > 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/-/bGL4yPbtpY4J. 
> > 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 view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/T5F5bM_umRsJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



How to apply css file to html content within HTML widget?

2012-05-30 Thread July
Hello:

At client side my page contain a com.google.gwt.user.client.ui.HTML, this 
HTML will contain a large number of  and each  is associated with 
its own style. all the styles are defined in another css file.

My question is how to apply the style to the HTML content?
i use 


but it does not work.

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/-/bGL4yPbtpY4J.
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 2.4: save entities with multiple sub entities, can only get the first one at server side.

2012-05-28 Thread July G
Thank you guys, i changed to List and it works.
BTW before i use EntityProxy in Set which lead to error, other than
ValueProxy

On Tue, May 29, 2012 at 2:04 PM, Ashwin Desikan wrote:

> Additionally, try using List instead of Set. It works for me when I faced
> similar issues. Only problem would be you will have to manage any
> redundancy with List
>
> ~Ashwin
>
> Sent from my iPhone
>
> On May 29, 2012, at 11:20 AM, Thomas Broyer  wrote:
>
> There are unfortunately many small but annoying issues with RF in 2.4;
> most of them will be fixed in 2.5, to be released in a month or so.
> Have a look at the issue tracker, I seem to recall having worked on
> patches for issues with ValueProxies and Sets (assuming TagProxy is a
> ValueProxy).
>
> On Tuesday, May 29, 2012 7:02:08 AM UTC+2, July wrote:
>>
>> I'm using GWT requestFactory to save an entity, the code is rather
>> simple: i want to create a Blog entity with several Tags, here is my code:
>>
>> client side:
>>
>>  BlogRequest blogRequest = factory.blogRequest();
>> BlogProxy  instance  = blogRequest.create(  BlogProxy .class );
>>
>> instance.setName( "blog name");
>> instance.setNote( "mynote2" );
>> instance.setTags( base.createTagProxies( blogRequest, tag ) );
>>
>> blogRequest.save( instance ).fire(...);
>>
>>
>> public Set createTagProxies( BlogRequest request, String...
>> tagNames )
>> {
>> Set tagproxies = new HashSet();
>> for( String tagName : tagNames )
>> {
>> TagProxy proxy = request.create( TagProxy.class );
>> proxy.setName( tagName );
>> tagproxies.add( proxy );
>> }
>> return  tagproxies  ;
>> }
>>
>> for example i create a blog with "Tag1" and "Tag2" in a Set, however
>> after the request send to server side, at Blog#setTags(Set tags)
>> method there is only one tag in the parameter set, which is "Tag1", "Tag2"
>> is just missing.
>>
>> Could anybody help with this issue? 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/-/2Nnf11Vk2xQJ>
> https://groups.google.com/d/msg/google-web-toolkit/-/2Nnf11Vk2xQJ.
> 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.
>

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



RequestFactory 2.4: save entities with multiple sub entities, can only get the first one at server side.

2012-05-28 Thread July
I'm using GWT requestFactory to save an entity, the code is rather simple: 
i want to create a Blog entity with several Tags, here is my code:

client side:

 BlogRequest blogRequest = factory.blogRequest();
BlogProxy  instance  = blogRequest.create(  BlogProxy .class );

instance.setName( "blog name");
instance.setNote( "mynote2" );
instance.setTags( base.createTagProxies( blogRequest, tag ) );

blogRequest.save( instance ).fire(...);


public Set createTagProxies( BlogRequest request, String... 
tagNames )
{
Set tagproxies = new HashSet();
for( String tagName : tagNames )
{
TagProxy proxy = request.create( TagProxy.class );
proxy.setName( tagName );
tagproxies.add( proxy );
}
return  tagproxies  ;
}

for example i create a blog with "Tag1" and "Tag2" in a Set, however after 
the request send to server side, at Blog#setTags(Set tags) method 
there is only one tag in the parameter set, which is "Tag1", "Tag2" is just 
missing.

Could anybody help with this issue? 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/-/c98J9a_tfyAJ.
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: Call for action: Time to rethink a road-map and more frequent updates for GWT.

2012-04-19 Thread July
+1


On Wednesday, April 18, 2012 4:48:52 AM UTC+8, emurmur wrote:
>
> I'm one of the fence sitters. 
>
> I have been using Flex/Flash, which has been fantastic, but has no 
> future on the mobile web.  I think there are only two mature tools 
> that would allow me to create similarly rich applications; GWT and 
> Closure Tools.  Google has decided that Javascript won't cut it for 
> their own future products, even though they are heavily invested in 
> Closure Tools.  I agree completely.  It is important to understand 
> that they have also decided NOT to move everything to GWT.  This makes 
> some sense, given that the owner of Java is suing them.  I think this 
> is in no way a reflection on GWT as a tool and technology.  So Google 
> has decided to move forward with a third initiative designed, in part, 
> to replace GWT and Closure Tools at Google.  So, I look at that and I 
> am worried about long-term support for GWT.  I think that is a 
> reasonable concern.  This concern is mitigated by the fact that GWT is 
> a fully open-source project.  Flex/Flash on mobile browsers _was_ 
> fully supported and look how that turned out.  So, corporate support 
> is no guarantee; open source is actually a safer bet.  However, I 
> would feel a lot better if I had an official roadmap for GWT. 
>
> That being said, Ray's comments on what is coming are heartening.  The 
> biggest worry I have for GWT, if Google stops directly supporting it, 
> is the debug environment.  The plugin seems to need a lot of 
> maintenance because the browsers are moving so fast.  The upcoming 
> support for source-maps mitigates this; I would feel better if I did 
> not have to rely on a plugin. 
>
> I've been working with Dart quite a bit and it is really promising. 
> However, integration with other Javascript environments is 
> problematic.  For instance, Dart integration with PhoneGap does not 
> exist and appears to be very challenging (some have tried and decided 
> to pass on it).  This is a non-starter for me.  I want to use the 
> mobile web, but I also want the flexibility of providing an app if my 
> customers want one.  For now, Dart can't do that.  This may also be a 
> problem when trying to integrate a Dart app into Windows 8 Metro.  GWT 
> is far superior in this regard; it has a nice architecture for 
> integrating with Javascript and many useful implementations, including 
> a couple for PhoneGap.  I'm hoping Javascript integration will be 
> addressed in the future, but Dart is still in alpha and the team is 
> working on core features at least until the language gets to 1.0. 
> Also, because Dart is so young, the tooling cannot compare to Java 
> tooling.  This will improve, but Java has many years head start.  The 
> Dart team is amazing and I am sure they are creating something very 
> important; I just wish they were 2 more years along. 
>
> My window for fence sitting is closing fast.  I will have to make a 
> decision.  GWT and Dart are the only real contenders.  As of now, I 
> think GWT is the best choice, but I would sleep better at night if I 
> had a roadmap under my pillow. 
>
>
> On Apr 13, 7:34 am, Blake McBride  wrote: 
> > I strongly disagree with this.  First of all browser technology and HTML 
> > are in constant flux.  If GWT is not updated, it will very soon become 
> > out-of-date (bugs in new browsers) and unusable (reliably usable over a 
> > broad base of browsers and platforms).  Secondly, building apps with GWT 
> is 
> > a full time job.  Having to understand and maintain GWT makes two full 
> time 
> > jobs.  Building GWT apps could easily be a multi-million dollar effort - 
> > and so could maintaining GWT.  This is a huge, huge risk! 
> > 
> > Another issue I've seen this many times before.  When Windows became 
> > popular, many developer tools appeared.  Many were quite good.  IMO, the 
> > worst development environment by far was Microsoft's MFC.  Virtually all 
> of 
> > the other tools either sold out or got dropped.  Management often chose 
> MFC 
> > over other tool because they were non-technical and the old IBM adage 
> > applied to Microsoft "no one ever lost their job by selecting Microsoft" 
> > ruled. In the end, the industry largely settled on the absolute lowest 
> > common denominator.  Innovation in that area, for all practical 
> purposes, 
> > is dead. 
> > 
> > Now we have ASP, JSP, and other popular mashups out there.  I am utterly 
> > shocked how poor they are (although to their credit, they are trying to 
> > solve practical problems given an environment that was clearly not meant 
> to 
> > support what they are attempting!).  These environments are among the 
> worst 
> > I've ever seen.  It's one kludgy work around after another with three 
> > totally different environments attempting to interact.  GWT goes a very 
> > long way to solve this very significant problem.  However, GWT is a 
> total 
> > waste of time if you risk your entire company on it and it ge

Re: Is it possible to transfer list of EntityProxy between client and server using Requestfactory

2012-02-26 Thread July
Problem solved, turned out to be the polymorphism problem.


On Monday, February 27, 2012 11:50:59 AM UTC+8, July wrote:
>
> HI:
> Just like below, Is it possible to transfer list of EntityProxy between 
> client and server using RequestFactory? i didn't see any spec related to 
> this in RF doc. And i always get NPE when using maven processor plugin to 
> validate. Thanks.
>
> @Service( value =foo.class, locator = bar.class )
> public interface CustomerRequest extends RequestContext
> {
> Request count( List searchparams,* List 
> parent* );
> }
>

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



Is it possible to transfer list of EntityProxy between client and server using Requestfactory

2012-02-26 Thread July
HI:
Just like below, Is it possible to transfer list of EntityProxy between 
client and server using RequestFactory? i didn't see any spec related to 
this in RF doc. And i always get NPE when using maven processor plugin to 
validate. Thanks.

@Service( value =foo.class, locator = bar.class )
public interface CustomerRequest extends RequestContext
{
Request count( List searchparams,* List 
parent* );
}

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



How to debug GWT project server side code using GPE(server code been packaged as a jar)

2011-11-24 Thread July
Hello:
 I have a GWT application which i can debug the server side using GPE easy 
when the server and client located at same project, now i remove server 
side code and package it as jar, add it as project dependency, Seem there 
is no way to debug server side code anymore, Any ideas? By the way i'm 
using Maven to organize my project. 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/-/nhakv4RPSc0J.
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 RequestFactory with GAE, may cause conflict when fetch object using locator?

2011-10-06 Thread July
Thank Thomas now i see it.

-- 
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/-/xqUywT8A5OMJ.
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 RequestFactory with GAE, may cause conflict when fetch object using locator?

2011-10-06 Thread July
Hi all:

>From the requestFactory locator class, there is an abstract method:
  public abstract T find(Class clazz, I id);

This is to retrieve an unique object with Class clazz and its id, however i 
notice in app engine with the class and its ID are not enough to identify 
one unique object, because in GAE(I use Objectify) only id+Class+parent 
could identify one object, in other word, there may exist one object with 
same ID and same Class but different Parent in GAE datastore, in this 
situation, it may fetch the wrong object.

Any ideas?
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/-/cTM7R65vcsoJ.
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: Ways to catch server side exception when using request factory?

2011-09-27 Thread July
Quite helpful, Thanks very much for the reply.

On Tue, Sep 27, 2011 at 11:20 PM, opn  wrote:

> Hello,
>
> the 
> DefaultExceptionHandleris
>  not doing much. As you can see it only sends the message over the wire.
> I think you should hook in your own implementation of an ExceptionHandler.
>
> My ExceptionHandler, for example, sends the exception class over to the
> client, too. I don't know how far you can go (sending the whole stacktrace
> or sth.).
>
> To use it you also need to extend RequestFactoryServlet and pass your own
> ExceptionHandler implementation in the constructor.
>
> public MyRequestFactoryServlet() {
> super(new MyExceptionHandler());
> }
>
> and add this Servlet to your web.xml for sure!
>
> Regards
> Alex
>
>  --
> 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/-/InnkUvczgLgJ.
>
> 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.



Ways to catch server side exception when using request factory?

2011-09-27 Thread July
hi all:
 I'm using RequestFactory to do B-S communication, usually the server throw 
an exception that i didn't catch, at the client side there will be an pop-up 
dialog indicating the server error, and from the exception stack, all are 
client side trace, and the message is "server error", so i have no way to 
know which method at server-side was throwing(there are more than one 
gwtrequest at one time), debugging this problem cost me much time, I was 
wondering if there a way to catch/show/debug server-side exception so i can 
get the problem immediately. 

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/-/TRmppiT6BlwJ.
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: Re: requestfactory security problem

2011-08-17 Thread July
very helpful, Thank you all for the help

-- 
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/-/4byTLNJMcmMJ.
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 security problem

2011-08-17 Thread July
Thanks for reply, but seem both links you provided can not be opened. i use 
GWT2.3 and seem no UserInformation defined?

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



requestfactory security problem

2011-08-17 Thread July
hello all:
  I'm using GWT 2.3 requestfactory+ GAE 1.5 user authentication for my app, 
it only allows authenticated people to access, implemented as below:
if the user has not login to Google, redirect him the Google login screen.
if yes, check if he has the right to access. if yes display the web UI to 
user. or display error screen.

My question is:
1. Do i have to check every gwtrequest to ensure the security? i mean, use a 
filter to check every gwtrequest to see if the user has the right to access. 
if so, the application is more secure but have to process much more extra 
payloads.
2. If i just use the login authentication but does not check every gwt 
requests after that, is there risk that un-authorized people may be able to 
access my app? Does requestfactory automatically have ways to protected 
this?

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/-/h0Nx1ecMf2sJ.
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 uibinder: could not recognized image from dependent jar

2011-06-27 Thread July
Thank for reply, but i'm not sure it's an effective way, since i have to 
modify the files every time i want to deploy project B.

-- 
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/-/UDHAnEwfD7gJ.
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 uibinder: could not recognized image from dependent jar

2011-06-27 Thread July


I have a GWT project(called A), i'd like to package it as a jar and reuse it 
in my another project(called B). Everything almost fine except that my 
another project seem don't know the in Uibinder:

in project A:


...
Create

When project B started and init this uibinder, error occurs:

  [ERROR] [project] - Resource ../../style/images/createButton.png

not found. Is the name specified as Class.getResource() would expect?

Anyone could help me with this? Many thanks!


this problem also posted in stackoverflow:

http://stackoverflow.com/questions/6491061/gwt-uibinder-could-not-recognized-image-from-dependent-jar

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



Does TextBox has one handler like Swing's documentListener?

2011-05-16 Thread July
hi all:
  Does GWT TextBox has something like Swing's document listener?
  In my case, when i am typing something in TextBox or copy something to it, 
it can get the content immediately and display it in other panel. i tried 
valuechangehandler or changehandler or keypresshandler, nothing fulfill my 
requirement.
please help, thanks.

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