Re: Best Design Pattern for widgets

2011-01-07 Thread A. Stevko
I totally agree - extending Composite is the way to go.
Composite Widgets are nice for encapsulating & localizing all the CRUD
associated with a single object like your text editor.
RichTextToolbar,java is a stock example of a widget that attaches itself to
your RichTextArea
See RichTextToolbar in action at
http://gwt.google.com/samples/Showcase/Showcase.html#!CwRichText
Source at
http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/content/text/RichTextToolbar.java?r=4142


On Fri, Jan 7, 2011 at 9:08 PM, Gal Dolber  wrote:

> mmm...
>
>1. Use Composite!
>2. Reduce to the minimum the number of widgets that compose your new
>widget (Bulk html rendering + top level event capturing).
>3. Learn all you can from native gwt widgets.
>4. Make good use of interfaces [HasText, HasHTML, Foccusable..
>everything you can find under com.google.gwt.user.client.ui]
>5. UiBinder support! Design pojo-like widgets.
>6. Use gwt's shared events when possible [SelectionEvent,
>ValueChangeEvent,  (under com.google.gwt.event.logical.shared)]
>7. ~~~do not create your own event system? 
> :-J
>8. ~~~do not create your own panels and layout system? 
> :-J
>
> This session is really recommendable:
> http://www.youtube.com/watch?v=7x4hun_Kqks
>
> Best
>
> On Sat, Jan 8, 2011 at 12:36 AM, Sebastian Coronado A. 
> wrote:
>
>> Hello I was checking MVP explanation, it works for the whole
>> application but what if I want to create a single widget that does not
>> need transitions from one view to another. For example what design
>> pattern would you use to create a rich text editor.
>> regards
>>
>> --
>> 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-tool...@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.
>>
>>
>
>
> --
> Guit: Elegant, beautiful, modular and *production ready* gwt applications.
>
> http://code.google.com/p/guit/
>
>
>
>
>  --
> 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-tool...@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.
>



-- 
-- A. Stevko
===
"If everything seems under control, you're just not going fast enough." M.
Andretti

-- 
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-tool...@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: oadmap of gwt

2011-01-07 Thread Gal Dolber
I think this is the only roadmap you'll find:

http://code.google.com/p/google-web-toolkit/issues/list?can=2&q=milestone=Planned&colspec=ID%20Type%20Status%20Owner%20Milestone%20Summary%20Stars

Best

On Sat, Jan 8, 2011 at 1:01 AM, dadada  wrote:

> Hi all,
>
> does anybody know where i can find the roadmap of gwt?
>
> thanks
> bryan
>
> --
> 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-tool...@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.
>
>


-- 
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

http://code.google.com/p/guit/

-- 
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-tool...@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: Best Design Pattern for widgets

2011-01-07 Thread Gal Dolber
mmm...

   1. Use Composite!
   2. Reduce to the minimum the number of widgets that compose your new
   widget (Bulk html rendering + top level event capturing).
   3. Learn all you can from native gwt widgets.
   4. Make good use of interfaces [HasText, HasHTML, Foccusable.. everything
   you can find under com.google.gwt.user.client.ui]
   5. UiBinder support! Design pojo-like widgets.
   6. Use gwt's shared events when possible [SelectionEvent,
   ValueChangeEvent,  (under com.google.gwt.event.logical.shared)]
   7. ~~~do not create your own event system?
:-J
   8. ~~~do not create your own panels and layout system?
:-J

This session is really recommendable:
http://www.youtube.com/watch?v=7x4hun_Kqks

Best

On Sat, Jan 8, 2011 at 12:36 AM, Sebastian Coronado A. wrote:

> Hello I was checking MVP explanation, it works for the whole
> application but what if I want to create a single widget that does not
> need transitions from one view to another. For example what design
> pattern would you use to create a rich text editor.
> regards
>
> --
> 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-tool...@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.
>
>


-- 
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

http://code.google.com/p/guit/

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



oadmap of gwt

2011-01-07 Thread dadada
Hi all,

does anybody know where i can find the roadmap of gwt?

thanks
bryan

-- 
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-tool...@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: is it possible to instantiate an object from its class type on demand ?

2011-01-07 Thread Gal Dolber
Gwt doesn't support that.
GWT.create() only works with class literals.

If you know what classes you'll need you can write a method like this:

 T instantiate(Class clazz) {
   if (clazz.equals(Foo.class)) {
 return new Foo();
   } else if (clazz.equals(Foo2.class)) {
 return Foo2();
   }
   throw new IllegalStateException("Class no supported: " +
clazz.getName());
}

You also can put together a generator to create it for you:
http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=gwt+generator

On Sat, Jan 8, 2011 at 12:24 AM, zixzigma  wrote:

> with GWT.create(Foo.class),
> it is possible to instantiate Foo object from Foo.class.
>
> however GWT.create mandates the argument passed to create method to be
> a class literal, known at compile time.
>
> in cases where the argument is not a class literal, for example coming
> from a map,
> is there an alternative way to create object Foo from its Foo.class ?
>
> for example, lets say we have a map populated like below:
>
> // this map is populated
> Map> map;
>
> Foo lookupFoo(ObjectA objectA) {
>
> Class fooClazz = map.get(objectA);
>
> return GWT.create(fooClazz);
>
> }
>
> this works in hosted mode, but doesnt compile.
>
> is there any alternative way that this can be achieved without early
> eagerly instantiation Foo objects ?
>
> the good thing about GWT.create is that it creates the object on
> demand. (i believe ?)
>
> --
> 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-tool...@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.
>
>


-- 
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

http://code.google.com/p/guit/

-- 
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-tool...@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: is it possible to instantiate an object from its class type on demand ?

2011-01-07 Thread Jim Douglas
The documentation is pretty unambiguous on this point:

http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/core/client/GWT.html#create(java.lang.Class)

"The argument to create(Class) must be a class literal because the web
mode compiler must be able to statically determine the requested type
at compile-time. This can be tricky because using a Class variable may
appear to work correctly in hosted mode."

That restriction makes sense when you consider that GWT needs to
generate the appropriate JavaScript code for the specified Java class
at compile-time.

On Jan 7, 8:24 pm, zixzigma  wrote:
> with GWT.create(Foo.class),
> it is possible to instantiate Foo object from Foo.class.
>
> however GWT.create mandates the argument passed to create method to be
> a class literal, known at compile time.
>
> in cases where the argument is not a class literal, for example coming
> from a map,
> is there an alternative way to create object Foo from its Foo.class ?
>
> for example, lets say we have a map populated like below:
>
> // this map is populated
> Map> map;
>
> Foo lookupFoo(ObjectA objectA) {
>
> Class fooClazz = map.get(objectA);
>
> return GWT.create(fooClazz);
>
> }
>
> this works in hosted mode, but doesnt compile.
>
> is there any alternative way that this can be achieved without early
> eagerly instantiation Foo objects ?
>
> the good thing about GWT.create is that it creates the object on
> demand. (i believe ?)

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



Best Design Pattern for widgets

2011-01-07 Thread Sebastian Coronado A.
Hello I was checking MVP explanation, it works for the whole
application but what if I want to create a single widget that does not
need transitions from one view to another. For example what design
pattern would you use to create a rich text editor.
regards

-- 
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-tool...@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: are GWT 2.1.1 Activities expensive to create/instantiate ?

2011-01-07 Thread Gal Dolber
In theory: no.
The heavy part is the view. If you instantiate 150 activities without
instantiating the views you wont have problems.
The best you can do is benchmark it.

Best


On Sat, Jan 8, 2011 at 12:11 AM, zixzigma  wrote:

> Are GWT 2.1.1 Activities expensive to create ?
>
> Activities are managed by ActivityManagers.
> ActivityManagers call "start" method on Activities so that Activities
> can start doing their work.
> Activities do majority of their work in their start method, for
> example communicating with the server,
> populating views with data and so on.
>
> having said all these,
> Activities can take PlaceController, Place, Presenter objects in their
> constructors.
> therefore even if they are not "Started" by the ActivityManager, just
> instantiation of them can be costly.
>
> is this true ?
>
> my main concern is this:
>
> lets say an application has 150 activities.
> and application is configured in such a way in GIN,
> that all of application activities are injected in a provider
> on application startup.
> therefore all of the 150 activities are instantiated,
> however they are not started yet (activitymanager has not called the
> start on them).
>
> I want to know whether this early eagerly instantiation is expensive
> and will bring down the application ?
>
> if the activities were "Started" on startup, which resulted in
> contacting server for data, I can imagine it can become slow as
> application grows.
>
> Do you think even the instantiation of activities is expensive ?
> consideriing an Activity has a Place, PlaceController, a View and a
> few Presenters.
> (therefore activities have dependency of their own)
>
> Thank You
>
> --
> 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-tool...@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.
>
>


-- 
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

http://code.google.com/p/guit/

-- 
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-tool...@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 instantiate an object from its class type on demand ?

2011-01-07 Thread zixzigma
with GWT.create(Foo.class),
it is possible to instantiate Foo object from Foo.class.

however GWT.create mandates the argument passed to create method to be
a class literal, known at compile time.

in cases where the argument is not a class literal, for example coming
from a map,
is there an alternative way to create object Foo from its Foo.class ?

for example, lets say we have a map populated like below:

// this map is populated
Map> map;

Foo lookupFoo(ObjectA objectA) {

Class fooClazz = map.get(objectA);

return GWT.create(fooClazz);

}

this works in hosted mode, but doesnt compile.

is there any alternative way that this can be achieved without early
eagerly instantiation Foo objects ?

the good thing about GWT.create is that it creates the object on
demand. (i believe ?)

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



are GWT 2.1.1 Activities expensive to create/instantiate ?

2011-01-07 Thread zixzigma
Are GWT 2.1.1 Activities expensive to create ?

Activities are managed by ActivityManagers.
ActivityManagers call "start" method on Activities so that Activities
can start doing their work.
Activities do majority of their work in their start method, for
example communicating with the server,
populating views with data and so on.

having said all these,
Activities can take PlaceController, Place, Presenter objects in their
constructors.
therefore even if they are not "Started" by the ActivityManager, just
instantiation of them can be costly.

is this true ?

my main concern is this:

lets say an application has 150 activities.
and application is configured in such a way in GIN,
that all of application activities are injected in a provider
on application startup.
therefore all of the 150 activities are instantiated,
however they are not started yet (activitymanager has not called the
start on them).

I want to know whether this early eagerly instantiation is expensive
and will bring down the application ?

if the activities were "Started" on startup, which resulted in
contacting server for data, I can imagine it can become slow as
application grows.

Do you think even the instantiation of activities is expensive ?
consideriing an Activity has a Place, PlaceController, a View and a
few Presenters.
(therefore activities have dependency of their own)

Thank You

-- 
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-tool...@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: com.google.gwt.dev.shell.mac.LowLevelSaf not found

2011-01-07 Thread Rob Tanner
Problem solved.  I kept comparing the applications that kept getting the 
error against the one that I've barely started and that didn't exhibit the 
problem and finally found the problem.  In war/WEB-INF/lib, they had copies 
of gwt-dev-mac.jar. That jar just never got added to my latest development 
project.  I removed the jarfile, made sure it was also removed from the 
runtime path, and all began to work.  Hooray!!

~ Rob

-- 
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-tool...@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: FormPanel.SubmitEvent cancel not working

