Cannot debug GWT 2.0 app embedded within external iframe

2010-01-08 Thread Stevko
Has anyone had any success with using the GWT 2.0 browser plugins when
the app is hosted within a facebook iframe canvas? The application
works well without the plugins loaded.

I believe the issue is related to the XSS / same domain policy that is
missing in the old 1.7 hosted IE browser.

Using the Web App Starter Project, the execution stops after painting
"Please enter your name:"

Chrome just alerts "Plugin failed to connect to hosted mode server at
myhost.webhop.org:9997" and dies with this message in the javascript
console:
Unsafe JavaScript attempt to access frame with URL
http://apps.facebook.com/myappname/?_fb_q=1 from frame with URL
http://myhost.webhop.org:8080/newproject/hosted.html?newproject.
Domains, protocols and ports must match.
Uncaught TypeError: Cannot call method 'createElement' of undefined

Firebug flags a javascript error at

Permission denied for  to get property
Location.href from .
anonymous(Object name=errFn, "newproject", "http://myhost.webhop.org:
8080/newproject/")hosted.h...ewproject (line 227)
z()newproje...ocache.js (line 2)
anonymous()newproje...ocache.js (line 8)
[Break on this error] var url = topWin.location.href;\n

Has anyone figured out a way to get this to work?
--Andy


-- 
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: Cannot debug GWT 2.0 app embedded within external iframe

2010-01-09 Thread Stevko
I've managed to get my application to work in an external iframe by
editing the hosted.html file and changing line 226
from
var topWin = window.top;

to
var topWin = window.self;

This is the context...
gwtOnLoad = function(errFn, modName, modBase){
  $moduleName = modName;
  $moduleBase = modBase;

  // Note that the order is important
  var pluginFinders = [
findPluginXPCOM,
findPluginObject,
findPluginEmbed,
  ];
  var topWin = window;
  var url = topWin.location.href;
  if (!topWin.__gwt_SessionID) {


On Jan 8, 10:25 pm, Stevko  wrote:
> Has anyone had any success with using the GWT 2.0 browser plugins when
> the app is hosted within a facebook iframe canvas? The application
> works well without the plugins loaded.
>
> I believe the issue is related to the XSS / same domain policy that is
> missing in the old 1.7 hosted IE browser.
>
> Using the Web App Starter Project, the execution stops after painting
> "Please enter your name:"
>
> Chrome just alerts "Plugin failed to connect to hosted mode server at
> myhost.webhop.org:9997" and dies with this message in the javascript
> console:
> Unsafe JavaScript attempt to access frame with 
> URLhttp://apps.facebook.com/myappname/?_fb_q=1from frame with 
> URLhttp://myhost.webhop.org:8080/newproject/hosted.html?newproject.
> Domains, protocols and ports must match.
> Uncaught TypeError: Cannot call method 'createElement' of undefined
>
> Firebug flags a javascript error at
>
> Permission denied for <http://myhost.webhop.org:8080> to get property
> Location.href from <http://facebook.com>.
> anonymous(Object name=errFn, "newproject", "http://myhost.webhop.org:
> 8080/newproject/")hosted.h...ewproject (line 227)
> z()newproje...ocache.js (line 2)
> anonymous()newproje...ocache.js (line 8)
> [Break on this error] var url = topWin.location.href;\n
>
> Has anyone figured out a way to get this to work?
> --Andy
-- 
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.




Developer Plugin host whitelist/blacklist

2010-01-17 Thread Stevko
re: the GWT Developer Plugin in Firefox and Chrome on Windows/Vista.

Within the plugin on Firefox I am able to include the public hostname
of my computer which is also the same as the hostname of my
application URL via the options dialog titled Security Restrictions.

The Chome version of the plugin does not enable the options. When I
connect to the same url as in Firefox, Chrome says it cannot connect
to my debugger.

Is there a control file or command line parameter that I can use to
whitelist a hostname/ipaddress ?

TIA,
-- 
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: Cannot debug GWT 2.0 app embedded within external iframe

2010-01-21 Thread Stevko
I had thought so too but it worked after I cleared my browser's cache
and made sure the edited file was getting to my browser. Also FYI,
recompiling the project replaces the file and reverses any edits.


On Jan 20, 12:50 am, Itzik Yatom  wrote:
> I have the same issue, I've tried to change the hosted.html file but
> there is no change.
>
> Itzik
>
> On Jan 9, 6:04 pm,Stevko wrote:
>
>
>
> > I've managed to get my application to work in an external iframe by
> > editing the hosted.html file and changing line 226
> > from
> > var topWin = window.top;
>
> > to
> > var topWin = window.self;
>
> > This is the context...
> > gwtOnLoad = function(errFn, modName, modBase){
> >   $moduleName = modName;
> >   $moduleBase = modBase;
>
> >   // Note that the order is important
> >   var pluginFinders = [
> >     findPluginXPCOM,
> >     findPluginObject,
> >     findPluginEmbed,
> >   ];
> >   var topWin = window;
> >   var url = topWin.location.href;
> >   if (!topWin.__gwt_SessionID) {
>
> > On Jan 8, 10:25 pm,Stevko wrote:
>
> > > Has anyone had any success with using the GWT 2.0 browser plugins when
> > > the app is hosted within a facebook iframe canvas? The application
> > > works well without the plugins loaded.
>
> > > I believe the issue is related to the XSS / same domain policy that is
> > > missing in the old 1.7 hosted IE browser.
>
> > > Using the Web App Starter Project, the execution stops after painting
> > > "Please enter your name:"
>
> > > Chrome just alerts "Plugin failed to connect to hosted mode server at
> > > myhost.webhop.org:9997" and dies with this message in the javascript
> > > console:
> > > Unsafe JavaScript attempt to access frame with 
> > > URLhttp://apps.facebook.com/myappname/?_fb_q=1fromframewith 
> > > URLhttp://myhost.webhop.org:8080/newproject/hosted.html?newproject.
> > > Domains, protocols and ports must match.
> > > Uncaught TypeError: Cannot call method 'createElement' of undefined
>
> > > Firebug flags a javascript error at
>
> > > Permission denied for <http://myhost.webhop.org:8080> to get property
> > > Location.href from <http://facebook.com>.
> > > anonymous(Object name=errFn, "newproject", "http://myhost.webhop.org:
> > > 8080/newproject/")hosted.h...ewproject (line 227)
> > > z()newproje...ocache.js (line 2)
> > > anonymous()newproje...ocache.js (line 8)
> > > [Break on this error] var url = topWin.location.href;\n
>
> > > Has anyone figured out a way to get this to work?
> > > --Andy- Hide quoted text -
>
> > - Show quoted text -

-- 
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 embed an external page in GWT application?

2010-01-27 Thread Stevko
Hello Kelvin,
You embed an external web page into a GWT page in just the same you
would do it using html.

Check out class Frame - its a widget that wraps an iframe element.

http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/Frame.html

Cheers,
--Stevko

On Jan 27, 9:52 am, "kelvin.huang"  wrote:
> Hi,
>
> I am using GWT 1.6.4 and trying to include facebook connect page
> inside a widget of a GWT page, I checked the HTML and HTMLPanel, they
> take html string as parameters, is it possible just past url and
> render a page inside a widget? can anyone tell me how to embed an
> external page in GWT application. appreciate your help!
>
> Regards,
> Kelvin

-- 
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 embed an external page in GWT application?

2010-01-29 Thread Stevko
Sorry Kelvin,
I'm not yet up to speed on the UI binder approach to gui development.
Perhaps you can wrap your custom javascript into a widget (composite
or otherwise) and use that in the binder.
--Stevko

On Jan 28, 9:57 am, bond  wrote:
> HiStevko,
> maybe you can help me!
> How I can load a menu made with javascript in a ui binder xml file?
> In this post you can find my 
> problem:http://groups.google.com/group/google-web-toolkit/browse_thread/threa...
>
> Thanks
>
> Best regards
>
> On 27 Gen, 19:31, "kelvin.huang"  wrote:
>
>
>
> >  ThanksStevko!

-- 
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 set the format for a DateBox?

2009-11-23 Thread Stevko
I've setup DateTimeFormat and TimeZone objects within my application
based on user preferences.

com.google.gwt.i18n.client.DateTimeFormat
com.google.gwt.i18n.client.TimeZone


How do I set the format for a DateBox ?

DateBox.Format does not allow for the setting of a custom format.
http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/datepicker/client/DateBox.Format.html

--

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




Re: How to set the format for a DateBox?

2009-11-23 Thread Stevko
Thanks Thomas,
I missed that ctor when looking at the interface spec.

The final syntax is a bit twisted...

myDateBox.setFormat( new DateBox.DefaultFormat( myDateTimeFormat ) );

Care to guess what timezone GWT's java.util.Date and DateBox are
using?
Perhaps the browser's timezone, server's timezone, GMT, or something
else?

--

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 set the format for a DateBox?

2009-11-24 Thread Stevko

Cool! Thanks again for the valuable info.

>
> > Care to guess what timezone GWT's java.util.Date and DateBox are
> > using?
> > Perhaps the browser's timezone, server's timezone, GMT, or something
> > else?
>
> Dates are in the client (browser) timezone.

--

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 serialize a TreeMap with a ReverseComparator?

2009-12-08 Thread Stevko
I've got my app working with a TreeMap downloaded from the server but
this collection needs to be reverse sorted.

The way to reverse the sort on a java.util.TreeMap is to constuct it
with

new TreeMap(Collections.reverseOrder());

But when I attempt to serialize it, I get this exception:

 com.google.gwt.user.client.rpc.SerializationException: Type
'java.util.Collections$ReverseComparator' was not included in the set
of types which can be serialized by this SerializationPolicy or its
Class object could not be loaded. For security purposes, this type
will not be serialized.
at
com.google.gwt.user.server.rpc.impl.StandardSerializationPolicy.validateSerialize
(StandardSerializationPolicy.java:83)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize
(ServerSerializationStreamWriter.java:591)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject
(AbstractSerializationStreamWriter.java:129)
at
com.google.gwt.user.client.rpc.core.java.util.TreeSet_CustomFieldSerializer.serialize
(TreeSet_CustomFieldSerializer.java:44)
...

Got any ideas on how to overcome this situation?

--

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.




DatePicker bug - cannot pick May 30th or 31st 2011

2011-05-18 Thread Stevko
DatePicker does not allow picking of the last dates in months which
span 6 calendar weeks.

Using the default locale in which the week starts on Monday.

This month's date picker (May 2011) does not show the last two days of
the month - May 30th and 31st.
«
2011 May
»
M   T   W   T   F   S   S
25  26  27  28  29  30  1
2   3   4   5   6   7   8
9   10  11  12  13  14  15
16  17  18  19  20  21  22
23  24  25  26  27  28  29

The next month's date picker (June 2011) does show the last two days
of May (as grey) but selecting them only repositions the picker to
May.
«
2011 Jun
»
M   T   W   T   F   S   S
30  31  1   2   3   4   5
6   7   8   9   10  11  12
13  14  15  16  17  18  19
20  21  22  23  24  25  26
27  28  29  30  1   2   3

As a workaround - Is there a way to disable the repositioning of the
month when picking grey'd dates but instead just select the date?

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



Re: DatePicker bug - cannot pick May 30th or 31st 2011

2011-05-18 Thread Stevko
I've tried switching to using DateBox and the popup DatePicker has 6
rows for May 2011 rather than the 5 that the stand alone picker shows.
FWIW, Here is the UiBinder code that declares the date picker as part
of an Editor<> context.


Start Date:





On May 18, 10:00 am, Stevko  wrote:
> DatePickerdoes not allow picking of the last dates in months which
> span 6 calendar weeks.
>
> Using the default locale in which the week starts on Monday.
>
> This month's date picker (May2011) does not show the last two days of
> the month -May30th and 31st.
> «
>         2011May
> »
> M       T       W       T       F       S       S
> 25      26      27      28      29      30      1
> 2       3       4       5       6       7       8
> 9       10      11      12      13      14      15
> 16      17      18      19      20      21      22
> 23      24      25      26      27      28      29
>
> The next month's date picker (June 2011) does show the last two days
> ofMay(as grey) but selecting them only repositions the picker toMay.
> «
>         2011 Jun
> »
> M       T       W       T       F       S       S
> 30      31      1       2       3       4       5
> 6       7       8       9       10      11      12
> 13      14      15      16      17      18      19
> 20      21      22      23      24      25      26
> 27      28      29      30      1       2       3
>
> As a workaround - Is there a way to disable the repositioning of the
> month when picking grey'd dates but instead just select the date?

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



Re: DatePicker bug - cannot pick May 30th or 31st 2011

2011-05-18 Thread Stevko
I suspect it has something to do with my widget only showing 5 rows
instead of 6.
The main differences between the Showcase and mine is that UiBinder is
creating it and Editor is initializing it with a null value.

I'm trying to get 2.3 Showcase to load in my 3.6.2 eclipse helios but
the 3.4/3.5 sample import instructions fail me...
Will try to create a reproduce case later.

Thanks for the quick reply Thomas. Can always count on you :)


On May 18, 10:30 am, Thomas Broyer  wrote:
> Strange, I don't reproduce 
> onhttp://gwt.google.com/samples/Showcase/Showcase.html?locale=fr#!CwDat...

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



CellList 2.3 javadoc typo

2011-05-23 Thread Stevko
The 2.3 GWT javadocs have a typo that can be easily remedied:

http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/user/cellview/client/CellList.html

  void  setEmptyListMessage(SafeHtml html)
  Deprecated. as of GWT 2.3, use
#setEmptyDataWidget(com.google.gwt.user.client.ui.Widget) instead

should be

  Deprecated. as of GWT 2.3, use
#setEmptyListWidget(com.google.gwt.user.client.ui.Widget) instead

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



adding code to RequestFactory Proxy

2011-05-23 Thread Stevko
I am using the web bindery requestfactory proxies successfully
throughout a web app under development.
One thing that I'm finding myself writing over and over are simple
methods that define the logic for the proxy data fields.
For example:

class MeetingProxy extends EntityProxy {
   public Date getStartTime();
   public Date getStopTime();

}

I would like to add simple logic methods to MeetingProxy like
public boolean isStarted() { return getStartTime() != null  );
public boolean isFinished() { return getStopTime() != null );

Is there some way I can put this code within the Proxy definition so
that I can use it everywhere the proxy is accessed?
Perhaps as a public inner class within the interface?
Not sure how that would work or is it worth the effort...

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



Re: compiler error ClassNotFoundException: _j2se_j9=71168

2011-06-28 Thread Stevko
Is there something that makes permutation 0 different than the 7 other
permutation?
How can I tell what is the difference?


On Jun 9, 3:10 pm, "A. Stevko"  wrote:
> I am getting this compiler error. Any tips on resolving it?
>
>    Compiling 8 permutations
>       Compiling permutation 0...
>       Process output
>          [ERROR] Exception in thread "main" java.lang.NoClassDefFoundError:
> _j2se_j9=71168
>          [ERROR] Caused by: java.lang.ClassNotFoundException: _j2se_j9=71168
>          [ERROR] at
> java.net.URLClassLoader.findClass(URLClassLoader.java:421)
>          [ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:652)
>          [ERROR] at
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:346)
>          [ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:618)
>          [ERROR] Could not find the main class: _j2se_j9=71168.  Program
> will exit.
>       Compiling permutation 2...
>       Compiling permutation 3...
>       Compiling permutation 4...
>       Compiling permutation 5...
>       Compiling permutation 6...
>       Compiling permutation 7...
>       Compiling permutation 1...
>    Compile of permutations succeeded
> Linking into 
>    Link succeeded
>
> --
> -- 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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: compiler error ClassNotFoundException: _j2se_j9=71168

2011-06-28 Thread Stevko
Seems to be the case - IBM and -localworkers does not mix well.
Thanks Thomas for the tip on issue 4031 :)

On Jun 28, 4:06 pm, Thomas Broyer  wrote:
> Are you using an IBM
> JVM?http://code.google.com/p/google-web-toolkit/issues/detail?id=4031

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



how to prevent hosted mode on external production servers?

2011-09-20 Thread Stevko
Could it be as simple as removing the hosted.html file from the
deployment?

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



Re: format dates in specific timezone

2011-09-22 Thread Stevko
I've been doing the same research deep dive and came up with this
nugget of code

   final TimeZoneConstants timeZoneConstants =
GWT.create(TimeZoneConstants.class);
TimeZone usPacific = TimeZone.createTimeZone(
 
TimeZoneInfo.buildTimeZoneData(timeZoneConstants.americaLosAngeles()));
Date dt = new Date(2007 - 1900, 7 - 1, 1);
assertTrue(usPacific.isDaylightTime(dt));
assertEquals("PDT", usPacific.getShortName(dt));
assertEquals("Pacific Daylight Time", usPacific.getLongName(dt));

from 
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/test/com/google/gwt/i18n/client/TimeZoneTest.java?r=3655

On Sep 20, 7:35 am, "Palo G."  wrote:
> Hi, I found this discussion after hours of thinking and googling same
> problem. We have simple problem that turned out to be a huge problem
> in GWT. There is no tool that can get client time zone and return that
> bloodyTimeZoneInfoinstance.
>
> So I have to ask if you had found some solution or how did you end up?
>
> thanks
>
> On 26 srp, 11:48, mariyan nenchev  wrote:
>
>
>
>
>
>
>
> > I don't want to make mappings manually.
>
> > It's very funny that such thing can't be done with gwt.
>
> > On Thu, Aug 25, 2011 at 11:05 PM, Sydney  wrote:
> > > If you want to use GMT+1 timezone style I guess you need to do some kind 
> > > of
> > > mapping.
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Google Web Toolkit" group.
> > > To view this discussion on the web visit
> > >https://groups.google.com/d/msg/google-web-toolkit/-/VadH7rLAvHUJ.
>
> > > To post to this group, send email to google-web-toolkit@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com.
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.

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



what is xml 'is' attribute

2016-04-04 Thread Stevko
While using the vaadin polymer showcase to seed my prototype, I've come 
across an unfamiliar uibinder construct: is='xxx'
Is there documentation anywhere on this attribute?  Searching for "is" 
attribute is impossible.

Some excerpts showing the attribute from
http://vaadin.github.io/gwt-polymer-elements/demo/#iron/IronInputSample



input[is=iron-input] {}








-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GST 2.8 Keyboard Handler Question

2017-02-01 Thread Stevko
I found this posting on SO that seems to cover your use case to cancel the 
event bubbling in js

http://stackoverflow.com/q/214262/177567

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


how to specify the id to a element with a ui:field using UI binder?

2012-03-19 Thread Stevko
I am using   within my UI Binder ui.xml files
along with the debugId
I also use  to identify dynamic elements
available to the associated View.

Adding both yields this error message -- Cannot declare id and
ui:field on the same element Element(:26)
Is there a way work around?

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



Re: GWT - Send a message from the server to the client?

2013-10-28 Thread Stevko
There are several ways I've managed to do push messages to the client:

If you are using appengine, research the Channel api
https://developers.google.com/appengine/docs/java/channel/

If you have access to an MQ server (like ActiveMQ), consider using a 
JMS/STOMP/WebSocket protocol stack
http://blog.furiousbob.com/2011/03/20/receiving-jms-gwt/

as per Timothy, gwteventservice using the Comet method of pushing messages 
to the client.

I've refactored MVP applications designed to use GWT RPC, consolidated the 
Async callback code into a bona fide Model layer injected into the 
presenter layer, and then replaced the Model layer with an async protocol 
stack that communicates via jms/websocket to push updates to the 
presenter/client component.


On Monday, 28 October 2013 14:01:27 UTC-7, Joshua Godi wrote:
>
> Good afternoon,
>
> I was curious how I would properly send a message from the server to the 
> client? Here is my scenario:
>
> Client A - Modifies User1 from the GUI and pushes the data to the server
> Client B - Is looking at User1 and needs to be notified that there are 
> changes that have been made
>
> So the server needs to send a message to all clients that the user has 
> changed.
>
> What is the best way to solve this?
>
> Thanks,
> Joshua
>

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


how to define CSSResource for a hover pseudo selector

2014-07-29 Thread Stevko
I am having trouble defining the CssResource interface for the :hover 
"pseudo selector" on a class.

.foo { ... }
.foo:hover {
...
}

I tried using the InterfaceGenerator but it only spits out 

interface Hover extends CssResource {

  String foo();
}

with or without the base selector.

I need this to remove the hover style from a widget.

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


Re: image manipulation in core GWT

2012-12-21 Thread Stevko
Have you seen this simple slideshow from IO2011 written entirely in html/css
http://html5slides.googlecode.com/svn/trunk/template/index.html#1
Write out html using GWT and letting CSS do the heavy lifting.


On Friday, 21 December 2012 13:48:16 UTC-8, Aldin wrote:
>
> Hi guys,
>
> Is there widget in GWT for achieving slide show like this one: slide 
> show  
>
> Any ideas how to implementing this slide show?
>
> Thanks
>

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



Re: Printing from GWT -- how to?

2012-06-01 Thread Stevko
This thread had a very nice class that prints any panel, div, etc
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/eea48bafbe8eed63?pli=1


On Jun 1, 11:59 am, Rob Tanner  wrote:
> I have a project where the request has been made that I add a print button
> to several different panels so that users can print them out for their
> records.  I know how to print a page in JavaScript, but in this case all I
> want to print is the specific panel and nothing else.  How do I set that up
> in GWT?
>
> Thanks,
>
> Rob Tanner
> Linfield College

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



i18n property file editor

2020-05-19 Thread Stevko
Back in the day, google had a nifty editor for i18n property files hosted 
at translate.google.com.
They seemed to have culled it or something.
Did it get relocated and have a life elsewhere?
Perhaps there another variant?
--Andy

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/5ab4d4ab-4d33-4a83-9960-92baef751be2%40googlegroups.com.


Re: Receive xml file after authentication

2010-09-18 Thread andy stevko
Let me get this straight, you have a GWT client/ tomcat server site that has
functionality you need to access from within a desktop application. As you
say, there are a number of ways to get then connected. You don't say what
the desktop app is written in, so I'm assuming its java based.

Combining PHP and GWT from different sites is relatively straight forward
with javascript callbacks and session cookies.
An example of this is using the Facebook XFBML  within my
GWT-based application.
http://developers.facebook.com/docs/reference/plugins/login
After the user click thru the authentication pages, it triggers my callback
function so that I can react to it myself.
As a side effect, it also dumps a cookie into the browser.

Another approach is the figure out how to emulate the GWT RPC from within
your desktop application.
I tried to research this about a year ago and came up only with this nugget.
http://www.gdevelop.com/w/blog/2010/01/10/testing-gwt-rpc-services/
Its a way to write GWT RPC test harnesses from pure standalone java which
then can be called from something like CruiseControl. I went with the simple
XML http post servlet method instead so I'm not sure what state this
solution is in.

Lastly another option is to use JSONP to communicate between the three
parts.

Good  luck,
--Andy

On Thu, Sep 16, 2010 at 8:48 AM, kkpirri wrote:

> Hi,
>
> Need to communicate a desktop application with my GWT site in a tomcat
> server. The desktop application creates a XML document and the
> authentication info must be sent to the GWT site. The authentication
> must be done automatically; the user and the password are stored on
> the client machine and the file must be send after authentication or
> with the authentication package. I thought on using digest
> authentication or send the XML using SOAP, but I don't know how this
> can be done with GWT. I also thought on combining PHP (for
> authentication and file receiving) and the GWT site with java back-
> end, but I don't know how to share the session variables and cookies
> between the two platforms.
>
> I would appreciate your help and any other suggestion you can give me.
>
> Thank you very much
>
> --
> 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: Parameters in gwt.xml File?

2010-09-18 Thread andy stevko
Not sure how to do the gwt.xml parameter stuff but I did come up with a way
to vary constants.
Check out my stackoverflow posting for a recipe
http://stackoverflow.com/questions/1682835/how-to-vary-constants-based-on-deployment-instance


On Sat, Sep 18, 2010 at 9:09 PM, Evan Ruff  wrote:

> Hey guys,
>
> I have a generator that I'd like to configure with some parameters in
> the gwt.xml file. Is there any way I can do that? If so, how does one
> go about defining them in the gwt.xml and then looking up the
> parameter in the generator?
>
> If it isn't possible, is there a good way to do it otherwise?
>
> Thanks!
>
> Evan
>
> --
> 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: Sending mails from GWT-App

2010-09-28 Thread andy stevko
Ahh, so you are trying to use the java.mail api within GWT - that is what
confused everyone...

Perhaps you should read the reference documentation on JRE whitelist
http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html



On Tue, Sep 28, 2010 at 8:37 AM, newnoise wrote:

> Ok i got that.
>
> Now my App tells me  that the API package 'mail' or call 'Send()' was
> not found. ...
> Did I just forget to inherit something, or is it not possible to use
> mail command with GWT?
>
> Thanks!
>
>
>
> On 28 Sep., 15:46, Vladi S  wrote:
> > > > This isn't a GET issue
> >
> > I guessPaul ment "GWT issue" . And yes, your java code is broken and
> > GWT group ist actually not the right place for this questions.
> >
> > > > > I'm trying to send an email from my GWT-App. I found the following
> >
> > The code for sending an email will have to be on the server side
> > as you want to use java mail.  (are you aware of this ?)
> >
> > > protected void sendMessage(String smtpHost, String fromAddress, String
> > > ...
> > > props.put("mail.smtp.host", smtpHost);
> > > > I was wondering ... what to enter at String smtpHost, as I have to
> enter my
> > > > Smtp-Host at props.put() again ...
> >
> > you don't have to enter this one again.
> >
> > Dear newnoise, please google a little bit more for the code, as it
> > will surely provide you a solution.
>
> --
> 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: Multiple RPC from same page gives Error 500

2010-09-28 Thread andy stevko
FWIW, your RPC calls just happen to use the HTTP protocol.
500 responses are not unusual (especially most recently).

If its immediate then you've pushing the limit of the browser's capacity;
at 30 seconds, its a harddeadline exception.

The browser is single threaded and has a limited number of open connections
to the same host (2 or 4 I think). It is relatively easy for a click happy
user to overwhelm a long duration RPC handler.
Using push/pull libraries like Comet or Facebook take up capacity too.

I've successfully used Microsoft's Fiddler proxy and HttpFox to trace
communication request/response issues both locally and on production
instances.
I suggest building in a simple retry solution and make sure your RPCs are
discrete.



On Mon, Sep 27, 2010 at 10:19 AM, GWTViju  wrote:

> e are using GWT 2.0.3 and Spring in the backend. Facing the below
> issue in IE(6,7,8) as well as Firefox. A proxy is placed between the
> Browser and the Application Server.
>
> In our application, we make multiple RPC calls to display the page.
> The scenario is described below
>
> RPC A and RPC B is executed when a menu is clicked. RPC A and RPC B
> are triggered in parallel.
> When RPC A completes successfully, RPC C call is triggered.
> When RPC B completes successfully,  RPC D call is triggered.
>
> The RPC C and RPC D are not triggered in the onSuccess method. The
> onSuccess transfers command to the browser, browser does some display
> work and then fires off the associated RPC..
> The UI event then fires the RPC C and RPC D to the server.
>
> In some cases (not always), I get 'Error : 500:Server response is
> invalid. Please re-try or contact admin.'
>
> I added some debug statements in my servlet and found that in such
> error scenarios, the payload is returned as Empty.
> The content length however gives a valid number like 199 or 223.
> From the browser, I checked the request and the request has the
> expected payload.
>
> 1. Is there an issue in chaining the RPC invocations to the server ,
> in my case, 4 RPC calls are made.
>
> 2. Has anyone seen a case in which the RPC request sent from the
> browser is lost before it reaches the server?
>
>
> Any help would be useful.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-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: Multiple RPC from same page gives Error 500

2010-09-28 Thread andy stevko
I've only seen the framework optimize static resources.
I'm using the GWT-Dispatch library which basically sequences a single RPC
call many times per second (peak) to drive an appengine instance. I've had
more luck sequencing actions rather than making multiple concurrent calls
due to database conflicts and browser limitations.

Can you reproduce this without the proxy setup? locally?


On Tue, Sep 28, 2010 at 12:26 PM, bijuv v  wrote:

> Dear Andy,
> Thanks much for the response.
>
> We get the 500 error immediately from the server. The payload is
> coming as blank (empty value or "")  in the RemoteServiceServlet.
> Hence the GWT code is intentionally throwing the 500 error. The point
> that I cant understand is why the payload is not reaching the server
> though it has dispatched from the browser? I could see the request
> details in the Firebug (Netspeed section)
>
> One more point is that , if I restrict the number of connections to a
> single host as 1 (in firefox using about:config), the 500 error doesnt
> appear as all RPC requests to the server are then sequenced. Well this
> also doesnt give me a clue as to why simultaneous requests messes up
> the payload when it reaches the server.
>
> Retry may be a solution but I feel that its a workaround (last option).
>
> Wondering if GWT optimizes in some way like if there are 4 RPC's sent
> to same service in backend, does GWT merge the payload into one
> request??
>
> Thanks
> Viju
>
> FWIW, your RPC calls just happen to use the HTTP protocol.
> 500 responses are not unusual (especially most recently).
>
> If its immediate then you've pushing the limit of the browser's capacity;
> at 30 seconds, its a harddeadline exception.
>
> The browser is single threaded and has a limited number of open
> connections to the same host (2 or 4 I think). It is relatively easy
> for a click happy user to overwhelm a long duration RPC handler.
> Using push/pull libraries like Comet or Facebook take up capacity too.
> Viju: We are not using the Comet or any of the push technolgies in the
> application
>
> I've successfully used Microsoft's Fiddler proxy and HttpFox to trace
> communication request/response issues both locally and on production
> instances.
> I suggest building in a simple retry solution and make sure your RPCs
> are discrete.
>
> On Tue, Sep 28, 2010 at 9:00 PM, andy stevko 
> wrote:
> > FWIW, your RPC calls just happen to use the HTTP protocol.
> > 500 responses are not unusual (especially most recently).
> >
> > If its immediate then you've pushing the limit of the browser's capacity;
> > at 30 seconds, its a harddeadline exception.
> >
> > The browser is single threaded and has a limited number of open
> connections
> > to the same host (2 or 4 I think). It is relatively easy for a click
> happy
> > user to overwhelm a long duration RPC handler.
> > Using push/pull libraries like Comet or Facebook take up capacity too.
> >
> > I've successfully used Microsoft's Fiddler proxy and HttpFox to trace
> > communication request/response issues both locally and on production
> > instances.
> > I suggest building in a simple retry solution and make sure your RPCs are
> > discrete.
> >
> >
> >
> > On Mon, Sep 27, 2010 at 10:19 AM, GWTViju 
> wrote:
> >>
> >> e are using GWT 2.0.3 and Spring in the backend. Facing the below
> >> issue in IE(6,7,8) as well as Firefox. A proxy is placed between the
> >> Browser and the Application Server.
> >>
> >> In our application, we make multiple RPC calls to display the page.
> >> The scenario is described below
> >>
> >> RPC A and RPC B is executed when a menu is clicked. RPC A and RPC B
> >> are triggered in parallel.
> >> When RPC A completes successfully, RPC C call is triggered.
> >> When RPC B completes successfully,  RPC D call is triggered.
> >>
> >> The RPC C and RPC D are not triggered in the onSuccess method. The
> >> onSuccess transfers command to the browser, browser does some display
> >> work and then fires off the associated RPC..
> >> The UI event then fires the RPC C and RPC D to the server.
> >>
> >> In some cases (not always), I get 'Error : 500:Server response is
> >> invalid. Please re-try or contact admin.'
> >>
> >> I added some debug statements in my servlet and found that in such
> >> error scenarios, the payload is returned as Empty.
> >> The content length however gives a valid number like 199 or 223.
> >> From the browser, I checked

Re: Save Page As

2010-10-01 Thread andy stevko
Try the firefox add-on "ScrapBook Plus".
It'll do saving and altering of the urls etc.

https://addons.mozilla.org/en-US/firefox/addon/8186/

On Fri, Oct 1, 2010 at 7:26 PM, Jeff Chimene  wrote:

>
>
> On Fri, Oct 1, 2010 at 7:05 PM, Greg Dougherty  > wrote:
>
>> Well, as a user there's been a lot of times when I wanted to save the
>> contents of a JavaScript generated page (such as when the web page
>> wants to give me something I can print out, but not something I can
>> save to disk and use later).
>>
>> But, as a Developer, I'd like to not have to hand-generate HTML in
>> order to save the contents of my page.
>>
>
> That's generally what you have to do. The issue is that all URLs must be
> converted to a local device reference, and the images downloaded.
>
>
>> Greg
>>
>> On Sep 28, 10:44 pm, mP  wrote:
>> > Is this a developer question or for the convenience of regular users.
>> > For regular users i cant quite see how this is probably use to them.
>> > They are never going to get a complete snapshot that is of any use.
>> > However if you want to get a snapshot of the DOM as HTML there are
>> > plenty of plugins for FireFox - google for "ViewPageSource" etc.
>> >
>> > On Sep 29, 12:15 am, Greg Dougherty 
>> > wrote:
>> >
>> > > Is there any way to make aGWTApp so that when the User selects "Save
>> > >PageAs" (or their browser's equivalent), it actually saves something
>> > > useful?  Such as, oh, the contents of thepage?
>> >
>> > > 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.
>>
>>
>  --
> 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- chat

2010-10-04 Thread andy stevko
Hello Yudji,

I believe you are referring to the application model call Comet
http://en.wikipedia.org/wiki/Comet_(programming)

There is a Comet implementation for the Google Web Toolkit
http://code.google.com/p/gwt-comet/



On Sun, Oct 3, 2010 at 6:48 PM, Yudji  wrote:

>
>
> I have created a simple client/server app
> that does nothing but sends a string from client to server.
>
> Now I would like to expand it so the server can send messages to all
> clients. How can this be done?
>
> --
> 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: REQUEST BUILDER + JSON OBJECT + PHP SERVER SIDE LANGUAGE

2010-10-06 Thread andy stevko
Did you try

public void *setRequestData*(java.lang.String requestData)



On Wed, Oct 6, 2010 at 1:58 PM, Alessio unibs  wrote:

> Hi, i have problem by using gwt requestbuilder to make http request
> with json object in body messages. In the server side code, i use php,
> but when i try to access request's data, the $_POST variable is empty.
> I post the code below:
>
> String path = GWT.getHostPageBaseURL() + "JsonObjectReceiver.php";
>
>RequestBuilder trasmettiJSON = new
> RequestBuilder(RequestBuilder.POST, URL.encode(path));
>trasmettiJSON.setHeader("Content-Type",
> "application/json");
>
>//L'evento contiene due oggetti da tenere in
> considerazione
>PrenotazioneJSON pj =
> event.getData(Costanti.OGGETTI_DA_INVIARE);
>final WCard corrente =
> event.getData(Costanti.CARD_CORRENTE_PASSO3);
>
>try{
>@SuppressWarnings("unused")
>Request req =
> trasmettiJSON.sendRequest(pj.getInfo_generali(), new
> RequestCallback() {
>
>@Override
>public void
> onResponseReceived(Request request, Response
> response) {
>if (200 ==
> response.getStatusCode()) {
>
>AppEvent xmlCorrect
> = new AppEvent(StartEvents.xmlWritten);
>
>  xmlCorrect.setData(Costanti.CARD_CORRENTE_PASSO3, corrente);
>
>
>  xmlCorrect.setData("status", response.getText());
>
>  forwardToView(passo3View, xmlCorrect);
>  } else {
>   // displayError("Couldn't
> retrieve JSON (" +
> response.getStatusText()+ ")", corrente);
>  }
>
>
>}
>
>@Override
>public void onError(Request request,
> Throwable exception) {
>//displayError("Couldn't
> retrieve JSON");
>
>
>}
>});
>
>}catch(RequestException e) {
>  //displayError("Couldn't retrieve JSON");
> }
>
> CAN SOMEONE HELP ME PLEASE? I'M NEW TO GWT, SO I HAVE NOT A LOT OF
> EXPERIENCE.
> THANKS IN ADVANCE FOR ANSWERS
>
> ALESSIO
>
> --
> 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 error

2010-10-12 Thread andy stevko
when onModuleLoad() is called the system is initializing everything.


On Tue, Oct 12, 2010 at 10:53 AM, Yudji  wrote:

>
> I created the class :
>
> public class Game{
> public static  int quantidadeDeUsuario;
>
> public void somarQuantidadeUsuario(){
>
>quantidadeUsuario ++;
>   System.out.println(quantidadeUsuario);
>
>
>}
>
> }
>
> ---
>
> gwt but this method there will always print "1"
>
> public void onModuleLoad() {
>CartasJogo cartasJogo = new CartasJogo();
>cartasJogo.somarQuantidadeUsuario();
> .
> .
> .
>
> }
>
> Why happen 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.



Re: Type of data in fields

2010-10-17 Thread A. Stevko
Which UI control and API are you referring to?
I cannot seem to find a setValidator() method in the
*com.google.gwt.user.client.ui.TextBox
*class heirarchy.

You might want to use the
Interface HasValueChangeHandlers
to add a handler that will be able to parse it via Integer.getInteger(
myControl.getValue() )


On Sat, Oct 16, 2010 at 4:45 AM, Diego Venuzka  wrote:

> Anyone?
>
> 2010/10/14, Diego Venuzka :
> > Hello!
> > Somebody know how i can make a test in field, to know if the data is
> string
> > or integer? i'm tryng to use the setValidator(), but i don't know how i
> set
> > the parameters someone can help this rookie? =P
> >
> > Thanks!!
> >
> > --
> > Diego Venuzka
> >
>
>
> --
> Diego Venuzka
>
> --
> 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: Type of data in fields

2010-10-19 Thread A. Stevko
Every control has a number of xxxHandlers interfaces that you can hang code
off of.
Try something like this using old style (pre-binder) code

// create a text box & add it to a Panel
myTextBox = new TextBox();
// add a handler to the text box control
myTextBox.addValueChangeHandler( new ValueChangeHandler() {

@Override
public void onValueChange(ValueChangeEvent event) {
Boolean isChar = (null == Integer.getInteger( myTextBox.getValue() ));
}
});



On Tue, Oct 19, 2010 at 12:40 PM, Diego Venuzka  wrote:

> but how i do this ?
>
> 2010/10/17, A. Stevko :
> > Which UI control and API are you referring to?
> > I cannot seem to find a setValidator() method in the
> > *com.google.gwt.user.client.ui.TextBox
> > *class heirarchy.
> >
> > You might want to use the
> > Interface HasValueChangeHandlers
> > to add a handler that will be able to parse it via Integer.getInteger(
> > myControl.getValue() )
> >
> >
> > On Sat, Oct 16, 2010 at 4:45 AM, Diego Venuzka 
> wrote:
> >
> >> Anyone?
> >>
> >> 2010/10/14, Diego Venuzka :
> >> > Hello!
> >> > Somebody know how i can make a test in field, to know if the data is
> >> string
> >> > or integer? i'm tryng to use the setValidator(), but i don't know how
> i
> >> set
> >> > the parameters someone can help this rookie? =P
> >> >
> >> > Thanks!!
> >> >
> >> > --
> >> > Diego Venuzka
> >> >
> >>
> >>
> >> --
> >> Diego Venuzka
> >>
> >> --
> >> 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-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.
> >
> >
>
>
> --
> Diego Venuzka
>
> --
> 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: Type of data in fields

2010-10-19 Thread A. Stevko
Yes, your custom onValueChange() code will be called when the value of the
textbox changes.
Do with it what you will...

If that doesn't quite work for your purposes, there is a handler for most UI
events like
addDoubleClickHandler( new DoubleClickHandler() onDoubleClick()... )

They are listed at
http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/event/shared/EventHandler.html



On Tue, Oct 19, 2010 at 1:29 PM, Diego Venuzka  wrote:

> hmm, i understand that part, but how i put the values? inside the
> OnValueChange?
> Regards! :D
>
> 2010/10/19 A. Stevko 
>
>> Every control has a number of xxxHandlers interfaces that you can hang
>> code off of.
>> Try something like this using old style (pre-binder) code
>>
>> // create a text box & add it to a Panel
>> myTextBox = new TextBox();
>> // add a handler to the text box control
>> myTextBox.addValueChangeHandler( new ValueChangeHandler() {
>>
>> @Override
>>  public void onValueChange(ValueChangeEvent event) {
>> Boolean isChar = (null == Integer.getInteger( myTextBox.getValue() ));
>>  }
>> });
>>
>>
>>
>> On Tue, Oct 19, 2010 at 12:40 PM, Diego Venuzka wrote:
>>
>>> but how i do this ?
>>>
>>> 2010/10/17, A. Stevko :
>>> > Which UI control and API are you referring to?
>>> > I cannot seem to find a setValidator() method in the
>>> > *com.google.gwt.user.client.ui.TextBox
>>> > *class heirarchy.
>>> >
>>> > You might want to use the
>>> > Interface HasValueChangeHandlers
>>> > to add a handler that will be able to parse it via Integer.getInteger(
>>> > myControl.getValue() )
>>> >
>>> >
>>> > On Sat, Oct 16, 2010 at 4:45 AM, Diego Venuzka 
>>> wrote:
>>> >
>>> >> Anyone?
>>> >>
>>> >> 2010/10/14, Diego Venuzka :
>>> >> > Hello!
>>> >> > Somebody know how i can make a test in field, to know if the data is
>>> >> string
>>> >> > or integer? i'm tryng to use the setValidator(), but i don't know
>>> how i
>>> >> set
>>> >> > the parameters someone can help this rookie? =P
>>> >> >
>>> >> > Thanks!!
>>> >> >
>>> >> > --
>>> >> > Diego Venuzka
>>> >> >
>>> >>
>>> >>
>>> >> --
>>> >> Diego Venuzka
>>> >>
>>> >> --
>>> >> 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.
>>> >
>>> >
>>>
>>>
>>> --
>>> Diego Venuzka
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Google Web Toolkit" group.
>>> To post to this group, send email to google-web-toolkit@googlegroups.com
>>> .
>>> To unsubscribe from this group, send email to
>>> google-web-toolkit+unsubscr...@googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>
>>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-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.
>>
>
>
>
> --
> Diego Venuzka
>
> --
> 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: Change default browser in dev mode

2010-10-20 Thread A. Stevko
Not sure which IDE you are using but, using elicpse, the development mode
box that lists the urls states:

For your convenience, here are some URLs that you may wish to view in
> development mode. Simply copy/paste a url below into any supported browser.


Also, in eclipse, under the menu Window  | Web Browser, you can choose which
browser will open.



On Wed, Oct 20, 2010 at 2:49 AM, tombs  wrote:

> Is there any way to change the default web browser used when running a
> GWT web app in dev mode? My researches so far have failed to find any
> way.
>
> Currently dev mode runs the browser I have set as default on my system
> (Windows XP) which is a reasonable thing to do, but I need GWT to run
> a different browser.
>
> If this is not possible, it is possible to stop dev mode from
> automatically launching the browser? If so I can cut & paste the URL
> from the dev mode window to my desired browser without the annoyance
> and delay of the default browser first popping up and complaining
> about the GWT plug-in not being available. (Since it is FF4, there
> truly is no GWT plug-in available.)
>
> --
> 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: Change default browser in dev mode

2010-10-21 Thread A. Stevko
ahh, so you are using netbeans. of course eclipse tips will not help you.
a quick search of stackoverflow might reveal a solution for you...
http://stackoverflow.com/questions/856108/how-to-change-settings-in-netbeans-6-5-to-run-web-application-in-not-default-brow

On Wed, Oct 20, 2010 at 10:32 PM, magic  wrote:

> I am using NetBeans. However the browser is launched by the GWT
> DevMode gizmo which picks the system default browser. So I don't
> understand what Eclipse's Window | Web Browser menu item would have to
> do with it. Please enlighten me.
>
> On Oct 21, 6:22 am, "A. Stevko"  wrote:
> >
> > Also, in eclipse, under the menu Window  | Web Browser, you can choose
> which
> > browser will open.
> >
>
> --
> 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: Newbie questions

2010-10-25 Thread A. Stevko
re: c) what are the best sites for learning ? ie video tutorials etc


Check out the Google IO YouTube channel for vids on popular and advaced
topics.
http://www.youtube.com/user/GoogleDevelopers
and
http://www.youtube.com/results?search_query=google+web+toolkit+2010&aq=7m



On Mon, Oct 25, 2010 at 12:27 AM, kuriaNdungu wrote:

> Hello guys and gals.
> Currently i'm learning Java and i'm really excited about GWT etc. my
> background is vb6 and vba , so i've never actually written any real OO
> code. I'm finding it a little challenging thinking of everything as
> objects after many years as a procedural coder.
>
> Some background...
> I have a small business that i've just started. its a meat shop and
> i'd like to take inventory and update days sales via the web.The usual
> process is a whole carcass will come in and get weighed then cut into
> different cuts. The cuts are sold in Kilos or pieces if its chicken or
> fish.
> broad intent
> I'm thinking of a sort for rich web client app using gears for local
> storage and syncing whenever the net is available.
>
> The questions
> a) as a beginner, is this project realistic? ( would i be biting off
> too much?)
> b) For the seasoned guys and gals out there, whats are the tried and
> tested steps you take when starting something similar?
> c) what are the best sites for learning ? ie video tutorials etc
>
> 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.
>
>

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



override method then calling super yields infinite loop

2010-11-03 Thread A. Stevko
Has anyone else seen this situation happen to them?

I've got a class that extends PopupPanel and overrides the show() method.

class MyPopup extends PopupPanel {

 

/**
 * @see com.google.gwt.user.client.ui.PopupPanel#show()
 */
@Override
public void show() {
Log.info( this.getClass().getName() + ".show()" );
/*** custom initialization done here ***/
super.show();
}

}

When I create an instance and call show, it goes into an infinite loop.
Walking the code in the debugger shows super.show() calling MyPopup.show()
rather than PopupPanel.show()

I'm using GWT 2.0.4

-- 
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 JavaDoc failures KeyPress v. KeyDown

2010-12-07 Thread A. Stevko
Greg - I admire your position on the quality of documentation.
IMO, a measure of a sw engineer is not how much arcana he knows but rather
knowing where to find it.
Javadocs have long been a great source for the many of the details that I
face daily although they typically suck for usability.

A question to the group - Is it possible to crowd source the GWT and GAE
javadocs?
If we can't get to the source to augment the documentation, how about some
kind of sister wiki site that can be the proving ground for training and
usability improvements while also providing a very specific location to
discuss API meta issues.

The first thought on an approach to this is to have the javadoc template
automatically write external links into a google site or similar.

--Andy Stevko


On Tue, Dec 7, 2010 at 12:30 PM, Jeff Schwartz wrote:

> Good luck!
>
>
>
> On Tue, Dec 7, 2010 at 3:08 PM, Greg Dougherty  > wrote:
>
>> Hi Jeff,
>>
>> If it ever comes to be the situation that the only way I can do
>> programming is on the web, then I'll waste the time to learn the
>> current iteration of web programming.  But life is currently not so
>> dim or dreary, and doesn't look to be that way any time soon.  (And if
>> I am going to take the time to "read, read, read" on new programming
>> ideas, it'll be on the Android (where there's a decent job market, and
>> worthwhile development tools) or the iPhone (I've got one iPhone app
>> out, but I'd like to learn more networking, and some of the newer
>> technologies, not on a constantly changing "standards" body heavily
>> influenced by Microsoft and Internet Explorer.)  I have a finite
>> supply of "learn" time, and I have thigns that, for me, are far better
>> ways to spend it than reading W3C documents.
>>
>> Let me put it another way: I have absolutely NO desire to be a "master
>> Web applications developer".  If I wanted to be one of those, I
>> wouldn't be using GWT.  I'd be rolling my own.
>>
>> I took a look at SpringToolsSuite and Spring Roo.  Their documentation
>> sucks, their tutorials are out of date, their integration with Eclipse
>> is poor, and the support on the forums is weak.  So, since I AM a good
>> SQL developer, I said the heck with that, and rolled my own for my
>> current project.  And do not regret the choice at all.  The difference
>> is that I find SQL a lot more interesting than JavaScript.
>>
>> Look, I'm glad that there are people out there who WANT to dig into
>> the arcana of web programming.  I'm not one of them.  I'm someone who
>> wants to solve other problems.  It was my impression that GWT exists
>> to serve the people who want to solve those other problems, and don't
>> want to have to dig in to that web BS (like worrying about IE vs.
>> FF).  If that IS GWT's purpose, then their documentation sucks, and is
>> not in line with their purpose.
>>
>> If that ISN'T GWTs purpose, what is?
>>
>> Greg
>>
>> On Dec 7, 11:24 am, Jeff Schwartz  wrote:
>> > Hi Greg,
>> >
>> > I have been in IT for a very long time. You see, I am what the youngins
>> > sometimes refer to as an ol' fart :). As a matter of fact, I've been a
>> > developer in one form or another for so long that everything else prior
>> to
>> > that seems to me to be prehistory - a vague sense of something there but
>> not
>> > having much substance (oh GOD, help me lol).
>> >
>> > My point is that as technologies advance I try to stay current and for
>> those
>> > technologies that I have or will chose to base a career on I've tried to
>> > master them to the best of my ability. That means giving up lots of
>> personal
>> > time to read up on everything I can get my hands on. Why the story?
>> Because
>> > I am trying to convey to you that there are no shortcuts or free
>> lunches. If
>> > you want to be a master Web applications developer then you will have to
>> > read and learn everything you can about Web development that you can get
>> > your hands on. It is that simple, I am afraid. The benefits are obvious,
>> as
>> > the current limitations you perceive there to be in the GWT documents
>> serve
>> > to exemplify.
>> >
>> > I'm afraid that comparing Google to other companies, even if only for
>> their
>> > quality of documentation, isn't going to be very productive and will
>> just
>> > serve to frustrate you even more. Take the time and go 

