Re: Scary: GWT Team does not fix serious GWT Compiler Bugs

2012-10-02 Thread Jeff Chimene
+1 on Manolo's point.

However, in the interests of debugging: what happens if you use the boxed
version of boolean?


On Tue, Oct 2, 2012 at 11:45 AM, Manuel Carrasco Moñino
man...@apache.orgwrote:

 I think it is a good idea to get rid of methods which always return
 true/false/true because it saves a lot of code in the final js, and it
 gives the option to the developer to remove code programatically.

 In my opinion the example you show and the examples in the issue page are
 not examples of good codding, but maybe there are edge cases where it could
 make sense.

 I trust in the compiler and I have several projects in production and
 never I faced this problem, so IMHO knowing a couple of good practices to
 follow with gwt  should be enough.

 Anyway, in the case it were difficult to fix, I think the compiler should
 be more verbose and fail with methods which have any line apart from the
 return true one,

 - Manolo


 On Fri, Sep 28, 2012 at 2:24 PM, Marc2000 whipma...@googlemail.comwrote:

 Hallo,

 After finishing development on my GWT (2.4) project, I found out, that
 the compiled version does not work exactly as in the development mode.

 Some method ( isValid() ) seems not to be called.

 Calling code (simplified):

 boolean valid=true;
 if(! mypanel.isValid())
valid=false;

 method:

 public boolean isValid()
 {
 updateSomeData();
 return true;
 }

 This works well in development mode, but in compiled code, isValid() was
 never called. From this point things got strange. I've added a log-command
 to the method:

 public boolean isValid()
 {
 updateSomeData();
 logger.info(method called);
 return true;
 }

 The method was called and the log entry written.

 I removed the log entry and changed the calling part to:

 boolean valid=true;
 boolean x=mypanel.isValid();
 if(!x)
valid=false;

 Now again the method was called. This seems to be some problem in the
 compiler optimizer. After switching off the optimizer, the compiled code
 did work as expected.

 After searching the web, I found an issue report, DESCRIBING THE EXACT
 SAME PROBLEM !

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

 So this is a know issue since over a year and present since GWT 2.3 !!!

 I have not problem with bugs, but I can't understand, why no one seems to
 care. Can there be something more serious, than a compiler-bug ?

 If you search the database, there are some compiler / optimizer issues,
 that seem not to have been fixed.

 Example:

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

 This is scary ! If you can't trust the compiler, you'll never know, if
 your code works in production as I did under development. Adding / removing
 a single line may change the whole behavior. Testing will become a
 nightmare !

 Some one should care.

 regards

 Marc




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


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


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



Re: GWT Designer - Can't create SWT Browser

2012-09-26 Thread Jeff Chimene
Haven't a clue.


On Wed, Sep 26, 2012 at 12:19 PM, Magnus alpineblas...@googlemail.comwrote:

 Hi jchimene,

 the thread your link points to suggests several settings. I first tried
 adding the path, without change. Then I added both variables to eclipse.ini:

 -Dorg.eclipse.swt.browser.UseWebKitGTK=true
 -Dorg.eclipse.swt.browser.XULRunnerPath==/usr/lib/xulrunner-1.9.1/


Two equal signs?


 The result is a nice crash with a lot of trace (see below). I hope it will be 
 helpful.


 Magnus



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



Re: GWT Designer - Can't create SWT Browser

2012-09-25 Thread Jeff Chimene
Maybe you must tell Eclipse where to find xulrunner?

https://bbs.archlinux.org/viewtopic.php?id=115543

On Tue, Sep 25, 2012 at 10:39 AM, Magnus alpineblas...@googlemail.comwrote:

 Hi Jens,

 basically I agree, and I was indeed able to work on the current ui
 project. But when learning the concepts behind UIBinder it helps a lot if
 you can try out some ideas and look how they are realized within the xml
 file. In addition, designer shows widgets that are not documented, e. g.
 CaptionPanel.

 However, there is nothing written into the error log. There is just this
 message in the designer window:

 GWT Designer uses the SWT Browser widget to render the GWT UI. SWT
 Browser requires a compatible xulrunner version installed: it should be
 1.9.1.x or 1.9.2.x version and meet the current environment architecture.
 See http://www.eclipse.org/swt/faq.php#whatisbrowser and related topics
 for more information.

 But xulrunner is installed:

 $ dpkg-query -l xul*
 Desired=Unknown/Install/Remove/Purge/Hold
 |
 Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
 |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
 ||/ Name   VersionDescription

 +++-==-==-
 un  xul-ext-dom-in none (no description available)
 un  xulrunner  none (no description available)
 un  xulrunner-1.9  none (no description available)
 ii  xulrunner-1.9. 1.9.1.16-17XUL + XPCOM application runner
 un  xulrunner-1.9. none (no description available)
 ii  xulrunner-dev  1.9.1.16-17Development files for the Gecko engine
 libra


 Magnus


  --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/3q3qiTk1osEJ.

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


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



Re: Consumer site using GWT/GAE

2012-09-21 Thread Jeff Chimene
Looks good! Might I suggest clarifying that the hotel info (check
availability) will open in another window?

Cheers,
jec

On Fri, Sep 21, 2012 at 1:08 PM, Boris Brudnoy 
boris.brud...@healthometry.com wrote:

 Michael, the app looks really great. Have you considered registering it in
 the GWT Reference List http://gwtreferencelist.appspot.com/?

 On Wednesday, September 19, 2012 12:48:27 PM UTC-4, mpowers wrote:

 All,

 As an example of a consumer-facing GWT deployment, Hotelme.com just went
 to public beta with a end-to-end GWT/GAE/Java web site.

 http://hotelme.com

 It's work-in-progress, but we're pretty happy with architecture and
 performance so far.  We're partnered with USA Today so we expect traffic to
 ramp when we get come of beta.

 (In other news, we're also hiring GWT/GAE developers in Washington DC
 area and beyond -- please get in touch if interested, thanks.)

   - Michael

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


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



Re: printing problem: when I print content of my iframe (I use gwt-print-it) all what is left on the right side of printable page is cut off and stays not printed at all

2012-09-18 Thread Jeff Chimene
Are you using @media css?
http://www.w3.org/TR/CSS2/page.html#page-selectors

On Mon, Sep 17, 2012 at 12:29 PM, Jan Przybylo jan.przyb...@gmail.comwrote:

 I print big form that has fixed dimensions. If I'd use Letter parer size
 it should fit in 4 pages (2 pages wide and 2 pages high).
 I already started using PrintIt class (gwt-print-it) and it solves most
 basic problems for me.
 But when I try to print whole big form it only prints top left as the 1st
 page and top bottom as the 2nd page leaving the right side not printed.

 Does anyone know proper way of printing wide big pages?

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


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



Re: Document.get().isOrHasChild(element) != isAttached() in CHrome ??

2012-07-19 Thread Jeff Chimene
On 07/19/2012 02:51 AM, Ed Bras wrote:
 I ust run some tests and noticed the following in Chrome (in FF 12 they
 all return true):

Well, that's annoying...

 1) Document.get().isOrHasChild(element) - false
 2) Document.get().getDocumentElement().isOrHasChild(element) - true
 3) Document.get().getBody().isOrHasChild(element) - true
 4) widget.isAttache() - true
 
 Appearantly there is a difference between being attached to the Document
 node and Body node.
 Why?
 What to do next to isolate/solve this?

What problem is it you're trying to solve? That's going to dictate the
solution.

 Note: the above statements are called in a DeferedCommand just after the
 widget is added to the RootPanel. It concers an widget that is shown as
 a popup panel (absolute positioned)

Maybe a clickHandler(), but again, what problem is it you're trying to
solve?

Cheers,
jec

-- 
You received 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 Gannt Charts

2012-06-25 Thread Jeff Chimene
On 6/25/12, Bharath Kumar bharath1...@gmail.com wrote:
 Has any one used this  http://code.google.com/p/gwtgantt/ ?

 Where can i download the jar file for this? I dont find it in Download
 section.


You probably want to write your own calls to the underlying JS
library. ISTR the GWT wrapper was so bad that I wound up writing my
own calls the JS routines.

-- 
You received 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 in enterprise systems (SAP, AS/400)

2012-02-20 Thread Jeff Chimene
Hi Dominik:

Very impressive! Good luck w/ these projects. It's great to see how
the legacy and current technologies work together.

Cheers,
jec

On 2012-02-19, dominikz dominik.zalew...@gmail.com wrote:
 Dear developers,

 I'm using GWT in combination with SAP and IBM's AS/400 (aka IBM i) systems.
 I thought that this topic may be interesting for some of you.

 Please see the attachment.

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



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



Re: GWT Chrome dev OOPHM is Slow. What is the roadmap?

2011-11-28 Thread Jeff Chimene
On 11/28/2011 09:47 AM, Williame wrote:
 I am a linux dev, my ubuntu distro updates firefox along with the OS
 updates soon after a new firefox release.  Mozilla has adopted an
 aggressive release schedule and the gwt plugin for it has lagged several
 weeks behind.  So when a new firefox is released, i have to change from
 firefox dev to chrome dev until the plugin is available for firefox.  I
 have yet to have a google chrome version update break the gwt plugin, or
 ot have an updated plugin available immediately.  I can count on chrome
 on linux with the gwt dev plugin(YAY!!).  It's just really, really slow
 for non-trivial page layouts.
 
 Otherwise, my options are run a local, older version of firefox I
 download and hope the latest firefox doesn't update the shared
 prefs/plugins breaking the older version I'm running alongside it or
 reboot into windows and develop there.

You're comfortable with installing FF locally? When installed as root,
but run as non-root, it will not automatically update the existing version.

FF can be configured to not check automatically for updates.

The GWT plugin can be installed on a non-root basis.

If the above doesn't float your boat, consider using
update-alternatives
(http://manpages.ubuntu.com/manpages/lucid/man8/update-alternatives.8.html)
to manage two versions: latest and a lagging development version.

 GWT, besides being AWESOME, is a free product so I don't have a leg to
 stand on to complain to Google.  But I do humbly request they get Chrome
 up to firefox speed in gwt dev mode.  Pretty please.

There are some technical issues w/r/t to Chrome speed matching FF. There
are several threads in this group discussing the issue. The gist is that
the Chrome devs have to implement some features.

 It is ironic that the gwt plugin for chrome, both Google products, is
 the slowest combination.
 
 Thanks
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/h5XPdl9EskcJ.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: Does the GWT magic ever fail you?

2011-11-12 Thread Jeff Chimene
On 11/12/2011 10:17 AM, David Vree wrote:
 @Samyem -- Good point about the async RPC...we also had that issue
 when debugging and/or integration testing Flex/Actionscript.
 
 @Jeff -- Your metaphore is correct...to continue it, I'd say I trust
 my Java/C++/C# compilers a lot.  My concern is exactly whether or not
 the GWT compiler has issues.  Do you disable optimizations during
 development or is that for production code too?

I want as little code sent to the client on startup as possible, so I
only disable when there's a problem. Actually, I do not disable
optimization, I recompile with the -STYLE DETAILED argument. This
provides enough detail to work through the behavior with FireBug or
whatever IE provides.

My experience is that I inevitably get bit when I don't test on at least
three different browsers. I usually use the set (Safari, IE, FF). Also,
I don't support IE 6, which decision might not be an option for you.

This technique is separate from the -OPTIMZE, -EA, and -DRAFTCOMPILE
arguments. I haven't seen any issues with optimization.

 @Thomas - Sourcemap  is incredible if it works as advertisedis
 that how Eclipse keeps the Java debugger in sync with the browser
 Javascript execution?
 
 Thanks everyone for your answers.

Thanks for continuing the conversation,
jec

 
 Dave
 
 
 
 On Nov 12, 4:52 am, Thomas Broyer t.bro...@gmail.com wrote:
 Most of the time, you'll be debugging in DevMode, against your Java code,
 within your Java IDE, using any Java debugger.

 GWT 2.5 will generate SourceMaps so you can see your Java code in your
 browser's dev tools, set breakpoints in the Java code to pause the JS
 engine, etc.
 Seehttps://plus.google.com/110412141990454266397/posts/iqXo5AyHkydandhttp://www.2ality.com/2011/07/firefox-sourcemap.html

 In the mean time, or in browsers where SourceMaps aren't supported, GWT
 generates symbolMaps that allow you to find where an obfuscated function
 name comes from in your Java code. It can also be used to automatically
 deobfuscate stack traces (so you can, for instance, send a client-side
 exception to the server for logging –using java.util.logging and the
 SimpleRemoteLogHandler or RequestFactoryLogHandler–, and have the
 stacktrace automatically deobfuscated in your logs). You can also use the
 StackTraceDeobfuscator manually on the server-side; or look-up in the
 symbolMaps by yourself (I regularly do it when I can't reproduce a bug in
 DevMode).
 It's important to note that symbolMaps only map methods, whereas SourceMaps
 map down to the expression level.

 So no, it's not a problem.

 Also, if your application is big enough, even if you use plain
 JavaScript instead of GWT, you'll want to use a JS compiler (such as the
 Closure Compiler) or JS minifier; so you'll have the same issues. The
 Closure Compiler generates SourceMaps, but I don't think any compiler but
 GWT produces the equivalent of the symbolMaps and have the equivalent of
 the StackTraceDeobfuscator.
 

-- 
You received 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: Does the GWT magic ever fail you?

2011-11-11 Thread Jeff Chimene
On 11/11/2011 12:39 PM, David Vree wrote:
 My company has taken the decision to move from Flex to HTML5/
 Javascript for a corporate web-app.  So far we are very impressed with
 GWT and are thinking of utilizing it, especially since we are mostly a
 Java house.
 
 My biggest concern, however, is the wonderful magic that is the GWT
 Javascript compiler.  If this thing produces production code that is
 different from the development code, or if the Javascript isn't
 aligned with the Java, I fear we will be unable to effectively
 diagnose/debug the problem.

Not to belittle your observation, but replace Javascript with object
code and Java with C.

It's a good question - how much do you trust your compiler? As a
profession, we've apparently dealt with this issue in the past:

One thing we do is to disable optimizations. GWT has a compiler mode for
that. However, it produces more code, and one aspect of GWT is to reduce
code bloat. Most real-world compilers have similar a trade-off.

Another thing we do is instrument our code. For example, GWT supports
the java.util.logger framework.

We also employ test-driven development. There is the GWTTest environment
as well as other, superb test frameworks.

 Has this been a problem for folks?  Is there some other concern we
 should be aware of?

I'd suggest, if your group hasn't done so, that you create a
proof-of-concept, deploy it to a select group of blind men, and ask them
to describe the resulting Elephant.

Bueno Suerte,
jec


-- 
You received 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: Question for experts: Pluggable gwt module CompileModule class XXXX.gwtar file.

2011-11-11 Thread Jeff Chimene
On 11/11/2011 01:07 PM, KD wrote:
 OK this one is for GWT experts!!

Maybe GQuery plugins?

No doubt there will be rework required.

 I have a GWT app that has widgets. We are shipping 5 widgets out of the box.
 
 The widgets also depend on our API which act as simple DAO pojos
 
 Now when this gets outs to customers. They have a requirement where they
 want to create their own widgets (as GWT modules) and use them inside
 our GWT app. Of course, to make things complicated, we cannot give them
 the source of our app or the API.
 
 Now I know a more prevalent solution here is to have a JSNI API of some
 sort to have the widget and our app talk to each other, document it and
 have it rest in peace.
 
 But we are also looking around to see if there are alternatives.
 
 For example, looking at this CompileModule class
 
 http://code.google.com/p/google-web-toolkit/source/browse/trunk/dev/core/src/com/google/gwt/dev/CompileModule.java?r=10304
 
 Can this be used to mickey mouse our sources.
 It looks like this compiler will / could compile a module into a
 .gwtar file and in theory that might all customers would need to
 compile there custom module.
 
 Any thoughts? Are we on to something here or is it dead end.

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



Re: Relative path to a txt files repository

2011-11-07 Thread Jeff Chimene
On 11/07/2011 06:33 PM, Sabbia wrote:
 Gracias Jeffrey ;) So, as I've understood, the best thing is to check
 if application is executing in production mode, and if not, use
 GWT.getServletContext().getRealPath(my_app), right?

Well, the exact mechanism that's inside the if(production) {} is up to
you. I don't use Spring, so you're on your own there. It looks like
you're on the right track, though: do one thing in development, do
something else in production. The key is to decide based on
GWT.isProdMode().