2011-01-07 Thread Thomas Broyer
IIRC, it could happen if you have a SubmitButton and you, in addition, 
explicitly call form.submit() from a ClickHandler attached to the 
SubmitButton (which is useless, but not harmless in this case: one of the 2 
submits –SubmitButton default action, and explicit form.submit()– is not 
cancellable).
Other than that (a coworker was in the process of replacing 
Button+form.submit with SubmitButton but forgot to remove the ClickHandler), 
I've never faced that issue.

-- 
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-tool...@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: Launching dev mode does not overwrite nocache.js

2011-01-07 Thread Thomas Broyer
As I said, DevMode should work with a nocache.js generated by the compiler 
(and I've never run into the issue you described), so there should be no 
need to delete the compiled output before running DevMode.
Isn't there an error message somewhere to help you understand what happens 
in your case?

-- 
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-tool...@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 2.0 spring hibernate gilead

2011-01-07 Thread Twentyseven
Hello,

I'm using GWT 2.0, Spring, Hibernate and Gilead for some time now.
Gilead allow me to use the DTO pattern and give me the availability to
update my  DTO's directly.
But my problem is that I have a big  apps and that the merge and clone
are very expensive in cpu and in time.

For now with  GWT 2.0 could I use directly the entity  bean  from
Hibernate (the lazyinitializationexception is not a preoblem for me) ?
I know that Hibernate has his own List implementation could I have
some problems with that ?

Thank's by advance,

-- 
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-tool...@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: Ajax file uploads and progressive enhancement

2011-01-07 Thread Ionuț G. Stan

On January 7, 2011 5:28 PM, Sean wrote:

I'm not sure if this will answer all your questions, but for file
uploading, including multi-file uploading with asynchronous progress I
use the library http://code.google.com/p/gwtupload/

How it works in browsers besides the latest Chrome, FF and IE I don't
know, but it's a fairly quick setup and may be worth testing out.


Thanks Sean, looks promising so far. I actually heard about it from a 
team mate, but I was somehow under the impression that it doesn't 
support real Ajax uploads. It seems not to be the case though.


--
Ionuț G. Stan  |  http://igstan.ro

--
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-tool...@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: Ajax file uploads and progressive enhancement

2011-01-07 Thread Ionuț G. Stan
Thanks Thomas, that was a very informative email. It should be enough to 
get us going on the right path.


--
Ionuț G. Stan  |  http://igstan.ro

--
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-tool...@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: Not able to set BigDecimal value in a grid column using HTMLTable setText function in IE8

2011-01-07 Thread Richard
Your error message's URI: http://dev3.compiere.org/apps/js/bigdecimal.js
implies that you are using gwt-math project http://code.google.com/p/gwt-math/
for BigDecimal, which has many issues and missing features, not the
BigDecimal built into GWT 2.1.

If you cant upgrade to GWT 2.1 then I recommend using gwt-java-math
project http://code.google.com/p/gwt-java-math/ which is what was
merged into GWT 2.1

>From Richard

On Jan 7, 3:28 pm, smriti sharma  wrote:
>  I am using BigDecimal  constructor to initialize the BigDecimal value.
>
>  m_table.setText(row, col, text);   //m_table here is of type HTMLTable
>
>  setText for Hashtable is erroring for simple values for the "text"
> parameter e.g.- "60.00", "23.57"
>
>  javascript error occurs only when  I run the application in web mode in
> internet explorer 8.
>
> Thanks,
> Smriti
>
> On Thu, Jan 6, 2011 at 8:56 PM, Jeff Schwartz wrote:
>
>
>
> > **Use either BigDecimal's constructor to initialize its value or one of
> > its valueOf methods to set its value.
>
> > Jeff
>
> > On Thu, Jan 6, 2011 at 4:58 AM, sims  wrote:
>
> >> I am receiving following js error when I am trying to set a Bigdecimal
> >> value for a grid column using
> >> HTMLTable  setText function.
>
> >> This is happening only in IE8 . Works fine in Firefox.
>
> >> User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
> >> Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
> >> 3.0.30729; Media Center PC 6.0)
> >> Timestamp: Thu, 30 Dec 2010 18:51:16 UTC
>
> >> Message: Exception thrown and not caught
> >> Line: 1
> >> Char: 21338
> >> Code: 0
> >> URI:http://dev3.compiere.org/apps/js/bigdecimal.js
>
> >> This issue happens only when i run the application in hosted mode.
> >> In development mode of eclipse it is working fine.
>
> >> --
> >> 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-tool...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> google-web-toolkit+unsubscr...@googlegroups.com >>  cr...@googlegroups.com>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > --
> > *Jeff Schwartz*
>
> >  --
> > 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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@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-tool...@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: Can not run GWT from eclipse on 64-bit Windows 7

2011-01-07 Thread Nathaniel Auvil
I have another GWT project which does work on this machine.  so i started
looking anywhere i could think...

.project
.classpath

etc

so there were some differences in those files.  I moved the GWT classpath
entry before the JRE_CONTAINER entry and it worked.  However, when i move
the GWT_CONTAINER entry after the JRE_CONTAINER entry to verify that was it,
my program still works.

This is really puzzling to me what the heck is going on.  I have spent the
better part of a day on this odd behavior.  I hate when you can not reliably
reproduce problems like this.

Thanks for all your help.  Wish i could have identified specifically what my
issue was.



On Fri, Jan 7, 2011 at 3:20 PM, David Chandler wrote:

> Try opening WEB-INF/lib dir in WinRAR and search for
> CompilerOptions.class. Of if you have cygwin installed, you can use
> this script:
>
> #!/bin/sh
>
> LOOK_FOR=$1
>
> for i in `find . -name "*jar"`
> do
>  echo $i
>  jar tvf $i | grep $LOOK_FOR
> done
>
> Then cd WEB-INF/lib
> jargrep CompilerOptions
>
> On Fri, Jan 7, 2011 at 1:17 PM, Marley  wrote:
> > the only gwt related jar under WEB-INF lib is: gwt-servlet-2.0.4.jar
> >
> > My project shows the reference for the GWT SDK 2.0.4 as created by the
> > Google Eclipse plugin
> >
> >
> >
> > On Jan 7, 10:39 am, David Chandler  wrote:
> >> What's in your WEB-INF/lib?
> >>
> >> This error occurs when there are multiple versions of the JDT
> >> CompilerOptions class on the classpath, one of which comes from
> >> gwt-dev.jar:
> org/eclipse/jdt/internal/compiler/impl/CompilerOptions.class
> >>
> >> /dmc
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> On Fri, Jan 7, 2011 at 10:28 AM, Marley 
> wrote:
> >> > if i compile via ant and deploy to my local weblogic server,
> >> > everything works fine.  This is the only error i have to go by...there
> >> > is nothing else which is frustrating.
> >>
> >> > I am using GWT 2.0.4.  Does that support 64-bit windows?
> >>
> >> > On Jan 7, 9:45 am, Marley  wrote:
> >> >> I have the latest Eclipse and the latest GWT eclipse plug-in.  My
> >> >> application works on 32-bit XP however i got a new machine running
> >> >> Windows 7 professional 64-bit
> >>
> >> >> When i try to launch my application i get the following error from
> >> >> GWT:
> >>
> >> >> 09:41:19.956 [ERROR] [my_gwt] Failed to load module 'my_gwt' from
> user
> >> >> agent 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
> >> >> Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
> >> >> 3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.2)' at
> >> >> 127.0.0.1:53373
> >> >> java.lang.NoSuchFieldError:
> >> >> reportUnusedDeclaredThrownExceptionIncludeDocCommentReference
> >> >> at
> >> >>
> com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions(JdtCompiler.java:
> >> >> 310)
> >> >> at com.google.gwt.dev.javac.JdtCompiler
> >> >> $CompilerImpl.(JdtCompiler.java:148)
> >> >> at
> com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:
> >> >> 466)
> >> >> at com.google.gwt.dev.javac.CompilationStateBuilder
> >> >> $CompileMoreLater.compile(CompilationStateBuilder.java:142)
> >> >> at
> >> >>
> com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationSta
> teBuilder.java:
> >> >> 281)
> >> >> at
> >> >>
> com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationState
> Builder.java:
> >> >> 182)
> >> >> at
> >> >> com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:
> >> >> 280)
> >> >> at com.google.gwt.dev.DevModeBase
> >> >> $UiBrowserWidgetHostImpl.createModuleSpaceHost(DevModeBase.java:99)
> >> >> at
> >> >>
> com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler
> .java:
> >> >> 180)
> >> >> at
> >> >>
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan
> nelServer.java:
> >> >> 380)
> >> >> at
> >> >>
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java
> :
> >> >> 222)
> >> >> at java.lang.Thread.run(Thread.java:662)
> >>
> >> > --
> >> > 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-tool...@googlegroups.com.
> >> > To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> >> > For more options, visit this group athttp://
> groups.google.com/group/google-web-toolkit?hl=en.
> >>
> >> --
> >> David Chandler
> >> Developer Programs Engineer, Google Web Toolkit
> >> w:http://code.google.com/
> >> b:http://googlewebtoolkit.blogspot.com/
> >> t: @googledevtools
> >
> > --
> > 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 gr

Re: Can not run GWT from eclipse on 64-bit Windows 7

2011-01-07 Thread David Chandler
Try opening WEB-INF/lib dir in WinRAR and search for
CompilerOptions.class. Of if you have cygwin installed, you can use
this script:

#!/bin/sh

LOOK_FOR=$1

for i in `find . -name "*jar"`
do
  echo $i
  jar tvf $i | grep $LOOK_FOR
done

Then cd WEB-INF/lib
jargrep CompilerOptions

On Fri, Jan 7, 2011 at 1:17 PM, Marley  wrote:
> the only gwt related jar under WEB-INF lib is: gwt-servlet-2.0.4.jar
>
> My project shows the reference for the GWT SDK 2.0.4 as created by the
> Google Eclipse plugin
>
>
>
> On Jan 7, 10:39 am, David Chandler  wrote:
>> What's in your WEB-INF/lib?
>>
>> This error occurs when there are multiple versions of the JDT
>> CompilerOptions class on the classpath, one of which comes from
>> gwt-dev.jar: org/eclipse/jdt/internal/compiler/impl/CompilerOptions.class
>>
>> /dmc
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> On Fri, Jan 7, 2011 at 10:28 AM, Marley  wrote:
>> > if i compile via ant and deploy to my local weblogic server,
>> > everything works fine.  This is the only error i have to go by...there
>> > is nothing else which is frustrating.
>>
>> > I am using GWT 2.0.4.  Does that support 64-bit windows?
>>
>> > On Jan 7, 9:45 am, Marley  wrote:
>> >> I have the latest Eclipse and the latest GWT eclipse plug-in.  My
>> >> application works on 32-bit XP however i got a new machine running
>> >> Windows 7 professional 64-bit
>>
>> >> When i try to launch my application i get the following error from
>> >> GWT:
>>
>> >> 09:41:19.956 [ERROR] [my_gwt] Failed to load module 'my_gwt' from user
>> >> agent 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
>> >> Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
>> >> 3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.2)' at
>> >> 127.0.0.1:53373
>> >> java.lang.NoSuchFieldError:
>> >> reportUnusedDeclaredThrownExceptionIncludeDocCommentReference
>> >>     at
>> >> com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions(JdtCompiler.java:
>> >> 310)
>> >>     at com.google.gwt.dev.javac.JdtCompiler
>> >> $CompilerImpl.(JdtCompiler.java:148)
>> >>     at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:
>> >> 466)
>> >>     at com.google.gwt.dev.javac.CompilationStateBuilder
>> >> $CompileMoreLater.compile(CompilationStateBuilder.java:142)
>> >>     at
>> >> com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationSta
>> >>  teBuilder.java:
>> >> 281)
>> >>     at
>> >> com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationState
>> >>  Builder.java:
>> >> 182)
>> >>     at
>> >> com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:
>> >> 280)
>> >>     at com.google.gwt.dev.DevModeBase
>> >> $UiBrowserWidgetHostImpl.createModuleSpaceHost(DevModeBase.java:99)
>> >>     at
>> >> com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler
>> >>  .java:
>> >> 180)
>> >>     at
>> >> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan
>> >>  nelServer.java:
>> >> 380)
>> >>     at
>> >> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java
>> >>  :
>> >> 222)
>> >>     at java.lang.Thread.run(Thread.java:662)
>>
>> > --
>> > 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-tool...@googlegroups.com.
>> > To unsubscribe from this group, send email to 
>> > google-web-toolkit+unsubscr...@googlegroups.com.
>> > For more options, visit this group 
>> > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>>
>> --
>> David Chandler
>> Developer Programs Engineer, Google Web Toolkit
>> w:http://code.google.com/
>> b:http://googlewebtoolkit.blogspot.com/
>> t: @googledevtools
>
> --
> 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-tool...@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.
>
>



