Re: Developer Guide on writing with GWT a reusable javascript widget

2011-02-01 Thread Thomas Lefort
@Chris, many thanks for the link. I had managed with the Vizu example
and I learned a couple of things along the way. I also thought about
writing some Generators to automate it, no need anymore! It looks
great.

@Eric, OK I understand better now. However I don't want to create a
GMap2 object, what I need is to pass the GMap2 object to my GWT
widget. Not sure how to do that.

Cheers

Thomas


On Feb 1, 10:36 pm, Eric Ayers  wrote:
> A gwt-google-apis MapWidget object is not a javascript GMap2 object.
> A MapWidget is a GWT Widget and contains a GMap2 object inside of it,
> so you need to use the MapWidget constructor to create it.
>
>
>
>
>
>
>
>
>
> On Tue, Feb 1, 2011 at 2:10 PM, Thomas Lefort  wrote:
> > Me again, there doesn't seem to be much interest in generating
> > reusable javascript widgets with GWT. If there is let me know, I'll
> > try to write something about my (painful) experience on this subject.
> > Anyway, I am now stuck on passing a Map argument to my widget. I use
> > MapWidget in GWT and the Maps API v2 in the javascript part. I get a
> > Class cast exception. I am unsure whether or not MapWidget is the
> > right class to use.
> > The function specific JSNI:
>
> >  private static native void registerPlayMapFunctions(JavaScriptObject
> > jso) /*-{
> >                jso.play = function(map) {
> >                  return
> > this.gwt_widg...@com.metaaps.webapps.gwt.playmap.client.PlayMap::play(Lcom/
> > google/gwt/maps/client/MapWidget;)(map);
> >                }
> >  }-*/;
> > The javascript:
> >        var map = new GMap2(document.getElementById("map_canvas"));
> >        var playMap = new PlayMap();
> >        playMap.play(map);
>
> > Any help would be highly appreciated.
>
> > Thanks,
>
> > Thomas
>
> > On Feb 1, 1:26 pm, Thomas Lefort  wrote:
> >>http://code.google.com/p/gwt-google-apis/wiki/VisualizationCustomVisu...,
> >> gives some insight BTW but you still have to check the code source
> >> above. And then it looks like the html page will load in two stages in
> >> any case, with the bootstrap. Might not be very optimum for small
> >> widgets... I am already on 5k + 90k for a small widget that would
> >> require just 5k in js. There has to be some optimisation left to be
> >> done ;-)
>
> >> On Feb 1, 11:04 am, Thomas Lefort  wrote:
>
> >> > Looks like this is a pointer to start with:
>
> >> >http://code.google.com/p/gwt-google-apis/source/browse/trunk/visualiz...
>
> >> > No doc/guide found so far.
>
> >> > On Jan 31, 1:12 pm, Thomas Lefort  wrote:
>
> >> > > I want to write a widget with GWT that can be reused by a javascript
> >> > > program (in its compiled form). Is there any guide on how to proceed,
> >> > > eg which classes and methods will be exposed to the user?
>
> >> > > Thanks,
>
> >> > > Thomas
>
> > --
> > 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 
> > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> Eric Z. Ayers
> Google Web Toolkit, Atlanta, GA USA

-- 
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 CellWidgets contain custom composite widgets ?

2011-02-01 Thread zixzigma
I realized what I was doing wrong.

I was trying to do everything in the custom cell.
I decided to handle things at CelLTable level, instead of cell level.
so I defined a SingleSelectionModel, and when the row is selected,
I change the flag within this selectionModel, which is related to the 
CellTable,
instead of capturing low level click event in the cell.

still I need to work on some of its details, 
since there are some minor problems.

Thank you for your insights, it helped a lot.

-- 
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: CellTable and GAE Datastore cursors

2011-02-01 Thread Miroslav Genov
I think that they are not suitable each other, due the lack of rewind of 
datastore cursors, i.e you can seek to the next offset but you are not 
allowed to move back. To do that you have to make some kind of hack that 
keeps all previous cursor positions. For more information about paging you 
can take a look at 
http://sites.google.com/site/io/building-scalable-web-applications-with-google-app-engine
 (Slide 
33-34). 

-- 
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 CellWidgets contain custom composite widgets ?

2011-02-01 Thread zixzigma
Thank You,
I tried your suggestion.

In the onBrowseEvent, I capture the click event, 
but just capturing event does not result in re-rendering the table.

I assume I need to somehow update the table for the re-rendering to happen,
but I don't know how 
">> If your click event, updates the table in some fashion that leads to 
re-rendering of the table"


I also put a flag(conditional) inside onBrowseEvent method, and changed it 
upon click event,
and directly called render from within onBrowseEvent (as you can see below).
to somehow force the render method.
with this explicit call to render, upon on click, the flag is set and log 
statements in render method
confirm that the flag is actually set, but the table remains the same.
in other words the table is not re-rendered.

do you know how I can make the click event to update the table ?
or how is it possible to re-render just a row of the table ?
is it wrong to call render from within onBrowseEvent ?
 public void onBrowserEvent(.

if ("click".equals(event.getType())) {

isFieldXVisible = true; // setting a flag so that render method can check 
for it
render(context,value,null); // forcing to re-rerender, does not seem to work 


}

}

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: Can CellWidgets contain custom composite widgets ?

2011-02-01 Thread Prashant Hegde
>From what I know (hope others can comment/correct):

You get influence rendering in the "render" method of a cell. If your click
event, updates the table in some fashion that leads to re-rendering of the
table then you should get the control to render method of the cell. Based on
a conditional logic inside the render method, should be able to plug in a
different widget HTML in the same cell area ( should work, never tried ).

Prashant

On Wed, Feb 2, 2011 at 11:54 AM, zixzigma  wrote:

> THANK YOU!
> it worked !!
> what a wonderful solution !
>
> one other question,
> in your experience,
> - do you think it is possible to change a cell once it's rendered ?
> for example, implement onClick event, in a way that upon a click,
> another widget is added to the currently displayed row.
>
> I am trying to implement something similar to this:
>
> http://code.google.com/p/google-web-toolkit/updates/list
>
> which is basically a celltable, when you click on a row,
> the row expands.
>
> I am not asking for the solution, although any tips are really appreciated,
> I want to know if it is possible with CellTable.
>
> Thank you for the solution you offered.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: Can CellWidgets contain custom composite widgets ?

2011-02-01 Thread zixzigma
THANK YOU!
it worked !!
what a wonderful solution !

one other question,
in your experience,
- do you think it is possible to change a cell once it's rendered ?
for example, implement onClick event, in a way that upon a click,
another widget is added to the currently displayed row.

I am trying to implement something similar to this:
http://code.google.com/p/google-web-toolkit/updates/list

which is basically a celltable, when you click on a row,
the row expands.

I am not asking for the solution, although any tips are really appreciated,
I want to know if it is possible with CellTable.

Thank you for the solution you offered.

-- 
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 CellWidgets contain custom composite widgets ?

2011-02-01 Thread Prashant Hegde
Sorry, I should have been more clearer. Its not getHTML as I had stated.
Should have said getInnerHtml(). Your custom widget need not implement
HasHTML. Instead, its basically a standard UiBinder based composite with
public methods to set the required  data to be rendered ( not the markup
just the data like any other setters/getters of a view ). Your markup is
inside the UIBinder XML. Once you set the data, you can call
getElement().getInnerHTML() on the composite to get the HTML equivalent of
the composite.

One more improvement (more lightweight I guess) over the above approach is,
You need not extend the UiBinder widget from Composite. You can just have a
reference to a Widget inside the UiBinder Java file. Initialize this
reference to the  object returned from createAndBindUi. In this case, you
will have to call widget.getElement().getInnerHtml() for the HTML
equivalent.

Hope this helps.


Prashant

On Wed, Feb 2, 2011 at 10:20 AM, zixzigma  wrote:

> Thank You.
>
> Prashant, I am following your suggestion,
> I am a bit unclear about this part of your comment: "set the data and
> getHTML"
>
> should my custom widget implement HasHTML ?
>
> http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/HasHTML.html
>
> could you please explain that part a bit more ?
> I see that HasHTML has methods setHTML getText that I need to implement.
> do you think I need to put html markup in this setHTML ?
>
> 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.
>

-- 
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 CellWidgets contain custom composite widgets ?

2011-02-01 Thread zixzigma
Thank You.

Prashant, I am following your suggestion,
I am a bit unclear about this part of your comment: "set the data and 
getHTML"

should my custom widget implement HasHTML ?
http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/HasHTML.html

could you please explain that part a bit more ?
I see that HasHTML has methods setHTML getText that I need to implement.
do you think I need to put html markup in this setHTML ?

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: avoid row selection on cell click in CellTable

2011-02-01 Thread Torgeir
Thx, I also just found that simply having my Cells implementing the 
handlesSelection method fixes it;

@Override public boolean handlesSelection() { return true; }

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



Re: Bug: CompositeCell containing EditTextCell

2011-02-01 Thread Jason
Yes, the offending code lies in line 430 of
DefaultSelectionEventManager. It tries to toggle the cell selection
when you push the space key. CellList extends AbstractHasData which in
turn uses the DefaultSelectionEventManager.

The behaviour seems even stranger if you don't have a SelectionModel
set for your CellList. If you set one (you can use 'new
SingleSelectionModel' on your CellList object, where T is your
model class) and you will see that the space key event toggles the row
selection..

I'm not sure if there is a bug report for this yet? We will need to
wait for it to be fixed / explained but until then I developed this
little hack :) Paste it anywhere.. it's static. Tested on Chrome and
FF4 but probably won't work on some older browsers.

Event.addNativePreviewHandler(new NativePreviewHandler() {

@Override
public void onPreviewNativeEvent(NativePreviewEvent 
event) {
NativeEvent nativeEvent = 
event.getNativeEvent();
final int keyCode = nativeEvent.getKeyCode();

final boolean isNotAnInputElement = 
!InputElement

.is(nativeEvent.getEventTarget());
final boolean isNotTheSpaceKey = keyCode != 32;

if (isNotAnInputElement || isNotTheSpaceKey) {
return;
}
String type = nativeEvent.getType();
event.cancel();
if (("keyup".equals(type))) {
InputElement element = 
nativeEvent.getEventTarget().cast();
final int start = 
element.getPropertyInt("selectionStart");
final int end = 
element.getPropertyInt("selectionEnd");
if (start == end) {
String before = 
element.getValue();
String after = 
before.substring(0, start) + " "
+ 
before.substring(start);
element.setValue(after);

element.setPropertyInt("selectionStart", start + 1);

element.setPropertyInt("selectionEnd", start + 1);
}

}
}
});


On Jan 24, 11:06 am, Bernd  wrote:
> Please try the following: Put an EditTextCell into a CompositeCell and
> add the CompositeCell to a CellTable Column. Now enter the
> EditTextCells edit mode to change the text and try to add a space-char
> by pressing your space key. Unfortunately, this doesn't work for me
> (Firefox 3.5).
> I checked the events which are forwarded by the Browser to the
> CompositeCell. Interestingly, there is no "downkey" event delivered
> for the space key. Maybe this has something to do with it?
>
> Here is the sample code i used to generate the CellTable Column:
>
>                final EditTextCell editTexCell = new EditTextCell();
>
>                HasCell hasC = new HasCell String>() {
>
>                         @Override
>                         public Cell getCell() {
>                                 return editTexCell;
>                         }
>
>                         @Override
>                         public FieldUpdater getFieldUpdater() 
> {
>                                 return null;
>                         }
>
>                         @Override
>                         public String getValue(String object) {
>                                 return object;
>                         }
>
>                 };
>
>                 List> listHC = new 
> ArrayList>();
>
>                 listHC.add(hasC);
>                 CompositeCell compCell = new CompositeCell(listHC);
>
>                 Column compCellColumn = new 
> Column String>(compCell) {
>                         @Override
>                         public String getValue(RowOfData object) {
>                                 return "test123";
>                         }
>                 };
>
> Is there a way to fix this problem?
> A positive answer would help me a lot :)
> Thanks!
> Bernd

-- 
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 CellWidgets contain custom composite widgets ?

2011-02-01 Thread Prashant Hegde
We have extended the AbstractCell and did the following.

Have a widget created using UiBinder XML for the content of a cell. In the
render method,  instantiate the widget, set the data and getHTML. Once you
get HTML, it is business as usual. You can also respond to the events inside
the widget by overriding onBrowserEvent. We only had anchors inside the
widget, so we listened to "click" events and responded it to it by
delegating the event to presenters. This approach eliminated having to write
HTML mark up in Java code.

Not sure if this is the answer you are looking for.

Prashant

On Wed, Feb 2, 2011 at 4:10 AM, zixzigma  wrote:

> after investigating CompositeCell or directly extending AbstractCell,
> it is my understanding that to create custom cell,
> the only option at the moment is to embed HTML markup in the render method
> as below.
>
> in other words, we cannot create a custom composite widget with UiBinder,
> and add it to the cell.
>
> am I correct on this ?
>
>
>
> @Override
> public void render(Context context, Contact value, SafeHtmlBuilder sb)
> {
>   /*
>* Always do a null check on the value. Cell widgets can pass null to
>* cells if the underlying data contains a null, or if the data
> arrives
>* out of order.
>*/
>   if (value == null) {
> return;
>   }
>
>   // Add a checkbox. If the contact is a favorite, the box will be
> checked.
>   sb.appendHtmlConstant("");
>   if (favorites.contains(value)) {
> sb.appendHtmlConstant(" checked=checked/>");
>   } else {
> sb.appendHtmlConstant("");
>   }
>   sb.appendHtmlConstant("");
>
>   // Display the name in big letters.
>   sb.appendHtmlConstant("");
>   sb.appendEscaped(value.name);
>   sb.appendHtmlConstant("");
>
>   // Display the address in normal text.
>   sb.appendHtmlConstant("");
>   sb.appendEscaped(value.address);
>   sb.appendHtmlConstant("");
>
>   sb.appendHtmlConstant("");
>
> }
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Help on using JSNI from within a GWTTestCase

2011-02-01 Thread Christopher
Hi there,

I'm trying to use JSNI from within a GWTTestCase. The JavaScript object is 
returned via a JSON response from a servlet I have running for the test. I 
then eval the JSON and assert the corresponding overlay object's value. 
Firstly, does this sound like a reasonable thing to do from within 
GWTTestCase?

Here's my relevant bits of code. I have declared a parameterised class to 
handle JSON payloads with the parameter representing the type of 
JavaScriptObject I want to evaluate to:

public abstract class JSONRequestCallback

implements RequestCallback {


  private final native T evalJSON(String jsonText) /*-{

return eval(jsonText);

  }-*/;


  @Override

  public void onResponseReceived(Request request, Response response) {

String responseText = response.getText();

onResponseReceived(request, evalJSON(responseText));

  }


  /**

   * Handle a JSON payload response.

   * 

   * @param request

   *the original request object.

   * @param response

   *the JSON response marshalled as a JavaScript object.

   */

  public abstract void onResponseReceived(Request request, T response);


}

To call it I issue an HTTP request with the callback provided like this in 
my test:

new JSONRequestCallback>() {

  @Override

  public void onError(Request request, Throwable exception) {

fail("Should not get here.");

  }


  @Override

  public void onResponseReceived(Request request,

  JsArray deals) {

// TODO Validate the response.


assertEquals(1, deals.length());


SomeModelObject bo = deals.get(0);

assertEquals("A", bo.getAccountProductType());


finishTest();

  }

});

SomeBusinessObject is an overlay class with getAccountProductType declared 
as follows:

  public final native String getAccountProductType() /*-{

return this.accountProductType;

  }-*/;

Unfortunately for me, the second assertion (for "A") fails. The servlet 
definitely responds correctly and I can see via the debugger that eval is 
being performed on the JSON response.

Any guidance is most appreciated.

Kind regards,
Christopher

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



RequestFactory with EJB Beans, how??

2011-02-01 Thread Bálint Kriván
Hi!

Did anybody tried to use RequestFactory with EJB Beans using
Locator/ServiceLocator?

I'm having a little issue here.

