Re: Channel API for GWT

2011-04-14 Thread Matthew Hill
Just use JSNI.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: UIField NullPointerException

2011-04-12 Thread Matthew Hill
That did it!

Changing 

   interface MainViewImplUiBinder extends UiBinderDockLayoutPanel, 
MainView {

}


to


   interface MainViewImplUiBinder extends UiBinderDockLayoutPanel, 
MainViewImpl {

}


fixed it :)


Thanks 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 and CSS3 Gradient

2011-04-12 Thread Matthew Hill
That's what I did.

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



SimpleEventBus not firing event after creation

2011-04-12 Thread Matthew Hill
   

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

 @Override

 public void onSome(SomeEvent event) {

  Window.alert(Hi);

 }

 });

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


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


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

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



DockLayoutPanel -- Get Width/Height of center panel

2011-04-11 Thread Matthew Hill
Hi.

I need to make a canvas element within the center panel of a 
DockLayoutPanel. However, to make a canvas, I must know the width and height 
which it will occupy.

How can I obtain the width and height of the center area of a 
DockLayoutPanel?

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



UIField NullPointerException

2011-04-11 Thread Matthew Hill
Has anyone else encountered NullPointerExceptions when referencing uifield's 
which are declared in UiBinder files?

In my viewimpl:
   
@UiField

SimplePanel canvasContainer;


...


public MainViewImpl() {

 initWidget((Widget) uiBinder.createAndBindUi(this));

 canvasContainer.add(..);

}


In my UiBinder:

 g:SimplePanel ui:field=canvasContainer

  /g:SimplePanel


The variable canvasContainer is always null.


Any ideas?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: Book that covers latest GWT release

2011-04-07 Thread Matthew Hill
From what I've found, there are no really good books for GWT. You should be 
able to learn it without a book just fine,though.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: Show progress of RPC call

2011-04-07 Thread Matthew Hill
I think you can do this only if you send the data in discrete chunks. When 
each chunk is received, the progress bar can be updated.

To be honest, it sounds like something that's probably more trouble than 
it's worth.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: monetize GWT project

2011-01-08 Thread Matthew Hill
Those are just directories of GWT applications.

Assuming you're talking about selling your persistence framework, I don't 
understand, why can't you sell it yourself?

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



Re: monetize GWT project

2011-01-08 Thread Matthew Hill
Assuming you're talking about selling your persistence framework, I don't 
understand, why can't you sell it yourself?

I doubt you're going to find a site specifically for selling GWT stuff. A 
site for selling libraries/frameworks of any nature is a remote possibility.

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



Re: How to find text in a TextArea

2011-01-05 Thread Matthew Hill
Use a contenteditable div (so that you can bold the keywords) with a string 
searching algorithm. 

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



Re: How to find text in a TextArea

2011-01-05 Thread Matthew Hill
http://blog.whatwg.org/the-road-to-html-5-contenteditable

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



Re: Adding event handler to UiBinder

2011-01-03 Thread Matthew Hill
AbstractImagePrototype is interesting. How does the overhead compare to 
using an Image widget and Image.setResource(..) ?

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



Re: Adding event handler to UiBinder

2011-01-03 Thread Matthew Hill
From looking at the source code it doesn't look like there'd be a great deal 
of difference.

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



Re: How to write file with GWT?

2011-01-03 Thread Matthew Hill
All of the writing needs to be done on the server, so within your sever 
package. The only thing which the client should do with this is make an RPC 
call.

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



Re: How to write file with GWT?

2011-01-03 Thread Matthew Hill
Can't you store it in the DB?

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



Re: client using older version of gwt

2011-01-02 Thread Matthew Hill
Do you mean how to deal with users who never refresh the page? You could 
just track the version number of the server, and compare it with the one on 
the client every x hours (depending on how often you update). If it's out of 
date ask the user to reload.

Otherwise, it's not an issue because each compile generates different 
[md5].cache.html files which won't already be cached by the browser.

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



Re: how to avoid instanceof checks in ActivityMapper ? is DoubleDispatch used in Expenses sample ?

2011-01-02 Thread Matthew Hill
You could use a generator, I think.

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



Re: how to avoid instanceof checks in ActivityMapper ? is DoubleDispatch used in Expenses sample ?

