Re: Important videos from GWT Meet-up 2015

2015-06-12 Thread jchimene
Thanks, Jens!

@Brandon: would you please check your slides? The "Copy of ..." isn't 
loading, and I don't see the slides for the "Contributing to Eclipse..." 
presentation.

tia,
jec

On Friday, June 12, 2015 at 7:55:05 AM UTC-7, Jens wrote:
>
>
> To those who've generously uploaded the videos: any possibility of also 
>> uploading the slides? The technical presentations are pretty much useless 
>> w/o the slides.
>>
>
> The Youtube playlist has a link at the top pointing to a Google Drive 
> containing the slides.
>
> -- J.
>

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


Re: Important videos from GWT Meet-up 2015

2015-06-12 Thread jchimene
Thanks for the link .

To those who've generously uploaded the videos: any possibility of also 
uploading the slides? The technical presentations are pretty much useless 
w/o the slides.

TIA,
jec

On Friday, June 12, 2015 at 2:21:49 AM UTC-7, Phineas Gage wrote:
>
> I thought I'd share this link to a series of important videos from the 
> recent GWT Meet-up 2015, which was posted on G+ and in the GWT Contributors 
> group:
>
> https://www.youtube.com/playlist?list=PL1yReUCGwGvrqscLu1EAyYRPrr0ceEHLE
>
> *Summary:*
>
> For anyone who wasn't already aware, there are seismic changes coming for 
> GWT. Basically, gwt-user and everything in it will be gradually mothballed, 
> so widgets, GWT-RPC, UiBinder, CssResource, etc. While we're at it, the GWT 
> compiler will probably go too. If the plan stays as presented, everything 
> is going, sooner or later. It looks as though a much simpler and faster 
> Java to JS transpiler is proposed, maybe under a different project name, 
> with optimizations handled by Closure. I welcome corrections if I've got 
> something wrong here.
>
> *Editorial:*
>
> Having used GWT for a number of years, I think this is a massive but 
> needed change. It looks like a great direction, that maybe could have been 
> taken even sooner. But personally, I now can't see using GWT for new 
> projects until it appears in its new form. We're in a kind of purgatory now 
> where anything you write in GWT may not be easy to maintain, but the new 
> vision is currently just a hope for the future.
>
> As for myself, since I've got a project in its early stages, I'll probably 
> be porting everything I have to JavaScript, until I can count on a stable 
> Java to JS transpiler. At that point, I can decide to move some of the code 
> back to Java, if it's not too painful and the benefits to doing so are 
> clear. At the same time, even with years of Java experience, I have to ask 
> myself, why Java? If it's a better language that compiles to JavaScript 
> that we want, there are many: Dart is coming along, and there are more 
> options than there were before. It's speculation to say what an open source 
> Swift will mean, but the external forces affecting these options can play 
> themselves out while JavaScript will likely continue to be stable for years 
> to come.
>
> So rather than drag it out, I'd like to see these changes happen ASAP. As 
> it's sometimes said, "if you find yourself in a hole, stop digging." I 
> believe that if a stable and fast Java to JS transpiler were released, the 
> community would chip in to help complete JRE emulation or other needed 
> projects, and I'm glad to hear that much of the GWT team is being diverted 
> to compiler work.
>
> Thanks to the GWT team for sharing these plans with the community!
>
>

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


Re: Funny behaviour in CellTable.

2011-08-21 Thread jchimene
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.

On Aug 19, 8: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
>
> On Aug 19, 4:16 pm, Jeffrey Chimene  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 Chimene  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: Can't refresh CellTable

2011-08-09 Thread jchimene
I found this post today. After implementing the suggestion, I found that 
just delaying the rest of the update works as expected, viz:

selectionModel.addSelectionChangeHandler(new 
SelectionChangeEvent.Handler() {
@Override
public void onSelectionChange(SelectionChangeEvent event) {
com.google.gwt.core.client.Scheduler.get().scheduleDeferred(new 
ScheduledCommand() {
@Override
public void execute() {

getUiHandlers().onActivityDelete(selectionModel.getSelectedObject());
}
});
}
});
given
final SingleSelectionModel selectionModel
and
uiHandlers
is from gwt-presenter framework.

-- 
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/-/5hRxjxzr1a8J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
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 implement hashCode() and equals() for a point in 2D-space (x,y) in GWT?

2010-03-31 Thread jchimene


On Mar 31, 9:36 am, Luis Fernando Planella Gonzalez
 wrote:
> > Anyone has a better idea?
>
> public boolean equals(Object obj) {
>     if (!(obj instanceof Point)) {
>         return false;
>     }
>     Point p = (Point) obj;
>     return fX == p.fY && fY == p.fY;
>
> }
>
> public int hashCode() {
>     return (int) (pX + pY);

Does this say that Point(2.0,0.0) and Point(0.0,2.0) have the same
hashCode()?

>
> }

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



��� ���� Download SEX For FREE

2009-09-24 Thread jchimene


الهام شاهين فى الحمام 
http://yalasex.info/%D8%A7%D9%84%D9%87%D8%A7%D9%85-%D8%B4%D8%A7%D9%87%D9%8A%D9%86-%D9%81%D9%89-%D8%A7%D9%84%D8%AD%D9%85%D8%A7%D9%85/

سكس هيفاء وهبى
http://yalasex.info/%D8%B3%D9%83%D8%B3-%D9%87%D9%8A%D9%81%D8%A7%D8%A1-%D9%88%D9%87%D8%A8%D9%89-3/

صور سكس
http://yalasex.info/%D8%B5%D9%88%D8%B1-%D8%B3%D9%83%D8%B3/

افلام سكس عربى
http://yalasex.info/%D8%A7%D9%81%D9%84%D8%A7%D9%85-%D8%B3%D9%83%D8%B3-%D8%B9%D8%B1%D8%A8%D9%89/

افلام سكس اجنبى
http://yalasex.info/%D8%A7%D9%81%D9%84%D8%A7%D9%85-%D8%B3%D9%83%D8%B3-%D8%A7%D8%AC%D9%86%D8%A8%D9%89/

افلام سكس سااااااااااااااخن اوى 
http://yalasex.info/%D8%A7%D9%81%D9%84%D8%A7%D9%85-%D8%B3%D9%83%D8%B3/

افلام محارم
http://yalasex.info/%D8%A7%D9%81%D9%84%D8%A7%D9%85-%D9%85%D8%AD%D8%A7%D8%B1%D9%85/

قصص سكس محارم
http://yalasex.info/%D9%82%D8%B5%D8%B5-%D8%B3%D9%83%D8%B3-%D9%85%D8%AD%D8%A7%D8%B1%D9%85-%D9%85%D8%B5%D9%88%D8%B1%D8%A9/

كيفية الجماع بالصور
http://yalasex.info/%D9%83%D9%8A%D9%81%D9%8A%D8%A9-%D8%A7%D9%84%D8%AC%D9%85%D8%A7%D8%B9-%D8%A8%D8%A7%D9%84%D8%B5%D9%88%D8%B1/

اوضاع جنسية جديده بالصور
http://yalasex.info/%D8%A7%D9%88%D8%B6%D8%A7%D8%B9-%D8%A8%D8%A7%D9%84%D8%B5%D9%88%D8%B1/

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



��� ���� Download SEX For FREE

2009-09-24 Thread jchimene


الهام شاهين فى الحمام 
http://yalasex.info/%D8%A7%D9%84%D9%87%D8%A7%D9%85-%D8%B4%D8%A7%D9%87%D9%8A%D9%86-%D9%81%D9%89-%D8%A7%D9%84%D8%AD%D9%85%D8%A7%D9%85/

سكس هيفاء وهبى
http://yalasex.info/%D8%B3%D9%83%D8%B3-%D9%87%D9%8A%D9%81%D8%A7%D8%A1-%D9%88%D9%87%D8%A8%D9%89-3/

صور سكس
http://yalasex.info/%D8%B5%D9%88%D8%B1-%D8%B3%D9%83%D8%B3/

افلام سكس عربى
http://yalasex.info/%D8%A7%D9%81%D9%84%D8%A7%D9%85-%D8%B3%D9%83%D8%B3-%D8%B9%D8%B1%D8%A8%D9%89/

افلام سكس اجنبى
http://yalasex.info/%D8%A7%D9%81%D9%84%D8%A7%D9%85-%D8%B3%D9%83%D8%B3-%D8%A7%D8%AC%D9%86%D8%A8%D9%89/

افلام سكس سااااااااااااااخن اوى 
http://yalasex.info/%D8%A7%D9%81%D9%84%D8%A7%D9%85-%D8%B3%D9%83%D8%B3/

افلام محارم
http://yalasex.info/%D8%A7%D9%81%D9%84%D8%A7%D9%85-%D9%85%D8%AD%D8%A7%D8%B1%D9%85/

قصص سكس محارم
http://yalasex.info/%D9%82%D8%B5%D8%B5-%D8%B3%D9%83%D8%B3-%D9%85%D8%AD%D8%A7%D8%B1%D9%85-%D9%85%D8%B5%D9%88%D8%B1%D8%A9/

كيفية الجماع بالصور
http://yalasex.info/%D9%83%D9%8A%D9%81%D9%8A%D8%A9-%D8%A7%D9%84%D8%AC%D9%85%D8%A7%D8%B9-%D8%A8%D8%A7%D9%84%D8%B5%D9%88%D8%B1/

اوضاع جنسية جديده بالصور
http://yalasex.info/%D8%A7%D9%88%D8%B6%D8%A7%D8%B9-%D8%A8%D8%A7%D9%84%D8%B5%D9%88%D8%B1/

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



Re: Robust (cross-browser) check for a specific keycode?

2009-04-22 Thread jchimene



On Apr 7, 8:11 am, Isaac Truett  wrote:
> jchimene,
>
> The idea of a suggestBox.showDefaultSuggestions() has been tossed
> around. That would get you the initial list of suggestions that you're
> looking for. Unfortunately, this feature didn't make it into GWT 1.6
> and I don't think there's even an issue open to track it. But if
> you're interested, you can take a look at a "ComboBox" I've been
> playing with in my SimpleGWT project (link below). That might get you
> closer to what you want and some feedback might actually encourage me
> to put time into that library again. ;)
>
> http://code.google.com/p/simple-gwt/
>
> Hope that helps.
>
> Isaac

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



Re: 1.6.4 - duplicate onKeyDown events

2009-04-09 Thread jchimene

Hi,

The similar routine from the 1.5.3 library does not have the duplicate
calls:

com.google.gwt.user.client.ui.Composite.class

  @Override
  public void onBrowserEvent(Event event) {
// Delegate events to the widget.
widget.onBrowserEvent(event);
  }

Was this a bugfix for the 1.6 revision? If so, how do I prevent the
duplicate call to the SuggestBox widget?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: 1.6.4 - duplicate onKeyDown events

2009-04-09 Thread jchimene

OK, so I've isolated it to the following routine inside
com.google.gwt.user.client.ui.Composite.class

@Override
  public void onBrowserEvent(Event event) {
// Fire any handler added to the composite itself.
super.onBrowserEvent(event);

// Delegate events to the widget.
widget.onBrowserEvent(event);
  }


