Re: javax.persistence package

2009-09-03 Thread Dalla

If you have complex objects that you need to map, you might need to
write configuration files.
To be honest, I don´t know what´s meant by complex objects, I don´t
have any configuration files at all
for my Dozer implementation, and it works like a charm, even when
mapping nested objects.

I have my DTOs on the client side aswell, by I´m not the one to answer
your security question.
Our application is only used inhouse.


On 2 Sep, 19:38, Tolga Özdemir tka...@gmail.com wrote:
 Hi, hmm it sounds good..
 I downloaded a sample gwt project with dozer (the music store)..When I look
 at the file structure, I noticed that this sample contains all mapping files
 and DTOs.. Including I have to write a dozer map file..

 In my own sample project I did the same putting my DTOs into the client side
 directly without dozer map but it still works...

 I wonder what dozer gives me as an advantage - it seems it does not
 guarantee writing less config files? is it a security issue that we do not
 to put DTOs in client side in dozer project?

 Thanks,

 Tolga





 On Wed, Sep 2, 2009 at 4:54 PM, Dalla dalla_man...@hotmail.com wrote:

  Yes, exactly.

  This is pretty much it:

  DozerBeanMapper mapper = new DozerBeanMapper();

  //This is a mapping from EJB to POJO
  //SimpleHeader is my POJO, purchaseOrderHeader is an instance of the
  corresponding EJB.
  SimpleHeader header = (SimpleHeader) mapper.map(purchaseOrderHeader,
  SimpleHeader.class);

  //Mapping from POJO back to EJB looks exactly the same
  //Here, Arrivals is the EJB, arrivaldata is an instance of the
  corresponding POJO
  Arrivals arrivals = (Arrivals) mapper.map(arrivaldata,
  Arrivals.class);

  So if you already have EJBs and want to use Dozer, all you have to do
  is basically make a copy of your EJB, remove all annotations
  and imports of javax.* packages, create a default no argument
  constructor, and make the new POJO implement IsSerializable.

  On 2 Sep, 14:19, Tolga Özdemir tka...@gmail.com wrote:
   hmm.. you mean your EJB classes - your DTOs - are in serverside and by
  using
   dozer.. you automatically translate them and use in client side, right?

   On Wed, Sep 2, 2009 at 3:03 PM, Dalla dalla_man...@hotmail.com wrote:

Correct, not on the client side anyway.
GWT does not emulate  javax.persistence.*, importing that package on
the client side would cause errors when compiling.
However you COULD use EJB3, if you keep the mappings in a separate
file. But´s that´s not very flexible.

I use EJB3 myself on the server side, and then use Dozer to convert
the EJBs to POJOs before sending them to the client.
Once the objects is sent back, you convert it back to an EJB, Works
like a charm so far.

On 2 Sep, 13:26, Tolga Özdemir tka...@gmail.com wrote:
 oh..it does mean we cannot use ejb3 yet.. right?

 On Wed, Sep 2, 2009 at 2:13 PM, David Given d...@cowlark.com
  wrote:

  tolga ozdemir wrote:
  [...]
   Can you enlighten me wheather we could use javax.persistence.* in
  our
   serialized DTO objects for the sake of RPC??

   can I use @Table, @Id or other annotations?

  The GWT runtime ignores annotations --- they're not kept at runtime
  on
  the client. So you can pass annotated objects perfectly happily
  over
the
  link and they'll work fine.

  I've had good experiences using Berkeley DB JE and GWT. It's
  possible
to
  query an object on the server, have Berkeley DB instantiate it for
  me,
  and then just return it directly to the client for display. So I'd
  imagine you could use something similar with javax.persistence.

  The only thing you probably need to be concerned with is that if
  you
  instantiate an object on the server, pass it to the client, then
  pass
it
  back to the server, you're getting a different physical object than
  the
  one you originally instantiated so the persistence layer might get
  its
  cacheing confused. (Berkeley DB doesn't seem to be bothered by
  this.)

  --
  ┌─── dg@cowlark.com ─http://www.cowlark.com─
  │
  │ They laughed at Newton. They laughed at Einstein. Of course,
  they
  │ also laughed at Bozo the Clown. --- Carl Sagan

 --
 Tolga Özdemir

 Mobile 0 536 963 7890
 MSN ozde...@hotmail.com- Dölj citerad text -

 - Visa citerad text -

   --
   Tolga Özdemir

   Mobile 0 536 963 7890
   MSN ozde...@hotmail.com- Dölj citerad text -

   - Visa citerad text -

 --
 Tolga Özdemir

 Mobile 0 536 963 7890
 MSN ozde...@hotmail.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 

Re: Custom boot-strap / setting locale from request headers

2009-09-03 Thread Thomas Broyer



On 2 sep, 23:50, mayop100 mayop...@gmail.com wrote:
 Hey Guys -

 There's a section on this 
 page:http://code.google.com/webtoolkit/tutorials/1.6/i18n.html

 That suggests that there's an easy way to set the user's locale by
 parsing the Accept-Language header in the user's request. I want to
 have my GWT app always display the locale specified in the client's
 Accept-Language header - not the locale specified in the host page. I
 think I should be able to write a servlet to do this... and it sounds
 like this is possible based on that page, but I don't know enough
 about the bootstrap process to actually make this work. Has anyone
 else done this?

To make it simple, we're using Apache's MultiViews with several copies
(not copies actually, as we have some static HTML that needs to be
translated): index.html.fr, index.html.en, etc.
And each page loads the appropriate locale using a meta
name=gwt:property content=locale=fr
(see 
http://code.google.com/webtoolkit/doc/1.6/DevGuideI18nAndA11y.html#DevGuideSpecifyingLocale
)

but you could achieve the same using some servlet or JSP as your host
page, and generating the appropriate meta; there's something about
it in the GWT Incubator IIRC: 
http://code.google.com/p/google-web-toolkit-incubator

 A more general question is - is there a way I could write a servlet
 that pulls the client's browser type and locale from the request
 headers and returns the appropriate GWT permutation? This would let me
 skip the entire Proj.nocache.js bootstrap process and speed up
 initialization. I feel like this shouldn't be too hard, but I don't
 really know what setup goes on in the nocache.js bootstrap file. Has
 anyone done this before? Can this be done? or is there essential setup
 that occurs in the bootstrap file?

the *.nocache.js also loads the stylesheet and javascript
dependencies, so it's a bit more than just selecting the appropriate
permutation.
Also, although you could determine the browser type on the server
side, you would have to make a choice when it comes to IE8, as it
could use either the ie6 or ie8 permutation depending on the
documentMode.
--~--~-~--~~~---~--~~
You received 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: MySQL Connection

2009-09-03 Thread Lothar Kimmeringer

[quoting repaired]

GumbyGWTBeginner schrieb:
 On Sep 3, 10:36 am, Isaac Truett itru...@gmail.com wrote:
 Stephan,

 You need to make a request to the server for the data. The server can
 connect to the database and return the results to the browser. If your
 server is running Java, then GWT RPC is a good method. For non-Java
 servers, JSON could work for you.

 See:http://code.google.com/webtoolkit/doc/1.6/DevGuideServerCommunication...

 Hope that helps.

 Will this (what is documented on that link) work if I runn on my local
 PC?

Sure, the GWT development package comes with an integrated
HTTP-server, that is used for the hosted mode. If you want
to use it in productive use, you need to install your own
HTTP-server, e.g. Tomcat. The server must be able to run
so called Java Web Applications (that in general come as
war-file).

 Do I have actually host the MySQL DB on a webserver?

Not necessarily, MySQL allows to be installed on a different
machine that is connected via the network using JDBC.


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



Re: Download file

2009-09-03 Thread chandrahas koyari

Yes you have to create a GWT hyperlink and point it to the resource.

On Sep 2, 6:28 pm, ALEXEI BARBONI alexeitel...@gmail.com wrote:
 Hi chandrahas, thanks for the answer

 I've been out from work last week.

 Now I have to create a way to the user of my application make a download of
 a file that is in the server.
 I know the exactly location of the file and its name.

 But I don't understand how to create a link (would be a GWT Hyperlink) that
 point to my file. I think this way is easier than to create a servlet.

 Could anybody give me a little help about?

 thank you guys again

 2009/8/25 chandrahas koyari koy...@gmail.com



  There are two general methods to achieve it
  1. Create a link which directly point to that resource (file)
  2. Point to a Servlet which respond with a file (by using
  getResourceAsFile() )

  On Aug 25, 2:50 am, Alexei Telles alexeitel...@gmail.com wrote:
   Hi...

   I need to create a link in my web application where the user will
   download a file that is in my server.

   I was searching for something in the web, but I could not find
   something about.

   Is there any GWT tool that allow me to develop a link in my
   application to make a download from the server to the client?

   Or another way that you guys use to do?

   Thanks again
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Forwarding to TomCat

2009-09-03 Thread Paul Grenyer

Hi All

This may be entirely the wrong place to ask this question, but I'm
hoping someone here has done something similar. If anyone objects to
this I am more than prepared to desist.

What I want to do is this:

1. Host Apache or IIS on an externally facing server and have it serve
static things like images and (GWT) JavaScript.
2. have IIS/Apache forward requests for HTML pages (which are served
up via Spring MVC on TomCat), RPC calls and webservice requests to
TomCat on an internal machine (presumably through a firewall with the
appropriate port open).

This will give me a number of things:

1. Better security
2. Move the serving of the big stuff from TomCat to Apache/IIS

Any help greatly appreciated.

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.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-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: errors with google plugin for eclipse

2009-09-03 Thread pepgrifell


I found the solution to the first problem :

**
Failure while parsing XML org.xml.sax.SAXNotRecognizedException:
http://apache.org/xml/features/nonvalidating/load-external-dtd
at oracle.xml.jaxp.JXSAXParserFactory.setFeature
(JXSAXParserFactory.java:128)
**

When compiling the project with the plugin, I added this lines in VM
arguments:

-Dbootclasspathc:/path_to_xerces_jar/xercesImpl.jar
-Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser
-
Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl
-
Djavax.xml.parsers.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl
-
Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl

So now I can start OC4J without errors. Probably I will have to do the
same when starting the emulated host. Now I will go to check the next
problem :

*
Module declares 17 servlet declaration(s), but a valid 'web.xml' was
not found at 'D:\branch_eclipse3.3_view\sources\GemmaWeb\war\WEB- INF
\web.xml'
**


On 2 sep, 16:53, pepgrifell pepgrif...@gmail.com wrote:
 hi,

 I moved from GWT1.5.3 to GWT1.6/1.7.  I installed google plguin in
 eclipse (Europa) and I did the changes in the directory structure.
 When I try to compile the app. with the pguing (red suitcase) I get
 thsi error:

 Loading module 'GemmaModule'
    [ERROR] Failure while parsing XML
 org.xml.sax.SAXNotRecognizedException:http://apache.org/xml/features/nonvalidating/load-external-dtd
         at oracle.xml.jaxp.JXSAXParserFactory.setFeature
 (JXSAXParserFactory.java:128)
         at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse
 (ReflectiveParser.java:307)
         at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$100
 (ReflectiveParser.java:48)
         at com.google.gwt.dev.util.xml.ReflectiveParser.parse
 (ReflectiveParser.java:385)
         at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad
 (ModuleDefLoader.java:243)
         at com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java:
 155)
         at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule
 (ModuleDefLoader.java:269)
         at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath
 (ModuleDefLoader.java:127)
         at com.google.gwt.dev.Compiler.run(Compiler.java:156)
         at com.google.gwt.dev.Compiler$1.run(Compiler.java:124)
         at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
 88)
         at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger
 (CompileTaskRunner.java:82)
         at com.google.gwt.dev.Compiler.main(Compiler.java:131)

 In a post, I read that someone has put xercesImpl.jar inside jdk/jre/
 lib/ext. Then error disappear and compilation is ok.  The problem then
 is that when I deploy the application (EAR) in my application server,
 when I start the server I get an error caused by xercesImpl.jar inside
 jdk/jre/lib/ext.

 Apart from this, if I start the emulated host, without the xerces lib
 I get this error:
 ***­**
 Unable to process 'file:/D:/branch_eclipse3.3_view/sources/GemmaWeb/
 war/WEB-INF/web.xml' for servlet validation
 [DEBUG] Bootstrap link for command-line module 'GemmaModule'
 [TRACE] Loading module 'GemmaModule'
 Failure while parsing XML

 with this error:

 [ERROR] Failure while parsing XML
 org.xml.sax.SAXNotRecognizedException:http://apache.org/xml/features/nonvalidating/load-external-dtd
         at oracle.xml.jaxp.JXSAXParserFactory.setFeature
 (JXSAXParserFactory.java:128)
         at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse
 (ReflectiveParser.java:307)
         at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$100
 (ReflectiveParser.java:48)
         at com.google.gwt.dev.util.xml.ReflectiveParser.parse
 (ReflectiveParser.java:385)
         at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad
 (ModuleDefLoader.java:243)
         at com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java:
 155)
         at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule
 (ModuleDefLoader.java:269)
         at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath
 (ModuleDefLoader.java:127)
         at com.google.gwt.dev.HostedModeBase.loadModule(HostedModeBase.java:
 536)
  

F1 key press event on Panel

2009-09-03 Thread vruddhi shah
Hello,

I want an Absolute Panel can fire event on keyboard F1 key. I have used
sinkEvents(Event.KEYEVENTS) and implements  method as follows :

public void onBrowserEvent(Event event)
{
   System.out.println(keycode+event.getKeyCode());
}

But, It doesn't work. Can any one help me out?

-- 
Vruddhi Shah
Pyther Innovations Pvt. Ltd.
Land line: 91 78 40074893
617, Devpath Complex
C.G. Road, Ahmedabad
India
www.gwt4enterprise.com

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



Re: How can I center arbitrary content on a fixed-size button?

2009-09-03 Thread Jim Douglas

I've got a tentative solution, but it's not quite the pure css
approach I was hoping for:

(1) Define GWT's html-face style as:

.html-face
{
display: table;
height: 100%;
margin: auto;
}

(2) Wrap the user's text inside:

html
div style=\display: table-cell; vertical-align: middle;\
user-defined-text
div
html

Is there a better/simpler approach that I'm missing?

On Sep 2, 6:27 pm, Jim Douglas jdoug...@basis.com wrote:
 I'm getting hung up on something that seems like it ought to be
 trivial.  I've got a fixed-size GWT Button and I need to render it
 (preferably using just static CSS rules) such that any arbitrary text
 or HTML content a user throws at it is centered both horizontally
 (that part's easy) and vertically (that part is driving me around the
 bend).

 In Java, AbstractButton.setVerticalAlignment(CENTER) just happens; you
 don't have to think about it.  But I can't seem to find any way to
 achieve this same effect on a GWT Button.

 Horizontal alignment is trivial:  text-align: center.  But I've spent
 a couple of days trying increasingly bizarre strategies 
 (http://www.google.com/search?q=css+vertical+align) trying to achieve vertical
 alignment, with no success to speak of.

 Has anyone else struggled with this problem (or solved it)?

 Regards,
 Jim.
--~--~-~--~~~---~--~~
You received 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: ext-GWT vs GWT-ext

2009-09-03 Thread Shawn Brown

Hi,

 ExtGWT --which
 contains the JS underlying GWTExt - upto 2.0.2-- did a dirty move a
 year or so ago when they changed their licensing model; as a result
 there was a falling out between the two projects.

Um, ExtJS was underlying GWTExt - no?
ExtJS went GPL - no?

I guess if you are of a certain ideology then you prefer a BSD type
license.  Calling moves to the GPL dirty are flame bait I think.

Sun went GPL with Java.  Why don't you stop programming with Java?

Shawn

--~--~-~--~~~---~--~~
You received 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: Iframe = multithreading ???

2009-09-03 Thread David Given

ben fenster wrote:
 your answear is based on your knolage in js but i need an answear
 based on actual in depth knowlage in how browser work since each
 iframe act as an independed wep page and loaded sepertly

No, you misunderstand --- if your code can see an iframe, that iframe 
must be part of the same Javascript VM as your code, and therefore must 
be part of the same thread. The spec requires it.

Iframes aren't as independent as you think.

-- 
┌─── dg@cowlark.com ─ http://www.cowlark.com ─
│
│ They laughed at Newton. They laughed at Einstein. Of course, they
│ also laughed at Bozo the Clown. --- Carl Sagan

--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Good practice: setting style before adding it to a panel!

2009-09-03 Thread Ed

He All,

I would like to share the following good GWT programing practice (It
just cost me to solve a tinny bug because of this):
-- Set any style name/attribute just after a widget is created, before
it's added to any panel!!!

So do something like this:
Widget wid = new HTML(test);
wid.addStyleName(someStyleName);
FlowPanel panel = new FlowPanel();

And NOT this:
Widget wid = new HTML(test);
FlowPanel panel = new FlowPanel(); // or some other panel
wid.addStyleName(someStyleName);


Wy?
Suppose the panel is doing some sort of animation to add/insert the
widget, like a slide/move, etc... animation. Then you could be in
trouble in case the style name contains dimension information (width/
height) or other stuff that is used in your animation.. The dimensions
that are retrieved by the animation that is contained in the flow
panel will then be incorrect, as the style isn't set yet...
This can lead to strange behavior depending on when the style is set,
and what animation you use.. I may case it also was different in FF
and IE..
In my case: I perform a slide in/out animation before the style name
was set, such that the widget looked much bigger during the slide
animation in IE (not FF) and all of a sudden turned to normal again
after doing something else on the screen after the animation was
complete.

I put a little check in my animations now and check the style
information that I need at the start and finish of the animation, as
they should be the same, which wasn't in my case.

So in general it's a good pratice to always set the style name/
attributes before adding your widget to any panel. Maybe you don't use
animation, but you never know what will come in the future...  And
then al of a sudden you get these strange bugs after an upgrade of
your own software or GWT.


BTW: I noticed that the framework gwt-fx performs the slide animation
in a deferred command, maybe for this reason



--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Hosted mode hangs on localhost...

2009-09-03 Thread Pietro Marrone

Hi, I'm using Google Plugin for Eclipse to create the Web
Application Starter Project.
Unfortunately the project hangs on hosted mode, exactly only the
static content appear while the input type and the button are missing.

this is the hosted mode relavant log:
[DEBUG] Initializing module 'test' for hosted mode
[SPAM] uri=/test/hosted.html?test
[SPAM] fields=Host: localhost:50250

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/
20050920

Accept: text/xml,application/xml,application/xhtml+xml,text/
html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5

Accept-Language: en-us,en;q=0.5

Accept-Encoding: gzip,deflate

Accept-Charset: UTF-8,*

Keep-Alive: 300

Connection: keep-alive

Referer: http://localhost
[SPAM] EXCEPTION
org.mortbay.jetty.HttpException: null
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:276)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at org.mortbay.io.nio.SelectChannelEndPoint.run
(SelectChannelEndPoint.java:395)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run
(QueuedThreadPool.java:488):50250/Test.html