Re: com.google.appengine can't be resolved

2010-12-20 Thread A. Stevko
The reason your class instances are not available outside of the app engine
jvm is that they have been altered/instrumented by the persistence manager.
See step 3 of this tutorial
http://www.datanucleus.org/products/accessplatform_1_0/guides/jdo/tutorial.html

There are several approaches to designing around this requirement.
For pure java - create Data Transfer Objects that match your persistent
classses. I do this because it provides fine control of the externally
visible model and not expose the entire internal model.
Another approach is to use Objectify
http://code.google.com/p/objectify-appengine/
Other people like Gilead http://sourceforge.net/projects/gilead/


On Mon, Dec 20, 2010 at 12:29 AM, Ahmed Shoeib <
ahmedelsayed.sho...@gmail.com> wrote:

> now i want to use this bean class outside server package
> but i face problem during compilation with ( com.google.appengine )
> that can't be resolved.
>
> @PersistenceCapable(identityType = IdentityType.APPLICATION,
> detachable = "true")
> public class HTNews {
>
>@PrimaryKey
>@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
>private Key id;
>@Persistent
>private String name;
>@Persistent
>private String linkUrl;
>@Persistent
>private BlobKey imageKey;
> .
>
>
> is there any way to do that ??
> please 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.
>
>

-- 
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.appengine can't be resolved

2010-12-20 Thread A. Stevko
Its not just BlobKey. Its also Key and every c
om.google.appengine.api.datastore.* type.

David C blogged his experience with this situation
http://turbomanage.wordpress.com/2009/10/15/gwt-gae-and-the-balm-of-gilead/

This is a comparison between the various technologies.
http://stackoverflow.com/questions/2394280/looking-for-opinions-on-using-objectify-appengine-instead-of-jdo-in-gae-j


On Mon, Dec 20, 2010 at 1:09 PM, Ahmed Shoeib  wrote:

> the Error in using BlobKey that want to import com.google.appengine
>
> how can i solve it ?
>
> On Dec 20, 10:50 pm, "A. Stevko"  wrote:
> > The reason your class instances are not available outside of the app
> engine
> > jvm is that they have been altered/instrumented by the persistence
> manager.
> > See step 3 of this tutorialhttp://
> www.datanucleus.org/products/accessplatform_1_0/guides/jdo/tut...
> > <http://www.datanucleus.org/products/accessplatform_1_0/guides/jdo/tut..
> .>
> > There are several approaches to designing around this requirement.
> > For pure java - create Data Transfer Objects that match your persistent
> > classses. I do this because it provides fine control of the externally
> > visible model and not expose the entire internal model.
> > Another approach is to use Objectifyhttp://
> code.google.com/p/objectify-appengine/
> > Other people like Gileadhttp://sourceforge.net/projects/gilead/
> >
> > On Mon, Dec 20, 2010 at 12:29 AM, Ahmed Shoeib <
> >
> > ahmedelsayed.sho...@gmail.com> wrote:
> > > now i want to use this bean class outside server package
> > > but i face problem during compilation with ( com.google.appengine )
> > > that can't be resolved.
> >
> > > @PersistenceCapable(identityType = IdentityType.APPLICATION,
> > > detachable = "true")
> > > public class HTNews {
> >
> > >@PrimaryKey
> > >@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
> > >private Key id;
> > >@Persistent
> > >private String name;
> > >@Persistent
> > >private String linkUrl;
> > >@Persistent
> > >private BlobKey imageKey;
> > > .
> >
> > > is there any way to do that ??
> > > please 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.
>
> --
> 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: Is there a way to get have GWT not compile a method into JS?

2010-12-21 Thread A. Stevko
Are you referring to the   tag for overriding one
implementation with another?


On Tue, Dec 21, 2010 at 9:41 AM, Mauro Bertapelle <
mauro.bertape...@gmail.com> wrote:

> In the  tag of the module XML file you can specify the
> subpackage associated with the classes you want GWT to compile.
> You can even exclude some particular classes using a pattern based
> filter:
>
> http://code.google.com/intl/it-IT/webtoolkit/doc/latest/DevGuideOrganizingProjects.html#DevGuidePathFiltering
>
> --
> 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: Trying to split deserialization process after RPC call

2010-12-21 Thread A. Stevko
editor/
>> > Mon livre sur GWT : http://axeiya.com/index.php/ouvrage-gwt.html
>> >
>> > --
>> > 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
>> http://googlewebtoolkit.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.
>>
>>
>
>
> --
> Damien Picard
> Axeiya Services : http://axeiya.com/
> gwt-ckeditor : http://code.google.com/p/gwt-ckeditor/
> Mon livre sur GWT : http://axeiya.com/index.php/ouvrage-gwt.html
>
>  --
> 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: Is there a way to get have GWT not compile a method into JS?

2010-12-21 Thread A. Stevko
I agree- if (!GWT.isClient()) {} is definitely going to be optimized out of
the js.

Even if you could mask out an entire method, how would you handle the server
side only includes needed to make it interesting?


On Tue, Dec 21, 2010 at 10:43 AM, a...@mechnicality.com <
a...@mechnicality.com> wrote:

> Sorry for jumping in, but you could use:
>
> public void yourMethod(...) {
>   if (!GWT.isClient()) {
>everything in your method.
>}
>
> }
>
> The complier should then ignore everything inside the conditional.
>
> However, it seems a bit of a kludge to exclude the whole method. Another
> option is sub-classing and have a server-side version which is a sub-class
> of your shared class - I've done that before and IMHO its a bit more
> elegant.
>
> HTH
>
> Alan
>
>
>
>
>
> On 12/21/2010 10:36 AM, kevin wrote:
>
>> I was hoping to do it within a class.
>>
>> For instance, say have method a() only available on the server.
>>
>>
>> On Dec 21, 12:41 pm, Mauro Bertapelle
>> wrote:
>>
>>> In the  tag of the module XML file you can specify the
>>> subpackage associated with the classes you want GWT to compile.
>>> You can even exclude some particular classes using a pattern based
>>> filter:
>>> http://code.google.com/intl/it-IT/webtoolkit/doc/latest/DevGuideOrgan...
>>>
>>
>
> --
> Alan Chaney
> CTO and Founder, Mechnicality, Inc.
> www.mechnicality.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.
>
>


-- 
-- 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: configure jetty to listen to normal IP as well

2010-12-28 Thread A. Stevko
Also if you specify  0.0.0.0 , it will bind to all ip addresses available.

On Mon, Dec 27, 2010 at 8:39 AM, David Chandler wrote:

> Karel,
>
> You can pass the -bindAddress argument when you start hosted mode:
>
>
> http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#What_options_can_be_passed_to_development_mode
>
> HTH,
> /dmc
>
> On Sat, Dec 25, 2010 at 8:34 PM, Karel  wrote:
> > Hello,
> >
> > I am trying to get jetty to listen to the public IP of my PC as well.
> > Right now, I can only access my app through the following urls:
> > http://localhost:/Linegame.html?gwt.codesvr=127.0.0.1:9997
> > http://127.0.0.1:/Linegame.html?gwt.codesvr=127.0.0.1:9997
> >
> > But I would like to be able to access the app through the following
> > url:
> > http://192.168.0.100:/Linegame.html?gwt.codesvr=127.0.0.1:9997
> >
> > This would allow me to forward the port from my router to my local IP,
> > thus allowing other people to access my app and test it while I run it
> > locally.
> >
> > Unfortunately, I have a hard time finding ANY information on how to
> > configure jetty. I think I need to edit (or create) jetty.xml to
> > configure this, but I have no idea what I have to put in it.
> >
> > Any help would be greatly appreciated!
> > Kind regards,
> > Karel
> >
> > --
> > 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.
> >
> >
>
>
>
> --
> 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.
>
>


-- 
-- 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: How to write file with GWT?

2011-01-03 Thread A. Stevko
I've learned to use ByteArrayOutputStream rather than FileOutputStream when
needing to write files using server side logic.
What happens after you've created one is another story.


On Mon, Jan 3, 2011 at 1:41 PM, Thomas Broyer  wrote:

>
>
> On Monday, January 3, 2011 4:46:38 PM UTC+1, alanmechy wrote:
>>
>> The stack trace says it all...
>>
>> com.example.foobar.client.RPCInterface.testRPC (java.lang.String)'
>> Threw an unexpected exception: java. lang.NoClassDefFoundError:
>> java.io.FileWriter is a restricted class. Please see the Google App
>> Engine developer's guide for more details.
>>
>
> You're right that the stack trace says it all, but you actually didn't read
> it correctly: the issue is that java.io.FileWriter cannot be used in
> AppEngine; this has nothing to do with GWT and/or client vs. server
> packages.
> See http://code.google.com/appengine/docs/java/jrewhitelist.html and
> http://code.google.com/appengine/docs/java/runtime.html#The_Sandbox
>
>  --
> 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: How to write file with GWT?

2011-01-03 Thread A. Stevko
Can you use com.google.appengine.api.datastore.Text ?
Text wraps around a string of unlimited size.
http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/Text.html


On Mon, Jan 3, 2011 at 2:12 PM, a...@mechnicality.com  wrote:

>  On 1/3/2011 2:05 PM, Matthew Hill wrote:
>
> Can't you store it in the DB? --
>
>
> According to the GAE docs:
>
>   maximum entity size 1 megabyte
> Most of my entities *start* at 1 MB and go up to maybe 500+ (its 3D data)
>
> So, I assumed that, no, I couldn't store it in the DB :-)
>
> Alan
>
>
>
>
>  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.
>



-- 
-- 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: How to write file with GWT?

2011-01-03 Thread A. Stevko
I bookmarked this blog entry a while ago which has a recipe for posting into
the blobstore from app engine.
http://jeremyblythe.blogspot.com/2010/10/manipulating-images-in-blobstore.html

One other note - I suspect using the ByteArrayOutputStream for hundreds of
megabytes is going to run into the java runtime memory limit. I'm not sure
what the limit is. The error logs show "Exceeded soft memory limit with"...

On Mon, Jan 3, 2011 at 2:29 PM, A. Stevko  wrote:

> Can you use com.google.appengine.api.datastore.Text ?
> Text wraps around a string of unlimited size.
>
> http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/Text.html
>
>
> On Mon, Jan 3, 2011 at 2:12 PM, a...@mechnicality.com <
> a...@mechnicality.com> wrote:
>
>>  On 1/3/2011 2:05 PM, Matthew Hill wrote:
>>
>> Can't you store it in the DB? --
>>
>>
>> According to the GAE docs:
>>
>>   maximum entity size 1 megabyte
>> Most of my entities *start* at 1 MB and go up to maybe 500+ (its 3D data)
>>
>> So, I assumed that, no, I couldn't store it in the DB :-)
>>
>> Alan
>>
>>
>>
>>
>>  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.
>>
>
>
>
> --
> -- A. Stevko
> ===
> "If everything seems under control, you're just not going fast enough." M.
> Andretti
>
>
>
>
>
>


-- 
-- 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: Label Click Handler Problem

2011-01-03 Thread A. Stevko
The error is at com.BiddingSystem.client.View.LoginView.java: line 61
The relevant portion of your stack is:

Caused by: com.google.gwt.core.client.JavaScriptException: (Error):
Invalid argument.
 number: -2147024809
 description: Invalid argument.
   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.invokeNativeVoid(ModuleSpace.java:
289)
   at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:
107)
   at com.google.gwt.dom.client.Element$.setPropertyInt$
(Element.java)
   at com.google.gwt.user.client.DOM.setElementPropertyInt(DOM.java:
1118)
   at com.google.gwt.user.client.ui.FlexTable
$FlexCellFormatter.setColSpan(FlexTable.java:78)
   at com.BiddingSystem.client.View.LoginView.(LoginView.java:
61)
   at com.BiddingSystem.client.ApplicationController
$1.onSignIn(ApplicationController.java:110)
   at

)