-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

-- 
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-tool...@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: FormPanel.SubmitEvent cancel not working

2011-01-07 Thread Greg Dougherty
Ah, because under 2.0 it worked for me, too.

On Jan 5, 4:09 pm, Jim Douglas  wrote:
> Hmm, I would hope it wouldn't matter, but 2.0.3; we need to coordinate
> several developers and build systems to move to 2.1.1, and everyone's
> been away for Christmas & New Years.
>
> On Jan 5, 1:15 pm, Greg Dougherty  wrote:
>
> > GWT 2.0 or 2.1?
>
> > On Jan 5, 2:41 pm, Jim Douglas  wrote:
>
> > > I'm doing pretty much exactly that with my FileUpload widget, and it
> > > works ok here:
>
> > >     /*
> > >      * User clicked the Chooser OK button.
> > >      */
> > >     public void onSubmit(SubmitEvent p_event)
> > >     {
> > >         if (m_progressUpdateTimer != null)
> > >         {
> > >             // Upload is already in progress
> > >             p_event.cancel();
> > >             return;
> > >         }
> > >          several more validation checks 
> > >     }
>
> > > On Jan 5, 12:27 pm, Greg Dougherty  wrote:
>
> > > > I have the following code in a GWT 2.1.0 project:
>
> > > > public void onSubmit (FormPanel.SubmitEvent event)
> > > > {
> > > >         // This event is fired just before the form is submitted. We 
> > > > can take
> > > >         // this opportunity to perform validation.
> > > >         String filename = gDataFileUploader.getFilename ();
> > > >         if (filename.length () == 0)
> > > >         {
> > > >                 showAlert ("Need a valid File Name in before we can 
> > > > upload a
> > > > file!");
> > > >                 event.cancel ();
> > > >         }
>
> > > > }
>
> > > > Unfortunately, although it is called, the cancel () call doesn't stop
> > > > the submit from happening, and doesn't stop onSubmitComplete from
> > > > being called.  Is this a GWT bug or a browser bug?  (FireFox 3.6)
>
> > > > TIA,
>
> > > > Greg

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



Re: GWT 2.1 DateTimeFormat & locale changes?

2011-01-07 Thread Rytis
I had a problem where I deleted the locale specifying lines from the
gwt.xml, and the calendar based on CalendarUtil decided to start on a
Monday.  Folks in the US like their calendars starting with Sunday, so
putting what jhulford wrote in my gwt.xml fixed it for me, and the
calendar starts with Sunday again, making US folks happy. Including
all the 3 lines doesn't add any extra compiling permutations either
(it happens when  is left
out).


On Dec 15 2010, 10:47 am, jhulford  wrote:
> This message is several days old, but I just ran into this too and
> wanted to avoid having to update my host pages w/ the meta tags since
> I'm only using the one locale as well.
>
> To do this, add the following to your module's config file (.gwt.xml):
>
> 
> 
> 
>
> On Dec 2, 8:23 am, Rick Porter  wrote:
>
>
>
>
>
>
>
> > I think I have solved my date/time issues by forcing alocale, but I
> > would welcome suggestions for a better solution.
>
> > In my module XML, I added the following line to include some
> > internationalization code:
>
> >    
>
> > I added the following line to my module XML for mylocale:
>
> >    
>
> > Including thelocaleextend-property increases theGWTcompile time,
> > since the compile does each browser/localecombination. This was the
> > most undesireable piece of my solution since it basically doubled 
> > myGWTcompile times. I tried to set the defaultlocaleusing another bit
> > of XML found 
> > athttp://code.google.com/intl/es-AR/webtoolkit/doc/latest/DevGuideI18nL...,
> > but I could not even get theGWTcompile to work when including that
> > XML.
>
> > The last required piece was adding the following line in my HTML file:
>
> >    
>
> > This gives it a defaultlocale, but I believe that it can be
> > overridden with request parameters.
>
> > I did test this on a couple projects, and it worked for both. However,
> > I did not test with different locales. It seems that a newGWT2.1
> > project has the same issues, so this is not just aGWT2.0 conversion
> > problem -- I tested by adding a DateBox to a newGWTdefault project.
>
> > Enjoy,
> > Rick

-- 
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-tool...@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: Move a pojo to the serve side package (RCP)

2011-01-07 Thread Cesar Ruiz
Thank you a lot Gal, it really helped.

Regards.

On 7 January 2011 19:42, Gal Dolber  wrote:

> To make a random class gwt-compatible for me is: gwt emulation & custom
> serializer using super-source.
> As gwt needs the sources to of every class to compile (and in this case
> Text doesn't provide the source) you need to provide a similar
> implementation for gwt to use on the client. Then you need to provide a
> custom serializer to make it compatible with gwt's rpc system.
>
> You may can see it better looking at this diff:
> http://code.google.com/p/slim3/source/detail?r=1479
>
> Best
>
> On Fri, Jan 7, 2011 at 1:28 PM, Cesar Ruiz  wrote:
>
>> Hey Gal, thank you for replying. Indeed I need to work with Book typed gae
>> Text in the client. When you say: "The only solution is to make it gwt
>> compatible".
>>
>> Can you please explain to me how to make it gwt compatible.
>>
>> Thank you in advanced.
>>
>> --
>> Ces.
>>
>>
>> On 7 January 2011 18:17, Gal Dolber  wrote:
>>
>>> Slim3 recently got Appengine core data types emulation for gwt & rpc
>>> support(still on trunk).
>>>
>>> Not sure what persistence layer you are using. But if you need to work
>>> with Book on the client and want to use gae Text type, I think the
>>> only solution is to make it gwt compatible.
>>>
>>> Best
>>>
>>> On Friday, January 7, 2011, Kidowell  wrote:
>>> > Hey I'm developing an app using GWT and Google App Engine.
>>> >
>>> > I need the pojo Book to be in the serverside package, rather than in a
>>> > client side. (This is because Im storing appengine.api.datastore.Text
>>> > attribute, and this package must be imported in the serverside as
>>> > otherwise GWT wont compile it).
>>> >
>>> > How to move a Class from a client to the serverside.
>>> >
>>> > Thank you very much in advanced.
>>> >
>>> > regards.
>>> > --
>>> > Kido
>>> >
>>> > --
>>> > 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-tool...@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.
>>> >
>>> >
>>>
>>>
>>> --
>>> Guit: Elegant, beautiful, modular and *production ready* gwt
>>> applications.
>>>
>>> http://code.google.com/p/guit/
>>>
>>> --
>>> 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.
>>>
>>>
>>
>>
>> --
>> Cesar Ruiz.
>>
>> --
>> 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-tool...@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.
>>
>
>
>
> --
> Guit: Elegant, beautiful, modular and *production ready* gwt applications.
>
> http://code.google.com/p/guit/
>
>
>
>
>  --
> 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-tool...@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.
>



-- 
Cesar Ruiz.

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



com.google.gwt.dev.shell.mac.LowLevelSaf not found

2011-01-07 Thread Rob Tanner
Hi,

Upgraded from 1.7.1 to 2.1.0 and then to 2.1.1 to see if the problem went 
away.  Simply put, the class is not in gwt-dev.jar.  I am working with the 
Eclipse plugin for 3.5 and when I try to tun the app in development mode, I 
get the following stacktrace:

Exception in thread "main" java.lang.NoClassDefFoundError: 
com/google/gwt/dev/shell/mac/LowLevelSaf
at 
com.google.gwt.dev.BootStrapPlatform.initHostedMode(BootStrapPlatform.java:77)
at com.google.gwt.dev.DevModeBase.(DevModeBase.java:746)
at com.google.gwt.dev.DevMode.(DevMode.java:312)
at com.google.gwt.dev.DevMode.main(DevMode.java:280)
Caused by: java.lang.ClassNotFoundException: 
com.google.gwt.dev.shell.mac.LowLevelSaf
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 4 more

The odd thing is that I switched an app that I've just started developing 
from 1.7.1 to 2.1.x and it comes up in development mode just fine.  But my 
older, larger, and much more complex apps all get the class not found 
error.  What would cause the difference?

~ Rob

-- 
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-tool...@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: EntityProxy for an interface

2011-01-07 Thread David Chandler
John,

Currently, @ProxyFor must reference the Entity itself, which, in
2.1.0, required you to put static methods on the entity to do
persistence operations. However, you can use the new Locator and
ServiceLocator in 2.1.1 to move persistence methods out of the entity
into an entity service (perhaps a DAO). I just put up some example
code at http://code.google.com/p/listwidget. It's definitely a work in
progress (== not pretty yet), but the RF stuff there works.

/dmc

On Fri, Jan 7, 2011 at 1:37 PM, John Maitland
 wrote:
> I’m having a problem using the new RequestFactory feature in 2.1.1
> when trying to serialise an object, using the EntityProxy, with using
> it's interface. If I have the following entity proxy, entity interface
> and its implementation, a ‘UnexpectedException: The domain type
> com.server.MyEntity cannot be sent to the client’.
>
> @ProxyFor(value = MyEntity.class)
> public interface MyEntityProxy extends EntityProxy {
>    String getAProperty();
> }
>
> public class MyEntityImpl implements MyEntity {
> 
> }
>
> public interface MyEntity {
>   String getAProperty();
> }
>
> This doesn’t work, because the getSupertypes method in the
> RequestFactoryInterfaceValidator return a list of the following types:
>   - Lcom/server/MyEntityImpl
>   - Ljava/lang/Object;
>   - Lcom/server/MyEntity
>
> And getEntityProxyTypeName in RequestFactoryInterfaceValidator breaks
> from the supertypes upcast loop if an object type is found before the
> required type defined on the entityproxy (i.e. never reaches my
> interface).
>
> If I change the value of the ProxyFor from the interface to its
> implementation then it works (i.e. @ProxyFor(MyEntityImpl.class),
> which is not desirable.
>
> Does anyone know if this is possible or a limitation?
>
> Regards,
> John
>
> --
> 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-tool...@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.
>
>



-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

-- 
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-tool...@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 get the new size after/during onResize()? why doesn't onResize() pass in the new size?

2011-01-07 Thread BrianP
I have a SplitLayoutPanel where one of the child components is a
FlowPanel. I've extended FlowPanel to create a ResizableFlowPanel
which implements ProvidesResize and RequiresResize, because the
FlowPanel has child components which need to Resize as well.

When dragging the splitters of the SplitLayoutPanel, how do you get
the new size of the child components? I've tried using
getOffsetWidth() and getElement().getOffsetWidth from within the
FlowPanel, and both are returning the original size, not the new size.

I verified that the onResize() is being called, for the FlowPanel as
well as the child panels. I also tried adding a border to the
FlowPanel to see if that changes while dragging the SplitLayoutPanel's
splitter, and the border does not change.

In case it matters, the FlowPanel was the last component added to the
SplitLayoutPanel.

-- 
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-tool...@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: Move a pojo to the serve side package (RCP)

2011-01-07 Thread Gal Dolber
To make a random class gwt-compatible for me is: gwt emulation & custom
serializer using super-source.
As gwt needs the sources to of every class to compile (and in this case Text
doesn't provide the source) you need to provide a similar implementation for
gwt to use on the client. Then you need to provide a custom serializer to
make it compatible with gwt's rpc system.

You may can see it better looking at this diff:
http://code.google.com/p/slim3/source/detail?r=1479

Best

On Fri, Jan 7, 2011 at 1:28 PM, Cesar Ruiz  wrote:

> Hey Gal, thank you for replying. Indeed I need to work with Book typed gae
> Text in the client. When you say: "The only solution is to make it gwt
> compatible".
>
> Can you please explain to me how to make it gwt compatible.
>
> Thank you in advanced.
>
> --
> Ces.
>
>
> On 7 January 2011 18:17, Gal Dolber  wrote:
>
>> Slim3 recently got Appengine core data types emulation for gwt & rpc
>> support(still on trunk).
>>
>> Not sure what persistence layer you are using. But if you need to work
>> with Book on the client and want to use gae Text type, I think the
>> only solution is to make it gwt compatible.
>>
>> Best
>>
>> On Friday, January 7, 2011, Kidowell  wrote:
>> > Hey I'm developing an app using GWT and Google App Engine.
>> >
>> > I need the pojo Book to be in the serverside package, rather than in a
>> > client side. (This is because Im storing appengine.api.datastore.Text
>> > attribute, and this package must be imported in the serverside as
>> > otherwise GWT wont compile it).
>> >
>> > How to move a Class from a client to the serverside.
>> >
>> > Thank you very much in advanced.
>> >
>> > regards.
>> > --
>> > Kido
>> >
>> > --
>> > 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-tool...@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.
>> >
>> >
>>
>>
>> --
>> Guit: Elegant, beautiful, modular and *production ready* gwt applications.
>>
>> http://code.google.com/p/guit/
>>
>> --
>> 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-tool...@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.
>>
>>
>
>
> --
> Cesar Ruiz.
>
> --
> 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-tool...@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.
>



-- 
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

http://code.google.com/p/guit/

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



EntityProxy for an interface

2011-01-07 Thread John Maitland
I’m having a problem using the new RequestFactory feature in 2.1.1
when trying to serialise an object, using the EntityProxy, with using
it's interface. If I have the following entity proxy, entity interface
and its implementation, a ‘UnexpectedException: The domain type
com.server.MyEntity cannot be sent to the client’.

@ProxyFor(value = MyEntity.class)
public interface MyEntityProxy extends EntityProxy {
String getAProperty();
}

public class MyEntityImpl implements MyEntity {

}

public interface MyEntity {
   String getAProperty();
}

This doesn’t work, because the getSupertypes method in the
RequestFactoryInterfaceValidator return a list of the following types:
   - Lcom/server/MyEntityImpl
   - Ljava/lang/Object;
   - Lcom/server/MyEntity

And getEntityProxyTypeName in RequestFactoryInterfaceValidator breaks
from the supertypes upcast loop if an object type is found before the
required type defined on the entityproxy (i.e. never reaches my
interface).

If I change the value of the ProxyFor from the interface to its
implementation then it works (i.e. @ProxyFor(MyEntityImpl.class),
which is not desirable.

Does anyone know if this is possible or a limitation?

Regards,
John

-- 
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-tool...@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: Can not run GWT from eclipse on 64-bit Windows 7

2011-01-07 Thread Marley
the only gwt related jar under WEB-INF lib is: gwt-servlet-2.0.4.jar

My project shows the reference for the GWT SDK 2.0.4 as created by the
Google Eclipse plugin



On Jan 7, 10:39 am, David Chandler  wrote:
> What's in your WEB-INF/lib?
>
> This error occurs when there are multiple versions of the JDT
> CompilerOptions class on the classpath, one of which comes from
> gwt-dev.jar: org/eclipse/jdt/internal/compiler/impl/CompilerOptions.class
>
> /dmc
>
>
>
>
>
>
>
>
>
> On Fri, Jan 7, 2011 at 10:28 AM, Marley  wrote:
> > if i compile via ant and deploy to my local weblogic server,
> > everything works fine.  This is the only error i have to go by...there
> > is nothing else which is frustrating.
>
> > I am using GWT 2.0.4.  Does that support 64-bit windows?
>
> > On Jan 7, 9:45 am, Marley  wrote:
> >> I have the latest Eclipse and the latest GWT eclipse plug-in.  My
> >> application works on 32-bit XP however i got a new machine running
> >> Windows 7 professional 64-bit
>
> >> When i try to launch my application i get the following error from
> >> GWT:
>
> >> 09:41:19.956 [ERROR] [my_gwt] Failed to load module 'my_gwt' from user
> >> agent 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
> >> Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
> >> 3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.2)' at
> >> 127.0.0.1:53373
> >> java.lang.NoSuchFieldError:
> >> reportUnusedDeclaredThrownExceptionIncludeDocCommentReference
> >>     at
> >> com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions(JdtCompiler.java:
> >> 310)
> >>     at com.google.gwt.dev.javac.JdtCompiler
> >> $CompilerImpl.(JdtCompiler.java:148)
> >>     at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:
> >> 466)
> >>     at com.google.gwt.dev.javac.CompilationStateBuilder
> >> $CompileMoreLater.compile(CompilationStateBuilder.java:142)
> >>     at
> >> com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationSta
> >>  teBuilder.java:
> >> 281)
> >>     at
> >> com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationState
> >>  Builder.java:
> >> 182)
> >>     at
> >> com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:
> >> 280)
> >>     at com.google.gwt.dev.DevModeBase
> >> $UiBrowserWidgetHostImpl.createModuleSpaceHost(DevModeBase.java:99)
> >>     at
> >> com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler
> >>  .java:
> >> 180)
> >>     at
> >> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan
> >>  nelServer.java:
> >> 380)
> >>     at
> >> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java
> >>  :
> >> 222)
> >>     at java.lang.Thread.run(Thread.java:662)
>
> > --
> > 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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> David Chandler
> Developer Programs Engineer, Google Web Toolkit
> w:http://code.google.com/
> b:http://googlewebtoolkit.blogspot.com/
> t: @googledevtools