[SPAM] BAD

The curious is that on the same hosted browser on 127.0.0.1 url works
fine, and compiled for firefox external browser works for both
localhost and 127.0.1

Following is my environment:
Linux Ubuntu 9.04 Desktop
java-6-sun-1.6.0.14
gwt-linux-1.7.0

Any suggestion would be appreciate

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



[ANNOUNCE] HtmlUnit 2.6, a headless java browser, released

2009-09-03 Thread Ahmed Ashour

A new release of the Open Source java GUI-Less browser is available,
which allows high-level manipulation of web pages, such as filling
forms, clicking links, accessing attributes and values of specific
elements within the pages, you do not have to create lower-level
requests of TCP/IP or HTTP, but just getPage(url), find a hyperlink,
click() and you have all the HTML, JavaScript, and Ajax are
automatically processed.

The most common use of HtmlUnit is test automation of web pages (even
with complex JavaScript libraries, like GWT and jQuery), but it can
also be used for web scraping, or downloading website content.

The main enhancements of this release:
- Use cache for all kinds of (cacheable) content
- Fix many issues with (de)serialization/li
- Add a mechanism to save complete page along with images
- Add support for Proxy Auto-Config
- Better support for XHTML pages
- And as usual, various bug fixes

You can find more information in http://htmlunit.sourceforge.net/, the
development team is looking forward to getting your feedback.
--~--~-~--~~~---~--~~
You received 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: Need Help in setting up GWT

2009-09-03 Thread Satya

Thank you very much. I am going thru these docs and links for
understanding

On Sep 3, 1:16 am, Rahul coolrahul18...@gmail.com wrote:
 HiSatya,

 Here are some tutorials which tell you step by step how to work with
 GWT

 http://code.google.com/webtoolkit/tutorials/1.6/create.html

 also you would also like this, these are some basic tutorials abt gwt

 http://examples.roughian.com/#Home

 On Sep 2, 4:10 am,Satyasatya@gmail.com wrote:

  Hello All,

  My need is to develop a web application with rich UI and deploy onto
  externat server, so i decided to use GWT.
  Can you let me understand in setting up dynamic web project in
  eclipse?

  I tried setting up project using WebAppCreator.cmd from gwt
  distribution but i cannot deploy that onto eclipse-integrated-tomcat-
  server. I created dynamic web project from eclipse but that does not
  run on hosted mode.
  I also created project by using google plugin, but no success on
  running on integrated-tomcat, but i can run this as
  GoogleWebApplication .

  How do I create a project in eclipse and proceed?

  Regards,
 Satya

--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



MSIE7 Syntax Error using large GWT app

2009-09-03 Thread Pieter Breed

Hi,

My company uses the GWT toolkit (1.5.3) for one of our products. One
of our clients (a corporate) still uses a pre-WinXP-SP3 copy of MSIE7
which causes this bug to appear. (http://code.google.com/p/google-web-
toolkit/issues/detail?id=1440)

I've checked our jars, they do include the patch for this bug, but we
are still getting this error. (on msie7 we get a syntax error on line
1 as the application loads)

Is this a related but different bug? Is this maybe the same bug in a
different guise? Does anybody have advice for us in this regard?

Regards,
Pieter

--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Client Locale Auto-detection

2009-09-03 Thread picosam