2011-01-02 Thread Matthew Hill
Oh, I know, but at least you wouldn't have to write them. Sorry, I thought 
that was the issue at hand here.

Ignore my answer; I misunderstood the question.

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



Re: HTMLPanel - Why doesn't it work with setTag(button)

2011-01-02 Thread Matthew Hill
I doubt it. If you set the tag to juyrjkuyjdyrk then it works, which is of 
course invalid.

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



Re: Adding event handler to UiBinder

2011-01-02 Thread Matthew Hill
Okay, I've done that now. My root element is a ButtonElement.

The problem is, I want to set up an Image widget within this button element, 
which displays an ImageResource. I can't do this, because if I have a 
button node as my root, then the UiBinder can't contain any widgets. I 
can't use g:HTMLPanel tag=button because it doesn't work.

Any ideas? 

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



How to disable a custom widget and its click handlers

2011-01-01 Thread Matthew Hill
Hi. I'm making a custom button widget.

This button has a setEnabled method. When the button is disabled, clicking 
on the button must do nothing. How do I achieve this behavior? 

I've tried adding a Click Handler like so, to no avail:

@Override

public void onClick(ClickEvent event) {

if (!isEnabled()) {

event.stopPropagation();

event.preventDefault();

return;

}

}

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



Re: How to disable a custom widget and its click handlers

2011-01-01 Thread Matthew Hill
That worked brilliantly.

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



Re: iTunes-type display widget

2011-01-01 Thread Matthew Hill
That's called CoverFlow.

No, there isn't a built-in widget like that. You'd have either to find one 
on the internet or make your own.

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



Re: GWT Adsense Integration Demo and Source Code

2010-12-31 Thread Matthew Hill
Good job, but:

1) This is against AdSense ToS and makes you liable to removal from the 
program.
2) The Ads are not contextually targeted due to the IFrame and the 
JS-generated content.

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



Re: AdSense and GWT

2010-12-30 Thread Matthew Hill
There is no way, I'm afraid.

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



Re: AdSense and GWT

2010-12-30 Thread Matthew Hill
David Chandler, do you know how many people get accepted? Is it reserved for 
'elite' sites?

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



Re: AdSense and GWT

2010-12-30 Thread Matthew Hill
Interesting. Thank you very much, David.

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



HTMLPanel - Why doesn't it work with setTag(button)

2010-12-30 Thread Matthew Hill
Hi.

In my UIBinder adding g:HTMLPanel tag=button.../g:HTMLPanel causes my 
app to not run and throw out a stream of obscure exceptions.

Replacing button with anything else causes it to work fine.
   

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



Re: Adding event handler to UiBinder

2010-12-30 Thread Matthew Hill
Looks like the root element must be a widget:


Type mismatch: cannot convert from ButtonElement to Widget

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



Create New Entity With Editor

2010-12-28 Thread Matthew Hill
Hi.

How can I use an editor to create a new entity, rather than edit an existing 
one? Is this capability already baked-in, and if so, how do I use it?

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



Re: Create New Entity With Editor

2010-12-28 Thread Matthew Hill
Would it have to be persisted to the DB, or could I just instantiate a bean 
without setting any properties and edit that?

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



Re: Create New Entity With Editor

2010-12-28 Thread Matthew Hill
I'm using the RequestFactoryEditorDriver, by the way.

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



Expenses Sample

2010-12-28 Thread Matthew Hill
Hi.

Is there a hosted version of the expenses sample included with GWT 2.1? It 
used to be hosted on GAE but the link doesn't work anymore.

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



Re: textbox water mark

2010-12-28 Thread Matthew Hill
It's showing up in the GWT group topic listing for me. 

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



Re: Create New Entity With Editor

2010-12-28 Thread Matthew Hill
Thanks. I've got it now. :)

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



Re: Client-side JSR 303 validation in editors framework. What version ?

2010-12-27 Thread Matthew Hill
It could be any post-GWT 2.1 release, hence the lack of specific version.

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



RequestFactory JSR303 Validation

2010-12-27 Thread Matthew Hill
Hi.

I'm wanting to get RequestFactory validating my beans. I've added the apache 
bval jars from here: http://incubator.apache.org/bval/cwiki/index.html

Now what? My beans aren't validated yet (I've added the annotations, but 
they are ignored). What further wiring up is required?

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



Re: image bundle in uibinder