-- 
-- 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: EnterButton

2011-01-03 Thread A. Stevko
I've used this pattern throughout my code base with no problem.


On Mon, Jan 3, 2011 at 6:57 AM, Greg Dougherty
wrote:

> I have a couple of places where I want the user to be able to hit
> enter, and have a button clicked.  So I created the class EnterButton,
> which has all the default constructors, and the following bit of code:
>
>public void onKeyPress (KeyPressEvent event)
>{
>int keyCode = event.getNativeEvent ().getKeyCode
> ();
>
>if (keyCode == KeyCodes.KEY_ENTER)
>click ();
>}
>
> Is there a reason why some such class isn't part of GWT already?  Is
> there something in this code that will turn around and bite me in the
> tush?
>
> --
> 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: How to write file with GWT?

2011-01-04 Thread A. Stevko
I've used this code frag to write XML on app engine without any problems.

ByteArrayOutputStream baos = new ByteArrayOutputStream( );
XMLEncoder encoder = new XMLEncoder(baos);
encoder.writeObject(myObject);
encoder.close();
return baos.toString();

I believe I got the code from Example Depot at
http://www.exampledepot.com/egs/java.beans/WriteXml.html

-- 
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: Label Click Handler Problem

2011-01-04 Thread A. Stevko
That is the nature of writing cross browser web applications. Chrome and
Firefox share the WebKit engine.
Find the source of that value -2147024809 and you will see how the different
JS engines differ.