Hello,
I'm not using JSP and I would like to auto-detect the client's
(browser's) locale and use it. How is it possible to do so?
Thank you,
Sammy

--~--~-~--~~~---~--~~
You received 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 application does not run ie7

2009-09-03 Thread Ian Bambury
Without seeing the code, it's hard to tell. Personally, I'd level all the
browsers and then see what you get. It has to be margin or padding on
something, or some blank div that gets displayed in IE and not elsewhere.
Ian

http://examples.roughian.com


2009/9/3 aftershock ante...@gmail.com


 Looking at the IE version, it looks like you have a version which
 works and not the version that does not work.

 Do you mind if I ask you something else?

 In IE,I can see a wide line before the embedded application. I tried
 to make it disappear but I could not se far.
 How can I remove that?

 -I tried changing the tag of embedding application from div to span.no
 effect.
 -I tried display: block-inline style. no effect.
 -I tried to set padding and margin of body to 0. no effect.


 


--~--~-~--~~~---~--~~
You received 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: Good practice: setting style before adding it to a panel!

2009-09-03 Thread Ian Bambury
I can't see how creating a flowpanel between creating a widget and adding a
style would make any difference whatsoever.
Ian

http://examples.roughian.com


2009/9/3 Ed post2edb...@hotmail.com


 He All,

 I would like to share the following good GWT programing practice (It
 just cost me to solve a tinny bug because of this):
 -- Set any style name/attribute just after a widget is created, before
 it's added to any panel!!!

 So do something like this:
 Widget wid = new HTML(test);
 wid.addStyleName(someStyleName);
 FlowPanel panel = new FlowPanel();

 And NOT this:
 Widget wid = new HTML(test);
 FlowPanel panel = new FlowPanel(); // or some other panel
 wid.addStyleName(someStyleName);


 Wy?
 Suppose the panel is doing some sort of animation to add/insert the
 widget, like a slide/move, etc... animation. Then you could be in
 trouble in case the style name contains dimension information (width/
 height) or other stuff that is used in your animation.. The dimensions
 that are retrieved by the animation that is contained in the flow
 panel will then be incorrect, as the style isn't set yet...
 This can lead to strange behavior depending on when the style is set,
 and what animation you use.. I may case it also was different in FF
 and IE..
 In my case: I perform a slide in/out animation before the style name
 was set, such that the widget looked much bigger during the slide
 animation in IE (not FF) and all of a sudden turned to normal again
 after doing something else on the screen after the animation was
 complete.

 I put a little check in my animations now and check the style
 information that I need at the start and finish of the animation, as
 they should be the same, which wasn't in my case.

 So in general it's a good pratice to always set the style name/
 attributes before adding your widget to any panel. Maybe you don't use
 animation, but you never know what will come in the future...  And
 then al of a sudden you get these strange bugs after an upgrade of
 your own software or GWT.


 BTW: I noticed that the framework gwt-fx performs the slide animation
 in a deferred command, maybe for this reason



 


--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



serialization

2009-09-03 Thread ben fenster

what is  preformence wize the best
Json Serializing lib
--~--~-~--~~~---~--~~
You received 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: Iframe = multithreading ???

2009-09-03 Thread ben fenster

ok  thats sounds right but if thats true can i access static classes
in the entrypoint module from a seperate module loaded in an iframe
(that ofcours exists in the first module) ?

On 3 ספטמבר, 03:00, David Given d...@cowlark.com wrote:
 ben fenster wrote:
  your answear is based on your knolage in js but i need an answear
  based on actual in depth knowlage in how browser work since each
  iframe act as an independed wep page and loaded sepertly

 No, you misunderstand --- if your code can see an iframe, that iframe
 must be part of the same Javascript VM as your code, and therefore must
 be part of the same thread. The spec requires it.

 Iframes aren't as independent as you think.

 --
 ┌─── dg@cowlark.com ─http://www.cowlark.com─
 │
 │ They laughed at Newton. They laughed at Einstein. Of course, they
 │ also laughed at Bozo the Clown. --- Carl Sagan
--~--~-~--~~~---~--~~
You received 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: div layout

2009-09-03 Thread Ian Bambury
Please don't shout, I've got a hangover.
Yours is a (basic) HTML/CSS question and this is a GWT group. That, like
shouting at us, will also reduce your chance of getting a direct answer from
the people here.

Here's an indirect answer: try searching for 'floatutorial', an excellent
resource if you need to learn this kind of thing.

Ian

http://examples.roughian.com

2009/9/3 ben fenster fenster@gmail.com


 HOW CAN I USE THE HTMLPANEL WIDGET TO CREATE 2 SIDE BY SIDE DIV TAGS
 WHICH ONE HAS 200PX WIDTH AND THE OTHER WIDTH USES THE REST OF THE
 PAGE WIDTH
 


--~--~-~--~~~---~--~~
You received 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: Good practice: setting style before adding it to a panel!

2009-09-03 Thread Ed

That's what I am explaining above...

Note: the Flow Panel is just a panel and I assume that, in this case,
the dimensions are used during the inser/add action in the panel.

However, maybe I could have better taken another Panel to not confuse
it with the current functionality of the FlowPanel, that is: no
animation, simple insert/add/remove (at this moment)...

I my case: I wrap many panels of gwt, to add additional functionality
in a transparent way, like animation..

The point is: you are in trouble if the style information is used
during the add/insert/remove action in the panel...


--~--~-~--~~~---~--~~
You received 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: Good practice: setting style before adding it to a panel!

2009-09-03 Thread Ed

(adding to my last sentence):
 ... before you set the style info on the widget...
--~--~-~--~~~---~--~~
You received 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: ext-GWT vs GWT-ext

2009-09-03 Thread Martin Kraus
Great, another clueless response.

um, you are a *Ext* fanboy - no?

There's a huge difference between a platform / app server / Java and a
library being GPL. A library being GPL means you need you release the source
of your entire application, simple. An app server or Java being GPL has
absolutely no effect on the licensing and distribution of your application
while  using  GPL library means that you need to release all your code
making it unsuitable for use in commercial products. btw where did you read
that Java bait and switched to GPL?

We were considering using products from the Ext family a long time ago but
avoid it like the plague now. Our legal team looked at it and found numerous
violations and we did report in on the Ext / ExtGWT forums but the posts
were mostly ignored or deleted. For example ExtGWT still uses some code from
SWT. SWT is licensed under EPL and EPL is well documented to be incompatible
with GPL. See http://en.wikipedia.org/wiki/Eclipse_Public_License  Since we
are no longer planning on using ExtGWT, I have no intentions of burning any
more time trying to get them to resolve this.

If you are going to make such statements or take a bait, do your homework
first.

To the original poster : we have decided to go with GWT and GWT incubator
widgets and have had excellent results.

On Thu, Sep 3, 2009 at 5:44 AM, Shawn Brown big.coffee.lo...@gmail.comwrote:


 Hi,

  ExtGWT --which
  contains the JS underlying GWTExt - upto 2.0.2-- did a dirty move a
  year or so ago when they changed their licensing model; as a result
  there was a falling out between the two projects.

 Um, ExtJS was underlying GWTExt - no?
 ExtJS went GPL - no?

 I guess if you are of a certain ideology then you prefer a BSD type
 license.  Calling moves to the GPL dirty are flame bait I think.

 Sun went GPL with Java.  Why don't you stop programming with Java?

 Shawn

 


--~--~-~--~~~---~--~~
You received 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: Good practice: setting style before adding it to a panel!

2009-09-03 Thread Ed

A oepsss.. good point Ian, thanks... :(
Mistake in the code examples...
They should be:

So do something like this:
Widget wid = new HTML(test);
SomePanel panel = new SomePanel();
wid.addStyleName(someStyleName);
panel.add(wid);

And NOT this:
Widget wid = new HTML(test);
SomePanel panel = new SomePanel();
panel.add(wid);
wid.addStyleName(someStyleName);

--~--~-~--~~~---~--~~
You received 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: Good practice: setting style before adding it to a panel!

2009-09-03 Thread Ian Bambury
But there is no interaction between 'wid' and 'panel' in the code you gave,
you just create a flowpanel. If that affects how some other part of your app
is displayed, there is something wrong.
Ian

http://examples.roughian.com


2009/9/3 Ed post2edb...@hotmail.com


 That's what I am explaining above...

 Note: the Flow Panel is just a panel and I assume that, in this case,
 the dimensions are used during the inser/add action in the panel.

 However, maybe I could have better taken another Panel to not confuse
 it with the current functionality of the FlowPanel, that is: no
 animation, simple insert/add/remove (at this moment)...

 I my case: I wrap many panels of gwt, to add additional functionality
 in a transparent way, like animation..

 The point is: you are in trouble if the style information is used
 during the add/insert/remove action in the panel...


 


--~--~-~--~~~---~--~~
You received 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: rpc serialization problem

2009-09-03 Thread Chris Lowe

Are the List fields on your objects specified in terms of interfaces?
GWT RPC needs to know as much about your objects at compile time,
could you try using a concrete class instead - preferably ArrayList?

It sounds like you're trying to serialize ORM objects directly, is
that right?  I don't know much about Data Nucleus and whether or not
it dynamically enhances entity objects under its control with proxies
etc.  My experience is with Hibernate which usually does add something
to a class, so serializing entities directly is strongly discouraged -
either the entity objects have to be filtered of the Hibernate
extras, or values copied into DTOs.

On Sep 2, 10:35 am, jvoro...@googlemail.com
jvoro...@googlemail.com wrote:
 Hallo,
 i have the same problem.
 List (GWT) can not be used in DataNuceleus.

 Can every one help pleas!
 THX

 On 5 Aug., 04:52, mike m...@introspect.com wrote:



  I have a simple one-to-many betwen two entities.  The parent entity
  uses List to contain the child entities.  I am able to persist these
  entities in the datastore without problems.

  However, when reading a root entity at the server, I get:

  rpc.SerializationException: Type 'org.datanucleus.sco.backed.List' was
  not included in the set of types  which can be serialized...

  The entities are successfully read from the datastore, but something
  in Datanucleus doesn't build the List correctly.

  Has anyone found a workaround for this serialization problem.

  Thanks

  GWT 1.7 GAE 1.2.2
--~--~-~--~~~---~--~~
You received 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, MVP, and nested widgets

2009-09-03 Thread Jason A. Beranek

Ian,

Ok, I think I understand what are trying to do. Let me expand a bit on
the addMenuItem( Object i..); example in something a little less
abstract. First, I'm assuming your MenuItem is not equivalent to the
GWT MenuItem class, if it is the solution would be different. Note, I
don't have a full example so mileage may very. The approach is meant
to deal with MVP of list type interfaces, where the list items (i.e.,
MenuItem) bubble events up to a list presenter (i.e. MenuPanel).

The example assumes that instead of each MenuItem reporting
PlaceChange events, MenuItem selection events are bubbled from the UI
up to the MenuPanel presenter (through its view) and the MenuPanel
presenter fires the PlaceChange event. Effectively, a MenuItem's
display becomes a simple widget within MenuPanel's view and doesn't
require its own presenter (the presenter's work is handled by
MenuPanel's presenter).

First, some simple setup:

public class MenuPanel {

  interface Display {

void addMenuItem( String label, String token );

HasSelectionHandlersString getMenuItemSelectionButton();

void clearMenuItems();
  }

  ...

}

The above class shows a possible piece of the MenuPanel display
interface. I am assuming in the above that a MenuItem takes a label
that defines how the UI displays the object and the token as you
describe above for the associate place/location when the item is
clicked. In this example, the MenuPanel presenter determines the menu
items required for the current place and calls addMenuItem to tell the
MenuPanel view the MenuItem widgets to construct in the UI. The
clearMenuItem method can be used clear the MenuItems to rebuild the
specific items when the page changes.  Notice that I included another
Display method called getMenuItemSelectionButton(), this returns an
object the MenuPanel presenter can add a handler to so it can detect a
MenuItem selection event. Here's an example of the bindDisplay method:

void bindDisplay( Display display ) {
  this.display = display;

  //Listen for a token selection when the user picks a MenuItem
  display.getMenuItemSelectionButton().addSelectionHandler( new
SelectionHandlerString() {


public void onSelection( SelectionEventString event ) {

  //Call MenuPanel private method to fire PlaceChangeEvent on
EventBus, selected item represents the Place token
  doPlaceChange( new PlaceChangeEvent( event.getSelectedItem() );

  });
  ...
}

With the above in place, the MenuPanel view becomes responsible for
translating the user input  on MenuItems (such as a native Click
event) into a logical SelectionEvent

The above approach breaks down if the list items require a lot of data
to build or if the list items require additional logic beyond the
scope of the containing presenter. As I said in my previous post, this
approach also suffers from similar interface management problems as
DTOs.

-Jason

On Sep 2, 7:44 pm, Ian Bambury ianbamb...@gmail.com wrote:
 Hi Jason,
 Thanks for the reply and suggestions.

 My idea was to have the MenuPanelView have a factory method for
 MenuItemViews.

 The MenuPanel presenter has to determine what menu items are required
 depending on whether the user privileges.

 I don't really understand how your addMenuItem( Object i ); method would
 work.

 I can't really have each view just create its own presenter (as a general
 principle) as far as I can see. What I want to end up with is a menu item
 which fires a PlaceChange event when it is clicked - for this it needs a
 token, for example GWT/Panels/SimplePanel (where GWT is an item in the
 top-level menu, Panels is an item in the GWT menu, and SimplePanel is a
 final page of information to be displayed).

 Each menu would set itself up if required by listening for a PlaceChange
 event, and if a page recognised it was needed, it would display itself.

 This, though, means that the MenuPanel needs to do a bit of setting up for
 the menu items and associated pages.

 It isn't actually quite the mess it probably sounds. All the hard work is
 done in a hierarchy of a few abstract classes, so to create a new menu, all
 you really need to is specify the menu text and the page it refers to, But I
 do get the feeling I'm stretching the MVP pattern well out of shape in order
 to get it all to work.

 Ian

 http://examples.roughian.com

 2009/9/3 Jason A. Beranek jason.bera...@gmail.com



  Ian,

  When you mention your current solution fetches the MenuItem view from
  the MenuPanel view, do you mean the MenuItem view(s) are already in
  the MenuPanel view or do you mean the MenuPanel view acts as a factory
  for MenuItem views? I have been experimenting a bit with the former,
  though I imagine the latter would work. One approach I've also tried
  for list based structures that might work for your list of Menu Items
  is to make a function on the display interface to add the data
  elements to build the MenuItem view from primitives:

  interface MenuIPanelView {
   void 

Re: Does GWT work in Snow Leopard?

2009-09-03 Thread Alex Moffat

I have another work around that involves changing the
BootStrapPlatform class in gwt-dev-mac.jar to remove the check for
java 1.5. If you do this then you can use java 1.6 with the -d32 flag
and it works fine. More details at http://development.lombardi.com/?p=1012

On Aug 31, 6:35 pm, Jim Douglas jdoug...@basis.com wrote:
 Hi Sumit,

 That workaround is really not acceptable.  Because Apple considers
 the JVM to be part of the operating system, messing in those
 directories amounts to hacking the O/S.  It's unsafe, unsupported, and
 can -- and probably will -- arbitrarily drop dead at any time with an
 O/S update.

 I could easily be missing something important, but it seems like this
 should be a fairly easy thing for you to patch.  My understanding is
 that the issue with GWT is that you need a 32-bit JVM, and in Mac OS X
 Leopard, the only way to get a 32-bit JVM is to use Java 5; the
 Leopard Java 6 is 64-bit-only.  But in Snow Leopard, you can invoke
 Java 6 with java -d32 ..., and you will get a 32-bit JVM.  Wouldn't
 this work for GWT hosted mode?

 Regards,
 Jim.

 On Aug 31, 3:58 pm, Sumit Chandel sumitchan...@google.com wrote:



  Hi all,
  Hosted mode will be getting an exciting makeover soon, in the form of
  Out-Of-Process Hosted Mode (OOPHM). With OOPHM, hosted mode runs as a plugin
  to your favourite browser so that you can debug with the browser most
  familiar to you using whichever other debugging tools it offers while at the
  same time debugging your GWT code in hosted mode as you do now.

  OOPHM is currently available in GWT trunk for those who want to give it a
  try (instructions linked below).

  That said, OOPHM solves the problem of requiring 32-bit libraries that
  exists in other Mac builds where switching out to Java 1.5 was necessary.
  That means that OOPHM will also work perfectly well for Snow Leopard, or any
  other platform using any Java libraries, 32-bit or not.

  Hopefully the workaround Dean linked to above will get you up and running
  until OOPHM comes out in the next major release. If that workaround doesn't
  work, please feel free to reply back and let us know.

  Using OOPHM from 
  trunk:http://code.google.com/p/google-web-toolkit/wiki/UsingOOPHM

  Hope that helps,
  -Sumit Chandel

  On Mon, Aug 31, 2009 at 11:35 AM, mdwarne mike.wa...@gmail.com wrote:

   Hi,
   After watching a bunch of Googles GWT videos, and seminar speeches, I
   noticed some of the presenters are using Macbooks.
   I have to believe they are well aware of this issue.
   Mike.

   On Aug 31, 4:04 am, Michael Shantzis mich...@shantzis.com wrote:
The question I have is how high it is on google's list to release a
version of GWT that runs on snow leopard without any modifications.
I'm working in an environment where I'm testing jboss (which requires
java 1.6) and have had to jump through hoops to get my server running
1.6 and my GWT client running 1.5.

I'm sure they're already aware of this and it's certainly the case
that all the pieces are out there for them.

I'm patiently waiting!!!

On Aug 29, 9:21 pm, James james.hagg...@convolution.net wrote:

 Hi... I just wanted to add that along with the suggestions on:

http://wiki.oneswarm.org/index.php/OS_X_10.6_Snow_Leopard

 I had to rename the CurrentJDK symbolic link in

 /System/Library/Frameworks/JavaVM.framework/Versions/

 from 1.6.0 to the (newly added) 1.5.0 because it appears that ant was
 looking at the CurrentJDK for its version not the env.
--~--~-~--~~~---~--~~
You received 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: Client Locale Auto-detection

2009-09-03 Thread Thomas Broyer



On 3 sep, 11:30, picosam pico...@gmail.com wrote:
 Hello,
 I'm not using JSP and I would like to auto-detect the client's
 (browser's) locale and use it. How is it possible to do so?

As I said a few hours ago [1], you can use your web server's ability
to do content negotiation (if available to you), such as MultiViews in
Apache HTTPD [2].

There's also this (untested) trick from almost a year ago [3]

[1] http://groups.google.fr/group/google-web-toolkit/msg/142d1241d86c85c0
[2] http://httpd.apache.org/docs/2.2/content-negotiation.html
[3] http://groups.google.fr/group/Google-Web-Toolkit/msg/e8ca2612aa72cfed
--~--~-~--~~~---~--~~
You received 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, MVP, and nested widgets

2009-09-03 Thread Ian Bambury
Thanks Jason,
I understand what you are getting at, and I have come across this before,
but hadn't considered using it here.

I'm using this project as an opportunity to learn and to see how 'right' I
can get it. If someone were paying me, then I wouldn't be so fussy, but my
feelings are this:

The MenuItem's presenter (and it's not GWT's MenuItem) should deal with user
gestures from the MenuItemView - I like the simplicity of 'Click-fire
event' and I don't like the idea that MenuItem+MenuItemView would not be a
stand-alone unit and would rely on parent widgets to sort out what is going
on. If the MenuItem presenter isn't going to do anything except pass through
a reference to the MenuItemView, and the MenuItemView is going to hold the
place token field, then why don't I just say to hell with it and get the
MenuPanel to send Labels to the MenuPanelView. It would save all that
faffing about.

I think I'd like to stick with the MenuItem presenter firing an event if I
can, and see if I can come up with a 'politically correct' answer to this.
I'm sure there must be someone out there, or something on the web which can
tell me how to do it, or explain why it's not possible, or give me a better
solution altogether.

If I find something, I'll post it.

Thanks again,

Ian

http://examples.roughian.com


2009/9/3 Jason A. Beranek jason.bera...@gmail.com


 Ian,

 Ok, I think I understand what are trying to do. Let me expand a bit on
 the addMenuItem( Object i..); example in something a little less
 abstract. First, I'm assuming your MenuItem is not equivalent to the
 GWT MenuItem class, if it is the solution would be different. Note, I
 don't have a full example so mileage may very. The approach is meant
 to deal with MVP of list type interfaces, where the list items (i.e.,
 MenuItem) bubble events up to a list presenter (i.e. MenuPanel).

 The example assumes that instead of each MenuItem reporting
 PlaceChange events, MenuItem selection events are bubbled from the UI
 up to the MenuPanel presenter (through its view) and the MenuPanel
 presenter fires the PlaceChange event. Effectively, a MenuItem's
 display becomes a simple widget within MenuPanel's view and doesn't
 require its own presenter (the presenter's work is handled by
 MenuPanel's presenter).

 First, some simple setup:

 public class MenuPanel {

  interface Display {

void addMenuItem( String label, String token );

HasSelectionHandlersString getMenuItemSelectionButton();

void clearMenuItems();
  }

  ...

 }

 The above class shows a possible piece of the MenuPanel display
 interface. I am assuming in the above that a MenuItem takes a label
 that defines how the UI displays the object and the token as you
 describe above for the associate place/location when the item is
 clicked. In this example, the MenuPanel presenter determines the menu
 items required for the current place and calls addMenuItem to tell the
 MenuPanel view the MenuItem widgets to construct in the UI. The
 clearMenuItem method can be used clear the MenuItems to rebuild the
 specific items when the page changes.  Notice that I included another
 Display method called getMenuItemSelectionButton(), this returns an
 object the MenuPanel presenter can add a handler to so it can detect a
 MenuItem selection event. Here's an example of the bindDisplay method:

 void bindDisplay( Display display ) {
  this.display = display;

  //Listen for a token selection when the user picks a MenuItem
  display.getMenuItemSelectionButton().addSelectionHandler( new
 SelectionHandlerString() {


public void onSelection( SelectionEventString event ) {

  //Call MenuPanel private method to fire PlaceChangeEvent on
 EventBus, selected item represents the Place token
  doPlaceChange( new PlaceChangeEvent( event.getSelectedItem() );

  });
  ...
 }

 With the above in place, the MenuPanel view becomes responsible for
 translating the user input  on MenuItems (such as a native Click
 event) into a logical SelectionEvent

 The above approach breaks down if the list items require a lot of data
 to build or if the list items require additional logic beyond the
 scope of the containing presenter. As I said in my previous post, this
 approach also suffers from similar interface management problems as
 DTOs.

 -Jason

 On Sep 2, 7:44 pm, Ian Bambury ianbamb...@gmail.com wrote:
  Hi Jason,
  Thanks for the reply and suggestions.
 
  My idea was to have the MenuPanelView have a factory method for
  MenuItemViews.
 
  The MenuPanel presenter has to determine what menu items are required
  depending on whether the user privileges.
 
  I don't really understand how your addMenuItem( Object i ); method
 would
  work.
 
  I can't really have each view just create its own presenter (as a general
  principle) as far as I can see. What I want to end up with is a menu item
  which fires a PlaceChange event when it is clicked - for this it needs a
  token, for example GWT/Panels/SimplePanel (where 

Re: GWT serialisation too slow

2009-09-03 Thread Chris Lowe

Not having a JIT may be really biting you here.  AFAIK GWT
serialisation makes extensive use of reflection, however there seems
to be a way to define a custom field serializer (looks similar to
using Externalizable), but I've not tried this myself:

http://books.google.co.uk/books?id=KXBdajKMJGECpg=PA164lpg=PA164dq=gwt+custom+field+serializersource=blots=w5LGABPcqRsig=JRqZoeXztC7rG9jxftP_6QbbWwMhl=enei=0syfSqSsIIPUjAf77Jm9Dgsa=Xoi=book_resultct=resultresnum=9#v=onepageq=gwt%20custom%20field%20serializerf=false

Good luck and if you decide to try this approach I'll be interested to
hear how you get on.

Cheers,

Chris.


On Sep 2, 12:04 pm, David Given d...@cowlark.com wrote:
 Chris Lowe wrote:

 [...]

  500-600 does seem like a lot of objects to be processing in one hit if
  performance on a low end server is a concern, but then again 20
  seconds seems like an awfully long time too.

 Actually, thinking about it, it's more than that --- probably around
 1500 objects (500 large objects, but each one contains references to a
 few small just-data objects).

  What's the performance like in your dev environment?  Are your JVM
  settings the same as those on your target server?

 [...]
   You can also add a simple filter before the GWT servlet to
   give you a very coarse request timing - you can at least then rule out
   latencies and bandwidth to your server.

 I wish. The target server is a solid-state ARM box -- a SheevaPlug
 (1.2GHz processor, 512MB RAM). Alas, there is no decent JIT for ARM yet,
 so it's running the interpreted JDK. I'll check out VisualVM, but I
 suspect that it's not up to running it.

 Annoyingly the machine is perfectly capable of running the actual
 *application*. The actual logic takes a tiny fraction of the time of the
 serialisation.

 My development machine is a traditional ix32 box and serialisation takes
 a trivial amount of time. I'll try the trick with the filter to get some
 actual figures.

 [...]

  How large are your serialized objects prior to compression?  I think
  you can quickly test this by disabling gzip compression in FireFox:

 http://forgetmenotes.blogspot.com/2009/05/how-to-disable-gzip-compres...

 This just causes the page to turn into garbage --- probably a server
 misconfiguration on my end.

  If the uncompressed size is particularly large then memory and
  compression time may be the limiting factor.

 Looking at the server stats its VM size doesn't appear to change during
 the first serialisation process, indicating that it doesn't want to
 allocate more memory. I have a feeling that memory's not the problem.

  Finally, what kind of objects are you serialising?  Are you attempting
  to send something like Hibernate objects over the wire (or some other
  kind of proxied objects) which are causing unexpected database hits?

 Nope. The entire DB is being held in-memory. In fact, the way my app
 works is that the server logic calculates the delta needed to be sent to
 the client, constructs a packet of client objects from this, and then
 returns that packet as the result from the RPC call, so the stuff being
 serialised doesn't actually content to the objects in the DB at all. (My
 400-object delta, the result of the initial DB sync, takes about 4s to
 generate.)

 The delta generation uses reflection and annotations to query the DB
 objects for properties that need to be copied into the delta. (The
 client is only allowed to see information from the DB that the user is
 allowed to have.) Simply by adding a cache for Field objects I managed
 to reduce the time taken for the delta generation by a factor of ten, so
 I suspect that reflection is dog slow with this JVM. What does the GWT
 serialisation system use? If it uses reflection, is there any way of
 persuading it to use byte-code generation instead?

 --
 ┌─── dg@cowlark.com ─http://www.cowlark.com─
 │
 │ They laughed at Newton. They laughed at Einstein. Of course, they
 │ also laughed at Bozo the Clown. --- Carl Sagan
--~--~-~--~~~---~--~~
You received 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: send a TextBox to the server-side

2009-09-03 Thread Norman Maurer

You should not do this.. Send the plain String value of the Textbox via RPC.


Bye,
Norman


2009/9/3 osquitranki oazcar...@gmail.com:

 Hi,
 How can send a  TextBox or other widgets to the server-side?
 I wan make a insert in a BBDD with the value of TextBox.

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



send a TextBox to the server-side

2009-09-03 Thread osquitranki

Hi,
How can send a  TextBox or other widgets to the server-side?
I wan make a insert in a BBDD with the value of TextBox.

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



Re: ext-GWT vs GWT-ext

2009-09-03 Thread Shawn Brown

I don't think your response attacking me is productive.  I wish you
would stop your personal attacks. Please show me where I attacked you
personally and I will rephrase it (just consider it a bug).

 Great, another clueless response.

Maybe, maybe not.

 There's a huge difference between a platform / app server / Java and a
 library being GPL. A library being GPL means you need you release the source
 of your entire application, simple. An app server or Java being GPL has
 absolutely no effect on the licensing and distribution of your application
 while  using GPL library means that you need to release all your code
 making it unsuitable for use in commercial products.

So according to your analysis ExtGWT is unsuitable for commercial
products.  So what.  The authors of ExtGWT are free to release their
work under any license they choose.  Just because the developers don't
see their work serving your purposes...so what.  A developer can
choose any license they wish for their work.  That is what the truth
is so why are you calling me names?

You somehow believe that ExtGWT developers should only release their
work so you can use it in your commercial product.  Other developers
who are not distributing the ExtGWT library may not feel the same way.
 For example:

A company that modifies open source software released under the GPL is
not considered to be distributing (GPL v. 2) or conveying (GPL v. 3)
when it runs the modified software as part of collaborative cloud
computing. Therefore, the company does not have to contribute the
modified software back to the community pursuant to the copyleft
clause of the GPL.

How about cases where the source code is not modified and the
resulting java script is run over a network.  Are you asserting that a
javascript application run over a network requires that the source for
the javascript be made available just because a GPLd library was used
in generating the javascript that is run in the clouds.

  Our legal team looked at it and found numerous
 violations and we did report in on the Ext / ExtGWT forums but the posts
 were mostly ignored or deleted.
 SWT. SWT is licensed under EPL and EPL is well documented to be incompatible
 with GPL. See http://en.wikipedia.org/wiki/Eclipse_Public_License  Since we
 are no longer planning on using ExtGWT, I have no intentions of burning any
 more time trying to get them to resolve this.

Hmmn, let's think about this.  The reason they changed in the first
place was they had multiple incompatible licenses.  You assert they
are intending to violate the EPL.  I suspect they will rewrite that as
soon as they can.

 If you are going to make such statements or take a bait, do your homework
 first.

Well you can keep using the ExtJS up to what it is 2.0.2 just like
they said you could.  They haven't changed that at all.  They are no
longer offering code under that license though.

I did my homework.  The developers felt that releasing with the type
of license that would have been beneficial to you, would have allowed
you to take what they felt was unfair advantage of their work.  As
developers, they choose (right or wrong for the ultimate success of
their project) a more restrictive license that they felt was in the
best interest of their development.

I am sorry you don't agree.  The SWT issue surely needs to be worked
out but I still fail to see why a developer can not choose to release
their new work under a different license than they did in the past.  I
honestly don't consider that dirty.

Ok the developers of ExtGWT thought people were taking advantage of
them.  You are angry because you can't take advantage of them.

Call me clueless all you want but I still fail to see how it makes the
ExtGWT developers dirty.   Anyway, thank you for your time.

All the Best,

--~--~-~--~~~---~--~~
You received 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: Hosted mode hangs on localhost...

2009-09-03 Thread Rajeev Dayal
Hey Pietro,

I think this is a cookie-related problem. I've heard that it can happen when
using ext-GWT (I think), because it sets a large cookie.

Go to your ~/.mozilla directory, and blow away the eclipse directory.
Then, try running the app again.


Rajeev

On Thu, Sep 3, 2009 at 6:37 AM, Pietro Marrone pietromarr...@gmail.comwrote:


 Hi, I'm using Google Plugin for Eclipse to create the Web
 Application Starter Project.
 Unfortunately the project hangs on hosted mode, exactly only the
 static content appear while the input type and the button are missing.

 this is the hosted mode relavant log:
 [DEBUG] Initializing module 'test' for hosted mode
 [SPAM] uri=/test/hosted.html?test
 [SPAM] fields=Host: localhost:50250

 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/
 20050920

 Accept: text/xml,application/xml,application/xhtml+xml,text/
 html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5

 Accept-Language: en-us,en;q=0.5

 Accept-Encoding: gzip,deflate

 Accept-Charset: UTF-8,*

 Keep-Alive: 300

 Connection: keep-alive

 Referer: http://localhost
 [SPAM] EXCEPTION
 org.mortbay.jetty.HttpException: null
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:276)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at org.mortbay.io.nio.SelectChannelEndPoint.run
 (SelectChannelEndPoint.java:395)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run
 (QueuedThreadPool.java:488):50250/Test.html


 [SPAM] BAD

 The curious is that on the same hosted browser on 127.0.0.1 url works
 fine, and compiled for firefox external browser works for both
 localhost and 127.0.1

 Following is my environment:
 Linux Ubuntu 9.04 Desktop
 java-6-sun-1.6.0.14
 gwt-linux-1.7.0

 Any suggestion would be appreciate

 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-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: hosted mode trouble

2009-09-03 Thread Jeff Chimene

On Wed, Sep 2, 2009 at 6:49 PM, sidkdbl07sidkwak...@gmail.com wrote:

 My php file is on a web server configured with PHP5. The address of
 the weather.php5 file is http://www.myserver.com/weather.php5.

 I'm debugging my GWT files in Eclipse. The GWT class (see above) makes
 a call to the weather.php5 page with the following line...

 RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,
 URL.encode(http://www.myserver.com/weather.php5;));

 Honestly, I don't know if I'm using the Jetty server. How do I tell? I
 have no app engine configured in Eclipse.

 When I debug my GWT project in Eclipse response.getStatusCode() comes
 back as 0 (zero)
 When I add -noserver to the run configuration, the GWT hosted mode
 browser doesn't display my page... it seems to just sit there empty.

 I hope this clears up what I'm trying to accomplish.

Yes, that's the answer I was looking for.

Do you know that in noserver mode you must compile your GWT
application, and deploy it to your server?

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

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: errors with google plugin for eclipse

2009-09-03 Thread Rajeev Dayal
Hi,

Are you sure you even need Xerces in your application? Do you reference any
Xerces classes directly in your application code?

If not, you should remove xercesImpl.jar from:

1) jre/lib/ext
2) Your build classpath
3) war/WEB-INF/lib

Then, try and run your app, and tell me what the error is.


Rajeev

On Wed, Sep 2, 2009 at 10:53 AM, pepgrifell pepgrif...@gmail.com wrote:


 hi,

 I moved from GWT1.5.3 to GWT1.6/1.7.  I installed google plguin in
 eclipse (Europa) and I did the changes in the directory structure.
 When I try to compile the app. with the pguing (red suitcase) I get
 thsi error:

 Loading module 'GemmaModule'
   [ERROR] Failure while parsing XML
 org.xml.sax.SAXNotRecognizedException:
 http://apache.org/xml/features/nonvalidating/load-external-dtd
at oracle.xml.jaxp.JXSAXParserFactory.setFeature
 (JXSAXParserFactory.java:128)
at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse
 (ReflectiveParser.java:307)
at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$100
 (ReflectiveParser.java:48)
at com.google.gwt.dev.util.xml.ReflectiveParser.parse
 (ReflectiveParser.java:385)
at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad
 (ModuleDefLoader.java:243)
at
 com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java:
 155)
at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule
 (ModuleDefLoader.java:269)
at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath
 (ModuleDefLoader.java:127)
at com.google.gwt.dev.Compiler.run(Compiler.java:156)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:124)
at
 com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
 88)
at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger
 (CompileTaskRunner.java:82)
at com.google.gwt.dev.Compiler.main(Compiler.java:131)

 In a post, I read that someone has put xercesImpl.jar inside jdk/jre/
 lib/ext. Then error disappear and compilation is ok.  The problem then
 is that when I deploy the application (EAR) in my application server,
 when I start the server I get an error caused by xercesImpl.jar inside
 jdk/jre/lib/ext.

 Apart from this, if I start the emulated host, without the xerces lib
 I get this error:

 *
 Unable to process 'file:/D:/branch_eclipse3.3_view/sources/GemmaWeb/
 war/WEB-INF/web.xml' for servlet validation
 [DEBUG] Bootstrap link for command-line module 'GemmaModule'
 [TRACE] Loading module 'GemmaModule'
 Failure while parsing XML

 with this error:

 [ERROR] Failure while parsing XML
 org.xml.sax.SAXNotRecognizedException:
 http://apache.org/xml/features/nonvalidating/load-external-dtd
at oracle.xml.jaxp.JXSAXParserFactory.setFeature
 (JXSAXParserFactory.java:128)
at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse
 (ReflectiveParser.java:307)
at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$100
 (ReflectiveParser.java:48)
at com.google.gwt.dev.util.xml.ReflectiveParser.parse
 (ReflectiveParser.java:385)
at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad
 (ModuleDefLoader.java:243)
at
 com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java:
 155)
at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule
 (ModuleDefLoader.java:269)
at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath
 (ModuleDefLoader.java:127)
at com.google.gwt.dev.HostedModeBase.loadModule(HostedModeBase.java:
 536)
at com.google.gwt.dev.HostedMode.loadModule(HostedMode.java:426)
at com.google.gwt.dev.HostedMode.doStartup(HostedMode.java:351)
at
 com.google.gwt.dev.HostedModeBase.startUp(HostedModeBase.java:585)
at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:397)
at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)


 *

 Placing the xerces lib in jdk/jre/lib/ext I go a bit further away:


 *
 Unable to process 'file:/D:/branch_eclipse3.3_view/sources/GemmaWeb/
 war/WEB-INF/web.xml' for servlet validation
 [DEBUG] Bootstrap link for command-line module 'GemmaModule'
 Validating servlet tags for module 'GemmaModule'
   More info: file:/C:/eclipse/configuration/eclipse/plugins/
 com.google.gwt.eclipse.sdkbundle.win32_1.7.0.v200907131018/gwt-
 windows-1.7.0/doc/helpInfo/servletMappings.html
   Module declares 17 servlet declaration(s), but a valid 'web.xml'
 was not found at 'D:\branch_eclipse3.3_view\sources\GemmaWeb\war\WEB-
 INF\web.xml'
 More info: file:/C:/eclipse/configuration/eclipse/plugins/
 com.google.gwt.eclipse.sdkbundle.win32_1.7.0.v200907131018/gwt-
 