2010-12-27 Thread Matthew Hill
.logotest { 

   background-image: url(/path/image.png); 
} 

should do it if I understand you correctly. The gwt-image property and 
@sprite is for use with ClientBundle.

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



Re: RequestFactory server-side inheritance

2010-12-27 Thread Matthew Hill
Probably just an error in your post, but you have DerivedClass extending 
BaseClass, right?

class DerivedClass extends BaseClass
{ 
 int field2; 
} 

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



Re: RequestFactory JSR303 Validation

2010-12-27 Thread Matthew Hill
Never mind, I've got it working now. I'd imported the JARs incorrectly.

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



Re: Interacting with Google Docs (Client side)

2010-12-27 Thread Matthew Hill
If you can't find a wrapper library out there, then doing it yourself with 
JSNI is the way to go.

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



Type mismatch: cannot convert from Requestcapture#1-of ? to RequestEmployeeProxy

2010-12-27 Thread Matthew Hill
The following line of code throws the above error:

   RequestEmployeeProxy request = requestFactory.find(employee.stableId())
;


employee is just an EmployeeProxy instance.


What's 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Editor Framework Questions

2010-12-27 Thread Matthew Hill
Thanks.

I'm finding the dynatablerf example as confusing as hell.

*
http://www.google.com/codesearch/p?hl=en#A1edwVHBClQ/samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/PersonEditorWorkflow.javaq=DynaTableRf%20package:http://google-web-toolkit%5C.googlecode%5C.comd=8
*
*
*
*What if I don't want the editor in a dialog box, but rather as an inline 
widget on the page? Would **PersonEditorWorkflow have to be a widget? If so 
that doesn't make much sense.*
*
*
*
*

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



Re: Type mismatch: cannot convert from Requestcapture#1-of ? to RequestEmployeeProxy

2010-12-27 Thread Matthew Hill
I'm going to try using my own find method on employeeRequest, like you said.

   RequestEmployeeProxy request = requestFactory
.employeeRequest().findEmployee(employee.getId());


Not quite sure what all of this stableId stuff is. Anyone care to explain? 

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



Re: image sprite in uibinder not working

2010-12-27 Thread Matthew Hill
No, that's the default behavior for all browsers which support data URIs. 
The sprite image method is used in IE 8

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



Re: Type mismatch: cannot convert from Requestcapture#1-of ? to RequestEmployeeProxy

2010-12-27 Thread Matthew Hill
Right. So from the overridden stableId method I return the unique ID which 
I'm using for my persistence?

And then what happens when you call RequestFactory#Find? How does it 'find' 
the proxy?

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



Re: Type mismatch: cannot convert from Requestcapture#1-of ? to RequestEmployeeProxy

2010-12-27 Thread Matthew Hill
I've got it now. I just need to add it to the interface.

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



Re: image sprite in uibinder not working

2010-12-27 Thread Matthew Hill
The base64 encoded string is only stored once within your compiled JS file - 
so reuse makes no difference.

There is a way to force it to use sprites, but I've never used it and don't 
know how to do it. Maybe someone else knows.

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



Re: image sprite in uibinder not working

2010-12-27 Thread Matthew Hill
The string is stored in the permutation cache.html file which contains all 
of the javascript. This file is cached - so it isn't re-downloaded on every 
request from the same browser.

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



Re: Display an Image from JPA entity.

2010-12-26 Thread Matthew Hill
You could either store the URL of the uploaded image or store the base-64 
encoded data of the image in your database.

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



Re: how to make table auto-extend, just like new google group UI 's content view?

2010-12-25 Thread Matthew Hill
You could use a CellList. 

http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellList

That example has the exact behavior that you're looking for.

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



Re: how to make table auto-extend, just like new google group UI 's content view?

2010-12-25 Thread Matthew Hill
Oops, sorry.

Maybe try putting it in a dock layout panel?

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



Re: Editor Framework Questions

2010-12-25 Thread Matthew Hill
Hi; thanks for your answer!

I'm beginning to understand it better now. A few more questions though...:


   - Is it best used with RequestFactory?
   - What are the pros and cons?

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



RequestFactory: /gwtRequest not found

2010-12-25 Thread Matthew Hill
HTTP ERROR: 404

NOT_FOUND

RequestURI=/gwtRequest