-- 
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-tool...@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: REST + Spring Security 3.0

2011-01-07 Thread aliman
Hi,

I'm no expert in this area, so take this with a pinch of salt
(interested to hear what others are doing)...

You have two problems, authentication and authorisation.

There are various options available for authentication (like http
basic, form login, ...) but these may be limited or complicated
depending on how your client and server are packaged and deployed.

For example, if your client and server are packaged into a single war,
then configuring authentication can be relatively straightforward and
can be done solely via spring security, as the client and server will
be within the same web application, which means once a user is
authenticated to access the client pages, they'll also be
authenticated to make calls to your web service, and browsers will
automatically take care of adding appropriate JSESSIONID cookies or
Authorization headers to your AJAX requests.

If your client and server are packaged and deployed separately (but
still within the same domain name), then authentication can get a bit
more complicated, although not insurmountable. The challenge here is
getting the user authenticated against the web service, and getting
that authentication information into your client-side code so it can
make authenticated AJAX requests. If you give me a bit more
information about how client and server are packaged and deployed, I
might be able to say more about the options. Generally, if client and
server are packaged and deployed separately, then you may want to go
for a pre-authentication approach in your spring security config, and
handle actual authentication in a web layer (e.g., Apache config)
before you get to the web applications.

The other problem is authorisation. The main question here is which
part of your application (client, service) is responsible for what
authorisation decisions? E.g., you could push all authorisation
decisions down to the service, and leave the client completely open
(so the client-side code will need to be able to handle unauthorised
responses from the service), or you could go to the opposite extreme
and handle authorisation decisions in the client, in which case you
will want to limit access to different parts of the client application
(but this is probably not an option as you won't want to leave your
service open to hacking), or some combination of the two. Where the
decisions are made will affect how you configure authorisation via
spring security. E.g., if all authorisation decisions are implemented
at the service, then you may be able to do with just a bunch of
intercept-url directives in your service's spring security config,
restricting access to different service calls by URL path, http method
and user role.

Anyway, like I said, I'm not an expert, so caveat emptor, but hope
that helps.

Cheers

Alistair

--
Alistair Miles
Head of Epidemiological Informatics
Centre for Genomics and Global Health 
The Wellcome Trust Centre for Human Genetics
Roosevelt Drive
Oxford
OX3 7BN
United Kingdom
Web: http://purl.org/net/aliman
Email: aliman...@gmail.com
Tel: +44 (0)1865 287669

On Jan 6, 2:04 pm, julio  wrote:
> Hi,
>
> I need to use Spring Security 3 in my application which is composed by
> Spring 3 for the server side and GWT 2.1 for the client side.
>
> Client side and server side are totally ""decoupled"", I mean they
> don't belong to the same project in the eclipse workspace (server side
> is managed by maven and client side uses prebuilt ant files) and till
> now they "communicate" each other using Rest/Json.
>
> Googling I found some tutorials and tips about integration with Spring
> Security but all of them suppose that "client side" knows spring-
> server-side classes, and so using @Controller @Autowired etc under the
> gwt.server package. In my case this is not possible (or not clean to
> do).
>
> Is there a way to use Spring Security and keeping the code
> "decoupled"? Maybe for every (rest) client request I should use "basic
> authentication"? And what about a normal login page authentication?
>
> 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-tool...@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: Launching dev mode does not overwrite nocache.js

2011-01-07 Thread John Huss
So does everyone do this same thing (deleted the compiled output before 
running dev mode), or is there a better way?

-- 
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-tool...@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 skip history token on place change? (Activies, Places and History management)

2011-01-07 Thread toman
Hi Thomas and thanks for the insight,

Creating a new item consists of searching for some initial, immutable
properties for this item AND editing some mutable properties for it.
Then later, these mutable properties can be changed.

So yeah I guess searching and editing should happen in one place and
editing an item afterwards in another... but I can still use the same
view or ui component for the "editing" part of both.

PS. Thanks for the excellent articles on your blog!