Bueno Suerte,
jec

 
 Thank you very much!
 
 Cheers!!
 
 
 On 7 nov, 14:59, Jeffrey Chimene jchim...@gmail.com wrote:
 On 11/6/2011 11:23 PM,Sabbiawrote:









 Hi everyone!

 I've developed a GWT-SmartGWT application using Eclipse. In this
 application, a Java class from the server side must read some txt
 files in a directory called Transcriptions. Working with Eclipse, I
 had no problem at all to access to this directory. I had located it
 under the WAR directory, so every time I needed to read a file I had
 only to write File f = new File('Transcriptions');.

 But when I've deployed it into Tomcat, I can't access to my directory
 in this way anymore, because the default path of Tomcat is webapps.
 So, I need to access to the transcriptions directory using a relative
 path. And here is my problem. I don't know where to locate this
 directory, and I don't know how to access it.

 I had thought of using the GWT.getModuleName() method, but because of
 I have to use it in the server side, I can't use any of the methods of
 GWT class.

 I've been trying to solve it in the last week, but I've not been able
 to do it.

 Can anyone help me, please? Thank you very, very much in advance

 Greetings!

 I'd use a two string Resources, one for production and one for test.
 Check the environment using 
 GWT.isProdMode()http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/googl...()

 Bueno Suerte,
 jec
 

-- 
You received 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 get Resources in GWTTestCase

2011-11-06 Thread Jeff Chimene
Hi:

I'd like to test calls to XMLParser.parse().

I'd like to use a testing framework to send various XML documents to a
class method that calls this routine.

I want to use the browser implementation to perform the parse. This
means GWTTestCase.

GWTTestCase implies no java.io

I don't want to hardcode XML documents in my test drivers. I'd like to
use GWT Resources.

GWT Resources seems to imply GWT.create() which conflicts with GWTTestCase.

I'm sure there's a way to get Gin to work with GWTTestCase.

Searching only returns example code that doesn't work and is poorly
documented (e.g.
http://howtogwt.blogspot.com/2010/03/instance-creation-and-dependency.html)

What solutions have others implemented?

TIA,
jec

-- 
You received 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 to store a hashmap in memory to keep the counters for different user

2011-11-02 Thread Jeff Chimene
On 11/01/2011 11:50 PM, Waqas Sadiq wrote:
 Hi,
 
 I am working on storing different user counters in memory at
 application level (not database) and to have  counters to atmost 3.
 
 I developed this code using a singleton class with hashmap to store a
 key value pair of user id and and it's counter and time.
 
 After initial, i was using this singleton class on client side, it
 worked fine for counters but when browser was refreshed, a new
 singleton object was created.
 
 I searched, and come to know that for security reason, javascript
 don't use shared objects, so i moved it to rpc call and make it server
 side object to overcome it, but when i tested it again, on refresh new
 object is created and data lost.

That's expected behavior. You'll want to retrieve the stored data at
application startup.

 I also tested the static hashmap to hold the data for application
 scope, but it has almost the same behavior, once refreshed the
 browser, its reset and old data is lost in it. It little different
 behavior from normal java web apps where we follow this approach.
 
 Does any one know how can i keep object at application scope in gwt ?

Can you restrict your app to browsers that support local storage?

In no way will the static storage class solve the problem you're describing.

-- 
You received 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: Popup windows printing

2011-10-26 Thread Jeff Chimene
On 10/26/2011 08:38 AM, Mike Dee wrote:
 I was thinking about something like that.  In the posts about popup
 windows this is seen as a negative because it is tricky to setup
 communications between the main window and the popup.  But there
 really is no communication needed in this case.
 
 Do you see the popup window as a GWT window or just a straight HTML
 window?

The latter. This is one of those cases where I think that using GWT to
create the child window doesn't get you anything except a problem
solved! endorphin rush. As I said earlier, the solution can be made
arbitrarily complex, so I'm sure that someone will chime in with a
reason to implement the popup using GWT methods.

To follow-up on the CSS: I've noticed that when there's a reference to a
CSS with media type print, then FF opens a print dialog automatically.
I think Chrome does this too.


 
 On Oct 26, 7:55 am, Jeffrey Chimene jchim...@gmail.com wrote:
 On 10/26/2011 1:02 AM, Mike Dee wrote:









 I have an app that creates reports, which are basically HTML.  The
 reports need to be printed and that is what I'm trying to figure out.

 I'm porting an older app - that is more of traditional web app.
 Reports are displayed in a page - with a UI wrapped around them.  When
 a user wants to print a report, he clicks a print link, which pops
 up a window with a printer friendly version (no UI elements).  He can
 then selects the browser's print command.  Works nicely.

 I'm trying to figure out how to do that in GWT.  I can display a
 report.  Printing doesn't work well, because it prints all the UI
 stuff too.

 I've looked into separate popup windows.  Most of the messages here
 recommend against doing it.  Instead they suggest using a Dialog box.
 I've tried it and created a Dialog with simply an HTMLPanel.  However,
 selecting File-Print (in the browser) prints the entire page (the
 entire window).

 Any suggestions on a way to do this?

 Here's one idea I've implemented. It's amenable to arbitrary levels of
 complexity.

 Your UI posts a request to your server on user action (e.g. a button
 click event), and opens the result in a new window:
 button type=submit
 form action=printTheCurrentReport _target=_blank method=get
 !-- Depending on how you manage sessions, you might want a session ID
 token in a hidden field --
 /button

 Reminder: you should have css for print media.
 

-- 
You received 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: a total GWT newbie needs help

2011-10-26 Thread Jeff Chimene
On 10/26/2011 05:03 PM, Wicca wrote:
 Hello everyone,
 I am very very new to this, but have somehow by hook or by crook,
 managed to create a website with pages, links, paypal widgets, etc.
 However - I do not know how to write html and only understand a very
 small portion of what I read as I look for a solution to my problem.
 Therefore I joined this group to see if there is anyone who is willing
 to assist me.
 What I need is help (by explaining in very simple everyday language)
 in getting rid of huge spaces between PayPal buttons on a registration
 page I created on the website.
 If such a person exists and would reply to this email, I don't think
 it would take much time to fix this issue.
 I've been looking for the answer for hours and while I find references
 to the issue, I can't understand the solutions due to my woeful lack
 of programming skill.
 
 I will be eternally grateful, truly.
 Thank you,
 
 Wicca
 

This is probably not the right list for you. You'll want to learn HTML
and CSS for a start. This not the right group to support that endeavor.

There are many HTML/CSS resources on the web, and your local bookstore
has miles of shelf space devoted to these topics.

Bueno Suerte,
jec

-- 
You received 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: jquery?

2011-10-25 Thread Jeff Chimene
On 10/25/2011 11:16 AM, Dennis Haupt wrote:
 hi there,
 
 a coworker told me that jquery has a bunch of advantages over gwt and
 that gwt offers pretty much nothing that jquery doesn't - and is going
 to infest our source code if i can't stop him.

1) There's always the port of jQuery to GWT called GQuery. It does add
some value, and seems to work well for the limited use I've made of it.

2) GWT is much more than just widgets (as is jQuery). Does your
co-worker know that GWT provides the benefits of type-safe code, code
optimization, leveraging IDEs for Java?

3) jQuery is a fine library. At the end of the day, you're still writing
and debugging pure JavaScript. As some Italians say, I'd rather pound
on 'it' with large rocks.

4) There's probably a happy medium here, somewhere. But, in my IMNSHO,
if your team hasn't settled on a set of technology solutions, and
management hasn't supported that decision, then you have other, more
substantial issues.

-- 
You received 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: Enforcing sequencing of asynchronous event handling code

2011-10-19 Thread Jeff Chimene
On 10/19/2011 12:45 PM, Grant Rettke wrote:
 Hi,
 
 Our Goal:
 
 On the client side, events on the bus should be processed one at a
 time by their handler, in order, FIFO.

Some (sort-of mutually exclusive) solutions:

1) Implement condition variables
(http://en.wikipedia.org/wiki/Condition_variable)

2) Only fire Event B after Event A processing occurs. You might need
extra events e.g. Event A prepare, Event C prepare, ... Event N
prepare. After handling these events, the secondary events, Event A,
Event B, ... Event N are fired. Some implementations create three
basic events, Prepare, Acknowledge, Commit and pass identity
information in the event cargo.

I /think/ (it's hard to tell, even though your description is quite
detailed), that (1) will be your best bet. Consider a scheme  that
implements an event-specific bit mask that's checked against the
condition variable. Each event handler delays via
Scheduler.get().scheduleIncremental(new Scheduler.RepeatingCommand(){})
until the bit(s) corresponding to the predecessor event(s) are set in
the condition variable.

There are other ideas, such as a central event handler. However, the
problem with that and related solutions is that they don't scale well,
and have a tendency to tightly couple unrelated code. The advantage of
(1) is that the event handling code remains, but it's gated by logic
that checks a condition variable before proceeding. After event
processing completes, the condition variable is set to the appropriate
value.

In your scenario, Event A is bit 0, event B is bit 1, Event C is bit 2.

A is not gated, and sets bit zero
B is gated by bit zero set, and sets bit one
C is gated by bit zero and bit one set, and sets bit two.

 
 Details:
 
 Just took over a pretty involved GWT/Spring/Hibernate/Gilead system.
 App
 works great; it is super fast, snappy, and responsive. One problem
 sitting
 in the backlog, though, results from the fact that some single-
 threaded
 server side code is entered by multiple threads working on the same
 piece
 of data. End result is that the data gets stomped on. When we add
 uniqueness constraints we see that a duplicate key exception is
 occurring,
 so we know something is happening that should not.
 
 From a user perspective, this should never happen, because they
 move along on their way using the app, clicking on things, in
 sequence,
 and that sequence makes sense, and in doing so it adds events to the
 event bus... basically EVT_A - EVT_B - EVT_C - ... and so on. EVT_A
 handling should complete before EVT_B handling and EVT_B handling
 should
 complete before EVT_C handling and so on and so forth.
 
 In practice a problem manifests though, because on the client side the
 handlers all fire off right away (as one would expect) resulting in
 multiple threads computing against the same data in the same place.
 Here
 is how it looks:
 
 TIMESTEP 1
 
 EVT_A (DATA_COPY_1) - HDL_A - SVR_CALL -
 compute_method(DATA_COPY_1)
 
 EVT_B (DATA_COPY_2) - HDL_B - SVR_CALL -
 compute_method(DATA_COPY_2)
 
 EVT_C (DATA_COPY_3) - HDL_C - SVR_CALL -
 compute_method(DATA_COPY_3)
 
 On the server side, multiple threads (coming from the handler servlet)
 end up entering compute_method at the same time, and behold, things
 blow up.
 So, our desired behavior is that for certain paths of work, we want
 sequencing. Looking at the app further, we decided that rather than
 track
 down all of the unique flows, that instead the entire app should
 behave such that EVT_* are handled in order, period. This makes sense
 from
 a user perspective, and by following a blanket-approach we could force
 the
 entire app to just do the right thing so to speak. The above would
 look
 more like this where queue is the event bus and handler code executing
 is all of the work no matter client-side presenter or server side that
 it
 takes to satisfy the goal for that event:
 
 TIMESTEP 1
 QUEUE {empty} HANDLER_CODE_EXECUTING{none}
 
 TIMESTEP 2
 QUEUE{EVT_A} HANDLER_CODE_EXECUTING{none}
 
 TIMESTEP 3
 QUEUE{EVT_B} HANDLER_CODE_EXECUTING{EVT_A}
 
 TIMESTEP 4
 QUEUE{EVT_C:EVT_B} HANDLER_CODE_EXECUTING{EVT_A}
 
 TIMESTEP 5
 QUEUE{EVT_C:EVT_B} HANDLER_CODE_EXECUTING{none}
 
 TIMESTEP 6
 QUEUE{EVT_C} HANDLER_CODE_EXECUTING{EVT_B}
 
 TIMESTEP 7
 QUEUE{EVT_C} HANDLER_CODE_EXECUTING{none}
 
 TIMESTEP 8
 QUEUE{empty} HANDLER_CODE_EXECUTING{EVT_C}
 
 TIMESTEP 9
 QUEUE{empty} HANDLER_CODE_EXECUTING{none}
 
 Talking more we looked at client-side vs. server-side to make this
 change.
 We felt like queuing up all requests on the client side would have the
 benefit of being real-Java, but the downside is that queueing up
 threads
 seems to go against the spirit and architecture of the server itself
 (Tomcat).
 Client side seems like equal amount of work, but we have the added
 benefit
 of not having to worry about out-of-order client requests and so on.
 At this
 point we plan to make the change on the client side. One option we
 decided
 against was using the UI to block 

Re: XMLParser EndOfFile question

2011-10-14 Thread Jeff Chimene
On 10/14/2011 09:32 AM, coffeMan wrote:
 I got the solution resolved.i am parsing over 11,000 different
 file types...it is going slow using the DOM Xml Parser...any ideas on
 how to improve performance?
 
 I cannot think of any other way to parse it

Well, first things first: let's clear-up the terminology. I think you
mean 11x10^3 different documents, all conforming to the same schema.
You only have /one/ document type: xml.

Please correct my impression otherwise.

Short answer: Form a NodeList of interesting leaf nodes, and don't
worry about the path from the document root to each leaf.

Long answer follows.

11x10^3 different documents is not unusual in a production environment.
For example, consider the single DocBook schema, and the count of
documents derived from that single schema.

Apparently, all you know is that the current document is well-formed.
You do not know if it's valid. Some might argue that you do not even
know if the document is well-formed, but let's assume the document was
produced mechanically, and that all elements, attributes, and PCDATA are
well-formed.

So, you should only write code that relies on the document's physical
structure, not its logical structure.

I think that the best you can do is to treat the document as a flat
space. Go directly to the child nodes of interest. There's probably
nothing to gain by parsing the document as though it were a tree (which
it is, I know...). In other words, given what little I know about your
specific problem, I believe you are probably just interested in leaf
nodes. So, form a NodeList of those leaf nodes, and don't worry about
the path from the document root to each leaf. The leaf nodes in the list
will probably have different parents, but I don't think that matters in
this instance.

Forget my earlier advice about GQuery. It's probably over-kill, given
what little I know about the problem you're trying to solve.

Bueno Suerte,
jec

 
 On Oct 14, 10:40 am, Jeffrey Chimene jchim...@gmail.com wrote:
 On 10/14/2011 7:00 AM, coffeMan wrote:

 I am retrieving XML from a servlet and parsing through it.  the xml
 code is one large XML file but on through the servlet.  I can parse
 through it easy and get my results but i am not sure when to stop it.
 I keep getting NullPointerException that kicks off when it reaches the
 end.  I never know when its going to end because every file that i
 parse through is different in length.

 I am using the DOM parser.  Document messageDom =
 XMLParser.parse(srv.getXmlObject());

 string name =
 messageDom.getElementsByTagName(name).item(n).getFirstChild().getNodeValu 
 e();
 - n being a variable that is an integer value that increases after
 each loop

 A couple of questions come to mind:

 1) Are you sure the document is valid? Does there exist an XML schema
 against which you can test this document instance? If not, you might
 consider creating an XML schema, a sample document, and running the pair
 through a validating parser such as xmllint. Such validation tests can
 be a useful part of your overall product verification/validation regime.

 2) Have you considered using GQuery to produce nodelists? For complex,
 valid documents it can be a useful tool.

 3) Consider using loops controlled by NodeList.length() instead of using
 the builder pattern to process the tree. In my experience, using loops
 instead of the builder pattern yields fewer surprises at runtime. I
 realize there's a cool factor to chaining those method calls, but it
 usually results in issues such as the one you're now trying to resolve.

 Bueno Suerte,
 jec
 

-- 
You received 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: What's a good widget for a small table?

2011-10-07 Thread Jeff Chimene
On 10/07/2011 01:38 PM, Mike Dee wrote:
 I have small data tables that I'd like to display.  In the widget
 showcase for DataGrid and CellTable it says they are ideal for large
 amounts of data.
 
 The goal is to display detail info.  For example, to display a single
 record from a database - not a bunch of records from a database.  So
 the columns of the database will be different.  Think of something
 like:
 
 Name: John Doe
 Address: Main St.
 Phone: 555-1234
 
 I was thinking a PropertyTable would be ideal.  It doesn't exist,
 although they have something similar in SmartGWT, which I'd like to
 avoid for now.
 
 Any ideas would be appreciated.
 

I'd probably create a custom widget based on using ui.xml  It might not
even be a widget, just an MVP instance. From your description it sounds
like a Popup enclosing a VerticalPanel enclosing several
HorizontalPanels. Very simple, very straightforward to implement.

-- 
You received 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: Indexed DB/WebStorage in GWT?

2011-10-05 Thread Jeff Chimene
On 10/05/2011 10:26 AM, scott.ellswo...@gmail.com wrote:
 Howdy, all,
 
 Is anyone using webstorage or indexedDB client side data storage with
 GWT?  Pointers to projects appreciated...

See
http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/storage/client/Storage.html