Re: Good practice: setting style before adding it to a panel!

2009-09-03 Thread Alexander Cherednichenko

In more or less big project I'd rather create set of widgets, which do
not need addition of the external styles.
So, all styles are applied in constructor.


And then - you just create widget, and add it to a panel.

On Sep 3, 8:14 am, Ed post2edb...@hotmail.com wrote:
 A oepsss.. good point Ian, thanks... :(
 Mistake in the code examples...
 They should be:

 So do something like this:
 Widget wid = new HTML(test);
 SomePanel panel = new SomePanel();
 wid.addStyleName(someStyleName);
 panel.add(wid);

 And NOT this:
 Widget wid = new HTML(test);
 SomePanel panel = new SomePanel();
 panel.add(wid);
 wid.addStyleName(someStyleName);
--~--~-~--~~~---~--~~
You received 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 serialisation too slow

2009-09-03 Thread David Given

Chris Lowe wrote:
 Not having a JIT may be really biting you here.  AFAIK GWT
 serialisation makes extensive use of reflection, however there seems
 to be a way to define a custom field serializer (looks similar to
 using Externalizable), but I've not tried this myself:

Oo. I didn't know you could do that --- I'll have a look. Thanks! That 
should work very nicely alongside GWT generators on the client side.

-- 
┌─── dg@cowlark.com ─ http://www.cowlark.com ─
│
│ They laughed at Newton. They laughed at Einstein. Of course, they
│ also laughed at Bozo the Clown. --- Carl Sagan

--~--~-~--~~~---~--~~
You received 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: ext-GWT vs GWT-ext

2009-09-03 Thread martin.krau...@gmail.com

I apologize if you felt that it was a personal attack but truthfully
this response of yours really make very little sense. I urge you to
read it again with an open mind.

What you're saying is that any developer can do anything with their
product at anytime and you try to justify their move. Unfortunaltey
the software world and licensing does not work that way when there are
other libraries with their own licenses to adhere to.

Let me quote from the EPL link I provided earlier :

The EPL 1.0 is not compatible with the GPL, and a work created by
combining a work licensed under the GPL with a work licensed under the
EPL cannot be lawfully distributed.


On Sep 3, 10:25 am, Shawn Brown big.coffee.lo...@gmail.com wrote:

  There's a huge difference between a platform / app server / Java and a
  library being GPL. A library being GPL means you need you release the source
  of your entire application, simple. An app server or Java being GPL has
  absolutely no effect on the licensing and distribution of your application
  while  using GPL library means that you need to release all your code
  making it unsuitable for use in commercial products.

 So according to your analysis ExtGWT is unsuitable for commercial
 products.  So what.  The authors of ExtGWT are free to release their
 work under any license they choose.  Just because the developers don't
 see their work serving your purposes...so what.  A developer can
 choose any license they wish for their work.  That is what the truth
 is so why are you calling me names?

 You somehow believe that ExtGWT developers should only release their
 work so you can use it in your commercial product.  Other developers
 who are not distributing the ExtGWT library may not feel the same way.
  For example:

 A company that modifies open source software released under the GPL is
 not considered to be distributing (GPL v. 2) or conveying (GPL v. 3)
 when it runs the modified software as part of collaborative cloud
 computing. Therefore, the company does not have to contribute the
 modified software back to the community pursuant to the copyleft
 clause of the GPL.

 How about cases where the source code is not modified and the
 resulting java script is run over a network.  Are you asserting that a
 javascript application run over a network requires that the source for
 the javascript be made available just because a GPLd library was used
 in generating the javascript that is run in the clouds.


Good example! GPL does not require you to distribute your code under
such circumstances, however the Ext team put their own spin on how
their GPL license should be interpreted. Try posting this very
question on the Ext / ExtGWT forum. I guarantee that your post will
not get a public response and if you email them you will get a
response saying that you will require a license even if you are using
their software as part part of collaborative cloud computing which is
totally contradictory to what GPL permits. This is the very reason
they will not respond in the public forum.


   Our legal team looked at it and found numerous
  violations and we did report in on the Ext / ExtGWT forums but the posts
  were mostly ignored or deleted.
  SWT. SWT is licensed under EPL and EPL is well documented to be incompatible
  with GPL. Seehttp://en.wikipedia.org/wiki/Eclipse_Public_License Since we
  are no longer planning on using ExtGWT, I have no intentions of burning any
  more time trying to get them to resolve this.

 Hmmn, let's think about this.  The reason they changed in the first
 place was they had multiple incompatible licenses.  You assert they
 are intending to violate the EPL.  I suspect they will rewrite that as
 soon as they can.


You suspect?? Why do you defend such violations based on speculation
and what you think they will do?

  If you are going to make such statements or take a bait, do your homework
  first.

 Well you can keep using the ExtJS up to what it is 2.0.2 just like
 they said you could.  They haven't changed that at all.  They are no
 longer offering code under that license though.

 I did my homework.  The developers felt that releasing with the type
 of license that would have been beneficial to you, would have allowed
 you to take what they felt was unfair advantage of their work.  As
 developers, they choose (right or wrong for the ultimate success of
 their project) a more restrictive license that they felt was in the
 best interest of their development.


Are you part of the Ext / ExtGWT team and speaking on behalf of them?
Or simply mind reading?

 I am sorry you don't agree.  The SWT issue surely needs to be worked
 out but I still fail to see why a developer can not choose to release
 their new work under a different license than they did in the past.  I
 honestly don't consider that dirty.


Let me quote this again for you :

The EPL 1.0 is not compatible with the GPL, and a work created by
combining a work licensed under the GPL with a work licensed 

Re: Good practice: setting style before adding it to a panel!

2009-09-03 Thread Ed

He Alexander,

Thanks for the idea. I started that way... but when the application
got too complex it  was too restrictive. I still use this often, but
not always
For example: when working with decorators that all independent and add
extra functionality to the widget when it's their turn to decorate the
widget..
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



HTML label tag

2009-09-03 Thread Eric

Is there a good way in GWT to give the functionality of the HTML
label tag?  I do not mean the Label widget here.  I want to write
code that produces

label for=nameName:/label
input type=text id=name/


from a Texbox widget and something else.  I have emulated this by
creating a ClickHandler, assigning it to each of the labels, and
storing the label-to-textbox relation in a HashMap, but that is a lot
of trouble to emulate a basic part of HTML. There should be an easier
way.  Doing that aso forces one to remove the connections so one does
not leak memory.

I know--it's hard to give an arbitrary id to a Widget; the
ensureDebugId method should only be used for debugging, but there
should be something.  The alternative method of using label doesn't
really work with GWT being so table-happy:

labelName:input type=text//label

as Grids would put the label and text box in different cells.

Respectfully,
Eric Jablow
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



@SuppressWarnings(serial)

2009-09-03 Thread Andy

Does anyone know why does the GreetingServiceImpl Servlet in the
project created by the GWT Eclipse plugin have a @SuppressWarnings
(serial) annotation?
--~--~-~--~~~---~--~~
You received 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: Is Google Web Toolkit for me?

2009-09-03 Thread mikedshaffer

I'll throw in here

GWT is primarily a client side technology, so in your statement
better off sticking with PHP, JS,  CSS, GWT would replace only the
last 2.  PHP (obviously) only runs on the server.  By choosing GWT you
will still need to choose a server side technology assuming you want
to connect to a database.  Many people are familiar with PHP, so they
stick with that, communicating between client and server using JSON,
which GWT handles terrifically.  You can also use Java for your server
side technology, and then you can very simply use GWT-RPC to handle
your communication.  As for connecting to MySQL, Java will connect to
MySQL all day long, as will PHP.  Just a matter of what syntax/stack
you are familiar with.  The key thing to focus on here with GWT is
that it is an AJAX client library that makes it very easy to build
powerful AJAX web clients (or substitute your favorite acronym for
that) using Java syntax.  If you use Java for your server tier, then
you get to use a teenie bit more GWT, but that's it.

Does that make sense?

Later,

Shaffer

On Sep 2, 6:54 pm, David Given d...@cowlark.com wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 spierce7 wrote:

 [...]

  By the way, I'm going to need to integrate with a web database. The
  obvious one for me was MySQL, but that was mainly because PHP
  integrates so easily with it. What kind of options do I have with this
  while using GWT? I'd rather not have to have GWT integrate with PHP,
  and then MySQL, or some other ridiculous thing. What options do I have
  here? Thanks in advance!

 I'm using Berkeley DB JE for one of my apps; it's a pure-Java
 reimplementation of the old classic Berkeley DB non-relational database.
 It's got some really nice Java reflection glue that combines well with
 GWT's RPC glue. I can pull an object out of the database on the server
 and pass it directly to the client in about three lines of code, and GWT
 and Berkeley DB take care of all the plumbing. And because it's pure
 Java, there's no extra dependencies on the server --- you just drop the
 jarfile in WEB-INF/lib and it Just Works(tm).

 A server-side RPC implementation can be as literally trivial as this:

 DataObject getFromDB(int key)
 {
   try
   {
     return _index.get(key);
   }
   catch (DatabaseException e)
   {
     return null;
   }

 }

 - --
 ┌─── dg@cowlark.com ─http://www.cowlark.com─
 │
 │ People who think they know everything really annoy those of us who
 │ know we don't. --- Bjarne Stroustrup
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (GNU/Linux)
 Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/

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



Gwt debugging in Eclipse

2009-09-03 Thread sidni

Hi,

I've developed a client side GWT app, which I somehow have to debug. I
set a BreakPoint on my required class-line and invoke Eclipse
debugging perspective which opens successfully.

Now problem is,  we get below hierarchy:

Thread Main -- Scanner .getnextToken()

and if I try step over option in eclipse, this debugger keeps on
showing other various parser and JDTCompiler lines.

How do i get to see debug lines for my gwt classes, why GWT debugging
opens up with Scanner .getnextToken(), how can I avoid this ?


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



When create a multiple GWT module in a project?

2009-09-03 Thread Xavier Pegenaute

Hi,

I am not used to develop web apps and I have no a clear idea about
when is better to use more than one module entry in my project. Any
one could clarify this?

Thanks  Regards.
Xavi.

--~--~-~--~~~---~--~~
You received 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: Iframe = multithreading ???

2009-09-03 Thread David Given

ben fenster wrote:
 ok  thats sounds right but if thats true can i access static classes
 in the entrypoint module from a seperate module loaded in an iframe
 (that ofcours exists in the first module) ?

Javascript will let you do it, provided the security rules let you (the 
page in the iframe must come from the same domain that your script 
does). I don't know whether it's possible to make GWT give you seamless 
access from Java, though --- you'd probably have to use Javascript 
trampolines. (Where one module explicitly exports stuff to the parent 
window, and then another module explicitly imports it again.)

-- 
┌─── dg@cowlark.com ─ http://www.cowlark.com ─
│
│ They laughed at Newton. They laughed at Einstein. Of course, they
│ also laughed at Bozo the Clown. --- Carl Sagan

--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Aligning Widget in RootPanel

2009-09-03 Thread sidni

Hi,

Consider 2 code snipet below:
My intention is to display Hello in Center of the page.

1. Using Label directly

Label l = new Label(NITESH);
l.setHorizontalAlignment(HasAlignment.ALIGN_CENTER);
RootPanel.get().add(l);

This displays it in center.

2. Label widget contained in Vertical/HorizontalPanel

-
HorizontalPanel hp = new HorizontalPanel();
Label l = new Label(Hello);
hp.add(l);
hp.setHorizontalAlignment(HasAlignment.ALIGN_CENTER);
//hp.setCellHorizontalAlignment(l,
HasHorizontalAlignment.ALIGN_CENTER);
RootPanel.get().add(hp);
-

