Re: CellList -- is prefilled sizing possible?

2010-11-19 Thread Johan Rydberg

On 11/18/10 10:32 PM, John LaBanca wrote:
The scrollbars are a separate widget called ShowMorePagerPanel. 
 CellList doesn't have scrollbars by default.

http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/ShowMorePagerPanel.java

If you look at the constructor, you'll see that we add a ScrollHandler 
that modifies the visible Range when the user scrolls.  If you want to 
implement an infinite scrollbar, you would need to do something 
similar, which means you need a way to map scroll position to row 
indexes.  It can be pretty tricky to get it right, but you can 
probably find a lot of examples online.

Is it even possible (today) to do this for CellTable ?

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



Re: CellList -- is prefilled sizing possible?

2010-11-19 Thread Johan Rydberg

On 11/19/10 7:31 PM, John LaBanca wrote:
CellTable/CellList and the pager (RangeChangeHandler) were designed to 
support infinite scrolling.  We created the version in Showcase as a 
proof of concept.  It helps to think about the scrolling mechanism 
(Pager) and the CellTable separately.  The CellTable can display a 
visible range, which is a subset of the total range.  The Pager 
determines which range is show.  The trick with infinite scrolling is 
to correlate the vertical position of the scrollbar (which doesn't 
have to be the native scrollbar) with a range.
Yeah, but I was more thinking about the current impl of CellTable, which 
is doing this with
a standard table/ element.  To me it seems impossible to add a 
scroll-table around just

the content of a CellTable.

It would be nice if CellTable could have been split into 
AbstractCellTable and CellTable, where
CellTable uses table-elements and AbstractCellTable really don't care 
how stuff is

rendered.


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



Re: CellTable multiline header, header custom style

2010-11-10 Thread Johan Rydberg

On 11/10/10 7:35 PM, John LaBanca wrote:
On Wed, Nov 10, 2010 at 6:33 AM, István Szoboszlai mrsz...@gmail.com 
mailto:mrsz...@gmail.com wrote:


Hello,

I would need 2 functions in the new GWT 2.1 CellTable.

1. Multiple tr-f for table header.

We plan to start work on a more feature filled version of CellTable. 
 We can include multi-row headers.



Are there any plans on doing proper infinite scrolling?

(Proper as in the scrollbar size reflect the _whole_ dataset,
not just what's been loaded so far like in the CellList example
in the ShowCase.)

I've pondered to implement it myself, but some of the helper
classes are package-private, and also the requirement of a
pager pretty much works against the concept of infinite scrolling.

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



Re: server push

2010-11-09 Thread Johan Rydberg
One thing I would find interesting (and future safe) would be to port 
the following piece of code to GWT;


  http://weblog.bocoup.com/javascript-eventsource-now-available-in-firefox

And then use deferred binding to use real EventSource on browsers that 
support it.



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



Re: [gwt-contrib] First-pass for adding HTML5's Canvas. (issue1082801)

2010-11-07 Thread Johan Rydberg



This is not the final version yet (among other issues, the location is
up for debate) but I would like to give people a chance to comment on it
at this stage.

Is there a reason not to put it in com.google.gwt.user.canvas ?

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


RequestFactory; nested POJO:s.

2010-10-18 Thread Johan Rydberg

We're using more of a document-style model than a JPA-style
relationmodel.

I'm wondering if it is possible to somehow put have nested proxies
that does not have an id field.  In other words; proxies that
are not real entities of their own.


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



Re: RequestFactory + Rest/JSON?

2010-10-18 Thread Johan Rydberg

Have you guys looked at http://github.com/chirino/resty-gwt ?

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



RequestFactory and non-Java (non-GWT) backends

2010-10-15 Thread Johan Rydberg

I have yet to find any documentation on the on-wire protocol
that RequestFactory uses.  Are there any, or does it have to
be reverse-engineered?

Also, does GWT _require_ the service methods actually be
available in the entity class?

RequestFactory being based on JSON makes it a better fit for
non-Java server-side code.

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