On Mon, Jan 3, 2011 at 9:35 PM, Noor  wrote:

> if the error is in my application, how is it that everything is fine
> in chrome and firefox
>
> --
> 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: 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<http://www.sharpened.net/emoticons/smiley/tongue_in_cheek>
>8. ~~~do not create your own panels and layout system? 
> :-J<http://www.sharpened.net/emoticons/smiley/tongue_in_cheek>
>
> 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: SSH + RMI in GWT

2011-02-09 Thread A. Stevko
Hi Jim,
Your concerns are quite justified.
The GWT docs have a JRE emulation reference that shows what is supported at
http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html
<http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html>Unfortunately
the java.rmi package is not listed there.

Thanks for the tip on the Jsch library. It'll come in handy.
I took a look at the jsch source code (thanks!) and it imports all kinds of
unsupported libs like swing and awt etc.

I suggest looking for native javascript libs instead of java libraries for
your functionality.
While you are coding in java, the browser is really executing javascript.
It relatively painless to wrap a js library with the JSNI wrapper and use
them within your GWT app.

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



On Fri, Feb 4, 2011 at 1:22 PM, Jim  wrote:

> I'm working on an application using GWT 2 that needs to ssh to a
> remote server, retrive a directory listing and show the contents of
> any zip files.  Then allow the user to pick a file and load the
> contents into a database.   I'm trying to use a combination of SSH and
> RMI to do this.   I'm concerned that some of the SSH and RMI calls
> won't compile or be compatible with GWT.   I'm open to suggestions on
> a different or better way to accomplish this.  I'm using the
> com.jcraft.jsch SSH library.
>
> I'm using RMI to get the zipfile contents,  I tried use an InputStream
> to read the zip file contents but it was very slow.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Java Mail Provider