If we replace HorizontalPanel with VerticalPanel we get result the
same.

How would I display my label at Center of page if its contained under
some Panel ? Am I missing something ?

10x

--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



was not serializable and has no ...

2009-09-03 Thread melistik

Hello,
i've got a problem with filling a ListStock with items directly from a
database query.
My Errormessage is :
[ERROR] Type
'com.extjs.gxt.ui.client.store.ListStorede.bonprix.piccoop.client.model.ArtikelItem'
was not serializable and has no concrete serializable subtypes

I tried many things with Serializable, IsSerializable ...

Could someone give me a hint ?

At the bottom u could see my source.
Many thanks
melistik


ArtikelItem:

public class ArtikelItem extends BaseModel implements Serializable  {
private static final long serialVersionUID = 2919804850716642773L;
public ArtikelItem() {
}
public ArtikelItem(Integer art_nr, String style_nr, String color,
ArrayListInteger groups) {
set ...
}
...


ServiceImpl:

public ListStoreArtikelItem getStyleArticles(String value) {
...
PreparedStatement getSomething = conection.prepareStatement(select *
from test);
ResultSet sRes = getSomething.executeQuery();
while(sRes.next()) {
articles.add(newArtikelItem(null,sRes.getString
(blabla),null,group));
}
...
return articles;
}


--~--~-~--~~~---~--~~
You received 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: @SuppressWarnings(serial)

2009-09-03 Thread Chad

Andy,

If you are using Eclipse (I assume you are since you are using the
GEP), just delete that and you will see the warning:

The serializable class DataServiceImpl does not declare a static final
serialVersionUID field of type long

You will also get 3 quick fix options:
  - Add default serial version ID
  - Add generated serial version ID
  - Add @SuppressWarnings 'serial' to 'GreetingServiceImpl'

Any of those three options would work. Just take your pick.

HTH,
Chad


On Sep 3, 11:37 am, Andy antonvonpil...@gmail.com wrote:
 Does anyone know why does the GreetingServiceImpl Servlet in the
 project created by the GWT Eclipse plugin have a @SuppressWarnings
 (serial) annotation?
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Is it a bug in DialogBox?

2009-09-03 Thread Bob L.

public class ClothingForm extends DialogBox {
public ClothingForm() {
  setText(Clothing);
  setSize(30em, 30em);

  Button ok = new Button(OK);
  ok.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
ClothingForm.this.hide();
}
  });

  setWidget(ok);
}
}

The result:
http://lh3.ggpht.com/_HQyyXYqJEaE/Sp_TxaB6FII/AMk/F3pqmFFjG4s/s800/dialogbox.png.jpg

--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Image layering using GWT

2009-09-03 Thread jonty

Hi everyone,

I am using GWT1.7. I am facing some problems with image layering. I am
using Image api to add image to panel. Once I add the image I want to
add another image on top of that on mouseclick at the click location.

Please help me on how to solve this problem. Can this be done with GWT
1.7? If yes how it can be done ? If not what is another alternative ?

Thanks
Bharat

--~--~-~--~~~---~--~~
You received 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: ServletOutputStream Closed while downloading xls stream in GWT

2009-09-03 Thread Srinivas U

Hi Vijjj,

  I have the same issue. When we try to open Excel file using GWT
Window.open(excel.jsp, _blank, ); its opening the file for a
second and its closing automatically. Did you get any solution for
this issue?


On Aug 24, 3:48 am, vijjj victorjoy...@gmail.com wrote:
 Hi Sin-Kang,

 Thanks for the reply.

 May be I may have to do something like that. But having to deploy a
 separate server just to download a file seems far stretched.
 There must be a way out to solve this with the current set up.
 Looking for solutions or a work around.

 Are there any client based (javascript) libraries available to
 generate Excel/PDF?

--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Hyperlink Token and Parms

2009-09-03 Thread vokke

Hello Newsgroup,
I have a problem creating hyperlinks with the right token and parms.