Re: [gwt-contrib] Re: RPC vs DeRPC in 2.1

2010-09-22 Thread Johan Rydberg

Hi,

AFAICT, RequestFactory (as it will be in 2.1, as it should be in M4)
seems to be what you're looking for:
  - fast: pure JSON (will use native JSON if available, falling back
to json2.js otherwise)
  - no stack dependency: your entity proxies are JavaScriptObjects
directly parsed from/stringified to JSON (there currently are
wrappers, but they are created on the fly)
  - dispatch methods outside the servlet: this is part of
RequestFactory's design

   
I can't really say that I know everything about RequestFactory, but it 
seems to be that it is purpose built
for people doing JPA-stuff on the server-side.  Which maybe many are, 
but not all of us.




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


[gwt-contrib] Re: Let MenuItem implement HasEnabled (issue846801)

2010-09-20 Thread johan . rydberg

Ping!

On 2010/09/07 16:49:52, rjrjr wrote:

Please!



On Tue, Sep 7, 2010 at 8:01 AM, Joel Webber mailto:j...@google.com

wrote:


 @rjrjr: I notice you own the bug -- do you have time to look at

this, or

 would you like me to take it off your hands?

 Le 6 septembre 2010 04:48, mailto:johan.rydb...@gmail.com a écrit

:


 Reviewers: ,

 Description:
 Let MenuItem implement HasEnabled and update MenuBar to use this
 information when selecting items.

 The themes are also updated with a gwt-MenuItem-disabled rule.

 This is an attempt to fix
 http://code.google.com/p/google-web-toolkit/issues/detail?id=1649


 Please review this at

http://gwt-code-reviews.appspot.com/846801/show


 Affected files:
  user/src/com/google/gwt/user/client/ui/MenuBar.java
  user/src/com/google/gwt/user/client/ui/MenuItem.java


user/src/com/google/gwt/user/theme/chrome/public/gwt/chrome/chrome.css




user/src/com/google/gwt/user/theme/chrome/public/gwt/chrome/chrome_rtl.css

  user/src/com/google/gwt/user/theme/dark/public/gwt/dark/dark.css


user/src/com/google/gwt/user/theme/dark/public/gwt/dark/dark_rtl.css




user/src/com/google/gwt/user/theme/standard/public/gwt/standard/standard.css





user/src/com/google/gwt/user/theme/standard/public/gwt/standard/standard_rtl.css



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








http://gwt-code-reviews.appspot.com/846801/show

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


Popup menu

2010-09-06 Thread Johan Rydberg

Has anyone here made a popup menu using MenuBar?

My current approach is to simply put a vertical MenuBar
in a PopupPanel.  But I do not want to be forced to
explicitly close the popup panel in my menu commands.


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



[gwt-contrib] Let MenuItem implement HasEnabled (issue846801)

2010-09-06 Thread johan . rydberg

Reviewers: ,

Description:
Let MenuItem implement HasEnabled and update MenuBar to use this
information when selecting items.

The themes are also updated with a gwt-MenuItem-disabled rule.

This is an attempt to fix
http://code.google.com/p/google-web-toolkit/issues/detail?id=1649


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

Affected files:
  user/src/com/google/gwt/user/client/ui/MenuBar.java
  user/src/com/google/gwt/user/client/ui/MenuItem.java
  user/src/com/google/gwt/user/theme/chrome/public/gwt/chrome/chrome.css
  user/src/com/google/gwt/user/theme/chrome/public/gwt/chrome/chrome_rtl.css
  user/src/com/google/gwt/user/theme/dark/public/gwt/dark/dark.css
  user/src/com/google/gwt/user/theme/dark/public/gwt/dark/dark_rtl.css
   
user/src/com/google/gwt/user/theme/standard/public/gwt/standard/standard.css
   
user/src/com/google/gwt/user/theme/standard/public/gwt/standard/standard_rtl.css



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


[gwt-contrib] jrydberg-bindings: bindgen-like data bindings for GWT

2010-09-04 Thread Johan Rydberg