How do I declare my class so that the two onBrowserEvent() calls don't
wind up in the same routine?

On Apr 8, 6:51 pm, jchimene  wrote:
> Hi,
>
> Is anybody else seeing duplicate events with a (now deprecated)
> KeyBoardListener?
>
> I get duplicate events even when I replace the deprecated handler with
> the 1.6 event version. The target/source widget IDs are the same for
> both events.
>
> The problem does not occur using the 1.5.3 library.
>
> This is pretty simple stuff:
> suggestBox.addKeyboardListener(new KeyboardListenerAdapter() {
>         public void onKeyDown(Widget sender, char keyCode, int modifiers) {
>                 if (191 == (int)keyCode) { // question mark
>                         GWT.log("help",null);
>                 }
>         }
>
> });
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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.6.4 - duplicate onKeyDown events

2009-04-08 Thread jchimene

Hi,

Is anybody else seeing duplicate events with a (now deprecated)
KeyBoardListener?

I get duplicate events even when I replace the deprecated handler with
the 1.6 event version. The target/source widget IDs are the same for
both events.

The problem does not occur using the 1.5.3 library.

This is pretty simple stuff:
suggestBox.addKeyboardListener(new KeyboardListenerAdapter() {
public void onKeyDown(Widget sender, char keyCode, int modifiers) {
if (191 == (int)keyCode) { // question mark
GWT.log("help",null);
}
}
});

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



Re: Robust (cross-browser) check for a specific keycode?

2009-04-08 Thread jchimene

Well, I found myself moving to 1.6 sooner rather than later - mostly
to take advantage of the Eclipse plug-in.

Yes, I could have stayed on 1.5 even with the plug-in, but it was a
slow news day.

So, I will take a look at the library

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: Announcing GWT 1.6...and quite a bit more

2009-04-08 Thread jchimene

Thanks folks!

The transition to 1.6 was relatively painless on my latest project. I
can see the WAR structure will be easier to deploy, even though I
don't (now) use server-side Java.

I had not intended to move to 1.6 so soon, but the Eclipse plug-in was
too good to resist.

Maybe I'll see you in May.

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: Robust (cross-browser) check for a specific keycode?

2009-04-07 Thread jchimene



On Apr 7, 8:11 am, Isaac Truett  wrote:
> jchimene,
>
> The idea of a suggestBox.showDefaultSuggestions() has been tossed
> around. That would get you the initial list of suggestions that you're
> looking for. Unfortunately, this feature didn't make it into GWT 1.6
> and I don't think there's even an issue open to track it. But if
> you're interested, you can take a look at a "ComboBox" I've been
> playing with in my SimpleGWT project (link below). That might get you
> closer to what you want and some feedback might actually encourage me
> to put time into that library again. ;)
>
> http://code.google.com/p/simple-gwt/

I get the feeling that there are too many possibilities for a
showDefaultSuggestions() implementation. Also, SuggestBox may not be a
particularly popular widget.

Thanks, I'll take a look at the code.

I notice that simple-gwt is 1.6 based. I want to stay at 1.5 as long
as possible, as I just don't want the 1.5 -> 1.6 learning curve right
now. If I can work ComboBox into the current code, I'll let you know.

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: Robust (cross-browser) check for a specific keycode?

2009-04-07 Thread jchimene



On Apr 6, 8:35 pm, mP  wrote:
> Not always, this particular manifests itself for special keys like the
> cursor keys etc.

To be fair, according to the docs, KeyboardListener does guarantee
cursor movement keys.

> I believe quirksmode has a good table/chart which
> tables keycodes.

Thanks for the pointer. I had completely forgotten about quirksmode.

> Perhaps a good future enhancement might be for GWT to
> normalize the differences so developers can code without being aware
> if these quirks. Unfortunately while most of the time the codes are
> the same across all browsers there will of course in the spirit of
> browser coding be exceptions to the rule often enough to make you
> angry:).

Yeah, the particularly depressing quote:
 "When I discovered that I decided not to risk my sanity by
performing further punctuation character experiments."

Here's the problem I'm trying to solve.  While I like SuggestBox, I
don't like the idea that the user has to perform a treasure hunt. I'd
like to display a list of available suggestions on demand or display
the list in response to an OnFocus event or combining ListBox and
SuggestBox in a custom widget.

I've got a lot of work to do for this particular program. For now,
I'll stick with "?" as a debugging aid.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: why not plain "www" directory in 1.6?

2009-04-02 Thread jchimene



On Apr 2, 11:44 am, "Alex (Google)"  wrote:
> To expand on Isaac's suggestion, everything that used to be in www is
> now in a directory called war.  (I think the name is a bit misleading,
> too.)  You should be able to copy everything from war to your web
> server.  And since you aren't using any Java servlets you can omit
> copying the war/WEB-INF directory.
>
> You don't need to generate the war file if you don't intend to deploy
> it to a servlet container/application server, just run:
>
> ant build
>
> (instead of "ant war") to do everything that Project-compile used to
> do.
>
> -alex

Thanks for this clarification. Please consider adding this to the 1.6
docs for those of us who don't use server-side Java

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: RichTextArea javascript

2009-03-29 Thread jchimene

I can't answer your 2nd question, but the first is usually answered
with the getHTML() method
http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/index.html?overview-summary.html

or maybe I misunderstand what you seek.

On Mar 29, 4:54 am, alberto  wrote:
> Another question:
>
> The object gwt RichTextArea when compiled in javascript in wich Dom
> element is translated??
> What is the html Dom object that corrisponds to gwt RichTextArea??
>
> is it html TextArea??
>
> Thank you
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: extending RichTextArea

2009-03-22 Thread jchimene



On Mar 22, 6:19 am, alberto  wrote:
> Hi
>
> I'm requsted to extend RichTextArea to add it some functionalities.
> I would like to implement the functionality of syntax highlighting.
> For example when i type in the text area some key-words like if,
> for ,while ... the should appear bigger or painted
>
> Could you give any advices on how to procede??

http://www.google.com/search?q=javascript+syntax+highlighting

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



google-web-toolkit@googlegroups.com

2009-02-27 Thread jchimene

Could you post a link to the T&C to which you're referring

On Feb 26, 6:02 am, "james.fitzj...@sansource.co.uk"
 wrote:
> What I want to do is have my website search for a term then find out
> how many pages contained that term.
>
> Its easy enough to do with php and curl but it isnt allowed by the
> google T&C
>
> I dont need a page worth of search results a search bar etc all i need
> is the number of pages that contain the searched term.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: self-destroy image

2009-02-19 Thread jchimene

There really isn't any way to prevent the client side from saving the
images. You can impede some users by intercepting a right-button down
event, thus disabling the "save image" option. Smart users will avoid
this impediment in obvious ways.

You can also create an "image server" URL which accepts authentication
& authorization tokens in POST or GET requests and returns the images
from a private directory. Note that once the image is "in the browser"
it can be copied to local storage.

Not that you are employing DRM, but there exists a congruence of your
request to DRM: if it can be displayed, it can be copied; which is a
fundamental DRM weakness. If you don't trust your users, web-based
image distribution is not appropriate for your application. You will
have to consider other ways of distributing these images than a web
browser.

On Feb 18, 8:45 pm, Charlie  wrote:
> Your suggestion is certainly needed on the one hand as making the
> images no longer viewable on the http server side; but on the other
> hand, how about the images already downloaded or cached in the browser
> (for the cache stuff, maybe last modified date can help) But I guess
> there is really no mechanism to prevent from downloading the images on
> the user side and then they can spread it as they wish. I just wish I
> can have a hard cut-off date on the images and after certain days the
> images themselves can turn into all white pixels or alike.
>
> Thanks for the thought.
>
> On 2月18日, 下午7时05分, jchimene  wrote:
>
> > On Feb 18, 8:44 am, Charlie  wrote:
>
> > > Sorry for this very off-topic question. But is there any mechanism to
> > > set up expiration date on image, and after that date the image won't
> > > be viewable, just like injecting a virus into the image.
>
> > > Or if not image format, is Flash capable of doing that?
>
> > > Thanks for any thoughts,
> > > Charlie
>
> > The way I've done this in the past is to have a Perl script in a cron
> > job that sweeps directories and overwrites content with appropriate
> > "expired" content (.html with such text or .jpg with such content).
> > The issue is that Apache (or whatever your httpd) needs to be trained
> > to return other content after the as-of date. That's a bit much to
> > impose on the httpd server. The replacement text is there to avoid
> > 404s
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: self-destroy image

2009-02-18 Thread jchimene


On Feb 18, 8:44 am, Charlie  wrote:
> Sorry for this very off-topic question. But is there any mechanism to
> set up expiration date on image, and after that date the image won't
> be viewable, just like injecting a virus into the image.
>
> Or if not image format, is Flash capable of doing that?
>
> Thanks for any thoughts,
> Charlie

The way I've done this in the past is to have a Perl script in a cron
job that sweeps directories and overwrites content with appropriate
"expired" content (.html with such text or .jpg with such content).
The issue is that Apache (or whatever your httpd) needs to be trained
to return other content after the as-of date. That's a bit much to
impose on the httpd server. The replacement text is there to avoid
404s

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



Re: Doing AOP, Dojo style

2009-02-09 Thread jchimene

Have you tried searching on "GWT AspectJ"?

On Feb 8, 11:26 am, jarrod  wrote:
> I'm a huge fan of GWT, but I'm also a big fan of development
> methodologies, like Inversion of Control and Aspect-Oriented
> Programming.
>
> IoC and AOP are two concepts I've struggled to work into the GWT
> framework since day one, with AOP being a bit more difficult to
> achieve than IoC, in my opinion.
>
> I recently came across the Dojo Toolkit, which includes, among other
> things, a facility for advising your code, AOP 
> style:http://svn.dojotoolkit.org/src/tags/release-1.2.3/dojox/lang/aspect.js
>
> After digging into it, it appears to take advantage of the dynamic
> nature of the JavaScript language, swapping out implementations of
> advised methods at run time with wrapper functions.
>
> All-in-all, I think this is a rather brilliant approach, and it's
> something I'd love to see supported in GWT. The only problem I see is
> how to go about crossing that dynamic bridge that, at first glance,
> appears to be the kind of thing Java and GWT might not work well with.
>
> Of course, deferring to native code implementation is an option, but
> that seems to defeat the purpose of the compiler's advantages. Any
> suggestions on this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: flex table throwing IndexOutOfBounds Exception in firefox when trying to customize it to fewer columns

2009-01-24 Thread jchimene

Hi,

Compile using "-style DETAILED" switch & debug using FireBug.

On Jan 23, 11:14 am, ruby1  wrote:
> Hi,
>
> In my GWT app, i tried to show different columns for different users
> on a flex table
> so in my eclipse ide  both in web/hosted mode i dont see any errors.
>
> but when i try to access it from localhost , FF3 throws
> IndexOutOfBoundsException, IE6 complains thrown exception not caught,
> and it shows #.cache.html
>
> Do you guys have any idea...
>
> iam using gwt1.5.2
>
> Thank you
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Problem with file upload

2009-01-20 Thread jchimene

OK.