2011-02-10 Thread A. Stevko
Hello UN,
Appengine supports the javax.mail api.
http://code.google.com/appengine/docs/java/mail/usingjavamail.html
http://code.google.com/appengine/docs/java/mail/receiving.html


GWT does not.
http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html




On Thu, Feb 10, 2011 at 2:46 PM, unair001  wrote:

> The GWT appengine SDK 1.4.0 comes packaged with the java mail jars.
> The Java mail provider Jar has only one entry for protocol "gm". It
> does not have anything for smtps. When I use that protocol for my SMTP
> server, I get an error stating that the provide is not known.
>
> How do I get the SMTPS option to work inside of GWT. Outside, if I
> configure the app without any GWT references it works fine.
>
> 1. I want to run the app inside of a GWT app engine.
> 2. This is for sending an email out.
>
> Please help if you know how to fix this issue?
>
> Thanks,
> UN
>
> --
> 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.
>
>


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



Re: help sending emails in GWT

2011-02-28 Thread A. Stevko
race();
>> > }
>> >
>> > try {
>> > simpleMessage.setFrom(fromAddress);
>> > simpleMessage.setRecipient(RecipientType.TO,
>> toAddress);
>> > simpleMessage.setSubject("HockeyPool PoolAdmin
>> Invitation");
>> > simpleMessage.setText("Hello,You
>> have been added as a
>> > Pool Administrator for our Hockey Pool System");
>> >
>> > Transport.send(simpleMessage);
>> > System.out.println("email sent");
>> > } catch (MessagingException e) {
>> > // TODO Auto-generated catch block
>> > e.printStackTrace();
>> > }
>> > }
>> >
>> > }
>> >
>> > When i GWT Compile i get no errors at all.
>> > Even when i debug the program it executes all of this code just fine
>> > and never hits an exception but the email is NEVER sent.
>> >
>> > Another thing is every single post about using Java Mail tells me i
>> > need the activation.jar but the following line gives me a warning that
>> > the activiation is never used anywhere in my class
>> >
>> > import javax.activation.*;
>> >
>> > Any help is much appreciated
>> > Thanks
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>>
>  --
> 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.
>



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



Re: help sending emails in GWT

2011-03-01 Thread A. Stevko
That difference is the source of confusion over and over again.
Browser hosted obfuscated javascriptvs   Server hosted java byte code.


On Tue, Mar 1, 2011 at 12:17 PM, Greg Dougherty
wrote:

> Yep, it's easy to forget the difference.
>
> On Mar 1, 2:10 pm, Hilco Wijbenga  wrote:
> > On 1 March 2011 19:38, Dougherty, Gregory T. 
> wrote:
> >
> > > Wow, so you're saying you think that randomly picked up bits of
> > > JavaScript should be able to take over your computer and send emails
> > > from your computer to whomever they want?
> >
> > > Every spammer in the world must love you.
> >
> > > Fortunately, the browser makers disagree.
> >
> > Sigh, yes of course. I saw "client" and wasn't thinking "browser + SOP".
> :-)
>
> --
> 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.
>
>


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



how to post & handle RequestFactory server warnings/errors?

2011-03-11 Thread A. Stevko
(I posted this on stackoverflow and got a handful of views but no response)

I have a newly coded GWT/GAE app that uses RequestFactory and Editors on the
client and a custom Objectify DAO Service on the back.

The flush() then persist() paths work fine on success. Client side JSR 303
works as well as can be expected too.

My question is how to trigger server warnings/errors and handle UI updates?

I am using Chandler's Generic DAO for Objectify 2 at
http://turbomanage.wordpress.com/2010/02/09/generic-dao-for-objectify-2/

my gwt activity is calling persist( myProxy ).fire( new Receiver<> )

my dao code is throwing IllegalArgumentException and other RuntimeExceptions
for business logic situations like "Duplicate email address found - want to
login instead?"

Receiver<>.onSuccess() works fine to track a successful outcome. neither
Receiver<>.onFailure() nor Receiver<>.onViolation() report the
RuntimeExceptions.

Is there a better way to do this? What exceptions should the DAO throw such
that onViolation() or onFailure() report errors? How should the editor(s)
handle and recover from the exception?

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



Re: how to post & handle RequestFactory server warnings/errors?

2011-03-13 Thread A. Stevko
Thanks for the reply Thomas :) Your blogs and writings were very necessary
to my understanding of the new technologies.
Got time for another similar question re: request factory design?

Am I right in thinking that a DAO layer is the correct place for the extra
business logic associated with server side pre/post commit operations not
necessarily altering the database like spawning a 'welcome new user' email
task?