Just a proof-of-concept: http://github.com/jrydberg/jrydberg-bindings

A generator with a few support classes that provides a way to get a
HasValueT for a bean property.  It supports nested bindings, and is
type safe.

See the README-file in the project for more information.


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


Re: [gwt-contrib] Uibinder parser api

2010-09-03 Thread Johan Rydberg

On 9/1/10 10:01 PM, Ray Ryan wrote:
Sorry, still not public. However, we're landing a patch that will 
eliminate a lot of the need for it:

OK.  But will it become public at some point in time?

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


[gwt-contrib] Uibinder parser api

2010-09-01 Thread Johan Rydberg
I haven't checked m3 yet, but will the parser API be public in 2.1? It's the 
one thing that would make it perfect. 

Sent from my iPhone

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


Re: [gwt-contrib] RR: allow CheckBox to accept null?

2010-08-26 Thread Johan Rydberg

On 8/25/10 6:16 PM, Ray Ryan wrote:
The use case is dealing with boolean values that may be null, and 
really a check box is just the wrong UI there. Withdrawn.
I know of at least one data binding framework, gwt-pectin, that signals 
no value using null. As a work-around gwt-pectin has it's own CheckBox 
impl that accepts null.


Take this example; We have a master-detail interface.  a CheckBox has 
been bound to selectedElement.male.  If there is not a selected 
element, a no value signal should be sent down through data binding, 
not False. Right?


But then again, there's really no way to communicate something like a 
placeholder value for a checkbox.  But I still think CheckBox should 
accept null, for the interface to be consistent.


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


[gwt-contrib] Re: HasEnabled (issue757801)

2010-08-13 Thread Johan Rydberg
Done!

On Fri, Aug 13, 2010 at 4:00 PM, jlaba...@google.com wrote:

 @johan -

 Can you sign a Contributor License Agreement so we can include your
 code:
 http://code.google.com/legal/individual-cla-v1.0.html

 If you scroll to the bottom, you can sign it electronically.

 - John


 http://gwt-code-reviews.appspot.com/757801/show


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

[gwt-contrib] HasEnabled (issue757801)

2010-08-12 Thread johan . rydberg

Reviewers: ,

Description:
Introduce an interface for widgets that has a setEnabled method.


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

Affected files:
  user/src/com/google/gwt/user/client/ui/FocusWidget.java
  user/src/com/google/gwt/user/client/ui/HasEnabled.java


Index: user/src/com/google/gwt/user/client/ui/FocusWidget.java
===
--- user/src/com/google/gwt/user/client/ui/FocusWidget.java (revision 8519)
+++ user/src/com/google/gwt/user/client/ui/FocusWidget.java (working copy)
@@ -53,7 +53,7 @@
  */
 @SuppressWarnings(deprecation)
 public abstract class FocusWidget extends Widget implements  
SourcesClickEvents,

-HasClickHandlers, HasFocus, HasAllFocusHandlers, HasAllKeyHandlers,
+HasClickHandlers, HasFocus, HasEnabled, HasAllFocusHandlers,  
HasAllKeyHandlers,

 HasAllMouseHandlers, SourcesMouseEvents {

   private static final FocusImpl impl = FocusImpl.getFocusImplForWidget();
Index: user/src/com/google/gwt/user/client/ui/HasEnabled.java
===
--- user/src/com/google/gwt/user/client/ui/HasEnabled.java  (revision 0)
+++ user/src/com/google/gwt/user/client/ui/HasEnabled.java  (revision 0)
@@ -0,0 +1,31 @@
+/*
+ * Copyright 2010 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the License); you may  
not
+ * use this file except in compliance with the License. You may obtain a  
copy of

+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,  
WITHOUT

+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations  
under

+ * the License.
+ */
+package com.google.gwt.user.client.ui;
+
+/**
+ * A widget that implements this interface can be put in an enabled
+ * or disabled state.
+ */
+public interface HasEnabled {
+
+  /**
+   * Sets whether this widget is enabled.
+   *
+   * @param enabled codetrue/code to enable the widget,  
codefalse/code

+   *  to disable it
+   */
+  void setEnabled(boolean enabled);
+}


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


Re: [gwt-contrib] Making GWT look good...

2010-08-07 Thread Johan Rydberg

On 8/6/10 2:44 PM, Chris Ramsdale wrote:

Hey GWT(ers),

I've heard from many of you that GWT apps simply don't look that good 
out of the box, and styling the default app would go a long way. We 
couldn't agree more. As some of you know, GWT 2.1 (with the help of 
Spring Roo 1.1) will generate a full-fledged scaffolding app that 
users can then go customize, and build on top of. The current 
incarnation looks like this:


http://gwt-bikeshed.appspot.com/Scaffold.html

And while it's a start, it's long from being...well...good looking. 
I'm working with some UI/UX people back at Google, but in the spirit 
of openness I wanted to get feedback from the real users -- you. 
Specifically we're looking for business apps that are a good example 
of UI and/or UX. Apps that allow you to track tasks, expenses, travel, 
projects, etc.


If you have ideas, simply post a link in a follow-up to this thread.
I think Aristo looks nice: 
http://www.antipode.ca/2009/themes-sproutcore-vs-cappuccino/


And there's a CSS implementation: http://github.com/maccman/aristo

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


Re: GWTEvent, sinking own events

2010-06-30 Thread Johan Rydberg
On 6/30/10 11:57 AM, Roy wrote:If the answer is that View A *will* catch 
its own event, any

recommendations on how to identify the event in such a way that View A
knows it was the originator?
   

Maybe you can use this;

http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/event/shared/GwtEvent.html#getSource()

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



[gwt-contrib] Re: Introduces com.google.gwt.text from bikeshed, along with changes in (issue649801)

2010-06-21 Thread johan . rydberg


http://gwt-code-reviews.appspot.com/649801/diff/1/88
File user/src/com/google/gwt/user/client/ui/ValueBoxBase.java (right):

http://gwt-code-reviews.appspot.com/649801/diff/1/88#newcode46
user/src/com/google/gwt/user/client/ui/ValueBoxBase.java:46:
SourcesChangeEvents, HasChangeHandlers, HasText, HasName, HasValueT {
Isn't HasValueT enough or must the old change-interfaces also be
implemented?

http://gwt-code-reviews.appspot.com/649801/show

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


Re: Sinking new HTML 5 DOM events?

2010-04-26 Thread Johan Rydberg
There's still no way to add custom events?   I'm looking at doing html5 
drag-and-drop, but it is impossible when you can not hook up your event 
handlers.


On 8/17/09 11:54 PM, Eric Kidd wrote:

GWT is a really clever piece of compiler technology!

I'm currently experimenting with HTML 5'svideo/  tag and GWT. For
the most part, this was very easy to get running. But event-handling
has been a major headache.

In particular, I'm trying to add a listener to ontimeupdate, which
is called whenever the current playback time changes. In JavaScript,
the code would look this:

 # Tested in Firefox 3.5. (Will generate tons of alerts. Be
warned.)
 var video = document.getElementsByTagName('video')[0];
 video.addEventListener(timeupdate, function (event) {
 window.alert(Time:  + video.currentTime);
 }, true);

I've defined an appropriate set of classes (TimeUpdateEvent,
TimeUpdateHandler) and added a addTimeUpdateHandler function to my
Video widget. But this isn't enough to make things work--my timeupdate
handler is never called. (Code is attached below.)

Further investigation reveals that I'm still missing quite a few
pieces:

   DOMImpl::eventGetTypeInt - I need to add an entry for timeupdate.
   DOMImpl::sinkEvents - I need to call addEventListener
(timeupdate, ..., true).
   Event - I need to add a ONTIMEUPDATE constant.

Is there an easy way to work around this without patching my local
copy of GWT? And would it be worth either (a) making the list of
events extensible at runtime, or (b) adding a list of events taken
from the HTML 5 standard?

Thank you for such an interesting toolkit, and for any advice you can
provide on supporting custom DOM events!