My stateless session bean extends Locator. For my
RequestContext I use a ServiceLocator which uses InitialContext.doLookup();
to lookup the EJB (I can't use @EJB because the ServiceLocator instance
isn't container-managed -- btw. is there any solution for this? lookup looks
ugly). Everything looks fine, but in my Bean, the entityManager instance is
null (I'm using @PersistenceContext annotation on it) when GWT wants to
invoke find(Class, Long) method: here I use simple em.find(). It's
strange because invoking from a servlet, using @EJB, it works fine. What am
I doing wrong?

I've created a gist for it: https://gist.github.com/807082

So in this file: https://gist.github.com/807082#file_group_manager.java Line
#29, the em is null, but using this servlet:
https://gist.github.com/807082#file_test_servlet.java it works perfectly.

Has anybody experience with this problem? I would like to use EJBs, because
I would like to have JTA and Container-managed transactions. Thanks for any
advice!

-- 
Regards,
Bálint Kriván

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



RequestFactory EntityProxy and AutoBean category

2011-02-01 Thread Krishna
Hi,

Does RequestFactory EntityProxy supports AutoBean category (http://
code.google.com/p/google-web-toolkit/wiki/AutoBean#Categories) ?
i. e. Can I define a category for an EnitityProxy? If yes, how can I
do that?

Thanks!
Krishna Caldas

-- 
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: any Tips on fine-tuning Packet Analyzers for GWT client-server communication ?

2011-02-01 Thread Chris Conroy
http://code.google.com/p/google-web-toolkit/source/browse/#svn%2Ftrunk%2Fplugins%2Fwireshark

On Tue, Feb 1, 2011 at 3:33 PM, zixzigma  wrote:

> I was thinking of using a Packet Analyzer like Wireshark, to monitor what
> is being sent over the wire from client to server and back
> when using GWT in development mode.
>
> However I am getting all kinds of low level bits and have not been
> successful in applying some kind of filters,
> to display only GWT related meaningful data. I activate "follow TCP
> Stream", but still its not easy to follow.
>
> Do you have any tips on fine-tuning Packet-Analyzers for use with GWT
> client-server communication mechanisms ?
>
> 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.
>

-- 
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 CellWidgets contain custom composite widgets ?

2011-02-01 Thread Thomas Broyer


On Tuesday, February 1, 2011 11:40:27 PM UTC+1, zixzigma wrote:
>
> after investigating CompositeCell or directly extending AbstractCell,
> it is my understanding that to create custom cell,
> the only option at the moment is to embed HTML markup in the render method 
> as below.
>
> in other words, we cannot create a custom composite widget with UiBinder,
> and add it to the cell.
>
> am I correct on this ?
>

Yes, Cell widgets are much more low-level than widget containers. They're 
built with performance in mind, and it rules out using child widgets. 

-- 
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: Are servlets available when performing GWT Unit Tests?

2011-02-01 Thread Christopher Hunt
Ah ha - thanks for that. All good now. I'll raise a ticket so that the doco can 
be updated.

-- 
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: 2 Modules in 1 GWT-App, both starting the onModuleLoad?

2011-02-01 Thread Colin Alworth
> [ERROR] Hint: Previous compiler errors may have made this 
type unavailable 
Which type? Which error? If you are missing code in your Child1/2 projects 
that disappears only when the Parent module is missing, something is not set 
up correctly, or perhaps you are still attempting to compile the new-deleted 
module?

If a module with an entry-point inherits another module with another 
entry-point, the finished product will run both entry-points. That is what 
your original post seemed to indicate, though I still don't see how. This 
compiler error seems to suggest that there is some other mixed up 
dependency.

-Colin

-- 
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: any Tips on fine-tuning Packet Analyzers for GWT client-server communication ?

2011-02-01 Thread Thomas Broyer
Er, limit to the port your server listens on ( by default for the 
DevMode, 80 as the default for HTTP) and use an HTTP dissector? (requires 
specific configuration if not on port 80: 
http://www.wireshark.org/docs/wsug_html_chunked/ChCustProtocolDissectionSection.html#ChAdvDecodeAsFig
 )

I haven't used Wireshark a whole lot, but that was enough for me. I never 
used the "follow TCP stream" so I can't tell.

That being said, Firebug and similar tools, or Fiddler2 (Windows only) have 
always worked well for me (bonus point for Fiddler2 which can also work if 
your server requires HTTPS)

-- 
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: 2 Modules in 1 GWT-App, both starting the onModuleLoad?

2011-02-01 Thread newnoise
I get this error-message trying to compile after deleting the
Parent.gwt.xml:
   [ERROR] Hint: Previous compiler errors may have made this type
unavailable
 [ERROR] Hint: Check the inheritance chain from your module;
it may not be inheriting a required module or a module may not be
adding its source path entries properly

Thanks!



On 2 Feb., 00:18, newnoise  wrote:
> Ok. But don't I need some module like parent? If I delete parent I
> can't compile the project no more.
> Both .html-files point to the right .nocache.js files! I doublechecked
> it several times :)
>
> Thanks
> noise
>
> On 1 Feb., 23:24, Colin Alworth  wrote:
>
> > From the little information here, it seems that either Child2.html has a
> > script tag loading Child1.nocache.js or Parent.nocache.js
>
> > Parent serves no purpose in your setup - if it were compiled and run, it
> > would try to start both applications at once.

-- 
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: 2 Modules in 1 GWT-App, both starting the onModuleLoad?

2011-02-01 Thread newnoise
Ok. But don't I need some module like parent? If I delete parent I
can't compile the project no more.
Both .html-files point to the right .nocache.js files! I doublechecked
it several times :)

Thanks
noise

On 1 Feb., 23:24, Colin Alworth  wrote:
> From the little information here, it seems that either Child2.html has a
> script tag loading Child1.nocache.js or Parent.nocache.js
>
> Parent serves no purpose in your setup - if it were compiled and run, it
> would try to start both applications at once.

-- 
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: TextBox width percentage in Standards Mode

2011-02-01 Thread Craig Mitchell
Sorry, I should have been more clear.  100% of its parent.  In my
case, a table.  Eg:




Title







First name







Without the res.css.textBoxPadding (which puts padding-right:8px;),
the firstNameTextBox will be 8px wider then the titleListBox.

Cheers.


On Feb 1, 9:42 pm, Jeff Schwartz  wrote:
> 100% of what? Your problem has nothing to do with doctypes. If there is no
> immediate parent with a specific width set then there is nothing to
> constrain the width of the text box.
>
>
>
>
>
>
>
>
>
> On Mon, Jan 31, 2011 at 10:55 PM, Craig Mitchell  wrote:
> > Hi,
>
> > If I set a TextBox width percentage (say 100%) in standards mode (Ie:
> > ), the total width will be larger then 100% due to the
> > TextBox's padding, and border.
>
> > I can get the width back to 100% by removing them with css like this:
> > .noPadding {
> >        padding: 0px;
> >        margin: 0px;
> >        border: 0px;
> >        background-color: #ee;
> > }
>
> > However, I want the padding and border around the TextBox.
>
> > How can I set a percentage width on a TextBox, and get it to actually
> > go to that width?
>
> > The reason I would like to do this, is so it works like ListBox, which
> > doesn't seem to have any padding or border.
>
> > 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 > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> *Jeff Schwartz*

-- 
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: Are servlets available when performing GWT Unit Tests?

2011-02-01 Thread Thomas Broyer
You can use servlets, but your web.xml isn't read, you have to declare them 
in your gwt.xml using a  element ("the old way"). You'll 
generally create a specific gwt.xml that  the module you want to 
test and adds the  declarations.
Have a look at GWT's own unit tests, e.g. 
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/test/com/google/gwt/user/FormPanelTest.gwt.xml

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



Re: Can CellWidgets contain custom composite widgets ?

2011-02-01 Thread zixzigma
after investigating CompositeCell or directly extending AbstractCell,
it is my understanding that to create custom cell,
the only option at the moment is to embed HTML markup in the render method 
as below.

in other words, we cannot create a custom composite widget with UiBinder,
and add it to the cell.

am I correct on this ?



@Override
public void render(Context context, Contact value, SafeHtmlBuilder sb) {
  /*
   * Always do a null check on the value. Cell widgets can pass null to
   * cells if the underlying data contains a null, or if the data 
arrives
   * out of order.
   */
  if (value == null) {
return;
  }

  // Add a checkbox. If the contact is a favorite, the box will be 
checked.
  sb.appendHtmlConstant("");
  if (favorites.contains(value)) {
sb.appendHtmlConstant("");
  } else {
sb.appendHtmlConstant("");
  }
  sb.appendHtmlConstant("");

  // Display the name in big letters.
  sb.appendHtmlConstant("");
  sb.appendEscaped(value.name);
  sb.appendHtmlConstant("");

  // Display the address in normal text.
  sb.appendHtmlConstant("");
  sb.appendEscaped(value.address);
  sb.appendHtmlConstant("");

  sb.appendHtmlConstant("");
}

-- 
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: 2 Modules in 1 GWT-App, both starting the onModuleLoad?

2011-02-01 Thread Colin Alworth
>From the little information here, it seems that either Child2.html has a 
script tag loading Child1.nocache.js or Parent.nocache.js

Parent serves no purpose in your setup - if it were compiled and run, it 
would try to start both applications at once.

-- 
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: Help, UIBinder and mixed mode HTML

2011-02-01 Thread John Gentilin

My bad... My java code was generic but I started with a copy
of the java code + template from an exiting source which had
constructor code of

initWidget(uiBinder.createAndBindUi(null));
vs
initWidget(uiBinder.createAndBindUi(this));

Which works till you bind something :-)

-John G

On 2/1/11 1:22 AM, John Gentilin wrote:

My Java class is just the plain vanilla code when you use the wizard to
create a UIBinder object, I have not added any functionality. The only
changes I have done is to comment out the @UIField definitions that
the WindowsBuilder editor inserted. Including any one of the 6 fields
I defined results in the widget not rendering..

I am running this on GWT 2.1.1 and I also tried 2.1.0 if fails the same
in both modes.

-John G

On 2/1/11 12:34 AM, Jan Mostert wrote:
Maybe post the code that you use to bind the component, problem is 
most likely there.



--
Jan Vladimir Mostert
BEngSci

Mail: j...@mycee.com 
MyCee Technologies


On Tue, Feb 1, 2011 at 10:20 AM, John Gentilin > wrote:


I have a UIBinder file that specifies a HTMLPanel that contains a mix
of plain HTML and GWT widgets.
If I don't bind any of the variables, the Widget will load correctly
and display. As soon as I bind a UI field
in my code including the @UIField definition,  @UiField TextBox
userid; then initializing the Widget fails in a NPE.

Thanks for any help in advance.
John Gentilin

This is the exception
java.lang.NullPointerException: null  at

com.CloudTvApps.PicRollr.client.Modules.Registration.RegistrationController_UIDefaultImpl.createAndBindUi(RegistrationController_UIDefaultImpl.java:
61) at

com.CloudTvApps.PicRollr.client.Modules.Registration.RegistrationController_UIDefaultImpl.createAndBindUi(RegistrationController_UIDefaultImpl.java:
1) at

com.CloudTvApps.PicRollr.client.Modules.Registration.RegistrationController.
(RegistrationController.java:37)
   at

com.CloudTvApps.PicRollr.client.PicRollrEntryPoint.onModuleLoad(PicRollrEntryPoint.java:
32)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
   at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
396)
   at

com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
183)
   at

com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
510)
   at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)
   at java.lang.Thread.run(Thread.java:680)


UIBinder definition

http://dl.google.com/gwt/DTD/xhtml.ent";>











User ID:







Password:







Confirm Password:







Name:







E-mail:








I agree with the terms of service




Register










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


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

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




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



Re: Selecting and disabling elements in CellTable

2011-02-01 Thread Jeff Schwartz
BTW if you are using paging then you will have to do this in response to a
rows range change event which I am not sure is even possible.

On Tue, Feb 1, 2011 at 3:59 PM, Jeff Schwartz wrote:

> On Tue, Feb 1, 2011 at 3:38 PM, Greg Dougherty  > wrote:
>
>> Jeff:
>>
>> Column 1 : Column 2 ; Column 3
>> Column 1 :Column 3
>> Column 1 : Column 2 ; Column 3
>>
>> I thought you said column, Geg, not an individual row's cells and
> naturally I took that then to mean all check boxes within a column. Is that
> what you said or do I have a pencil sticking out of my head :)?
>
> In any case it's now obvious what your intention is so here's one way to do
> this but it is by no means the only way:
>
> Iterate row by row through your cell table and for each row iterate through
> each of its cells. If a cell contains a checkbox that needs to be disabled
> then get the cell's inner html which will be a checkbox. Once you have the
> checkbox just set it's enabled property to false or better yet hide the
> checkbox by setting its display attribute to none.
>
> There are numerous GWT methods that can assist you in iterating over the
> DOM and in particular a table. For instance, I use TableElement often,
> especially TableElement.as which assert that the given Element is compatible
> with a TableElement and automatically typecast it. Once I have a valid
> TableElement reference I can then get a reference to its rows by calling its
> getRows method - just remember to compensate for any table header rows you
> may have. Once you have a NodeList use its TableRowElements
> to obtain the cells by calling it getCells method. Once you have the cells
> you can then iterate over each one and do with them as you like.
>
> Jeff
>
> Jeff
>
>
>


-- 
*Jeff Schwartz*

-- 
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: Developer Guide on writing with GWT a reusable javascript widget

2011-02-01 Thread Eric Ayers
A gwt-google-apis MapWidget object is not a javascript GMap2 object.
A MapWidget is a GWT Widget and contains a GMap2 object inside of it,
so you need to use the MapWidget constructor to create it.

On Tue, Feb 1, 2011 at 2:10 PM, Thomas Lefort  wrote:
> Me again, there doesn't seem to be much interest in generating
> reusable javascript widgets with GWT. If there is let me know, I'll
> try to write something about my (painful) experience on this subject.
> Anyway, I am now stuck on passing a Map argument to my widget. I use
> MapWidget in GWT and the Maps API v2 in the javascript part. I get a
> Class cast exception. I am unsure whether or not MapWidget is the
> right class to use.
> The function specific JSNI:
>
>  private static native void registerPlayMapFunctions(JavaScriptObject
> jso) /*-{
>                jso.play = function(map) {
>                  return
> this.gwt_widg...@com.metaaps.webapps.gwt.playmap.client.PlayMap::play(Lcom/
> google/gwt/maps/client/MapWidget;)(map);
>                }
>  }-*/;
> The javascript:
>        var map = new GMap2(document.getElementById("map_canvas"));
>        var playMap = new PlayMap();
>        playMap.play(map);
>
> Any help would be highly appreciated.
>
> Thanks,
>
> Thomas
>
>
> On Feb 1, 1:26 pm, Thomas Lefort  wrote:
>> http://code.google.com/p/gwt-google-apis/wiki/VisualizationCustomVisu...,
>> gives some insight BTW but you still have to check the code source
>> above. And then it looks like the html page will load in two stages in
>> any case, with the bootstrap. Might not be very optimum for small
>> widgets... I am already on 5k + 90k for a small widget that would
>> require just 5k in js. There has to be some optimisation left to be
>> done ;-)
>>
>> On Feb 1, 11:04 am, Thomas Lefort  wrote:
>>
>>
>>
>>
>>
>>
>>
>> > Looks like this is a pointer to start with:
>>
>> >http://code.google.com/p/gwt-google-apis/source/browse/trunk/visualiz...
>>
>> > No doc/guide found so far.
>>
>> > On Jan 31, 1:12 pm, Thomas Lefort  wrote:
>>
>> > > I want to write a widget with GWT that can be reused by a javascript
>> > > program (in its compiled form). Is there any guide on how to proceed,
>> > > eg which classes and methods will be exposed to the user?
>>
>> > > Thanks,
>>
>> > > Thomas
>
> --
> 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.
>
>



-- 
Eric Z. Ayers
Google Web Toolkit, Atlanta, GA USA

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



CellTable and GAE Datastore cursors

2011-02-01 Thread George Moschovitis
I would like to present data from a GAE Datastore table using a GWT 
CellTable.
Are there any best practices or (even better) a tutorial or sample that 
demonstrates how to implement
an AsyncDataProvider that works with Datastore cursors?

thanks in advance,
-g.

-- 
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: Considering using Google Accounts for authentication. Good idea?

2011-02-01 Thread Jeff Schwartz
I don't think that it is possible to change authorization policies since
I've already deployed the app. Am I wrong about that?

Additionally, I don't want to discourage users who might be shy of using
Facebook for example because of privacy issues associated with many of the
social web sites.

On Tue, Feb 1, 2011 at 2:45 PM, David Chandler wrote:

> Better still, you can use GAE OAuth support to support a large number of
> third-party logins. There's a nice tutorial on GWT+GAE integration with
> Facebook and Twitter in the book I recently reviewed on my personal blog:
>
> http://turbomanage.wordpress.com/2011/01/31/new-gwtgae-book/
>
> /dmc
>
> On Tue, Feb 1, 2011 at 2:40 PM, Jeff Schnitzer wrote:
>
>> My $0.02:
>>
>>  * For most applications, third-party auth should be a no-brainer.
>> "conversion" rates will go up when users don't have to create Yet
>> Another Account, and more than make up for any tiny amount of
>> unavailability you are likely to experience.
>>
>>  * If your app is more "fun" and less "business", strongly consider
>> Facebook auth.  It's a bit harder to implement but it's quite a bit
>> more javascript friendly - you can perform auth without redirects,
>> getting a javascript callback when login or logout happens.
>>
>> Jeff
>>
>> On Tue, Feb 1, 2011 at 10:44 AM, Jeff Schwartz 
>> wrote:
>> > I will explore both options and I will also take a look at the Expenses
>> GWT
>> > sample app you mentioned.
>> >
>> > Thanks!
>> >
>> > Jeff
>> >
>> > On Tue, Feb 1, 2011 at 1:24 PM, David Chandler 
>> > wrote:
>> >>
>> >> Yes, this is workable, but note that login with Google Accounts
>> requires a
>> >> redirect to the Google Accounts login page. It may be easier (and more
>> >> secure) to see if the user is logged in on the server side using a JSP
>> or
>> >> servlet filter, then redirect accordingly to the Google Accounts login
>> page
>> >> or your app's host page. But either way works.
>> >> /dmc
>> >>
>> >> On Tue, Feb 1, 2011 at 12:14 PM, Jeff Schwartz <
>> jefftschwa...@gmail.com>
>> >> wrote:
>> >>>
>> >>> Thanks, David. I would be the last person to think you are being
>> biased
>> >>> as I have come to respect Google above all other hi tech companies out
>> >>> there. If I were offered an opportunity to work for Google I would
>> jump at
>> >>> it :)
>> >>>
>> >>> I've read all the documentation that Google provides regarding using
>> >>> Google Accounts for authentication. I think the following scenario
>> will
>> >>> suffice for my use case:
>> >>>
>> >>> In my application's EntryPoint I will immediately make an RPC call to
>> >>> check if the user has a Google Account and if they do I will use the
>> Google
>> >>> Account ID to check to see if they have registered to use my
>> application. In
>> >>> response to these outcomes I will generate and return a payload to the
>> >>> client which the client can then use to determine its next course of
>> action.
>> >>>
>> >>> If the payload indicates the the user has registered then the member's
>> >>> view will be rendered to the browser. If the payload indicates that
>> they
>> >>> have a Google Account but haven't registered or it indicates that they
>> don't
>> >>> have a Google Account then the non members view will be rendered to
>> the
>> >>> browser. If the user has a Google Account then the non members view
>> will
>> >>> provide an option for the user to register. If the user doesn't have a
>> >>> Google Account it will provide a link to Google where they can
>> register
>> >>> which I am thinking would be the URL to sign up for Gmail though I
>> might
>> >>> look to automate this somewhat by using the User api to control the
>> >>> forwarding and return urls.
>> >>>
>> >>> Sound good to you?
>> >>>
>> >>> Jeff
>> >>>
>> >>> On Tue, Feb 1, 2011 at 11:55 AM, David Chandler <
>> drfibona...@google.com>
>> >>> wrote:
>> 
>>  Hi Jeff,
>>  I've been using Google Accounts for login in a GWT side project
>> without
>>  any trouble (granted, I'm a little biased :-) I choose Google auth
>> for
>>  exactly the reasons you mention. FYI, there are some classes in the
>> Expenses
>>  GWT sample app that implement login with Google Accounts on GAE.
>> 
>> 
>> http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/expenses/src/main/java/com/google/gwt/sample/gaerequest/
>>  /dmc
>>  On Tue, Feb 1, 2011 at 9:08 AM, Jeff Schwartz <
>> jefftschwa...@gmail.com>
>>  wrote:
>> >
>> > Hi all,
>> >
>> > I hope you don't mind me cross posting this to both the gwt and app
>> > engine groups since I'd really like to get the opinions of users on
>> both
>> > platforms.
>> >
>> > I'm in the middle of developing a gwt application on app engine. The
>> > application's security requirements are that non members, meaning
>> those that
>> > haven't registered, are restricted to viewing only the application's
>> public
>> > 'page'.
>> >
>> > What I de

Problem to set height in ScrollPanel in gwt 2.1.1

2011-02-01 Thread goolie
Hi,

I'm trying to update our project to gwt 2.1 but I have a problem with
the ScrollPanel.setHeight("100%") which doesn't seem to work. We have
the code:

myScrollPanel.add(myBigTable);
myScrollPanel.setHeight("100%");
initWidget(myScrollPanel);

which in 1.7.0 works fine but in 2.1.1 (or 2.1.0) doesn't work. See
image at http://www.agentinteractionsuite.se/diff_between_2.1.1_and_1.7.0.JPG
to clarify what I mean. The right hand side is correct and the left
hand is wrong. It seems like the scrollpanel won't get 100% height no
matter what I do. Have tried setting the height both with css and DOM
but nothing works. Removing the setHeight-line in the code above makes
it look the same (wrong) way with both versions.

Have I missed any essential information? Any ideas?

BR
Oskar

-- 
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: Selecting and disabling elements in CellTable

2011-02-01 Thread Jeff Schwartz
On Tue, Feb 1, 2011 at 3:38 PM, Greg Dougherty
wrote:

> Jeff:
>
> Column 1 : Column 2 ; Column 3
> Column 1 :Column 3
> Column 1 : Column 2 ; Column 3
>
> I thought you said column, Geg, not an individual row's cells and naturally
I took that then to mean all check boxes within a column. Is that what you
said or do I have a pencil sticking out of my head :)?