You can see an example at
http://code.google.com/p/gwt-sked/source/browse/trunk/%20gwt-sked%20--username%20jchimene%40gmail.com/Sked/src/com/systasis/sked/client/model/SkedStorage.java
 
 Aside:
 
 I note that the WebStorage group reached an impasse and stopped
 supporting the spec last fall.

Could you provide a pointer to this? I'd heard something about it, but I
was under the impression that it was resolved by moving to a separate
spec from the HTML 5 spec.

 I note further that http://www.w3.org/TR/IndexedDB/ seems to be alive
 and kicking, but a brief reading seemed to indicate that this is a
 great system for key-object mappings, but not so great for the generic
 sql case of select rows from foo where name is blah group by this
 order by that kind of queries.  ( might be wrong - section 3.1.3 keys
 can be DOMStrings.  Since can supply a keyrange to an index, you may
 be able to generate the kind of selects I am used to, as long as you
 can generate an index such that the result of that query would be
 expressable as either indexkey==foo or low  indexkey  hig.
 
 Aside aside, does anyone have real world experience?  I do not mind if
 the results only work on Chrome/FF/Safari, but IE would also be cool.

The GWT storage API works for me in IE9. As usual, YMMV.

-- 
You received 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: gwtc support for java style 'compiler flags'

2011-09-29 Thread Jeff Chimene
On 09/29/2011 06:05 AM, Bart wrote:
 Because Java does not have compiler flags like, it is suggested to use
 static (boolean) contants with if expressions instead. The Java
 compiler is even required to remove any dead code that results from
 such constructs.
 
 In our development we have a number of these kind of compiler flags,
 where the developer can choose the flags by including one or more
 specific jars in the class path. This works very well for normal Java
 code. However, for GWT client code, the GWT compiler makes it hard to
 use them, as it requires the source code for these constants, as well
 as an explicit inherit and gwt.xml definition.
 
 In my opinion, the GWT compiler should not actually require any source
 code for these constructs, as it could simply extract the constant's
 value from the class file and replace the reference to the constants
 with its value.
 
 Is there any simpler way to handle compiler flags in GWT client code?
 

I think the answer to your question is going to depend on why you need
compiler flags.
For example, some might say use one or more of the following: (1)
assert; (2) inheritance; (3) Gin.

-- 
You received 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: Failure Parsing XML Document from Servlet

2011-09-29 Thread Jeff Chimene
On 09/28/2011 10:01 PM, AThinerCoin wrote:
 I'd like to pass an xml file to my gwt client.  I created another
 servlet that fetches it from the local file system and returns the xml
 file when I call its url.
 
 If I go to the url from my browser, it looks fine.  If I fetch the url
 from curl, it uses the gt;lt; kind of format.  If I fetch the url
 from my gwt client, I get different results and error messages in
 development versus production mode.
 
 If I archive the xml file directly into the war, my program works
 perfectly.
 
 I'm pretty sure it's not a GWT issue, but I'm not sure where else to
 turn.  Any guidance would be appreciated.
1) Try another client, since parsing is handled by the browser. That may
provide a different set of clues;
2) What does xmllint say about this document?

-- 
You received 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: Failure Parsing XML Document from Servlet

2011-09-29 Thread Jeff Chimene
On 09/29/2011 12:41 PM, Laura Bickle wrote:
 Hi Jeff,
 
 I tried using curl.  It showed my angle brackets as gt; and lt; but I
 don't think that matters to my code because it looks right in the print
 statements.
 
 I don't think my xml is actually malformed because, when I include the
 xml file directly in the archive, my gwt client parses it without problem.
 
 Thank you for suggesting xmllint.  I hadn't heard of it before.  I'll
 try it and see if it provides any clues.
 
 Thanks again for your help

xmllint doesn't complain, and neither does Emacs' nXML mode.

So, the problem is the way the data are sent to the client from the server.

Someone else asked, maybe I missed the answer: what is the document's
MIME type?

Also, did you try another browser? For example, I noticed that IE had
problems with one of my documents when FF did not.

-- 
You received 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: Failure Parsing XML Document from Servlet

2011-09-29 Thread Jeff Chimene
On 09/29/2011 01:39 PM, Laura Bickle wrote:
 Hi Jeff,
 
 I set the content type like so:  response.setContentType(text/xml);
 
 I think MIME is a superset of content type.  I don't explicitly set any
 other MIME things.  How do I look up the MIME type of a file?

http://en.wikipedia.org/wiki/XML_and_MIME

 My previous errors are from firefox.  Per your suggestion, I tried using
 safari and chrome instead and they each gave me this error.  The first
 line is the result of requesting the xml file.  The second line comes
 from trying to parse it.
 
(document snipped)

 (-:-) 2011-09-29 13:32:28,838 [FATAL] Uncaught Exception:
 *com.google.gwt.xml.client.impl.DOMParseException: Failed to parse:
 error on line 1 at column 1: Document is empty

Well, that's a clue ;-

I tried the following:

final String s = ?xml version=\1.0\ encoding=\UTF-8\?stuff ..;
final Document doc = XMLParser.parse(s);

It had no problems.

The only differences:
1) I escaped the quote characters;
2) I removed the line breaks (^J) in your file to convert it to a string.

I'd investigate the line breaks, and possibly some garbage at the end of
the file that gets sent to the host.

Also, depending on your server, you might be sending a byte order mark
to the client and not realizing it.

 *
 at 
 Unknown.java_lang_Throwable_fillInStackTrace__Ljava_lang_Throwable_2(Unknown
 Source)
 at 
 Unknown.com_google_gwt_xml_client_DOMException_DOMException__SLjava_lang_String_2V(Unknown
 Source)
 at 
 Unknown.com_google_gwt_xml_client_impl_DOMParseException_DOMParseException__Ljava_lang_String_2V(Unknown
 Source)
 at 
 Unknown.com_google_gwt_xml_client_impl_XMLParserImplSafari_throwDOMParseException__Ljava_lang_String_2V(Unknown
 Source)
 at 
 Unknown.com_google_gwt_xml_client_impl_XMLParserImplSafari_$parseImpl__Lcom_google_gwt_xml_client_impl_XMLParserImplSafari_2Ljava_lang_String_2Lcom_google_gwt_core_client_JavaScriptObject_2(Unknown
 Source)
 at 
 Unknown.com_google_gwt_xml_client_impl_XMLParserImpl_$parse__Lcom_google_gwt_xml_client_impl_XMLParserImpl_2Ljava_lang_String_2Lcom_google_gwt_xml_client_Document_2(Unknown
 Source)
 at 
 Unknown.com_atti_aas_griffin_dashboard_client_Config_$parseChart__Lcom_atti_aas_griffin_dashboard_client_Config_2Ljava_lang_String_2V(Unknown
 Source)
 
 
 On Thu, Sep 29, 2011 at 1:18 PM, Jeff Chimene jchim...@gmail.com
 mailto:jchim...@gmail.com wrote:
 
 On 09/29/2011 12:41 PM, Laura Bickle wrote:
  Hi Jeff,
 
  I tried using curl.  It showed my angle brackets as gt; and lt;
 but I
  don't think that matters to my code because it looks right in the
 print
  statements.
 
  I don't think my xml is actually malformed because, when I include the
  xml file directly in the archive, my gwt client parses it without
 problem.
 
  Thank you for suggesting xmllint.  I hadn't heard of it before.  I'll
  try it and see if it provides any clues.
 
  Thanks again for your help
 
 xmllint doesn't complain, and neither does Emacs' nXML mode.
 
 So, the problem is the way the data are sent to the client from the
 server.
 
 Someone else asked, maybe I missed the answer: what is the document's
 MIME type?
 
 Also, did you try another browser? For example, I noticed that IE had
 problems with one of my documents when FF did not.
 

-- 
You received 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: mailto: links in Google Chrome

2011-09-23 Thread Jeff Chimene
On 09/23/2011 10:51 AM, melody wrote:

 Does this pb happen in dev/test mode ? Or in deploiement mode ?
 
 In production mode.
 

 May be you can try to use a GWT link instead of hard coded HTML mailto
 link.
 
 Can you kindly provide an example of what you mean by GWT link instead
 of HTML link. Keep in mind that I chose the HTML link in order to
 leave the execution/firing of the link to the browser instead of me
 explicitly firing it using GWT/Javascript which has the potential of
 being blocked by popup blockers.
 
 Thanks again for your response.
 

It looks like this is the intended behavior. When I load the following
via the file:// protocol, I can duplicate the effect. If I remove the
TARGET attribute, it does not change the url.


head
titlemailto test/title
/head
body
a target=_blank href=mailto:jchim...@example.com;click here/a
/body


You might try removing the HREF attribute, adding an onClick handler,
that either
1) calls window.open to the appropriate URL;
or
2) creates an IFRAME and sets its URL to the appropriate value in the
onClick handler;

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



To the headhunters

2011-09-06 Thread Jeff Chimene
There are two kinds of headhunters:

0. those who answer the phone;
1.  those who don't.

This post is dedicated to the second set.  Those who hide behind
answering machines or rely on bureaucratic receptionists to accept a pie
in face.

We've all seen the botched requirements they produce. Here's an example
for an operating system in which I'm interested

Extensive COBOL Development and Support including expertise in
Cobol programming, DCL postscripts

Postscripts Isn't that special? At least they put COBOL in all caps. Once.

We get used to such inanities. We shrug. We sigh. Sometimes we call and
perhaps try to correct the error.

Duped by a telephone number on an obscure website, we assume there will
be a response.

To such as these I send a resume the cover letter of which is a buzzword
bingo card. This morning, while trying to get the attention of
Kaztronix, and Smart Synergies, I decided to compose a new buzzword
bingo card. I fired up Emacs, constructed the card and sent it off with
the resume.

Then I realized, someone must have a website that generates these cards.
Sure enough, I found http://lurkertech.com/buzzword-bingo/. As a an
exercise, I've converted the JavaScript to Google Web Toolkit. You can
find the source code at http://code.google.com/p/gwt-buzzword-bingo, and
test the results at http://jchimene.com/BuzzwordBingo.html.

Born out of frustration, as an exercise in speed conversion, it's not
nearly complete. Nevertheless, it generates a card, and the process took
less than four hours from start to the first version.

-- 
You received 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: Manipulate a div section in the html page

2011-08-29 Thread Jeff Chimene
On 08/29/2011 09:38 AM, Kevin Courtney wrote:
 Hello,
 
 As a followup, I'm having a heck of a time trying to find an example
 and figure out the syntax and values for the properties to set.
 
 I've tried this:
 
 DivElement divIntroPageElement =
 DivElement.as(Document.get().getElementById(introPage));
 
 //divIntroPageElement.setPropertyString(visibility,
 hidden);
 //divIntroPageElement.setPropertyString(display, none);
 divIntroPageElement.setPropertyString(style.display,
 none);
 
 ...and none of them work.
 
 Do any of you any of you have any insights on what I should pass to
 the setPropertyString method (assuming that is the method I should be
 using).?
 
 Thanks,
 
 Kevin

Try wrapping the DIV in an HTML tag and using setVisible
See

http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/HTML.html#wrap%28com.google.gwt.dom.client.Element%29

So, it would be

HTML.wrap(Document.get().getElementById(theId)).setVisible(false);

To reiterate, this probably is not what you really want to be doing.

 
 On Aug 28, 5:40 pm, Kevin Courtney kevinjcourt...@gmail.com wrote:
 Thanks Jeff, exactly what I'm looking for,

 Kevin

 On Aug 28, 1:23 pm, Jeff Chimene jchim...@gmail.com wrote:







 On 08/28/2011 12:09 PM, Kevin Courtney wrote:

 Hello,

 In my default html page that drives my GWT app, I would like to have
 some html text, etc. within a div section.  Then in GWT be able to
 make that div section invisible and visible.

 Is this possible and if so, what is the syntax?

 There are a variety of ways to do this. I'm sure others will provide
 their solutions.

 Here's one to get you started:
 Attach an id to the div tag, then in the GWT, use
 DivElement divElement =
 DivElement.as(Document.get().getElementById(theId));

 Although this will give you the hook you need, you probably want to just
 delete the element from the DOM, then replace it with one or more GWT
 widgets.

 My goal is to have my home page intro text and images in the HTML page
 so that the search engine robots will parse it but then once the user
 is using the site, hide the section and replace it with the content
 from the GWT code.

 Thanks,

 Kevin Courtney
 http://www.beatlessongsandvideos.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: Manipulate a div section in the html page

2011-08-28 Thread Jeff Chimene
On 08/28/2011 12:09 PM, Kevin Courtney wrote:
 Hello,
 
 In my default html page that drives my GWT app, I would like to have
 some html text, etc. within a div section.  Then in GWT be able to
 make that div section invisible and visible.
 
 Is this possible and if so, what is the syntax?

There are a variety of ways to do this. I'm sure others will provide
their solutions.

Here's one to get you started:
Attach an id to the div tag, then in the GWT, use
DivElement divElement =
DivElement.as(Document.get().getElementById(theId));

Although this will give you the hook you need, you probably want to just
delete the element from the DOM, then replace it with one or more GWT
widgets.

 My goal is to have my home page intro text and images in the HTML page
 so that the search engine robots will parse it but then once the user
 is using the site, hide the section and replace it with the content
 from the GWT code.
 
 Thanks,
 
 Kevin Courtney
 http://www.beatlessongsandvideos.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: Firefox 6 breaks GWT ?

2011-08-23 Thread Jeff Chimene
On 08/23/2011 12:42 PM, Roustalski wrote:
 Has anyone else noticed that text boxes do not show the focus ring
 when the element has focus, and that a KeyPressEvent looking for the
 charCode KeyCodes.KEY_ENTER doesn't actually work?

Take a look at the onBrowserEvent in
com.google.gwt.cell.client.EditTextCell.class

I see:
boolean enterPressed = keyup.equals(type)
   keyCode == KeyCodes.KEY_ENTER;

and the edit mode of EditTextCell works for me. So, maybe rewrite the
logic you're using. This code seems to have survived the transition to FF6.

 Why would upgrading Firefox break this functionality?
 
 My app works on all other browsers and platforms, but upgrading FF to
 version 6 breaks things? I don't understand.
 

-- 
You received 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: Firefox 6 breaks GWT ?

2011-08-23 Thread Jeff Chimene
On 08/23/2011 02:38 PM, Roustalski wrote:
 Thanks for your response, but I'm confused.
 
 I'm using com.google.gwt.user.client.ui.TextBox.
 
 Here is the event handler that I'm using:
 
 @UiHandler( tbName )
   void onTbNameKeyPress( KeyPressEvent event )
   {
   Log.info( Event char code:  +
 String.valueOf( event.getCharCode() ) );
   //event.getNativeEvent().
   if ( event.getNativeEvent().getCharCode() == KeyCodes.KEY_ENTER 
 )

I'd suggest using getKeyCode() instead of getCharCode()


   // ...
   }
 
 I've also tried event.getCharCode() and it also fails. This works on
 Safari, FF = 5, and Chrome on MAC OSX.
 
 Is my logic wrong? Why do I need to use specific code for a particular
 version of a browser?
 
 On Aug 23, 3:52 pm, Jeff Chimene jchim...@gmail.com wrote:
 On 08/23/2011 12:42 PM, Roustalski wrote:

 Has anyone else noticed that text boxes do not show the focus ring
 when the element has focus, and that a KeyPressEvent looking for the
 charCode KeyCodes.KEY_ENTER doesn't actually work?

 Take a look at the onBrowserEvent in
 com.google.gwt.cell.client.EditTextCell.class

 I see:
 boolean enterPressed = keyup.equals(type)
keyCode == KeyCodes.KEY_ENTER;

 and the edit mode of EditTextCell works for me. So, maybe rewrite the
 logic you're using. This code seems to have survived the transition to FF6.







 Why would upgrading Firefox break this functionality?

 My app works on all other browsers and platforms, but upgrading FF to
 version 6 breaks things? I don't understand.
 

-- 
You received 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: Firefox 6 breaks GWT ?

2011-08-23 Thread Jeff Chimene
On 08/23/2011 03:00 PM, Roustalski wrote:
 com.google.gwt.event.dom.client.KeyPressEvent.class only has a
 getCharCode method and does not have a getKeyCode method.

That may be, but you're asking for the underlying NativeEvent, which
does have a getKeyCode()

 
 On Aug 23, 4:48 pm, Jeff Chimene jchim...@gmail.com wrote:
 On 08/23/2011 02:38 PM, Roustalski wrote:

 Thanks for your response, but I'm confused.

 I'm using com.google.gwt.user.client.ui.TextBox.

 Here is the event handler that I'm using:

 @UiHandler( tbName )
