Problem with Window.open and IE8 - lose focus

2011-04-20 Thread Billy
Hi,

I'm using com.google.gwt.user.client.Window.open to open a new window,
e.g.

Window.open("test.jsp",
"test","status=0,toolbar=0,menubar=1,location=0,resizable=0,width=500,height=500");

However, when I run the code in IE8, the new window that opens is
getting hidden in the background, e.g. behind the parent window.

The strange thing is that this works in other web browsers like
Firefox and Chrome.

Have you seen this issue? Do you know if there is any way to make the
GWT Window.open code to automatically set focus on the new window in
IE8?

Thanks.

Billy

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



How to remove a object from listEditor in new editor framework?

2010-11-14 Thread billy
suppose I got a person object with list of book and I bind it to a
@Path("books")
ListEditor listEditor = ListEditor.of(new
BookUIFactory());

when the BookUI receive a remove book click, how should I suppose to
update the underlying list and and the editor framework?

same question on how to add a new book too?
thanks for you 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-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: Correct usage of CompositeEditor?

2010-11-11 Thread billy
Just a note to anyone come to this

Finally i add a method in my event object like

Event getSelf(){
return this;
}
void setSelf(){

}

so my view object now have three editor with

@Path("self")
NameEditor

@Path("self")
LocationEditor

@Path("self")
TimeEditor

Please be warn that, I didn't try this with request factory, only on
plain POJO, this approach may blow up your request factory

On 11月4日, 下午7時02分, Tobias  wrote:
> Hi,
>
> from my understanding so far, the CompositeEditor is only useful if
> you want to have a variable number of instances of the sameeditor,
> usually for a list of objects. Look at the example in the docs, there
> is a WorkgroupEditor implementing CompositeEditor, which has n
> PersonEditors.
> For splitting up theeditorfor a large object, theEditor
> documentation actually mentions how to do that in the very last
> section:http://code.google.com/webtoolkit/doc/latest/DevGuideUiEditors.html#V...
> Hope it helps!
>
> Regards,
> Tobias
>
> On Nov 3, 6:31 pm, billy  wrote:
>
>
>
>
>
>
>
> > After watching gwt 2.1 release doc, I am exciting to try outeditor
> > framework and the request factory.
> > Currently I had already successfully retieve of a eventProxy from my
> > mongodb using requestFactory.I am trying to glue the eventProxy to the
> >editorframework.
> > I follow the MVP idea which the presenter would tranfer the eventProxy
> > to the view layer for editing so my view is now implementing
> >Editor
> > Since my eventProxy contain lots of property, which a single class
> > would be too large, I wish to logically divide the eventProxy into
> > three part like (name1,name2,name3), (time1,time2,time3) ,
> > (location1,location2,location3).
> > I had follow design at hand
>
> >         class eventPresenter   // (injected 1 viewEditor)
>
> >         class eventView  extendsEditor  // (injected 1
> > namesEditor, 1 timesEditor,injected 1 locationsEditor)
>
> >         class namesEditor extends Composite implementsEditor
>
> >         class timesEditor extends Composite implements  Editor
>
> >         class locationsEditor extends Composite implementsEditor
>
> > currently the eventPrenter contain the driver code like
>
> >         interface Driver extends
> > RequestFactoryEditorDriver
>
> > should my view implemnts CompositeEditor or
> >Editor
> > how can I link up the sub-editornameEditor,timeEditor,locationEditor
> > with the eventEvent
>
> > or i should make three driver code in the presenter layer? like
> > interface Driver extends RequestFactoryEditorDriver > nameEditor>
> > interface Driver extends RequestFactoryEditorDriver > timeEditor>
> > interface Driver extends RequestFactoryEditorDriver > locationEditor>
>
> > Thanks for any hint

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



Correct usage of CompositeEditor?

2010-11-03 Thread billy
After watching gwt 2.1 release doc, I am exciting to try out editor
framework and the request factory.
Currently I had already successfully retieve of a eventProxy from my
mongodb using requestFactory.I am trying to glue the eventProxy to the
editor framework.
I follow the MVP idea which the presenter would tranfer the eventProxy
to the view layer for editing so my view is now implementing
Editor
Since my eventProxy contain lots of property, which a single class
would be too large, I wish to logically divide the eventProxy into
three part like (name1,name2,name3), (time1,time2,time3) ,
(location1,location2,location3).
I had follow design at hand

class eventPresenter   // (injected 1 viewEditor)

class eventView  extends Editor  // (injected 1
namesEditor, 1 timesEditor,injected 1 locationsEditor)

class namesEditor extends Composite implements Editor

class timesEditor extends Composite implements  Editor

class locationsEditor extends Composite implements Editor


currently the eventPrenter contain the driver code like

interface Driver extends
RequestFactoryEditorDriver

should my view implemnts CompositeEditor or
Editor
how can I link up the sub-editor nameEditor,timeEditor,locationEditor
with the eventEvent


or i should make three driver code in the presenter layer? like
interface Driver extends RequestFactoryEditorDriver
interface Driver extends RequestFactoryEditorDriver
interface Driver extends RequestFactoryEditorDriver

Thanks for any hint

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



createLoginUrl not working in gwt dev mode - loses gwt.codesvr parameter

2010-05-19 Thread Billy
I have an application using GWT and AppEngine (more or less following
the StockWatcher tutorial) which I access locally as:

http://127.0.0.1:/mypage.jsp?gwt.codesvr=127.0.0.1:9997

I am creating a login url using:

userService.createLoginURL(requestUri)

where requestUri is passed to my server-side login service from my
entry point as: GWT.getHostPageBaseURL().

After logging in I am redirected to http://127.0.0.1:/

This loses the dev mode parameter gwt.codesvr and thusly this redirect
only works after I have a done a "GWT compile".

(This is using GWT SD 2.0.3 and App Engine SDK 1.3.3)

Is it possible to use the createLoginUrl functionality while remaining
in dev mode?

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.