Hyperlink test = new Hyperlink(TEST, ?
wid=1+pos=2+#dosomething));

I do get #?wid=1pos=2#dosomething
But I need:
?wid=1pos=2#dosomething
to make sure to use

String id = Window.Location.getParameter(wid );


How do I achieve this?
I tried with setHTML but no luck.
Thanks,
Vokke


--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Regular Popup Window in GWT?

2009-09-03 Thread lakshmi thyagarajan
Hi,

I want to add a regular pop-up window to my application. I tried using a
PopupPanel (and DecoratedPopupPanel). But it doesnt have regular window
controls (like minimize, maximize, close etc). Am forced to either use the
auto-hide feature or include a Widget (like a button) to close the panel. Am
not able to minimize the panel and work in another window.
Does GWT have any other Window like widget?

Thanks for your time!
Lakshmi

--~--~-~--~~~---~--~~
You received 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: @SuppressWarnings(serial)

2009-09-03 Thread Andy

Cheers.

Yeah, I've done that, but I was just wondering if there was a reason
that the GWT team were suppressing it (other than to have the initial
project be created with any warnings)?

On Sep 3, 11:29 am, Chad chad...@gmail.com wrote:
 Andy,

 If you are using Eclipse (I assume you are since you are using the
 GEP), just delete that and you will see the warning:

 The serializable class DataServiceImpl does not declare a static final
 serialVersionUID field of type long

 You will also get 3 quick fix options:
   - Add default serial version ID
   - Add generated serial version ID
   - Add @SuppressWarnings 'serial' to 'GreetingServiceImpl'

 Any of those three options would work. Just take your pick.

 HTH,
 Chad

 On Sep 3, 11:37 am, Andy antonvonpil...@gmail.com wrote:



  Does anyone know why does the GreetingServiceImpl Servlet in the
  project created by the GWT Eclipse plugin have a @SuppressWarnings
  (serial) annotation?
--~--~-~--~~~---~--~~
You received 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: Hyperlink Token and Parms

2009-09-03 Thread Tolga Özdemir
You can use Location.replace(); maybe it helps..



On Thu, Sep 3, 2009 at 7:09 PM, vokke vkub...@gmail.com wrote:


 Hello Newsgroup,
 I have a problem creating hyperlinks with the right token and parms.

 Hyperlink test = new Hyperlink(TEST, ?
 wid=1+pos=2+#dosomething));

 I do get #?wid=1pos=2#dosomething
 But I need:
 ?wid=1pos=2#dosomething
 to make sure to use

 String id = Window.Location.getParameter(wid );


 How do I achieve this?
 I tried with setHTML but no luck.
 Thanks,
 Vokke


 



-- 
Tolga Özdemir

Mobile 0 536 963 7890
MSN ozde...@hotmail.com

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



Re: @SuppressWarnings(serial)

2009-09-03 Thread Paul Grenyer

Hi

On Thu, Sep 3, 2009 at 7:32 PM, Andyantonvonpil...@gmail.com wrote:

 Cheers.

 Yeah, I've done that, but I was just wondering if there was a reason
 that the GWT team were suppressing it (other than to have the initial
 project be created with any warnings)?

Have a look at the code in more detail. You'll see that it implements
an interface that has to be serializble. The server side class doesn't
need to be serializable so the warning is suppressed.

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.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-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: @SuppressWarnings(serial)

2009-09-03 Thread Andy

Don't the Servlets need to have a serial version ID in case the server
decides to passivate them?

...or would that imply that the Servlets have 'state' (which shouldn't
be the case).

On Sep 3, 11:38 am, Paul Grenyer paul.gren...@gmail.com wrote:
 Hi

 On Thu, Sep 3, 2009 at 7:32 PM, Andyantonvonpil...@gmail.com wrote:

  Cheers.

  Yeah, I've done that, but I was just wondering if there was a reason
  that the GWT team were suppressing it (other than to have the initial
  project be created with any warnings)?

 Have a look at the code in more detail. You'll see that it implements
 an interface that has to be serializble. The server side class doesn't
 need to be serializable so the warning is suppressed.

 --
 Thanks
 Paul

 Paul Grenyer
 e: paul.gren...@gmail.com
 b: paulgrenyer.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-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: blank page and other weirdness after upgrade, 1.5 to 1.7

2009-09-03 Thread Dave

Thanks for the replies, guys.
Thanks for validating what I was seeing, Rajeev. (and sorry for
jumping to @ss_umptions)

Best,
Dave

On Aug 31, 2:50 pm, Rajeev Dayal rda...@google.com wrote:
 Hi Dave,

 As with Isaac and Ian, I did not receive your response either.

 I'm glad that you figured the problem out. Isaac is correct in his
 assessment; I've confirmed that it is indeed a problem to give an element in
 your HTML page an id which matches the name of your module. I've opened the
 following bug:

 http://code.google.com/p/google-web-toolkit/issues/detail?id=4003

 Rajeev

 On Mon, Aug 31, 2009 at 2:26 PM, Isaac Truett itru...@gmail.com wrote:

  No worries.

  I looked up your message directly in Groups, and I see that you
  identified your problem as being a div with an ID that's the same as
  your module name. I don't believe this is a documented gotcha, but I
  do recall seeing another instance of it on the forum recently. What I
  don't recall seeing is an explanation of why this should be a problem.
  My guess is that something in the bootstrapping wants to use the
  module name as an ID and having another element in the HTML with that
  ID causes the conflict. But again, that's only a guess.

  On Mon, Aug 31, 2009 at 2:03 PM, Davedfdumar...@gmail.com wrote:

   Yeah, it's good to be reminded never to make assumptions - thanks,
   Isaac.

   Dave

   On Aug 31, 10:40 am, Isaac Truett itru...@gmail.com wrote:
   Dave,

   I can't speak for Rajeev, but your reply to him never reached my
   inbox. I understand your frustration. Do please try to be nice.

   Thanks,
   Isaac

   On Mon, Aug 31, 2009 at 1:27 PM, Davedfdumar...@gmail.com wrote:

Why say something like 'post back here and we'll dig deeper' if you
don't intend to follow the thread and make good on your promise?

Dave

On Aug 25, 9:20 am, Rajeev Dayal rda...@google.com wrote:
Hey Dave,
A couple things to try:

-Blow away the mmclient subdirectory located under your war directory
-Clear your FF3 cache

Try that out and see if that helps. If not, post back here and we'll
  dig
deeper.

Rajeev

On Mon, Aug 24, 2009 at 2:36 PM, Dave dfdumar...@gmail.com wrote:

 Hi all,

 I'm getting several problems after upgrading to 1.7.
 In hosted mode:
 - all the http status codes are 304 (Not Modified)
 - I only see a blank page
 - when I Compile/Browse, FF3 tells me GWT Module needs to be (re)
 compiled, (I've tried refreshing first - same thing)
 - if I change the module name to something bogus in my host html
  file,
 and refresh, things seem to work.
 For example, when I change from div id=mmcclient/div to div
 id=x_mmcclient/div, I still get 304s, but I also get
  [ERROR] Unable to load module entry point ...
   com.google.gwt.core.client.JavaScriptException: (Error): Invalid
 argument.
     number: -2147024809
   description: Invalid argument.
  [ERROR] Failure to load module 'mmcclient'
 with the line number of my entry point class where I call
  RootPanel.get(mmcclient).add(containerLayout);

 But then the module is loaded and my app is fine. No blank page!

 - finally, one of my css resource directories (sc) must be copied
  into
 the public root, otherwise it will not be found.

 Some further info,
 the war directory structure looks like this (my module name is
 mmcclient),
 - war
  - conf
  - images
  - mmcclient
  - sc
  - WEB-INF
  - MMCClient.css
  - MMCClient.html

 The module is loaded from the host html as:
    script type=text/javascript language=javascript
 src=mmcclient/mmcclient.nocache.js/script
 Even when I get a blank page, I believe this file is being found.
 (Firebug shows its JS functions).

 I'm working with the Eclipse (3.4.2) GWT plugin, if that's
  important.

 Thanks for any advice!
 -Dave
--~--~-~--~~~---~--~~
You received 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: DOM.getElementById() vs $doc.getElementById()

2009-09-03 Thread Thad

I found what works in IE, and does not break hosted mode, Firefox 3.5,
or Safari 4:  Do NOT try to hide/show my application DIV or put my
widget into it.  Hide the LOGIN_DIV as show, but put the
MainWindowWidget in the default root panel.  So

private static void doLogin() {
...
logonPanel.setVisible(false);
RootPanel.get().add(new MainWindowWidget());
...
}

Returning to the login is now just

public static void showLoginDiv() {
RootPanel.get().clear();
RootPanel logonPanel = RootPanel.get(Workstation.LOGIN_DIV);
logonPanel.setVisible(true);
}

I was afraid this would break some things in my application, like a
DIV in which I occasionally open an IFRAME for downloading various
files from the server.  However that still works fine.

Thanks for the help.

Now on to History.

On Sep 2, 1:54 pm, Thad thad.humphr...@gmail.com wrote:
 On Sep 1, 6:30 pm, Thomas Broyer t.bro...@gmail.com wrote:

  On 2 sep, 00:16, Thad thad.humphr...@gmail.com wrote:
 ...
   Right now I'm having bigger problems trying to do things 
   byhttp://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecur...
   ...

  From the comments on that 
  page:http://groups.google.fr/group/Google-Web-Toolkit/t/2b2ce0b6aaa82461

 I've followed the link above.  What I have works excellently in hosted
 mode, as well as in Firefox 3.5, and Safari 4--the browser's password
 manager is triggered, and the user is logged in.  However I've still
 no luck with IE7 (and no Javascript error indicated).

 Does IE have a problem with hiding/showing DIV's?  The form behaves
 properly.  injectLoginFunction() works (see below), the doLogin()
 method is called, and the user logged in (so says my server's
 console).  As you see below, on a successful login, the LOGIN_DIV in
 the original panel is hidden, the APPLICATION_DIV is made visible, and
 the application's MainWindowWidget is created and added to the
 APPLICATION_DIV.  (After a user logs off the server, the showLoginDiv
 () method is called, and we start over.)

 As I said, this works in hosted mode, Firefox 3.5, and Safari 4.  In
 IE, after the login completes, all I see is a blank browser, and
 Done in the lower left message area (no JS error).

 Is there another way to handle this that will work with IE?

 private static native void injectLoginFunction() /*-{
         $wnd.__gwt_login = function() {
                 @com.mycorp.web.client.Workstation::doLogin()();
         };

 }-*/;

 @SuppressWarnings(unused)
 private static void doLogin() {
         final RootPanel applPanel = RootPanel.get
 (Workstation.APPLICATION_DIV);
         final RootPanel logonPanel = RootPanel.get(Workstation.LOGIN_DIV);
         AsyncCallbackLoginInfo callback = new AsyncCallbackLoginInfo() {
                 public void onSuccess(LoginInformation result) {
                         Workstation.setLoginInfo(result);
                         logonPanel.setVisible(false);
                         applPanel.setVisible(true);
                         MainWindowWidget mw = new MainWindowWidget();
                         applPanel.add(mw);
                 }
                 public void onFailure(Throwable caught) {
                         if 
 (caught.getMessage().contains(java.net.ConnectException))
                                 Window.alert(Cannot connect to server.\n+
                                                 Server name or RPC number 
 invalid.);
                         else
                                 Window.alert(caught.getMessage());
                 }
         };

         String name = ((InputElement)Document.get().getElementById
 (username)).getValue();
         String pw = ((InputElement)Document.get().getElementById
 (password)).getValue();
         String svr = ((InputElement)Document.get().getElementById
 (server)).getValue();
         ClientInfo ci = new ClientInfo();
         LiloServicesAsync service = (LiloServicesAsync) GWT.create
 (LiloServices.class);
         service.doLogin(name, pw, svr, ci, callback);

 }

 public static void showLoginDiv() {
         RootPanel applPanel = RootPanel.get(Workstation.APPLICATION_DIV);
         applPanel.clear();
         applPanel.setVisible(false);
         RootPanel logonPanel = RootPanel.get(Workstation.LOGIN_DIV);
         logonPanel.setVisible(true);

 }
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: @SuppressWarnings(serial)

2009-09-03 Thread Paul Grenyer

Hi

 Don't the Servlets need to have a serial version ID in case the server
 decides to passivate them?

I'm afraid I have no idea what you mean here

 ...or would that imply that the Servlets have 'state' (which shouldn't
 be the case).

Servlets don't have state outside of the http session.

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.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-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 Interface Standards?

2009-09-03 Thread Sumit Chandel
Hi Dave,
I would have to agree that UI Standards is a pretty broad term here, so it's
hard to tell what exactly you or the higher-ups in your company are
referring to. If they just want to get an idea of what the GWT widget set
looks like, you should probably invite them to take a look at the GWT
Showcase sample application.

GWT Showcase:
http://gwt.google.com/samples/Showcase/Showcase.html

http://gwt.google.com/samples/Showcase/Showcase.htmlHope that helps,
-Sumit Chandel

On Thu, Aug 27, 2009 at 8:26 AM, David C. Hicks dhi...@i-hicks.org wrote:


 I'm looking for documentation about what UI standards GWT may follow, if
 any.  My higher ups are interested in where we stand in this regard.
 Can someone point me to a good source for information?  I've had no
 luck, so far.

 Thanks,
 Dave


 


--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Prevent duplicate record insertion on page refresh

2009-09-03 Thread Rahul

Hi,
I am displaying values in a listbox through connecting with an
sqlserver via RPC. Whenever I refresh the browser the values in the
listbox gets duplicated.

Can anyone tell me how to solve this problem? Is it something to do
with the client side of gwt or the server side?


--~--~-~--~~~---~--~~
You received 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: @SuppressWarnings(serial)

2009-09-03 Thread Andy

Sorry, I was reading that the reason that Servlets implement the
Serializable interface was so that server vendors had the option of
hibernating a Servlet's state for the purpose of load balancing or
server replication.

The only 'state' that I can think that a Servlet could have would be a
static object that did something like count how may times the Servlet
has performed a particular task.

As there are far better ways of doing that sort of thing, I guess that
Servlets should be stateless and therefore don't need to be
Serializable. However, as they have to implement the Serializable
interface, suppressing the warnings is neater than generating IDs all
the time.

On Sep 3, 12:03 pm, Paul Grenyer paul.gren...@gmail.com wrote:
 Hi

  Don't the Servlets need to have a serial version ID in case the server
  decides to passivate them?

 I'm afraid I have no idea what you mean here

  ...or would that imply that the Servlets have 'state' (which shouldn't
  be the case).

 Servlets don't have state outside of the http session.

 --
 Thanks
 Paul

 Paul Grenyer
 e: paul.gren...@gmail.com
 b: paulgrenyer.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-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: @SuppressWarnings(serial)

2009-09-03 Thread Paul Grenyer

Hi

 As there are far better ways of doing that sort of thing, I guess that
 Servlets should be stateless and therefore don't need to be
 Serializable. However, as they have to implement the Serializable
 interface, suppressing the warnings is neater than generating IDs all
 the time.

You've got it.

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.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-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: @SuppressWarnings(serial)

2009-09-03 Thread Andy

Thanks!

On Sep 3, 12:48 pm, Paul Grenyer paul.gren...@gmail.com wrote:
 Hi

  As there are far better ways of doing that sort of thing, I guess that
  Servlets should be stateless and therefore don't need to be
  Serializable. However, as they have to implement the Serializable
  interface, suppressing the warnings is neater than generating IDs all
  the time.

 You've got it.

 --
 Thanks
 Paul

 Paul Grenyer
 e: paul.gren...@gmail.com
 b: paulgrenyer.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-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: hosted mode trouble

2009-09-03 Thread sidkdbl07

Wow, its funny how in one split moment, epiphany can hit!

Thank you 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
-~--~~~~--~~--~--~---



Re: Hyperlink Token and Parms

2009-09-03 Thread vokke

Thanks for reply,
but I can only do Window.Location.replace onHistoryChanged.
So my HistoryHandler fires twice.
Is it a better solution to parse the token manually, without
Window.Location.getParameter?
Thanks again,
Vokke

On 3 Sep., 20:41, Tolga Özdemir tka...@gmail.com wrote:
 You can use Location.replace(); maybe it helps..



 On Thu, Sep 3, 2009 at 7:09 PM, vokke vkub...@gmail.com wrote:

  Hello Newsgroup,
  I have a problem creating hyperlinks with the right token and parms.

  Hyperlink test = new Hyperlink(TEST, ?
  wid=1+pos=2+#dosomething));

  I do get #?wid=1pos=2#dosomething
  But I need:
  ?wid=1pos=2#dosomething
  to make sure to use

  String id = Window.Location.getParameter(wid );

  How do I achieve this?
  I tried with setHTML but no luck.
  Thanks,
  Vokke

 --
 Tolga Özdemir

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



Re: GWT, MVP, and nested widgets

2009-09-03 Thread Nathan Wells

Ian,

we've taken a little different approach than you have. Let me explain
the setup we have for the navigation section of our application:

NavigationPresenter - the presenter for this section of the
application
NavigationDisplay - a presenter-utilized, view implemented interface.
HasMenuStructure - an interface, extended by NavigationDisplay, used
for adding menuitems and submenus.
NavigationPanel - a view layer object, extends Composite, implements
NavigationDisplay

We're using an adaptation of the GWT MenuBar widget that implements
the HasMenuStructure interface.

interface HasMenuStructure {
  ...
  void addMenuItem(String html, Command cmd);
  HasMenuStructure addSubMenu(String html, boolean hasChildMenus);
  ...
}

hasChildMenus is important in our particular use, but may not be in
yours.

Using this setup, we can create the menu structure in the presenter
dynamically, without worrying about the underlying display details.
The html and cmd parameters for addMenuItem() are read in from a
configuration file on the server, filtered based on authorization
information, then passed to the presenter to allow the view to show
things to the user. It would be trivial, I would think, to replace the
Command interface with a ClickHandler interface, but since MenuBar
made use of commands, we went with that.

HTH...

On Sep 3, 8:07 am, Ian Bambury ianbamb...@gmail.com wrote:
 Thanks Jason,
 I understand what you are getting at, and I have come across this before,
 but hadn't considered using it here.

 I'm using this project as an opportunity to learn and to see how 'right' I
 can get it. If someone were paying me, then I wouldn't be so fussy, but my
 feelings are this:

 The MenuItem's presenter (and it's not GWT's MenuItem) should deal with user
 gestures from the MenuItemView - I like the simplicity of 'Click-fire
 event' and I don't like the idea that MenuItem+MenuItemView would not be a
 stand-alone unit and would rely on parent widgets to sort out what is going
 on. If the MenuItem presenter isn't going to do anything except pass through
 a reference to the MenuItemView, and the MenuItemView is going to hold the
 place token field, then why don't I just say to hell with it and get the
 MenuPanel to send Labels to the MenuPanelView. It would save all that
 faffing about.

 I think I'd like to stick with the MenuItem presenter firing an event if I
 can, and see if I can come up with a 'politically correct' answer to this.
 I'm sure there must be someone out there, or something on the web which can
 tell me how to do it, or explain why it's not possible, or give me a better
 solution altogether.

 If I find something, I'll post it.

 Thanks again,

 Ian

 http://examples.roughian.com

 2009/9/3 Jason A. Beranek jason.bera...@gmail.com



  Ian,

  Ok, I think I understand what are trying to do. Let me expand a bit on
  the addMenuItem( Object i..); example in something a little less
  abstract. First, I'm assuming your MenuItem is not equivalent to the
  GWT MenuItem class, if it is the solution would be different. Note, I
  don't have a full example so mileage may very. The approach is meant
  to deal with MVP of list type interfaces, where the list items (i.e.,
  MenuItem) bubble events up to a list presenter (i.e. MenuPanel).

  The example assumes that instead of each MenuItem reporting
  PlaceChange events, MenuItem selection events are bubbled from the UI
  up to the MenuPanel presenter (through its view) and the MenuPanel
  presenter fires the PlaceChange event. Effectively, a MenuItem's
  display becomes a simple widget within MenuPanel's view and doesn't
  require its own presenter (the presenter's work is handled by
  MenuPanel's presenter).

  First, some simple setup:

  public class MenuPanel {

   interface Display {

     void addMenuItem( String label, String token );

     HasSelectionHandlersString getMenuItemSelectionButton();

     void clearMenuItems();
   }

   ...

  }

  The above class shows a possible piece of the MenuPanel display
  interface. I am assuming in the above that a MenuItem takes a label
  that defines how the UI displays the object and the token as you
  describe above for the associate place/location when the item is
  clicked. In this example, the MenuPanel presenter determines the menu
  items required for the current place and calls addMenuItem to tell the
  MenuPanel view the MenuItem widgets to construct in the UI. The
  clearMenuItem method can be used clear the MenuItems to rebuild the
  specific items when the page changes.  Notice that I included another
  Display method called getMenuItemSelectionButton(), this returns an
  object the MenuPanel presenter can add a handler to so it can detect a
  MenuItem selection event. Here's an example of the bindDisplay method:

  void bindDisplay( Display display ) {
   this.display = display;

   //Listen for a token selection when the user picks a MenuItem
   display.getMenuItemSelectionButton().addSelectionHandler( 

Re: hosted mode trouble

2009-09-03 Thread Nathan Wells

Otherwise, you're going to have problems with the SOP (Same Origin
Policy). Basically javascript has a rule that you can't make requests
to a server other than the one the script originated from. There are
ways around this, but I'll let you do the research on that, or
alternately, compile and deploy each time you make a change.

On Sep 3, 8:45 am, Jeff Chimene jchim...@gmail.com wrote:
 On Wed, Sep 2, 2009 at 6:49 PM, sidkdbl07sidkwak...@gmail.com wrote:

  My php file is on a web server configured with PHP5. The address of
  the weather.php5 file ishttp://www.myserver.com/weather.php5.

  I'm debugging my GWT files in Eclipse. The GWT class (see above) makes
  a call to the weather.php5 page with the following line...

  RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,
  URL.encode(http://www.myserver.com/weather.php5;));

  Honestly, I don't know if I'm using the Jetty server. How do I tell? I
  have no app engine configured in Eclipse.

  When I debug my GWT project in Eclipse response.getStatusCode() comes
  back as 0 (zero)
  When I add -noserver to the run configuration, the GWT hosted mode
  browser doesn't display my page... it seems to just sit there empty.

  I hope this clears up what I'm trying to accomplish.

 Yes, that's the answer I was looking for.

 Do you know that in noserver mode you must compile your GWT
 application, and deploy it to your server?

 http://code.google.com/webtoolkit/doc/1.6/FAQ_DebuggingAndCompiling.h...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Announcing the Google Plugin for Eclipse 1.1.0

2009-09-03 Thread NIgel Leck

Why no support for Netbeans ? This just seems to be a bit of a game to
force people to use one IDE over the other.
--~--~-~--~~~---~--~~
You received 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: Iframe = multithreading ???

2009-09-03 Thread David

There is just 1 JS thread. Regardless of URL or IFrame.
The limit of max 2 connections is purely based on URL, not on per
IFrame basis. IE8 allows more than 2, I forgot the exact number.
To work around the connections limit you can spread web resources over
different hosts in the same domain.

Getting access to static classes in different IFrames can works but:
1) security restrictions might stop you from calling from one IFrame to another.
2) GWT code is obfuscated and can be totally different with every
change you make. So in order to get access to some static classes, you
will need to expose them through JSNI.

On Thu, Sep 3, 2009 at 2:10 AM, ben fensterfenster@gmail.com wrote:

 another thing about the http request limitation most browsers rejects
 more then 2 simultinus requests to a spacific  url and i wondered i
 its aplays to 2 diffrent browser windows (diffrent process in new
 browsers) and if iframe acts as new web page  maybe the limitation
 grows by 2 for each iframe

 On Sep 2, 5:05 pm, ben fenster fenster@gmail.com wrote:
 your answear is based on your knolage in js but i need an answear
 based on actual in depth knowlage in how browser work since each
 iframe act as an independed wep page and loaded sepertly then the
 containing page made me wonder about how its being done without a
 diffrent thread ?
 and if another thread is envolved in loading then maybe the new thread
 is also responsible on running the js code contained in the page of
 the iframe ?
 On Sep 2, 5:46 pm, David Given d...@cowlark.com wrote:

  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1

  ben fenster wrote:
   i was wondering that if by opening another module in an iframe tag the
   code of that module runs in another thread ??

  Nope. There is no way of getting access to multiple Javascript threads
  from a web browser, unless you use some sort of extension like Google
  Gears or HTML5 web workers. Every part of the Javascript VM that your
  code can see is part of the same event loop.

   more over is the limit of 2 open http request apply on 2 diffrent
   modules running in diffrent iframes ??

  Don't know about this one.

  - --
  ┌─── dg@cowlark.com ─http://www.cowlark.com─
  │
  │ People who think they know everything really annoy those of us who
  │ know we don't. --- Bjarne Stroustrup
  -BEGIN PGP SIGNATURE-
  Version: GnuPG v1.4.9 (GNU/Linux)
  Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/

  iD8DBQFKnxH6f9E0noFvlzgRApqiAKC/xF4z1x0t7s+8kAsTVoSxYFRFmQCfaUcx
  7F+QaH0Fdc9baW9Wcgl3swM=
  =ukVk
  -END PGP SIGNATURE-
 


--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Your GWT based open source project(s)

2009-09-03 Thread Fred Sauer
From time to time I hear from people who have created GWT related open
source projects.
If that includes you, here's my 1 question, 10 second survey:
* Q. Were you encouraged to open source your project because of the
benefits*
*  you gained from another open source project (GWT, or any other
project)?*

(Private replies are fine too).


Thanks--
Fred Sauer
Developer Advocate
Google Inc. 1600 Amphitheatre Parkway
Mountain View, CA 94043
fre...@google.com

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



Re: Your GWT based open source project(s)

2009-09-03 Thread Jeff Chimene

On 09/03/2009 04:40 PM, Fred Sauer wrote:
 From time to time I hear from people who have created GWT related open
 source projects.
 
 If that includes you, here's my 1 question, 10 second survey:
 
 * Q. Were you encouraged to open source your project because of the
 benefits*
 *  you gained from another open source project (GWT, or any
 other project)?*
 
 (Private replies are fine too).

Yes

--~--~-~--~~~---~--~~
You received 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: Hyperlink Token and Parms

2009-09-03 Thread Thomas Broyer



On 3 sep, 18:09, vokke vkub...@gmail.com wrote:
 Hello Newsgroup,
 I have a problem creating hyperlinks with the right token and parms.

 Hyperlink test = new Hyperlink(TEST, ?
 wid=1+pos=2+#dosomething));

 I do get #?wid=1pos=2#dosomething
 But I need:
 ?wid=1pos=2#dosomething
 to make sure to use

 String id = Window.Location.getParameter(wid );

 How do I achieve this?
 I tried with setHTML but no luck.

Hyperlink is for the cases where you'd use History.newItem() on click,
otherwise, use an Anchor widget.
--~--~-~--~~~---~--~~
You received 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: translate DateTimeFormat output

2009-09-03 Thread PH

Hi Dominik,

 tnx for your reply!!

 Actually I was looking for some solution where I could determine at
run time in which language I should display my date information (ie.
portuguese, english, spanich, etc).

 Maybe this is determined by the client browser? Since the JS will
execute on the client, it will print using the client system
language?!

 Tnx once more!

 Best regards

 PH


On Sep 2, 6:53 pm, Dominik Steiner dominik.j.stei...@googlemail.com
wrote:
 Hi PH,

 you mean how you can set the locale for a specific language?

 I added this line to the modules gwt.xml file

         extend-property name=locale values=es/

 This one will set the locale for the language of spanish.

 HTH

 Dominik

 On 2 Sep., 14:34, PH phlcas...@gmail.com wrote:



  Hi guys,

   sorry if this question looks stupid, but I didn't find an answer for
  it.

   How could I translate the DateTimeFormat.getFormat().format() output?
  ie.:

   DateTimeFormat.getFormat( ).format(dateobject);

   from: October 2009 to Outubro 2009

   Tnx in advance.

   Best regards,

   PH
--~--~-~--~~~---~--~~
You received 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: Is it a bug in DialogBox?

2009-09-03 Thread Parvez Shah
Not sure if its a Bug of DialogBox
my guess is its a bug of decorator panel

any way your problem is you are setting size of DialogBox which is creating
the problem
solution 1) remove setSize
solution 2) if you want to use setSize then wrap your content in vertical
panel
something like this

class ClothingForm extends DialogBox {
public ClothingForm() {
setText(Clothing);
//setSize(30em, 30em);

Button ok = new Button(OK);
ok.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
ClothingForm.this.hide();
}
});

VerticalPanel content = new VerticalPanel();
content.setSize(30em, 30em);
setWidget(content);
content.add(ok);
}
}


On Thu, Sep 3, 2009 at 8:05 PM, Bob L. bob.net2...@gmail.com wrote:


 public class ClothingForm extends DialogBox {
public ClothingForm() {
  setText(Clothing);
  setSize(30em, 30em);

  Button ok = new Button(OK);
  ok.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
ClothingForm.this.hide();
}
  });

  setWidget(ok);
}
 }

 The result:

 http://lh3.ggpht.com/_HQyyXYqJEaE/Sp_TxaB6FII/AMk/F3pqmFFjG4s/s800/dialogbox.png.jpg

 