Cheers,
Eric

=== begin Java code ===

public class Video extends FocusWidget {
 // ... lots of code removed
 public HandlerRegistration addTimeUpdateHandler(TimeUpdateHandler
handler) {
 return addHandler(handler, TimeUpdateEvent.getType());
 }
}

public interface TimeUpdateHandler extends EventHandler {
void onTimeUpdate(TimeUpdateEvent event);
}

public class TimeUpdateEvent extends DomEventTimeUpdateHandler  {

private static final TypeTimeUpdateHandler  TYPE =
new TypeTimeUpdateHandler(timeupdate, new 
TimeUpdateEvent());

public static TypeTimeUpdateHandler  getType() {
return TYPE;
}

@Override
public TypeTimeUpdateHandler  getAssociatedType() {
return TYPE;
}

@Override
protected void dispatch(TimeUpdateHandler handler) {
handler.onTimeUpdate(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
-~--~~~~--~~--~--~---


   


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



ClientBundle; Best Practices

2010-02-12 Thread Johan Rydberg

While planning a new Application I'm trying to figure out how to best
design it to get the most out of the whole ClientBundle thing.

But I'm trying to figure out how to use the bundles in ways that they
(1) were intended to be and (2) that fit my needs;


* Is the goal to have a single Resource class at the top-level
  that inherits all the resources used by that application?

  Is there some penalty to having separate resources created with
  GWT.create?


* For CSS, should my app inject the CSS or should the users of
  the resource do that themselves using #ensureInjected() ?


* Is there a good way of styling a Widget in different ways,
  but still using a single top-level resource?

  Think a WindowPanel and a DialogPanel, both inherits a popup
  panel but wants to style it differently;

interface WindowResources extends PopupResources {
}

interface DialogResources extends PopupResources {
}

interface AppResources extends WindowResources,
DialogResources {
   ...
}

  If a top-level resource like AppResource can't inherit
  both WindowResources and DialogResources, how would one
  structure the resources so that WindowPanel and DialogPanel
  can have their separate looks?


* If you want to style your application differently than
  the default GWT look, you fork the theme module and alter
  the CSS to fit your needs. Possible you add some extra
  style-names to some of your widgets.  All and all, it's
  quite simple to change the appearance of the standard
  widgets.

  How will this work with client bundles in the future?
  Will all standard Widgets accept a Resource class as
  first constructor argument?  And if you want a different
  look to your application, you need always to pass
  resources around?


Thanks
Johan

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



PopupPanel.AnimationType

2010-02-01 Thread Johan Rydberg

Why isn't it public? Is that part of the API still considered unstable?

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



Re: how to use Comet on Gwt?

2010-01-31 Thread Johan Rydberg

On 1/31/10 11:11 AM, bamd...@gmail.com wrote:

hi
i'm gwt newbie , and want to make a multiplayer TicTacToe with GWT
Comet for proof of concept.
i found GWT-Comet , gwt-comet-streamhub , rocket-gwt and... and i dont
know which one should i use.
does GWT supports Comet or i should use one of mentioned projects?
please help me on selecting the best.
thanks

   
There's also http://code.google.com/p/gwteventservice/ which is a nice 
(according to me)

server-to-client event bus.

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



Re: GWT support for Grails/Groovy domain objects

2010-01-28 Thread Johan Rydberg
Have you guys checked the http://github.com/chirino/resty-gwt project?  
It has a generator

that does pretty much all the awful things Roger talks about.

On 1/28/10 9:14 AM, Abdullah Shaikh wrote:

Hi Roger,

Then the only option left is xml, of course if we are not going 
GWT-RPC way.


So what do you think will be better JSON or XML ?

I have created a GWT application, the communication with server part 
is pending, the server side is java but its an already existing 
application, so I need to hook something in between the service side 
application  GWT to communicate, so I am looking out if it should be 
json or xml.



- Abdullah

On Wed, Jan 27, 2010 at 5:11 PM, Roger Studner rstud...@gmail.com 
mailto:rstud...@gmail.com wrote:


And to add one thing.

Using JSON w/ GWT is well.. awful.

The main reason for this, is that you get JSON back to the client,
and either use Overlay Types (can't use instanceof with there, and
about 500 other issues).. or you hve to take a simple
OverlayType and then re-instantiate all of your objects (i.e. you
do eval() once on the JSON, then for-loop etc to re-instantiate
objects from that JSONObject).

And then, the joy doesn't stop.  When you want to say, post JSON
back to the server, you have to redo this process, converting all
the java objects (which are of course actually javascript) into
JSON.

All in all, using JSON w/ GWT is a very (very) painful experience.

THe humor of course, is that you have to convert objects to and
from Java so that you can then use all the java API's etc that
GWT (just converts into Javascript).

Heh

Roger

On Jan 27, 2010, at 1:30 AM, Jan Ehrhardt wrote:


The problem is the GWT RPC's serialization, which can't work with
objects created by hibernate. You can use the DTO Grails plugin
(http://www.grails.org/plugin/dto) or you can use JSON / REST for
communication.

In the case of a Grails app, which comes with great support for
REST / JSON, I would prefer the second way.

Regards
Jan Ehrhardt

On Wed, Jan 27, 2010 at 4:37 AM, Don Ruby, Ramp;D
donald.r...@mindspring.com mailto:donald.r...@mindspring.com
wrote:

GWT is the obvious choice for UI. But if you want to use
Grails/Groovy
for server side, you have to either code messy DTOs or client
side
POJOs.  It would be nice if GWT would support using the
Grails/Groovy
domain objects directly on the client.  Any chance of that
happening?

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



-- 
You received this message because you are subscribed to the

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


-- 
You received this message because you are subscribed to the Google

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


--
You received this message because you are subscribed to the Google 
Groups Google Web Toolkit group.

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


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



gwt query

2010-01-22 Thread Johan Rydberg

Any comments on when gwt query will be integrated with GWT?

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



LGPL and other restrictive licenses

2010-01-20 Thread Johan Rydberg

I've seen some software packages and frameworks for GWT
that is released under LGPL.  Timefire's Chronoscope is
one of those.

This got me thing about how LGPL and other restrictive
licenses work in relation to GWT.

Normally LGPL allows you to link a library or framework
with your commercial software. But if you make any changes
to the source you're forced to re-distribute these.

May I use a .jar containing LGPL'ed code in my commercial
product, provided that I do not alter the content of the
.jar?


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




Re: [gwt-contrib] now.. afetr GWT 2.0?

2009-12-17 Thread Johan Rydberg

On Dec 17, 2009, at 3:03 PM, Arthur Kalmenson wrote:

 Working on a draft one.
 What do folks here think is important?
 
 - data binding and validation frameworks, which would remove a _lot_
 of boiler plate code and greatly increase productivity.

Absolutely!

 - incubator clean up and perhaps splitting it into multiple projects?

Yes,

It would be nice to clean up the scrolltable and put it in a separate
project.

 GWT 2.0 release is awesome, thanks for all the great work!

I agree. Thank you!


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


Re: [gwt-contrib] now.. afetr GWT 2.0?

2009-12-17 Thread Johan Rydberg

On Dec 17, 2009, at 3:03 PM, Arthur Kalmenson wrote:

 Working on a draft one.
 What do folks here think is important?
 
 - data binding and validation frameworks, which would remove a _lot_
 of boiler plate code and greatly increase productivity.
 - incubator clean up and perhaps splitting it into multiple projects?

Also, take a look at http://code.google.com/p/gwt-pectin/ that is a
data binding and validation framework that uses HasValueT as basis.

It would also be neat with a Enablable interface to slap on everything
that has setEnabled.


 GWT 2.0 release is awesome, thanks for all the great work!
 
 --
 Arthur Kalmenson
 
 
 
 On Wed, Dec 16, 2009 at 12:01 PM, Bruce Johnson br...@google.com wrote:
 Working on a draft one.
 What do folks here think is important?
 
 On Wed, Dec 16, 2009 at 7:42 AM, tfreitas tfrei...@gmail.com wrote:
 
 What about roadmap?
 
 --
 http://groups.google.com/group/Google-Web-Toolkit-Contributors
 
 --
 http://groups.google.com/group/Google-Web-Toolkit-Contributors
 
 -- 
 http://groups.google.com/group/Google-Web-Toolkit-Contributors
 

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

[gwt-contrib] Re: Initial implementation of layout system, along with the first two layout widgets.

2009-08-07 Thread Johan Rydberg


 I did a very-very simplified layout system based on
 top,bottom,left,right,width and height CSS attributes:

 http://69.20.122.77:8880/gwt-layout/

 So far SimpleLayout, HBoxLayout  VBoxLayout are implemented.

 Source files: http://69.20.122.77:8880/gwt-layout/org.gwt20.mosaic.demo.tbz2

 The EntryPoint class for the demo is: http://pastebin.com/m27e7a4e7

Nice work as always George,

But why use a widget wrapper to define alignments for a child of the
container?  I must say I like the idea of passing layout-data to the
add() method better.


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



[gwt-contrib] Re: Yet more Data Binding and Validation Thoughts

2009-06-24 Thread Johan Rydberg


On Jun 23, 2009, at 1:18 AM, Andrew Pietsch wrote:


 Hi there,

 Like many others I'm looking forward to see what you guys come up with
 in the databinding area.  But I miss some of the PresentationModel/
 ValueModel style frameworks I've come to like in Swing and thought I'd
 put in my 2c worth on a basic approach/API that would make me a happy
 customer.  Of course if you're planning something better then I can't
 wait (c:

The main issue I have with your proposal is that I have to define a
second definition of my model (the bean).  Also, I don't really see how
you bind your form model to a model object such as a bean.

Plus I think we should separate the data bindings from the concept of
forms.  Bindings can be used for so much more.

But I agree that the natural way is to base the bindings on HasValueT.
Maybe we could have a deferred binding that generates HasValueT's for
beans that suppports firing PropertyChangeEvents [1].


[1] http://java.sun.com/j2se/1.4.2/docs/api/java/beans/PropertyChangeEvent.html

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



Re: UI Binder

2009-01-12 Thread Johan Rydberg

Zakaluka skrev:

 The UI Binder is currently listed under the Post-1.6 timeframe.
 Seeing as how GWT 1.5.3 is the latest version out there and 1.6 will
 come out in the next 3 months, it'll probably be quite a while before
 we see UI Binder out in a stable form.

It would had been better if the GWT team hadn't said anything about
their internal work.  Then maybe something had popped up from the
community.  Now things are just dead in the sand, waiting for the holy
grail.

What happened to release often, release early?

Just put it in a branch.


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



Re: GWT with non-Java backend

2008-12-01 Thread Johan Rydberg

Joshua Partogi skrev:
 Dear all,
 
 Has anyone worked GWT with non-Java backend (like PHP or Rails) and
 send it with AJAX Http request? Does it work good? I am wondering
 whether this is a good approach. I would appreciate any experience
 shared here.

I've developed a GWT RPC gateway to Python on the server.  It is
tightly integrated with the Twisted networking framework:

   http://code.google.com/p/twisted-gwt/

~jr

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: Announcing Kiyaa! a new GWT library

2008-11-10 Thread Johan Rydberg

 From the first look it looks good.

Lacking as usual (as you point out) is documentation, tutorials
and examples.

Great to see someone who implements a template system.  I'll see
if I get around to try it out.  Or I'll wait until there are
some documentation in place.

~jr

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: Announcing Kiyaa! a new GWT library

2008-11-10 Thread Johan Rydberg

Dobes skrev:
 Yeah ... I'll add documentation based on how much time and motivation
 I get, which partly depends on the interest I get in the application.
 I did add some documentation for the template system recently and I'll
 try and find a way to post the javadocs somewhere too.

What I'm missing is a list of all dependencies, plus a .jar.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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
-~--~~~~--~~--~--~---