Re: Digest for google-web-toolkit@googlegroups.com - 25 Messages in 14 Topics

2011-10-14 Thread rajandeep vij
On 10/15/11, google-web-toolkit@googlegroups.com
google-web-toolkit@googlegroups.com wrote:
 =
 Today's Topic Summary
 =

 Group: google-web-toolkit@googlegroups.com
 Url: http://groups.google.com/group/google-web-toolkit/topics

   - XMLParser EndOfFile question [2 Updates]
 http://groups.google.com/group/google-web-toolkit/t/6ec276d877144b68
   - Global Event Bus ? [4 Updates]
 http://groups.google.com/group/google-web-toolkit/t/c9ba8a48bc600d99
   - Thoughts on Adding Widgets [1 Update]
 http://groups.google.com/group/google-web-toolkit/t/906bbce069d9033a
   - UiBinder  setVisible - Confusing (Inconsistent?) Behaviour [1 Update]
 http://groups.google.com/group/google-web-toolkit/t/9648047d608c47c2
   - GWT Designer fails under Eclipse 3.7 with latest update [5 Updates]
 http://groups.google.com/group/google-web-toolkit/t/3ea91b1d6f613038
   - Developers, please don't ignore reported GWT issues. [3 Updates]
 http://groups.google.com/group/google-web-toolkit/t/e60b4d63569e2f08
   - AutoBean: decoding JSON with an array at the root? [1 Update]
 http://groups.google.com/group/google-web-toolkit/t/731257d0ca6f6258
   - How do I use a boolean parameter in the Message.Select annotation? [2
 Updates]
 http://groups.google.com/group/google-web-toolkit/t/a2f7376654aca9c4
   - How to create war file in GWT 2.4 / Eclipse Indigo [1 Update]
 http://groups.google.com/group/google-web-toolkit/t/8689b5258647a2bb
   - How to add click events to multiple images in a cell/celltable [1
 Update]
 http://groups.google.com/group/google-web-toolkit/t/35f6b316e18b1dfa
   - GWT App Indexing [1 Update]
 http://groups.google.com/group/google-web-toolkit/t/7a44acce7d8cea24
   - Is it possible to have a div overlay something, but not catch the clicks
 (ie, transparent to clicks?) [1 Update]
 http://groups.google.com/group/google-web-toolkit/t/ee265196c3fa3a4d
   - Invisible DataGrid [1 Update]
 http://groups.google.com/group/google-web-toolkit/t/52946b8244cd8a24
   - Compiler exception occured. Not able to compile GWT application [1
 Update]
 http://groups.google.com/group/google-web-toolkit/t/2ed8c5ac7dd0abc1


 =
 Topic: XMLParser EndOfFile question
 Url: http://groups.google.com/group/google-web-toolkit/t/6ec276d877144b68
 =

 -- 1 of 2 --
 From: coffeMan nmatv...@gmail.com
 Date: Oct 14 09:32AM -0700
 Url: http://groups.google.com/group/google-web-toolkit/msg/91503267b9a7c63b

 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



 -- 2 of 2 --
 From: Jeff Chimene jchim...@gmail.com
 Date: Oct 14 06:51PM -0700
 Url: http://groups.google.com/group/google-web-toolkit/msg/f7c92df98c256a5a

 On 10/14/2011 09:32 AM, coffeMan wrote:
 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 

Re: Digest for google-web-toolkit@googlegroups.com - 25 Messages in 14 Topics

2010-08-30 Thread wul...@myway.com

Please stop emailing me. No more. I have so many emails from thisĀ -Original 
Message-From: google-web-toolkit+nore...@googlegroups.comdate: 01/03/2010 
06:56 PMTo: Digest Recipients Subject: Re: Digest for 
google-web-toolkit@googlegroups.com - 25 Messages in 14 TopicsNote: Original 
message sent as attachment

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

---BeginMessage---
=
Today's Topic Summary
=

Group: google-web-toolkit@googlegroups.com
Url: http://groups.google.com/group/google-web-toolkit/topics

  - Read a file on the server at server startup [3 Updates]
http://groups.google.com/group/google-web-toolkit/t/a178d7a9619ffbeb
  - GWT Compile [1 Update]