On Jan 7, 7:29 pm, Thomas Broyer  wrote:
> If the history token doesn't change, then you haven't "navigated" to another
> place; i.e. IMO you should do it all in the same place and activity (use
> case looks weird though at first sight :-/ ).
> Your "edit screen" can however very be re-used by an activity corresponding
> to the "edit place" used elsewhere.

-- 
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-tool...@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: Way to use a ServiceLocator to find a Locator in 2.1.1 RequestFactory?

2011-01-07 Thread Eric Andresen
Thanks for your insight on the matter.  I was able to accomplish something 
close to the desired behavior by placing a bridge between GWT and my service 
class.

Doing this in conjunction with the SpringServiceLocator, I was able to only 
cache this singleton class (kind of anyway, the ServiceLocator worked to 
give me Spring's singleton instance, but the Entity's locator still created 
a new one, which I then forced Spring to autowire also). From that point 
since both are Spring managed, my session-based Service class is properly 
wired when requests come in from the RF  (in this case, I verified two 
sessions got two different Service class instances, but shared the 
singleton-scoped DAO)

@Service("MyObjectServiceProxy")
@Scope("singleton")
public class MyObjectServiceProxy extends Locator implements 
ApplicationContextAware
{

@Resource(name = "MyObjectDAO")
protected MyObjectDAO myObjectDAO;

@Resource(name = "MyObjectService")
protected MyObjectService myObjectService;

protected ApplicationContext context;

private transient Logger logger = LoggerFactory.getLogger(getClass());

public MyObjectServiceProxy() 
{
logger.info("constructing MyObjectServiceProxy()");
context =  ApplicationContextProvider.getContext();
if (context != null)
{
logger.info("Setting context from constructor");
setApplicationContext(context);
}
}

@Override
public void setApplicationContext (ApplicationContext arg0)
throws BeansException
{
logger.info("Setting application context for MyObjectServiceProxy");

try
{
// Attach this object to Spring
context = arg0;
 context.getAutowireCapableBeanFactory().autowireBeanProperties(
this,
AutowireCapableBeanFactory.AUTOWIRE_AUTODETECT, true);
}
catch (BeansException be)
{
logger.error("Bean exception autowiring service proxy: " + 
be.getMessage());
}
}
...

public MyObject findMyObject(Long id)
{
return myObjectDAO.findMyObjectByPrimaryKey(id.intValue());
}

public MyObjectResult doSomethingToMyObject(MyObject obj)
{
return myObjectService.doSomethingToMyObject(obj);
}

...
}

 Creating a  ServiceLayerDecorator with a custom Locator does sound like a 
better solution, I will look in to doing that so I don't have to have these 
bridge classes hanging around everywhere.

Thanks again,
Eric

-- 
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-tool...@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 skip history token on place change? (Activies, Places and History management)

2011-01-07 Thread Thomas Broyer
If the history token doesn't change, then you haven't "navigated" to another 
place; i.e. IMO you should do it all in the same place and activity (use 
case looks weird though at first sight :-/ ).
Your "edit screen" can however very be re-used by an activity corresponding 
to the "edit place" used elsewhere.

-- 
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-tool...@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: Move a pojo to the serve side package (RCP)

2011-01-07 Thread Cesar Ruiz
Hey Gal, thank you for replying. Indeed I need to work with Book typed gae
Text in the client. When you say: "The only solution is to make it gwt
compatible".

Can you please explain to me how to make it gwt compatible.

Thank you in advanced.

--
Ces.

On 7 January 2011 18:17, Gal Dolber  wrote:

> Slim3 recently got Appengine core data types emulation for gwt & rpc
> support(still on trunk).
>
> Not sure what persistence layer you are using. But if you need to work
> with Book on the client and want to use gae Text type, I think the
> only solution is to make it gwt compatible.
>
> Best
>
> On Friday, January 7, 2011, Kidowell  wrote:
> > Hey I'm developing an app using GWT and Google App Engine.
> >
> > I need the pojo Book to be in the serverside package, rather than in a
> > client side. (This is because Im storing appengine.api.datastore.Text
> > attribute, and this package must be imported in the serverside as
> > otherwise GWT wont compile it).
> >
> > How to move a Class from a client to the serverside.
> >
> > Thank you very much in advanced.
> >
> > regards.
> > --
> > Kido
> >
> > --
> > 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.
> >
> >
>
>
> --
> Guit: Elegant, beautiful, modular and *production ready* gwt applications.
>
> http://code.google.com/p/guit/
>
> --
> 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-tool...@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.
>
>


-- 
Cesar Ruiz.

-- 
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-tool...@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: Ajax file uploads and progressive enhancement

2011-01-07 Thread Thomas Broyer
It depends whether you have fields to send along with the files.
If you do, I would:

   - use a FormPanel to degrade gracefully, with a SubmitHandler that 
   cancels the form submit and uses XHR2+FormData instead (getting the FormData 
   from the form directly and submitting that)
   - for Drag'n'drop support, add dropped files to a list and in the 
   onSubmit, add them to the FormData before submitting it

For file selection, make a widget that encapsulates a FileUpload. In 
browsers that support multiple, set the multiple property and go with it. 
For others, create FileUpload widgets dynamically to add several files (or 
only use a fixed number of FileUpload-s and ask the user to batch his 
uploads in multiple submits).
And in browsers that support it, you can hide the FileUpload and use a 
button that does a click() on it 
(fileUpload.geetElement().cast().click() // the cast to 
ButtonElement is harmless and gices you access to the click() method without 
writing the JSNI yourself, but you can write JSNI instead if you prefer) to 
ask the user to select the files to upload.

For XHR2 and FormData (and input.files), you'll have to use JSNI.

The "hard part" is determining "browsers that support X", and most of time 
it'll be based on browser-sniffing; so have a look at deferred binding (to 
exclude IE for instance) and the Window.Navigator. You can also use deferred 
binding with "soft permutations" instead of checks using Window.Navigator 
but that's just a matter of code organization (isolation), so if you don't 
know what "soft permutation" means, it's not worth investing time in it IMO.

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



Move a pojo to the serve side package (RCP)

2011-01-07 Thread Gal Dolber
Slim3 recently got Appengine core data types emulation for gwt & rpc
support(still on trunk).

Not sure what persistence layer you are using. But if you need to work
with Book on the client and want to use gae Text type, I think the
only solution is to make it gwt compatible.

Best

On Friday, January 7, 2011, Kidowell  wrote:
> Hey I'm developing an app using GWT and Google App Engine.
>
> I need the pojo Book to be in the serverside package, rather than in a
> client side. (This is because Im storing appengine.api.datastore.Text
> attribute, and this package must be imported in the serverside as
> otherwise GWT wont compile it).
>
> How to move a Class from a client to the serverside.
>
> Thank you very much in advanced.
>
> regards.
> --
> Kido
>
> --
> 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-tool...@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.
>
>


-- 
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

http://code.google.com/p/guit/

-- 
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-tool...@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 skip history token on place change? (Activies, Places and History management)

2011-01-07 Thread toman
I may be way off the track here but I have a Place & Activity for
searching items. When an item is clicked, the Place and Activity are
changed to such that allow the editing of an item. What I would like
is that the token of the "edit place" for editing is not added to the
history and the current URL in the browser address bar would stay as
it was in the previous place.

i.e.

- URL is http://.../search#query=...
- The user clicks on an item.
- The URL stays and history is unchanged (currently history is updated
and address becomes http://.../edit...)

Should the search results and editing of an item happen within the
same Place or how I should wrap my head around this? The edit-place
may be navigated to from within other Places than the search as well.

Noobish question I guess but really having trouble figuring this out.

-- 
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-tool...@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 handle MouseListener with shared variables split into different Mouse handlers

2011-01-07 Thread Thomas Broyer
How about creating a nested class implementing all the needed 
MouseXxxHandler interfaces, similar to your previous MouseListener but as a 
"named class" to allow you to implement several interfaces.

private class MyMouseHandlers implements MouseOverHandler, MouseOutHandler {
   ...
}

...

MyMouseHandlers handlers = new MyMouseHandlers();
foo.addMouseDownHandler(handlers);
foo.addMouseUpHandler(handlers);

-- 
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-tool...@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 module sometime not loaded, Only after clicking refresh button it work ?

2011-01-07 Thread Boris Lenzinger
Hi,

Have you tried to set some breakpoints using Firebug ? it could help you to
understand what's going on.

Boris

2011/1/7 cyclingthealps 

> Hi I am also having this problem.
> Does not make a difference if I use Chrome FF or IE.
> Using gwt 2.1 as well.
> I really would like to know as well what to do to solve this.
>
> Cheers
>
> Dennis
>
> On Jan 7, 7:41 am, Sudhakar  wrote:
> > I am also experiencing the same issue.I am using Chrome browser in
> > Ubuntu 10.10
> >
> >
> >
> >
> >
> >
> >
> > On Fri, 2011-01-07 at 12:06 +0530, suersh babu wrote:
> > > Hi,
> >
> > > I am using gwt 2.1,  After uploading my application to production
> > > server, some time I see my gwt module not loaded, only
> > > After clicking refresh button it get loaded.
> >
> > > Kindly can any one tell me what could be the reason,  I am very
> > > interested in this.
> >
> > > --
> > > Regards
> >
> > > Suresh Babu G
> >
> > > --
> > > 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-tool...@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-tool...@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-tool...@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 module sometime not loaded, Only after clicking refresh button it work ?

2011-01-07 Thread cyclingthealps
Hi I am also having this problem.
Does not make a difference if I use Chrome FF or IE.
Using gwt 2.1 as well.
I really would like to know as well what to do to solve this.

Cheers

Dennis

On Jan 7, 7:41 am, Sudhakar  wrote:
> I am also experiencing the same issue.I am using Chrome browser in
> Ubuntu 10.10
>
>
>
>
>
>
>
> On Fri, 2011-01-07 at 12:06 +0530, suersh babu wrote:
> > Hi,
>
> > I am using gwt 2.1,  After uploading my application to production
> > server, some time I see my gwt module not loaded, only
> > After clicking refresh button it get loaded.
>
> > Kindly can any one tell me what could be the reason,  I am very
> > interested in this.
>
> > --
> > Regards
>
> > Suresh Babu G
>
> > --
> > 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-tool...@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-tool...@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.



Eclipse/GWT and Ubuntu One

2011-01-07 Thread khj
I want to work on the same GWT Eclipse project from home and my office.

So, at home, I copied the project from ../workspace into a sub-directory of 
~/Ubuntu\ One (UO).  I then "deleted" the "standard workspace version" from 
Eclipse and "imported" the newly relocated "UO version".  All this was done 
at home where everything continues to work fine/as expected.

The "problem" arises when I try to use the shared project at work.  Note 
that there, after "importing" the project from the synchronized UO copy, 
almost everything is fine.

So, what's the "problem"?

At work, two options are missing from the "Run/Run As" menu:  "Compile GWT 
Application" and "GWT Application".  At home, I see *six* options:  the two 
above, plus "Java Applet", "Java Application", "Web Application", and "Web 
Application (running on external server)".

BTW, I can run the project using the "Web Application" option.  But not the 
"GWT Application" option (since I don't know of any way to specify it).

Why wouldn't the project behave *identically* when working at the two 
locations?  One would think that they are accessing exactly the same info. 
 Apparently not!

My hunch is some other Eclipse "state" is missing.  But what?


Thanks for any comments/suggestions,

-Kenneth

PS  I had a similar experience on an earlier attempt using a shared 
Subversion repository.

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



getting offsetWidth real value

2011-01-07 Thread Jorge
Hi,

I was trying to initialize my canvas side depending on the size of the
scroll panel that contains it and I made several tries. As I could
see, getOffsetWidth returns always 0 if it is invoked inside
EntryPoint.onModuleLoad() so I looked for a solution.

First I found that by the end of Widget.onLoad()/Widget.onAttach()
should return the correct value (http://code.google.com/p/google-web-
toolkit/issues/detail?id=4106) but it didn't work.

I kept looking and tried using DeferredCommand (now Scheduler) inside
Widget.onLoad() and it worked for me. I do overwriting the root panel
child's onLoad method. I found this solution at:
http://code.google.com/p/google-web-toolkit/issues/detail?id=1243. But
I don't know if this it is a final solution.

So I would like to ask the following questions:

Will this solution always work or it depends on the moment that the
command is executed or the browser?

Is there another solution for obtaining offsetWidth real value before
user starts interacting with the application?

Thanks in advance,

Jorge

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



What mean this exception??

2011-01-07 Thread Sebe
7:33:37.803 [ERROR] [de_vogella_gwt_helloworld] Uncaught exception
escaped
com.google.gwt.core.client.JavaScriptException: (null): null
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
237)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
126)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeBoolean(ModuleSpace.java:
184)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeBoolean(JavaScriptHost.java:
35)
at
com.google.gwt.user.client.rpc.impl.RpcStatsContext.isStatsAvailable(RpcStatsContext.java)
at
com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:
221)
at
com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:
287)
at com.google.gwt.http.client.RequestBuilder
$1.onReadyStateChange(RequestBuilder.java:395)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
157)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:
326)
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
207)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
126)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
269)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214)
at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
157)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
281)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
531)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)
at java.lang.Thread.run(Thread.java:619)