void onTbNameKeyPress( KeyPressEvent event )
{
Log.info( Event char code:  +
 String.valueOf( event.getCharCode() ) );
//event.getNativeEvent().
if ( event.getNativeEvent().getCharCode() == KeyCodes.KEY_ENTER )

 I'd suggest using getKeyCode() instead of getCharCode()







// ...
}

 I've also tried event.getCharCode() and it also fails. This works on
 Safari, FF = 5, and Chrome on MAC OSX.

 Is my logic wrong? Why do I need to use specific code for a particular
 version of a browser?

 On Aug 23, 3:52 pm, Jeff Chimene jchim...@gmail.com wrote:
 On 08/23/2011 12:42 PM, Roustalski wrote:

 Has anyone else noticed that text boxes do not show the focus ring
 when the element has focus, and that a KeyPressEvent looking for the
 charCode KeyCodes.KEY_ENTER doesn't actually work?

 Take a look at the onBrowserEvent in
 com.google.gwt.cell.client.EditTextCell.class

 I see:
 boolean enterPressed = keyup.equals(type)
keyCode == KeyCodes.KEY_ENTER;

 and the edit mode of EditTextCell works for me. So, maybe rewrite the
 logic you're using. This code seems to have survived the transition to FF6.

 Why would upgrading Firefox break this functionality?

 My app works on all other browsers and platforms, but upgrading FF to
 version 6 breaks things? I don't understand.
 

-- 
You received 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: Firefox 6 breaks GWT ?

2011-08-23 Thread Jeff Chimene
On 08/23/2011 03:45 PM, Roustalski wrote:
 Thanks!
 
 Do you have any information as to why FF wouldn't behave the same as
 the other browsers?

Well, I'd prefer to rephrase the question: Why don't the other browsers
behave like FF? :)

Nevertheless, I have no idea why it suddenly broke. I suppose you could
dig through bugzilla, but I'd accept victory and move on...

 
 On Aug 23, 5:04 pm, Jeff Chimene jchim...@gmail.com wrote:
 On 08/23/2011 03:00 PM, Roustalski wrote:

 com.google.gwt.event.dom.client.KeyPressEvent.class only has a
 getCharCode method and does not have a getKeyCode method.

 That may be, but you're asking for the underlying NativeEvent, which
 does have a getKeyCode()









 On Aug 23, 4:48 pm, Jeff Chimene jchim...@gmail.com wrote:
 On 08/23/2011 02:38 PM, Roustalski wrote:

 Thanks for your response, but I'm confused.

 I'm using com.google.gwt.user.client.ui.TextBox.

 Here is the event handler that I'm using:

 @UiHandler( tbName )
void onTbNameKeyPress( KeyPressEvent event )
{
Log.info( Event char code:  +
 String.valueOf( event.getCharCode() ) );
//event.getNativeEvent().
if ( event.getNativeEvent().getCharCode() == 
 KeyCodes.KEY_ENTER )

 I'd suggest using getKeyCode() instead of getCharCode()

// ...
}

 I've also tried event.getCharCode() and it also fails. This works on
 Safari, FF = 5, and Chrome on MAC OSX.

 Is my logic wrong? Why do I need to use specific code for a particular
 version of a browser?

 On Aug 23, 3:52 pm, Jeff Chimene jchim...@gmail.com wrote:
 On 08/23/2011 12:42 PM, Roustalski wrote:

 Has anyone else noticed that text boxes do not show the focus ring
 when the element has focus, and that a KeyPressEvent looking for the
 charCode KeyCodes.KEY_ENTER doesn't actually work?

 Take a look at the onBrowserEvent in
 com.google.gwt.cell.client.EditTextCell.class

 I see:
 boolean enterPressed = keyup.equals(type)
keyCode == KeyCodes.KEY_ENTER;

 and the edit mode of EditTextCell works for me. So, maybe rewrite the
 logic you're using. This code seems to have survived the transition to 
 FF6.

 Why would upgrading Firefox break this functionality?

 My app works on all other browsers and platforms, but upgrading FF to
 version 6 breaks things? I don't understand.
 

-- 
You received 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: Funny behaviour in CellTable.

2011-08-22 Thread Jeff Chimene
On 08/22/2011 02:34 AM, jsg wrote:
 Hi Jeff,
 
 Given both our experience and your confirmation, I'm going to file a
 bug report in case this thread isn't being noticed.
 
 Thanks for your effort.
 
 On Aug 22, 12:46 am, jchimene jchim...@gmail.com wrote:
 Hi Julian,

 I was too glib in my earlier reply.

 I, too, am seeing this problem. I hadn't completetly tested this app
 in production mode, and it fails miserably when compiled.

 So, I will post updates to this thread when I get a solution that
 works not only in development mode, but also when compiled.

The answer (at least in my case), was the following:

try {
   switch (MyVariable) {
case 1: return 1;
case 2: return 2;
.
.
.
} catch (NullPointerException e) {
   return 1;
}

In compiled mode, the try/catch doesn't, so the Javascript was failing
at the switch expression evaluation. So, the side-effect was that the
display was never refresh()-ing

Try compiling in PRETTY mode and checking for exceptions.


 On Aug 19, 8:17 am, jsg jgerso...@gmail.com wrote:

 We have refreshed the view because instead of calling
 ListDataProvider.refresh() which simply calls updateRowData() for all
 the registered displays, we've done the following:

 By calling batchTable.setRowData() we are simply more directly
 targeting both the display and only the row that has changed. (Rather
 than all visible rows by calling refresh().)
 As far as I can tell from the system, the DataProviders have no
 knowledge of the internal column data and so they can't know if any of
 the values of the rows have been updated. Only that the row instances
 themselves have changed. (I have tested it now, just to be safe,
 replacing setRowData() with refresh() with the same results.)

 Our use case is not so uncommon that we should be struggling so much
 with this intended functionality.

 Thanks for your prompt reply.
 Julian

 On Aug 19, 4:16 pm, Jeffrey Chimene jchim...@gmail.com wrote:

 On 8/19/2011 4:53 AM, jsg wrote:

 Thanks for your insight.

 However, after wrapping the setRowData() in a ScheduleDeferred like
 so:

 Scheduler.get().scheduleDeferred(new ScheduledCommand() {
@Override
public void execute() {

 batchTable.setRowData(index,
 Collections.singletonList(object));
}
});

 There is no perceived change in behaviour.
 I've tried wrapping the whole FieldUpdater.update() contents inside
 the execute() action, but to no avail.

 I'm not sitting in front of my GWT development machine,so I don't have
 this exactly right,but where are you calling the list.refresh() method?
 You've updated the backing list, but not refreshed the view (at least in
 the sample).

 On Aug 18, 10:01 pm, Jeff Chimenejchim...@gmail.com  wrote:
 On 08/18/2011 12:05 PM, jsg wrote:

 Hello.
 I've created a test case of my CellTable issue as a self contained
 panel that can easily be imported into any project:
 http://pastebin.com/zDLPKUNh
 Basically I have two Date class fields in my row model, a startDate
 and an endDate. Each Date has two columns in the CellTable (called
 batchTable), one to display the actual date (a DatePickerCell) and
 the other being a text input cell for the time.
 When the FieldUpdater of the startTime or endTime is fired we parse
 the value, save the new time and call batchTable.setRowData() with
 the updated object and row index.
 The problem is that when FieldUpdater is fired, the cells do not
 update. I specifically edited the FieldUpdater of the endTime cell
 to be an hour later than what it was set at.
 I've checked as best as I can that all the gets and sets of the
 respective startDate and endDate are in order, but I'm thinking that
 there's something about CellTable I'm not getting.
 Apologies if I've missed anything.
 I'm running: GWT 2.3
 I've tested it in the latest Chrome and IE9.
 Regards, Julian
 Try putting your update actions inside a ScheduleDeferred command.

 The issue seems to be the coupling between the FieldUpdater and the
 cellTable refresh logic. Running the FieldUpdate.update() action after
 the browser's refresh loop seems to address this issue.
 

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Funny behaviour in CellTable.

2011-08-22 Thread Jeff Chimene
On 08/22/2011 01:13 PM, jsg wrote:
 We haven't tried it in compiled mode yet, but it definitely doesn't
 work in dev mode for us.

Alright - at least that's better than what was happening on my side. The
problem was that in dev mode, the NPE exception was correctly caught in
the try/catch block.

In compiled mode, the NPE doesn't exist, it's caught as a
JavaScriptException.

My code example was intended to demonstrate that when MyVariable is
null, then the catch of the NPE doesn't happen in compiled mode.

I was hoping that you were seeing the same thing: the refresh() succeeds
in dev mode, but not in compiled mode because the NPE can't be caught in
compiled mode. The refresh() never got called because of the NPE.

In your case, it's not working in dev mode. In that case, what do you
see when the presenter does not refresh?

Also, is the celltable setup to allow focus to one cell? If so, does the
refresh occur if you set focus to a cell, the blur out of that cell? One
thing I was going to try before I figured out the NPE, was to subclass
CellTable, and start hooking into some of the protected() routines.

 
 What is your code that returns a value? Neither the
 FieldUpdate.update() nor the ScheduledCommand.execute() expects a
 value back so I'm a little perplexed as to your context? And what is
 MyVariable?
 
 Sorry if I've just lost the plot.
 
 On Aug 22, 8:47 pm, Jeff Chimene jchim...@gmail.com wrote:
 On 08/22/2011 02:34 AM, jsg wrote:









 Hi Jeff,

 Given both our experience and your confirmation, I'm going to file a
 bug report in case this thread isn't being noticed.

 Thanks for your effort.

 On Aug 22, 12:46 am, jchimene jchim...@gmail.com wrote:
 Hi Julian,

 I was too glib in my earlier reply.

 I, too, am seeing this problem. I hadn't completetly tested this app
 in production mode, and it fails miserably when compiled.

 So, I will post updates to this thread when I get a solution that
 works not only in development mode, but also when compiled.

 The answer (at least in my case), was the following:

 try {
switch (MyVariable) {
 case 1: return 1;
 case 2: return 2;
 .
 .
 .

 } catch (NullPointerException e) {
return 1;
 }

 In compiled mode, the try/catch doesn't, so the Javascript was failing
 at the switch expression evaluation. So, the side-effect was that the
 display was never refresh()-ing

 Try compiling in PRETTY mode and checking for exceptions.









 On Aug 19, 8:17 am, jsg jgerso...@gmail.com wrote:

 We have refreshed the view because instead of calling
 ListDataProvider.refresh() which simply calls updateRowData() for all
 the registered displays, we've done the following:

 By calling batchTable.setRowData() we are simply more directly
 targeting both the display and only the row that has changed. (Rather
 than all visible rows by calling refresh().)
 As far as I can tell from the system, the DataProviders have no
 knowledge of the internal column data and so they can't know if any of
 the values of the rows have been updated. Only that the row instances
 themselves have changed. (I have tested it now, just to be safe,
 replacing setRowData() with refresh() with the same results.)

 Our use case is not so uncommon that we should be struggling so much
 with this intended functionality.

 Thanks for your prompt reply.
 Julian

 On Aug 19, 4:16 pm, Jeffrey Chimene jchim...@gmail.com wrote:

 On 8/19/2011 4:53 AM, jsg wrote:

 Thanks for your insight.

 However, after wrapping the setRowData() in a ScheduleDeferred like
 so:

 Scheduler.get().scheduleDeferred(new ScheduledCommand() {
@Override
public void execute() {

 batchTable.setRowData(index,
 Collections.singletonList(object));
}
});

 There is no perceived change in behaviour.
 I've tried wrapping the whole FieldUpdater.update() contents inside
 the execute() action, but to no avail.

 I'm not sitting in front of my GWT development machine,so I don't have
 this exactly right,but where are you calling the list.refresh() method?
 You've updated the backing list, but not refreshed the view (at least in
 the sample).

 On Aug 18, 10:01 pm, Jeff Chimenejchim...@gmail.com  wrote:
 On 08/18/2011 12:05 PM, jsg wrote:

 Hello.
 I've created a test case of my CellTable issue as a self contained
 panel that can easily be imported into any project:
 http://pastebin.com/zDLPKUNh
 Basically I have two Date class fields in my row model, a startDate
 and an endDate. Each Date has two columns in the CellTable (called
 batchTable), one to display the actual date (a DatePickerCell) and
 the other being a text input cell for the time.
 When the FieldUpdater of the startTime or endTime is fired we parse
 the value, save the new time and call batchTable.setRowData() with
 the updated object

Re: Funny behaviour in CellTable.

2011-08-19 Thread Jeff Chimene
On 08/19/2011 08:17 AM, jsg wrote:
 We have refreshed the view because instead of calling
 ListDataProvider.refresh() which simply calls updateRowData() for all
 the registered displays, we've done the following:
 
 By calling batchTable.setRowData() we are simply more directly
 targeting both the display and only the row that has changed. (Rather
 than all visible rows by calling refresh().)
 As far as I can tell from the system, the DataProviders have no
 knowledge of the internal column data and so they can't know if any of
 the values of the rows have been updated. Only that the row instances
 themselves have changed. (I have tested it now, just to be safe,
 replacing setRowData() with refresh() with the same results.)
 
 Our use case is not so uncommon that we should be struggling so much
 with this intended functionality.
 
 Thanks for your prompt reply.
 Julian

You're welcome.

I agree, it's not uncommon.

Absent replies from others on this list, I'd create a new project, and
start adding bits and pieces from the existing project. You might find
an unexpected dependency that inhibits correct behavior.

One of the techniques that helped me was to dump the list data at
critical points to ensure that the list was in the expected state. I
facilitated this by using JUnit to populate the backing store, then
called appropriate routines in the System Under Test. In your case that
would be a JUnit test calling whatever routine then calls
batchTable.setRowData().

Once I had that under control, I added a menu item that called that same
logic, but permitted the additional step of display update. That way, I
could watch the behavior using development mode. I uncovered the
requirement to refresh the display after the browser update, after the
list update.

I could be completely wrong, in that, like phlogiston, my theory is a
completely inaccurate description of the actual behavior.

Bueno Suerte.
 
 
 
 On Aug 19, 4:16 pm, Jeffrey Chimene jchim...@gmail.com wrote:
 On 8/19/2011 4:53 AM, jsg wrote:









 Thanks for your insight.

 However, after wrapping the setRowData() in a ScheduleDeferred like
 so:

 Scheduler.get().scheduleDeferred(new ScheduledCommand() {
@Override
public void execute() {

 batchTable.setRowData(index,
 Collections.singletonList(object));
}
});

 There is no perceived change in behaviour.
 I've tried wrapping the whole FieldUpdater.update() contents inside
 the execute() action, but to no avail.

 I'm not sitting in front of my GWT development machine,so I don't have
 this exactly right,but where are you calling the list.refresh() method?
 You've updated the backing list, but not refreshed the view (at least in
 the sample).









 On Aug 18, 10:01 pm, Jeff Chimenejchim...@gmail.com  wrote:
 On 08/18/2011 12:05 PM, jsg wrote:

 Hello.
 I've created a test case of my CellTable issue as a self contained
 panel that can easily be imported into any project:
 http://pastebin.com/zDLPKUNh
 Basically I have two Date class fields in my row model, a startDate
 and an endDate. Each Date has two columns in the CellTable (called
 batchTable), one to display the actual date (a DatePickerCell) and
 the other being a text input cell for the time.
 When the FieldUpdater of the startTime or endTime is fired we parse
 the value, save the new time and call batchTable.setRowData() with
 the updated object and row index.
 The problem is that when FieldUpdater is fired, the cells do not
 update. I specifically edited the FieldUpdater of the endTime cell
 to be an hour later than what it was set at.
 I've checked as best as I can that all the gets and sets of the
 respective startDate and endDate are in order, but I'm thinking that
 there's something about CellTable I'm not getting.
 Apologies if I've missed anything.
 I'm running: GWT 2.3
 I've tested it in the latest Chrome and IE9.
 Regards, Julian
 Try putting your update actions inside a ScheduleDeferred command.

 The issue seems to be the coupling between the FieldUpdater and the
 cellTable refresh logic. Running the FieldUpdate.update() action after
 the browser's refresh loop seems to address this issue.
 

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Funny behaviour in CellTable.

2011-08-18 Thread Jeff Chimene
On 08/18/2011 12:05 PM, jsg wrote:
 Hello.
 
 I've created a test case of my CellTable issue as a self contained 
 panel that can easily be imported into any project:
 
 http://pastebin.com/zDLPKUNh
 
 Basically I have two Date class fields in my row model, a startDate 
 and an endDate. Each Date has two columns in the CellTable (called 
 batchTable), one to display the actual date (a DatePickerCell) and
 the other being a text input cell for the time.
 
 When the FieldUpdater of the startTime or endTime is fired we parse 
 the value, save the new time and call batchTable.setRowData() with
 the updated object and row index.
 
 The problem is that when FieldUpdater is fired, the cells do not 
 update. I specifically edited the FieldUpdater of the endTime cell
 to be an hour later than what it was set at.
 
 I've checked as best as I can that all the gets and sets of the 
 respective startDate and endDate are in order, but I'm thinking that 
 there's something about CellTable I'm not getting.
 
 Apologies if I've missed anything.
 
 I'm running: GWT 2.3
 
 I've tested it in the latest Chrome and IE9.
 
 Regards, Julian