In any case it's now obvious what your intention is so here's one way to do
this but it is by no means the only way:

Iterate row by row through your cell table and for each row iterate through
each of its cells. If a cell contains a checkbox that needs to be disabled
then get the cell's inner html which will be a checkbox. Once you have the
checkbox just set it's enabled property to false or better yet hide the
checkbox by setting its display attribute to none.

There are numerous GWT methods that can assist you in iterating over the DOM
and in particular a table. For instance, I use TableElement often,
especially TableElement.as which assert that the given Element is compatible
with a TableElement and automatically typecast it. Once I have a valid
TableElement reference I can then get a reference to its rows by calling its
getRows method - just remember to compensate for any table header rows you
may have. Once you have a NodeList use its TableRowElements
to obtain the cells by calling it getCells method. Once you have the cells
you can then iterate over each one and do with them as you like.

Jeff

Jeff

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



Re: Developer Guide on writing with GWT a reusable javascript widget

2011-02-01 Thread Chris Conroy
Take a look at gwt-exporter: http://code.google.com/p/gwt-exporter/

On Tue, Feb 1, 2011 at 2:10 PM, Thomas Lefort  wrote:

> Me again, there doesn't seem to be much interest in generating
> reusable javascript widgets with GWT. If there is let me know, I'll
> try to write something about my (painful) experience on this subject.
> Anyway, I am now stuck on passing a Map argument to my widget. I use
> MapWidget in GWT and the Maps API v2 in the javascript part. I get a
> Class cast exception. I am unsure whether or not MapWidget is the
> right class to use.
> The function specific JSNI:
>
>  private static native void registerPlayMapFunctions(JavaScriptObject
> jso) /*-{
>jso.play = function(map) {
>  return
> this.gwt_widg...@com.metaaps.webapps.gwt.playmap.client.PlayMap
> ::play(Lcom/
> google/gwt/maps/client/MapWidget;)(map);
>}
>  }-*/;
> The javascript:
>var map = new GMap2(document.getElementById("map_canvas"));
>var playMap = new PlayMap();
>playMap.play(map);
>
> Any help would be highly appreciated.
>
> Thanks,
>
> Thomas
>
>
> On Feb 1, 1:26 pm, Thomas Lefort  wrote:
> > http://code.google.com/p/gwt-google-apis/wiki/VisualizationCustomVisu..
> .,
> > gives some insight BTW but you still have to check the code source
> > above. And then it looks like the html page will load in two stages in
> > any case, with the bootstrap. Might not be very optimum for small
> > widgets... I am already on 5k + 90k for a small widget that would
> > require just 5k in js. There has to be some optimisation left to be
> > done ;-)
> >
> > On Feb 1, 11:04 am, Thomas Lefort  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Looks like this is a pointer to start with:
> >
> > >http://code.google.com/p/gwt-google-apis/source/browse/trunk/visualiz.
> ..
> >
> > > No doc/guide found so far.
> >
> > > On Jan 31, 1:12 pm, Thomas Lefort  wrote:
> >
> > > > I want to write a widget with GWT that can be reused by a javascript
> > > > program (in its compiled form). Is there any guide on how to proceed,
> > > > eg which classes and methods will be exposed to the user?
> >
> > > > Thanks,
> >
> > > > Thomas
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Selecting and disabling elements in CellTable

2011-02-01 Thread Greg Dougherty
Jeff:

Column 1 : Column 2 ; Column 3
Column 1 :Column 3
Column 1 : Column 2 ; Column 3

Column 3 has just "jumped around".  It was at an X offset of 300, then
200, then 300

If I disable column 2, column 3 doesn't move.  If I hide column 2,
column 3 does move.  This makes hiding column 2 a BAD thing to do.

Column 2 is related to column 1.  It is NOT related to column 3.
Therefore, we cannot switch the order of columns 2 and 3 without
damaging the user's understanding of the data being presented by the
columns.

I do not, and will not, hard code the positions of user interface
elements.  I make a great deal of use of HorizontalPanel, and do not
use "Standard doctype" for anything (if / when GWT stops supporting
Quirks mode, I'll most likely stop upgrading GWT, because I can't
think of anything they might add that could be worth having to
explicitly tell everything where to go).

I've got three tables in an align left HorizontalPanel.  The center
table has one of the checkbox Column's that I'm concerned about.
Hiding / deleting / removing / not rendering that column causes the
table to its right to move.

All these things are the kind of reason why disabling controls was
invented way back in the early dawn of the GUI.  The question is does
GWT support that basic feature in CellTables?

Do you know the answer to that question?  If so, could you impart that
answer to the rest of us?

Greg


On Feb 1, 1:13 pm, Jeff Schwartz  wrote:
> On Tue, Feb 1, 2011 at 1:15 PM, Greg Dougherty
> wrote:
>
> > Ok, I've got two checkbox columns interspersed between other columns.
> > If I add and delete the checkbox columns based on the current user
> > selection in the first table, then other columns are going to be
> > jumping around.  No?
>
> Greg,
>
> Use GWT's Ajax abilities to dynamically render the other cell tables with or
> without the columns in question or instead just hide and show the columns
> accordingly . It is quite simple and I don't understand what you mean by
> 'then other columns are going to be jumping around. No?" No, they wont.
>
> Good luck.
>
> Jeff

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



any Tips on fine-tuning Packet Analyzers for GWT client-server communication ?

2011-02-01 Thread zixzigma
I was thinking of using a Packet Analyzer like Wireshark, to monitor what is 
being sent over the wire from client to server and back
when using GWT in development mode.

However I am getting all kinds of low level bits and have not been 
successful in applying some kind of filters,
to display only GWT related meaningful data. I activate "follow TCP Stream", 
but still its not easy to follow.

Do you have any tips on fine-tuning Packet-Analyzers for use with GWT 
client-server communication mechanisms ?

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: GWT 2.1 cell table paging bug?

2011-02-01 Thread Jeff Schwartz
On Tue, Feb 1, 2011 at 3:16 PM, zixzigma  wrote:

> I do not think this is a bug,
> and in fact I found the current implementation very desirable.
>
> your table always shows X number of rows per page, even if its the last
> page.
> with this implementation your table will always have the same height, and
> same number of rows.
> and you dont have to deal with cases where there is only 1 or two items in
> the last page,
> which might make your UI look inconsistent.
>

Unfortunately the paging mechanism in GWT v2.1 is inconsistent when using
the mouse and the keyboard to scroll a paged table. When using the mouse it
works the way you describe but when using the keyboard and scrolling down to
the last page you will *sometimes* get an 'odd' number of rows.


>
> I believe making the table to act this way is more difficult than
> traditional way of paging,
> because you have to do some range manipulation, check if its last page,
> and if so, display enough rows for table pageSize to be met. and GWT
> CellTable already does this.
>

Yes, I agree.

Jeff

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



-- 
*Jeff Schwartz*

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



GWT RPC Protocol details

2011-02-01 Thread RADE
Hi Everybody,

I've been looking for some documentation about GWT RPC Protocol
Details, and I haven't found big things.  My specific need is to know
how I can interpretate the sent messages from the client application
to the server side without using a GWT servlet.

Thanks a lot for your 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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT 2.1 cell table paging bug?

2011-02-01 Thread zixzigma
I do not think this is a bug,
and in fact I found the current implementation very desirable.

your table always shows X number of rows per page, even if its the last 
page.
with this implementation your table will always have the same height, and 
same number of rows.
and you dont have to deal with cases where there is only 1 or two items in 
the last page,
which might make your UI look inconsistent.

I believe making the table to act this way is more difficult than 
traditional way of paging,
because you have to do some range manipulation, check if its last page,
and if so, display enough rows for table pageSize to be met. and GWT 
CellTable already does 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: Considering using Google Accounts for authentication. Good idea?

2011-02-01 Thread Jeff Schwartz
On Tue, Feb 1, 2011 at 2:40 PM, Jeff Schnitzer  wrote:

> My $0.02:
>
>  * For most applications, third-party auth should be a no-brainer.
> "conversion" rates will go up when users don't have to create Yet
> Another Account, and more than make up for any tiny amount of
> unavailability you are likely to experience.
>
>
Yup!


>  * If your app is more "fun" and less "business", strongly consider
> Facebook auth.  It's a bit harder to implement but it's quite a bit
> more javascript friendly - you can perform auth without redirects,
> getting a javascript callback when login or logout happens.
>

The application is a rewrite of an application that I had written and
successfully marketed back in the early 2000s so it is definitely more
business than fun  - though it will be fun for me to make some money with it
(please please please lol) as it will be fun for me to see it providing a
service to its users.