Also have you seen a JSR-303 Bean Validation extension that will guarantee
uniqueness in a field (like email  address0?


On Sat, Mar 12, 2011 at 2:34 AM, Thomas Broyer  wrote:

> onFailure should containg the getMessage() of the exception you threw on
> the server side.
>
> You can tweak it by providing your own ExceptionHandler to the
> RequestFactoryServlet (extend it and use its constructor taking an
> ExceptionHandler).
>
> onViolation will only be called if your entities do not pass JSR-303 Bean
> Validation, which is checked before calling any service method.
>
> --
> 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.
>



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



Re: How to compile selectively or avoid compilation of inheriting/implementing classes?

2011-03-15 Thread A. Stevko
It does not seem likely that the GWT compiler is bringing in any classes
that are not in the source paths.
I suggest looking at the imports within those directories to see which are
referencing thoughworks etc.




On Tue, Mar 15, 2011 at 11:21 AM, KD  wrote:

> Here is my situation.
>
> On the top level of my API is...
>
> com.mycompany.core.MODEL
>
> I have made this a GWT module, has a blank entry point and has
> MyModel.xml. Its structure is as below...
>
> 
>  
>  
>  
>  
>  
>  
>  
>  
> 
>
> Now there are implementations of this model to make a default out of
> the box framework and those reside in the following packages
>
> com.mycompany.core.API
> com.mycompany.core.KERNAL
>
> i.e. Abstract and concrete classes in these 2 packages above implement
> interfaces from the MODEL package
> e.g
> AbstractMessageListner (in core.API) implements MessageListener (in
> core.MODEL)
>
> Now there is another GWT module...
>
> com.mycompany.DASHBOARD
>
> which inherits the MODEL
>
> When I compile all in eclipse or do a 'mvn clean install', there are
> no errors. There are Maven dependencies in Dashboard for MODEL source
>
> When I launch dashboard module from eclipse using my custom .launch
> file, I get a lot of "No source code..." found errors pointing to
> classes in API and KERNAL and also things like
>
> - No source code is available for type java.io.ByteArrayOutputStream;
> did you forget to inherit a required module?
> - The method close() is undefined for the type OutputStream
> - No...for type com.thoughtworks.xstream.io.StreamException; did
> you...
> - No...for type java.io.Writer; did you...
>
> So my question is:
> How can I avoid API and KERNEL being pulled in while compiling. My
> argument is MODEL does not depend on anything, rather everything
> depends on MODEL. Is there a way I can tell GWT compiler (preferably
> selectively) not to worry about classes that DEPEND ON core.MODEL with
> the exception of DASHBOARD of course.
>
> My end goal is that, I would like to use MODEL in DASHBOARD on client
> side and avoid writing new DTO interfacing between widgets and
> backend.
>
> Any ideas or help here would be super in taking me over this roadblock.
>
> --
> 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.
>
>


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



Re: Problem with JSNI

2011-03-27 Thread A. Stevko
It seems that you have crossed method names in your code.

getElementsById() is not the same as getElementsByTagName()

Also getElementsByTagName() returns an array so you would want to do
something like
elements = getElementsByTagName( 'embed' );

This is from
http://programming.top54u.com/post/Javascript-document-getElementsByTagName.aspx
*getElementsByTagName* method returns the node list array of HTML document
elements present in the HTML web page. You can pass the name of the
particular HTML tag such as *div*, *span*, *p* etc whose list of array you
want to collect.

On Sun, Mar 27, 2011 at 9:35 PM, Sabbia  wrote:

> Hello!!
>
> It's been days trying to solve my problem, but I've got a great mess
> in my head... The thing I wanna do is integrate DivXPlus Web Player
> plugin in my GWT project. In order to get it, I must add these lines:
>
> String videoStr = " classid='clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616' width=636
> height=380 codebase='http://go.divx.com/plugin/
> DivXBrowserPlugin.cab'>";
>
>videoStr = videoStr.concat(" value=\"videos/
> origen.avi\" />");
>
>videoStr = videoStr.concat(" name='ff_plugin'
> type='video/divx' src='videos/origen.avi' custommode='none'
> mode='mini' width='636' height='380' pluginspage='http://go.divx.com/
> plugin/download/'>");
>videoStr = videoStr.concat("");
>videoStr = videoStr.concat("");
>
>  HTML vid = new HTML();
>  vid.setHTML(videoStr);
>  videoLabel.addChild(vid);
>  resultsLayout.addMember(videoLabel);
>
>  mute();  //here is the problem
>
>
> This is working. But the DivX plugin offers some Javascript methods to
> control the playing. It would with this script, for example, to make
> "mute" to the video:
>
> 
> function mute(){
>  plugin = document.getElementById('ff_plugin');
>  plugin.Mute();
> }
> 
>
> So, I've tried to convert these lines to JSNI:
>
> native void mute() /*-{
>plugin = $doc.getElementsByTagName('ff_plugin');
>plugin.Mute();
> }-/*;
>
> But I get an UmbrellaException. So, no doubt my problem is with JSNI,
> but I'm reading thousands of documents but I can't still make it work.
> Please, I really beg your help, my time's ending and I can't find the
> solution.
>
> 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-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.
>
>


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



UIBinder style de-obfuscator

2011-03-29 Thread A. Stevko
I think I've found a trick and wanted input on if it'll screw anything else
up.
The UIBinder is really really nice but the bundling of the stylesheets makes
it totally undecipherable to see which style is being applied.
So I added a directive that preserved the name within the style using a
content directive.

/*** before **/
.faqA {
font-style: italic;
}

/*** after ***/
.faqA {
content: "faqA";
font-style: italic;
}

This is the regex I used to replace everything within my style sheet.
find: ^\.\(.+\) {
replace with: \.\1 { \n\tcontent: "\1";

This is what it looks like obfuscated
.GLQWISYBLQ {
content: "faqA";
font-style: italic;
}

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



Re: UIBinder style de-obfuscator

2011-03-29 Thread A. Stevko
Thanks for the tip on the levers and knobs Thomas.
I had assumed that setting the compiler output style to pretty would be also
alter the uibinder output too.
For me, ClientBundle has taken a backseat to figuring out Editor and cell
widgets.


On Tue, Mar 29, 2011 at 9:16 AM, Thomas Broyer  wrote:

> As the 
> docs<http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#Hello_Stylish_World>say,
>  UiBinder actually just generates a ClientBundle and CssResource, so the
> same "levers and 
> knobs<http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html#Levers_and_Knobs>"
> apply, particularly  value="pretty"/>




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



Re: JDBC Connection on GWT

2011-04-06 Thread A. Stevko
tools.development.JettyContainerService
> >> > > > > > $ApiProxyHandler.handle(JettyContainerService.java:351)
> >> > > > > >at
> >>
> >> > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
> >> > > > > > 152)
> >> > > > > >at org.mortbay.jetty.Server.handle(Server.java:326)
> >> > > > > >at
> >> > > > > >
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
> >> > > > > > 542)
> >> > > > > >at org.mortbay.jetty.HttpConnection
> >> > > > > > $RequestHandler.content(HttpConnection.java:938)
> >> > > > > >at
> >> > org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
> >> > > > > >at
> >> > > > org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
> >> > > > > >at
> >> > > > org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
> >> > > > > >at
> >>
> >> >
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
> >> > > > > > 409)
> >> > > > > >at org.mortbay.thread.QueuedThreadPool
> >> > > > > > $PoolThread.run(QueuedThreadPool.java:582)
> >> > > > > > Caused by: java.lang.NoClassDefFoundError: java.net.Socket is
> a
> >> > > > > > restricted class. Please see the Google  App Engine
> developer's
> >> > guide
> >> > > > > > for more details.
> >> > > > > >at
> >>
> >> >
> com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime
> >> > > > .java:
> >> > > > > > 51)
> >> > > > > >at
> org.postgresql.core.PGStream.(PGStream.java:62)
> >> > > > > >at
> >>
> >> >
> org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionF
> >> > > > actoryImpl.java:
> >> > > > > > 76)
> >> > > > > >at
> >>
> >> >
> org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java
> >> > > > :
> >> > > > > > 66)
> >> > > > > >at
> >>
> >> >
> org.postgresql.jdbc2.AbstractJdbc2Connection.(AbstractJdbc2Connection
> >> > > > .java:
> >> > > > > > 125)
> >> > > > > >at
> >>
> >> >
> org.postgresql.jdbc3.AbstractJdbc3Connection.(AbstractJdbc3Connection
> >> > > > .java:
> >> > > > > > 30)
> >> > > > > >at
> >> > > > org.postgresql.jdbc3.Jdbc3Connection.(Jdbc3Connection.java:
> >> > > > > > 24)
> >> > > > > >at
> org.postgresql.Driver.makeConnection(Driver.java:393)
> >> > > > > >at org.postgresql.Driver.connect(Driver.java:267)
> >> > > > > >at
> >> > java.sql.DriverManager.getConnection(DriverManager.java:582)
> >> > > > > >at
> >> > java.sql.DriverManager.getConnection(DriverManager.java:185)
> >> > > > > >at
> >> > com.gwt.app.server.ManejadorBD.checkUser(ManejadorBD.java:11)
> >> > > > > >at
> >>
> >> >
> com.gwt.app.server.GreetingServiceImpl.greetServer(GreetingServiceImpl.java
> >> > > > :
> >> > > > > > 15)
> >> > > > > >at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> >> > Method)
> >> > > > > >at
> >>
> >> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> >> > > > > > 39)
> >> > > > > >at
> >>
> >> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
> >> > > > l.java:
> >> > > > > > 25)
> >> > > > > >at java.lang.reflect.Method.invoke(Method.java:597)
> >> > > > > >at
> >>
> >> >
> com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime
> >> > > > .java:
> >> > > > > > 100)
> >> > > > > >at
> >>
> >> > com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
> >> > > > > > 569)
> >> > > > > >... 30 more
> >>
> >> > > > > > On Apr 5, 8:51 pm, Juan Pablo Gardella <
> >> > gardellajuanpa...@gmail.com>
> >> > > > > > wrote:
> >> > > > > > > Put postgresql driver in WEB-INF/lib
> >>
> >> > > > > > > Juan
> >>
> >> > > > > > > 2011/4/5 Jose Luis Hernandez 
> >>
> >> > > > > > > > Hello!
> >> > > > > > > > I am trying to connect my gwt server with postgreSQL
> database,
> >> > but
> >> > > > I
> >> > > > > > > > do not get it. It appears the following error message:
> >>
> >> > > > > > > > [ERROR] javax.servlet.ServletContext log: Exception while
> >> > > > dispatching
> >> > > > > > > > incoming RPC call
> >> > > > > > > > com.google.gwt.user.server.rpc.UnexpectedException:
> Service
> >> > method
> >> > > > > > > > 'public abstract boolean
> >>
> >> >
> com.gwt.app.client.GreetingService.greetServer(java.lang.String,java.lang.S
> >> > > > tring)
> >> > > > > > > > throws java.lang.Exception' threw an unexpected exception:
> >> > > > > > > > java.lang.NoClassDefFoundError: org.postgresql.core.Logger
> is a
> >> > > > > > > > restricted class. Please see the Google  App Engine
> developer's
> >> > > > guide
> >> > > > > > > > for more details.
> >> > > > > > > >at
> >>
> >> > > >
> com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
> >> > > > > > > > 385)
> >> > > > > > > >at
> >>
> >> > > >
> com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
> >> > > > > > > > 588)
> >> > > > > > > >at
> >>
> >> >
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServi
> >> > > > ceServlet.java:
> >> > > > > > > > 208)
> >> > > > > > > >at
> >>
> >> >
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServi
> >> > > > ceServlet.java:
> >> > > > > > > > 248)
> >> > > > > > > >at
> >>
> >> >
> com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(Abstract
> >> > > > RemoteServiceServlet.java:
> >> > > > > > > > 62)
> >> > > > > > > >at
> >> > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
> >> > > > > > > >at
> >> > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> >> > > > > > > >at
> >>
> >> > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> >> > > > > > > > 511)
> >> > > > > > > >at org.mortbay.jetty.servlet.ServletHandler
> >> > > > > > > > $CachedChain.doFilter(ServletHandler.java:1166)
> >> > > > > > > >at
> >>
> >> ...
> >>
> >> read more »
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> > To post to this group, send email to google-web-toolkit@googlegroups.com
> .
> > To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


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



Re: Relative paths in files retrieved by RequestBuilder

2011-04-06 Thread A. Stevko
I suggest you hunt around your deployed app and you'll find the relative
path that works.
It may likely be src='../../my.jpg' or something similar

On Tue, Apr 5, 2011 at 5:01 PM, Sekhar Ravinutala wrote:

> I'm loading some HTML on the fly using RequestBuilder (GWT/GAE). The files
> load OK, but the images in the file referenced by relative paths won't load.
> E.g., img src="whatever.jpg" won't work, but absolute path
> "/path-to-file/whatever.jpg" does. Is there way to make relative paths work
> when using RequestBuilder? It's not practical to use absolute paths in the
> files...so hope there's an easy solution.
>
> --
> 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.
>



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



Re: development/production mode - different paths to same file?

2011-04-07 Thread A. Stevko
Is it ptl or portal ?


On Thu, Apr 7, 2011 at 8:53 PM, Magnus  wrote:

> Hello,
>
> in my webProject "myProject" is a directory "war/portal" which
> contains a file "login.jsp":
> myProject/war/portal/login.jsp
>
> Within my code I want to redirect to this page.
>
> In development mode, this works:
> Window.Location.assign ("/ptl/login.jsp");
>
> In production mode, this does not work. I found out that "/myProject/
> ptl/login.jsp" would be the correct path.
> However, this does not work in development mode.
>
> How can I do this so that it works the same in development and
> production mode?
>
> Thanks
> Magnus
>
> --
> 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.
>
>


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



Re: View GWT RPC traffic

2011-04-15 Thread A. Stevko
Since this is the GWT forum, I'm assuming that you are referring to the
client rather than the server portion of the RPC protocol.
A simple logging proxy server would do the trick like Microsoft's Fiddler.

On Fri, Apr 15, 2011 at 1:09 AM, Leung  wrote:

> Hi
>
> Is it possible to view the GWT RPC transaction on tools like ethereal?
>
> Thanks
> Ming
>
> --
> 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.
>
>


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



UIBinder and Dreamweaver

2011-04-25 Thread A. Stevko
This is like the 10th time I've come across a seemingly capable web designer
who would like to skin my web application but seems allergic to writing
coding. They all seem to want to use Dreamweaver to write/edit the html and
css and such.

Does anyone have any helpful tips on bootstrapping such creative people into
working with GWT's MVP, UiBinder, Cells, and other tools? If there some kind
of plug-in that will allow them to treat my .ui.xml files like a dreamweaver
template such that they can edit anything in an ?


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



Re: UIBinder and Dreamweaver

2011-04-26 Thread A. Stevko
Unfortunately the seemingly static portions like FAQ, help, and news have
different life cycles than the dynamic portions.
Most shops are used to having designers rather than coders do the lifting
here.

Another place where designers are used to having a free hand is the css.
Has anyone had success wholesale moving the height and width directives out
of the ui.xml and into the css stylesheet? It won't work for DockLayoutPanel
or SplitLayoutPanel but for the others?



On Tue, Apr 26, 2011 at 10:32 AM, dmen  wrote:

> I have worked on both ends, building my own full blown apps and
> beautifying other peoples' apps. IMO, even with UiBinder markup, it is
> *very difficult* for designers with non-java knowledge to work with
> GWT. The best solution is to let them work with their own tools, e.g.
> Photoshop, Dreamweaver, etc. and deliver nice static HTML/CSS
> templates which then *you* will tear apart and convert to GWT
> components.
>
> --
> 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.
>
>


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



Re: Empty Response From HTTP Request

2011-05-12 Thread A. Stevko
Hi Nick,
Are you saying that the server response is empty or that RequestBuilder does
not recognize the response?
If its the former, the server is not recognizing something in the request
like the browser code headers.
If its the latter, then I would compare the content-type and formatting of
the response with a benchmark response from the eclipse dev tool.
Either way, you'll need to get below just looking at the browser display to
understand & diagnose the communication protocols. I suggest using a logging
proxy server on your test bench to track what is coming and going. MS
Fiddler works well on Windows.
---Stevko


On Wed, May 11, 2011 at 3:14 PM, Nick Apperley  wrote:

> Using RequestBuilder I can successfully make a request to the
> Glassfish 3.1 server I have setup. The server delivers REST web
> services that involve HTTP GET and POST. Currently I am testing to see
> if I can establish communication between the server and the GWT
> client. What isn't working is getting the correct response for the
> particular web service used (a HTTP GET).
>
> In Firefox with the same web service used it receives the correct
> response which is an XML file. This confirms that the web service is
> working properly. What are the possible causes for an empty response
> from a HTTP request with GWT?
>
> --
> 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.
>
>


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



Re: Empty Response From HTTP Request

2011-05-12 Thread A. Stevko
Can you at least see the size of the response like in an apache log file?
Try using FireBug's Net Panel to see the request/response size/duration.

On Thu, May 12, 2011 at 4:25 PM, Nick Apperley  wrote:

> What is really weird is that the timeouts are occurring with making a
> request via JsonRequestBuilder yet the Glassfish server has received
> the request successfully. I have been digging through the Glassfish
> server logs and found an identical set of entries for 2 requests that
> were made (one from GWT client, the other from the web browser). What
> isn't recorded in the logs is if the server has sent back a response,
> and its content if it was sent.
>
> Right now I do not know what is happening with the server responses.
> Presumably a response is being sent back to the GWT client. At least a
> response has been sent back for the request made by the web browser.
>
>
> On May 13, 10:15 am, Nick Apperley  wrote:
> > I have undertaken the suggestion but now have an entirely new problem
> > to content with. Timeouts are occurring every time a request is made
> > using JsonpRequestBuilder. I have checked to see that the URL is
> > correct, and have extended the timeout duration but still end up with
> > the same problem. What could cause a timeout to occur with doing a
> > request with JsonpRequestBuilder?
>
> --
> 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.
>
>


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



Re: Validation-api-1.0.0, Doesn't work

2011-05-25 Thread A. Stevko
rvlet.ServletHandler
>> > >> > > $CachedChain.doFilter(ServletHandler.java:1157)
>> > >> > >at
>> >
>> > >>
>> com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
>> > >> > > 43)
>> > >> > >at org.mortbay.jetty.servlet.ServletHandler
>> > >> > > $CachedChain.doFilter(ServletHandler.java:1157)
>> > >> > >at
>> >
>> > >>
>> com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:
>> > >> > > 122)
>> > >> > >at org.mortbay.jetty.servlet.ServletHandler
>> > >> > > $CachedChain.doFilter(ServletHandler.java:1157)
>> > >> > >at
>> >
>> > >>
>> com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:
>> > >> > > 94)
>> > >> > >at org.mortbay.jetty.servlet.ServletHandler
>> > >> > > $CachedChain.doFilter(ServletHandler.java:1157)
>> > >> > >at
>> > >> > >
>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
>> > >> > > 388)
>> > >> > >at
>> >
>> > >>
>> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
>> > >> > > 216)
>> > >> > >at
>> > >> > >
>> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
>> > >> > > 182)
>> > >> > >at
>> > >> > >
>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
>> > >> > > 765)
>> > >> > >at
>> > >> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
>> > >> > > 418)
>> > >> > >at
>> >
>> > >>
>> com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
>> > >> > > 70)
>> > >> > >at
>> > >> > >
>> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
>> > >> > > 152)
>> > >> > >at
>> com.google.appengine.tools.development.JettyContainerService
>> > >> > > $ApiProxyHandler.handle(JettyContainerService.java:351)
>> > >> > >at
>> > >> > >
>> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
>> > >> > > 152)
>> > >> > >at org.mortbay.jetty.Server.handle(Server.java:326)
>> > >> > >at
>> > >> > >
>> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
>> > >> > > 542)
>> > >> > >at org.mortbay.jetty.HttpConnection
>> > >> > > $RequestHandler.content(HttpConnection.java:938)
>> > >> > >at
>> org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
>> > >> > >at
>> > >> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
>> > >> > >at
>> > >> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
>> > >> > >at
>> >
>> > >>
>> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
>> > >> > > 409)
>> > >> > >at org.mortbay.thread.QueuedThreadPool
>> > >> > > $PoolThread.run(QueuedThreadPool.java:582)
>> >
>> > >> > > Thanks for your help
>> >
>> > >> > > Maxime
>> >
>> > >> > > On 23 mai, 18:34, Nick Chalko  wrote:
>> > >> > > > Glad you got it working.
>> >
>> > >> > > > On Mon, May 23, 2011 at 9:31 AM, Adolfo Panizo Touzon <
>> >
>> > >> > > > adolfo.pan...@gmail.com> wrote:
>> > >> > > > > Hi Maxim!!!
>> >
>> > >> > > > > It works!!!
>> >
>> > >> > > > > I have made a very simple example based on Google (because if
>> you
>> > >> have
>> > >> > > a
>> > >> > > > > problemthat I do not solve, sure there are people that if you
>> > >> could
>> > >> > > lend a
>> > >> > > > >  hand.)
>> > >> > > > > The steps you follow are the following:
>> >
>> > >> > > > > -Add the project (which I attached) to your workspace.
>> > >> > > > > -Select your gwt sdk 0.0.0.0
>> > >> > > > > -Add the libraries to your classpath you in the picture
>> attached.
>> > >> > > > > -Run it.
>> >
>> > >> > > > > If you have any questions or comment on it is a problem here
>> that
>> > >> I
>> > >> > > miss
>> > >> > > > > you a hand with any thing.
>> >
>> > >> > > > > Greetings!
>> >
>> > >> > > > > Now I work as an example to finally understand itself
>> completely.
>> >
>> > >> > > > > Adolfo Panizo.
>> >
>> > >> > > > > 2011/5/23 Adolfo Panizo Touzon 
>> >
>> > ...
>> >
>> > plus de détails »
>>
>> --
>> 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.
>>
>>
>
>
> --
> El precio es lo que pagas. El valor es lo que recibes.
> Warren Buffet
>
> --
> 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.
>



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