Someone has already happened?

Thanks a lot

Sebe

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



Move a pojo to the serve side package (RCP)

2011-01-07 Thread Kidowell
Hey I'm developing an app using GWT and Google App Engine.

I need the pojo Book to be in the serverside package, rather than in a
client side. (This is because Im storing appengine.api.datastore.Text
attribute, and this package must be imported in the serverside as
otherwise GWT wont compile it).

How to move a Class from a client to the serverside.

Thank you very much in advanced.

regards.
--
Kido

-- 
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-tool...@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: Popup closes on clicking outside

2011-01-07 Thread John LaBanca
Use setAutoHideEnabled(false).  Modal means that clicks don't pass through
to the application below, but you can still have a modal popup that auto
hides.

Thanks,
John LaBanca
jlaba...@google.com


On Fri, Jan 7, 2011 at 10:49 AM, Vik  wrote:

> Hie
>
> I am using a gwt popup component and had set the property setModel(true)
> but it still closes when i click outside.
> any idea?
>
> Thankx and Regards
>
> Vik
> Founder
> www.sakshum.com
> www.sakshum.blogspot.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-tool...@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-tool...@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: Popup closes on clicking outside

2011-01-07 Thread SVR
Are you setting the auto-hide property of the PopupPanel to true?
check out the constructor parameters:
http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/PopupPanel.html

On Fri, Jan 7, 2011 at 10:49 AM, Vik  wrote:
> Hie
> I am using a gwt popup component and had set the property setModel(true) but
> it still closes when i click outside.
> any idea?
> Thankx and Regards
>
> Vik
> Founder
> www.sakshum.com
> www.sakshum.blogspot.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-tool...@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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT 2.1 compiler option : -noserver

2011-01-07 Thread SVR
Hi
I solved the problem by creating a Debug Config in RAD/Eclipse instead
of as an Ant Target. Though, I still dont know why the ant target
(devmode) with the same options (-noserver etc) would still not break
at a break point.
Also the prev error was due to me not incl. the proper src path (I had
only set the path to the compiled classes).
Thank you everybody for your help.


On Fri, Jan 7, 2011 at 9:47 AM, nacho  wrote:
> Is this package com.xyz.dashboard.prototype.gwt.widget translatable to js?
>
> You should insert a line in your MyModule.gwt.xml like 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-tool...@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-tool...@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.



Popup closes on clicking outside

2011-01-07 Thread Vik
Hie

I am using a gwt popup component and had set the property setModel(true) but
it still closes when i click outside.
any idea?

Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.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-tool...@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: Asyncronous calls in RCP behaves wierd.

2011-01-07 Thread Cesar Ruiz
 Thank you Alan.

when you say: "If is a global variable then you will never get the result
you require".

Why does this happen?. How can I get the result and set it to another
variable, in the case I wanted to use that variable for another porpose. I
dont like it much to call a RCP everytime I requiere a variable from the
database.

Thank you for your help.



On 3 January 2011 21:39, a...@mechnicality.com wrote:

>  If I understand your code correctly, its actually doing exactly what
> you've asked it to do.
>
> You are calling a method called 'setCurrentBook(..))' which doesn't
> seem to do anything very much.
>
> You are then defining a callback 'public void setCurrentBook(String
> bookname)' blah...
>
> You are then *invoking* the call back
>   bookServicesHolder.loadBookByName(bookName, callback);
>
> Your call back sets a variable called 'currentBook' and I cannot see what
> you intend this to do from the code provided, but, as written, its not going
> to do anything very much. If if is a global variable then you will never get
> the result you require.
>
> You need to carefully re-read the section in the GWT docs about
> Asynchronous calls. If you are using GWT you *MUST* use and fully understand
> asynchronous RPC - that's what Ajax is all about.
>
> It *should* go something like this.
>
> * Define an RPC callback for a particular service typically by using an
> anonymous inner class.
>
> * Invoke the call back specifying the data object (book) you want to read
>
> * On the successful asynchronous return, update the UI, by calling the
> update method from within the callback onSuccess method. There are many,
> many examples out there.
>
> In short, don't update the UI until the callback returns.
>
> If you don't want to make these calls asynchronous, then convert your
> program to a more servlet-centric approach. There are a (large) number of
> other web frameworks which will do this for you. GWT is all about Ajax and
> RPC.
>
> HTH
>
> Alan
>
>
>
>
>
>
>
>
>
> On 1/3/2011 12:17 PM, Cesar Ruiz wrote:
>
> It is also saving more books when reloading the page (but I dont care much
> about it as that wont be too painful to fix). But please I need some help on
> the RCP asyncronous calls.  What workaround can I do?.
>
> Kido.
>
> On 3 January 2011 19:23, Kidowell  wrote:
>
>> Hello, I'm doing a project where in the interface shows a listBox that
>> includes the names of some books, the thing is that you must choose
>> one and you will look wether in pdf or txt. My problem is that when
>> changing the listbox, itll show the just last book you chose, rather
>> the current one.
>>
>> heres the program so far.
>>
>> http://kido180020783.appspot.com/
>>
>>
>> Here's the part of the code that presents the problem.
>>
>>   setCurrentBook(bookList.getItemText(bookList.getSelectedIndex()));
>>if (pdfFlag) {
>>if (!txtFlag) {
>>pdfBook.setSize(booksPanelWidth,
>> booksPanelHeight);
>>} else {
>>booksPanelWidth =
>> String.valueOf(BOOKS_PANEL_WIDTH / 2);
>>pdfBook.setSize(booksPanelWidth,
>> booksPanelHeight);
>>txtBook.setSize(booksPanelWidth,
>> booksPanelHeight);
>>
>>}
>>pdfBook.setUrl("pdf/" + currentBook.getUriPath() +
>> ".pdf");
>>} else {
>> ..
>>
>> //This method is being called AFTER the line " pdfBook.setUrl("pdf/" +
>> currentBook.getUriPath() + ".pdf");" wich is weird!!.
>>  public void setCurrentBook(String bookName) {
>>AsyncCallback callback = new AsyncCallback() {
>>
>>public void onFailure(Throwable caught) {
>>throw new UnsupportedOperationException("Not supported
>> yet.");
>>}
>>
>>public void onSuccess(Book result) {
>>currentBook = result;
>>}
>>};
>>bookServicesHolder.loadBookByName(bookName, callback);
>>}
>>
>>
>>
>> I dont want the method to be Asyncronous, please I really need some
>> help.
>>
>> --
>> 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-tool...@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.
>>
>>
>
>
> --
> Cesar Ruiz.
> --
> 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-tool...@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 

Re: Can not run GWT from eclipse on 64-bit Windows 7

2011-01-07 Thread David Chandler
What's in your WEB-INF/lib?

This error occurs when there are multiple versions of the JDT
CompilerOptions class on the classpath, one of which comes from
gwt-dev.jar: org/eclipse/jdt/internal/compiler/impl/CompilerOptions.class

/dmc

On Fri, Jan 7, 2011 at 10:28 AM, Marley  wrote:
> if i compile via ant and deploy to my local weblogic server,
> everything works fine.  This is the only error i have to go by...there
> is nothing else which is frustrating.
>
> I am using GWT 2.0.4.  Does that support 64-bit windows?
>
>
>
> On Jan 7, 9:45 am, Marley  wrote:
>> I have the latest Eclipse and the latest GWT eclipse plug-in.  My
>> application works on 32-bit XP however i got a new machine running
>> Windows 7 professional 64-bit
>>
>> When i try to launch my application i get the following error from
>> GWT:
>>
>> 09:41:19.956 [ERROR] [my_gwt] Failed to load module 'my_gwt' from user
>> agent 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
>> Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
>> 3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.2)' at
>> 127.0.0.1:53373
>> java.lang.NoSuchFieldError:
>> reportUnusedDeclaredThrownExceptionIncludeDocCommentReference
>>     at
>> com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions(JdtCompiler.java:
>> 310)
>>     at com.google.gwt.dev.javac.JdtCompiler
>> $CompilerImpl.(JdtCompiler.java:148)
>>     at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:
>> 466)
>>     at com.google.gwt.dev.javac.CompilationStateBuilder
>> $CompileMoreLater.compile(CompilationStateBuilder.java:142)
>>     at
>> com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationSta 
>> teBuilder.java:
>> 281)
>>     at
>> com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationState 
>> Builder.java:
>> 182)
>>     at
>> com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:
>> 280)
>>     at com.google.gwt.dev.DevModeBase
>> $UiBrowserWidgetHostImpl.createModuleSpaceHost(DevModeBase.java:99)
>>     at
>> com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler 
>> .java:
>> 180)
>>     at
>> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan 
>> nelServer.java:
>> 380)
>>     at
>> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java :
>> 222)
>>     at java.lang.Thread.run(Thread.java:662)
>
> --
> 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-tool...@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.
>
>



-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

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



Re: GWT 2.1 MVP Multiple activities clarification help

2011-01-07 Thread Shubhang Mani
+1 great example !

It's the best working example I've seen thus far that illustrates MVP with 
activities/places as well as uiBinder.
I was finally able to understand how to control navigation in a content pane 
from a non-display region.

All it needs now is GIN  :-)

Thanks for putting this out there !

-shubhang

-- 
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-tool...@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: Can not run GWT from eclipse on 64-bit Windows 7

2011-01-07 Thread Marley
if i compile via ant and deploy to my local weblogic server,
everything works fine.  This is the only error i have to go by...there
is nothing else which is frustrating.