> Jeff
>
> On Tue, Feb 1, 2011 at 10:44 AM, Jeff Schwartz 
> wrote:
> > I will explore both options and I will also take a look at the Expenses
> GWT
> > sample app you mentioned.
> >
> > Thanks!
> >
> > Jeff
> >
> > On Tue, Feb 1, 2011 at 1:24 PM, David Chandler 
> > wrote:
> >>
> >> Yes, this is workable, but note that login with Google Accounts requires
> a
> >> redirect to the Google Accounts login page. It may be easier (and more
> >> secure) to see if the user is logged in on the server side using a JSP
> or
> >> servlet filter, then redirect accordingly to the Google Accounts login
> page
> >> or your app's host page. But either way works.
> >> /dmc
> >>
> >> On Tue, Feb 1, 2011 at 12:14 PM, Jeff Schwartz  >
> >> wrote:
> >>>
> >>> Thanks, David. I would be the last person to think you are being biased
> >>> as I have come to respect Google above all other hi tech companies out
> >>> there. If I were offered an opportunity to work for Google I would jump
> at
> >>> it :)
> >>>
> >>> I've read all the documentation that Google provides regarding using
> >>> Google Accounts for authentication. I think the following scenario will
> >>> suffice for my use case:
> >>>
> >>> In my application's EntryPoint I will immediately make an RPC call to
> >>> check if the user has a Google Account and if they do I will use the
> Google
> >>> Account ID to check to see if they have registered to use my
> application. In
> >>> response to these outcomes I will generate and return a payload to the
> >>> client which the client can then use to determine its next course of
> action.
> >>>
> >>> If the payload indicates the the user has registered then the member's
> >>> view will be rendered to the browser. If the payload indicates that
> they
> >>> have a Google Account but haven't registered or it indicates that they
> don't
> >>> have a Google Account then the non members view will be rendered to the
> >>> browser. If the user has a Google Account then the non members view
> will
> >>> provide an option for the user to register. If the user doesn't have a
> >>> Google Account it will provide a link to Google where they can register
> >>> which I am thinking would be the URL to sign up for Gmail though I
> might
> >>> look to automate this somewhat by using the User api to control the
> >>> forwarding and return urls.
> >>>
> >>> Sound good to you?
> >>>
> >>> Jeff
> >>>
> >>> On Tue, Feb 1, 2011 at 11:55 AM, David Chandler <
> drfibona...@google.com>
> >>> wrote:
> 
>  Hi Jeff,
>  I've been using Google Accounts for login in a GWT side project
> without
>  any trouble (granted, I'm a little biased :-) I choose Google auth for
>  exactly the reasons you mention. FYI, there are some classes in the
> Expenses
>  GWT sample app that implement login with Google Accounts on GAE.
> 
> 
> http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/expenses/src/main/java/com/google/gwt/sample/gaerequest/
>  /dmc
>  On Tue, Feb 1, 2011 at 9:08 AM, Jeff Schwartz <
> jefftschwa...@gmail.com>
>  wrote:
> >
> > Hi all,
> >
> > I hope you don't mind me cross posting this to both the gwt and app
> > engine groups since I'd really like to get the opinions of users on
> both
> > platforms.
> >
> > I'm in the middle of developing a gwt application on app engine. The
> > application's security requirements are that non members, meaning
> those that
> > haven't registered, are restricted to viewing only the application's
> public
> > 'page'.
> >
> > What I developed for authentication is home grown using my own login
> > form, client side cookies and a User entity with password and email
> address
> > stored in the application's data store. While my home grown
> implementation
> > works perfectly I am not comfortable with the security implications
> of
> > cookies and passing raw passwords to the server to authenticate my
> users. I
> > also can not use SSL at this time as financial constraints
> unfortunately

Re: Considering using Google Accounts for authentication. Good idea?

2011-02-01 Thread David Chandler
Better still, you can use GAE OAuth support to support a large number of
third-party logins. There's a nice tutorial on GWT+GAE integration with
Facebook and Twitter in the book I recently reviewed on my personal blog:

http://turbomanage.wordpress.com/2011/01/31/new-gwtgae-book/

/dmc

On Tue, Feb 1, 2011 at 2:40 PM, Jeff Schnitzer  wrote:

> My $0.02:
>
>  * For most applications, third-party auth should be a no-brainer.
> "conversion" rates will go up when users don't have to create Yet
> Another Account, and more than make up for any tiny amount of
> unavailability you are likely to experience.
>
>  * If your app is more "fun" and less "business", strongly consider
> Facebook auth.  It's a bit harder to implement but it's quite a bit
> more javascript friendly - you can perform auth without redirects,
> getting a javascript callback when login or logout happens.
>
> Jeff
>
> On Tue, Feb 1, 2011 at 10:44 AM, Jeff Schwartz 
> wrote:
> > I will explore both options and I will also take a look at the Expenses
> GWT
> > sample app you mentioned.
> >
> > Thanks!
> >
> > Jeff
> >
> > On Tue, Feb 1, 2011 at 1:24 PM, David Chandler 
> > wrote:
> >>
> >> Yes, this is workable, but note that login with Google Accounts requires
> a
> >> redirect to the Google Accounts login page. It may be easier (and more
> >> secure) to see if the user is logged in on the server side using a JSP
> or
> >> servlet filter, then redirect accordingly to the Google Accounts login
> page
> >> or your app's host page. But either way works.
> >> /dmc
> >>
> >> On Tue, Feb 1, 2011 at 12:14 PM, Jeff Schwartz  >
> >> wrote:
> >>>
> >>> Thanks, David. I would be the last person to think you are being biased
> >>> as I have come to respect Google above all other hi tech companies out
> >>> there. If I were offered an opportunity to work for Google I would jump
> at
> >>> it :)
> >>>
> >>> I've read all the documentation that Google provides regarding using
> >>> Google Accounts for authentication. I think the following scenario will
> >>> suffice for my use case:
> >>>
> >>> In my application's EntryPoint I will immediately make an RPC call to
> >>> check if the user has a Google Account and if they do I will use the
> Google
> >>> Account ID to check to see if they have registered to use my
> application. In
> >>> response to these outcomes I will generate and return a payload to the
> >>> client which the client can then use to determine its next course of
> action.
> >>>
> >>> If the payload indicates the the user has registered then the member's
> >>> view will be rendered to the browser. If the payload indicates that
> they
> >>> have a Google Account but haven't registered or it indicates that they
> don't
> >>> have a Google Account then the non members view will be rendered to the
> >>> browser. If the user has a Google Account then the non members view
> will
> >>> provide an option for the user to register. If the user doesn't have a
> >>> Google Account it will provide a link to Google where they can register
> >>> which I am thinking would be the URL to sign up for Gmail though I
> might
> >>> look to automate this somewhat by using the User api to control the
> >>> forwarding and return urls.
> >>>
> >>> Sound good to you?
> >>>
> >>> Jeff
> >>>
> >>> On Tue, Feb 1, 2011 at 11:55 AM, David Chandler <
> drfibona...@google.com>
> >>> wrote:
> 
>  Hi Jeff,
>  I've been using Google Accounts for login in a GWT side project
> without
>  any trouble (granted, I'm a little biased :-) I choose Google auth for
>  exactly the reasons you mention. FYI, there are some classes in the
> Expenses
>  GWT sample app that implement login with Google Accounts on GAE.
> 
> 
> http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/expenses/src/main/java/com/google/gwt/sample/gaerequest/
>  /dmc
>  On Tue, Feb 1, 2011 at 9:08 AM, Jeff Schwartz <
> jefftschwa...@gmail.com>
>  wrote:
> >
> > Hi all,
> >
> > I hope you don't mind me cross posting this to both the gwt and app
> > engine groups since I'd really like to get the opinions of users on
> both
> > platforms.
> >
> > I'm in the middle of developing a gwt application on app engine. The
> > application's security requirements are that non members, meaning
> those that
> > haven't registered, are restricted to viewing only the application's
> public
> > 'page'.
> >
> > What I developed for authentication is home grown using my own login
> > form, client side cookies and a User entity with password and email
> address
> > stored in the application's data store. While my home grown
> implementation
> > works perfectly I am not comfortable with the security implications
> of
> > cookies and passing raw passwords to the server to authenticate my
> users. I
> > also can not use SSL at this time as financial constraints
> unfortunately
> > prohibit any expenditures on t

Re: Considering using Google Accounts for authentication. Good idea?

2011-02-01 Thread Jeff Schnitzer
My $0.02:

 * For most applications, third-party auth should be a no-brainer.
"conversion" rates will go up when users don't have to create Yet
Another Account, and more than make up for any tiny amount of
unavailability you are likely to experience.

 * If your app is more "fun" and less "business", strongly consider
Facebook auth.  It's a bit harder to implement but it's quite a bit
more javascript friendly - you can perform auth without redirects,
getting a javascript callback when login or logout happens.

Jeff

On Tue, Feb 1, 2011 at 10:44 AM, Jeff Schwartz  wrote:
> I will explore both options and I will also take a look at the Expenses GWT
> sample app you mentioned.
>
> Thanks!
>
> Jeff
>
> On Tue, Feb 1, 2011 at 1:24 PM, David Chandler 
> wrote:
>>
>> Yes, this is workable, but note that login with Google Accounts requires a
>> redirect to the Google Accounts login page. It may be easier (and more
>> secure) to see if the user is logged in on the server side using a JSP or
>> servlet filter, then redirect accordingly to the Google Accounts login page
>> or your app's host page. But either way works.
>> /dmc
>>
>> On Tue, Feb 1, 2011 at 12:14 PM, Jeff Schwartz 
>> wrote:
>>>
>>> Thanks, David. I would be the last person to think you are being biased
>>> as I have come to respect Google above all other hi tech companies out
>>> there. If I were offered an opportunity to work for Google I would jump at
>>> it :)
>>>
>>> I've read all the documentation that Google provides regarding using
>>> Google Accounts for authentication. I think the following scenario will
>>> suffice for my use case:
>>>
>>> In my application's EntryPoint I will immediately make an RPC call to
>>> check if the user has a Google Account and if they do I will use the Google
>>> Account ID to check to see if they have registered to use my application. In
>>> response to these outcomes I will generate and return a payload to the
>>> client which the client can then use to determine its next course of action.
>>>
>>> If the payload indicates the the user has registered then the member's
>>> view will be rendered to the browser. If the payload indicates that they
>>> have a Google Account but haven't registered or it indicates that they don't
>>> have a Google Account then the non members view will be rendered to the
>>> browser. If the user has a Google Account then the non members view will
>>> provide an option for the user to register. If the user doesn't have a
>>> Google Account it will provide a link to Google where they can register
>>> which I am thinking would be the URL to sign up for Gmail though I might
>>> look to automate this somewhat by using the User api to control the
>>> forwarding and return urls.
>>>
>>> Sound good to you?
>>>
>>> Jeff
>>>
>>> On Tue, Feb 1, 2011 at 11:55 AM, David Chandler 
>>> wrote:

 Hi Jeff,
 I've been using Google Accounts for login in a GWT side project without
 any trouble (granted, I'm a little biased :-) I choose Google auth for
 exactly the reasons you mention. FYI, there are some classes in the 
 Expenses
 GWT sample app that implement login with Google Accounts on GAE.

 http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/expenses/src/main/java/com/google/gwt/sample/gaerequest/
 /dmc
 On Tue, Feb 1, 2011 at 9:08 AM, Jeff Schwartz 
 wrote:
>
> Hi all,
>
> I hope you don't mind me cross posting this to both the gwt and app
> engine groups since I'd really like to get the opinions of users on both
> platforms.
>
> I'm in the middle of developing a gwt application on app engine. The
> application's security requirements are that non members, meaning those 
> that
> haven't registered, are restricted to viewing only the application's 
> public
> 'page'.
>
> What I developed for authentication is home grown using my own login
> form, client side cookies and a User entity with password and email 
> address
> stored in the application's data store. While my home grown implementation
> works perfectly I am not comfortable with the security implications of
> cookies and passing raw passwords to the server to authenticate my users. 
> I
> also can not use SSL at this time as financial constraints unfortunately
> prohibit any expenditures on this project.
>
> As I place my users' privacy and security above all else I am therefore
> looking to implement a better solution; one that would if possible 
> eliminate
> my responsibility altogether of having to store cookies and passwords and
> transport them via HTTP when authenticating.
>
> One alternative that I am currently considering is using Google
> Accounts to authenticate my users along with my own User entity that would
> store the additional information users must provide when registering to 
> use
> the services of my application. My 

Re: GPE + maven

2011-02-01 Thread David Chandler
Thanks, Hari, I'll give some thought to an updated maven guide--good idea.

In order for GPE to read your POM and auto-configure GWT/GAE SDKs, m2eclipse
is required. However, if you don't need GPE, you can always run mvn
eclipse:eclipse and import the project as a regular Eclipse project.

/dmc

On Tue, Feb 1, 2011 at 1:52 PM, har_shan  wrote:

> Also, few quick questions.
>
> What if i don't use m2eclipse at all and just import the project and
> use. (atleast until above mentioned issue gets resolved for me)
> Will i able to use GPE + maven capabilities even then i.e. for e.g.
> will it read my POM and update it's SDKs to use as you said?
>
> Also what are *all* the newly added capabilities of GPE to assist us
> in maven environment.
>
> It would be really great
> i. if the prev useful blog post (GPE + maven) is updated to date
> ii. if you point to any post/doc that has relevant info so that i keep
> in mind any convention i need to follow to take advantage of all GPE +
> maven capabilities
>
> Thanks much again!
> Hari
>
> On Feb 1, 3:18 am, David Chandler  wrote:
> > It's no longer required. Since GPE 2.1, you can File | Import | Existing
> > maven project, point it to your POM, and everything should just work.
> >
> > /dmc
> >
> > On Sat, Jan 29, 2011 at 3:27 PM, Thomas Broyer 
> wrote:
> > > No, that's no longer required (since GPE 1.4 I believe), the GPE should
> no
> > > longer add the SDKs to your classpath but use the one from your Maven
> > > dependencies.
> >
> > > --
> > > 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.
> >
> > --
> > David Chandler
> > Developer Programs Engineer, Google Web Toolkit
> > w:http://code.google.com/
> > b:http://googlewebtoolkit.blogspot.com/
> > t: @googledevtools
>
> --
> 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.
>
>


-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

-- 
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: Selecting and disabling elements in CellTable

2011-02-01 Thread Jeff Schwartz
On Tue, Feb 1, 2011 at 1:15 PM, Greg Dougherty
wrote:

> Ok, I've got two checkbox columns interspersed between other columns.
> If I add and delete the checkbox columns based on the current user
> selection in the first table, then other columns are going to be
> jumping around.  No?
>

Greg,

Use GWT's Ajax abilities to dynamically render the other cell tables with or
without the columns in question or instead just hide and show the columns
accordingly . It is quite simple and I don't understand what you mean by
'then other columns are going to be jumping around. No?" No, they wont.


Good luck.

Jeff

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



Re: Developer Guide on writing with GWT a reusable javascript widget

2011-02-01 Thread Thomas Lefort
Me again, there doesn't seem to be much interest in generating
reusable javascript widgets with GWT. If there is let me know, I'll
try to write something about my (painful) experience on this subject.
Anyway, I am now stuck on passing a Map argument to my widget. I use
MapWidget in GWT and the Maps API v2 in the javascript part. I get a
Class cast exception. I am unsure whether or not MapWidget is the
right class to use.
The function specific JSNI:

  private static native void registerPlayMapFunctions(JavaScriptObject
jso) /*-{
jso.play = function(map) {
  return
this.gwt_widg...@com.metaaps.webapps.gwt.playmap.client.PlayMap::play(Lcom/
google/gwt/maps/client/MapWidget;)(map);
}
  }-*/;
The javascript:
var map = new GMap2(document.getElementById("map_canvas"));
var playMap = new PlayMap();
playMap.play(map);

Any help would be highly appreciated.

Thanks,

Thomas


On Feb 1, 1:26 pm, Thomas Lefort  wrote:
> http://code.google.com/p/gwt-google-apis/wiki/VisualizationCustomVisu...,
> gives some insight BTW but you still have to check the code source
> above. And then it looks like the html page will load in two stages in
> any case, with the bootstrap. Might not be very optimum for small
> widgets... I am already on 5k + 90k for a small widget that would
> require just 5k in js. There has to be some optimisation left to be
> done ;-)
>
> On Feb 1, 11:04 am, Thomas Lefort  wrote:
>
>
>
>
>
>
>
> > Looks like this is a pointer to start with:
>
> >http://code.google.com/p/gwt-google-apis/source/browse/trunk/visualiz...
>
> > No doc/guide found so far.
>
> > On Jan 31, 1:12 pm, Thomas Lefort  wrote:
>
> > > I want to write a widget with GWT that can be reused by a javascript
> > > program (in its compiled form). Is there any guide on how to proceed,
> > > eg which classes and methods will be exposed to the user?
>
> > > Thanks,
>
> > > Thomas

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



Re: GPE + maven

2011-02-01 Thread har_shan
Also, few quick questions.

What if i don't use m2eclipse at all and just import the project and
use. (atleast until above mentioned issue gets resolved for me)
Will i able to use GPE + maven capabilities even then i.e. for e.g.
will it read my POM and update it's SDKs to use as you said?

Also what are *all* the newly added capabilities of GPE to assist us
in maven environment.

It would be really great
i. if the prev useful blog post (GPE + maven) is updated to date
ii. if you point to any post/doc that has relevant info so that i keep
in mind any convention i need to follow to take advantage of all GPE +
maven capabilities

Thanks much again!
Hari

On Feb 1, 3:18 am, David Chandler  wrote:
> It's no longer required. Since GPE 2.1, you can File | Import | Existing
> maven project, point it to your POM, and everything should just work.
>
> /dmc
>
> On Sat, Jan 29, 2011 at 3:27 PM, Thomas Broyer  wrote:
> > No, that's no longer required (since GPE 1.4 I believe), the GPE should no
> > longer add the SDKs to your classpath but use the one from your Maven
> > dependencies.
>
> > --
> > 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.
>
> --
> David Chandler
> Developer Programs Engineer, Google Web Toolkit
> w:http://code.google.com/
> b:http://googlewebtoolkit.blogspot.com/
> t: @googledevtools

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



GWT IE9 Status

2011-02-01 Thread Jim Douglas
Are there any updates on when GWT is expected to support IE9?

http://code.google.com/p/google-web-toolkit/issues/detail?id=5125
http://code.google.com/p/google-web-toolkit/issues/list?q=ie9

FWIW, the current rumours seem to be pointing to RC1 next Thursday and
the official release in March or April.

-- 
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: Considering using Google Accounts for authentication. Good idea?

2011-02-01 Thread Jeff Schwartz
I will explore both options and I will also take a look at the Expenses GWT
sample app you mentioned.

Thanks!

Jeff

On Tue, Feb 1, 2011 at 1:24 PM, David Chandler wrote:

> Yes, this is workable, but note that login with Google Accounts requires a
> redirect to the Google Accounts login page. It may be easier (and more
> secure) to see if the user is logged in on the server side using a JSP or
> servlet filter, then redirect accordingly to the Google Accounts login page
> or your app's host page. But either way works.
>
> /dmc
>
>
> On Tue, Feb 1, 2011 at 12:14 PM, Jeff Schwartz wrote:
>
>> Thanks, David. I would be the last person to think you are being biased as
>> I have come to respect Google above all other hi tech companies out there.
>> If I were offered an opportunity to work for Google I would jump at it :)
>>
>> I've read all the documentation that Google provides regarding using
>> Google Accounts for authentication. I think the following scenario will
>> suffice for my use case:
>>
>> In my application's EntryPoint I will immediately make an RPC call to
>> check if the user has a Google Account and if they do I will use the Google
>> Account ID to check to see if they have registered to use my application. In
>> response to these outcomes I will generate and return a payload to the
>> client which the client can then use to determine its next course of action.
>>
>>
>> If the payload indicates the the user has registered then the member's
>> view will be rendered to the browser. If the payload indicates that they
>> have a Google Account but haven't registered or it indicates that they don't
>> have a Google Account then the non members view will be rendered to the
>> browser. If the user has a Google Account then the non members view will
>> provide an option for the user to register. If the user doesn't have a
>> Google Account it will provide a link to Google where they can register
>> which I am thinking would be the URL to sign up for Gmail though I might
>> look to automate this somewhat by using the User api to control the
>> forwarding and return urls.
>>
>> Sound good to you?
>>
>> Jeff
>>
>>
>> On Tue, Feb 1, 2011 at 11:55 AM, David Chandler 
>> wrote:
>>
>>> Hi Jeff,
>>>
>>> I've been using Google Accounts for login in a GWT side project without
>>> any trouble (granted, I'm a little biased :-) I choose Google auth for
>>> exactly the reasons you mention. FYI, there are some classes in the Expenses
>>> GWT sample app that implement login with Google Accounts on GAE.
>>>
>>>
>>> http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/expenses/src/main/java/com/google/gwt/sample/gaerequest/
>>>
>>> /dmc
>>>
>>> On Tue, Feb 1, 2011 at 9:08 AM, Jeff Schwartz 
>>> wrote:
>>>
 Hi all,

 I hope you don't mind me cross posting this to both the gwt and app
 engine groups since I'd really like to get the opinions of users on both
 platforms.

 I'm in the middle of developing a gwt application on app engine. The
 application's security requirements are that non members, meaning those 
 that
 haven't registered, are restricted to viewing only the application's public
 'page'.

 What I developed for authentication is home grown using my own login
 form, client side cookies and a User entity with password and email address
 stored in the application's data store. While my home grown implementation
 works perfectly I am not comfortable with the security implications of
 cookies and passing raw passwords to the server to authenticate my users. I
 also can not use SSL at this time as financial constraints unfortunately
 prohibit any expenditures on this project.

 As I place my users' privacy and security above all else I am therefore
 looking to implement a better solution; one that would if possible 
 eliminate
 my responsibility altogether of having to store cookies and passwords and
 transport them via HTTP when authenticating.

 One alternative that I am currently considering is using Google Accounts
 to authenticate my users along with my own User entity that would store the
 additional information users must provide when registering to use the
 services of my application. My User entity (not to be confused with the 
 User
 object provided by the User API) would store the user's Google Account ID
 and would provide the ability to determine if a user is registered simply 
 by
 querying for their Google Accounts ID in my datastore. It would eliminate
 having to store client side cookies and sending raw passwords to the 
 server.
 So far it seems like a win-win proposition as it appears to satisfy all my
 use cases.

 For those who already use Google Accounts for user authentication are
 you happy with the service? How about the services' availability track
 record and does it provide the security you had hoped

Re: GPE + maven

2011-02-01 Thread David Chandler
Hari,

Here's a sample POM with GWT+GAE+Objectify, not much else:

http://code.google.com/p/listwidget/source/browse/trunk/pom.xml

/dmc

On Tue, Feb 1, 2011 at 1:24 PM, har_shan  wrote:

> Thanks for the update, Thomas and David.
>
> As suggested, I tried importing as maven project into a fresh eclipse
> workspace, but am hitting an annoying issue:
>
> m2eclipse infinitely seems to build my project (even when i don't
> touch any file) and datanucleus enhancement happens.
>
> I actually took the sample POM ref by the prev mentioned blog post and
> customized it to suit my needs
> GWT 2.2-GA1
> GAE 1.4.0
> Removed JPA/JDO stuff, added Objectify
> some other proj specific alterations
>
> If some one had faced this issue and if this might relate to some
> mistake that i would have done in my POM, please help.
> I shall post sections of my POM if needed. am clueless and i shall try
> posting in m2eclipse group as well.
>
> Thanks again,
> Hari
>
> On Feb 1, 3:18 am, David Chandler  wrote:
> > It's no longer required. Since GPE 2.1, you can File | Import | Existing
> > maven project, point it to your POM, and everything should just work.
> >
> > /dmc
> >
> > On Sat, Jan 29, 2011 at 3:27 PM, Thomas Broyer 
> wrote:
> > > No, that's no longer required (since GPE 1.4 I believe), the GPE should
> no
> > > longer add the SDKs to your classpath but use the one from your Maven
> > > dependencies.
> >
> > > --
> > > 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.
> >
> > --
> > David Chandler
> > Developer Programs Engineer, Google Web Toolkit
> > w:http://code.google.com/
> > b:http://googlewebtoolkit.blogspot.com/
> > t: @googledevtools
>
> --
> 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.
>
>


-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

-- 
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: Considering using Google Accounts for authentication. Good idea?

2011-02-01 Thread David Chandler
Yes, this is workable, but note that login with Google Accounts requires a
redirect to the Google Accounts login page. It may be easier (and more
secure) to see if the user is logged in on the server side using a JSP or
servlet filter, then redirect accordingly to the Google Accounts login page
or your app's host page. But either way works.

/dmc

On Tue, Feb 1, 2011 at 12:14 PM, Jeff Schwartz wrote:

> Thanks, David. I would be the last person to think you are being biased as
> I have come to respect Google above all other hi tech companies out there.
> If I were offered an opportunity to work for Google I would jump at it :)
>
> I've read all the documentation that Google provides regarding using Google
> Accounts for authentication. I think the following scenario will suffice for
> my use case:
>
> In my application's EntryPoint I will immediately make an RPC call to check
> if the user has a Google Account and if they do I will use the Google
> Account ID to check to see if they have registered to use my application. In
> response to these outcomes I will generate and return a payload to the
> client which the client can then use to determine its next course of action.
>
>
> If the payload indicates the the user has registered then the member's view
> will be rendered to the browser. If the payload indicates that they have a
> Google Account but haven't registered or it indicates that they don't have a
> Google Account then the non members view will be rendered to the browser. If
> the user has a Google Account then the non members view will provide an
> option for the user to register. If the user doesn't have a Google Account
> it will provide a link to Google where they can register which I am thinking
> would be the URL to sign up for Gmail though I might look to automate this
> somewhat by using the User api to control the forwarding and return urls.
>
> Sound good to you?
>
> Jeff
>
>
> On Tue, Feb 1, 2011 at 11:55 AM, David Chandler wrote:
>
>> Hi Jeff,
>>
>> I've been using Google Accounts for login in a GWT side project without
>> any trouble (granted, I'm a little biased :-) I choose Google auth for
>> exactly the reasons you mention. FYI, there are some classes in the Expenses
>> GWT sample app that implement login with Google Accounts on GAE.
>>
>>
>> http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/expenses/src/main/java/com/google/gwt/sample/gaerequest/
>>
>> /dmc
>>
>> On Tue, Feb 1, 2011 at 9:08 AM, Jeff Schwartz wrote:
>>
>>> Hi all,
>>>
>>> I hope you don't mind me cross posting this to both the gwt and app
>>> engine groups since I'd really like to get the opinions of users on both
>>> platforms.
>>>
>>> I'm in the middle of developing a gwt application on app engine. The
>>> application's security requirements are that non members, meaning those that
>>> haven't registered, are restricted to viewing only the application's public
>>> 'page'.
>>>
>>> What I developed for authentication is home grown using my own login
>>> form, client side cookies and a User entity with password and email address
>>> stored in the application's data store. While my home grown implementation
>>> works perfectly I am not comfortable with the security implications of
>>> cookies and passing raw passwords to the server to authenticate my users. I
>>> also can not use SSL at this time as financial constraints unfortunately
>>> prohibit any expenditures on this project.
>>>
>>> As I place my users' privacy and security above all else I am therefore
>>> looking to implement a better solution; one that would if possible eliminate
>>> my responsibility altogether of having to store cookies and passwords and
>>> transport them via HTTP when authenticating.
>>>
>>> One alternative that I am currently considering is using Google Accounts
>>> to authenticate my users along with my own User entity that would store the
>>> additional information users must provide when registering to use the
>>> services of my application. My User entity (not to be confused with the User
>>> object provided by the User API) would store the user's Google Account ID
>>> and would provide the ability to determine if a user is registered simply by
>>> querying for their Google Accounts ID in my datastore. It would eliminate
>>> having to store client side cookies and sending raw passwords to the server.
>>> So far it seems like a win-win proposition as it appears to satisfy all my
>>> use cases.
>>>
>>> For those who already use Google Accounts for user authentication are you
>>> happy with the service? How about the services' availability track record
>>> and does it provide the security you had hoped it would?
>>>
>>> For those using Google Accounts along with GWT have you found any
>>> specific issues related to using it with GWT (I am using RPC BTW) that you
>>> can relate?
>>>
>>> I am looking forward to reading your feedback and responses and thanks in
>>> advance.
>>>
>>> Jeff
>>>
>>>
>>>
>>>
>>> --
>>> *Je

Re: GPE + maven

2011-02-01 Thread har_shan
Thanks for the update, Thomas and David.

As suggested, I tried importing as maven project into a fresh eclipse
workspace, but am hitting an annoying issue:

m2eclipse infinitely seems to build my project (even when i don't
touch any file) and datanucleus enhancement happens.

I actually took the sample POM ref by the prev mentioned blog post and
customized it to suit my needs
GWT 2.2-GA1
GAE 1.4.0
Removed JPA/JDO stuff, added Objectify
some other proj specific alterations

If some one had faced this issue and if this might relate to some
mistake that i would have done in my POM, please help.
I shall post sections of my POM if needed. am clueless and i shall try
posting in m2eclipse group as well.

Thanks again,
Hari

On Feb 1, 3:18 am, David Chandler  wrote:
> It's no longer required. Since GPE 2.1, you can File | Import | Existing
> maven project, point it to your POM, and everything should just work.
>
> /dmc
>
> On Sat, Jan 29, 2011 at 3:27 PM, Thomas Broyer  wrote:
> > No, that's no longer required (since GPE 1.4 I believe), the GPE should no
> > longer add the SDKs to your classpath but use the one from your Maven
> > dependencies.
>
> > --
> > 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.
>
> --
> David Chandler
> Developer Programs Engineer, Google Web Toolkit
> w:http://code.google.com/
> b:http://googlewebtoolkit.blogspot.com/
> t: @googledevtools

-- 
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: Selecting and disabling elements in CellTable

2011-02-01 Thread Greg Dougherty
Ok, I've got two checkbox columns interspersed between other columns.
If I add and delete the checkbox columns based on the current user
selection in the first table, then other columns are going to be
jumping around.  No?

Which takes us back to "controls moving around, destroying ability to
use muscle memory."  Which is I find that solution unacceptable.

So, is it possible for me to enable or disable controls in a column in
a CellTable?  Or does GWT lack that feature?

Greg

On Feb 1, 10:20 am, Jeff Schwartz  wrote:
> On Tue, Feb 1, 2011 at 11:06 AM, Greg Dougherty
> wrote:
>
> > Jeff,
>
> > > Don't move the check boxes, just don't render them.
>
> > So, you're saying when the user selects a group they do not own, I
> > should make the checkboxes disappear, leaving me with an empty column
>
> Hi Greg,
>
> We all have very strong beliefs when it comes to UI so I hope you understand
> that I am not trying to convert you over to my point of view. But to answer
> your question, no, I am not saying leave an empty column. I am saying don't
> display the column.
>
> Jeff

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



Re: Firefox Plugin for GWT not downloading

2011-02-01 Thread Noor

Thanks Google:GWT Team!!!

-- 
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: Considering using Google Accounts for authentication. Good idea?

2011-02-01 Thread Jeff Schwartz
Thanks, David. I would be the last person to think you are being biased as I
have come to respect Google above all other hi tech companies out there. If
I were offered an opportunity to work for Google I would jump at it :)

I've read all the documentation that Google provides regarding using Google
Accounts for authentication. I think the following scenario will suffice for
my use case:

In my application's EntryPoint I will immediately make an RPC call to check
if the user has a Google Account and if they do I will use the Google
Account ID to check to see if they have registered to use my application. In
response to these outcomes I will generate and return a payload to the
client which the client can then use to determine its next course of action.


If the payload indicates the the user has registered then the member's view
will be rendered to the browser. If the payload indicates that they have a
Google Account but haven't registered or it indicates that they don't have a
Google Account then the non members view will be rendered to the browser. If
the user has a Google Account then the non members view will provide an
option for the user to register. If the user doesn't have a Google Account
it will provide a link to Google where they can register which I am thinking
would be the URL to sign up for Gmail though I might look to automate this
somewhat by using the User api to control the forwarding and return urls.

Sound good to you?

Jeff

On Tue, Feb 1, 2011 at 11:55 AM, David Chandler wrote:

> Hi Jeff,
>
> I've been using Google Accounts for login in a GWT side project without any
> trouble (granted, I'm a little biased :-) I choose Google auth for exactly
> the reasons you mention. FYI, there are some classes in the Expenses GWT
> sample app that implement login with Google Accounts on GAE.
>
>
> http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/expenses/src/main/java/com/google/gwt/sample/gaerequest/
>
> /dmc
>
> On Tue, Feb 1, 2011 at 9:08 AM, Jeff Schwartz wrote:
>
>> Hi all,
>>
>> I hope you don't mind me cross posting this to both the gwt and app engine
>> groups since I'd really like to get the opinions of users on both platforms.
>>
>> I'm in the middle of developing a gwt application on app engine. The
>> application's security requirements are that non members, meaning those that
>> haven't registered, are restricted to viewing only the application's public
>> 'page'.
>>
>> What I developed for authentication is home grown using my own login form,
>> client side cookies and a User entity with password and email address stored
>> in the application's data store. While my home grown implementation works
>> perfectly I am not comfortable with the security implications of cookies and
>> passing raw passwords to the server to authenticate my users. I also can not
>> use SSL at this time as financial constraints unfortunately prohibit any
>> expenditures on this project.
>>
>> As I place my users' privacy and security above all else I am therefore
>> looking to implement a better solution; one that would if possible eliminate
>> my responsibility altogether of having to store cookies and passwords and
>> transport them via HTTP when authenticating.
>>
>> One alternative that I am currently considering is using Google Accounts
>> to authenticate my users along with my own User entity that would store the
>> additional information users must provide when registering to use the
>> services of my application. My User entity (not to be confused with the User
>> object provided by the User API) would store the user's Google Account ID
>> and would provide the ability to determine if a user is registered simply by
>> querying for their Google Accounts ID in my datastore. It would eliminate
>> having to store client side cookies and sending raw passwords to the server.
>> So far it seems like a win-win proposition as it appears to satisfy all my
>> use cases.
>>
>> For those who already use Google Accounts for user authentication are you
>> happy with the service? How about the services' availability track record
>> and does it provide the security you had hoped it would?
>>
>> For those using Google Accounts along with GWT have you found any specific
>> issues related to using it with GWT (I am using RPC BTW) that you can
>> relate?
>>
>> I am looking forward to reading your feedback and responses and thanks in
>> advance.
>>
>> Jeff
>>
>>
>>
>>
>> --
>> *Jeff Schwartz*
>>
>>  --
>> 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.
>>
>
>
>
> --
> David Chandler
> Developer Programs Engineer, Google Web Toolkit
> w: http://code.google.com/
> b: ht

Re: Considering using Google Accounts for authentication. Good idea?

2011-02-01 Thread David Chandler
Hi Jeff,

I've been using Google Accounts for login in a GWT side project without any
trouble (granted, I'm a little biased :-) I choose Google auth for exactly
the reasons you mention. FYI, there are some classes in the Expenses GWT
sample app that implement login with Google Accounts on GAE.

http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/expenses/src/main/java/com/google/gwt/sample/gaerequest/

/dmc

On Tue, Feb 1, 2011 at 9:08 AM, Jeff Schwartz wrote:

> Hi all,
>
> I hope you don't mind me cross posting this to both the gwt and app engine
> groups since I'd really like to get the opinions of users on both platforms.
>
> I'm in the middle of developing a gwt application on app engine. The
> application's security requirements are that non members, meaning those that
> haven't registered, are restricted to viewing only the application's public
> 'page'.
>
> What I developed for authentication is home grown using my own login form,
> client side cookies and a User entity with password and email address stored
> in the application's data store. While my home grown implementation works
> perfectly I am not comfortable with the security implications of cookies and
> passing raw passwords to the server to authenticate my users. I also can not
> use SSL at this time as financial constraints unfortunately prohibit any
> expenditures on this project.
>
> As I place my users' privacy and security above all else I am therefore
> looking to implement a better solution; one that would if possible eliminate
> my responsibility altogether of having to store cookies and passwords and
> transport them via HTTP when authenticating.
>
> One alternative that I am currently considering is using Google Accounts to
> authenticate my users along with my own User entity that would store the
> additional information users must provide when registering to use the
> services of my application. My User entity (not to be confused with the User
> object provided by the User API) would store the user's Google Account ID
> and would provide the ability to determine if a user is registered simply by
> querying for their Google Accounts ID in my datastore. It would eliminate
> having to store client side cookies and sending raw passwords to the server.
> So far it seems like a win-win proposition as it appears to satisfy all my
> use cases.
>
> For those who already use Google Accounts for user authentication are you
> happy with the service? How about the services' availability track record
> and does it provide the security you had hoped it would?
>
> For those using Google Accounts along with GWT have you found any specific
> issues related to using it with GWT (I am using RPC BTW) that you can
> relate?
>
> I am looking forward to reading your feedback and responses and thanks in
> advance.
>
> Jeff
>
>
>
>
> --
> *Jeff Schwartz*
>
>  --
> 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.
>



-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

-- 
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: Sharing objects between several windows to enable interaction

2011-02-01 Thread Jeff Schwartz
If I were dealing with as dense an amount of data as you seem to be dealing
with I'd look to use 1 physical window with possibly multiple view ports to
present it all. Just MHO and YMMV.

On Tue, Feb 1, 2011 at 10:20 AM, Terje Andre Johansen <
terje.andre.johan...@gmail.com> wrote:

> As far as I can see this would force me to re-render each view on
> change and also make it harder for a user to compare the different
> views. Further if the user has multiple screens, I think using several
> Windows is better than using only one. Your idea is good, however its
> not what I want to do if it is possible to do it the way I described.
>
> If am not mistaken, if the user is using Chrome I would actually be
> able to use several cores in the CPU for rendering if the application
> is split between different Windows? Correct me if I am mistaken.
>
>
> On 1 Feb, 15:17, Jeff Schwartz  wrote:
> > Have you considered using GWT tabs or some other ui feature (roll your
> own
> > if you have to) that would provide multiple views other than opening
> > multiple browser windows or tabs? I really don't like it when
> applications
> > open multiple browser windows or tabs and consider that a UI faux pas :).
> >
> > On Tue, Feb 1, 2011 at 8:44 AM, Terje Andre Johansen <
> >
> >
> >
> >
> >
> > terje.andre.johan...@gmail.com> wrote:
> > > I am working on a project where I am using GWT to visualize biological
> > > data in several ways. This is done by searching for a gene by name,
> > > and what I want to happen is for each visualization to get its own
> > > window to display its data. The reason for this is that there is huge
> > > amounts of data, and trying to fit more than one visualization in one
> > > page is not a ideal way to do it.
> >
> > > One of the goals for the project is to enable interaction between
> > > these visualization. In short this means that if a user clicks on a
> > > gene in one view, a similar event/method should be invoked in the
> > > other views as well. The newly opened windows will have the same
> > > parent and be in the same domain.
> >
> > > I have looked at the GWT API, and so far only found the static void
> > > method Window.open(url, name, features). As far as I understand this
> > > means that I cannot get hold of the new window as an object to invoke
> > > methods on. Neither did I find the equivalent to the JS method
> > > window.opener() to get hold of the parent object in the newly opened
> > > window.
> >
> > > I am wondering if anyone has worked with a similar problem and got
> > > some an idea of how to enable Window interaction using GWT.
> >
> > > Help is appreciated.
> >
> > > --
> > > 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.
> >
> > --
> > *Jeff Schwartz*
>
> --
> 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.
>
>


-- 
*Jeff Schwartz*

-- 
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: avoid row selection on cell click in CellTable

2011-02-01 Thread John LaBanca
Selection is controlled by the selectionEventManager, which is is a
CellPreviewEventHandler.  Use the following to limit selection to
checkboxes:

DefaultSelectionEventManager selectionEventManager =
DefaultSelectionEventManager.createCheckboxManager(0); // Limit selection to
checkboxes in column 0.
cellTable.setSelectionModel(myMultiSelectionModel, selectionEventManager);

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


On Tue, Feb 1, 2011 at 7:39 AM, Torgeir  wrote:

> I have a CellTable with a MultiSelectionModel, and a selection checkbox in
> the first column, just as the CellTree sample in the GWT ShowCase. I have a
> problem in that when clicking on a cell in the table, eg a Cell of type
> SafeHtmlCell, the row is selected.
>
> I have tries using a different Column instance, and a different Cell
> instance, in order to avoid this selection, but nothing seems to work. Is
> there a way to only allow row selection through selecting items in the
> selection column?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: Sharing objects between several windows to enable interaction

2011-02-01 Thread Greg Dougherty
The first problem you face is that each browser window represents a
separate GWT application.  The second one you face is that, to the
best of my knowledge, there are only two ways those applications can
communicate with each other: via the server, and via cookies.  A third
problem you face is that you're going to run into a fair number of
users like me, who hate it when web sites try to take over their
machines and create new windows, and have their preferences set so
that you can't do that.

You can deal with the third problem by making sure that all your
window creation is done with actual HTTP links (so the user can right-
click on the link, and then tell it to open in a new window / tab).
This pretty much requires you to implement History (which is a good
thing in and of itself).

The only way I can see to deal with the first two problems is to have
a session cookie on the users machine that can be shared among
multiple running applications, and then have REALLY "chatty" apps that
are constantly sending updates to the server, and (by way of a Timer
task set to go off every second or so) constantly checking with the
server to see if anything has changed.

If you have few users and a server with a good network connection,
that might work.  But it's not a solution that will scale very well.

Greg

On Feb 1, 9:20 am, Terje Andre Johansen
 wrote:
> As far as I can see this would force me to re-render each view on
> change and also make it harder for a user to compare the different
> views. Further if the user has multiple screens, I think using several
> Windows is better than using only one. Your idea is good, however its
> not what I want to do if it is possible to do it the way I described.
>
> If am not mistaken, if the user is using Chrome I would actually be
> able to use several cores in the CPU for rendering if the application
> is split between different Windows? Correct me if I am mistaken.
>
> On 1 Feb, 15:17, Jeff Schwartz  wrote:
>
> > Have you considered using GWT tabs or some other ui feature (roll your own
> > if you have to) that would provide multiple views other than opening
> > multiple browser windows or tabs? I really don't like it when applications
> > open multiple browser windows or tabs and consider that a UI faux pas :).
>
> > On Tue, Feb 1, 2011 at 8:44 AM, Terje Andre Johansen <
>
> > terje.andre.johan...@gmail.com> wrote:
> > > I am working on a project where I am using GWT to visualize biological
> > > data in several ways. This is done by searching for a gene by name,
> > > and what I want to happen is for each visualization to get its own
> > > window to display its data. The reason for this is that there is huge
> > > amounts of data, and trying to fit more than one visualization in one
> > > page is not a ideal way to do it.
>
> > > One of the goals for the project is to enable interaction between
> > > these visualization. In short this means that if a user clicks on a
> > > gene in one view, a similar event/method should be invoked in the
> > > other views as well. The newly opened windows will have the same
> > > parent and be in the same domain.
>
> > > I have looked at the GWT API, and so far only found the static void
> > > method Window.open(url, name, features). As far as I understand this
> > > means that I cannot get hold of the new window as an object to invoke
> > > methods on. Neither did I find the equivalent to the JS method
> > > window.opener() to get hold of the parent object in the newly opened
> > > window.
>
> > > I am wondering if anyone has worked with a similar problem and got
> > > some an idea of how to enable Window interaction using GWT.
>
> > > Help is appreciated.
>
> > > --
> > > 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.
>
> > --
> > *Jeff Schwartz*