Try putting your update actions inside a ScheduleDeferred command.

The issue seems to be the coupling between the FieldUpdater and the
cellTable refresh logic. Running the FieldUpdate.update() action after
the browser's refresh loop seems to address this issue.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Best way to prevent dual login in gwt.

2011-08-17 Thread Jeff Chimene
On 08/17/2011 12:30 PM, Daniel Mauricio Patino León wrote:
 We use our own security implementation (implement shiro or spring will
 delay our development), i just want a idea of how to implement this whit
 GWT only, no external fw, a simple way.
 
 I was thinking in Timer and check every some time if the USER - SESSION
 ID are correct
 but isn't the best way... imagine 1,000 users requesting the server
 every X time

The answer, as supplied earlier, is to manage it on the server. You
don't have to use a framework, but you do have to manage the multiple
logins on the server.

-- 
You received 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: Updating a celllist from a JSONP call

2011-08-15 Thread Jeff Chimene
On 08/15/2011 03:33 AM, Paul Browne wrote:
 Intestingly, If I add a Timer that delays for 1ms before calling
 cellList.setRowData(result) it all works
 
 I will live with this, dont like it but it seems to work

Sorry, I missed the issue the first go-round.

Rather than a fixed delay, I recommend the following:

taskFactory.GetTasks(new AsyncCallbackArrayListTaskModel() {

 @Override
 public void onFailure(Throwable caught) {}

 @Override
 public void onSuccess(ArrayListTaskModel result) {
   Scheduler.get().scheduleDeferred(new ScheduledCommand() {
 @Override
 public void execute() {
   cellList.setRowData(result);
   statusText.setText(Set Data);
  }
 }});

 
 
 
 
 On Aug 12, 1:41 pm, Paul Browne paul...@hotmail.com wrote:
 Hi,

 I have have a celllist in a UIBinder,  when I use JSON to get some
 data from a remote server it does not seem to update the celllist with
 the data that I have set in cellList.setRowData until I start moving
 the mouse for a bit (sometimes not at all if i dont move the mouse for
 about 20 seconds), This problem does not seems to happen if I get the
 data any other way i.e. load it from code rather that remote server.

 I have tried to cut the code down as small as possiable, (statusText
 is a label on screen).
 I can see that statusText stays Set Data so I know the results have
 been returned back, but the screen does not update.

 -
 initWidget(uiBinder.createAndBindUi(this));

 statusText.setText(Getting results);

 TaskFactory taskFactory = new TaskFactory();
 taskFactory.GetTasks(new AsyncCallbackArrayListTaskModel() {

 @Override
 public void onFailure(Throwable caught) {}

 @Override
 public void onSuccess(ArrayListTaskModel result) {
 cellList.setRowData(result);
 statusText.setText(Set Data);

 }});

 

 Taskfactory in the code is based on the JSONP code that is the main
 GWT page, I can put the debugger on the line and see that the array
 returned contains all the data I expect

 Any ideas?

 Cheers

 Paul
 

-- 
You received 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: Embed pdf into gwt app

2011-08-14 Thread Jeff Chimene
On 08/14/2011 04:34 PM, P.G.Taboada wrote:
 hello,
 
 I am tryring to display PDF files in my app. Unfortunately, Firefox
 and Safari are downloading the PDF instead of showing them embedded.
 
 I tried object and embed and an iframe element, the PDF always
 gets downloaded. When using embed or object it even messes with the
 history, the app get thrown back in history (I am using Places/MVP).
 
 Did anyone succeed in showing a PDF?
 
 Brgds,
 
 Papick
 

The way I've done this in the past is via an iframe. Split the screen,
and set the iframe url to your pdf generator's url.

The gotcha is that you want a custom emitter on your host. IOW, you
can't just go to example.com/file.pdf You'll probably need something
like example.com/emit.cgi?file=file.pdf

The custom emitter will set the mime type to application/pdf Then
things should work on the browser as you expect (except the URL is the
emitter url, not the file url)

-- 
You received 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: Load Testing Tool for GWT

2011-08-12 Thread Jeff Chimene
On 08/12/2011 07:48 AM, Benoit Cantais wrote:
 Hi,
 
 Is there any easy way to make parameterizable load test for GWT ? I
 tried to use JMeter and Grinder. But when i get the generated script
 of my test, both of these tools gave me an unreadable request. The
 scripts works fine but it doesn't appear to be easily reusable with
 different parameters.
 
 Result with grinder :
 
 /* Understandable code */
 
 result = request101.POST('URL_path',
   '5|0|15|http://URLPATH/|AAE01B9BA413A1202D73415F6358B8FA|
 net.customware.gwt.dispatch.client.service.DispatchService|execute|
 net.customware.gwt.dispatch.shared.Action|...
 962170901|...|2|',
   ( NVPair('Content-Type', 'text/x-gwt-rpc; charset=utf-8'), ))
 
 /* Understandable code */
 
 I am not able to find how to put the variables in this result.

Any language that has a nice regex parser could take this string apart
and reassemble it with the contents of a .csv

I'd put my marker on Perl, but when you know that language. every
problem looks like a nail.


 
 For example, i am actually trying to test a login page.
 
 I need two parameters : The login and the password. I would like to
 make load test with login/password coming from a .csv (for example)
 file, to test what happen when 100 people try to login in
 simultaneously.
 
 
 Thank you for your help. Sorry for my english.
 
 Benoit
 
 

-- 
You received 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: Accessing custom JS events in GWT

2011-08-11 Thread Jeff Chimene
On 08/11/2011 08:38 AM, e-lena-s wrote:
 The issue is that the JS function is written by some other library.
 The custom event will be fired not by my module but by other code on
 the page . I however need to listen to that event, and get the
 customData out of that event for further processing within the
 module.
 I have tried to use DOM.sinkBitlessEvent (and seeing if I can catch
 this event in onBrowserEvent() ), but that didn't work. Not sure what
 other way I can get that event , or why does the custom event looses
 its customData when within JSNI method

Interesting problem.

Are you sure the event data is kept for the case of  js -- js?

I'd eliminate that possibility first. I'm sure it works, but nothing
you've said so far positively eliminates that (admittedly small)
possibility.

If it /is/ kept, then:
0) write an event hander in js (i.e. outside gwt) that calls
addLookupResultHandler
1) load the event handler from step 0 as part of your external library's
load phase
2) hook your addLookupResultHandler to GWT's $wnd object before step 3)
3) fire the event in the library. That will call the event handler
written in step 0

 
 
 On Aug 11, 8:17 am, Jeffrey Chimene jchim...@gmail.com wrote:
 On 8/10/2011 4:50 PM, e-lena-s wrote:







 I am trying to listen to a custom JS event that is created outside my
 GWT module. In my JS file I create the event, and then fire it as
 such :

 var evt = document.createEvent(Event);
evt.initEvent('customEvent', true, true);
evt.customData = someData;

window.addEventListener('customEvent', function(evt)
 { console.log(test:  + evt.customData)}, false);
window.dispatchEvent(evt);

 Now, in my GWT code, I have a JSNI method that adds a listener  to
 listen to my customEvent  and act on it. Code as follows:

 public native void addLookupResultHandler()/*-{
  $wnd.addEventListener('lookupEntitySelected',
 $entry(function(evt){

 console.log(gwt:  + evt.customData);

 console.log(gwt:  + evt.type);

 @myClassName::handleEvent(LmyCustomEventEvent;)(evt)
 }), false);
  }-*/;

 The problem I have is that the customData is being dropped when the
 event gets to JSNI code. I can see that the event listner written in
 JS does get the correct event with the correct customData, but logging
 the event properties in JSNI shows that customData is undefined (event
 type looks correct though)

 Am I doing something wrong here ?

 Is there may be a better way to create custom events (it has to be
 created in JavaScript, since the code firing it won't be in GWT
 module)

 My earlier answer was not correct. I don't see why
 addLookupResultHandler is a JSNI routine. I think you want to write it
 in GWT, via handling a NativeEvent. However, I've never tried this, so
 it may not work as you intend.

 OTOH, maybe you should be using the GWT event bus. From an architectural
 perspective, I think that's a better choice. Instead of using
 window.dispatch(), fire the event via a JSNI method. So, your first JS
 sample should become a JSNI routine that calls a Java routine that calls
 eventBus.fire(), and your second example should become Java. It's
 possible to call eventBus.fire() entirely within JSNI, but getting that
 eventBus argument to your JSNI method may be problematic.
 

-- 
You received 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: Accessing custom JS events in GWT

2011-08-11 Thread Jeff Chimene
On 08/11/2011 09:57 AM, e-lena-s wrote:
 Yup, the js-- js event is kept in tact. I can see all the right data
 with the console.log.

OK


 I'll try your suggestion for alternative way of handling the event

Just to be clear, the event handler from step 0 calls the
addLookupResultHandler via GWT's $wnd object. I think you know that, but
I missed that point in the previous post.

 
 On Aug 11, 9:50 am, Jeff Chimene jchim...@gmail.com wrote:
 On 08/11/2011 08:38 AM, e-lena-s wrote:

 The issue is that the JS function is written by some other library.
 The custom event will be fired not by my module but by other code on
 the page . I however need to listen to that event, and get the
 customData out of that event for further processing within the
 module.
 I have tried to use DOM.sinkBitlessEvent (and seeing if I can catch
 this event in onBrowserEvent() ), but that didn't work. Not sure what
 other way I can get that event , or why does the custom event looses
 its customData when within JSNI method

 Interesting problem.

 Are you sure the event data is kept for the case of  js -- js?

 I'd eliminate that possibility first. I'm sure it works, but nothing
 you've said so far positively eliminates that (admittedly small)
 possibility.

 If it /is/ kept, then:
 0) write an event hander in js (i.e. outside gwt) that calls
 addLookupResultHandler
 1) load the event handler from step 0 as part of your external library's
 load phase
 2) hook your addLookupResultHandler to GWT's $wnd object before step 3)
 3) fire the event in the library. That will call the event handler
 written in step 0









 On Aug 11, 8:17 am, Jeffrey Chimene jchim...@gmail.com wrote:
 On 8/10/2011 4:50 PM, e-lena-s wrote:

 I am trying to listen to a custom JS event that is created outside my
 GWT module. In my JS file I create the event, and then fire it as
 such :

 var evt = document.createEvent(Event);
evt.initEvent('customEvent', true, true);
evt.customData = someData;

window.addEventListener('customEvent', function(evt)
 { console.log(test:  + evt.customData)}, false);
window.dispatchEvent(evt);

 Now, in my GWT code, I have a JSNI method that adds a listener  to
 listen to my customEvent  and act on it. Code as follows:

 public native void addLookupResultHandler()/*-{
  $wnd.addEventListener('lookupEntitySelected',
 $entry(function(evt){

 console.log(gwt:  + evt.customData);

 console.log(gwt:  + evt.type);

 @myClassName::handleEvent(LmyCustomEventEvent;)(evt)
 }), false);
  }-*/;

 The problem I have is that the customData is being dropped when the
 event gets to JSNI code. I can see that the event listner written in
 JS does get the correct event with the correct customData, but logging
 the event properties in JSNI shows that customData is undefined (event
 type looks correct though)

 Am I doing something wrong here ?

 Is there may be a better way to create custom events (it has to be
 created in JavaScript, since the code firing it won't be in GWT
 module)

 My earlier answer was not correct. I don't see why
 addLookupResultHandler is a JSNI routine. I think you want to write it
 in GWT, via handling a NativeEvent. However, I've never tried this, so
 it may not work as you intend.

 OTOH, maybe you should be using the GWT event bus. From an architectural
 perspective, I think that's a better choice. Instead of using
 window.dispatch(), fire the event via a JSNI method. So, your first JS
 sample should become a JSNI routine that calls a Java routine that calls
 eventBus.fire(), and your second example should become Java. It's
 possible to call eventBus.fire() entirely within JSNI, but getting that
 eventBus argument to your JSNI method may be problematic.
 

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



HOWTO change the value of a cell in a celltable

2011-08-10 Thread Jeff Chimene
Hi:

I have an EditTextCell whose value must be edited after the user presses
Enter. The edited value must be redisplayed in the Cell.

For example, if the value is 1,2,3, then the value must be edited to
be 1,2 and that new value must be displayed in the cell table.

I almost have this solved. The problem is that the new value does not
display until the next round of the cell refresh, which occurs when I
focus on the cell, then press enter.

-- 
You received 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: onsubmit complete called in windows but problem in linux

2011-08-10 Thread Jeff Chimene
On 08/10/2011 04:26 AM, aman wrote:
 Hi,
 
 I have created a file upload system which allows the user to
 upload .txt,.xls and .csv formats.When I executed in windows it is
 running fine but now when I deployed the application in linux(Debian)
 using tomcat server I am facing this issue:
 
 The onsubmit method is called for all the file formats.
 onSubmitComplete method is called only when text files are uploaded.I
 want to use onSubmitComplete event as I am using progress bar and
 wanted to perform necessary action on this event.

Have you considered gwt-upload?

I think it works w/ Tomcat. I've had great luck with it cross-platform.

-- 
You received 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: HOWTO change the value of a cell in a celltable

2011-08-10 Thread Jeff Chimene
On 08/10/2011 04:36 AM, Adolfo Panizo Touzon wrote:
 If I understand, when you set
 http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/cell/client/FieldUpdater.html
 the new value you must call to /yourTable.redraw();/

Exactly. However, the new value isn't displaying until the next
focus/blur cycle.

I have other cells in the cell table whose values are updated. This is
the only cell whose value is read, then written.

It has something to do with the EditTextCell edit cycle. It seems like
whoever wrote this widget did not consider the case where there would be
additional edits after the user pressed enter to commit the value.

-- 
You received 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: HOWTO change the value of a cell in a celltable

2011-08-10 Thread Jeff Chimene
On 08/10/2011 04:56 AM, Adolfo Panizo Touzon wrote:
 Hi,
 maybe another solution is use the TextInputCell, have you tried ??

No, I really need EditTextCell, as it has the UI stuff that I need for
this particular cell.

I'm on the track of instantiating an EditTextCell (rather than use
ColumnC,V(new EditTextCell())
, then using the ClearViewData method to reset it while still in the
edit loop.

I'll post back w/ results.


 
 
 2011/8/10 Jeff Chimene jchim...@gmail.com mailto:jchim...@gmail.com
 
 On 08/10/2011 04:36 AM, Adolfo Panizo Touzon wrote:
  If I understand, when you set
 
 
 http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/cell/client/FieldUpdater.html
  the new value you must call to /yourTable.redraw();/
 
 Exactly. However, the new value isn't displaying until the next
 focus/blur cycle.
 
 I have other cells in the cell table whose values are updated. This is
 the only cell whose value is read, then written.
 
 It has something to do with the EditTextCell edit cycle. It seems like
 whoever wrote this widget did not consider the case where there would be
 additional edits after the user pressed enter to commit the value.
 
 --
 You received 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
 mailto:google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com
 mailto:google-web-toolkit%2bunsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.
 
 
 
 
 -- 
 El precio es lo que pagas. El valor es lo que recibes.
 Warren Buffet
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Google Web Toolkit group.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received 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: HOWTO change the value of a cell in a celltable

2011-08-10 Thread Jeff Chimene
On 08/10/2011 04:59 AM, Jeff Chimene wrote:
 On 08/10/2011 04:56 AM, Adolfo Panizo Touzon wrote:
 Hi,
 maybe another solution is use the TextInputCell, have you tried ??
 
 No, I really need EditTextCell, as it has the UI stuff that I need for
 this particular cell.
 
 I'm on the track of instantiating an EditTextCell (rather than use
 ColumnC,V(new EditTextCell())
 , then using the ClearViewData method to reset it while still in the
 edit loop.
 
 I'll post back w/ results.

Yeah, that was it:

Instantiate the EditTextCell in a separate class, so that there exists
an instance with which to call ClearViewData inside the FieldUpdate method.

There is a reference to this in the example set of CellTable.

The other trick is to call the editor outside the EditTextCell edit
loop, so that there is no simultaneous modification of the list data. viz:

predecessorColumn.setFieldUpdater(new FieldUpdaterActivity, String()
{   
@Override
public void update(final int index, final Activity activity, final
String value) {
predecessorCell.clearViewData(activity);
com.google.gwt.core.client.Scheduler.get().scheduleDeferred(new
ScheduledCommand() {
@Override
public void execute() {
getUiHandlers().onPredecessorChange(activity, value);
cellTable.redraw();
}
});
}
});

 
 


 2011/8/10 Jeff Chimene jchim...@gmail.com mailto:jchim...@gmail.com

 On 08/10/2011 04:36 AM, Adolfo Panizo Touzon wrote:
  If I understand, when you set
 
 
 http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/cell/client/FieldUpdater.html
  the new value you must call to /yourTable.redraw();/

 Exactly. However, the new value isn't displaying until the next
 focus/blur cycle.

 I have other cells in the cell table whose values are updated. This is
 the only cell whose value is read, then written.

 It has something to do with the EditTextCell edit cycle. It seems like
 whoever wrote this widget did not consider the case where there would be
 additional edits after the user pressed enter to commit the value.

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




 -- 
 El precio es lo que pagas. El valor es lo que recibes.
 Warren Buffet

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

-- 
You received 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: Something similar to ui:field that can appear multiple times

2011-08-08 Thread Jeff Chimene
On 08/08/2011 03:37 AM, Ionuț G. Stan wrote:
 Is there anything similar to ui:field that can appear multiple times
 inside a template? I have several SPAN placeholders inside the template
 and I'd like their innerText value to be the same on every update.
 
 The only solution that I see (other than having different UI fields for
 what would otherwise be the same element) is to build a custom widget
 and have a UiFactory that would provide the same instance for all
 occurrences of the widget inside the template.
 
 Any other suggestions?

Create your own entities

http://google-web-toolkit.googlecode.com/svn-history/r6913/trunk/user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.ui.xml

 Thanks!

You're welcome.

-- 
You received 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: Something similar to ui:field that can appear multiple times

2011-08-08 Thread Jeff Chimene
On 08/08/2011 09:36 AM, Ionuț G. Stan wrote:
 On Aug/08/2011 19:31, Jeff Chimene wrote:

 Create your own entities

 http://google-web-toolkit.googlecode.com/svn-history/r6913/trunk/user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.ui.xml

 
 Unfortunately, entities are basically constants, and I need to update
 the value of these placeholders each time the user performs a certain
 action.

Then consider gwtquery (jquery for gwt) and run a gwtquery function on
an event fired by whatever is doing the update.

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



wHOWTO reflect changes in a Celltable cell

2011-08-07 Thread Jeff Chimene
Hi:

I have a situation where I want to edit a Celltable Cell in its
FieldUpdater() method.

I'd like the user to see the value after the edits are applied.

The use case is the situation where the Context key value is in the
cell's value:

Context.key = 1, Cell value = 1,2

in this case, I want to remove the 1 and redisplay the new cell value
as 2

It looks like I have to extend EditTextCell to get this redisplay
behavior. Is this correct?

Cheers,
jec

-- 
You received 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: page background color

2011-07-26 Thread Jeff Chimene
On 07/26/2011 01:12 PM, Robert Lockwood wrote:
 I'm really new at all this but really frustrated in that I cannot change
 the page background color in the GWT example MyWebApp that demonstrates
 Asynch.
 
 I put this in the CSS file, both as the first item and then as the last.
 (Tried other things as well.)
 
 body {
 background-color: #D2;
 }
 
 
 Occasionally when the page loads it quickly blinks the color but always
 displays a white background. Why is this happening?
 
 I'm using Eclipse Helios on Ubuntu.

Maybe use Firebug to display to CSS that's in 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: page background color

2011-07-26 Thread Jeff Chimene
On 07/26/2011 02:14 PM, Robert Lockwood wrote:
 Using the .body had no effect.
 
 Where does panel.setStylePrimaryName(body); go?  In the CSS file?  
 
 Thanks,
 Nate

It doesn't go in the CSS file.

Did you take a look at the CSS via Firebug as I suggested?

If your HTML looks like
body
.
.
.
/body

then the suggested selector won't work. For it to work, you'd need
body class=.body
.
.
.
/body

-- 
You received 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: page background color

2011-07-26 Thread Jeff Chimene
On 07/26/2011 03:15 PM, Robert Lockwood wrote:
 I installed FireBug lite in my Chrome browser and inspected the css and
 html files which appear to be identical to my project files.
 
 I edited the body to read body class=.data to match the CSS file
 but that did not solve the problem.
 
 I'm not using the panel statement as I don't know where it should go.
 
 Nate
 
 
 
 
 On Tue, Jul 26, 2011 at 2:20 PM, Jeff Chimene jchim...@gmail.com
 mailto:jchim...@gmail.com wrote:
 
 On 07/26/2011 02:14 PM, Robert Lockwood wrote:
  Using the .body had no effect.
 
  Where does panel.setStylePrimaryName(body); go?  In the CSS file?
 
  Thanks,
  Nate
 
 It doesn't go in the CSS file.
 
 Did you take a look at the CSS via Firebug as I suggested?
 
 If your HTML looks like
 body
 .
 .
 .
 /body
 
 then the suggested selector won't work. For it to work, you'd need
 body class=.body

Ugh. I can't believe I wrote .body

Obviously, it should be class=body

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



Re: GWT Developer Plugin on Safari 5.1 (OS X Lion 10.7) doesn't load

2011-07-25 Thread Jeff Chimene
On 07/25/2011 02:55 PM, David Chandler wrote:
 (snip)
 
 We're currently evaluating how to handle the recent Firefox as well as
 Safari changes going forward. The FF change is especially onerous as
 it now requires engineering effort every 6 weeks to stay up to date.
 
 /dmc
 

I'd like to suggest bringing this up with the rest of the community as
soon as possible. It's clear that Mozilla isn't going to back down on
this decision, and the impact on the GWT plugin will be substantial.

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



Re: GWT Developer Plugin on Safari 5.1 (OS X Lion 10.7) doesn't load

2011-07-25 Thread Jeff Chimene
On 07/25/2011 03:23 PM, David Chandler wrote:
 Sure, do you mean the GWT community or some other? Dev mode plugins
 are open source, so if someone has interest in keeping them up to
 date, we're all ears...
 
 /dmc

The former.

I was looking around in the repository, but didn't see it (them). But I
have to admit I didn't spend more than 5 minutes searching.

Anyway, the maintenance of the FF plugins has exigent nature that isn't
shared by most of the GWT baseline. Can the relaxed nature of most
Open Source development work with such a time-constraint? That's why I'm
suggesting a discussion about this topic.

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



Re: GWT Developer Plugin for Firefox.

2011-07-22 Thread Jeff Chimene
On 07/20/2011 12:16 PM, Chris Conroy wrote:
 Agreed these are serious issues facing the FF plugin. For the moment,
 we're doing a little bit of wait and see to see if this new release
 strategy (specifically the forced rebuild of all extensions) actually
 sticks. If it does, we'll certainly need to retool how we spin plugin
 builds for new versions of Firefox.
 
 The size issue will definitely be a problem. In anticipation of that,
 we've reduced the compiled output size considerably by turning off some
 debug flags, and our plugin supporting 3.0-5.0 clocks in at just 2.0MB.
  Long term, we'll probably need to fashion some kind of split binary or
 revisit the notion of having every version supported in a single xpi.
 
 Short term, the unsatisfying answer that I can give to you is that we
 will lag Firefox's release schedule. If you rely on the Firefox GWT
 DevMode plugin, be sure to keep an instance of a known working version
 of firefox around for your development.

It might also be worth contacting Mozilla Developer Network with
feedback on this issue. I'll certainly write an email message to
Someone, Somewhere on this topic.

Also, there was some announcement on one of the Mozilla blogs about a
Mozilla Enterprise something-or-other panel. As it wasn't open to Mere
Mortals it didn't seem interesting to me. It may be worth contacting
them on this keeping up with the Joneses strategy they seem to have
adopted.

-- 
You received 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: Equivalent JavaScript pattern in GWT

2011-07-20 Thread Jeff Chimene
You've got to expose DB_DATA to Java for this to work.
Maybe use Javascript overlays
(http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsOverlay.html),
and call out to Java from JSNI instead of referencing DB_DATA
directly. I write directly since there's more hand-written code
involved than what actually executes.

On 07/19/2011 11:45 PM, Ionuț G. Stan wrote:
 Hi,
 
 Whenever I'm working in JS, I find myself times and times again using a
 certain pattern in order to avoid an extra call to the server. I dump
 into the web page a JSON object (serialized by the server) inside a
 SCRIPT tag that is then interpreted by the browser as part of the normal
 flow. The alternative would be to make an additional Ajax request, which
 is unnecessary form my point of view.
 
 For example:
 
 script
 var DB_DATA = {
users: ?php echo json_encode(fetch_users_from_db()); ?
 };
 
 window.onload = function () {
// disp
display_users(DB_DATA.users);
 
refreshButton.onclick = function () {
  fetch_users_from_server(function (users) {
display_users(users);
  });
};
 };
 /script
 
 
 As far as my GWT knowledge goes, I can do the same thing in GWT using
 JSNI, with something like this:
 
 public native void displayUsers()/* {
   display_users(DB_DATA.users);
 } */;
 
 However, I was wondering if there's some GWT specific pattern, that
 would also allow some compile time checks for the presence of the
 generated JS variable (similar to how CSS files are checked to see if
 all the required CSS classes are declared).
 
 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: how to access all checkboxes that have a name that begins with abc?

2011-07-15 Thread Jeff Chimene
On 07/15/2011 08:59 AM, dreamer wrote:
 One way is build your own collection (ArrayList) and make accessible,
 with setter and getter ,just like in any java class.
 
 On Jul 15, 8:07 am, Dennis Haupt d.haup...@googlemail.com wrote:
 hi community,

 i'm in a gwt module that is part of a bigger page, and i need to know which
 checkboxes that are on this page are selected. i know what the names of
 these boxes are, but i don't know how many there are.

 how can i a) get them all and b) find out which ones are checked from inside
 my gwt entry point?
 

gQuery will be a good tool choice

-- 
You received 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: math error: modulo

2011-07-15 Thread Jeff Chimene
On 07/15/2011 03:25 PM, Alan Chaney wrote:
 What other languages?
 
 In Java '%' in this case means  the remainder of
 
 the remainder of  dividing -1 by 12 is -1, as is -13 %12 or -25 % 12.
 
 I'd be interested to know which other language does what you say.

http://en.wikipedia.org/wiki/Modulo_operation#Modulo_operation

-- 
You received 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 for samsung smart TV, maple browser

2011-07-14 Thread Jeff Chimene
On 07/14/2011 06:30 AM, Dominic wrote:
 Our company made a google TV application with GWT, and we want to port
 it to the samsung smart TV.
 Samsung TV uses the maple browser.
 When we run the apps, I think the browser detection fails, and the app
 doesn't seem to run.
 Is there a compile setting I should add to make it work with that
 browser? Is it supported?
 
 Thanks,
 Dominic
 

Short answer: no. Long answer: maybe, but you have to pick a browser
work-alike and extensively test the results. The work-alike fails to
adequately support your application, you may have to customize the
generated Javascript. You'll also want to find out what rendering agent
the maple browser uses.

There are probably other comments about this topic in the group
archives. ISTR that you want to create a custom definition to select a
fall-back user agent among those that are supported.

Start with /com/google/gwt/user/UserAgent.gwt.xml

-- 
You received 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 Timeout because of delay at server side

2011-07-14 Thread Jeff Chimene
On 07/14/2011 05:32 AM, Rock wrote:
 Hi Guys,
 I have a GWT application which I used for Installation of multiple
 servers using PERL scripts. These installation scripts can take as
 long as 2-3 hours to execute, because of this the client requests
 times out, after around 1 hour, with the following response in the
 onFailure() method:
Your scripts need to communicate with the client on a regular basis.
Look at the gwtupload project for some ideas on this topic.

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



Re: GWT Developer Job Openings

2011-07-11 Thread Jeff Chimene
On 07/11/2011 08:35 AM, David Chandler wrote:
 As a moderator of this group, I reject almost a dozen job postings per
 day. Several per week actually relate to GWT, but even so are
 inconsistent with this forum's mission. However, I approved Jeff
 Burnham's post because I think there is some benefit in this discussion.
 
 The GWT team doesn't feel that it's our place to maintain a GWT jobs
 forum; however, if the community wants to take this on, we'll certainly
 be glad to help promote it. Also, if there are things you want
 recruiters to know, I'll be happy to write up a sticky post with info
 for recruiters (as well as a restatement of the job postings ban on this
 forum).
 
 In the mean time, if you're a GWT consultant looking for work, here's
 some advice I can offer as a former consultant.
 
 1. The best jobs are those that find you, so make yourself findable.
 Write a GWT blog. Put GWT developer in your Google+ and LinkedIn
 profiles with a link to your Google Groups profile so recruiters can see
 how often you post on this group. Also put GWT consulting or something
 more descriptive in your signature so it shows up in every post on this
 group. Good recruiters know how to search Google Groups and
 StackOverflow to find the real experts.
 
 2. Give a GWT talk at your local JUG or GTUG. Recruiters often frequent
 the larger JUGs and if you're giving the talk, you're their expert.
 
 3. Get your resume in the database of every credible technical staffing
 shop you can find. Apply for every GWT job. Even if it's slightly
 over/under your abilities, that will get you in the recruiter's resume
 database. Put a link to your online profiles in your resume so they can
 read your blog, see how long you've been posting on this group, etc.
 
 4. Post your resume in the various online job services like Dice and
 Monster. Don't just search for jobs--make yourself searchable. Many jobs
 are never posted--the recruiters search the online databases and contact
 you directly. Also make sure you update your resume in these services
 every couple months as recruiters tend to look for recent updates.
 
 Again, let me know where you want me to direct GWT job postings, and
 I'll be happy to help out.
 
 /dmc

Well, that's a nice segue!

To take nothing away from dmc's excellent advice, we still have the list
out there. As I was moving manure this morning, I was thinking about
this issue.

To that end, I would like to propose that we share the moderation task.

Given that the jobs list is a commons, we shouldn't ask Google employees
to moderate the list, and we and us means those who subscribe to
GWT users list.

I should think that if we get somewhere between 5 and 10 volunteers, one
person from that pool can moderate the jobs list for some period
(nominally 2 weeks). At the end of that period, the next person in the
list assumes the task. Perhaps a Google calendar to track each
moderator's schedule.

The idea is to share the soul-sucking zombification that is list
management, yet still maintain a useful service to the community.

Cheers,
jec

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



Re: Eclipse crashes when starting GWT Designer View