*Powered by Jetty:// http://jetty.mortbay.org/*

*
*

I've been following 
thishttp://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html, 
but get the above error when running my app. Presumably I need to set up 
some kind of servlet binding to that URI.

How?

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



Re: RequestFactory: /gwtRequest not found

2010-12-25 Thread Matthew Hill
Fixed by adding a servlet handler for 
com.google.gwt.requestfactory.serve.RequestFactoryServlet 
in web.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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Editor Framework Questions

2010-12-24 Thread Matthew Hill
Hi.

After reading 
thishttp://code.google.com/webtoolkit/doc/latest/DevGuideUiEditors.html page, 
I'm still unclear as to what editors are and what they are for.


   - What are they for?
   - Can you give me some example use-cases?
   - What advantages do they offer over editing without this framework?

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



Re: Chrome, GWT Dev Mode, OSX

2010-12-22 Thread Matthew Hill
I thought that there wasn't a dev plugin for Chrome on OS X?

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



Re: Chrome, GWT Dev Mode, OSX

2010-12-22 Thread Matthew Hill
I get the connection error too. It works just fine in Firefox.

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



Multiple Token Parameters

2010-12-22 Thread Matthew Hill
Hi.

How can I support passing multiple parameters to my activities via the 
token, e.g. query string style? I can do it, but not in a clean way that 
doesn't require code repetition.

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



Re: GIN MVP 2.1 Example

2010-12-21 Thread Matthew Hill
These two posts were very helpful:

http://wanderingcanadian.posterous.com/hello-mvp-with-gin
http://wanderingcanadian.posterous.com/using-binding-annotations-with-display-areas

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



Re: UiBinder or GWT Designer

2010-12-21 Thread Matthew Hill
The true question he is probably asking is should he use a WYSIWYG tool or 
write the interface by hand.

My advice would be to try both. The latter will give you more flexibility.

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



Re: Junk characters in response payload

2010-12-21 Thread Matthew Hill
I see these numbers a lot. I doubt they are junk.

I'd like to know what purpose they serve though.

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



GIN + PlaceController: No @Inject or default constructor found

2010-12-21 Thread Matthew Hill
Hi.

I'm trying to inject a PlaceController instance but I get this error:

No @Inject or default constructor found for class 
com.google.gwt.place.shared.PlaceController

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



Re: GIN + PlaceController: No @Inject or default constructor found

2010-12-21 Thread Matthew Hill
Do I need to wrap PlaceController?

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



Re: Return permutation directly from the server without selection script.

2010-12-21 Thread Matthew Hill
Okay, but now what?

How do I get the GWT compiler to produce a single JS file per permutation 
which can be embedded without a selection script?

e.g. script type=text/javascript language=javascript src=
/forum/80211893D06A9872E240CE455509BCE9.cache.jshttps://groups.google.com/forum/80211893D06A9872E240CE455509BCE9.cache.js
 

https://groups.google.com/forum/80211893D06A9872E240CE455509BCE9.cache.js

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



GIN MVP 2.1 Example

2010-12-20 Thread Matthew Hill
Hi.

Does anyone have a code sample of a basic GWT 2.1 MVP app which uses GIN? 
Ideally the example Hello  Goodbye app which is posted in the MVP 
section.

I ask this because I want to use GIN but I really have no idea where to 
start nor how exactly to set things up, and an example would go a long way.

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



Re: Serve image from blob store

2010-12-20 Thread Matthew Hill
Try the Google App Engine group:

https://groups.google.com/forum/#!forum/google-appengine

or the GAE Java group.

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



Re: Does GWT is indexed by search engines? HOW?

2010-12-20 Thread Matthew Hill
Use these techniques in conjunction with history tokens:

http://code.google.com/web/ajaxcrawling/

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



Re: GIN MVP 2.1 Example

2010-12-20 Thread Matthew Hill
Thanks. I think I understand it a bit better now but an example of it being 
used in MVP would still be useful.

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



Re: GIN MVP 2.1 Example

2010-12-20 Thread Matthew Hill
That doesn't use GIN. :(

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



Re: why EventBus in start method of Activity in 2.1

2010-12-20 Thread Matthew Hill
So should we bother injecting an EventBus instance into the constructor or 
just use the instance provided by the start method?

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



Re: Is there any thing like gmail more action customized dropdown available in gwt?