-- 
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: Selecting and disabling elements in CellTable

2011-02-01 Thread Jeff Schwartz
On Tue, Feb 1, 2011 at 11:06 AM, Greg Dougherty
wrote:

> Jeff,
>
> > Don't move the check boxes, just don't render them.
>
> So, you're saying when the user selects a group they do not own, I
> should make the checkboxes disappear, leaving me with an empty column
>

Hi Greg,

We all have very strong beliefs when it comes to UI so I hope you understand
that I am not trying to convert you over to my point of view. But to answer
your question, no, I am not saying leave an empty column. I am saying don't
display the column.

Jeff

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



Re: CellTable elements not updating correctly

2011-02-01 Thread Greg Dougherty
So, should I take it that this is a bug in GWT?

On Jan 28, 12:11 pm, Greg Dougherty 
wrote:
> // Making the cell I click on to change what Group i'm seeing:
>         ClickableTextCell               groupCell = new ClickableTextCell ();
>         FieldUpdater   updater = new 
> FieldUpdater String> () {
>                 @Override
>                 public void update (int index, GroupInfo theInfo, String 
> value)
>                 {
>                         boolean isOwner = (theInfo != null) && 
> theInfo.getOwner
> ().equalsIgnoreCase (userName);
>
>                         currentGroup = theInfo;
>                         addUser.setEnabled (isOwner);
>
>                         userProvider.refresh ();
>                 }
>         };
>
>         GroupColumn     groupColumn = new GroupColumn (groupCell);
>         groupColumn.setFieldUpdater (updater);
>
>         theTable.addColumn (groupColumn, "Name");
>
> public class UserColumn extends Column implements
> FieldUpdater
> {
>         private static GroupInfo        groupInfo = null;
>         private static boolean          groupOwner = false;
>
>         /* (non-Javadoc)
>          * @see
> com.google.gwt.user.cellview.client.Column#getValue(java.lang.Object)
>          */
>         @Override
>         public Boolean getValue (String user)
>         {
>                 if (groupInfo == null)
>                         return false;
>
>                 return groupInfo.hasUser (user);
>         }
>
> }
>
> On Jan 28, 11:31 am, Jeff Schwartz  wrote:
>
> > Code?
>
> > On Fri, Jan 28, 2011 at 12:28 PM, Greg Dougherty 
> > > wrote:
> > > I have two CellTables that are logically connected together.  When I
> > > change the selection of the first one, I need to change the data
> > > representation in the second one.  When I first create the two tables,
> > > this works.  I call refresh on the DataProvider for the second table,
> > > it calls getValue for the column of check boxes, and the boxes are
> > > checked correctly.
>
> > > However, when I change the selection in the first table, and then call
> > > refresh on the DataProvider, the getValue calls are made, but their
> > > results are ignored.
>
> > > Is this a bug in GWT, or am I doing something wrong?
>
> > > TIA,
>
> > > Greg
>
> > > --
> > > 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.
>
> > --
> > *Jeff Schwartz*

-- 
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: Selecting and disabling elements in CellTable

2011-02-01 Thread Greg Dougherty
Jeff,

> Don't move the check boxes, just don't render them.

So, you're saying when the user selects a group they do not own, I
should make the checkboxes disappear, leaving me with an empty column
(that, somehow, I'm going to tell to take up EXACTLY as much space as
it would if it had checkboxes in it), and that having controls appear
and disappear in the middle of a table is a superior interface to
having the controls enable and disable?

Or am I just totally not understanding you?

Greg

On Jan 28, 3:53 pm, Jeff Schwartz  wrote:
> Don't move the check boxes, just don't render them. If all user interfaces
> we're as rigid as that we wouldn't need a dom api to manipulate and render
> html on the client. A ui principle you didn't mention is don't expose
> useless info/ui to users.
>
> Look, its your site so I'm just giving you something to think about.
> On Jan 28, 2011 3:19 PM, "Greg Dougherty" 
> wrote:
>
> > Well, If they create a group, or select a group that they can modify,
> > then they need the checkboxes. Having them disappear and reappear
> > (rather than be disabled and enabled) violates the principles of UI
> > design that I know and agree with. Starting with the belief that the
> > UI should be stable and solid, and that controls should not move
> > (muscle memory being key to accomplishing things quickly, a UI that
> > moves targets around is a bad UI).
>
> >> Now, about your question
> >> which requires a question: Did you extend Column to use check boxes
> in
> >> your cell table? If you did you can extend your implementation's api even
> >> further by providing it with methods to enable and disable the
> checkboxes.
>
> > public class UserColumn extends Column implements
> > FieldUpdater
>
> > My Cell is a CheckboxCell. I don't see any routines in either class
> > for enabling or disabling the checkbox. So, what do I override /
> > call?
>
> > Thanks,
>
> > Greg
>
> > On Jan 28, 11:29 am, Jeff Schwartz  wrote:
> >> From a UI designer's perspective why display a column of check boxes if
> the
> >> user isn't allowed to click them? I wouldn't personally as a designer nor
> >> would I like that if I were a user.
>
> >> If the checkbox column is in a cell table that is being rendered in
> response
> >> to the user having selected something from somewhere else in the view
> then
> >> I'd first determine if the user can or cannot check the boxes and then I
> >> would render the table accordingly.
>
> >> But that is just me and the way I would do it. Now, about your question
> >> which requires a question: Did you extend Column to use check boxes
> in
> >> your cell table? If you did you can extend your implementation's api even
> >> further by providing it with methods to enable and disable the
> checkboxes.
>
> >> Jeff
>
> >> On Fri, Jan 28, 2011 at 11:59 AM, Greg Dougherty <
>
> dougherty.greg...@mayo.edu
>
>
>
> >> > wrote:
> >> > Hi Jeff,
>
> >> > Thank you.  I added a SingleSelectionModel to my CellTable, and now I
> >> > can force selection of rows.
>
> >> > Any idea how I tell a column of CheckBoxes that they can't accept any
> >> > clicks?
>
> >> > Greg
>
> >> > On Jan 28, 10:11 am, Jeff Schwartz  wrote:
> >> > > You can use one of the concrete implementations of
>
> AbstractSelectionModel>> > to
> >> > > select rows and respond to row selection. CellTables and
> >> > > AbstractSelectionModel instances work hand-in-hand.
>
> >> > > You connect the selection model to the cell table by calling the
> table's
> >> > > setSelectionModel method passing an instance of a selection model.
>
> >> > > You select rows by calling the selection model's setSelected method
> >> > passing
> >> > > an instance of the data object being displayed by the table. The row
> >> > > displaying that instance of the data object will then be selected
>
> >> > > You respond to row selection by adding a
>
> SelectionChangeEvent.Handler()
>
> >> > to
> >> > > the selection model by calling the selection model's
> >> > > addSelectionChangeHandler method. You can use this event, for
> instance,
> >> > to
> >> > > load a detailed view of the selected data object such as more
> >> > information,
> >> > > data from its children data objects, etc. etc.
>
> >> > > Jeff
>
> >> > > On Fri, Jan 28, 2011 at 10:49 AM, Greg Dougherty <
> >> > dougherty.greg...@mayo.edu
>
> >> > > > wrote:
> >> > > > I am trying to use three CellTables to make a Users and Groups
> panel
> >> > > > in my current application.  Its purpose is so users can give other
> >> > > > users access to resources that they control (in this particular
> case,
> >> > > > choosing which people can see the information you've uploaded to a
> >> > > > database).
>
> >> > > > The first table is the Groups table.  Groups can be added and
> >> > > > selected.  If you are the owner of the current Group then you can
> >> > > > modify its settings, if not, you can't.
>
> >> > > > The second table is Users.  It has two columns, a text field with
> the
> >> > > > name of the 

Re: Considering using Google Accounts for authentication. Good idea?

2011-02-01 Thread Jeff Schwartz
but an open id is not a google account.

On Tue, Feb 1, 2011 at 10:50 AM, Jan Mostert  wrote:

> A google account is already an open-id: http://openid.net/get-an-openid/
> 
> --
> Jan Vladimir Mostert
> BEngSci
>
> Mail: j...@mycee.com
> MyCee Technologies
>
>
>
> On Tue, Feb 1, 2011 at 5:46 PM, Jeff Schwartz wrote:
>
>> Thanks but I'd like to limit the discussion to Google Accounts.
>>
>>
>> On Tue, Feb 1, 2011 at 10:19 AM, Jan Mostert  wrote:
>>
>>> Spring Security should take care of most of those requirements since it
>>> already has openID support built in, but that will require authentication to
>>> happen outside your GWT application (I'm a bit paranoid exposing my
>>> javascript if people aren't authenticated) and if you really need the login
>>> to be in GWT, Vaadin does some serverside magic that will allow you to build
>>> a secure login form using GWT.
>>>
>>>
>>>
>>> On Tue, Feb 1, 2011 at 4:08 PM, Jeff Schwartz 
>>> wrote:
>>>
 Hi all,

 I hope you don't mind me cross posting this to both the gwt and app
 engine groups since I'd really like to get the opinions of users on both
 platforms.

 I'm in the middle of developing a gwt application on app engine. The
 application's security requirements are that non members, meaning those 
 that
 haven't registered, are restricted to viewing only the application's public
 'page'.

 What I developed for authentication is home grown using my own login
 form, client side cookies and a User entity with password and email address
 stored in the application's data store. While my home grown implementation
 works perfectly I am not comfortable with the security implications of
 cookies and passing raw passwords to the server to authenticate my users. I
 also can not use SSL at this time as financial constraints unfortunately
 prohibit any expenditures on this project.

 As I place my users' privacy and security above all else I am therefore
 looking to implement a better solution; one that would if possible 
 eliminate
 my responsibility altogether of having to store cookies and passwords and
 transport them via HTTP when authenticating.

 One alternative that I am currently considering is using Google Accounts
 to authenticate my users along with my own User entity that would store the
 additional information users must provide when registering to use the
 services of my application. My User entity (not to be confused with the 
 User
 object provided by the User API) would store the user's Google Account ID
 and would provide the ability to determine if a user is registered simply 
 by
 querying for their Google Accounts ID in my datastore. It would eliminate
 having to store client side cookies and sending raw passwords to the 
 server.
 So far it seems like a win-win proposition as it appears to satisfy all my
 use cases.

 For those who already use Google Accounts for user authentication are
 you happy with the service? How about the services' availability track
 record and does it provide the security you had hoped it would?

 For those using Google Accounts along with GWT have you found any
 specific issues related to using it with GWT (I am using RPC BTW) that you
 can relate?

 I am looking forward to reading your feedback and responses and thanks
 in advance.

 Jeff




 --
 *Jeff Schwartz*

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

>>>
>>>  --
>>> You received this message because you are subscribed to the Google Groups
>>> "Google Web Toolkit" group.
>>> To post to this group, send email to google-web-toolkit@googlegroups.com
>>> .
>>> To unsubscribe from this group, send email to
>>> google-web-toolkit+unsubscr...@googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>
>>
>>
>>
>> --
>> *Jeff Schwartz*
>>
>>  --
>> 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 grou

Re: Considering using Google Accounts for authentication. Good idea?

2011-02-01 Thread Jan Mostert
A google account is already an open-id: http://openid.net/get-an-openid/

--
Jan Vladimir Mostert
BEngSci

Mail: j...@mycee.com
MyCee Technologies


On Tue, Feb 1, 2011 at 5:46 PM, Jeff Schwartz wrote:

> Thanks but I'd like to limit the discussion to Google Accounts.
>
>
> On Tue, Feb 1, 2011 at 10:19 AM, Jan Mostert  wrote:
>
>> Spring Security should take care of most of those requirements since it
>> already has openID support built in, but that will require authentication to
>> happen outside your GWT application (I'm a bit paranoid exposing my
>> javascript if people aren't authenticated) and if you really need the login
>> to be in GWT, Vaadin does some serverside magic that will allow you to build
>> a secure login form using GWT.
>>
>>
>>
>> On Tue, Feb 1, 2011 at 4:08 PM, Jeff Schwartz wrote:
>>
>>> Hi all,
>>>
>>> I hope you don't mind me cross posting this to both the gwt and app
>>> engine groups since I'd really like to get the opinions of users on both
>>> platforms.
>>>
>>> I'm in the middle of developing a gwt application on app engine. The
>>> application's security requirements are that non members, meaning those that
>>> haven't registered, are restricted to viewing only the application's public
>>> 'page'.
>>>
>>> What I developed for authentication is home grown using my own login
>>> form, client side cookies and a User entity with password and email address
>>> stored in the application's data store. While my home grown implementation
>>> works perfectly I am not comfortable with the security implications of
>>> cookies and passing raw passwords to the server to authenticate my users. I
>>> also can not use SSL at this time as financial constraints unfortunately
>>> prohibit any expenditures on this project.
>>>
>>> As I place my users' privacy and security above all else I am therefore
>>> looking to implement a better solution; one that would if possible eliminate
>>> my responsibility altogether of having to store cookies and passwords and
>>> transport them via HTTP when authenticating.
>>>
>>> One alternative that I am currently considering is using Google Accounts
>>> to authenticate my users along with my own User entity that would store the
>>> additional information users must provide when registering to use the
>>> services of my application. My User entity (not to be confused with the User
>>> object provided by the User API) would store the user's Google Account ID
>>> and would provide the ability to determine if a user is registered simply by
>>> querying for their Google Accounts ID in my datastore. It would eliminate
>>> having to store client side cookies and sending raw passwords to the server.
>>> So far it seems like a win-win proposition as it appears to satisfy all my
>>> use cases.
>>>
>>> For those who already use Google Accounts for user authentication are you
>>> happy with the service? How about the services' availability track record
>>> and does it provide the security you had hoped it would?
>>>
>>> For those using Google Accounts along with GWT have you found any
>>> specific issues related to using it with GWT (I am using RPC BTW) that you
>>> can relate?
>>>
>>> I am looking forward to reading your feedback and responses and thanks in
>>> advance.
>>>
>>> Jeff
>>>
>>>
>>>
>>>
>>> --
>>> *Jeff Schwartz*
>>>
>>>  --
>>> You received this message because you are subscribed to the Google Groups
>>> "Google Web Toolkit" group.
>>> To post to this group, send email to google-web-toolkit@googlegroups.com
>>> .
>>> To unsubscribe from this group, send email to
>>> google-web-toolkit+unsubscr...@googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>
>
>
> --
> *Jeff Schwartz*
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: Considering using Google Accounts for authentication. Good idea?

2011-02-01 Thread Jeff Schwartz
Thanks but I'd like to limit the discussion to Google Accounts.

On Tue, Feb 1, 2011 at 10:19 AM, Jan Mostert  wrote:

> Spring Security should take care of most of those requirements since it
> already has openID support built in, but that will require authentication to
> happen outside your GWT application (I'm a bit paranoid exposing my
> javascript if people aren't authenticated) and if you really need the login
> to be in GWT, Vaadin does some serverside magic that will allow you to build
> a secure login form using GWT.
>
>
>
> On Tue, Feb 1, 2011 at 4:08 PM, Jeff Schwartz wrote:
>
>> Hi all,
>>
>> I hope you don't mind me cross posting this to both the gwt and app engine
>> groups since I'd really like to get the opinions of users on both platforms.
>>
>> I'm in the middle of developing a gwt application on app engine. The
>> application's security requirements are that non members, meaning those that
>> haven't registered, are restricted to viewing only the application's public
>> 'page'.
>>
>> What I developed for authentication is home grown using my own login form,
>> client side cookies and a User entity with password and email address stored
>> in the application's data store. While my home grown implementation works
>> perfectly I am not comfortable with the security implications of cookies and
>> passing raw passwords to the server to authenticate my users. I also can not
>> use SSL at this time as financial constraints unfortunately prohibit any
>> expenditures on this project.
>>
>> As I place my users' privacy and security above all else I am therefore
>> looking to implement a better solution; one that would if possible eliminate
>> my responsibility altogether of having to store cookies and passwords and
>> transport them via HTTP when authenticating.
>>
>> One alternative that I am currently considering is using Google Accounts
>> to authenticate my users along with my own User entity that would store the
>> additional information users must provide when registering to use the
>> services of my application. My User entity (not to be confused with the User
>> object provided by the User API) would store the user's Google Account ID
>> and would provide the ability to determine if a user is registered simply by
>> querying for their Google Accounts ID in my datastore. It would eliminate
>> having to store client side cookies and sending raw passwords to the server.
>> So far it seems like a win-win proposition as it appears to satisfy all my
>> use cases.
>>
>> For those who already use Google Accounts for user authentication are you
>> happy with the service? How about the services' availability track record
>> and does it provide the security you had hoped it would?
>>
>> For those using Google Accounts along with GWT have you found any specific
>> issues related to using it with GWT (I am using RPC BTW) that you can
>> relate?
>>
>> I am looking forward to reading your feedback and responses and thanks in
>> advance.
>>
>> Jeff
>>
>>
>>
>>
>> --
>> *Jeff Schwartz*
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>



-- 
*Jeff Schwartz*

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



Re: GWT 2.1 cell table paging bug?

2011-02-01 Thread manstis
I encountered the same problem :-(

What's more ominous is that the change in visibleRange also causes a
second onRangeChange event (which is undesirable if nothing else): (1)
For the initial page forward to the last page (with potential unequal
number of rows to pageSize) and (2) For the re-rendering of the last
page with visibleRange set to show pageSize rows but indexed from
display.getRowCount() - pageSize (as noted by OP).

I found a fix however, by overriding setPageStart in SimplePager, as
follows:-

public void setPageStart(int index) {
if ( getDisplay() != null ) {
Range range = getDisplay().getVisibleRange();
int pageSize = range.getLength();
if ( isRangeLimited()
 && getDisplay().isRowCountExact() ) {
pageSize = Math.min( pageSize,
 
getDisplay().getRowCount()
 - index );
}
index = Math.max( 0,
  index );
if ( index != range.getStart() ) {
getDisplay().setVisibleRange( index,
  pageSize );
}
}
}

This shows the last page with a number of rows less than pageSize if
getRowCount() is less than pageSize * numberOfPages.

I hope it is of use.

Cheers,

Mike

On Dec 5 2010, 6:25 pm, Arnaud  wrote:
> I have exactly the same problem than sebrojas, if someone has a
> solution. Would appreciate any help.
>
> Thanks
> Arnaud
>
> On Nov 2, 7:29 pm, sebrojas  wrote:
>
> > Yes, is a bug!
>
> > Also, I´m having other problems with celltable paging.
> > When I set the page size to 12 or less, and I click the button next
> > page or last page, and rows away is a picture of charging that is not
> > removed.
> > When I set the page size in 13 or more, and I click the button next
> > page or last page, and then on the previous page shows several rows
> > without values (the first).
> > Please answer, need help
> > I don´t understand why the pager have a setPageSize method and the
> > dell table too??? :s, but it seems to the table method is the one that
> > have effect
>
> > ...
> > ProvidesKey pk = new ProvidesKey() {
> >                         public Object getKey(Depuracion item) {
> >                                 return item.getId();
> >                         }
> >                 };
>
> >                 final CellTable table = new 
> > CellTable(pk);
> >                 table.addStyleName("tabla");
> >                 table.setPageSize(8);
>
> >                 // Create a Pager to control the table.
> >                 SimplePager.Resources pagerResources = GWT
> >                                 .create(SimplePager.Resources.class);
> >                 pager = new SimplePager(TextLocation.CENTER, 
> > pagerResources, false,
> > 0,
> >                                 true);
> >                 pager.setDisplay(table);
> > ...
>
>

-- 
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: Image handling using ClientBundle

2011-02-01 Thread Jan Mostert
Your path is wrong, it should be relative to file where you import the image
eg:

main/java/com/myproject/client/scaffold/ui/widget/somecomponent.ui.xml


and the image is located in
main/java/com/myproject/client/style/images/Universal-frame_mod_tl.png

That @Source should probably have a path of "../
public/resources/cut_icon.gif"

Hope it helps :-)

PS, is there a better way to do this, eg force an absolute path somehow?


On Tue, Feb 1, 2011 at 6:43 AM, Digs  wrote:

> Hi,
>
> I am trying to use ClientBundle in my project.
> My project structure is
> src/com/company/project/client - contains all java files
> src/com/company/project/public/resources - contains all image files.
>
> I have no problem if I place images in client folder and use
> @Source("cut_icon.gif")
> public ImageResource cutIconImage();
>
> But I need to place images under src/com/company/project/public/
> resources folder for my project.
> When I try
> @Source("src/com/company/project/public/resources/cut_icon.gif")
> public ImageResource cutIconImage();
>
> I get error.
>
> Please help..
>
> Thanks in advance.
>
> - digs
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Considering using Google Accounts for authentication. Good idea?

2011-02-01 Thread Jan Mostert
Spring Security should take care of most of those requirements since it
already has openID support built in, but that will require authentication to
happen outside your GWT application (I'm a bit paranoid exposing my
javascript if people aren't authenticated) and if you really need the login
to be in GWT, Vaadin does some serverside magic that will allow you to build
a secure login form using GWT.



On Tue, Feb 1, 2011 at 4:08 PM, Jeff Schwartz wrote:

> Hi all,
>
> I hope you don't mind me cross posting this to both the gwt and app engine
> groups since I'd really like to get the opinions of users on both platforms.
>
> I'm in the middle of developing a gwt application on app engine. The
> application's security requirements are that non members, meaning those that
> haven't registered, are restricted to viewing only the application's public
> 'page'.
>
> What I developed for authentication is home grown using my own login form,
> client side cookies and a User entity with password and email address stored
> in the application's data store. While my home grown implementation works
> perfectly I am not comfortable with the security implications of cookies and
> passing raw passwords to the server to authenticate my users. I also can not
> use SSL at this time as financial constraints unfortunately prohibit any
> expenditures on this project.
>
> As I place my users' privacy and security above all else I am therefore
> looking to implement a better solution; one that would if possible eliminate
> my responsibility altogether of having to store cookies and passwords and
> transport them via HTTP when authenticating.
>
> One alternative that I am currently considering is using Google Accounts to
> authenticate my users along with my own User entity that would store the
> additional information users must provide when registering to use the
> services of my application. My User entity (not to be confused with the User
> object provided by the User API) would store the user's Google Account ID
> and would provide the ability to determine if a user is registered simply by
> querying for their Google Accounts ID in my datastore. It would eliminate
> having to store client side cookies and sending raw passwords to the server.
> So far it seems like a win-win proposition as it appears to satisfy all my
> use cases.
>
> For those who already use Google Accounts for user authentication are you
> happy with the service? How about the services' availability track record
> and does it provide the security you had hoped it would?
>
> For those using Google Accounts along with GWT have you found any specific
> issues related to using it with GWT (I am using RPC BTW) that you can
> relate?
>
> I am looking forward to reading your feedback and responses and thanks in
> advance.
>
> Jeff
>
>
>
>
> --
> *Jeff Schwartz*
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: Sharing objects between several windows to enable interaction

2011-02-01 Thread Terje Andre Johansen
As far as I can see this would force me to re-render each view on
change and also make it harder for a user to compare the different
views. Further if the user has multiple screens, I think using several
Windows is better than using only one. Your idea is good, however its
not what I want to do if it is possible to do it the way I described.

If am not mistaken, if the user is using Chrome I would actually be
able to use several cores in the CPU for rendering if the application
is split between different Windows? Correct me if I am mistaken.


On 1 Feb, 15:17, Jeff Schwartz  wrote:
> Have you considered using GWT tabs or some other ui feature (roll your own
> if you have to) that would provide multiple views other than opening
> multiple browser windows or tabs? I really don't like it when applications
> open multiple browser windows or tabs and consider that a UI faux pas :).
>
> On Tue, Feb 1, 2011 at 8:44 AM, Terje Andre Johansen <
>
>
>
>
>
> terje.andre.johan...@gmail.com> wrote:
> > I am working on a project where I am using GWT to visualize biological
> > data in several ways. This is done by searching for a gene by name,
> > and what I want to happen is for each visualization to get its own
> > window to display its data. The reason for this is that there is huge
> > amounts of data, and trying to fit more than one visualization in one
> > page is not a ideal way to do it.
>
> > One of the goals for the project is to enable interaction between
> > these visualization. In short this means that if a user clicks on a
> > gene in one view, a similar event/method should be invoked in the
> > other views as well. The newly opened windows will have the same
> > parent and be in the same domain.
>
> > I have looked at the GWT API, and so far only found the static void
> > method Window.open(url, name, features). As far as I understand this
> > means that I cannot get hold of the new window as an object to invoke
> > methods on. Neither did I find the equivalent to the JS method
> > window.opener() to get hold of the parent object in the newly opened
> > window.
>
> > I am wondering if anyone has worked with a similar problem and got
> > some an idea of how to enable Window interaction using GWT.
>
> > Help is appreciated.
>
> > --
> > 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.
>
> --
> *Jeff Schwartz*

-- 
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: Testing GWT services

2011-02-01 Thread SVR
Selenium

On Tue, Feb 1, 2011 at 7:24 AM, Amol12  wrote:

> Hello Ezequiel,
>
> Junit will involve is much coding to which I am not too much familiar,
> is there any tool through which we can send request and get the
> desired response?
>
> Regards,
> Amol
>
> On Feb 1, 10:16 am, Ezequiel Palumbo  wrote:
> > Hi Amol,
> >
> > If you are talking about remote services implementations, it seems
> > that you need something like JUnit; didn't you try it yet?
> > Salud!
> >
> > Ezequiel.-
> >
> > On 31 ene, 05:36, Amol12  wrote:
> >
> > > Hello,
> >
> > > Can someone guide which tool should be used for testing GWT services?
> > > I dont have UI and testing the services directly. I need a tool
> > > through which I can invoke the services and get the response.
> >
> > > Regards,
> > > Amol
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Sharing objects between several windows to enable interaction

2011-02-01 Thread Jeff Schwartz
Have you considered using GWT tabs or some other ui feature (roll your own
if you have to) that would provide multiple views other than opening
multiple browser windows or tabs? I really don't like it when applications
open multiple browser windows or tabs and consider that a UI faux pas :).

On Tue, Feb 1, 2011 at 8:44 AM, Terje Andre Johansen <
terje.andre.johan...@gmail.com> wrote:

> I am working on a project where I am using GWT to visualize biological
> data in several ways. This is done by searching for a gene by name,
> and what I want to happen is for each visualization to get its own
> window to display its data. The reason for this is that there is huge
> amounts of data, and trying to fit more than one visualization in one
> page is not a ideal way to do it.
>
> One of the goals for the project is to enable interaction between
> these visualization. In short this means that if a user clicks on a
> gene in one view, a similar event/method should be invoked in the
> other views as well. The newly opened windows will have the same
> parent and be in the same domain.
>
> I have looked at the GWT API, and so far only found the static void
> method Window.open(url, name, features). As far as I understand this
> means that I cannot get hold of the new window as an object to invoke
> methods on. Neither did I find the equivalent to the JS method
> window.opener() to get hold of the parent object in the newly opened
> window.
>
> I am wondering if anyone has worked with a similar problem and got
> some an idea of how to enable Window interaction using GWT.
>
> Help is appreciated.
>
> --
> 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.
>
>


-- 
*Jeff Schwartz*

-- 
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: comprehension problem events

2011-02-01 Thread Paul Robinson

Either you've made a copy-and-past error in the code you posted here, or there's another 
"symbol" variable in scope because the one declared at the start of your 
addStock() method is not in scope inside methods on your ClickHandler.

To make it work (and I believe the way the tutorial shows it), symbol is declared 
"final", as in:
final String symbol = ...

By declaring it final, the compiler knows the value will not change, and so it 
can safely take a copy of its value when it constructs the new ClickHandler 
instances, and store that value in an instance field on the ClickHandler. This 
then allows it to be in scope on methods in the ClickHandler.

Paul

On 31/01/11 17:53, Artur wrote:

Hi

I'm new to GWT. At the moment I'm reading the tutorial for the
StockWatcher (http://code.google.com/intl/de-DE/webtoolkit/doc/latest/
tutorial/codeclient.html).
Here is the code I do not understand:

public void addStock(){

   String symbol = txtBox.getText();

   // Add a button to remove this stock from the table.
 Button removeStockButton = new Button("x");
 removeStockButton.addClickHandler(new ClickHandler() {
   public void onClick(ClickEvent event) {
 int removedIndex = stocks.indexOf(symbol);
 stocks.remove(removedIndex);
 stocksFlexTable.removeRow(removedIndex + 1);
   }
 });
 stocksFlexTable.setWidget(row, 3, removeStockButton);

}

At the first line a new Button is created. Afterwards the button gets
a new anonymous ClickHandler with the "onClick()" function. So far so
good.
But when the user clicks the button and the "onClick()" function is
called, how is it possible, that the String variable "symbol" still
lives in memory?
I have implemented this code to my eclipse and it works perfectly. But
I do not understand how is it possible to get the value of the
"symbol" variable after the button has been created and sent to
client.??? When user clicks on the button the "onClick()" function is
called and still has the value of the "symbol" string??'

Can someone explain it to me?

Thanks
Artur



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



Considering using Google Accounts for authentication. Good idea?

2011-02-01 Thread Jeff Schwartz
Hi all,

I hope you don't mind me cross posting this to both the gwt and app engine
groups since I'd really like to get the opinions of users on both platforms.

I'm in the middle of developing a gwt application on app engine. The
application's security requirements are that non members, meaning those that
haven't registered, are restricted to viewing only the application's public
'page'.

What I developed for authentication is home grown using my own login form,
client side cookies and a User entity with password and email address stored
in the application's data store. While my home grown implementation works
perfectly I am not comfortable with the security implications of cookies and
passing raw passwords to the server to authenticate my users. I also can not
use SSL at this time as financial constraints unfortunately prohibit any
expenditures on this project.

As I place my users' privacy and security above all else I am therefore
looking to implement a better solution; one that would if possible eliminate
my responsibility altogether of having to store cookies and passwords and
transport them via HTTP when authenticating.

One alternative that I am currently considering is using Google Accounts to
authenticate my users along with my own User entity that would store the
additional information users must provide when registering to use the
services of my application. My User entity (not to be confused with the User
object provided by the User API) would store the user's Google Account ID
and would provide the ability to determine if a user is registered simply by
querying for their Google Accounts ID in my datastore. It would eliminate
having to store client side cookies and sending raw passwords to the server.
So far it seems like a win-win proposition as it appears to satisfy all my
use cases.

For those who already use Google Accounts for user authentication are you
happy with the service? How about the services' availability track record
and does it provide the security you had hoped it would?

For those using Google Accounts along with GWT have you found any specific
issues related to using it with GWT (I am using RPC BTW) that you can
relate?

I am looking forward to reading your feedback and responses and thanks in
advance.

Jeff




-- 
*Jeff Schwartz*

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



Sharing objects between several windows to enable interaction

2011-02-01 Thread Terje Andre Johansen
I am working on a project where I am using GWT to visualize biological
data in several ways. This is done by searching for a gene by name,
and what I want to happen is for each visualization to get its own
window to display its data. The reason for this is that there is huge
amounts of data, and trying to fit more than one visualization in one
page is not a ideal way to do it.

One of the goals for the project is to enable interaction between
these visualization. In short this means that if a user clicks on a
gene in one view, a similar event/method should be invoked in the
other views as well. The newly opened windows will have the same
parent and be in the same domain.

I have looked at the GWT API, and so far only found the static void
method Window.open(url, name, features). As far as I understand this
means that I cannot get hold of the new window as an object to invoke
methods on. Neither did I find the equivalent to the JS method
window.opener() to get hold of the parent object in the newly opened
window.

I am wondering if anyone has worked with a similar problem and got
some an idea of how to enable Window interaction using GWT.

Help is appreciated.

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



Image handling using ClientBundle

2011-02-01 Thread Digs
Hi,

I am trying to use ClientBundle in my project.
My project structure is
src/com/company/project/client - contains all java files
src/com/company/project/public/resources - contains all image files.

I have no problem if I place images in client folder and use
@Source("cut_icon.gif")
public ImageResource cutIconImage();

But I need to place images under src/com/company/project/public/
resources folder for my project.
When I try
@Source("src/com/company/project/public/resources/cut_icon.gif")
public ImageResource cutIconImage();

I get error.

Please help..

Thanks in advance.

- digs

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



Range start can not be less than 0

2011-02-01 Thread Deepak Singh
Hi All,

I have cell table working fine.
But when i move through the results fast using arrow keys, i sometimes get
this exception

(Impl.java:216) 2011-02-01 19:23:53,859 [FATAL] Uncaught Exception:
java.lang.IllegalArgumentException:
*Range start cannot be less than 0*
at 
com.google.gwt.user.cellview.client.HasDataPresenter.setVisibleRange(HasDataPresenter.java:1414)
at 
com.google.gwt.user.cellview.client.HasDataPresenter.setKeyboardSelectedRow(HasDataPresenter.java:833)
at 
com.google.gwt.user.cellview.client.HasDataPresenter.keyboardPrev(HasDataPresenter.java:709)
at 
com.google.gwt.user.cellview.client.AbstractHasData.onBrowserEvent(AbstractHasData.java:469)
at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1308)
at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1264)

Anything i need to set to table.


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: RequestFactory strange behavior.

2011-02-01 Thread Lazo Apostolovski
Anybody?

is this a bug or I make something wrong?

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



avoid row selection on cell click in CellTable

2011-02-01 Thread Torgeir
I have a CellTable with a MultiSelectionModel, and a selection checkbox in 
the first column, just as the CellTree sample in the GWT ShowCase. I have a 
problem in that when clicking on a cell in the table, eg a Cell of type 
SafeHtmlCell, the row is selected.

I have tries using a different Column instance, and a different Cell 
instance, in order to avoid this selection, but nothing seems to work. Is 
there a way to only allow row selection through selecting items in the 
selection column?

-- 
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: Developer Guide on writing with GWT a reusable javascript widget

2011-02-01 Thread Thomas Lefort
http://code.google.com/p/gwt-google-apis/wiki/VisualizationCustomVisualization,
gives some insight BTW but you still have to check the code source
above. And then it looks like the html page will load in two stages in
any case, with the bootstrap. Might not be very optimum for small
widgets... I am already on 5k + 90k for a small widget that would
require just 5k in js. There has to be some optimisation left to be
done ;-)


On Feb 1, 11:04 am, Thomas Lefort  wrote:
> Looks like this is a pointer to start with:
>
> http://code.google.com/p/gwt-google-apis/source/browse/trunk/visualiz...
>
> No doc/guide found so far.
>
> On Jan 31, 1:12 pm, Thomas Lefort  wrote:
>
>
>
>
>
>
>
> > I want to write a widget with GWT that can be reused by a javascript
> > program (in its compiled form). Is there any guide on how to proceed,
> > eg which classes and methods will be exposed to the user?
>
> > Thanks,
>
> > Thomas

-- 
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: Testing GWT services

2011-02-01 Thread Amol12
Hello Ezequiel,

Junit will involve is much coding to which I am not too much familiar,
is there any tool through which we can send request and get the
desired response?

Regards,
Amol