I am using GWT 2.0.4.  Does that support 64-bit windows?



On Jan 7, 9:45 am, Marley  wrote:
> I have the latest Eclipse and the latest GWT eclipse plug-in.  My
> application works on 32-bit XP however i got a new machine running
> Windows 7 professional 64-bit
>
> When i try to launch my application i get the following error from
> GWT:
>
> 09:41:19.956 [ERROR] [my_gwt] Failed to load module 'my_gwt' from user
> agent 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
> Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
> 3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.2)' at
> 127.0.0.1:53373
> java.lang.NoSuchFieldError:
> reportUnusedDeclaredThrownExceptionIncludeDocCommentReference
>     at
> com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions(JdtCompiler.java:
> 310)
>     at com.google.gwt.dev.javac.JdtCompiler
> $CompilerImpl.(JdtCompiler.java:148)
>     at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:
> 466)
>     at com.google.gwt.dev.javac.CompilationStateBuilder
> $CompileMoreLater.compile(CompilationStateBuilder.java:142)
>     at
> com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationSta 
> teBuilder.java:
> 281)
>     at
> com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationState 
> Builder.java:
> 182)
>     at
> com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:
> 280)
>     at com.google.gwt.dev.DevModeBase
> $UiBrowserWidgetHostImpl.createModuleSpaceHost(DevModeBase.java:99)
>     at
> com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler 
> .java:
> 180)
>     at
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan 
> nelServer.java:
> 380)
>     at
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java :
> 222)
>     at java.lang.Thread.run(Thread.java:662)

-- 
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-tool...@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: Ajax file uploads and progressive enhancement

2011-01-07 Thread Sean
I'm not sure if this will answer all your questions, but for file uploading, 
including multi-file uploading with asynchronous progress I use the library 
http://code.google.com/p/gwtupload/

How it works in browsers besides the latest Chrome, FF and IE I don't know, 
but it's a fairly quick setup and may be worth testing out. 

-- 
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-tool...@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: deploy GWT app with Tomcat istead GAE..

2011-01-07 Thread Sean
If you want to deploy your finished product, look in your project for your 
WAR directory. This needs to be uploaded to your TomCat instance. You can 
either upload it as a folder (that's what I do) or if it's a private Tomcat 
server, you can zip it up, rename the .zip to a .war, upload it to your 
TOMCAT server and it should take care of everything. To find things on the 
web, look less for GWT tutorials and general uploading WAR files/directories 
to TOMCAT.

Hope that helps.

-- 
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-tool...@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: Why 5 compilations instead of 6 ?

2011-01-07 Thread Andrei Cosmin Fifiiţă
Thanks. I haven't noticed that paragraph.

On 7 January 2011 17:02, Jim Douglas  wrote:

>
> http://groups.google.com/group/google-web-toolkit/browse_thread/thread/6f2418947d7efeb9/02a6615d8b719089
>
> On Jan 7, 6:51 am, Ice13ill  wrote:
> > I noticed that now gwt compiles 5 permutations instead of 6 (for:
> > ie6,ie8,gecko1_8,safari,opera properties). What happened to the
> > "gecko" property ? Will this affect the rendering in different
> > browsers ? (i.e. firefox for windows or firefox for linux ? )
>
> --
> 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-tool...@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-tool...@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: Why 5 compilations instead of 6 ?

2011-01-07 Thread Jim Douglas
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/6f2418947d7efeb9/02a6615d8b719089

On Jan 7, 6:51 am, Ice13ill  wrote:
> I noticed that now gwt compiles 5 permutations instead of 6 (for:
> ie6,ie8,gecko1_8,safari,opera properties). What happened to the
> "gecko" property ? Will this affect the rendering in different
> browsers ? (i.e. firefox for windows or firefox for linux ? )

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



Why 5 compilations instead of 6 ?

2011-01-07 Thread Ice13ill
I noticed that now gwt compiles 5 permutations instead of 6 (for:
ie6,ie8,gecko1_8,safari,opera properties). What happened to the
"gecko" property ? Will this affect the rendering in different
browsers ? (i.e. firefox for windows or firefox for linux ? )

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



Re: GWT 2.1 compiler option : -noserver

2011-01-07 Thread nacho
Is this package com.xyz.dashboard.prototype.gwt.widget translatable to js?

You should insert a line in your MyModule.gwt.xml like 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-tool...@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.



Can not run GWT from eclipse on 64-bit Windows 7

2011-01-07 Thread Marley
I have the latest Eclipse and the latest GWT eclipse plug-in.  My
application works on 32-bit XP however i got a new machine running
Windows 7 professional 64-bit

When i try to launch my application i get the following error from
GWT:

09:41:19.956 [ERROR] [my_gwt] Failed to load module 'my_gwt' from user
agent 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.2)' at
127.0.0.1:53373
java.lang.NoSuchFieldError:
reportUnusedDeclaredThrownExceptionIncludeDocCommentReference
at
com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions(JdtCompiler.java:
310)
at com.google.gwt.dev.javac.JdtCompiler
$CompilerImpl.(JdtCompiler.java:148)
at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:
466)
at com.google.gwt.dev.javac.CompilationStateBuilder
$CompileMoreLater.compile(CompilationStateBuilder.java:142)
at
com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:
281)
at
com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:
182)
at
com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:
280)
at com.google.gwt.dev.DevModeBase
$UiBrowserWidgetHostImpl.createModuleSpaceHost(DevModeBase.java:99)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
180)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
380)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
222)
at java.lang.Thread.run(Thread.java:662)

-- 
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-tool...@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: deploy GWT app with Tomcat istead GAE..

2011-01-07 Thread nacho
Look here 

http://code.google.com/intl/es-AR/webtoolkit/doc/1.6/FAQ_DebuggingAndCompiling.html#How_do_I_use_my_own_server_in_hosted_mode_instead_of_GWT%27s

-- 
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-tool...@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: BlobInfo using the BlobKey

2011-01-07 Thread nacho
You should post your answer in Google Appengine group 
https://groups.google.com/forum/#!forum/google-appengine

-- 
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-tool...@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 MVP 2.1.1 code splitting

2011-01-07 Thread Thomas Broyer
You mean something like this?
http://code.google.com/p/google-web-toolkit/issues/detail?id=5129

(it has been discussed earlier here that the approach does work, even though 
I haven't yet used it myself)

-- 
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-tool...@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 MVP History/Place/Activity Noticable Delay during Place Transition

2011-01-07 Thread Thomas Broyer
DevMode in Chrome is slower than in Firefox (and others) due to sandboxing 
of the plugin (which makes communicating between the web page and the 
browser plugin slower), that's a known fact.

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



Ajax file uploads and progressive enhancement

2011-01-07 Thread Ionuț G. Stan

Hi,

We have a little project at work that requires async multiple file 
uploads in a GWT based application. The specs mention that if available 
in the browser, multiple *selection* of files should also be supported, 
and even drag and drop of files.


The problems I see so far are:

1. Not every browser supports *real* asynchronous file uploads
2. Not every browser supports multiple file selection in the file dialog
3. Not every browser supports HTML5 drag and drop


From my point of view (and I have much more experience with JS than 
GWT), the second problem is the simplest, even when using GWT, but how 
to progressively add support for the other two in more competent browsers?


We want the most "unfortunate" of the browsers to support pseudo-async 
uploads using an iframe, but the most advanced ones to use the 
XMLHttpRequest object, and most probably drag and drop.


Someone has already asked a similar question[1] half a year ago, but 
there were no follow ups.


So, what's your advice? Is JSNI the only way?


Thanks!

[1]: 
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/ce09e8a13009c213


--
Ionuț G. Stan  |  http://igstan.ro

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



I need your help error: An IncompatibleRemoteServiceException was thrown while processing this call

2011-01-07 Thread Sun
Hello!
I just update the version of GWT 2.1 above was using version 2.0.4 and
after I update the version giving me the following error ... and
looked everywhere and nobody has been able to help me I need your help
to use the new version thank you very much ..

the features of my version are as follows:
Websphere server version 6
Java JDK 1.5

this is the error: ProductServices: An
IncompatibleRemoteServiceException was thrown while processing this
call.:
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
This application is out of date, please click the refresh button on
your browser. ( Expecting version 5 from client, got 6. )

-- 
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-tool...@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 persist() error with hibernate

2011-01-07 Thread Emanuele Righetto
Hi, i'm trying to build a custom webapp using RequestFactory + Spring
+ Hibernate.
My goal is to build a table (using CellTable) where users can edit
some properties of the objects being displayed and then save them, but
anytime i call the persist() method i have an hibernate exception:

02:56:41,500 ERROR LazyInitializationException:42 - could not
initialize proxy - no Session
org.hibernate.LazyInitializationException: could not initialize proxy
- no Session
at
org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:
86)
at
org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:
140)
at
org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:
190)
at it.aimvicenza.intercompany.server.entity.Lavorato_$
$_javassist_4.getData(Lavorato_$$_javassist_4.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.google.gwt.requestfactory.server.JsonRequestProcessor.serializeEntity(JsonRequestProcessor.java:
1536)
at
com.google.gwt.requestfactory.server.JsonRequestProcessor.getSerializedEntity(JsonRequestProcessor.java:
1372)
at
com.google.gwt.requestfactory.server.JsonRequestProcessor.constructBeforeDataMap(JsonRequestProcessor.java:
1167)
at
com.google.gwt.requestfactory.server.JsonRequestProcessor.processJsonRequest(JsonRequestProcessor.java:
889)
at
com.google.gwt.requestfactory.server.JsonRequestProcessor.decodeAndInvokeRequest(JsonRequestProcessor.java:
243)
at
com.google.gwt.requestfactory.server.JsonRequestProcessor.decodeAndInvokeRequest(JsonRequestProcessor.java:
63)
at
com.google.gwt.requestfactory.server.RequestFactoryServlet.doPost(RequestFactoryServlet.java:
116)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
298)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
852)
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint
$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662)

what i've done so far is:
- created EntityProxy (@ProxyFor) for my @Entity class (used by
hibernate)
- created @Service(ObjectExstendingMyEntity.class). i didn't used the
@Entity class directly to keep the code clean, i'm not sure if this
can be be a problem, but all static methods are working correctly.
I've also tryed to move anything inside the @Entity class but the
error still remain.
- created a CellTable with some column and some editable fields: here
an example of one column updater:

comColumn.setFieldUpdater(new FieldUpdater() {
public void update(int index, LavoratoProxy object, String value) {
LavoratoRequest lavReq = requestFactory.lavoratoRequest();
LavoratoProxy newObject = lavReq.edit(object);
int selectedIndex = comOption.getSelectedIndex();
String commId;
if (selectedIndex >= 0 ){
//Another column
commId = comOption.getValue(selectedIndex);
}
for (CommessaProxy comm : currentList){
//searching into an existing list
if (comm.getId().equals(commId)) {
newObject.setCodiceCommessa(comm);
lavReq.persist().using(newObject).fire(new 
Receiver(){
@Override
public void onFailure(ServerFailure 
error){
Window.alert("ERROR: 
"+error.getMessage());
}
@Override
public void onSuccess(Object response) {
Window.alert

How can I get rid of this Error?

2011-01-07 Thread Manny
I'm currently trying to work on my application from Africa and am
having problems debuggin
without a consistent internet connection. Please let me know which
portion of code causes the
prompt below so I may extract it thanks.

Initializing AppEngine server
Unable to access
http://appengine.google.com/api/updatecheck?runtime=java&release=1.4.0×tamp=1291156877&api_versions=['1.0']
java.net.UnknownHostException: appengine.google.com
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
at sun.net.www.http.HttpClient.(HttpClient.java:233)
at sun.net.www.http.HttpClient.New(HttpClient.java:306)
at sun.net.www.http.HttpClient.New(HttpClient.java:323)
at
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:
975)
at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:
916)
at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:
841)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:
1177)
at java.net.URL.openStream(URL.java:1010)
at
com.google.appengine.tools.info.RemoteVersionFactory.getVersion(RemoteVersionFactory.java:
76)
at
com.google.appengine.tools.info.UpdateCheck.checkForUpdates(UpdateCheck.java:
99)
at
com.google.appengine.tools.info.UpdateCheck.doNagScreen(UpdateCheck.java:
174)
at
com.google.appengine.tools.info.UpdateCheck.maybePrintNagScreen(UpdateCheck.java:
142)
at
com.google.appengine.tools.development.gwt.AppEngineLauncher.maybePerformUpdateCheck(AppEngineLauncher.java:
137)
at
com.google.appengine.tools.development.gwt.AppEngineLauncher.start(AppEngineLauncher.java:
103)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:431)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1053)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:795)
at com.google.gwt.dev.DevMode.main(DevMode.java:282)
Logging to JettyLogger(null) via
com.google.apphosting.utils.jetty.JettyLogger
Successfully processed /home/manster/workspace/GymBuddy/war/WEB-INF/
appengine-web.xml
Successfully processed /home/manster/workspace/GymBuddy/war/WEB-INF/
web.xml
The server is running at http://localhost:/

-- 
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-tool...@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 handle MouseListener with shared variables split into different Mouse handlers

2011-01-07 Thread Kyle Sawatsky
I'm upgrading GWT 1.5 code to use the new event handling system. We
have several custom inner class MouseListeners where the different
mouse event methods (onMouseLeave, onMouseExit, etc.) will refer to
class variables of the custom MouseListener. After these methods are
split into separate classes (handlers) you clearly cannot refer to
them the same way. What is the best way to handle this as I don't want
to just move the variables into the outer class.

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



i18N on Server

2011-01-07 Thread ROCK
Hi,

I have implemented i18N on my client side and it works perfectly. I
pass the locale in the URL. Is there a way by which I can get this
locale on the server side in my Impl? I do not want to pass the locale
code as a parameter in the RPC.
Thanks in advance,

-VK

-- 
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-tool...@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 eclipse plugin fails to compile if Console tab is closed in eclipse.

2011-01-07 Thread Sindhudweep Sarkar
If I attempt to compile a gwt project with Eclipse's Console tab
closed, I get an error popup:

'ProjectName - GWT Compile' has encountered a problem.

An internal error occured during: "ProjectName - GWT Compile".

If I show the details I see:

An internal error occurred during: "ProjectName - GWT Compile".
  Group not found: launchGroup


Simply opening the Console ( ALT + SHIFT + Q, C ) causes the compile
step to work again.

Is this the designed behavior? I was only able to move past this
because I wanted the console open to see if there was a better error
message.

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



I need your help error: An IncompatibleRemoteServiceException was thrown while processing this call

2011-01-07 Thread Sun
gwt update to 2.0.4 version to version 2.1 and when I load my
application I get the folowing error:
An Thrown WAS IncompatibleRemoteServiceException while processing this
call.:
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
This application is out of date, please click the refresh button on
your browser. (Expecting version 5 from client, got 6.)

I have really no idea who is giving me this exception, and sought the
solution in forums and not get anything that I can help.

I have Websphere 6
and Java JDK 1.5

in case they help with something ...

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



Using the cell browser

2011-01-07 Thread Sean751
Hi
I am struggling to get the cell browser working and hoped for some
advice.
I can get it to display and using

private final SelectionModel InstSelectionModel =
new SingleSelectionModel();

and within public  NodeInfo getNodeInfo(T value) using

return new DefaultNodeInfo(instruments, InstrumentCell,
InstSelectionModel, null);

There are other tree levels.

My questions are...

Can I use a different SelectionModel for each tree level since they
are displaying different classes. For example level 2 might be
private final SelectionModel SympSelectionModel = new
SingleSelectionModel();
Maybe there is a better way?

Secondly I cannot seem to work out how to use a change event when
something is selected, it took me a while to get as far I have since I
am new to Java and GWT, which is good when learning but I am not
enjoying the struggle right now and getting tempted to use something
other than the cell browser.
After a selection I will just want to populate some edit text boxes
with relevant values.

The page will be populated from an xml file and changes saved to an
xml file - that looks like the easy bit but maybe that will cause more
questions later.

Thanks
Sean

-- 
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-tool...@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 Cookies returning null

2011-01-07 Thread Harald Schilly

On Thursday, January 6, 2011 2:23:04 PM UTC+1, Noor wrote:
>
> I am becoming almost mad with the GWT Cookies, 
>

I got also mad with it, then I wrote a native function doing it "myself", 
still the same. Then I realized that it worked all the time in firefox, but 
not in chrome. I still don't know what's going on though, but in which 
browsers have you tried it?

H

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



Re: GWT 2.1 MVP Multiple activities clarification help

2011-01-07 Thread nacho
Very nice example Mauro!

-- 
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-tool...@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 resizable DialogBox, Or GwtWindow

2011-01-07 Thread freemonhuul
Hi guys!

I need an experience on GWT. I am developing a chat application like
yahoo messenger using GWT.

I need to create discussion window. To do it, I extends DialogBox
class. But it doesn't support resizing natively using mouse. I tried
to make this resizable in many ways and searched about this for
internet.

Until now, I haven't got a near solution for this.

If anybody knows kind of ways to make resizable DialogBox or something
like that.

Thanks in advance.


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



Proposal of several plug-in architectures for GWT applications running on the Google App Engine platform

2011-01-07 Thread Ingo Jaeckel
Hello everyone,

this week I published an article entitled "Proposals for Google Web
Toolkit application plug-in architectures" [1] on of my HoneyCRM
project page [2]. The existence of plug-ins is not new for web
applications in general. However, there are a number of technical
issues making it difficult to develop plug-ins for GWT applications.
In the article I propose solutions around these problems.

The implementation of a plug-in system has been discussed a lot of
times in the community. I am looking forward for your feedback and
thoughts about my proposals. You can find more information as well as
prototype implementations in the wiki [3].

Kind regards,
Ingo

[1] 
http://honeycrm.googlecode.com/files/ProposalsForGoogleWebToolkitApplicationPlugInArchitectures.pdf
[2] http://code.google.com/p/honeycrm/
[3] http://code.google.com/p/honeycrm/w/list

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



Re: GWT 2.1 MVP Multiple activities clarification help

2011-01-07 Thread Mauro Bertapelle
karthik,

glad you find my example useful, but please consider it just a basic
demonstration of the concepts expressed by Thomas in his article, far
from being a complete implementation of an app based on the new
Activity/Place model.

As Thomas pointed out, MailListActivity need to be informed of
MailDetailPlace change events to have it syncronized with what's
displayed on the MailDetailActivity's display area.

To implement this, add a PlaceChangeEvent handler to MailListActivity:

public MailListActivity(ClientFactory clientFactory) {
  view = clientFactory.getMailListView();
  placeController = clientFactory.getPlaceController();

  EventBus eventBus = clientFactory.getEventBus();
  eventBus.addHandler(PlaceChangeEvent.TYPE, new
PlaceChangeEvent.Handler() {
@Override
public void onPlaceChange(PlaceChangeEvent event) {
  Place newPlace = event.getNewPlace();

  if (newPlace instanceof MailDetailPlace) {
String mailIdToken = ((MailDetailPlace) newPlace).getMailId();
Mail mail = MAILLIST.getMail(Integer.valueOf(mailIdToken));
view.setSelectedMail(mail);
  }
}
  });
}

and a new setSelectedMail method to MailListView:

@Override
public void setSelectedMail(Mail newSelectedMail) {
  SingleSelectionModel selectionModel =
(SingleSelectionModel) table.getSelectionModel();
  Mail selected = selectionModel.getSelectedObject();
  if (selected.getId() != newSelectedMail.getId()) {
selectionModel.setSelected(newSelectedMail, true);
  }
}


-- 
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-tool...@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: Handling clicks on CellWidgets

2011-01-07 Thread Ramon Salla
Thanks Thomas.

I used the patched ActionCell and ButtonCell from the link you gave me
from the issue and it worked great.

Using 2 ActionCells in a CompositeCell also worked.

I think that is all I need to keep cellwidgets in production (users
are great bugfinders! ;) ) . I hope the patch will make its way to the
next version.

Thanks again,

Ramon Salla Rovira




On 3 Gen, 22:35, Thomas Broyer  wrote:
> On Monday, January 3, 2011 3:33:37 PM UTC+1, Ramon Salla wrote:
>
> > Hi, Happy new year to all!
>
> > I have some questions regarding cellwidgets. In the showcase
> >http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellSampler
> > when clicking the cell which contains the button, it reacts not only
> > when pressing the button but also when clicking inside the cell but
> > outside the button.
>
> > First Question, can i avoid this behavior and only reacting to the
> > button press in a cell?
>
> Seehttp://code.google.com/p/google-web-toolkit/issues/detail?id=5641
> (for now, you'd have to use your own ButtonCell if you want the fixed
> behavior)
>
>
>
>
>
>
>
>
>
> > Inspecting the code for this example and the sample from CellList i
> > see the following:
>
> > From the CellList example, each cell is a div with a  single onclick.
>
> >  > style="outline:none;"> ...  > div>
>
> > From the CellSampler (which uses a cellTable) the onclick is not in
> > each cell but in each row.
> > 
>
> > I tried to use a composite cell with two buttons in a celllist but as
> > there is only one handler per cell, clicking on any of the two buttons
> > (and also outside the buttons but inside the cell) reacts with the
> > same handler. I can't distinguish them.
>
> > Question 2. How can I distinguish clicks inside a cell when using a
> > cell list.
>
> Try using ActionCell instead of ButtonCell
>
> > Question 3 Am I forced to use celltable with different cells for each
> > column.
>
> You can use the same Cell for several columns. If you want columns though,
> you have to use CellTable, of make your own Cell widget (not trivial)
>
> > Question 4 How do you managed to distinguish cellclicks if there is
> > only one handler per row in a celltable?
>
> Cell widgets use "event delegation", they register a single event listener
> but then dispatch accordingly, depending on the exact element targetted by
> the event (i.e. FieldUpdater for a given Column, onBrowserEvent and
> ValueUpdater for a given Cell)

-- 
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-tool...@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: CellView and vertical scroll bar

2011-01-07 Thread Néstor Boscán
I checked the site and I can't find CellView on the API Documentation.

Regards,

Néstor Boscán

2011/1/6 Néstor Boscán 

> Thanks Owen.
>
>
> On Wed, Jan 5, 2011 at 4:34 PM, Owen Powell  wrote:
>
>> The incubator is here:
>>
>> http://code.google.com/p/google-web-toolkit-incubator/
>>
>> ~Owen
>>
>> --
>> 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-tool...@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-tool...@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.