2010-12-19 Thread Matthew Hill
Nope, you'll have to make your own.

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



Re: I've updated my blog article today

2010-12-19 Thread Matthew Hill
Thanks for posting this.

A suggestion for your app: please style the widgets rather than leaving them 
as default.

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



Re: Embed a PDF in a TextArea

2010-12-18 Thread Matthew Hill
It could be done with tons of hacking, surely?

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



ActivityMapper: Ignore place change

2010-12-18 Thread Matthew Hill
Hi. 

I have an app with multiple Activity Mappers, and there are cases where I 
want one to respond to a particular place change but the other Activity 
Mappers to do nothing. 

How can I specify in an Activity Mapper that certain Place changes should be 
completely ignored?

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



Re: Header + Footer with GWT 2.1 MVP

2010-12-18 Thread Matthew Hill
Thomas, now my only problem is that the header refreshes on every single 
placechange. As it may contain data which only needs to be loaded once for a 
given session, this seems wasteful.

See: https://groups.google.com/forum/#!topic/google-web-toolkit/zYBLljOZjS4 

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



Re: Embed a PDF in a TextArea

2010-12-18 Thread Matthew Hill
I say hacking because although it's not easy, it isn't Not possible.

I suggest researching how they do this on Google Books. It looks like they 
use plain images of the PDF file for each page and then somehow map the 
locations of the words onto locations which can be highlighted.

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



Re: GWT 2.1 Video with Sample Code

2010-12-18 Thread Matthew Hill
+1

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



GWT History Frame

2010-12-17 Thread Matthew Hill
What is the iframe on the host page for? Could it not be inserted 
programmatically?

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



Header + Footer with GWT 2.1 MVP

2010-12-17 Thread Matthew Hill
Hi.

How would I make a root widget (or presenter?), which contains anything 
which should be on every page, e.g. a header and footer. I'm using the MVP 
features of GWT 2.1.

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



Re: Header + Footer with GWT 2.1 MVP

2010-12-17 Thread Matthew Hill
Thank you for your answer. I'm not sure that putting it in the host page is 
a good idea for my app -- I'd rather use that as a last resort.

My current onModuleLoad override method in my Entry Point is this:
   
  private SimplePanel appWidget = new SimplePanel();

   public void onModuleLoad() {

 ClientFactory clientFactory = GWT.create(ClientFactory.class);

 EventBus eventBus = clientFactory.getEventBus();

 PlaceController placeController = clientFactory.getPlaceController();

  ActivityMapper activityMapper = new AppActivityMapper(clientFactory);

 ActivityManager activityManager = new ActivityManager(activityMapper, 
eventBus);

 activityManager.setDisplay(appWidget);

  AppPlaceHistoryMapper historyMapper = GWT.create(AppPlaceHistoryMapper.
class);

 PlaceHistoryHandler historyHandler = newPlaceHistoryHandler(historyMapper);

 historyHandler.register(placeController, eventBus, defaultPlace);


 RootPanel.get().add(appWidget);

 historyHandler.handleCurrentHistory();

}

 Couldn't I solve this problem by subclassing SimplePanel, and adding my 
header and footer to *appWidget before calling *activityManager.setDisplay?

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



Re: Header + Footer with GWT 2.1 MVP

2010-12-17 Thread Matthew Hill
Hi.

I thought I'd play with having multiple ActivityMappers. Here's what I've 
got so far:

   @Override

public void onModuleLoad() {

 DockLayoutPanel containerWidget = new DockLayoutPanel(Unit.PX);

 SimplePanel headerWidget = new SimplePanel();

 SimplePanel mainWidget = new SimplePanel();

  ClientFactory clientFactory = GWT.create(ClientFactory.class);

 EventBus eventBus = clientFactory.getEventBus();

 PlaceController placeController = clientFactory.getPlaceController();

  HeaderActivityMapper headerActivityMapper = 
newHeaderActivityMapper(clientFactory);

 ActivityManager headerActivityManager = 
newActivityManager(headerActivityMapper, eventBus);

 headerActivityManager.setDisplay(headerWidget);

  MainActivityMapper mainActivityMapper = newMainActivityMapper(clientFactory);

 ActivityManager mainActivityManager = newActivityManager(mainActivityMapper, 
eventBus);

 mainActivityManager.setDisplay(mainWidget);

  containerWidget.addNorth(headerWidget, 200);

 containerWidget.addEast(mainWidget, 500);

  RootPanel.get().add(containerWidget);

  AppPlaceHistoryMapper historyMapper = GWT.create(AppPlaceHistoryMapper.
class);

 PlaceHistoryHandler historyHandler = newPlaceHistoryHandler(historyMapper);

 historyHandler.register(placeController, eventBus, defaultPlace);

 historyHandler.handleCurrentHistory();

  // where should I put this?

 clientFactory.getPlaceController().goTo(new HeaderPlace());

}