http://groups.google.com/group/google-web-toolkit/t/e90968b5d7322c8a
  - RPC vs HTTP requests [1 Update]
http://groups.google.com/group/google-web-toolkit/t/86c3f160b4363cc7
  - Deprecation warning in all RPCs dealing with collections on GWT 2.0 RC2 [1 
Update]
http://groups.google.com/group/google-web-toolkit/t/cbf566637f03496a
  - SuggestBox and DTO [1 Update]
http://groups.google.com/group/google-web-toolkit/t/3f8feae1547ab298
  - Borders on Decorator panel [1 Update]
http://groups.google.com/group/google-web-toolkit/t/21995321405c2253
  - MVP Article... Source Code? [3 Updates]
http://groups.google.com/group/google-web-toolkit/t/dcab092b8ee3c471
  - findResource(DynaTable/html.gwt.xml) -- Resource not found, returning null 
[2 Updates]
http://groups.google.com/group/google-web-toolkit/t/bf18d4b6101f3e4f
  - GWT and Eclipse not working [2 Updates]
http://groups.google.com/group/google-web-toolkit/t/f6e1e1f40cb9cb33
  - GWT maps 2.x version issue [2 Updates]
http://groups.google.com/group/google-web-toolkit/t/f30526e660f484c1
  - Google Web Toolkit [1 Update]
http://groups.google.com/group/google-web-toolkit/t/2e8d7be5069effb4
  - gwt 2.0 plugin crashes firefox 3.5 in OS X 10.4 [1 Update]
http://groups.google.com/group/google-web-toolkit/t/50d912d37c59091e
  - JUnit tests from Eclipse: Refresh problem [1 Update]
http://groups.google.com/group/google-web-toolkit/t/3c1dd7e567901074
  - packing custom gwt libraries [5 Updates]
http://groups.google.com/group/google-web-toolkit/t/c1f1e1b0767d42e1


=
Topic: Read a file on the server at server startup
Url: http://groups.google.com/group/google-web-toolkit/t/a178d7a9619ffbeb
=

-- 1 of 3 --
From: Lothar Kimmeringer j...@kimmeringer.de
Date: Jan 03 02:38PM +0100
Url: http://groups.google.com/group/google-web-toolkit/msg/a4786389b3b5194f

ky schrieb:

 But this does not work when deployed because the file paths are
 somehow different. How can I get the correct file path to access
 config.txt in the deployed version?

getClass().getResourceAsStream(/config.txt);
It returns null if the file can't be found. if you place the
config-file in the same package as the class reading it, you
can leave away the slash.


Regards, Lothar


-- 2 of 3 --
From: ky zane.t...@gmail.com
Date: Jan 03 01:29PM -0800
Url: http://groups.google.com/group/google-web-toolkit/msg/34171dd9da6c5f6c

Just to reiterate, I would like best to find a way to obtain the base
path for the web application that lives inside the war.

@Lothar:

Thanks for the tip; I am calling getClass().getResourceAsStream
(config.txt) from ServiceImpl.java in the server package. It works
when I put config.txt in the server package, but I was hoping to put
it in the war in the same place as the main .html file, on the same
level where /WEB-INF resides. If I try getClass().getResourceAsStream
(/config.txt) however, I get a null. Any idea what I might be doing
wrong?


@Mariyan:

This is a file that the server needs to load that the client knows
nothing about. I am new to java web application development though, so
I am open to suggestions about best practices. I've read about
properties files in XML that reside on the server but I can't find how
to set them up. I suppose I could manually add a property for the
correct path if I can't programatically determine it.



-- 3 of 3 --
From: ky zane.t...@gmail.com
Date: Jan 03 02:16PM -0800
Url: http://groups.google.com/group/google-web-toolkit/msg/e42db321816d1702

The way I'm getting around the issue is by calling

String root = getServletContext().getRealPath(/);

after the server has 

Re: Digest for google-web-toolkit@googlegroups.com - 25 Messages in 14 Topics

2010-08-30 Thread Shawn Brown
 Please stop emailing me. No more. I have so many emails from this

 To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.com.

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