Re: Validation-api-1.0.0, Doesn't work

2011-05-25 Thread A. Stevko
> $CachedChain.doFilter(ServletHandler.java:1157)
>at
>
> com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:
> 94)
>at org.mortbay.jetty.servlet.ServletHandler
> $CachedChain.doFilter(ServletHandler.java:1157)
>at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
> 388)
>at
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
> 216)
>at
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
> 182)
>at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
> 765)
>at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
> 418)
>at
>
> com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
> 70)
>at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
> 152)
>at com.google.appengine.tools.development.JettyContainerService
> $ApiProxyHandler.handle(JettyContainerService.java:351)
>at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
> 152)
>at org.mortbay.jetty.Server.handle(Server.java:326)
>at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
> 542)
>at org.mortbay.jetty.HttpConnection
> $RequestHandler.content(HttpConnection.java:938)
>at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
>at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
>at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
>at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
> 409)
>at org.mortbay.thread.QueuedThreadPool
> $PoolThread.run(QueuedThreadPool.java:582)
>
>
> On 25 mai, 20:23, "A. Stevko"  wrote:
> > Try adding gwt-servlet-deps.jar and gwt-servlet,jar to your build path.
> >
> > On Wed, May 25, 2011 at 10:06 AM, Adolfo Panizo Touzon <
> >
> > adolfo.pan...@gmail.com> wrote:
> > > user/javax and user/org/hibernate files ???
> > > The libraries?
> >
> > > 2011/5/25 MaximeMularz 
> >
> > >> I want use the Validation API,
> > >>http://gwt-code-reviews.appspot.com/1040802/show
> > >> but I don't where add the user/javax and user/org/hibernate files
> >
> > >> On 25 mai, 17:00, Adolfo Panizo Touzon 
> > >> wrote:
> > >> >
> http://code.google.com/webtoolkit/doc/trunk/DevGuideServerCommunicati.
> > >> ..
> >
> > >> > 2011/5/25 Adolfo Panizo Touzon 
> >
> > >> > > I don´t understand. ¿What´s the problem?
> >
> > >> > > Maybe you can declarate HashMap in the client side and can´t
> transport
> > >> by
> > >> > > rpc.
> >
> > >> > > I´m not sure, but, what´s the problem?
> >
> > >> > > 2011/5/25 MaximeMularz 
> >
> > >> > >> The implementation (
> > >>http://code.google.com/p/google-web-toolkit/source/
> > >> > >>
> browse/trunk/samples/validation/src/com/google/gwt/sample/validation<
> > >>
> http://code.google.com/p/google-web-toolkit/source/browse/trunk/sampl...>
> > >> > >> ):
> >
> > >> > >> public class GreetingServiceImpl extends RpcServlet implements
> > >> > >>GreetingService {
> >
> > >> > >>  private final Validator validator =
> > >> > >> Validation.buildDefaultValidatorFactory().getValidator();
> >
> > >> > >>  public SafeHtml greetServer(Person person) throws
> > >> > >> IllegalArgumentException,
> > >> > >>  ConstraintViolationException {
> > >> > >>// Verify that the input is valid.
> > >> > >>Set> violations =
> > >> > >> validator.validate(person,
> > >> > >>Default.class, ServerGroup.class);
> > >> > >>if (!violations.isEmpty()) {
> > >> > >>  Set> temp = new
> > >> > >> HashSet>(
> > >> > >>  violations);
> > >> > >>  throw new ConstraintViolationException(temp);
> > >> > >>}
> >
> > >> > >>String serverInfo = getServletContext().getServerInfo();
> > >> > >>String userAgent = getThreadLocalRequest().getHeader(

Re: How to edit a live project design in GWT

2011-05-25 Thread A. Stevko
Try building a New Web Application Project and you will see the structure.


On Wed, May 18, 2011 at 10:03 PM, naresh web developer <
naresh.webdevelo...@gmail.com> wrote:

> Hi,
> i wanna edit design of a live project design in GWT and i dont know
> how to do it..i download all code file of this project..
> But there is no any html or editable file...
> Help me..
>
> --
> 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.
>
>


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



Re: EMF Error

2011-06-01 Thread A. Stevko
Not sure this is the best forum (server side issue vs client side forum) for
your question but I'll give it a go...

Not much detail to go on so I'll assume that the code you are trying to
execute is server side and em is your entity manager.

You may want to proof everything else is working by returning a static list
instead of executing a query.
Then look at the initializer for EMF. Something is going wrong there.


On Wed, Jun 1, 2011 at 1:35 PM, Pavel Byles  wrote:

> Anyone?
>
> On Tue, May 31, 2011 at 10:33 PM, Pavel Byles wrote:
>
>> Trying to get RequestFactory to work but I am getting:
>>
>> Server Error: Could not initialize class myproject.com.server.domain.EMF
>>
>> at the line that contains this code:
>>
>> List list = em.createQuery("select c from Country c"
>> ).getResultList();
>>
>>
>> Anyone have any ideas?
>>
>> --
>> -Pav
>>
>
>
>
> --
> -Pav
>
> --
> 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.
>



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



Re: Hosting for GWT projects

2011-06-02 Thread A. Stevko
Have you considered trying Amazon Elastic Beanstalk and RDS?
Elastic Beanstalk will load balance your war and RDS is essentially hosted
MySQL
AWS has a free tier that will let you dev your low volume app without the
upfront investment.


On Thu, Jun 2, 2011 at 2:49 AM, sachin sreenivasan <
sachin.sreenivasa...@gmail.com> wrote:

> Hi,
>
>   I started with my first GWT project. I am using MySQL as the
> database. Can someone (preferably from India) please tell me which is
> the best hosting service provider for my website in GWT with quite a
> good uptime and which will support the GWT war file and the MySQL
> database with unlimited space. Can someone please help me with this?
>
> Regards,
> Sachin
>
> --
> 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.
>
>


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



Re: Shortcomings in Places

2011-06-04 Thread A. Stevko
Hi Jeff,
Glad to see someone else voice the same frustrations that I had to work
through with getting Places to work for me.
You are right, the pattern of substituting a login form for content is so
very common.

Here are some tips on how I handled the situation:

- Have an method on the authentication state machine that determines the
'default' place to be A or B or whatever is best for the user.
I called it CurrentState.getHomePlace()

- Create an abstract subclass of Place for all places that require
authentication.

For the main region ActivityMapper, try this piece of logic
@Override
public Activity getActivity(Place place) {
//-
// check if the user is authenticated and the place requires it
if ( place instanceof AuthenticatedPlace && !currentState.isLoggedIn() ) {
 logger.warning("unauthenticated place violation, displaying login");
LoginFormActivity loginForm = loginFormActivityProvider.get();
 // add place holder to capture current login parameter to forward to...
currentState.setForwardLoginTo(place);
return loginForm;
}

if( place.equals( Place.NOWHERE ) ) {
// should redirect auto-login user to proper home place
logger.info( "place = NOWHERE" );
place = currentState.getHomePlace();
}

- and to get around the caching of the place after authenticating,
instead of using PlaceController.goTo(),
bypass the place caching by forcing a PlaceChangeEvent to the final
destination
   eventBus.fireEvent( new PlaceChangeEvent(
currentState.getForwardLoginToPlace() ));

- I also set up an auto-login function using hashed cookies which requires a
round trip with the server.
The ActivityMapper forces the display to show the login form while the
auto-login pops up a dialog box saying login is in process.
When the auto-login succeeds, it clears the dialog and uses the
currentState.forwardLoginToPlace to put the user in the right place.
Otherwise the user just sees the login form and proceeds from there.

- My next issue with places is validating that the object context built by
the parameters (object ids) should be visible to that authenticated user.
Currently my Activity.start() is doing all the checking and the code seems
different for every page. Would like to see it handled in a semi-generic
sense instead of down in the weeds.



On Sat, Jun 4, 2011 at 2:47 PM, Jeff Schnitzer  wrote:

> I'm trying to implement a simple pattern that is *very* common in the
> world of "normal" webapps:
>
> 1) Most of my application requires authentication in order to access.
> 2) I allow deep links to protected content.
> 3) When visiting a deep link, you are given a login page - after
> logging in, you get the content.
>
> I have a single-page GWT app that uses Places.  I've spent a lot of
> time on this issue, and I *almost* have it working - but it's not
> elegant and there are still broken edge cases.  If you want to
> experience it firsthand, visit http://www.similarity.com/#matches:
>
> The specific issues with the Places system are:
>
>  * The default place is different in authenticated mode vs anonymous
> mode.  When you are anonymous, your default place is the "hello,
> stranger" place but when you're logged in, the default place is "all
> about your account".  Since I can't reset the default place in the
> PlaceHistoryHandler, I need to swap out the instance when I switch
> modes.
>
>  * The PlaceController has no way to reset the current place.  When an
> anonymous user tries to go to the #matches: link, the place is set to
> MatchesPlace (which my special handler translates into a "you must log
> in first" message).  When the user logs in, I force another
> handleCurrentHistory(), but it doesn't actually do anything - because
> the PlaceController is already at MatchesPlace.  I'll have to swap out
> the PlaceController instance when I switch modes.
>
> And now a little rant:
>
> All in all, this seems ludicrously difficult for something I could
> have done with dozen lines of code if I wasn't trying to use the
> standard GWT tools.  I feel like I've wasted a lot of time learning
> the system, and what I've ultimately learned is that I would be better
> off building it from scratch.
>
> Am I the only one that thinks the Places system is WAY
> over-engineered, yet not all that useful?
>
> Jeff
>
> --
> 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.
>
>


-- 
-- A. Stevko
=

Re: GWT and WebGL

2011-06-07 Thread A. Stevko
Quick search turned up
http://code.google.com/p/gwtgl/
<http://code.google.com/p/gwtgl/>

On Tue, Jun 7, 2011 at 1:19 PM, Alberto Franco  wrote:

> Hi to everybody, I'm new to the group so I don't know if there are
> other posts on the topic (I've made a quick search but i didn't found
> anything). I have seen that there are few WebGL bindings for GWT but
> will Google support WebGL inside the official GWT SDK? Since Google is
> in the team behind WebGL I would think so, anyone knows?
> Thanks in advance.
>
> Alberto
>
> --
> 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.
>
>


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



Re: Eample for MVP+EventBus+Presenter+Activity

2011-06-08 Thread A. Stevko
My experience with Roo was a bit overwhelming. The amount of code generated
and the instant complexity was a lot for me transitioning from 1.x to 2.x
style GWT programming. While the learning curve is hard and steep, building
an MVP++ app from the ground up forced me to learn the details from the
inside out.

I bookmarked a diagram posted on the gwt-contrib form that helped me
visualize the Activities + Places/History mechanism.
http://groups.google.com/group/google-web-toolkit-contributors/msg/7713e6c5d1bb5656

<http://groups.google.com/group/google-web-toolkit-contributors/msg/7713e6c5d1bb5656>
http://tbroyer.posterous.com/ is a must read for understanding how to use
the many parts of the frameworks.

If you go with starting out small, the first step beyond building the sample
application is to integrate Gin. Its essential to start early with DI
because it impacts everything and integrating while the project is small
saves a lot of rework.
I also suggest sticking with building out the Place - Activity - View
communication interfaces rather than customizing EventBus messages.
Marshaling custom events and handlers adds a lot of complexity.   The Place
Controller and Request Factory are wonderful abstractions on top of the
EventBus. After you've build a few CRUD panels by hand, you can really
appreciate the help given by the Editor and CellList/Table frameworks
although mastering them causes hair loss.


On Wed, Jun 8, 2011 at 5:35 PM, Harry X  wrote:

> Deanna Bonds  writes:
>
> >
> >
> > I was going through the same thing.  I ended up going back and rewatching
> the
> Ray Ryan architecture videos from 2009 and 2010 again, but this time
> drawing
> down
> all the diagrams, but combining them all.  Then after having a big block
> diagram
> of the gwt framework and going the javadoc for the classes it just clicked
> into
> place.  What I had problems with in the original readings of the docs, was
> that
> the overall big picture was really understated and somewhat confused by all
> the
> optional things.  And an intended way(s) to use it combined with spring roo
> would
> help.   That may be another piece of the puzzle for you.  This framework
> depends
> a
> bit on spring roo to generate all the boilerplate code.
> >
> > My way of using it has been to create a gwt project with the gpe.  Then
> add
> spring roo to that project.  Use Roo to create all the data enties, and
> request
> factories.  At this point I'm guessing because here is where I am - let Roo
> add
> in
> the client side mvp and simple uibinder display areas into it's special
> generated
> folder/packagePath.  Copy the display areas into my own and modify them the
> way
> I
> want and set up the places.  Then add in backend logic.
> >
> >
> >
>
> Thanks for sharing, Deanna.
> Just tried 2.4 eclipse plugin and it creates client side MVP parts for you,
> very convenient and good for me for now. Will check out Spring Roo.
>
>
> --
> 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.
>
>


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



Re: Redirect to place

2011-06-08 Thread A. Stevko
I suggest you put the logic for parsing the place token within the
Activity.start() and if it does not parse then use placeController.goTo() to
load the NewRecordPlace. That way the association between activity and place
is relatively constant and the validation of the token is determined by the
layer that has the best access to the data model.


On Wed, Jun 8, 2011 at 9:22 PM, Juan Pablo Gardella <
gardellajuanpa...@gmail.com> wrote:

> Hi folks,
>
> I have a problem with places. For example I have the URL  "
> http://mysite/myapp#editrecordd:10"; and I want with this URLgo to place
> EditRecordPlace (OK!), but if I have this URL  "
> http://mysite/myapp#editrecordd:10asiuo"; (the id can't cast to a number) I
> want to go to another place, for example newRecordPlace.
>
> I can do that in this manner:
>
> public Activity getActivity(Place place) {
> ...
>  if (place instanceof EditRecordPlace &&
> ((EditRecordPlace )place).getId()==null){
> return appPlaceFactory.getNewRecordPlace().getActivity();
>  }
> ...
> }
>
> But the problem is that no refresh the URL, I want display in the URL *
> newRecord* and start the activity. If I invoque the
> placecontroller.goTo(appPlaceFactory.getNewRecordPlace()) don 't works.
>
> Regards,
> Juan
>
> --
> 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.
>



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



compiler error ClassNotFoundException: _j2se_j9=71168

2011-06-09 Thread A. Stevko
I am getting this compiler error. Any tips on resolving it?

   Compiling 8 permutations
  Compiling permutation 0...
  Process output
 [ERROR] Exception in thread "main" java.lang.NoClassDefFoundError:
_j2se_j9=71168
 [ERROR] Caused by: java.lang.ClassNotFoundException: _j2se_j9=71168
 [ERROR] at
java.net.URLClassLoader.findClass(URLClassLoader.java:421)
 [ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:652)
 [ERROR] at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:346)
 [ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:618)
 [ERROR] Could not find the main class: _j2se_j9=71168.  Program
will exit.
  Compiling permutation 2...
  Compiling permutation 3...
  Compiling permutation 4...
  Compiling permutation 5...
  Compiling permutation 6...
  Compiling permutation 7...
  Compiling permutation 1...
   Compile of permutations succeeded
Linking into 
   Link succeeded

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



Re: How can I run a GWT application in full screen mode

2011-06-17 Thread A. Stevko
Yes but this has little to do with GWT and everything to do with the browser
and os features.
Switching applications is OS dependent.
Opening a browser full screen and removing the toolbars and navigation
elements is basic browser features.





2011/6/17 Néstor Boscán 

> How can I run a GWT application in full screen mode so the user doesn't
> have
> control to minimize or change to another application.
>
> Regards,
>
> Néstor Boscán
>
> --
> 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.
>



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



Re: Eclipse hosted mode in Facebook iframe

2011-06-21 Thread A. Stevko
I answered this question at stackoverflow
http://stackoverflow.com/questions/2646544/debug-gwt-inside-facebook-iframe/3283940#3283940

As it is, you cannot use 127.0.0.1 as the url hostname  for your facebook
app - you'll have to use a dns hostname pointing to the public ip address of
your computer.

On Tue, Jun 21, 2011 at 7:12 AM, Peter  wrote:

> Hi,
>
> We're developing a Facebook app with GWT but can't get the hosted mode
> in Eclipse to work inside Facebook's iframe. Have anyone got this
> working? It would make it simpler to debug some issues.
>
> We've tried using the dev plugins for Firefox 4, Explorer 7 and Chrome
> 12. Firefox and Explorer only shows the last cached, GWT compiled
> page. Chrome says "Plugin failed to connect to Development Mode
> server...".
>
> We've tried adding "gwt.codesvr=127.0.0.1:9997" to both the iframe URL
> and to the top window URL.
>
> Anyone else who's made a Facebook app with GWT, please make a comment.
>
> --
> 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.
>
>


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



Re: GWT Developer Job Openings

2011-07-10 Thread A. Stevko
Without an appropriate alternative, I personally would like to encourage GWT
job openings/availability to be posted here.
Not job spam but GWT jobs.


On Sun, Jul 10, 2011 at 8:32 PM, Hilco Wijbenga wrote:

> On 10 July 2011 17:35, Jeff  wrote:
> > However, your negative response was quite unnecessary when the link alone
> > would do. Thanks for that by the way.
>
> Clearly he was being sarcastic. He was actually agreeing with your
> posting here since there is currently no real alternative.
>
> > 
>
> Nice one. Sort of like a double negative, though, don't you think? :-)
> That should probably be . ;-)
>
> --
> 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.
>
>


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