On Feb 1, 10:16 am, Ezequiel Palumbo  wrote:
> Hi Amol,
>
> If you are talking about remote services implementations, it seems
> that you need something like JUnit; didn't you try it yet?
> Salud!
>
> Ezequiel.-
>
> On 31 ene, 05:36, Amol12  wrote:
>
> > Hello,
>
> > Can someone guide which tool should be used for testing GWT services?
> > I dont have UI and testing the services directly. I need a tool
> > through which I can invoke the services and get the response.
>
> > Regards,
> > Amol

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



GWT RPC(Service) testing

2011-02-01 Thread Amol12
Hello,

Is there any testing tool which will test the GWT RPC. In my
application we are building the services first and need to test the
services before integrating to UI, can someone help?

Regards,
Amol

-- 
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: SEVERE: The Cell Widget is attempting to render itself within the render loop

2011-02-01 Thread Tiago Neves
I solved my problem. In my case sometimes the date was null and it then 
would throw an Exception. It seems that if any Exception is thrown during 
rendering, this message (exception) is thrown, masking the original one.

-- 
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: RequestFactoryEditorDriver example?

2011-02-01 Thread Bálint Kriván
Well, I believe the persist method shouldn't be static, it's an
InstanceRequest:

public void persist() {
  // [this] is the MyObject instance, you should persist/merge this one
}

and this is the Request interface:

@Service(MyObject.class)
public interface ProgramRequest extends RequestContext {
  InstanceRequest persist();
}

I'm not sure, that it won't work (but now it seems it isn't working for you)
with pure Request<> persist(MyProxy proxy); but then you can't use using();
stuff, and maybe the RequestContext won't save the stuff like this, because
you don't use and InstanceRequest. It's worth a shot :)

Let me know if that was the problem.

On Mon, Jan 31, 2011 at 10:04 PM, George Moschovitis <
george.moschovi...@gmail.com> wrote:

> When I call fire(), the object passed to the server side method (public
> static void persist(MyObject obj) is the original (before editing) object.
>
> -g.
>
>
> On Monday, January 31, 2011 9:42:08 PM UTC+2, Bálint Kriván wrote:
>
>> Sorry, I don't get it clearly, which returned proxy? Where do you use a
>> returned one? Using flush() you get the Context, not the Proxy object.
>>
>> On Mon, Jan 31, 2011 at 7:34 PM, George Moschovitis <
>> george.mo...@gmail.com> wrote:
>>
>>> Another problem...
>>>
>>> I tried your suggestion and it seems to work with one important problem:
>>> the object/proxy returned is the original proxy passed to the editor and
>>> not the edited object...
>>>
>>> any idea what might be wrong?
>>>
>>> -g.
>>>
>>> --
>>> 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-we...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> google-web-tool...@googlegroups.com.
>>>
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>
>>
>>
>>
>> --
>> Üdv,
>> Kriván Bálint
>>
>  --
> 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.
>



-- 
Üdv,
Kriván Bálint

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



2 Modules in 1 GWT-App, both starting the onModuleLoad?

2011-02-01 Thread newnoise
Hi,

I have a GWT-Project currently containing modules (will be more in the
future).
To make it tidy I created a "containing" module called "Parent".
"Parent" does not have any source, its just a containing module. This
is the Parent.gwt.xml:









The two modules with actual code are apparently Child1 and Child2.
There .gwt.xml-Files are the following:
Child1:









Child2:










The compilation works fine but I get 3 js-folders in my war-folder. I
supposed that I just get one, as Im using a containing class. For both
modules exist a .html-file referencing to the .js-file created for it.
The problem is that when I open the Child2.html-file it tries to load
the onModuleLoad()-method of Child1! which crashes the system, as
there are divs missing. What am I doing wrong? Im stuck with this for
a week now!

Please help. Anything is appreciated!
Tom

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



Are servlets available when performing GWT Unit Tests?

2011-02-01 Thread Christopher
Hi there,

I'm using GWT from within STS (Eclipse) and I'm trying to test out an HTTP 
request to a servlet that's also part of the same project. Unfortunately the 
servlet does not appear to be started up (no call to init()). In addition 
I'm getting a 404 status. Without further ado:

public class GetLatestTradesRequestTest extends GWTTestCase {


  GetLatestTradesRequest getLatestTradesRequest;


  @Override

  public void gwtSetUp() {

getLatestTradesRequest = new GetLatestTradesRequest();

getLatestTradesRequest.setUrl(GWT.getModuleBaseURL()

+ "testServlet/trades/recent");

  }


  public void testExecute() throws RequestException {

// Perform an http request by calling getLatestTradesRequest

  }


  @Override

  public String getModuleName() {

return "com.abc.testgwt";

  }

I've configured my servlet in web.xml:

  

testServlet

com.abc.server.TestServlet

  


  

testServlet

/testServlet/*

  

...and then run the test using "Run As" -> "GWT JUnit Test".

If run the application I can navigate to the /testServlet url just fine... 
it is just when I run my GWT Unit Test that my servlet does not appear to be 
there.

Am I missing something here?

Kind regards,
Christopher

-- 
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: TextBox width percentage in Standards Mode

2011-02-01 Thread Jeff Schwartz
100% of what? Your problem has nothing to do with doctypes. If there is no
immediate parent with a specific width set then there is nothing to
constrain the width of the text box.

On Mon, Jan 31, 2011 at 10:55 PM, Craig Mitchell  wrote:

> Hi,
>
> If I set a TextBox width percentage (say 100%) in standards mode (Ie:
> ), the total width will be larger then 100% due to the
> TextBox's padding, and border.
>
> I can get the width back to 100% by removing them with css like this:
> .noPadding {
>padding: 0px;
>margin: 0px;
>border: 0px;
>background-color: #ee;
> }
>
> However, I want the padding and border around the TextBox.
>
> How can I set a percentage width on a TextBox, and get it to actually
> go to that width?
>
> The reason I would like to do this, is so it works like ListBox, which
> doesn't seem to have any padding or border.
>
> 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.
>
>


-- 
*Jeff Schwartz*

-- 
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: Developer Guide on writing with GWT a reusable javascript widget

2011-02-01 Thread Thomas Lefort
Looks like this is a pointer to start with:

http://code.google.com/p/gwt-google-apis/source/browse/trunk/visualization/visualization/src/com/google/gwt/visualization/client/AbstractVisualization.java

No doc/guide found so far.


On Jan 31, 1:12 pm, Thomas Lefort  wrote:
> I want to write a widget with GWT that can be reused by a javascript
> program (in its compiled form). Is there any guide on how to proceed,
> eg which classes and methods will be exposed to the user?
>
> Thanks,
>
> Thomas

-- 
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 Display a Loading message when transitioning between Activities and Places ?

2011-02-01 Thread Thomas Broyer
You can (a priori, I haven't actually tried it myself) do it in two places:

   - the ActivityManager calls setWidget(null) on its display region when 
   stopping an activity, so you could, in your display region, special-case the 
   'null' value to show a loading message (instead of emptying the display 
   region, as a SimplePanel would do).
   - your activities can setWidget(loading) as soon as they start, and then 
   call setWidget(realView) once they're "fully loaded". And in case you 
   wonder, this use case is explicitly supported: 
   http://code.google.com/p/google-web-toolkit/source/detail?r=9583

-- 
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: Help, UIBinder and mixed mode HTML

2011-02-01 Thread John Gentilin

My Java class is just the plain vanilla code when you use the wizard to
create a UIBinder object, I have not added any functionality. The only
changes I have done is to comment out the @UIField definitions that
the WindowsBuilder editor inserted. Including any one of the 6 fields
I defined results in the widget not rendering..

I am running this on GWT 2.1.1 and I also tried 2.1.0 if fails the same
in both modes.

-John G

On 2/1/11 12:34 AM, Jan Mostert wrote:
Maybe post the code that you use to bind the component, problem is 
most likely there.



--
Jan Vladimir Mostert
BEngSci

Mail: j...@mycee.com 
MyCee Technologies


On Tue, Feb 1, 2011 at 10:20 AM, John Gentilin > wrote:


I have a UIBinder file that specifies a HTMLPanel that contains a mix
of plain HTML and GWT widgets.
If I don't bind any of the variables, the Widget will load correctly
and display. As soon as I bind a UI field
in my code including the @UIField definition,  @UiField TextBox
userid; then initializing the Widget fails in a NPE.

Thanks for any help in advance.
John Gentilin

This is the exception
java.lang.NullPointerException: null  at

com.CloudTvApps.PicRollr.client.Modules.Registration.RegistrationController_UIDefaultImpl.createAndBindUi(RegistrationController_UIDefaultImpl.java:
61) at

com.CloudTvApps.PicRollr.client.Modules.Registration.RegistrationController_UIDefaultImpl.createAndBindUi(RegistrationController_UIDefaultImpl.java:
1) at

com.CloudTvApps.PicRollr.client.Modules.Registration.RegistrationController.
(RegistrationController.java:37)
   at

com.CloudTvApps.PicRollr.client.PicRollrEntryPoint.onModuleLoad(PicRollrEntryPoint.java:
32)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
   at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
396)
   at

com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
183)
   at

com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
510)
   at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)
   at java.lang.Thread.run(Thread.java:680)


UIBinder definition

http://dl.google.com/gwt/DTD/xhtml.ent";>











User ID:







Password:







Confirm Password:







Name:







E-mail:








I agree with the terms of service




Register










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


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

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


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



Re: test with GwtTestCase JUnitShell ant : testBeginTimeout and junitvmwatcher errors

2011-02-01 Thread Francois Wauquier
Hi

I am back with new infos.
I have succeeded in define the testBeginTimeout using "sysproperty" tag 
intead of "jvm" attribute, like this :



http://ant.apache.org/manual/Tasks/junit.html#nested

But the error is the same, with a different timeout (300 instead of 60)

[junit]  - 1 client(s) haven't responded back to JUnitShell since the 
start
of the test.
[junit]  Actual time elapsed: 300.148 seconds.
[junit] Try increasing this timeout using the '-testBeginTimeout 
minutes' op
tion
[junit] The default value of minutes is 1, i.e., the server waits 1 
minute o
r 60 seconds.
[junit] )

My all suite take only one minute in eclipse, so it is very strange.

Francois Wauquier

-- 
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 Display a Loading message when transitioning between Activities and Places ?

2011-02-01 Thread Jan Mostert
I haven't done this myself, but I've seen it being done with the generated
scaffold in Spring Roo.

Generate a sample application using Spring Roo using the provided sample
script and the output code should have a working example for you. Will have
a look for you later tonight if you don't manage, should have some generated
samples at home.

--
Jan Vladimir Mostert
BEngSci

Mail: j...@mycee.com
MyCee Technologies


On Tue, Feb 1, 2011 at 9:46 AM, zixzigma  wrote:

> Thank You,
> I understand the mechanics of hiding/showing,
> what I am not clear is the timing of it,
> when dealing with Activities and Places.
>
> do we need to use onStop method of one activity
> and start method of another, to signal when one is stopped/started
> and use events for these two activities to communicate ?
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: Help, UIBinder and mixed mode HTML

2011-02-01 Thread Jan Mostert
Maybe post the code that you use to bind the component, problem is most
likely there.


--
Jan Vladimir Mostert
BEngSci

Mail: j...@mycee.com
MyCee Technologies


On Tue, Feb 1, 2011 at 10:20 AM, John Gentilin  wrote:

> I have a UIBinder file that specifies a HTMLPanel that contains a mix
> of plain HTML and GWT widgets.
> If I don't bind any of the variables, the Widget will load correctly
> and display. As soon as I bind a UI field
> in my code including the @UIField definition,  @UiField TextBox
> userid; then initializing the Widget fails in a NPE.
>
> Thanks for any help in advance.
> John Gentilin
>
> This is the exception
> java.lang.NullPointerException: null  at
>
> com.CloudTvApps.PicRollr.client.Modules.Registration.RegistrationController_UIDefaultImpl.createAndBindUi(RegistrationController_UIDefaultImpl.java:
> 61) at
>
> com.CloudTvApps.PicRollr.client.Modules.Registration.RegistrationController_UIDefaultImpl.createAndBindUi(RegistrationController_UIDefaultImpl.java:
> 1) at
>
> com.CloudTvApps.PicRollr.client.Modules.Registration.RegistrationController.
> (RegistrationController.java:37)
>at
>
> com.CloudTvApps.PicRollr.client.PicRollrEntryPoint.onModuleLoad(PicRollrEntryPoint.java:
> 32)
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 39)
>at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
> 25)
>at java.lang.reflect.Method.invoke(Method.java:597)
>at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
> 396)
>at
>
> com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
> 183)
>at
>
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
> 510)
>at
>
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
> 352)
>at java.lang.Thread.run(Thread.java:680)
>
>
> UIBinder definition
>
> http://dl.google.com/gwt/DTD/xhtml.ent";>
> xmlns:g="urn:import:com.google.gwt.user.client.ui">
>
>
>
>
>
>
>
>
>
>
>User ID:
>
>
> visibleLength="15" ui:field="userid"/
> >
>
>
>
>
>Password:
>
>
>  maxLength="15" visibleLength="15"
> ui:field="password"/>
>
>
>
>
>Confirm
> Password:
>
>
>  maxLength="15" visibleLength="15"
> ui:field="password2"/>
>
>
>
>
>Name:
>
>
> visibleLength="15" ui:field="name"/>
>
>
>
>
>E-mail:
>
>
> visibleLength="15" ui:field="email"/>
>
>
>
>
> ui:field="agree"/>
>I agree with the
> terms of service
>
>
>
>
> ui:field="register">Register
> value="Reset" />
>
>
>
>
>
>
>
> 
>
> --
> 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@googl

Help, UIBinder and mixed mode HTML

2011-02-01 Thread John Gentilin
I have a UIBinder file that specifies a HTMLPanel that contains a mix
of plain HTML and GWT widgets.
If I don't bind any of the variables, the Widget will load correctly
and display. As soon as I bind a UI field
in my code including the @UIField definition,  @UiField TextBox
userid; then initializing the Widget fails in a NPE.

Thanks for any help in advance.
John Gentilin

This is the exception
java.lang.NullPointerException: null  at
com.CloudTvApps.PicRollr.client.Modules.Registration.RegistrationController_UIDefaultImpl.createAndBindUi(RegistrationController_UIDefaultImpl.java:
61) at
com.CloudTvApps.PicRollr.client.Modules.Registration.RegistrationController_UIDefaultImpl.createAndBindUi(RegistrationController_UIDefaultImpl.java:
1) at
com.CloudTvApps.PicRollr.client.Modules.Registration.RegistrationController.
(RegistrationController.java:37)
at
com.CloudTvApps.PicRollr.client.PicRollrEntryPoint.onModuleLoad(PicRollrEntryPoint.java:
32)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
396)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
183)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
510)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)
at java.lang.Thread.run(Thread.java:680)


UIBinder definition

http://dl.google.com/gwt/DTD/xhtml.ent";>











User ID:







Password:







Confirm Password:







Name:







E-mail:








I agree with the terms 
of service




Register










-- 
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 intégration with Joomla 1.5

2011-02-01 Thread panda
Hello Jan,

Yes, you right. I discovered this also yesterday evening. Now it
works. Now I have only CSS problems to solve (wrong width).

Thanks a lot,



On Jan 31, 10:18 pm, Jan Mostert  wrote:
> I think you'll need to do something like
> RootPanel.get('div-name').add(myWidget)
>
> --
> Jan Vladimir Mostert
> BEngSci
>
> Mail: j...@mycee.com
> MyCee Technologies
>
> On Mon, Jan 31, 2011 at 11:12 PM, panda  wrote:
> > To be more precise, I would like to make my GWT application displaying
> > on a div pre-defined in my Joomla component.
> > How to tell GWt module to be part of a arbitrary div?
>
> > Best regards,
>
> > panda
>
> > On 31 jan, 15:07, panda  wrote:
> > > Hello all,
>
> > > I've created a GWT module implementing the UI and some behavior based
> > > on events that rea easily handled in GWT. My web site is using Joomla
> > > 1.5. I created a Joomla component for may new functionality and I
> > > would like to link the view of that component to my GWT module.
>
> > > I've tried to copy / paste the HTML host of GWT into my Joomla
> > > component's view and the result is that the UI is displayed below my
> > > site instead of the in the place I've reserved for. The content of the
> > > host (HTML file from GWT module) is well present in the correct place
> > > if I'm doing right click -> Code source but the GWT UI is diaplyed
> > > below my site.
>
> > > How should I tell to my GWT mosule to load into a div that I may
> > > create with Joomla as place holder?
>
> > > Or, more generally, is a recommended way for integrating a GWT module
> > > in Joomla 1.5?
>
> > > Kind regards,
>
> > > panda
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-toolkit@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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



Eclipse, GWT plugin. Debugger does't work..

2011-02-01 Thread M. Eduard
Ubuntu 10.10 SpringSource Tool Suite Version: 2.5.0.M3 Build Id:
201008251000 When I try to debug, Debug As-> web Application, the tab
with Source not found opens. With stack trace in debug mode:

Thread [main] (Suspended (exception ClassNotFoundException))
URLClassLoader$1.run() line: 202 [local variables unavailable]
AccessController.doPrivileged(PrivilegedExceptionAction,
AccessControlContext) line: not available [native method]
Launcher$ExtClassLoader(URLClassLoader).findClass(String) line: 190
Launcher$ExtClassLoader.findClass(String) line: 229
Launcher$ExtClassLoader(ClassLoader).loadClass(String, boolean) line:
307
Launcher$AppClassLoader(ClassLoader).loadClass(String, boolean) line:
296
Launcher$AppClassLoader.loadClass(String, boolean) line: 301
Launcher$AppClassLoader(ClassLoader).loadClass(String) line: 248
InstrumentationImpl.loadClassAndStartAgent(String, String, String)
line: 280
InstrumentationImpl.loadClassAndCallPremain(String, String) line:
338


In the Development Mode tab is text with Development mode is loading,
where should be web app URL provided... So wtf?! Thank you!
By the way, same project checked out from SVN on Windows platform and
debbuger worked... Where might be the 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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.