seturl may not be the best way to do this. In my case, I wound up
removing the DOM node and recreating it with a new Image widget. I
could not get seturl to work reliably cross-browser. Something like
 <-- container widget
  <-- the victim (deleted and recreated on image change


Control layout w/ CSS

Cheers,
jec

On Jan 20, 9:57 am, Daniele  wrote:
> Hi.
> Sorry but I'm not understand what you mean :)
> You ask  to me if I use an ImageBundle object for retrieve images??
> Answer is no.
> Some answer for compile time structure.
> I use a Image object and use setUrl(String url) method for showing images.
> URL are obtained through a servlet.
>
> Daniele.
>
> 2009/1/20, jchimene :
>
>
>
> > Hi Daniele,
>
> > Are you trying to use these images as components of an image bundle or
> > some sort of compile-time structure?
>
> > If so, don't do it that way.
>
> > Cheers,
> > jec
>
> > On Jan 20, 1:59 am, Daniele  wrote:
> >> Image saving on folder and String[] photo are ok! I write array on a
> >> file when click on widget album after uploading and image name it's
> >> present.
> >> In development shell, appears this message when I open a album widget
> >> after uploading of image:
>
> >> Resource not found wpimg/album/Sport/image1.jpg. Could a file missing
> >> from the public path or a  tag misconfigured???
>
> >> Obviously when I reload application, this message disappear.
>
> >> Daniele
>
> >> 2009/1/19, Daniele :
>
> >> > I try!
>
> >> > 2009/1/18, gregor :
>
> >> >> so if you place a debug point here:
>
> >> >>       private static final long serialVersionUID = 403L;
>
> >> >>         public String[] getImageName(String category) {
>
> >> >>                 File photo = new File("src/com/webphotogallery/public/
> >> >> wpgimg/album/"
> >> >> + category);
> >> >>                 //File photo = new File("wpgimg/album/" + category);
>
> >> >>                 String[] photoList = photo.list();
>
> >> >>                 return photoList;  <<<<<<<< DEBUG
> >> >>         }
>
> >> >> Does the new image appear in the photoList array?
>
> >> >> On Jan 18, 3:32 pm, Daniele  wrote:
> >> >>> File are saved into a folder that I choose.
> >> >>> I look into a folder when application make a upload call.
> >> >>> But image doesn't appear when open a album widget...
>
> >> >>> 2009/1/14, Daniele :
>
> >> >>> > I try some.
> >> >>> > Thanks.
>
> >> >>> > Daniele.
>
> >> >>> > 2009/1/14, gregor :
>
> >> >>> >> There's nothing obviously wrong with this, and the fact that the
> >> >>> >> uploaded photo appears when you restart server supports that. Next
> >> >>> >> obvious thing to eliminate may be to check exactly where on your
> >> >>> >> disk
> >> >>> >> the uploaded photo is actually written to. Perhaps it is not where
> >> >>> >> you
> >> >>> >> expect, and what is happening is that it is being copied over to
> >> >>> >> the
> >> >>> >> "right" location as part of your deployment/hosted mode running
> >> >>> >> procedure when you restart server. If you upload a photo and then
> >> >>> >> check where it goes while the app is still running, you should be
> >> >>> >> able
> >> >>> >> to confirm that one way or another.
>
> >> >>> >> On Jan 14, 1:52 pm, Daniele  wrote:
> >> >>> >>> Code of upload
>
> >> >>> >>> [CODE]
> >> >>> >>> package com.webphotogallery.server;
>
> >> >>> >>> import java.io.File;
> >> >>> >>> import java.io.IOException;
> >> >>> >>> import java.io.PrintWriter;
> >> >>> >>> import java.util.Iterator;
> >> >>> >>> import java.util.List;
>
> >> >>> >>> import javax.servlet.ServletException;
> >> >>> >>> import javax.servlet.http.HttpServlet;
> >> >>> >>> import javax.servlet.http.HttpServl

Re: Image can not be seen when using ImageBundle

2009-01-20 Thread jchimene

Hi Cheng,

I think it has to do with the mechanism used to create image bundles
based on an MD5 hash of the content.

So the collision isn't surprising.

Why do you want to have a duplicate image? GWT has a mechanism that
transforms an image in an image bundle to a GWT Image widget. Have you
investigated that path?

Cheers,
jec

On Jan 19, 12:30 am, cheng  wrote:
> I now got the answer. I am not allowed to specify the same pic more
> than once in a ImageBundle. As long as the content of the two pics are
> the same, you can't put them together inside a ImageBundle. My case is
> as follows:
> public interface MethodDescriptor extends ImageBundle {
>   @Resource("newOperation.gif")//newOperation.gif is put under the
> same package.
>   AbstractImagePrototype getNewOperation();
>   @Resource("copyOfNewOperation.gif")
>   AbstractImagePrototype getCopyOfNewOperation();
>
> }
>
> I am not sure if this is a bug?
>
> On Jan 19, 11:50 am, cheng  wrote:
>
> > public interface MethodDescriptor extends ImageBundle {
> >   @Resource("newOperation.gif")//newOperation.gif is put under the
> > same package.
> >   AbstractImagePrototype getNewOperation();}
>
> > methodDescriptor = GWT.create(MethodDescriptor.class);
> > PushButton newOperation = new PushButton(getMethodDescriptor
> > ().getNewOperation().createImage());
>
> > i am using gwt-windows-1.5.3. There is no image shown on the
> > newOperation button in hosted mode. It's been very strange, as the
> > source code is quite simple here. Is there anything i have missed out?
>
> > Any idea and suggestion will be appreciated.
>
> > Many thanks,
> > Cheng Wei
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Problem with file upload

2009-01-20 Thread jchimene

Hi Daniele,

Are you trying to use these images as components of an image bundle or
some sort of compile-time structure?

If so, don't do it that way.

Cheers,
jec

On Jan 20, 1:59 am, Daniele  wrote:
> Image saving on folder and String[] photo are ok! I write array on a
> file when click on widget album after uploading and image name it's
> present.
> In development shell, appears this message when I open a album widget
> after uploading of image:
>
> Resource not found wpimg/album/Sport/image1.jpg. Could a file missing
> from the public path or a  tag misconfigured???
>
> Obviously when I reload application, this message disappear.
>
> Daniele
>
> 2009/1/19, Daniele :
>
> > I try!
>
> > 2009/1/18, gregor :
>
> >> so if you place a debug point here:
>
> >>       private static final long serialVersionUID = 403L;
>
> >>         public String[] getImageName(String category) {
>
> >>                 File photo = new File("src/com/webphotogallery/public/
> >> wpgimg/album/"
> >> + category);
> >>                 //File photo = new File("wpgimg/album/" + category);
>
> >>                 String[] photoList = photo.list();
>
> >>                 return photoList;   DEBUG
> >>         }
>
> >> Does the new image appear in the photoList array?
>
> >> On Jan 18, 3:32 pm, Daniele  wrote:
> >>> File are saved into a folder that I choose.
> >>> I look into a folder when application make a upload call.
> >>> But image doesn't appear when open a album widget...
>
> >>> 2009/1/14, Daniele :
>
> >>> > I try some.
> >>> > Thanks.
>
> >>> > Daniele.
>
> >>> > 2009/1/14, gregor :
>
> >>> >> There's nothing obviously wrong with this, and the fact that the
> >>> >> uploaded photo appears when you restart server supports that. Next
> >>> >> obvious thing to eliminate may be to check exactly where on your disk
> >>> >> the uploaded photo is actually written to. Perhaps it is not where you
> >>> >> expect, and what is happening is that it is being copied over to the
> >>> >> "right" location as part of your deployment/hosted mode running
> >>> >> procedure when you restart server. If you upload a photo and then
> >>> >> check where it goes while the app is still running, you should be able
> >>> >> to confirm that one way or another.
>
> >>> >> On Jan 14, 1:52 pm, Daniele  wrote:
> >>> >>> Code of upload
>
> >>> >>> [CODE]
> >>> >>> package com.webphotogallery.server;
>
> >>> >>> import java.io.File;
> >>> >>> import java.io.IOException;
> >>> >>> import java.io.PrintWriter;
> >>> >>> import java.util.Iterator;
> >>> >>> import java.util.List;
>
> >>> >>> import javax.servlet.ServletException;
> >>> >>> import javax.servlet.http.HttpServlet;
> >>> >>> import javax.servlet.http.HttpServletRequest;
> >>> >>> import javax.servlet.http.HttpServletResponse;
>
> >>> >>> import org.apache.commons.fileupload.FileItem;
> >>> >>> import org.apache.commons.fileupload.FileItemFactory;
> >>> >>> import org.apache.commons.fileupload.FileUploadException;
> >>> >>> import org.apache.commons.fileupload.disk.DiskFileItemFactory;
> >>> >>> import org.apache.commons.fileupload.servlet.FileCleanerCleanup;
> >>> >>> import org.apache.commons.fileupload.servlet.ServletFileUpload;
> >>> >>> import org.apache.commons.io.FileCleaningTracker;
>
> >>> >>> public class UploadPhoto extends HttpServlet{
>
> >>> >>>         /*
> >>> >>>          *
> >>> >>>          */
>
> >>> >>>         private static final long serialVersionUID = 144332L;
>
> >>> >>>         public void service(HttpServletRequest
> >>> >>> request,HttpServletResponse
> >>> >>> response)
> >>> >>>                         throws ServletException, IOException {
>
> >>> >>>                 FileItemFactory factory = new DiskFileItemFactory();
> >>> >>>                 ServletFileUpload upload = new
> >>> >>> ServletFileUpload(factory);
> >>> >>>                 String UPLOAD_DIRECTORY =
> >>> >>> "./src/com/webphotogallery/public/wpgimg/album/";
> >>> >>>                 //String UPLOAD_DIRECTORY = "wpgimg/album/";
>
> >>> >>>                 List items = null;
>
> >>> >>>                 try {
> >>> >>>                                 items = upload.parseRequest(request);
> >>> >>>                 }
> >>> >>>                         catch (FileUploadException e) {
> >>> >>>                                 e.printStackTrace();
> >>> >>>                 }
>
> >>> >>>                         Iterator iter = items.iterator();
> >>> >>>                         while(iter.hasNext())
> >>> >>>                         {
> >>> >>>                                 FileItem it = (FileItem)iter.next();
>
> >>> >>>                                 if(it.isFormField())
>
> >>> >>> UPLOAD_DIRECTORY+=it.getString()
> >>> >>> +
> >>> >>> "/";
>
> >>> >>>                                 else
> >>> >>>                                 {
> >>> >>>                                         File uploadedFile = new
> >>> >>> File(UPLOAD_DIRECTORY + it.getName());
>
> >>> >>>                                       

Re: create and save xml into the server with RequestBuilder

2009-01-15 Thread jchimene

Hi Max,

Yes, you do need something on the server to receive the file. From the
looks of what you've written so far, you're not using Java RPC. So,
you need some sort of CGI handler routine on "myServer"

Cheers,
jec

On Jan 14, 4:36 pm, Max  wrote:
> My goal is to save an xml string to a file in server (either appending
> an existing file or create a file).
>
> String url="http://myServer/myFolder/file.xml";; // place where i want
> to create xml into my server
>
> String postData="some xml string";
> RequestBuilder builder=new RequestBuilder(RequestBuilder.POST,url);
> try {
>          Request response = builder
>                .sendRequest(postData, new RequestCallback() {
>
>                         public void onError(Request request,
>                                             Throwable exception) {}
>
>                         public void onResponseReceived(Request
> request,
>                                                        Response
> response) {}
>                 });
>        } catch (RequestException e) {}
>
> When i run it, it doesn't show any error. I thought file.xml would be
> created at "http://myServer/myFolder/file.xml";; but nothing is there
> when i check it.Do i need server code to handle it? I don't know much
> about java servelets. It would be nice if i can do with gwt methods.
> Any suggestions?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Client did not send nnn bytes as expected

2008-12-18 Thread jchimene

Hi Amit,

A few final observations:

o You should be seeing SYN packets that will track the IP packet
segments, particularly when the client sends 2 TCP
packets; which become three IP packets on the wire. Look for
retransmission requests, which would be SYN-ACK packets where the
sequence number doesn't increment (IOW NAKs)

o Compare router configurations in your lab and in the field,
particularly if this is a service provided using a virtual private
network

o Look for indications of mismanaged TCP flow control (window size)
and congestion control

Cheers,
jec

On Dec 18, 12:52 am, Amit Kasher  wrote:
> I really appreciate you attempts to help.
> In reply to your last post, jec:
> * We can't reproduce this in the lab...
> * We see a combination of FIN, FIN-ACK and RST.
> * We haven't seen any suspicious traceroutes... nothing
> differentiating suffering clients from non-suffering client.
> * We don't do anything "special" - these are normal GWT service call
> requests from browser to server.
> * We tried that, as well as different MTU sizes... no clue
> * This occurs without any SSL involved, and regardless what browser
> being used (IE, FF).
>
> Unfortunately we gave up on the persistent attempt to get to the root
> of that issue. We now just assume that it's some low level network
> issue (level 1-2) that causes some of the packets not to arrive, in an
> unexplained combination with a higher level network issue (level 3-6)
> that causes the packet's data to split at exactly 80%.
>
> In order to deal with this situation, we implemented a high level
> (GWT) configurable retry mechanism, with timeout support. This
> resolves the symptoms, and in effect solves the problem.
>
> We don't mind contributing this mechanism (both client and server
> code), if someone is interested or believes GWT needs this kind of
> mechanism.
>
> Thanks again,
> Amit
>
> On Dec 5, 8:09 pm, jchimene  wrote:
>
> > Hi Amit,
>
> > You don't make this easy, do you...
>
> > o     Just to be clear: goodness happens when the client sends 2 TCP
> > packets; which become three IP packets on the wire; which are
> > reassembled by the server into 2 TCP packets.
> >        Badness happens when the client sends 2 TCP packets; which
> > become three IP packets on the wire; which are reassembled into one
> > complete TCP packet and 1 incomplete TCP packet.
> >       Can you reproduce this in your lab? I'm guessing "no", otherwise
> > you would not have deployed the app...
>
> > o     Do you see a NAK at the client after the dropped fragment?
>
> > o     Pls. try traceroute from your lab and from the client box. What
> > are the differences?
>
> > o     It's now appearing to be an IP issue. The fact that the
> > fragmentation doesn't occur on the larger packet is interesting.
>
> > o     The two separate TCP packets leads to an assumption that you can
> > identify requests from the same client box at the server. IOW, you
> > have an
> >        application-level protocol that lets you reassemble the two
> > packets into a single request. I'm sure this is the case, but such a
> > design isn't explicitly stated in your
> >        message. Your server application never sees the 2 -> 3 split,
> > since the normal case is that your server app only sees 2 packets from
> > the client. I'm reluctant to say this, but
> >        part of this process may require proof that the protocol design
> > is resilient to network transmission errors.
>
> > o     I'd start playing around w/ different packet sizes and
> > transmission rates (via ping) to see if you can trip any triggers. It
> > may be a combination of buffering/congestion
> >        between the client and the server.
> >        Did you try ping w/ different packet sizes? I realize that you
> > have different servers. Does the connection between the client and
> > server occur over the public switched network
> >        or does it use a private circuit?
>
> > o     There have been posts in this thread w/r/t/ SSL and IE. Are they
> > relevant?
>
> > Cheers,
> > jec
>
> > On Dec 5, 1:21 am, Amit Kasher  wrote:
>
> > > Hi,
> > > We have spent the past 2 days working on this, and have some new
> > > findings.
>
> > > We have made contact to one of our customers who is encountering this
> > > issue more frequently than others, and he granted us access to his
> > > computer (using logmein). We installed WireShark on his computer, as
> > > well as on the server. We managed to reproduced th

Re: Dollar sign in filename

2008-12-17 Thread jchimene

Hi,

As I indicated earlier, it's not clear to me that these files are
automatically created by the compiler (although the file in question
may have been generated initially by i18nCreator)

> The file name & contents are part of the rich text toolbar implementation in 
> the GWT showcase.
> I don't think the file name is automatically generated by the compiler, as 
> the contents are
> human-created per the Constants support in GWT.

The file in question is a .properties file. The Showcase source for
the RichTextToolbar sample declares the class "Strings" which is
automagically transformed into a reference to the properties file
"RichTextToolbar$Strings". It looks like the i18nCreator toolkit
script is somehow implicated in this. I'm simply trying to find a
reference to this naming feature.

On Dec 17, 8:15 am, rakesh wagh  wrote:
> those files are automatically generated by the compiler. They are
> typically inner classes. What is your concern by the way?
>
> On Dec 16, 5:55 pm, jchimene  wrote:
>
> > Hi,
>
> > Would someone please post a link to the documentation for the
> > filenaming convention that allows for names like: "RichTextToolbar
> > $Strings.properties"
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



BREAK tag from RichTextArea.getHTML()

2008-12-16 Thread jchimene

Hi,

I'm running the results of RichTextArea.getHTML() through xsltproc.
It's complaining about unclosed tags. The culprit seems to be the
break tag:


some
text



doesn't parse (parser error : Opening and ending tag mismatch: br line
xxx and condition)

When I convert to:


some
text



happiness ensues.

Any thoughts?



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



Re: Dollar sign in filename

2008-12-16 Thread jchimene

The file name & contents are part of the rich text toolbar
implementation in the GWT showcase.
I don't think the file name is automatically generated by the
compiler, as the contents are human created per the Constants support
in GWT.

On Dec 16, 5:03 pm, Jason Essington  wrote:
> Generally things like Class1$Class2$Class3.class are due to inner  
> classes in the java source, and those files are generated and named by  
> the compiler.
>
> Dunno about properties files using that format.
>
> -jason
>
> On Dec 16, 2008, at 4:55 PM, jchimene wrote:
>
>
>
> > Hi,
>
> > Would someone please post a link to the documentation for the
> > filenaming convention that allows for names like: "RichTextToolbar
> > $Strings.properties"
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Dollar sign in filename

2008-12-16 Thread jchimene

Hi,

Would someone please post a link to the documentation for the
filenaming convention that allows for names like: "RichTextToolbar
$Strings.properties"
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to get GWT shell/tomcat to access perl cgi

2008-12-13 Thread jchimene

Hi,

I'll describe how I do it. Feel free to ask more questions. My
development environment is Debian.

The GWT web server is an embedded version of Tomcat. AFAIK, it can't
run Perl.

So, you'll have to provide your own web server for testing the script.

Where you go from here depends on whether or not you're using an IDE,
in that your IDE will assist in the compile/link and will provide
directories that are involved in the following steps:
1. You'll want to import your Perl script(s) into the IDE;
2. You run a compile/link step using the built-in server. You can't
invoke your external server until you've created the Javascript. This
step creates the Javascript.
3. These scripts will be copied to an output directory as part of the
GWT compile/link step along with other static files (entry HTML file,
images, CSS files, &c)
4. You copy these scripts from either the IDE internal directory or
from the output directory to your /var/www directory;
5. You tell GWT to use your server. This is a modification to the
compile script. My command line arguments are as follows:
-out www  # step three directory (mandatory)
-style detailed # makes Javascript debugging easier (optional)
-noserver # tell GWT to use an external server (mandatory)
-port 4000 # tell GWT which server port to use (optional, although
you'll have to configure your server to use the GWT default)
equine/Equine.html # URL (mandatory)
6. Test your Java code using the  GWT shell. The Java code will invoke
the external server which will then invoke your Perl script. The
external server will not run the Javascript.
7. Perform steps two, three and four then test your code using a stand-
alone browser and the URL (don't forget the port) from step 5. This
will test the Perl script and also the Javascript. If you used the -
style switch with the "detailed" or "pretty" arguements, you can
easily set breakpoints &c using Firebug or whatever Javascript
debugger IE uses.

See also 
http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=FAQ_HostedModeNoServer
for more information.

Step one occurs only once
Step two occurs at least once
Step three occurs automatically as part of a compile/link step
Step four only occurs each time you change the CGI script
Step five occurs only once

This isn't trivial, but it's quite doable. One annoying gotcha (in the
sense that I keep forgetting) is that after a GWT upgrade, you have to
re-run step two. For this reason, I keep two build scripts: one that
invokes the built-in server, and one that invokes the external server.

On Dec 11, 11:51 am, sssmack  wrote:
> I imagine the cgi should be put into the www area/directory but I
> don't know how to set this up.
> Please give me a link that will help me or try and describe how to do
> this.
>
> 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: Problem updating image URL

2008-12-08 Thread jchimene

Hi,

I've had mixed success using seturl; in fact I don't think it works at
all w/ IE6.

Instead, I deleted the existing DOM node and recreated it with a new
image. I first noticed this in a simple Fisheye widget. The basic
structure is . To replace the  on a
mouseover & mouseout, I wound up deleting the  and  tags,
loading the new image, and re-attaching the  and  tags to
the parent  tag. The  is an extension of Widget class, and the
 is an extension of the UIObject class.

I do notice that you're using setHTML. Have you tried setting the
"src" attribute of the image via DOM.setElementAttribute
(element,attribute,value), or the shorthand call DOM.setImgSrc?

On Dec 4, 8:46 am, "David Hoffer" <[EMAIL PROTECTED]> wrote:
> So far, I am running this in hosted mode only.  We are new to GWT and
> are trying to learn how to get something working and are having some
> trouble such as this issue.
>
> Setting the image via URL seems to be problematic.  In summary this is
> what I observe:
>
> 1. If I get a static image from ImageBundle it always works.
> 2. If I have a stand-alone Image control and call setURL with a valid
> URL it will sometimes work.  Updates do not always get seen in the UI.
> 3. If the Image control is part of a larger panel and I need to render
> the overall panel's HTML on a widget, using a valid URL never works.
> That is, if I set an Image's URL then do something like the following,
> the image is not displayed in the UI.
>
> private HorizontalPanel theTreeItem = new HorizontalPanel();
> private Image rightImage;
>
> constructor()
> {
> theTreeItem.add(this.rightImage);
>
> }
>
> // Note I have also tried to just set the URL of the existing Image
> instead of replacing it, neither is rendered in the UI.
> public void setRightImageURL(Image rightImage)
>     {
>         this.rightImage = rightImage;
>         setHTML();
>     }
>
> private void setHTML()
>     {
>         SimplePanel simplePanel = new SimplePanel();
>         simplePanel.add(theTreeItem);
>         String test = DOM.getInnerHTML(simplePanel.getElement());
>         this.setHTML(test);

This may or may not force a change to the image URL. Try
DOM.setElementAttribute() or DOM.setImgSrc().

>     }
>
> Why doesn't this work?  

I can't say for sure. You may have to try another route to swap such
dynamic images.

> In my case I have dynamic images so I cannot
> always use ImageBundles as that only works for static images.
>
> -Dave
>
> On Thu, Dec 4, 2008 at 8:32 AM,jchimene<[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > Does this fail in a browser agnostic way?
>
> > On Dec 3, 5:57 am, "David Hoffer" <[EMAIL PROTECTED]> wrote:
> >> Why do you think final may be a problem?  I don't change the image
> >> instance only set the URL on the already existing image.
>
> >> Does GWT not like final?
>
> >> -Dave
>
> >> On Tue, Dec 2, 2008 at 11:23 PM, mon3y <[EMAIL PROTECTED]> wrote:
>
> >> > Might it have something to do with the word "final" when declaring
> >> > image?
>
> >> > On Dec 2, 9:23 pm, dhoffer <[EMAIL PROTECTED]> wrote:
> >> >> I have a custom button that has a couple of images as well as text.
> >> >> My code is like this:
>
> >> >> public class SplitButton extends Button
> >> >> {
> >> >>     private IGWTImageBundle gwtImageBundle;
> >> >>     private final DockPanel dockPanel = new DockPanel();
> >> >>     private MenuBar menuBar;
> >> >>     private final Image image = new Image();
> >> >>     private final Label textLabel = new Label();
> >> >>     private PopupPanel popupPanel;
>
> >> >>     public SplitButton(IGWTImageBundle gwtImageBundle)
> >> >>     {
> >> >>         this(null, null, gwtImageBundle);
> >> >>     }
>
> >> >>     public SplitButton(String imageURL, String text, IGWTImageBundle
> >> >> gwtImageBundle)
> >> >>     {
> >> >>         super();
>
> >> >>         this.gwtImageBundle = gwtImageBundle;
>
> >> >>         if (imageURL != null)
> >> >>         {
> >> >>             setImage(imageURL);
> >> >>         }
> >> >>         if (text != null)
> >> >>         {
> >> >>             setText(text);
> >> >>         }
>
> >> >>         initDockPanel();
> >> >>     }
>

Re: Client did not send nnn bytes as expected

2008-12-05 Thread jchimene

Hi Amit,

You don't make this easy, do you...

o Just to be clear: goodness happens when the client sends 2 TCP
packets; which become three IP packets on the wire; which are
reassembled by the server into 2 TCP packets.
   Badness happens when the client sends 2 TCP packets; which
become three IP packets on the wire; which are reassembled into one
complete TCP packet and 1 incomplete TCP packet.
  Can you reproduce this in your lab? I'm guessing "no", otherwise
you would not have deployed the app...

o Do you see a NAK at the client after the dropped fragment?

o Pls. try traceroute from your lab and from the client box. What
are the differences?

o It's now appearing to be an IP issue. The fact that the
fragmentation doesn't occur on the larger packet is interesting.

o The two separate TCP packets leads to an assumption that you can
identify requests from the same client box at the server. IOW, you
have an
   application-level protocol that lets you reassemble the two
packets into a single request. I'm sure this is the case, but such a
design isn't explicitly stated in your
   message. Your server application never sees the 2 -> 3 split,
since the normal case is that your server app only sees 2 packets from
the client. I'm reluctant to say this, but
   part of this process may require proof that the protocol design
is resilient to network transmission errors.

o I'd start playing around w/ different packet sizes and
transmission rates (via ping) to see if you can trip any triggers. It
may be a combination of buffering/congestion
   between the client and the server.
   Did you try ping w/ different packet sizes? I realize that you
have different servers. Does the connection between the client and
server occur over the public switched network
   or does it use a private circuit?

o There have been posts in this thread w/r/t/ SSL and IE. Are they
relevant?

Cheers,
jec

On Dec 5, 1:21 am, Amit Kasher <[EMAIL PROTECTED]> wrote:
> Hi,
> We have spent the past 2 days working on this, and have some new
> findings.
>
> We have made contact to one of our customers who is encountering this
> issue more frequently than others, and he granted us access to his
> computer (using logmein). We installed WireShark on his computer, as
> well as on the server. We managed to reproduced the problem with both
> sniffers in action, and analyze the exact correlating TCP segments
> according to their sequence and ack numbers. Here are the results.
>
> This is what happens in the valid state:
> The client sends 2 TCP segments for a GWT service calls, which are
> supposed to be reassembled to a single PDU which is the entire single
> HTTP request. The first segment always contains the HTTP request
> header, and the second TCP segment always contains the HTTP request
> body. For instance, we see that the client sends a first segment of
> size 969 bytes, and a second segment of size 454 bytes. In the server
> we see that these 2 segments become 3 segments. The first is still 969
> bytes and contains the HTTP request header; the second is 363 bytes
> (80% of the original second segment), and the third is the remaining
> 91 bytes (20% of the original 454 bytes).
>
> In the invalid state, when the problem occurs, the third segment
> simply does not arrive in the server. It seems that something in the
> way has split the second 454 bytes segment to 2 segments, and only
> sent the first one to the server.
>
> 1. If this is something in the client's machine, how come we don't see
> it in the sniffer? (we even tried removing all firewall/antivirus
> software, reinstalling the network card driver)
> 2. If this is not something in the client's machine, how come some
> clients encounter this much more than others, that never encounter
> this?
>
> Can it be some kind of network equipment that some of our clients
> (reminder - different ISPs) go through, and others don't?
>
> Unfortunately, this new info still leaves us clueless...
>
> On Dec 3, 5:16 pm, jchimene <[EMAIL PROTECTED]> wrote:
>
> > On Dec 2, 11:20 pm, Amit Kasher <[EMAIL PROTECTED]> wrote:
>
> > > Hi and thanks again for your responses.
>
> > No Prob.
>
> > If this "opportunity for excellence" is as pervasive as you suspect,
> > installing software on a client's computer should be a non-starter
> > from the perspective that installing it on *any* computer *anywhere on
> > the planet* should reliably reproduce the issue. You say that tcpdump
> > shows the packet truncation, so I'm not sure I understand the
> > requirement to install something on a client machine. My goal in these
> > past responses has been to abs

Re: Problem updating image URL

2008-12-04 Thread jchimene

Hi,

Does this fail in a browser agnostic way?

On Dec 3, 5:57 am, "David Hoffer" <[EMAIL PROTECTED]> wrote:
> Why do you think final may be a problem?  I don't change the image
> instance only set the URL on the already existing image.
>
> Does GWT not like final?
>
> -Dave
>
> On Tue, Dec 2, 2008 at 11:23 PM, mon3y <[EMAIL PROTECTED]> wrote:
>
> > Might it have something to do with the word "final" when declaring
> > image?
>
> > On Dec 2, 9:23 pm, dhoffer <[EMAIL PROTECTED]> wrote:
> >> I have a custom button that has a couple of images as well as text.
> >> My code is like this:
>
> >> public class SplitButton extends Button
> >> {
> >>     private IGWTImageBundle gwtImageBundle;
> >>     private final DockPanel dockPanel = new DockPanel();
> >>     private MenuBar menuBar;
> >>     private final Image image = new Image();
> >>     private final Label textLabel = new Label();
> >>     private PopupPanel popupPanel;
>
> >>     public SplitButton(IGWTImageBundle gwtImageBundle)
> >>     {
> >>         this(null, null, gwtImageBundle);
> >>     }
>
> >>     public SplitButton(String imageURL, String text, IGWTImageBundle
> >> gwtImageBundle)
> >>     {
> >>         super();
>
> >>         this.gwtImageBundle = gwtImageBundle;
>
> >>         if (imageURL != null)
> >>         {
> >>             setImage(imageURL);
> >>         }
> >>         if (text != null)
> >>         {
> >>             setText(text);
> >>         }
>
> >>         initDockPanel();
> >>     }
>
> >>     private void initDockPanel()
> >>     {
> >>         dockPanel.add(image, DockPanel.WEST);
> >>         dockPanel.add(textLabel, DockPanel.CENTER);
> >>         dockPanel.add(gwtImageBundle.smallDownArrowIcon().createImage
> >> (), DockPanel.EAST);
>
> >>         setHTML();
> >>     }
>
> >>     @Override
> >>     public void setText(String text)
> >>     {
> >>         textLabel.setText(text);
>
> >>         setHTML();
> >>     }
>
> >>     public void setImage(String imageURL)
> >>     {
> >>         image.setUrl(imageURL);
>
> >>         setHTML();
> >>     }
>
> >>     private void setHTML()
> >>     {
> >>         SimplePanel sp = new SimplePanel();
> >>         sp.add(dockPanel);
> >>         String test = DOM.getInnerHTML(sp.getElement());
> >>         this.setHTML(test);
> >>     }
>
> >> }
>
> >> The problem is calls to setImage(String imageURL) do not get updated
> >> in the UI.  That is, although the URL set is valid the image is not
> >> shown in the button.  The static image is shown in the UI however.
>
> >> What am I doing wrong to set the image?
>
> >> -Dave
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Client did not send nnn bytes as expected

2008-12-03 Thread jchimene

On Dec 2, 11:20 pm, Amit Kasher <[EMAIL PROTECTED]> wrote:
> Hi and thanks again for your responses.

No Prob.

If this "opportunity for excellence" is as pervasive as you suspect,
installing software on a client's computer should be a non-starter
from the perspective that installing it on *any* computer *anywhere on
the planet* should reliably reproduce the issue. You say that tcpdump
shows the packet truncation, so I'm not sure I understand the
requirement to install something on a client machine. My goal in these
past responses has been to absolutely prove that it's the
serialization code (by factoring out the serialization code using
ping), not something peculiar to the transport or session layers.

Are you using the public switched network to provide client/server
connectivity? If not, nothing you've said so far would eliminate your
network transport service.

I find it hard to believe it's GWT, as the cargo size is so small as
to be insignificant, and others would have reported this issue by now.
I have to admit that I'm not a user of Java serialization, so there
may have been reports of this serialization issues of which I'm
blissfully unaware. From everything you're saying, it really looks
like the problem is in user-space. It may be a certain code path that
leads to the same serialization invocation logic. I'd start pulling
this code apart, instrumenting the hell out of it and running it
through JUnit or some such automated testing environment. Again, I
understand you've probably done this...

I'm wondering if there's a specific byte-pattern that's causing this.
Have you tried reordering the structure members? Also, have you
eliminated buffer corruption issues? Since it's cross-browser, what
does the -pretty flag + Firebug reveal? Esp. when profiling the code?
(Although I must admit that you've probably tried all that type of
debugging by now).

Bueno Suerte,
jec

>
> A few more subtle observations and insights:
> 1. It's probably not the server. There are several reasons that lead
> us to believe that the server is not the cause of this issue: (a) We
> switched hosting providers. (b) These providers reside in completely
> different geographical locations - countries. (c) We have always been
> using JBoss on CentOS, but this issue occurs both when we work with
> Apache as a front end using mod_jk to tomcat, as well as when
> eliminating this tier and having clients go directly to tomcat - using
> it as an HTTP server. (d) tcpdump sniffer explicitly shows that the
> server receives ALWAYS EXACTLY 80% of the request payload. Unless this
> is something even lower level in that machine (the VPS software used -
> virtuozzo, the network card/driver, etc.), these observations pretty
> much provides an alibi for the server... I think we'd better focus on
> other places.
> 2. There are indications that this is not inside the browser as well:
> (a) It happens in several GWT versions. (b) It happens "to" all
> browsers, which provides a strong clue, since this code is completely
> different from browser to browser - GWT uses MsXMLHTTP activeX in IE,
> while using completely other objects in other browsers. Since this is
> the underlying mechanism used to perform RPC, it seems that if it
> happens for more than one of them, low chances that this is the cause.
> Still it seems that this MUST be the GWT/client code, since these
> clients, to whom this issue occurs much more often, don't have
> problems in any other websites (we managed to talk to several of
> them).
> One thing that comes to mind is perhaps the GWT serialization code? I
> don't know...
>
> Therefore, currently, aside from the possibility that there's a bug in
> the GWT serialization code, there's also the possibility that it's
> something in the network, even though these clients are from various
> ISPs, and geographical locations. Yes, I notice the dead end as
> well...
>
> These observations somewhat reduce the anticipated benefit (let alone
> the feasibility...) of several of your (MUCH APPRECIATED, THOUGH)
> suggestions:
> 1. ping from the lab
> 2. perl HTTP server
>
> Despite that, we ARE happy about any suggestion and willing to put the
> required effort, so we'll try to make progress in these direction.
>
> Our situation now is that we assume that the data arrives corrupted to
> the server, and we should see how this data comes out of the client.
> Therefore we will also try to install a sniffer in a client computer
> in which this occurs (though we have been trying to do that for quite
> a long time now).
>
> On Dec 2, 10:29 pm, jchimene <[EMAIL PROTECTED]> wrote:
>
> > Hi Amit,
>
> > One other thing:
>
>

Re: Client did not send nnn bytes as expected

2008-12-02 Thread jchimene

Hi Amit,

One other thing:

I'm getting the impression that you also have a custom server. If it's
an identical configuration across all server instances, than you also
have to prove that it's not the server. Again, I'd code a simple HTTP
server in Perl (because there's no problem so intractable that it
can't be made worse with a Perl application) and use it to test
against your application.

Cheers,
jec

On Dec 2, 9:11 am, Amit Kasher <[EMAIL PROTECTED]> wrote:
> Hi,
> Thanks for your reply. Answers are inline.
>
> On Dec 2, 5:50 pm, jchimene <[EMAIL PROTECTED]> wrote:> Hi,
>
> > A few questions:
>
> > o Are all packets sent to the server the same size?
>
> No, they are not.
>
> > o What is that size?
>
> This depends on the service call - somewhere between 150 and 2000
> bytes.
> I will mention again that by using a sniffer (tcpdump), it seems that
> EVERY time this issue occurs, the actual packets the server receives
> are ALWAYS EXACTLY 80% of what it should have received. This, again,
> was very encouraging to find as a clue, but unfortunately led me
> nowhere.
>
> > o Have you checked for other types of congestion?
>
> Congestion? Unfortunately, I don't have any control over the client's
> environment since this is an internet application and I can't
> reproduce it.
>
> > o Is this entirely TCP/IP? Have you checked maxrss?
>
> maxrss? I'm not sure I understood the relevance... TCP/IP is obviously
> used, it is the underlying protocol of HTTP...
>
> > o Have you enabled logging on intermediate nodes to see if there are
> > congestion issues?
>
> I wish I could... I don't have any control over any node before the
> server. It is a CentOS VPS hosted internet application. I will state
> that this occurred in several hosting providers, in several countries
> and geographical locations.
>
> > o Is this related to a specific time of day (although it probably
> > happens between 10:00 and 14:00...)
>
> I didn't find any correlation between the time of day and the
> occurrence of this. Obviously, this is normalized to the usage load,
> as you implied.
>
> > o Do you have a world-wide net? If so, does the problem travel across
> > time zones?
>
> My users are not from around the world, but as I stated - this issue
> occurred when using hosting providers around the world.
>
>
>
> > Cheers,
> > jec
>
> > On Dec 2, 2:13 am, Amit Kasher <[EMAIL PROTECTED]> wrote:
>
> > > Hi,
> > > Does anyone has any new insights about this issue? We've been
> > > investigating for over a year(!), and we seem to not be the only
> > > ones...
>
> > >http://tinyurl.com/5rqfp5
>
> > > 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Client did not send nnn bytes as expected

2008-12-02 Thread jchimene



On Dec 2, 9:11 am, Amit Kasher <[EMAIL PROTECTED]> wrote:
> Hi,
> Thanks for your reply. Answers are inline.
>
> On Dec 2, 5:50 pm, jchimene <[EMAIL PROTECTED]> wrote:> Hi,
>
> > A few questions:
>
> > o Are all packets sent to the server the same size?
>
> No, they are not.
>
> > o What is that size?
>
> This depends on the service call - somewhere between 150 and 2000
> bytes.
> I will mention again that by using a sniffer (tcpdump), it seems that
> EVERY time this issue occurs, the actual packets the server receives
> are ALWAYS EXACTLY 80% of what it should have received. This, again,
> was very encouraging to find as a clue, but unfortunately led me
> nowhere.

At this point, I'd write a ping script and start generating packets of
a certain size. Hammer the server to see if you can reproduce on
demand. If you can reproduce w/ ping, it's not a browser/server issue.

> > o Have you checked for other types of congestion?
>
> Congestion? Unfortunately, I don't have any control over the client's
> environment since this is an internet application and I can't
> reproduce it.

I don't mean the client congestion, I mean congestion en route, i.e.
the cloud between the client and the server. Your later answers seem
to eliminate The Cloud.

> > o Is this entirely TCP/IP? Have you checked maxrss?
>
> maxrss? I'm not sure I understood the relevance... TCP/IP is obviously
> used, it is the underlying protocol of HTTP...

My bad. I meant MTU. But that doesn't sound like it's relevant.

> > o Have you enabled logging on intermediate nodes to see if there are
> > congestion issues?
>
> I wish I could... I don't have any control over any node before the
> server. It is a CentOS VPS hosted internet application. I will state
> that this occurred in several hosting providers, in several countries
> and geographical locations.

So it's sounding more and more like the app. If it's several hosting
providers in several locations, that's pretty much A Clue.

> > o Is this related to a specific time of day (although it probably
> > happens between 10:00 and 14:00...)
>
> I didn't find any correlation between the time of day and the
> occurrence of this. Obviously, this is normalized to the usage load,
> as you implied.
>
> > o Do you have a world-wide net? If so, does the problem travel across
> > time zones?
>
> My users are not from around the world, but as I stated - this issue
> occurred when using hosting providers around the world.
>

OK, so we're down to the app. I'd try constructing a reproducer using
ping with specific packet sizes. Record the output stats and run them
through a formatting routine that will make it easier to check for
problems. The goal here is to check end-to-end transmission w/o using
application layer code. If this transmission failure happens every
day, you should see something happen within 24 hours.

If nothing untoward happens, it's (probably) the app. In that case,
I'd grab a copy of Perl (or whatever you want) to write a client-side
app that faithfully simulates your app's transmission profile. Point
it at one of your servers and stress test that server/client circuit.

Send PCs to several locations if you have to, but get something in the
field that can reproduce this independently of your app and over which
you have complete control. If that's not realistic, you'll need a
"lab" environment, i.e. a machine that isn't a developer box, can be
wiped clean and conveniently set to a known state.

Bueno Suerte,
jec

>
> > On Dec 2, 2:13 am, Amit Kasher <[EMAIL PROTECTED]> wrote:
>
> > > Hi,
> > > Does anyone has any new insights about this issue? We've been
> > > investigating for over a year(!), and we seem to not be the only
> > > ones...
>
> > >http://tinyurl.com/5rqfp5
>
> > > 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: fundamental design question on font size

2008-12-02 Thread jchimene

Hi,

GWT can only do so much w/r/t/ these kinds of design issues. Do you
use fixed font metrics (pt, px) or do you use %? The latter will
handle different font sizes, but it does require that you avoid
"complex" screen layouts.  Getting font metrics isn't hard, but if you
want to get "fancy" you have to be quite aware of widget layout.

It may also be that GWT is wrong tool to use, and you need more
control over the display (i.e. Flash)

On Dec 2, 6:17 am, mryilauer <[EMAIL PROTECTED]> wrote:
> What am I doing wrong? I am building widgets for use throughout the
> organization, and when I try to generalize everything, it always seems
> like I always need access to the font metrics so I can adjust
> positions of widgets based on the user's font size.
>
> I have read the posts about font metrics, but I am not asking how to
> do this as much as I am asking:
>
> if getting the font metrics is hard to do, what should I change in my
> approach to design so that I don't need them?
>
> Apparently, gwt itself must be getting along without this if an easy
> way to get it isn't built in, so there must be something wrong in my
> approach that always leads me to the place where I think I need to
> know the 'm' size of the current font.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Client did not send nnn bytes as expected

2008-12-02 Thread jchimene

Hi,

A few questions:

o Are all packets sent to the server the same size?
o What is that size?
o Have you checked for other types of congestion?
o Is this entirely TCP/IP? Have you checked maxrss?
o Have you enabled logging on intermediate nodes to see if there are
congestion issues?
o Is this related to a specific time of day (although it probably
happens between 10:00 and 14:00...)
o Do you have a world-wide net? If so, does the problem travel across
time zones?

Cheers,
jec

On Dec 2, 2:13 am, Amit Kasher <[EMAIL PROTECTED]> wrote:
> Hi,
> Does anyone has any new insights about this issue? We've been
> investigating for over a year(!), and we seem to not be the only
> ones...
>
> http://tinyurl.com/5rqfp5
>
> 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: IE7 Error in cache.html's Javascript

2008-11-30 Thread jchimene



On Nov 30, 12:39 am, KevinF <[EMAIL PROTECTED]> wrote:
> Ok, I found the issue... seems it was a programming error on my part.
> Not waiting for all Lists to come back from the server before
> processing it in the client. I wish there was some easy way to handle
> this kind of thing. Is there some way to make some requests
> synchronous?

No.

> It seems the reason this occurred was due to asynchronous request/processing.

Pls. post a *small* code sample. Preferrably the code that handles the
request callback. If this is your initial attempt at GWT callback
design, perhaps there's an issue that the list will spot.

It's also likely that you'll want to only load an initial list, and
load other lists in the background. How likely is it that the user
will need to see all the contents of all the lists at once?
IncrementalCommand is helpful for cases like this. There are also
other list management widgets that will do this type of processing for
you. Search the list for "bulk"

FWIW, I've also seen this issue w/ IE 6 & 7. My particular case is an
app that retrieves several large images before setting up a Fisheye
widget. The widget works correctly under Firefox & Safari, but fails
miserably in IE. Turns out that the load order will have to change.

>
> On Nov 29, 2:45 am, KevinF <[EMAIL PROTECTED]> wrote:
>
> > Hi everyone,
>
> >   I'm running into a really weird problem with IE7 when I view my site
> > that was created using GWT. The client makes several calls to the
> > server to retrieve Lists of information. This problem does not occur
> > in Firefox 3 nor in Safari. The error I'm getting is
>
> > Line: 2818
> > Char: 3
> > Error: Exception thrown and not caught
> > Code: 0
> > URL: http:///997866B17568BBEABF330CD77D093CE1.cache.html
>
> >   From what I gather, it seems this file is the my application logic
> > tailored for IE. When I look into the file at line 2818, I find:
>
> > 2817: function java_util_AbstractList_indexOutOfBounds__II(index, size)
> > {
> > 2818:  throw java_lang_IndexOutOfBoundsException_
> > $IndexOutOfBoundsException__Ljava_lang_IndexOutOfBoundsException_2Ljava_lang_String_2
> > (new java_lang_IndexOutOfBoundsException(), $intern_130 + index +
> > $intern_131 + size);
> > 2819: }
>
> >   I tried to find where the callers of this method were and there were
> > 3 of them:
> > (1) function java_util_ArrayList_
> > $add__Ljava_util_ArrayList_2ILjava_lang_Object_2(this$static, index,
> > o)
> > (2) function java_util_LinkedList_
> > $listIterator__Ljava_util_LinkedList_2I(this$static, index)
> > (3) function java_util_AbstractList_checkIndex__II(index, size)
>
> >   I'm guessing this means somewhere my application is trying to access
> > an index in a List that's not within bounds of it. The puzzling thing
> > is, how come this only happens on SOME IE7 browsers and does not occur
> > at all in Firefox or Safari.
>
> >   Any ideas or fixes would be much appreciated.
>
> > Kevin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: setting Label widgets in each cell of 1000row x 17col grid is too slow..

2008-11-27 Thread jchimene

Another option may be to populate some immediate visual count (say 25)
and do the rest as a deferred command

On Nov 26, 11:41 am, "Jim Colton" <[EMAIL PROTECTED]> wrote:
> ..taking about 25 seconds on a 1.7ghz laptop with firefox.
>
> It that length of time expected or may there be something wrong with two
> nested loops for row, col and setWidget on the grid?
>
> 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Read XML after Uploading

2008-11-18 Thread jchimene
Hi,

Are you trying to read/parse the file on the client side? If so,
that's a non-starter in any GWT generated code.

On Nov 17, 10:39 pm, Madz <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a problem in reading upload XML file from UI using fileupload
> widget. I implement the XML parsing in FormPanel onSubmitComplete
> method but it didn't find the file. How can I read an xml file coming
> from user and upload in public folder then parse the content? So far
> this is all I got.
>
> uploadForm.addFormHandler(new FormHandler() {
>
>                         public void onSubmit(FormSubmitEvent event) {
>                                 String xmlFile = fileUpload.getFilename();
>                                 //Getting the filename in the upload
>                                 if (fileUpload.getFilename().endsWith("xml")) 
> {
>
>                                         int slash = xmlFile.lastIndexOf("/");
>                                         if(slash == -1){
>                                                 slash = 
> xmlFile.lastIndexOf("\\");
>                                         }
>
>                                         if(slash != -1){
>                                                 xmlFile = 
> xmlFile.substring(slash + 1);
>                                         }
>                                 }
>                                 Window.alert(xmlFile);
>
>                                 if (fileUpload.getFilename().length() == 0) {
>                                         Window.alert("You did not specify a 
> filename!" );
>
>                                 }
>                         }
>
>                         public void onSubmitComplete(FormSubmitCompleteEvent 
> event) {
>
>                                 GWT.log(event.getResults(), null);
>
>                                 String xmlFile = fileUpload.getFilename();
>                                 //Getting the filename in the upload
>                                 if (fileUpload.getFilename().endsWith("xml")) 
> {
>
>                                         int slash = xmlFile.lastIndexOf("/");
>                                         if(slash == -1){
>                                                 slash = 
> xmlFile.lastIndexOf("\\");
>                                         }
>
>                                         if(slash != -1){
>                                                 xmlFile = 
> xmlFile.substring(slash + 1);
>                                         }
>
>                                 }
>
>                                 setParser(new XMLParseUtil(xmlFile)); //parse 
> the file
>
>                         }
>                 });
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Several RequestBuilder objects simultaneously in-flight

2008-09-22 Thread jchimene

Hi,

Re: GWT 1.5:

I have an application that will have several RequestBuilder objects
simultaneously in-flight. Are there any links to implementation notes
or this usually a roll-your-own situation?

Specifically, should I create a new RB object for each request or re-
use existing RB objects? I don't see an RB.dispose() method, so I'm
guessing the preferred implementation is to use RB.setRequestData()
rather than calling new() for each request.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



GWTCanvas suitable for outlining ?

2008-09-17 Thread jchimene

Hi,

Before I commit down this path, I'd like a sanity check:

One of the outstanding design issues when using  and  is
the inability to twitch image with an associated MAP using Javascript/
CSS. One workaround is to split the image and attach the parts to 
or  elements. To me, this is non-optimal.

At first glance, it looks like the GWTCanvas will provide tools that
can implement focus/blur operations.  IOW, I'd like to outline the
POLY shape described in an  element using GWTCanvas. Is this the
case?

Pls. note, I'm not looking for an implementation, just a sanity check.
Although I wouldn't look askance at any existing code.

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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: JSNI method '@com.google.gwt.dom.client.OptionElement::setLabel(Ljava/lang/String;)'

2008-09-16 Thread jchimene

Thanks, I'll file a bug.

On Sep 15, 9:33 am, jchimene <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm seeing the following message:
> [WARN] JSNI method
> '[EMAIL PROTECTED]::setLabel(Ljava/lang/
> String;)' returned a value of type string but was declared void; it
> should not have returned a value at all
>
> Is this a known issue or should I file a bug?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



[WARN] JSNI method '@com.google.gwt.dom.client.OptionElement::setLabel(Ljava/lang/String;)'

2008-09-15 Thread jchimene

Hi,

I'm seeing the following message:
[WARN] JSNI method
'@com.google.gwt.dom.client.OptionElement::setLabel(Ljava/lang/
String;)' returned a value of type string but was declared void; it
should not have returned a value at all

Is this a known issue or should I file a bug?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Dealing with "/n" character when reading xml

2008-09-05 Thread jchimene

Part of the answer depends on the intended use of the text. If it's
simply to be spewed upon the screen as html, you might try the
following, which is wrapped in DeferredCommand().execute(). The
xxxContext variables are to maintain context across DeferredCommand co-
routine calls:

   docQuestionnaire = XMLParser.parse(xmlData);

sections = 
docQuestionnaire.getElementsByTagName("section"); //
possibly "gradingcriterion"?

sectionContext = 0; // increment as
appropriate
currentSection = (Element) 
sections.item(sectionContext);

currentItems = currentSection.hasChildNodes() ?
currentSection.getChildNodes() : null;
questionContext = 0; // increment as
appropriate

String s = "";
Widget iw = null;
Widget ihp = null;
for (int i = 0; i <
currentItems.item(questionContext).getChildNodes().getLength(); i++) {
if (ELEMENT_NODE ==
currentItems.item(questionContext).getChildNodes().item(i).getNodeType())
{
if (((Element)
currentItems.item(questionContext).getChildNodes().item(i)).getTagName().toLowerCase().matches("info"))
{
NodeList nl = ((Element)
currentItems.item(questionContext)).getChildNodes().item(i).getChildNodes();
iw = new HTML(nl.toString(), 
true);
String id = ((Element)
currentItems.item(questionContext).getChildNodes().item(i)).hasAttribute("id")
? ((Element)
currentItems.item(questionContext).getChildNodes().item(i)).getAttribute("id")
: "html" + 
Integer.toString(Random.nextInt());

iw.getElement().setAttribute("id", id);
ihp = new HorizontalPanel();
ihp.add(iw);
}
else {
s += ((Element)
currentItems.item(questionContext)).getChildNodes().item(i).toString();
}
}
else {
s += ((Element)
currentItems.item(questionContext)).getChildNodes().item(i).toString();
}
}

-30-

On Sep 4, 10:49 pm, perry <[EMAIL PROTECTED]> wrote:
> thinking about following xml fragment:
>
> 
>       Subject/discipline content & knowledge
>       knowledge
>  
>
> when I use getChildNodes().getLength(), the result I get is 5 instead
> of 2.  I re-edit the above xml fragment as a single line:
>
> Subject/discipline content &knowledge label>knowledge
>
> The result I get is 2.
>
> So it is obvious that "/n" is considered as a child node by GWT. So is
> there way to walk around this problem?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Eclipse trying to find JSNI source

2008-09-03 Thread jchimene

Hi,

I'm not sure why Eclipse is trying to find my JSNI source when
debugging in hosted mode. Is there any way to tell Eclipse not to look
for source of native methods?

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



Re: GWT and Eclipse problems

2008-09-03 Thread jchimene



On Sep 2, 1:11 pm, ALF <[EMAIL PROTECTED]> wrote:
> I followed your steps and ran the shell from the command line.  That
> worked perfectly.  I still have a problem running it in Eclipse
> however.  It would be nice for it to simply work without tweaking in
> Eclipse but if I have to run it in hosted mode I will do that for now.

Ahh... A Clue.

Did you copy the files from the -out directory to where your server
can find them?

Hosted mode doesn't use JavaScript. When you wrote "... get an IE
popup stating that it failed to load module...", had I been paying
attention, that statement should have triggered the above question. I
think that even on Windows (I use Gnu/Linux), your use of IE relies on
a custom httpd and a custom directory.

If this is the case, you'll want to review the steps to copy the
compiled files + other static files to a directory where your custom
httpd can find them. Pls. see
http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=FAQ_HostedModeNoServer
for more info.

-30-

>
> The reason I haven't upgraded to Ganymede at my shop is because I'm
> working on some things that I don't want to break at the moment and
> nobody else has upgraded to Ganymede here yet.  I set it up at home to
> play with it though.
>
> Thanks for your help!
>
> On Sep 2, 11:23 am, jchimene <[EMAIL PROTECTED]> wrote:
>
> > On Sep 2, 9:51 am, ALF <[EMAIL PROTECTED]> wrote:
>
> > > Am I the only one having problems with running GWT in Eclipse?
>
> > Yes :)
>
> > -- Sorry, I couldn't resist.
>
> > >  I have
> > > gone through the step-by-step walk-through (projectCreator,
> > > applicationCreator, and Eclipse import) for the StockWatcher sample
> > > but it simply will not run within Eclipse.
>
> > Did the step of running the StockWatcher-shell work? Pls. remove
> > existing StockWatcher files, both in the filesystem and in Eclipse,
> > recreate the filesystem files via projectCreator and
> > applicationCreator, then run the StockWatcher-shell. No import yet.
> > Get a feel for the two project-specific shell scripts, ensure hosted
> > mode works w/ your setup, tweak the Java source outside an IDE for a
> > few steps of the tutorial, then import into Eclipse when you have a
> > feel for what GWT's doing.
>
> > > C:\dev\workspace\StockWatcher>projectCreator -eclipse StockWatcher -
> > > out StockWatcher
> > > C:\dev\workspace\StockWatcher>applicationCreator -eclipse StockWatcher
> > > -out StockWatcher
> > > com.google.gwt.sample.stockwatcher.client.StockWatcher
>
> > These look fine.
>
> > > When I run StockWatcher I get classpath problems (it can't find the
> > > gwt.xml file).  I noticed that the package names begin with 'src'
> > > rather than 'com'.  I refactored the package names and the classpath
> > > problem to the gwt.xml file went away but a new problem surfaced.  Now
> > > I get an IE popup stating that it failed to load module
> > > com.google.gwt.sample.stockwatcher.StockWatcher.  The DevShell says
> > > it's unable to find type '...StockWatcher'.
>
> > Too much, too soon.You shouldn't have to do any refactoring.
>
> > I've found that using applicationCreator and projectCreator is my
> > preferred method of creating new GWT projects using Eclipse. There is
> > Cypal, but I think it hides too much.
>
> > > Am I missing a step somewhere?  
>
> > It's hard to tell right now. Have you searched this group on Eclipse
> > +StockWatcher? There are several threads that you might want to
> > explore.
>
> > > I have tried this on Windows Vista
> > > running Ganymede and on Windows XP running Europa with the same
> > > problems.
>
> > Is there a reason you're not using Ganymede? I doubt there's a
> > difference at your current level of experimenting w/ GWT, but you
> > might want to consider upgrading.
>
> > -30-
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT and Eclipse problems

2008-09-02 Thread jchimene



On Sep 2, 9:51 am, ALF <[EMAIL PROTECTED]> wrote:
> Am I the only one having problems with running GWT in Eclipse?

Yes :)

-- Sorry, I couldn't resist.

>  I have
> gone through the step-by-step walk-through (projectCreator,
> applicationCreator, and Eclipse import) for the StockWatcher sample
> but it simply will not run within Eclipse.

Did the step of running the StockWatcher-shell work? Pls. remove
existing StockWatcher files, both in the filesystem and in Eclipse,
recreate the filesystem files via projectCreator and
applicationCreator, then run the StockWatcher-shell. No import yet.
Get a feel for the two project-specific shell scripts, ensure hosted
mode works w/ your setup, tweak the Java source outside an IDE for a
few steps of the tutorial, then import into Eclipse when you have a
feel for what GWT's doing.

>
> C:\dev\workspace\StockWatcher>projectCreator -eclipse StockWatcher -
> out StockWatcher
> C:\dev\workspace\StockWatcher>applicationCreator -eclipse StockWatcher
> -out StockWatcher
> com.google.gwt.sample.stockwatcher.client.StockWatcher

These look fine.
>
> When I run StockWatcher I get classpath problems (it can't find the
> gwt.xml file).  I noticed that the package names begin with 'src'
> rather than 'com'.  I refactored the package names and the classpath
> problem to the gwt.xml file went away but a new problem surfaced.  Now
> I get an IE popup stating that it failed to load module
> com.google.gwt.sample.stockwatcher.StockWatcher.  The DevShell says
> it's unable to find type '...StockWatcher'.

Too much, too soon.You shouldn't have to do any refactoring.

I've found that using applicationCreator and projectCreator is my
preferred method of creating new GWT projects using Eclipse. There is
Cypal, but I think it hides too much.

> Am I missing a step somewhere?  

It's hard to tell right now. Have you searched this group on Eclipse
+StockWatcher? There are several threads that you might want to
explore.

> I have tried this on Windows Vista
> running Ganymede and on Windows XP running Europa with the same
> problems.

Is there a reason you're not using Ganymede? I doubt there's a
difference at your current level of experimenting w/ GWT, but you
might want to consider upgrading.

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



Re: how to send a dom document to a server

2008-08-27 Thread jchimene

Hi,

To actually send the document:

try {
rb.send();
}
catch (Exception e) {
throw new Exception(e);
}

Again,  the above assumes a CGI environment, not Java RPC. You'll need
machinery to handle the asynchronously handle the POST response. See
the GWT docs.

-30-

On Aug 27, 1:30 pm, jchimene <[EMAIL PROTECTED]> wrote:
> Hi,
>
> The following assumes regular CGI usage. If you're using Java RPC,
> you'll use a different technique.
>
> First, you're going to parse the source document via
> XMParser.parse().
> Document docQuestionnaire = XMLParser.parse(xmlData);
>
> You may have more machinery around the above call whose purpose is to
> put an XML string into a variable. See the examples in the GWT docs.
>
> I don't address modifying the source document in this post.
>
> To send the result, simply use the modified .parse() result:
>                 RequestBuilder rb = new RequestBuilder(RequestBuilder.POST,
> URL.encode(theHost));
>                 rb.setRequestData(docQuestionnaire.toString());
>                 rb.setHeader("Content-Length",
> String.valueOf(docQuestionnaire.toString().length()));
> Again, you will have more machinery around the above code.
>
> -30-
>
> On Aug 27, 8:26 am, max_gtbd <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> > I'm writing a web app to modify an xml document.
> > the document is first loaded from a server.
> > then the modified document has to be sent back to the server.
>
> > I can't find a way to send the document back.
>
> > thx if you can help.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: how to send a dom document to a server

2008-08-27 Thread jchimene

Hi,

The following assumes regular CGI usage. If you're using Java RPC,
you'll use a different technique.

First, you're going to parse the source document via
XMParser.parse().
Document docQuestionnaire = XMLParser.parse(xmlData);

You may have more machinery around the above call whose purpose is to
put an XML string into a variable. See the examples in the GWT docs.

I don't address modifying the source document in this post.

To send the result, simply use the modified .parse() result:
RequestBuilder rb = new RequestBuilder(RequestBuilder.POST,
URL.encode(theHost));
rb.setRequestData(docQuestionnaire.toString());
rb.setHeader("Content-Length",
String.valueOf(docQuestionnaire.toString().length()));
Again, you will have more machinery around the above code.

-30-

On Aug 27, 8:26 am, max_gtbd <[EMAIL PROTECTED]> wrote:
> Hi,
> I'm writing a web app to modify an xml document.
> the document is first loaded from a server.
> then the modified document has to be sent back to the server.
>
> I can't find a way to send the document back.
>
> thx if you can help.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Query : Synchronous calls in GWT

2008-08-27 Thread jchimene

Synchronous calls could make sense when one builds a standalone
application with a browser. Synchronous calls in such use cases could
be a useful tool. For example, pre-AJAX database lookups had to
preserve state in addition to returning query results.  The resulting
calls either had to fail or complete in a finite time determined
entirely by the browser environment, not user code. Either way, the
application stopped while the query was in flight. In my experience,
such code is quite difficult to maintain.

Your application design may be such that data entry in conjunction
with an in-flight database lookup doesn't make sense. Nevertheless,
it's entirely possible that the reliability and maintainability of
your application will improve by designing it using asynchronous
techniques.

The "A" in AJAX is there for a reason. There's not much point in
trying to design around it.
There are other constraints, which are designed to handle the halting
problem (?), to such synchronous remote calls as you request.

On Aug 27, 1:55 am, ping2ravi <[EMAIL PROTECTED]> wrote:
> Jason,
> I think any framework should give all options to developer to design
> his own way, and poor design and good design are all relative terms,
> so cant do generalization of that.
> But thanks for sharing your thoughts.
>
> cheers,
> Ravi  :)
>
> On Aug 26, 7:14 pm, Jason Essington <[EMAIL PROTECTED]> wrote:
>
> > nope, again, this use case shows a poor decision of using a  
> > synchronous request. In fact I'm not aware of a single good use of a  
> > synchronous request in a browser.
>
> > I do this very thing using Async RPCs. I start by opening a modal  
> > dialog. the user can type his credentials into the "login" dialog, and  
> > submit them.
> > The submit button is disabled as soon as it is pressed, but the dialog  
> > is not dismissed preventing any clicking anywhere else in the  
> > application.
> > Once the RPC returns indicating that the user has successfully  
> > authenticated, the dialog is dismissed, and any original RPC (that  
> > triggered the session timeout notification) is resent.
>
> > There are glass panels Modal Dialogs and other techniques that prevent  
> > the user from poking about in the application that do not lock up the  
> > browser, and any of those techniques should be used long before  
> > attempting to hack in a Synchronous request.
>
> > There is no case where you as a programmer should cause your user's UI  
> > to completely lock up. It is fine to disable bits, but synchronous  
> > requests don't play nice, they completely lock up the browser, in some  
> > cases, not allowing the user to switch tabs, or browse other pages, or  
> > even close the browser. Users don't like that, and as a result, will  
> > equate the behavior with poor programming on your part. So, just don't  
> > do it.
>
> > -jason
>
> > On Aug 26, 2008, at 11:53 AM,ping2raviwrote:
>
> > > yes i do have have workaround for this, but was just wondering if i
> > > can use any of GWT feature.
> > > Also i read in GWT FAQ, GWT do not support Synchronous calls and in
> > > future they are not planning to have it(they have some theory). So i
> > > guess need to implement my own workaround.
> > >http://code.google.com/support/bin/answer.py?answer=55195&topic=10210
>
> > > But guys just a question of thought, Don't you think having a
> > > synchronous call feature will be added advantage.
>
> > > Lets say u build a application and u have something like if user
> > > logged out of application because of idle session then when user try
> > > to do anything on application. instead of forwarding him to some user
> > > login page , we just popup a login/password panel thing. And usually
> > > on click we will call the login on server and close the dialogue
> > > box(againw e can keep it open and in onSuccess function we can close
> > > it, but for me not a good idea)
> > > And as the call is asynchrnous so once we call the Login on server,
> > > user is allowed to do other click in application(before he actually
> > > login to server) and he will again see that u r not logged in.
> > > Its just a small example.
>
> > > But i think having synchronous call will be good thing.
>
> > > Thanks for reading
> > > Ravi.
>
> > > On Aug 26, 5:03 pm, "Pavel Byles" <[EMAIL PROTECTED]> wrote:
> > >> can't you just do:
> > >> doTaskCallBack {
> > >>   onResponse(...) {
> > >>     userService.doSynchronousTask(...);
> > >>   }
>
> > >> }
>
> > >> Wouldn't that just give the synchronous effect?
>
> > >> On Mon, Aug 25, 2008 at 6:24 AM,ping2ravi<[EMAIL PROTECTED]>  
> > >> wrote:
>
> > >>> Hi All,
>
> > >>> Does any one know how to make Synchronous calls using GWT.
> > >>> Currently i am using GWT to build services, creating files like
>
> > >>> com.app.client.MyService.java
> > >>> //One function in this interface
> > >>> doMyTask(ParamTpye myparams) throws ClientException;
>
> > >>> com.app.client.MyServiceAsync.java
> > >>> //One function in this interf