2011-07-10 Thread Jeff Chimene
Perhaps you're on a Linux distro? It looks vaguely like some version
mismatch. Try installing Eclipse from your distro's repository (rename
the /opt/eclipse to /opt/eclipse.sav first). If Eclipse loads, that
means there might have been some dependency upgrade that's not handled
by the manual install into /opt. If Eclipse loads, and it isn't at 3.7,
then rename the /opt/eclipse.sav back to /opt/eclipse and explicitly
start Eclipse from that path.
On 07/09/2011 01:02 PM, Mark wrote:
 Hello,
 
 I did install Eclipse Indigo (3.7) and the Google Plugin for Eclipse
 3.7. Everytime I try to start a design view of a *.ui.xml file Eclipse
 crashes.
 Is there anotherway to get more debug information? Have you any hints
 or solutions for this problem?
 
 Thanks, Mark
 
 Eclipse output:
 
 /opt/eclipse/eclipse -debug
 Start VM: /usr/bin/java
 -Dosgi.requiredJavaVersion=1.5
 -XX:MaxPermSize=256m
 -Xms40m
 -Xmx384m
 -jar /opt/eclipse//plugins/
 org.eclipse.equinox.launcher_1.2.0.v20110502.jar
 -os linux
 -ws gtk
 -arch x86_64
 -showsplash
 -launcher /opt/eclipse/eclipse
 -name Eclipse
 --launcher.library /opt/eclipse//plugins/
 org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.100.v20110505/
 eclipse_1407.so
 -startup /opt/eclipse//plugins/
 org.eclipse.equinox.launcher_1.2.0.v20110502.jar
 --launcher.overrideVmargs
 -exitdata a08012
 -product org.eclipse.epp.package.java.product
 -debug
 -vm /usr/bin/java
 -vmargs
 -Dosgi.requiredJavaVersion=1.5
 -XX:MaxPermSize=256m
 -Xms40m
 -Xmx384m
 -jar /opt/eclipse//plugins/
 org.eclipse.equinox.launcher_1.2.0.v20110502.jar
 Install location:
 file:/opt/eclipse/
 Configuration file:
 file:/opt/eclipse/configuration/config.ini loaded
 Configuration location:
 file:/opt/eclipse/configuration/
 Framework located:
 file:/opt/eclipse/plugins/org.eclipse.osgi_3.7.0.v20110613.jar
 Framework classpath:
 file:/opt/eclipse/plugins/org.eclipse.osgi_3.7.0.v20110613.jar
 Splash location:
 /opt/eclipse/plugins/org.eclipse.platform_3.7.0.v201106131736/
 splash.bmp
 Debug options:
 file:/home/username_removed/Downloads/.options not found
 Time to load bundles: 7
 Starting application: 3237
 Application Started: 8233
 GWT http-server started at 127.0.0.1:0
 Inconsistency detected by ld.so: dl-tls.c: 79: _dl_next_tls_modid:
 Assertion `result = _rtld_local._dl_tls_max_dtv_idx + 1' failed!
 

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



Re: GWT Developer Job Openings

2011-07-10 Thread Jeff Chimene
On 07/10/2011 05:11 PM, Jeff wrote:
 I guess I should have phrased my question a little differently. As a
 fellow member of the GWT developer community and someone who is actively
 looking for skilled GWT developers, would this community find a benefit
 in a common thread where GWT opportunities can be posted by developers
 for developers?
 
 If the answer is yes, I'm actively looking for at least two people who
 can legally work within the United States and are willing to relocate or
 travel weekly to client sites (currently west coast) to take on lead
 design and dev roles utilizing GWT and web services.

It looks like
http://groups.google.com/group/Google-Web-Toolkit-Employment
never found a moderator.

If it did have a moderator, that would be where I would post such a
message. No doubt there will be those who wish to wield a banhammer on
you for having the temerity to post this topic, but I don't see any
reasonable alternative right now.

Cheers,
jec

-- 
You received 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: Entity version checks / optimistic locking

2011-07-06 Thread Jeff Chimene
On 07/06/2011 09:09 AM, J.Ganesan wrote:
 No. Aldo Neto wants to preclude Edit function being made available
 to more than one at any point of time. Whereas, a transaction is a
 postmortem action, still allowing the Edit function to more than one
 ( though only one will eventually succeed ).
 
 J.Ganesan
 www.DataStoreGwt.com

Sorry, but I must disagree with the assertion that a database
transaction unconditionally provides ... the Edit function to more
than one... A transaction is not a postmortem action; although I have
to admit that I'm unclear on the definition of that term.

An exclusive write lock on a row helps implement the behavior desired by
the OP. Given two cooperating processes, A and B, if A holds an
exclusive write lock on one or more rows, then the DBMS will refuse any
request by B for a proper subset of those rows in an incompatible lock
mode. Such refusals provide information to the the client so that it can
then ... preclude Edit function being made available to more than one
at any point of time.

-- 
You received 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: Aw: Re: Entity version checks / optimistic locking

2011-07-06 Thread Jeff Chimene
On 07/06/2011 09:39 AM, Jens wrote:
 That would imply that a transaction has to live longer than one request
 (if you use JPA you can only lock an entity inside a transaction and the
 entity will be unlocked once you commit or rollback). 

OK

 But I think in
 most common ajax web applications you do one transaction per request and
 that way you can not hold a lock for a longer period of time if you use
 DBMS read/write locks.

I disagree with that assertion of the linkage between transaction count
on the client and transaction count on the server. However, this is a
GWT forum, not a DBMS forum, and I'll end the discussion here.

-- 
You received 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: What has happened to the GWT designer for Eclipse Indigo?

2011-06-23 Thread Jeff Chimene
On 06/23/2011 08:44 AM, Eric Clayberg wrote:
 You can get it embedded in GPE 2.3.2 via the following update site
 link...
 
 http://dl.google.com/eclipse/plugin/3.7
 
 Or you can get the full version at the following update site link...
 
 http://dl.google.com/eclipse/inst/d2gwt/beta/3.7
 
 Both were available simultaneously with Indigo. The web site changes
 are still catching up.
 
 On Jun 22, 5:55 pm, Mark mayad...@gmail.com wrote:
 What has happened to theGWTdesignerfor Eclipse Indigo?
 

Cool! Although not so much a coffee-out-the-nose moment as Conroy's
earlier reply.

-- 
You received 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: Simulating button click in GWT Unit test?

2011-06-04 Thread Jeff Chimene
On 06/04/2011 06:51 AM, Ed wrote:
 I have to simulate a button click on a button that is created in a GWT
 Unit test (that extends from GWTTestCase).
 However, it's almost impossible to get a direct reference to the
 button to simulate the click directly on the button event.
 
 The button, however, has a unique id through the HTML tag id property.
 Is there away to find the button element and then simulate the button
 click in a GWT Unit test ?
 
 I am not sure how to do this.
 Finding the element through Document.get().getElementById(bla) I
 don't think works as RootPanel.get() doesn't contain the expected
 application elements but rather GWT Junit stuff...? :(
 And then how to simulate a button click on the found element :(...
 
 Please some advice?
 - Ed
 

Create a MouseOutEvent. You'll want to modify to fit your circumstances.
This includes locating tb.

final Button tb;

/*
* Synthesize and fire an event
*/
final
NativeEvent evt = Document.get().createMouseOutEvent(1 /* detail */
, 0 /* screenX */
, 0 /* screenY */
, 0 /* clientX */
, 0 /* clientY */
, false /* ctrlKey */
, false /* altKey */
, false /* shiftKey */
, false /* metaKey */
, NativeEvent.BUTTON_LEFT /* button */
, null /* relatedTarget */);

tb.getElement().dispatchEvent(evt);

-- 
You received 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: XML validation with XSD (SXML Schema) validation in GWT

2011-05-31 Thread Jeff Chimene
On 05/31/2011 08:52 AM, Michaël wrote:
 Hi,
 
 After a lot of research on the web I don't find how to validate a XML
 file with a XSD (XML Schema) in GWT (2.3.0).
 
 I saw that on the JSE 6 there is a SchemaFactory class, but not in
 GWT. So, how can I do this validation?
 
 Best regards.
 

You won't be able to invoke a validating parser on the client side, You
can use GWT RPC to cause your server to perform that task, and return
the results to your client.

-- 
You received 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 2.2 ERP Framework Suggestions

2011-04-13 Thread Jeff Chimene
On 04/13/2011 10:34 AM, Mark Wengranowski wrote:
 Hi Everyone,
 
 I plan on building the first part of an ERP system for my company and
 am looking to get some feedback from everyone about different
 technologies and what I might want to use based on my requirements.
 
 The Database will be a MS SQL 2008 server and I currently have an old
 ERP system which contains many years worth of business logic. I plan
 to utilize some of this via web services and write all the other
 business logic from scratch. Because this will be the beginning of a
 new product/program laying out the proper framework and choosing
 helper utilities is very critical.
 
 To goal is to have a product that is open multiple implementations.
 i.e. there could be a GWT program and a seperate JSP/JSF program that
 will need to share access to the business logic and database.
 
 My questions are:
 
 1. Data access: Should I be setting up something like Hibernate to
 organize data access? Is there a downside to doing this, i.e.
 performance? 

There's no way to know this answer /a priori/ If this is an important
question, you'll have to build a proof-of-concept demo.

 What would be the best technology to use with GWT 2.2
 that will provide a somewhat future proof/industry standard solution?

GWT RPC works well with standard server solutions. The design is based
on the fact that the implementor provides the necessary shim code to
attach the client and server.

 2. Business logic: Based on my goal of multiple implementations what
 would be the best way to write my business logic? i.e. create non gwt
 java classes, create gwt classes, create dll's.

My advice would be to approach this task by pulling the presentation
logic out first, and implementing it. Try to resist the inevitable pull
to move business logic to the client in the first phase. Focus on MVP on
the client side, you can mock the model as you prove the Presenter/View
logic. OTOH, there will always be simple business logic (e.g. some
kinds of business-specific validation) You can mock the model that
supports that kind of validation.

The business logic will be the most expensive logic to reproduce, so I'm
quite conservative regarding moving this to the client as part of the
initial work. Develop a plan that includes your representatives from
your end-user community who will test this in parallel with the existing
system.

 3. Frameworks: GWT now has it's own MVP framework. There are a lot of
 frameworks to choose from and i believe using Googles MVP (Activities
 and Places) might be the safest way to go for future upgrades to the
 GWT SDK. Are there any downsides to it and is there a better framework
 to base a new project on? Will this framework work well with the data
 access and business logic considerations i mentioned above?

The best answer to this question is to search the list archives for the
past six months. The GWT implementation of MVP is not your only choice.
See, for example, the highly regarded gwt-platform.

 4. Standards: Is there an industry standard for technologies and
 frameworks to use with GWT 2.2. I know a lot of it depends on your
 requirements but if we're basing this on a new project with a MS SQL
 database then

I think you'll find gin / guice quite valuable.

 GWT is changing so rapidly that it's hard for me to tell if older
 suggestions of technologies and frameworks are still valid and good
 practice with the latest version of GWT. Any help you can give me
 would be greatly appreciated.

Search within the past six months. Older comments re:
authentication/authorization are still apropos.

-- 
You received 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: SimpleEventBus not firing event after creation

2011-04-12 Thread Jeff Chimene
On Tue, Apr 12, 2011 at 3:43 PM, Matthew Hill matt2...@gmail.com wrote:

  this.eventBus.addHandler(SomeEvent.TYPE, new SomeEventHandler() {

  @Override

  public void onSome(SomeEvent event) {

   Window.alert(Hi);

  }

  });

   this.eventBus.fireEvent(new SomeEvent());


 Why doesn't this work? When I debug and step through this code, I see that
 the handlers list is empty when fireEvent is called.


 How can I add the handler immediately, so that I can fire it straight
 after?


What's the context of the code sample? For example, are you already in an
event context? The use of this. also raises flags.

-- 
You received 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: Plugin failed to connect to Development Mode

2011-04-10 Thread Jeff Chimene
On Sat, Apr 9, 2011 at 7:54 PM, facundo schwindt facu0...@gmail.com wrote:

 Hi everyone


 I was developing an app in development mode.

 Recently I got a Mac with snow leopard.

 The app run perfectly in Windows7. But I've imported the project into
 workspaces in Snow Leopard OS and when I try to run it the browser give me
 this Plugin failed to connect to Development Mode server at
 127.0.0.1:9997.

 I've erase the cache in chrome Browser but the problem continues.

 The development mode tab said:

 23:29:52.792 [ERROR] [ldbn] Unable to find type
 'sa.car.sa.fast.client.Main'
 23:29:52.930 [ERROR] [ldbn] Hint: Previous compiler errors may have made
 this type unavailable
 23:29:52.985 [ERROR] [ldbn] Hint: Check the inheritance chain from your
 module; it may not be inheriting a required module or a module may not be
 adding its source path entries properly

 By the other hand the example of New web application project works goods.

 Any idea ?

 Thanks a lot ...

 Facundo

 There's something wrong in your project's layout on the Mac. I'm guessing
the contents of the module
XMLhttp://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html#DevGuideModuleXmlfile
are the same, but the project layout on the Mac doesn't match the
Windows project layout.

-- 
You received 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: Google Web Toolkit Developer Plugin for Solaris Firefox 3.6.x

2011-03-28 Thread Jeff Chimene
On Sat, Mar 26, 2011 at 8:35 AM, Barry Astrow bast...@gmail.com wrote:

 Greetings.  I am new to GWT and I need a Google Web Toolkit Developer
 Plugin for Firefox 3.6.x running on a Solaris 10 (a.k.a., SunOS 5.10) machine.
 Is there such a plugin available?  Thanks for any help you can provide.
 –Barry


http://gwt.google.com/samples/MissingPlugin/MissingPlugin.html
You get there automatically when your browser reaches the development mode
URL and the browser plugin isn't installed.

If a linux version doesn't work, it may be that you need to build from
source
http://code.google.com/p/google-web-toolkit/source/browse/#svn/trunk/plugins

-- 
You received 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: IE v Firefox

2011-03-28 Thread Jeff Chimene
On Mon, Mar 28, 2011 at 7:41 AM, Greg Dougherty
dougherty.greg...@mayo.eduwrote:

 So, I have a quirks mode web app using GWT 2.1.2.  It runs just fine
 under Firefox, Sea Monkey (Mozilla derivative), and even Safari (on my
 iPhone).  On IE, however, it pops up the password dialog box, accepts
 a user id and password, then gives a completely blank screen.  On
 errors on the server side.

 How do I go about debugging this sort of problem?


A few ideas:

   - Install firebug-lite
   - Use development mode to step through your code after the login process
   completes.
   - Are you using Gin? If so, create a mock login authentication module to
   save yourself that step
   - Which version of IE? Six? Good luck.
   - JSNI code? I'd start there.
   - Custom attribute settings? element.setAttribute... Review those.
   - GWT.log or logger is your friend

-- 
You received 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: IE v Firefox

2011-03-28 Thread Jeff Chimene
One more thing - why are you using quirks mode?

-- 
You received 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: com.google.gwt.core.client.JavaScriptException. only using Internet Explorer

2011-03-28 Thread Jeff Chimene
2011/3/28 Sergio García sergiotrapie...@gmail.com

 Hi,

 Before explain my problem, I have to say that my GWT version is 2.2.0
 and the error only has place when I use Internet Explorer (in this
 case IE 8).

 I have a little GWT project which contains a button that throws the
 next method:

private void expotarExpediente(VistaExpediente vista) {
final String templateURL = GWT.getHostPageBaseURL() +
 exportar?id=
+ vista.getId();
Window.open(
templateURL,
Resultado de expotar el expediente: 
+
 vista.getNumeroExpediente(), );
}


Are the arguments to Window.open() correct?
http://msdn.microsoft.com/en-us/library/ms536651%28v=vs.85%29.aspx

-- 
You received 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: IE v Firefox

2011-03-28 Thread Jeff Chimene
On Mon, Mar 28, 2011 at 8:33 AM, Greg Dougherty
dougherty.greg...@mayo.eduwrote:

  One more thing - why are you using quirks mode?
 Because I'm utterly uninterested in trying to figure out what the
 dimensions of my panels should be, so I don't ever use any of the
 *LayoutPanels.

 Every web app I've ever written has had its size dependent upon the
 user's input.  I can write a lot of code to try to figure out how big
 things should be, and then resize everything appropriately, or I can
 use Quirks mode and have the Panels do that for me, while I focus on
 the issues that are specific to my app.

 Which do you think is a better use of my time?

 I've never seen an explanation of why the *LayoutPanels are the way
 they are (just the bald statement can't give you Swing like sizing in
 Standards mode), but even if it's a really good reason, it wouldn't
 really matter.  Because as long as I can simply focus my efforts on
 the problems important to me, that's what I'm going to do.

 Greg


Any GWT widget should work in Standards mode. It may be interesting to see
if the problem disappears in Standards mode. Also, there's the
X-UA-Compatibility header for IE. Are you using that header?

-- 
You received 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: IE v Firefox

2011-03-28 Thread Jeff Chimene
On Mon, Mar 28, 2011 at 8:43 AM, Greg Dougherty
dougherty.greg...@mayo.eduwrote:

 - Install firebug-lite
 Well, I've taken a look at it, and maybe after I figure out what a
 bookmarklet is I might feel more comfortable using it.  But thanks
 for the pointer.


I don't remember the linkage between bookmarklet and the install. ISTR that
the bookmarklet gives you on-demand access to FBL. But I could be wrong.
When I'm using IE, it's always for testing, so FBL is always running.



 - Use development mode to step through your code after the login
 process
 completes.

 Yeah, 30 seconds after I posted this it occurred to me that I COULD
 test this under development mode, not just as a deployed app. :-(


I hate it when that happens...

-- 
You received 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: move or not to move to Firefox 4 for GWT development

2011-03-23 Thread Jeff Chimene
On 03/23/2011 07:52 AM, Jens wrote:
 I did it today and so far it works. Just make sure FF4 installs the
 latest GWT Plugin.

I did find that I had to remove the plugin  reinstall via the missing
plugin page. But, it might have been a quirk of the moment, as there
was an active session.

Noticeably faster.

Linux AMD-64

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



Howto to reliably detect when to style a RichTextArea+RichTextToolbar Composite

2011-03-22 Thread Jeff Chimene
Hi:

I have several RichTextArea/RichTextToolbar Composite widgets for which I'd
like an active/inactive styling.

How to accomplish this in GWT 2.2?

Ordinarily, I'd use onBlur events. However, it seems I cannot rely on these
events when they occur; which is anytime focus leaves the RichTextArea. Such
an event could occur when the user moves to the associated RichTextToolbar.
It seems I cannot detect onBlur events that occur when focus leaves the
Composite. I tried the FocusPanel as the Composite's widget, but got only
one onBlur  event per page load.

Suggestions welcome.

Cheers,
jec

-- 
You received 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: Detecting blocked RPC

2011-03-22 Thread Jeff Chimene
On 03/22/2011 10:06 AM, Mogoye wrote:
 We've noticed on our application that sometime some RPC does not
 answer.
 
 When we load the index.html every this is correctly started, but when
 user try to login = send an RPC to check is user/pass he never
 receive an answer.
 
 Actually we didn't have a clue why we do not have answer and the only
 thing we found to solve it is to restart the tomcat... Yeah... Not
 really nice !
 More over when this problem occurs we are notified because a customer
 complains about it. We would like to detect it more quickly. The idea
 would be to send periodicaly via a POST a request to check if we have
 an answer (invalid login for example).
 
 We try to send a POST using curl but we only get index.html as answer :
 (
 How can we generate a compatible RPC POST request ?
 Is there something specifying how a request is built ?
 
 Is there any better solution to check that a RPC servlet is alive ?

Maybe instead start a watchdog timer before the request. Cancel the
request when the timer expires. Cancel the timer when the request returns.

-- 
You received 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: Article about RequestFactory in Italian

2011-03-18 Thread Jeff Chimene
Maybe a link?

On Fri, Mar 18, 2011 at 6:19 AM, Luca luca.mas...@gmail.com wrote:

 Hi all, in our Google Tech User Group blog we published an article about
 RequestFactory.
 This article is written in italian.

 Hope this can help someone.

 Bye.

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


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



Re: Article about RequestFactory (in italian)

2011-03-18 Thread Jeff Chimene
Very nice, thank-you. I look forward to the next installment. Maybe some
code examples?

On Fri, Mar 18, 2011 at 6:22 AM, Luca luca.mas...@gmail.com wrote:

 Hi all, in our Google Tech User Group blog we published an article about
 RequestFactory.
 This article is written in italian.


 http://firenze-gtug.blogspot.com/2011/03/requestfactory-framework-parte-1.html

 Hope this can help someone.

 Bye.

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


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



Re: [gwt-contrib] Are there any docs describing internals of gwtc?

2011-03-15 Thread Jeff Chimene
Hi Scott:

I'm taking the opportunity to somewhat hijack this thread to ask a
question regarding this topic:

Is there an opportunity to use these internals to augment GWT testing
strategies?

Specifically, I'm wondering if the data structure generated during
compilation can be used to help baseline testing.

Can we take the information and create a network that represents a
series of decisions taken in a particular way? This network would be
used during the test phase.

Cheers,
jec

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


Re: Printing; controlling top and bottom page margins

2011-03-09 Thread Jeff Chimene
On 03/08/2011 05:39 PM, Rob Tanner wrote:
 Hi,
 
 Found a great little class to enable me to print the contents of
 panels.  Here's the URL:
 http://gwt-commons-sandbox.googlecode.com
  /svn/branches/freller/gwt-commons/src/org/gwtcommons/user/
 client/Print.java
 
 I'm printing the contents of a HorizontalPanel() that contains an
 HTML() object that contains the text of a policy that the user is
 required to agree to follow.  There is no requirement that they keep a
 hard copy, but I've added a print in case they do.  The printed output
 is identical to the panel but the problem I have is that the full
 HTML() object is longer than a single letter size page (it's displayed
 inside a ScrollPanel() in the browser) so the text that overflows on
 to the second page of the printout appears about a quarter of an inch
 down from the physical top of the paper.  Is there any way I can
 control the top and bottom margins on the multiple printed pages?
 
 Thanks,
 
 Rob Tanner
 Linfield College
 

Hi Rob:

The browser gets to decide how to format the page. You can try various
CSS media tricks. I'm assuming you've seen at least
http://www.w3.org/TR/CSS2/media.html If not, that's a good place to
examine the print media type. You can probably do something with the
requirement text by enclosing it in a div with small text and narrow
margins, combined with a set of instructions to the user that explain
how to set the margins. There will inevitably be annoying edge cases.

Generate a PDF if you want complete control of the page layout.

-- 
You received 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: GWT1.7 -- GWT 2.X; Browser dependent error with hashmap

2011-03-07 Thread Jeff Chimene
On Mon, Mar 7, 2011 at 5:20 AM, Panke t.pankr...@googlemail.com wrote:

 Hi,

 We are in the process of migrating a project from GWT 1.7 to GWT 2.2.
 Everything works
 fine -- on Firefox. On every other browser I get a

  com.google.gwt.core.client.JavaScriptException: (TypeError): Das Objekt
 unterstützt diese
  Eigenschaft oder Methode nicht.
 (translates to: this object does not support this method or attribute,
 full stacktrace here
 http://paste.pocoo.org/show/349434/).

 The exception is thrown everytime I get a Element by something like
 Element e = doc.getElementById(id); e.hashcode();


What does e look like in your debugger?

-- 
You received 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: Can I set some piece of code to be ignored by GWT compiler

2011-02-25 Thread Jeff Chimene
On Thu, Feb 24, 2011 at 11:22 PM, lalit lalit.bh...@gmail.com wrote:

 I know that certain methods in my class are never going to be used in
 client side. They are specific to server. Can I somehow notify the GWT
 compiler to ignore these code fragments either at class level or
 method level.

 thanks in advance


Have you seen
http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html#DevGuideDirectoriesPackageConventions

-- 
You received 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: Making a cross site request to a service returning back XML

2011-02-25 Thread Jeff Chimene
On Fri, Feb 25, 2011 at 9:28 AM, ialexei iale...@gmail.com wrote:

 I have a legacy middleware application that returns back XML.
 It has lots of methods and is doing well in a stable production
 environment.
 I would like my GWT app (running on a different domain) to consume
 this data with minimal changes to the middleware.

 The way I see it I have these 2 options
 1. Modify my middleware to return back JSONP instead of XML with an
 optional argument for return type.
 2. Proxy calls to the middleware through a GWT servlet

 #1 would mean a change to every remote method call into equivalent
 JSONP.
 #2 would mean an additional hop


GWT is Javascript executing in a browser context. Just as, for example,
Firefox can download and render an XML file, so too can your app. I don't
know the mechanics of the request, but it sounds like it's a CGI contract
(as opposed to Java RPC): your middleware app will set the response MIME
type to text/XML, your response handler will receive the response, if the
status is HTTP 200, it will parse the response via the browser.

You then navigate the resulting DOM tree and extract the relevant
tags/attributes/content.

hth,
jec

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



Re: how to realize a realtime clock running in the client?

2011-02-17 Thread Jeff Chimene
On Thu, Feb 17, 2011 at 12:57 AM, János Kiss ffun...@gmail.com wrote:

 If the timers run only on the clients, it can be inconvenient if they
 are'nt synchronized. Both clients have a timer about the opponent, and when
 he or she makes a move,


Isn't this a digital version of a chess clock? If so, the opponents clock
starts, and your clock stops when you trigger the clock's actuator, not ...
when he or she makes a move. Your clock stops and the opponents clock
starts when you end your move, not when you start.


 you can see the timer counting 1:01, 1:02


Which uses a GWT animation technique. This would be the guessed elapsed
time I agree that there will be a latency here. That's the nature of the
network beast. I suppose you could advance the clock based on measured
latency, but you can correct for this on receipt of the opponent's actual
elapsed time.


 and then get the message from the server the opponent made a move at 1:00,
 and the client have to correct the time.


It's elapsed time, not wall time. If chess players cared about wall time,
then chess games via snail mail wouldn't be very much fun.

Each player sends an elapsed time message to the server upon the digital
equivalent of the analog hit of their stop switch on the clock. The client
sends a message to the server that contains the actual elapsed time. I do
agree that a correction must be made on each player's clock for differences
in the opponent's actual vs. guessed elapsed time. The local display is
corrected upon receipt of an elapsed time message.



 Synchronize the time with the server can be made for example:
 1. client sends a request to the server to get the server time, and records
 the sending time of the request (1:01.5)
 2. the server sends back the server time (0:59.3)
 3. the client gets  the time and records the time of getting the response
 (1:03.1)
 Now the client can estimate the network latency by getting the difference
 of the 1. and 3. step and dividing by 2. (1:03.1-1:01.5) / 2 = 0:01.6 / 2 =
 0:00.8
 The latency has to be added to the server time sent by the server and you
 are ready. (0:59.3 + 0:00.8 = 1:00.1)
 This works if the server is not too busy and the response is generated
 immediately.

 Cheers
 Peter




 2011/2/17 Jeff Chimene jchim...@gmail.com

  On Wed, Feb 16, 2011 at 9:41 AM, Magnus alpineblas...@googlemail.comwrote:

 Hi,

 my chess application needs time handling.

 As a general rule, all game related timing decisions are done on the
 server. For example, when a move is made, the move's time is
 determined and stored on the server.

 However, the client should have some visual feeling of a running
 clock, i. e. a clock that is update every second.

 How can I realize this? I need help especially for these questions:

 - How do I realize the running clock? Do I have to a timer every
 second, update the display and create a new timer?

 - As a starting point, the client receives some initial time value, e.
 g. when a game is loaded, the client receives the information that
 black has already spent 01:00 (1 hour). However, there is a little gap
 due to the RPC processing time. First, the server sends back the
 information 1 hour to the client. Then, the client starts counting
 01:01, 01:02, and so on. However, when the client starts counting,
 the time may already be at 01:03, depending on the bandwidth of the
 internet connection. Can one do something about this?


 Isn't this chess clock an elapsed time clock? In other words, the clock
 doesn't sync with wall time, or with the server. It doesn't even have to
 take time zone into consideration. The server should be recording elapsed
 time per client. Why is the network transmission time even an issue?

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


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


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



Re: how to realize a realtime clock running in the client?

2011-02-16 Thread Jeff Chimene
On Wed, Feb 16, 2011 at 9:41 AM, Magnus alpineblas...@googlemail.comwrote:

 Hi,

 my chess application needs time handling.

 As a general rule, all game related timing decisions are done on the
 server. For example, when a move is made, the move's time is
 determined and stored on the server.

 However, the client should have some visual feeling of a running
 clock, i. e. a clock that is update every second.

 How can I realize this? I need help especially for these questions:

 - How do I realize the running clock? Do I have to a timer every
 second, update the display and create a new timer?

 - As a starting point, the client receives some initial time value, e.
 g. when a game is loaded, the client receives the information that
 black has already spent 01:00 (1 hour). However, there is a little gap
 due to the RPC processing time. First, the server sends back the
 information 1 hour to the client. Then, the client starts counting
 01:01, 01:02, and so on. However, when the client starts counting,
 the time may already be at 01:03, depending on the bandwidth of the
 internet connection. Can one do something about this?


Isn't this chess clock an elapsed time clock? In other words, the clock
doesn't sync with wall time, or with the server. It doesn't even have to
take time zone into consideration. The server should be recording elapsed
time per client. Why is the network transmission time even an issue?

Cheers,
jec

-- 
You received 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 some generalized advice

2011-02-15 Thread Jeff Chimene
On 02/15/2011 07:56 AM, Nate wrote:
 I'm not a programmer by title although it is in my job description.
 We fly sensors in an aircraft and are in the process of upgrading the
 system from one computer that does everything to a distributed system
 that uses small Linux computers (PC-104) with one (controller)
 providing the GUI and user interaction and sending commands and
 receiving status and some data from the others.
 
 My supervisor would prefer that the user interface be implemented as a
 webpage so that he can bypass the clunky display on the aircraft and
 use a notebook.  I told him that I had no idea how this could be done.
 I'm coding in Java (and learning Java).

At a minimum (among other requirements) your controller must implement
an HTTPD (HTTP daemon) to use GWT.

 My model, from reading some information about GWT is that I would have
 all the code that supports the application reside on the controller.
 The web page would interact with that code.

That's mostly correct. The web page would execute Javascript downloaded
to the notebook. The application would need to interact with the
controller. More detail is needed about the controller.

 Is this realistic?

Maybe.

 The user would need to use a file picker to access files on the
 controller, is that possible? Difficult?

Maybe. It depends on the software running on the controller.

 I have almost no contact with other programmers and none with
 experience with the web so this forum appears to be my best source.

Please consider hiring someone to help evaluate requirements. It's way
too early to be thinking about GWT.

Cheers,
jec

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



Re: UiBinder doesn't autocomplete anymore in Eclipse

2011-02-15 Thread Jeff Chimene
On 02/15/2011 03:16 PM, pete wrote:
 Hallo,
 
 since I updated my Google-Plugin with the last GWT 2.2 release, for
 some reason the autocomplete in UiBinder templates doesn't work
 anymore in my Eclipse 3.5
 If I press control + space, I see possibilities (e.g. when providing a
 path) but if I click on a possibility, it doesn't get filled in. This
 is really annoying, since I have to type everything, like long package
 combinations in type declarations or long class names in the
 templates.
 
 Has anyone else experienced this problem? And maybe even solved it?
 
 Many thanks in advance and greetings,
 Pete
 

I've seen it, reproduced it, reported it, and the GWT team is looking
into it.

Cheers,
jec

-- 
You received 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: GPE auto-complete only partially working for UiBinder tags

2011-02-14 Thread Jeff Chimene
On 02/14/2011 09:18 AM, Jeff Larsen wrote:
 I've had this happen to me also. I haven't checked my eclipse logs
 either. I haven't noticed it with the newest version of the plugin
 however. 

Good point. I'll check.

-- 
You received 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: GPE auto-complete only partially working for UiBinder tags

2011-02-14 Thread Jeff Chimene
On 02/14/2011 09:12 AM, Rajeev Dayal wrote:
 Hi Jeff,
 
 We were unable to reproduce this behavior. Do you see anything in the
 Eclipse Error Log (Window - Show View - Error Log).

Yes. With your permission, I'll forward the log to you (rather than
pollute the list)

Cheers,
jec

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



GPE auto-complete only partially working for UiBinder tags

2011-02-02 Thread Jeff Chimene
Hi:

I notice that in GPE version 2.2.0.ms1-201101251930

when editing a UiBinder file

I get a suggestion list after CTRL+SPACE, but after RETURN, the selected
element is not copied.

For example, the following sequence
g:Vert

CTRL+SPACE == auto-complete popup

cursor over VerticalPanel

RETURN

text not copied

Maybe pilot error - but this auto-complete works for Java code.

-- 
You received 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: GPE auto-complete only partially working for UiBinder tags

2011-02-02 Thread Jeff Chimene
On 02/02/2011 12:37 PM, Jeff Chimene wrote:
 Hi:
 
 I notice that in GPE version 2.2.0.ms1-201101251930
 
 when editing a UiBinder file
 
 I get a suggestion list after CTRL+SPACE, but after RETURN, the selected
 element is not copied.
 
 For example, the following sequence
 g:Vert
 
 CTRL+SPACE == auto-complete popup
 
 cursor over VerticalPanel
 
 RETURN
 
 text not copied
 
 Maybe pilot error - but this auto-complete works for Java code.

It's more complicated than I originally thought: auto complete +
auto-close works for the g:cell

When there's no alternative, auto-complete works. For example,
auto-complete works for /g:VerticalPanel

-- 
You received 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: Formatting data - best on the server, or client?

2011-01-31 Thread Jeff Chimene
On 01/30/2011 05:42 PM, tachoknight wrote:
 Hi all-
 
 I am writing a site that generates an HTML-based report that uses some
 pretty complex table formatting (think of it as a web page equivalent
 of the phone book). This is not a big site, and the result page is not
 interactive; it's a static report.
 
 I've mocked up the result page in an HTML page with CSS and the
 formatting is fine for all browsers, but now I'm at something of an
 impasse in how to implement it. In a JSP world I'd just be populating
 the jsp file on the server and displaying the results in the browser.
 As it is, I'm using GWT (obviously... :) ) and I'm at a loss as to how
 to properly do this.
 
 I looked into the UIBinder class, which would give me the HTML
 template, but that means that the result set would have to be
 transmitted to the client and all the work done in the browser. I
 could use something like FreeMarker to format the results on the
 server, and then send back the generated HTML, which is the method I'm
 leaning towards, but that too seems sub-optimal.
 
 Any assistance on the right thing would be appreciated.
 


Have you considered XML + style sheets? Unless you're targeting older
browsers, or need external links.

If you must have HTML, then create a page UiBinder. Wrap an HTMLPanel in
a ScrollPanel. Inject the HTML into the HTMLPanel in the response handler.

-- 
You received 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 GPE/GWT 2.2M1

2011-01-27 Thread Jeff Chimene
On 01/26/2011 04:21 PM, Eric Clayberg wrote:
 Good news! Google Plugin for Eclipse 2.2M1 (including Google Web
 Toolkit 2.2M1) is ready for you to download and try out from the
 following update site URLs...

Ok. I tried the Contact Support feature after a WindowBuilder internal
error. Is that feature active, or should I just file a bug report?

Cheers,
jec

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



  1   2   3   4   5   6   >