--~--~-~--~~~---~--~~
You received 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: Unable to Find 'com/google/gwt/widgetIdeas/libIdeas.gwt.xml'

2009-09-03 Thread Mark Rieck
I might as well document this for myself so I don't forget...

To use the incubator in GWT 1.7 you'll need to do the steps above, and add
something like this to your build.xml file:

fileset dir=${gwt.sdk} includes=gwt-inc*.jar/

The build.xml is only created if you used webAppCreator to create the
project, and as far as I know that's needed if you want GWT to output files
like the old version... (I'm using GWT/PHP on my wamp localhost server, so I
need the files.)

Here's an example of my build.xml  (Note: I never use hosted mode, I just
copy over files to a gwt folder on localhost).

?xml version=1.0 encoding=utf-8 ?
project name=RobotSite default=build basedir=.
  !-- Configure path to GWT SDK --
  property name=gwt.sdk location=C:/wamp/www/gwt/gwt17 /

  path id=project.class.path
pathelement location=war/WEB-INF/classes/
pathelement location=${gwt.sdk}/gwt-user.jar/
fileset dir=${gwt.sdk} includes=gwt-dev*.jar/
!-- Add any additional non-server libs (such as JUnit) --
fileset dir=war/WEB-INF/lib includes=**/*.jar/
fileset dir=${gwt.sdk} includes=gwt-incu*.jar/
  /path

  target name=libs description=Copy libs to WEB-INF/lib
mkdir dir=war/WEB-INF/lib /
copy todir=war/WEB-INF/lib file=${gwt.sdk}/gwt-servlet.jar /
!-- Add any additional server libs that need to be copied --
  /target

  target name=javac depends=libs description=Compile java source
mkdir dir=war/WEB-INF/classes/
javac srcdir=src includes=** encoding=utf-8
destdir=war/WEB-INF/classes
source=1.5 target=1.5 nowarn=true
debug=true debuglevel=lines,vars,source
  classpath refid=project.class.path/
/javac
copy todir=war/WEB-INF/classes
  fileset dir=src excludes=**/*.java/
/copy
  /target

  target name=gwtc depends=javac description=GWT compile to
JavaScript
java failonerror=true fork=true
classname=com.google.gwt.dev.Compiler
  classpath
pathelement location=src/
path refid=project.class.path/
  /classpath
  !-- add jvmarg -Xss16M or similar if you see a StackOverflowError --
  jvmarg value=-Xmx256M/
  !-- Additional arguments like -style PRETTY or -logLevel DEBUG --

  arg value=com.MadeByRobots.client.RobotSite/
/java
  /target

  target name=build depends=gwtc description=Copies GWT generated
files to www 
copy todir=../../../robotsite/gwt
  fileset dir=war/robotsite /
/copy
  /target

/project


With this configuration ant build from the command line will compile and
copy over the gwt files to my server folder.

Of course, you'll need to have to have ant installed and in the classpath:
http://techpitcher.com/installing-apache-ant-in-windows.html
http://techpitcher.com/installing-apache-ant-in-windows.html




On Mon, Dec 15, 2008 at 4:06 PM, Mark Rieck uprightneti...@gmail.comwrote:

 Wow, I don't know how I didn't see that. I guess it's because I made two
 projects because I was using old incubator code before etc, and I was
 looking at the wrong file except when I got so frustrated I had to post to
 Google Groups...

 Sorry to waste everyone's time.  Thanks.



 On Mon, Dec 15, 2008 at 12:47 PM, Isaac Truett itru...@gmail.com wrote:


 Did you mean com.google.gwt.libideas.LibIdeas?

 On Mon, Dec 15, 2008 at 3:33 PM, uprightnetizen
 uprightneti...@gmail.com wrote:
 
  I'm trying to use the FastTree in my project in Eclipse.
 
  I have this in my module gwt.xml:
   inherits name='com.google.gwt.widgetideas.WidgetIdeas' /
   inherits name='com.google.gwt.widgetideas.LibIdeas' /
 
  I went to Project Properties - Java Build Path, then added the
  gwt-incubator_1-4_final.jar
 
  I also changed the text in the shell and compile.cmd to have ;path-to-
  incubator-jar after the other jars.
 
  Is there anything else I have to do to get the incubator widgets to
  work?
 
  
 

 



--~--~-~--~~~---~--~~
You received 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: semaphores in gwt

2009-09-03 Thread JSaar

2 Options:

make 2 booleans set each in the belonging callback.onSuccess
and check them in both callback.onSuccess
and go on if both are true

On serverside make 1 method out of the 2 you have now
so you have 1 rpc-call

the first way would be the semaphore-way ... standard-business

On Aug 30, 2:20 am, Jaap jaap.hait...@gmail.com wrote:
 Hi,

 When starting my webapp I do two RPC calls. I need the data of both of
 them in order to display something. If you work with threads with a
 native program you just use semaphores to achieve this. What's the
 way to do this in GWT?

 Thanks

 Jaap
--~--~-~--~~~---~--~~
You received 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: Hyperlink Token and Parms

2009-09-03 Thread Tolga Özdemir
Yeaps I think so.. I am currently working on such a class.. Let's who
finishes it first, shares it :)