Re: RIP (Rich Internet Pages) instead RIA

2011-08-06 Thread Andy Stevko
ork ?
> >
> > > > > My friend asked why don't you hand code html+ajax, sure that is
> > > > > perfect, if that magic is possible with GWT, how productive it
> would
> > > > > be?
> >
> > > > > What is wrong with GWT RIA apps, Problem is  I don't see pages, I
> see
> > > > > entire app,comes onto browser and my server becomes dummy.
> >
> > > > > What is wrong server being dummy? because Browser is supposed to be
> > > > > thin and you can use it on 10 devices in single day.
> >
> > > > > You open browser on cell phone, laptop,desktop where not, still use
> > > > > the same app. so application can not be one big bundle.
> >
> > > > > It needs to be page at a time. Ok, then it is not RIA app, then it
> is
> > > > > RIP.
> >
> > > > > So why I don't I settle for a RIP (Rich Internet Page) ? - looks
> cool
> > > > > to me. Is it possible to build using my favorite GWT+AppEngine. ?
> >
> > > > > Stay tuned, I will Let you know
> >
> > > > > ---Dreamer
> >
> > > > > --
> > > > > 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.
> >
> > > > --
> > > > Magno Machado Paulohttp://blog.magnomachado.com.brhttp://
> > > code.google.com/p/emballo/
> >
> > > --
> > > 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.
> >
> > --
> > Magno Machado Paulohttp://blog.magnomachado.com.brhttp://
> code.google.com/p/emballo/
>
> --
> 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.
>
>


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



Re: User Login with GWT on Google App Engine

2011-08-08 Thread Andy Stevko
Federated OpenID is supported by app engine
http://code.google.com/appengine/articles/openid.html


On Mon, Aug 8, 2011 at 8:34 AM, Qiang Ma  wrote:

> Hi, all,
>
> I am investigating to build a GWT app hosted on GAE that requires user
> login.
>
> Do you have any suggestion on which 3rd party library to support user
> secure login and approach to implement it?
>
> Thanks!
> -maq
>
> --
> 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.
>



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



Re: Are there any currently developed GWT Widget Libraries?

2016-01-20 Thread Andy Stevko
FWIW, Sencha GXT has an open source edition
https://www.sencha.com/legal/GPL/

You cannot include Sencha Ext JS or Sencha GXT in a closed source
distribution under this license.

On Wed, Jan 20, 2016 at 9:23 AM, Thomas Broyer  wrote:

>
>
> On Wednesday, January 20, 2016 at 5:59:30 PM UTC+1, N Troncoso wrote:
>>
>>  I started using GWT Polymer for my Web App a few weeks ago. I had to get
>> over some difficult hurdles, but I think it's really paying off. The UI is
>> sleek and responsive and just overall works very well.
>>
>> It's more or less the same as GWT Material from what I can tell (they are
>> both designed around Google's Material spec). GWT Polymer is really just a
>> wrapper, though, for their javascript library, so it requires jsInterop.
>>
>
> Well, the real difference is that GWT Polymer uses Web Components, whereas
> GWT Material uses "plain old HTML" elements (and as a result should
> probably work on more browsers than GWT Polymer; though now that Microsoft
> killed all old IEs it might not be a problem anymore)
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
-- 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 "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: what is xml 'is' attribute

2016-04-04 Thread Andy Stevko
TY :)

On Mon, Apr 4, 2016 at 1:45 PM, Jens  wrote:

> Its not an UiBinder construct because within a HTMLPanel (which the
> example uses as root) everything is treated as HTML unless its a UiBinder
> tag. So what you are seeing in the example is plain HTML with Polymer
> extensions like the "is" attribute.
>
> You can read that up at:
> https://www.polymer-project.org/1.0/docs/devguide/registering-elements.html
>
> -- J.
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
-- 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 "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Debugging question

2017-06-29 Thread Andy Stevko
name_0_g$ has the signature of an object member variable. Sounds like you
have an initialization problem with one of your classes.



On Jun 29, 2017 7:55 AM, "Harry Wagner"  wrote:

Some progress. The unresponsiveness is due to a breakpoint being taken due
to an umbrella exception. I found this on the debugger tab of Safari's
developer tools.

Exception with thrown value: Error:
com.google.web.bindery.event.shared.UmbrellaException:
Exception caught: (TypeError) : undefined is not an object (evaluating
'name_0_g$')

I've no idea what is causing the exception and am still looking for a stack
trace.


On Thursday, June 29, 2017 at 7:46:12 AM UTC-4, Thomas Broyer wrote:
>
>
>
> On Thursday, June 29, 2017 at 1:41:08 PM UTC+2, Harry Wagner wrote:
>>
>> I mean that the SplitLayoutPanel's splitter no longer works, nor the
>> page's HTML links. It works if I comment-out the code that displays the
>> dialog box.
>>
>
> It might be that there's a transparent element that covers them/everything
> and "eats" the mouse events. You'd have to chase where it comes from and
> why it doesn't go away (hopefully the div's attributes –e.g. class=""– will
> hint in the right direction).
>
-- 
You received this message because you are subscribed to the Google Groups
"GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT + MySql

2012-03-19 Thread Andy Stevko
Objectify works really well for me to query within GAE and return DTOs to
GWT.
http://code.google.com/p/objectify-appengine/wiki/ObjectifyWithGWT


On Mon, Mar 19, 2012 at 10:17 AM, Lothar Kimmeringer wrote:

> Am 19.03.2012 14:42, schrieb vijay Rana Bhat:
> > if anyone have a demo program to connect the database from gwt please
> > mail me
>
> since the db-connection needs to happen on the server-side of your
> GWT-application, you can use every jdbc-example being done with
> MySQL out there as reference.
>
>
> Regards, Lothar
>
> --
> 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.
>
>


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



Re: GWT Performance : Good or Bad ?

2012-03-27 Thread Andy Stevko
Bowie,
One issue that I've found when working with GXT and GWT is that they use
different models for drawing the page elements. GWT tends towards attaching
the elements into the DOM immediately whereas GXT caches the elements then
attaches them in bulk.
This will tend to make them appear slow but is really an optimization on
the rendering engine because it doesn't have to do a lot of recalculations.
--Stevko

On Tue, Mar 27, 2012 at 7:12 AM, dhoffer  wrote:

> Regarding GXT I noticed that comparison website is using GXT 2.2.5 yet
> is comparing with new GWT 2.4, if making GWT 2.4 compliant app one
> would probably use the new GXT 3.0 which is in beta right now (almost
> RC)...I wonder how that compairs to GWT 2.4.  I hope not worse.
>
> -Dave
>
>
>
> On Mar 27, 6:28 am, dodo dard  wrote:
> > Thanks Frank,
> >
> > I think that too, GXT make pretty component but very expensive and very
> big.
> > Btw I found an interesting website :  http://gxtvsgwt.appspot.com/after
> > looking at your anwser.
> >
> > Le mardi 27 mars 2012 13:54:52 UTC+2, Frank a écrit :
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > > GXT and SmartGWT have bad performance imo.
> > > Better to write your own widgets (which takes a lot of time) using
> vanilla
> > > GWT and make them perform better.
> > > That is what we did and our GWT projects have very high performance.
> >
> > > Op dinsdag 27 maart 2012 11:55:14 UTC+2 schreef dodo dard het volgende:
> >
> > >> Helo,
> >
> > >> I've got friends complaining about GWT/GXT (GWT Ext) performances,
> well I
> > >> notice that if we put to many component with GXT, there will be a
> certain
> > >> waiting time (3-4s) before it got completely loaded. They said that is
> > >> better to write the application directly with Javascript that may I'm
> not
> > >> agreed 100%. So guys, is there any solution, best practice,
> limitation or
> > >> restriction using GXT/GWT ? Or it can't be helped ?
> >
> > >> Honestly is fun using GWT/GXT, but I'm looking a performance solution
> too.
> >
> > >> Regards,
> > >> Bowie
>
> --
> 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.
>
>


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



Re: GWT Performance : Good or Bad ?

2012-03-27 Thread Andy Stevko
Yep - it sounds like GXT grids are overdriving the system. There hardly
seems enough room for content with all that markup.  If you don't need all
the bells and whistles that come with a gxt grid - it would pay to port to
lighter weight GWT grids or plain  and css. Stripping out excess
forms, element IDs, and css will lighten the load on the rendering engine.

On Tue, Mar 27, 2012 at 8:53 AM, dodo dard  wrote:

> Hi Nino,
>
> Is a catalog application type, you search, list and modify products.
> I have to precise some points :
> - my application will be used largely by IE8.
> - Not all the screen have a performance problem.
> - There is some :
>   - screen that contains : 75 input form, 3 grids (well I have warned my
> client about not using to much components in one page).
>   - A grid with 23 columns that contains at least 10 GridRenderer (well
> I'm working at it now by using less GridRenderer) .
>
> Regards
>
>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/j_Gkpwxio6cJ.
>
> 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.
>



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



Re: How to get page state

2012-03-28 Thread Andy Stevko
Using MVP places -
I try not to reload the browser window but rather redirect to a new Place +
parameters (mypage.html#authreturnpage?x=y&a=b) with the same base URI. The
browser takes in the url load as an event within the same application
context so you don't loose state. Plus its easy to firewall to prevent url
replay attacks.

You may still using the same trick without MVP. Not sure how it manifests
within the app.


On Wed, Mar 28, 2012 at 9:19 AM, Deepak Singh wrote:

>
> Hi,
>
> At some point of time, i have to reload the window (After login through
> Gmail authentication), so i want that the page should be loaded in the same
> state as it was before login.
>
> how can i save the state of the entire page and come back to the same
> state after login ?
>
> Thanks
> Deepak Singh
>
> --
> 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.
>



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



Re: DatePicker next/prev month events

2012-04-07 Thread Andy Stevko
Yes, create a class in your own project src tree with the Google package
name to access default scoped methods.
On Apr 7, 2012 4:23 PM, "Nikola Markovic"  wrote:

> I'm not sure I understand you. Create a class inside a
> com.google.gwt.user.datepicker.client package, which is provided in the GWT
> library as gwt-user.jar? I don't think I know how to.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/mIZvCab4fOAJ.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: GWT with a non-java server

2012-04-08 Thread Andy Stevko
That is a pretty broad question. What is your non-java server? What
protocols does it support? "Ajax etc" is not a communications protocol.


On Fri, Apr 6, 2012 at 4:58 AM, Traktor Toni wrote:

> Hi guys, I'm new to GWT and pretty confused on how to include it into my
> workflow. I just ran the first sample tutorial. So I understand how the
> whole deal works with the embedded jetty server. So far so good. But
> naturally I have my own non-java server, and I want to use that one to
> respond to all requests, ajax etc. How do I do that, as I understand it, I
> can't have two applications listen on the same port?
>
> I'm sure this is a very common problem.
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/ELpBU67cTAcJ.
> 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.
>



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



  1   2   >