There is a problem though. *clientFactory.getPlaceController().goTo(new
 HeaderPlace());* correctly sets the header, but in the process it it clears 
out the other activity. If I comment out that line, the other activity 
correctly displays *defaultPlace*. HeaderPlace is only checked for in 
*HeaderActivityMapper, 
*the the place for *defaultPlace *is only checked for in *MainActivityMapper
*.

Any idea what's 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Header + Footer with GWT 2.1 MVP

2010-12-17 Thread Matthew Hill
Sorry, I was confused because David C. said this in the thread which he 
linked to: In this design, the WestActivity could 
call placeController.goTo(detailPlace), where DetailPlace is mapped only 
in the EastActivityMapper so the westPanel won't change. When I read that, 
I think that what I tried to do should work, but I probably 
just misinterpreted it. 

The header will need to change slightly, in reaction to events which change 
the nav bar appearance, and that of the user bar. But, I could do that with 
a widget, right? Or would the having another activity be better in any way?

Thank you for the blog links -- I'll read them now.

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



Re: Header + Footer with GWT 2.1 MVP

2010-12-17 Thread Matthew Hill
Thanks for your blog post on working around the lack of true nesting -- very 
useful. I've got it working now. 

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



Re: How to load data BEFORE showing view/presenter?

2010-12-02 Thread Matthew Hill
Thank you Thomas, that sounds very promising. I'll try that out.

On 3 December 2010 01:53, Thomas Broyer t.bro...@gmail.com wrote:


 On 1 déc, 02:27, Matt H matt2...@gmail.com wrote:
  Hi.
 
  If you poke around some of Google's GWT apps, you'll find that when
  you click on anything which requires more data to be loaded, that a
  'loading' sign is displayed at the top of the screen, and while
  loading, it stays on the current view, and then when the data for the
  next view has been downloaded, the loading sign is removed and the new
  view is shown.
 
  How can I implement this behavior?

 The trick is that the AcceptsOneWidget that you use for your
 ActivityManager has to handle a 'null' value as *not* clearing the
 display (in other words, give an AcceptsOneWidget of your own, do not
 use a SimplePanel).
 ActivityManager calls setWidget(null) when it stops the current
 activity, and the next activity will then call setWidget with its view
 when it's ready. If, when called with null, you don't do anything, the
 previous activity will still be shown. And in your activities then
 only call setWidget once you received the data.

 The loading text is another story, and depends how you retrieve your
 data; but metalhammer29a rightfully pointed to the NotificationMole
 for the display part.

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



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



Re: How to load data BEFORE showing view/presenter?

2010-12-01 Thread Matthew Hill
Sorry, I should've mentioned that I'm using GWT 2.1 Activities + Places.

On 1 December 2010 20:22, ep eplisc...@googlemail.com wrote:

 depends on the MVP framework you use - gwtp for instance, already
 supports it, if GWT MVP does not, then you can subclass presenter,
 call it IndicatingPresenter and add one more lifecycle state,
 because the presenter will be lazy loaded and shows a loading
 indicator until its data is not available... when ready re-render the
 view with data loaded.

 On 1 Dez., 19:01, Matt H matt2...@gmail.com wrote:
  Anyone? Surely it's simple enough to do?
 
  On Dec 1, 1:27 am, Matt H matt2...@gmail.com wrote:
 
 
 
 
 
 
 
   Hi.
 
   If you poke around some of Google's GWT apps, you'll find that when
   you click on anything which requires more data to be loaded, that a
   'loading' sign is displayed at the top of the screen, and while
   loading, it stays on the current view, and then when the data for the
   next view has been downloaded, the loading sign is removed and the new
   view is shown.
 
   How can I implement this behavior?

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



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