On Fri, Sep 4, 2009 at 3:22 AM, Thomas Broyer t.bro...@gmail.com wrote:




 On 3 sep, 18:09, vokke vkub...@gmail.com wrote:
  Hello Newsgroup,
  I have a problem creating hyperlinks with the right token and parms.
 
  Hyperlink test = new Hyperlink(TEST, ?
  wid=1+pos=2+#dosomething));
 
  I do get #?wid=1pos=2#dosomething
  But I need:
  ?wid=1pos=2#dosomething
  to make sure to use
 
  String id = Window.Location.getParameter(wid );
 
  How do I achieve this?
  I tried with setHTML but no luck.

 Hyperlink is for the cases where you'd use History.newItem() on click,
 otherwise, use an Anchor widget.
 



-- 
Tolga Özdemir

Mobile 0 536 963 7890
MSN ozde...@hotmail.com

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



How to improve RPC performance

2009-09-03 Thread Livinglegends

Hi,

I have one question regarding performance of GWT.

In our project there are total 12 column and 5000 record to display.
We are using List of pojo to get the data from server.
DB is taking 9 sec to retrieve all data but to retrieve data through
rpc call from server and client is taking 7-8 second thus total time
taken by it is 9 sec + 8 sec = 17 secs.

So, how to improve RPC performance so I can retrieve data from server
to client withing 2-3 seconds.

Kindly help me.

Livinglegends

--~--~-~--~~~---~--~~
You received 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: Is Google Web Toolkit for me?

2009-09-03 Thread sidni

Hey Spierce,

If u require AJAX enabled web app, GWT is viable option but it seems u
dont have much hands-on with JAVA/its related technology and learning
the whole JAVA web App stack is quite an effort from scratch.

There is no doubt that choosing GWT means ur web app has to be purely
Java-based.
As rightly pointed out in above post, u would require GWT (client-
side) and Spring/Hibernate or other similar technologies (server-side)
to create a maintainable, efficient Java web app. Thus u would be
learning a whole new techs to bring ur web app live.

If u r comfortable with Php world, I would suggest u stick to it and
find ways to introduce Ajax within it, in the end ur goal is not to
learn different technologies or be an architect but to build ur web
app, make it live.

Hope it doesnt confuse u,
Nitesh


On Sep 3, 10:36 pm, mikedshaffer mikedshaf...@gmail.com wrote:
 I'll throw in here

 GWT is primarily a client side technology, so in your statement
 better off sticking with PHP, JS,  CSS, GWT would replace only the
 last 2.  PHP (obviously) only runs on the server.  By choosing GWT you
 will still need to choose a server side technology assuming you want
 to connect to a database.  Many people are familiar with PHP, so they
 stick with that, communicating between client and server using JSON,
 which GWT handles terrifically.  You can also use Java for your server
 side technology, and then you can very simply use GWT-RPC to handle
 your communication.  As for connecting to MySQL, Java will connect to
 MySQL all day long, as will PHP.  Just a matter of what syntax/stack
 you are familiar with.  The key thing to focus on here with GWT is
 that it is an AJAX client library that makes it very easy to build
 powerful AJAX web clients (or substitute your favorite acronym for
 that) using Java syntax.  If you use Java for your server tier, then
 you get to use a teenie bit more GWT, but that's it.

 Does that make sense?

 Later,

 Shaffer

 On Sep 2, 6:54 pm, David Given d...@cowlark.com wrote:



  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1

  spierce7 wrote:

  [...]

   By the way, I'm going to need to integrate with a web database. The
   obvious one for me was MySQL, but that was mainly because PHP
   integrates so easily with it. What kind of options do I have with this
   while using GWT? I'd rather not have to have GWT integrate with PHP,
   and then MySQL, or some other ridiculous thing. What options do I have
   here? Thanks in advance!

  I'm using Berkeley DB JE for one of my apps; it's a pure-Java
  reimplementation of the old classic Berkeley DB non-relational database.
  It's got some really nice Java reflection glue that combines well with
  GWT's RPC glue. I can pull an object out of the database on the server
  and pass it directly to the client in about three lines of code, and GWT
  and Berkeley DB take care of all the plumbing. And because it's pure
  Java, there's no extra dependencies on the server --- you just drop the
  jarfile in WEB-INF/lib and it Just Works(tm).

  A server-side RPC implementation can be as literally trivial as this:

  DataObject getFromDB(int key)
  {
    try
    {
      return _index.get(key);
    }
    catch (DatabaseException e)
    {
      return null;
    }

  }

  - --
  ┌─── dg@cowlark.com ─http://www.cowlark.com─
  │
  │ People who think they know everything really annoy those of us who
  │ know we don't. --- Bjarne Stroustrup
  -BEGIN PGP SIGNATURE-
  Version: GnuPG v1.4.9 (GNU/Linux)
  Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/

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



[gwt-contrib] Re: New API proposal: BatchedCommand

2009-09-03 Thread Ray Cromwell
Could this also be used as a general pattern to batch DOM updates from
multiple Widgets performing updates? e.g. a current approach to avoid the
overhead, of say, installing a dozen widgets, is to concatenate all the HTML
together, slam it into innerHTML, and then wrap the widgets around the HTML.
But this rather breaks the nice OO design people are used to with widgets.
Templating is an alternative, but I'm wondering, why can't we make all of
the attachment stuff happen via a batch queue. A special optimizer on the
queue could even recognize instances of when DOM updates can be coalesced
and leverage documentFragment or innerHTML.
e.g.

VerticalPanel vp = ...
vp.add(new Label())
vp.add(new Label())

The objects are constructed, but the HTML mutations are deferred/queued.
When adding a DOM mutation to the queue, you could check if existing queue
data isOrHasChild the new DOM mutation element, and if so, just modify the
queue element (coalesce) rather than appending another queue item. Then,
when processing the queue, you only need to add the roots to the DOM,
attaching/modifying enmasse.

This would preserve the OO-ness of constructing widget hierarchies without
requiring 'foreign' string-based templating.

-Ray


On Wed, Sep 2, 2009 at 5:13 PM, Bruce Johnson br...@google.com wrote:

 On Wed, Sep 2, 2009 at 6:07 PM, Scott Blum sco...@google.com wrote:

 I do agree with John that we should really discuss how this can be
 implemented.


 It's already implemented!


  Is there some magic trick to make the browser execute a piece of code at
 the time you want, or do we need to go and modify all our event code (like
 with the global uncaught exception handler)?


 No trick, it's as bad as you'd hope it wasn't. On the positive side, it's
 already been done -- I'm just augmenting the tests for the various
 subsystems such as RequestBuilder and event dispatching to make sure we
 tighten the correctness noose as much as possible.

 Longer term, Bob and I both would really like to find a general mechanism
 for making this pattern easy to do from any path into a GWT module from the
 outside, exactly along the lines of what Matt was talking about. I think
 rolling this functionality into gwt-exporter (and then rolling that sort of
 functionality directly into GWT proper) will get us pretty far down the
 road.

 Code review request forthcoming, possibly tomorrow.

 -- Bruce

 


--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: r6073 committed - Removing an assertion that introduced a breaking change....

2009-09-03 Thread Thomas Broyer


On 2 sep, 19:56, codesite-nore...@google.com wrote:
 Revision: 6073
 Author: jlaba...@google.com
 Date: Wed Sep  2 10:55:41 2009
 Log: Removing an assertion that introduced a breaking change.

 Patch by: jlabanca
 Review by: jgw (TBR)

 http://code.google.com/p/google-web-toolkit/source/detail?r=6073

 Modified:
   /trunk/user/src/com/google/gwt/user/client/ui/Button.java

 ===
 --- /trunk/user/src/com/google/gwt/user/client/ui/Button.java   Wed Sep  2  
 07:58:52 2009
 +++ /trunk/user/src/com/google/gwt/user/client/ui/Button.java   Wed Sep  2  
 10:55:41 2009
 @@ -54,7 +54,6 @@
       assert Document.get().getBody().isOrHasChild(element);

       Button button = new Button(element);
 -    assert button.equalsIgnoreCase(button.getButtonElement().getType());

       // Mark it attached and remember it for cleanup.
       button.onAttach();

As I said when posting the initial patch, that was something I
wasunsure about (and I explicitly pointed out that it was breaking
backwards compat') http://gwt-code-reviews.appspot.com/61809

...but on the other hand, TextBox.wrap() has an assertion on type=text
(actually in the TextBox(Element) ctor) which makes it unable to wrap
an input type=password (use a PasswordTextBox for that) whereas
PasswordTextBox doesn't add any particular method or behavior change
to TextBox. This is a very similar situation to Button vs.
SubmitButton and ResetButton.

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Snow Leopard 32-bit checking fix.

2009-09-03 Thread cromwellian


http://gwt-code-reviews.appspot.com/64802/diff/1/2
File dev/mac/src/com/google/gwt/dev/BootStrapPlatform.java (right):

http://gwt-code-reviews.appspot.com/64802/diff/1/2#newcode117
Line 117: return 32.equals(System.getProperty(sun.arg.data.model));
On 2009/09/03 05:56:42, jat wrote:
 If this is cross-platform, shouldn't we do this check for all
platforms when not
 using OOPHM?

Typo:
sun.arch.data.model, not sun.arg.data.model

http://gwt-code-reviews.appspot.com/64802

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Issue 4010: clean up DOMImplTrident. getTagName()

2009-09-03 Thread jlabanca

Later meaning within the next day

http://gwt-code-reviews.appspot.com/59805

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Issue 4010: clean up DOMImplTrident. getTagName()

2009-09-03 Thread jlabanca

LGTM

I'll submit this later

http://gwt-code-reviews.appspot.com/59805

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: A number of layout-related changes.

2009-09-03 Thread Sami Jaber
Just a few remarks relating to the design changes...

*RequiresLayout.java* : We expose now animation routines in this interface.
With those new animation methods this interface becomes more constraining
when you have to provide a subclass. What about a panel provider that would
not want to implement any animation stuff ? Maybe something like
RequiresLayoutWithAnimation and RequiresLayoutWithoutAnimation or design
something that would lead to optional animation would be nice.

*LayoutPanel.java* : ProvidesLayout is replaced by both interfaces
RequiresResize and ProvidesResize. IMHO this split seems to be redundant.
Why this separation if at the end onLayout() calls onResize() and onResize()
calls onResize() for all its children ?

*ProvidesLayout.java:* This class is removed and replaced by ProvideResize
but in the providers side, we have two different interfaces RequiresLayout
and RequiresResize ...

Joel, would be very interested to understand the limitations you got in the
previous design ….

Sami

On Thu, Sep 3, 2009 at 6:34 AM, rj...@google.com wrote:


 Still LGTM, some nits.


 http://gwt-code-reviews.appspot.com/63801/diff/1/2
 File user/javadoc/com/google/gwt/examples/DockLayoutPanelExample.java
 (right):

 http://gwt-code-reviews.appspot.com/63801/diff/1/2#newcode49
 Line 49: rp.layout();
 So this doesn't call its children's layout methods? That seems like a
 shame. If it does, then the p.layout method above is redundant, right?

 http://gwt-code-reviews.appspot.com/63801/diff/1/3
 File user/javadoc/com/google/gwt/examples/LayoutExample.java (right):

 http://gwt-code-reviews.appspot.com/63801/diff/1/3#newcode35
 Line 35: // percentages.
 Might as well make this the class comment.

 Worth mentioning that most app developers won't do this (right?), and
 what they'd do instead.

 http://gwt-code-reviews.appspot.com/63801/diff/1/3#newcode43
 Line 43: Element topChild = doc.createDivElement(), bottomChild =
 doc.createDivElement();
 long line

 http://gwt-code-reviews.appspot.com/63801/diff/1/8
 File user/src/com/google/gwt/layout/client/UserAgent.java (right):

 http://gwt-code-reviews.appspot.com/63801/diff/1/8#newcode24
 Line 24: public class UserAgent {
 should file an issue to make sure you remember to hit this TODO before
 2.0 ships (or make this not public again), or we'll be living with this
 for a long time...

 http://gwt-code-reviews.appspot.com/63801

 


--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: r6073 committed - Removing an assertion that introduced a breaking change....

2009-09-03 Thread Joel Webber
LGTM. I have no objection to loosening up these assertions when a case like
this comes up. Others (e.g., input type='password') may have to be loosened
up at some point as well.

On Thu, Sep 3, 2009 at 3:01 AM, Thomas Broyer t.bro...@gmail.com wrote:



 On 2 sep, 19:56, codesite-nore...@google.com wrote:
  Revision: 6073
  Author: jlaba...@google.com
  Date: Wed Sep  2 10:55:41 2009
  Log: Removing an assertion that introduced a breaking change.
 
  Patch by: jlabanca
  Review by: jgw (TBR)
 
  http://code.google.com/p/google-web-toolkit/source/detail?r=6073
 
  Modified:
/trunk/user/src/com/google/gwt/user/client/ui/Button.java
 
  ===
  --- /trunk/user/src/com/google/gwt/user/client/ui/Button.java   Wed Sep
  2
  07:58:52 2009
  +++ /trunk/user/src/com/google/gwt/user/client/ui/Button.java   Wed Sep
  2
  10:55:41 2009
  @@ -54,7 +54,6 @@
assert Document.get().getBody().isOrHasChild(element);
 
Button button = new Button(element);
  -assert
 button.equalsIgnoreCase(button.getButtonElement().getType());
 
// Mark it attached and remember it for cleanup.
button.onAttach();

 As I said when posting the initial patch, that was something I
 wasunsure about (and I explicitly pointed out that it was breaking
 backwards compat') http://gwt-code-reviews.appspot.com/61809

 ...but on the other hand, TextBox.wrap() has an assertion on type=text
 (actually in the TextBox(Element) ctor) which makes it unable to wrap
 an input type=password (use a PasswordTextBox for that) whereas
 PasswordTextBox doesn't add any particular method or behavior change
 to TextBox. This is a very similar situation to Button vs.
 SubmitButton and ResetButton.

 


--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: A number of layout-related changes.

2009-09-03 Thread jgw

http://gwt-code-reviews.appspot.com/63801

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: A number of layout-related changes.

2009-09-03 Thread jgw

http://gwt-code-reviews.appspot.com/63801

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] give gwt.junit a haltonfailure attribute

2009-09-03 Thread Freeland Abbott
Looks like we want a different solution for test.web.htmlunit, but here's
the haltonfailure flag for gwt.junit

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



gwtjunit-haltonfailure.patch
Description: Binary data


[gwt-contrib] Re: give gwt.junit a haltonfailure attribute

2009-09-03 Thread John LaBanca
LGTM

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


On Thu, Sep 3, 2009 at 11:47 AM, Freeland Abbott fabb...@google.com wrote:

 Looks like we want a different solution for test.web.htmlunit, but here's
 the haltonfailure flag for gwt.junit

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Change SOYC dashboard to accept symbol maps created by different linker

2009-09-03 Thread kprobst

Reviewers: Lex, schuck_google.com,

Description:
This change to the dashboard updates the settings parser to read symbol
maps files created with the CompactSymbolLinker.

Please review this at http://gwt-code-reviews.appspot.com/65802

Affected files:
   dev/core/src/com/google/gwt/soyc/Settings.java


Index: dev/core/src/com/google/gwt/soyc/Settings.java
===
--- dev/core/src/com/google/gwt/soyc/Settings.java  (revision 6077)
+++ dev/core/src/com/google/gwt/soyc/Settings.java  (working copy)
@@ -230,16 +230,19 @@
  while ((sc.hasNextLine())  (lineCount  2)) {

String curLine = sc.nextLine();
-  curLine = curLine.replace(# {, );
-  curLine = curLine.replace(}, );
curLine = curLine.trim();

-  if (lineCount == 0) {
-permutationId = curLine;
-  } else {
-permutationInfo = curLine;
+  if (curLine.startsWith(# {)) {
+curLine = curLine.replace(# {, );
+curLine = curLine.replace(}, );
+curLine = curLine.trim();
+if (lineCount == 0) {
+  permutationId = curLine;
+} else {
+  permutationInfo = curLine;
+}
+lineCount++;
}
-  lineCount++;
  }
  allPermsInfo.put(permutationId, permutationInfo);
}



--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Eliminate dead links in SOYC dashboard when displayDependencies is off

2009-09-03 Thread kprobst

Reviewers: Lex,

Description:
Hi Lex,

could you review this patch for me?  It eliminates some dead links in
the dashboard when displayDependencies is turned off.

Thanks!

kathrin

Please review this at http://gwt-code-reviews.appspot.com/65803

Affected files:
   dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java


Index: dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java
===
--- dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java   
(revision  
6077)
+++ dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java   
(working  
copy)
@@ -729,7 +729,7 @@
  outFile.println(tr);
  outFile.println(td class=\barlabel\ + size + /td);
  outFile.println(td class=\barlabel\ + perc + %/td);
-if (dependencyLink != null) {
+if ((settings.displayDependencies)  (dependencyLink != null)) {
outFile.println(td class=\barlabel\a href=\ +  
dependencyLink
+ \ target=\_top\ + className + /a/td);
  } else {
@@ -1007,15 +1007,17 @@

private void addLefttoversStatus(String className, String packageName,
PrintWriter out, String permutationId) {
-out.println(trtdnbsp;nbsp;nbsp;nbsp;a href=\
-+ dependenciesFileName(total, packageName, permutationId) + #
-+ className + \See why it's live/a/td/tr);
-for (int sp = 1; sp = globalInformation.getNumSplitPoints(); sp++) {
+if (settings.displayDependencies) {
out.println(trtdnbsp;nbsp;nbsp;nbsp;a href=\
-  + dependenciesFileName(sp + sp, packageName, permutationId)  
+ #
-  + className + \See why it's not exclusive to s.p. # + sp +   
(
-  + globalInformation.getSplitPointToLocation().get(sp)
-  + )/a/td/tr);
+  + dependenciesFileName(total, packageName, permutationId) + #
+  + className + \See why it's live/a/td/tr);
+  for (int sp = 1; sp = globalInformation.getNumSplitPoints(); sp++) {
+out.println(trtdnbsp;nbsp;nbsp;nbsp;a href=\
++ dependenciesFileName(sp + sp, packageName, permutationId)  
+ #
++ className + \See why it's not exclusive to s.p. # + sp  
+  (
++ globalInformation.getSplitPointToLocation().get(sp)
++ )/a/td/tr);
+  }
  }
}

@@ -1386,9 +1388,14 @@
  out.println(table border=\1\ width=\80%\ style=\font-size:  
11pt;\ bgcolor=\white\);

  if  
(globalInformation.getInitialCodeBreakdown().classToSize.containsKey(className))
  
{
-  out.println(trtdSome code is initial (a href=\
-  + dependenciesFileName(initial, packageName, permutationId)  
+ #
-  + className + \see why/a)/td/tr);
+  if (settings.displayDependencies) {
+out.println(trtdSome code is initial (a href=\
++ dependenciesFileName(initial, packageName, permutationId)  
+ #
++ className + \see why/a)/td/tr);
+  }
+  else {
+out.println(trtdSome code is initial/td/tr);
+  }
  }
  for (int sp : splitPointsWithClass(className)) {
out.println(trtdSome code downloads with s.p. # + sp +  (



--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Focus/blur on a group of widgets?

2009-09-03 Thread Ray Ryan
Oooh, sorry. You were asking the *hard* question, not the easy one.
I think the short answer is that there's no easy answer. See
http://code.google.com/p/google-web-toolkit/issues/detail?id=1431 for some
of the reasons. Another short answer is I don't get this stuff but Joel
does.

rjrjr

On Wed, Sep 2, 2009 at 12:13 PM, Ed post2edb...@hotmail.com wrote:


 Tanks Ray,

 I understand what you mean but don't really see how this could solve
 my problem.

 My problem is to detect a single focus/blur event of a group of
 widgets.

 Looking at your explanation I do translate these events to a general
 ValidationChange event.
 However, to trigger the validation of my composite widget I have to
 detect a single blur (like explained above of the examples).
 Reading your explanation; my problem is the implementation of this
 semantic event as the client won't see this blur/focus event directly,
 but the ValidationChangeEvent.

 Is there anyway to analyze the upcomming gwt events, when receiving
 a gwt event? In this way I can see if a focus event of one of the
 widgets in the group is following the blur event, so I can decide if
 the blur event is a blur of the whole group of widgets



 


--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Hello ui:style

2009-09-03 Thread jgw

On 2009/09/03 04:05:36, Ray Ryan wrote:
 Okay, name - field was trivial, done.

LGTM so far. I modified a bit of the mail sample to use this, and it
worked a charm.

A couple of minor nits:
- I assume that DS_Store and ButtonTest are accidentally attached to
this patch.
- Could use some validation on Style interface not extending
CssResource. I failed to do this on my first try, and the error is
pretty deeply obscure, because it's not caught until the compiler sees
it. Don't consider this blocking, though -- just something we should do
before shipping.


http://gwt-code-reviews.appspot.com/64801

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] [google-web-toolkit] r6078 committed - Removing HtmlUnit from ant test target until the tests are more reliab...

2009-09-03 Thread codesite-noreply

Revision: 6078
Author: jlaba...@google.com
Date: Thu Sep  3 10:59:12 2009
Log: Removing HtmlUnit from ant test target until the tests are more  
reliable.  Also fixed a checkstyle error and a minor bug in a couple of  
tests.

Patch by: jlabanca
Review by: jat


http://code.google.com/p/google-web-toolkit/source/detail?r=6078

Modified:
  /trunk/user/build.xml
  /trunk/user/test/com/google/gwt/resources/client/TextResourceTest.java
   
/trunk/user/test/com/google/gwt/uibinder/parsers/FieldReferenceConverterTest.java

===
--- /trunk/user/build.xml   Tue Aug 11 12:50:31 2009
+++ /trunk/user/build.xml   Thu Sep  3 10:59:12 2009
@@ -219,7 +219,6 @@
antcall target=test.noserver/
antcall target=test.web/
antcall target=test.web.disableClassMetadata/
-  antcall target=test.web.htmlunit/
antcall target=test.web.draft/
  /parallel
  /limit
===
--- /trunk/user/test/com/google/gwt/resources/client/TextResourceTest.java  
 
Wed Jun 17 12:42:19 2009
+++ /trunk/user/test/com/google/gwt/resources/client/TextResourceTest.java  
 
Thu Sep  3 10:59:12 2009
@@ -61,8 +61,8 @@
}
  };

-r.helloWorldExternal().getText(c);
  delayTestFinish(2000);
+r.helloWorldExternal().getText(c);
}

public void testInline() {
===
---  
/trunk/user/test/com/google/gwt/uibinder/parsers/FieldReferenceConverterTest.java

Tue Sep  1 11:53:48 2009
+++  
/trunk/user/test/com/google/gwt/uibinder/parsers/FieldReferenceConverterTest.java

Thu Sep  3 10:59:12 2009
@@ -17,6 +17,9 @@

  import junit.framework.TestCase;

+/**
+ * Tests for {...@link FieldReferenceConverter}.
+ */
  public class FieldReferenceConverterTest extends TestCase {

FieldReferenceConverter.Delegate provider = new  
FieldReferenceConverter.Delegate() {

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



  1   2   >