Tuesday, August 31, 2010

Re: GWT Database

U know I am new to GWT and I am doing a dissertation on this topic at
the University? I am just asking u some question and it would be great
if u can help me!!
What database can I use with GWT and java as the server language?? can
PostgresSQL be used??

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: 2.1 M3 sdk download missing classes

Ignore 4 above, I hit submit by accident

4) protected class ResidentListAsyncAdapter extends
AsyncListViewAdapter<ResidencyListV>{
@Override
protected void onRangeChanged(ListView<ResidencyListV> view) {
Range newRange = view.getRange();
loadCellData(newRange.getStart(), newRange.getLength());
}
}

Becomes

protected class ResidentListAsyncAdapter extends
AsyncDataProvider<ResidencyListV>{
@Override
protected void onRangeChanged(HasData<ResidencyListV> view) {
Range newRange = view.getVisibleRange();
loadCellData(newRange.getStart(), newRange.getLength());
}
}

5) residentListAdapter.addView(theTable);

Now becomes

residentListAdapter.addDataDisplay(theTable)

6) residentListAdapter.updateDataSize(result.getNumTotalRecords(),
true);

Becomes

residentListAdapter.updateRowCount(result.getNumTotalRecords(),
true);

7) residentListAdapter.updateViewData(startIndex,
result.getRecords().size(), result.getRecords());

Becomes

residentListAdapter.updateRowData(startIndex,
result.getRecords());

8) residentTableSelModel.addSelectionChangeHandler(new
SelectionChangeHandler(){
@Override
public void onSelectionChange(SelectionChangeEvent event) {
.....
}
});

Becomes

residentTableSelModel.addSelectionChangeHandler(new
SelectionChangeEvent.Handler() {
@Override
public void onSelectionChange(SelectionChangeEvent event) {
.....
}
});


I think that was all the changes I had to make.


On Aug 31, 10:38 pm, Paul Stockley <pstockl...@gmail.com> wrote:
> I managed to convert my code without too many problems. This release
> has fixed a few issues I was having so I am happy.
>
> There are quite a few changes required:
>
> 1)              thePager = new SimplePager<R>(theTable);
>                 theTable.setPager(thePager);
>
>                 Now becomes
>
>                 thePager = new SimplePager();
>                 thePager.setDisplay(theTable);
>
> 2)             theTable.setSelectionEnabled(true);
>
>                  Has been removed. I just commented it out and the
> table still supports selection. I haven't investigated what this has
> been replaced with yet
>
> 3)              theTable.refreshHeaders();
>
>                 Now becomes
>
>                 theTable.redrawHeaders();
>
> 4)             residentListAdapter.addView(theTable);
>
> On Aug 31, 2:51 pm, Christian Goudreau <goudreau.christ...@gmail.com>
> wrote:
>
>
>
>
>
>
>
> > Yeah they changed a lot of thing, I'm also struggling to get my CellTable
> > back to work.
>
> > Cheers,
>
> > On Tue, Aug 31, 2010 at 2:44 PM, chiappone <chiapp...@gmail.com> wrote:
> > > I am also struggling to get a simple CellTable working with M3.
>
> > > Javadocs are included with the SDK locally if you need them.
>
> > > On Aug 31, 11:01 am, John <bradley.r...@gmail.com> wrote:
> > > > I just downloaded the eclipse plugin and sdk for 2.1M3 using the
> > > > eclipse software installer.  I'm trying to create a simple CellTable
> > > > example based on another post (http://groups.google.com/group/google-
> > > > web-toolkit/browse_thread/thread/85dd53d3183e7b9a) but the class
> > > > ListViewAdapter doesn't exist in the the sdk I have ... the only L
> > > > class in com.google.gwt.view.client is ListDataProvider - which
> > > > doesn't even exist in the javadocs (http://google-web-
> > > > toolkit.googlecode.com/svn/javadoc/2.1/index.html?com/google/gwt/
> > > > view/)
>
> > > > Am I completely missing something or is the download repo for Gallileo
> > > > just on the wrong version? (http://google-web-toolkit.googlecode.com/
> > > > svn/2.1.0.M3/eclipse/plugin/3.5)
>
> > > > Thanks,
> > > > John
>
> > > --
> > > You received 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+unsubscribe@googlegroups.com<google-web-toolkit%2Bunsubs cribe@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > --
> > Christian Goudreauwww.arcbees.com

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: 2.1 M3 sdk download missing classes

I managed to convert my code without too many problems. This release
has fixed a few issues I was having so I am happy.

There are quite a few changes required:

1) thePager = new SimplePager<R>(theTable);
theTable.setPager(thePager);

Now becomes

thePager = new SimplePager();
thePager.setDisplay(theTable);

2) theTable.setSelectionEnabled(true);

Has been removed. I just commented it out and the
table still supports selection. I haven't investigated what this has
been replaced with yet


3) theTable.refreshHeaders();

Now becomes

theTable.redrawHeaders();

4) residentListAdapter.addView(theTable);

On Aug 31, 2:51 pm, Christian Goudreau <goudreau.christ...@gmail.com>
wrote:
> Yeah they changed a lot of thing, I'm also struggling to get my CellTable
> back to work.
>
> Cheers,
>
>
>
>
>
>
>
>
>
> On Tue, Aug 31, 2010 at 2:44 PM, chiappone <chiapp...@gmail.com> wrote:
> > I am also struggling to get a simple CellTable working with M3.
>
> > Javadocs are included with the SDK locally if you need them.
>
> > On Aug 31, 11:01 am, John <bradley.r...@gmail.com> wrote:
> > > I just downloaded the eclipse plugin and sdk for 2.1M3 using the
> > > eclipse software installer.  I'm trying to create a simple CellTable
> > > example based on another post (http://groups.google.com/group/google-
> > > web-toolkit/browse_thread/thread/85dd53d3183e7b9a) but the class
> > > ListViewAdapter doesn't exist in the the sdk I have ... the only L
> > > class in com.google.gwt.view.client is ListDataProvider - which
> > > doesn't even exist in the javadocs (http://google-web-
> > > toolkit.googlecode.com/svn/javadoc/2.1/index.html?com/google/gwt/
> > > view/)
>
> > > Am I completely missing something or is the download repo for Gallileo
> > > just on the wrong version? (http://google-web-toolkit.googlecode.com/
> > > svn/2.1.0.M3/eclipse/plugin/3.5)
>
> > > Thanks,
> > > John
>
> > --
> > You received 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+unsubscribe@googlegroups.com<google-web-toolkit%2Bunsubs cribe@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> Christian Goudreauwww.arcbees.com

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

How to make a dockpanel center take up the whole center? like swing does?

The below code makes a "center" in a yellowish color as desired
however
- EAST is only as high as the text
- CENTER is just a small box not the whole center that grows/shrinks
as the browser is resized.

code below

public class DemoEntryPoint
implements EntryPoint {

/**
* This is the entry point method.
*/
@Override
public void onModuleLoad() {
DockPanel dockpanel = new DockPanel();
dockpanel.setWidth("100%");


HorizontalPanel headerPanel = new HorizontalPanel();
headerPanel.setWidth("100%");
headerPanel.setHeight("100%");
headerPanel.add(new Label("Title Header"));
dockpanel.add(headerPanel, DockPanel.NORTH);


final Label label1 = new Label("dynamic website : demo :
2010");
dockpanel.add(label1, DockPanel.SOUTH);

String text1 = "Lorem ipsum dolor sit amet...";
String text2 = "Sed egestas, arcu nec accumsan...";
String text3 = "Proin tristique, elit at blandit...";
StackPanel stackMenuPanel = new StackPanel();
Label label;
label = new Label(text1);
stackMenuPanel.add(label, "One", false);
label = new Label(text2);
stackMenuPanel.add(label, "Two", false);
label = new Label(text3);
stackMenuPanel.add(label, "Three", false);
stackMenuPanel.setSize("1.75in", "3in");
stackMenuPanel.addStyleName("demo-panel");

dockpanel.add(stackMenuPanel, DockPanel.WEST);


Panel eastPanel = new SimplePanel();
eastPanel.add(new Label("D"));
eastPanel.setHeight("100%");
eastPanel.setWidth("100px");
dockpanel.add(eastPanel, DockPanel.EAST);

DockPanel pp = new DockPanel();
Panel center = new HorizontalPanel();
// center.setTitle("adsfasfasf");
center.add(new Label("center"));
center.setWidth("100%");
center.setHeight("100%");
pp.add(center, DockPanel.CENTER);
dockpanel.add(pp,DockPanel.CENTER);


RootPanel.get().add(dockpanel);
}
}

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

HTML5 audio support added to gwt-voices-2.0.0.jar

GWT developers,

Want to add sound effects to your GWT apps?

The gwt-voices project has long provided a simple API for adding sound to your GWT apps, which can be useful for business applications and games alike.

To date, gwt-voices provided audio support via the browser's native capabilities (remember the BGSOUND tag and its friends?) and, if installed, Adobe Flash (for MP3 files).
This latest version of gwt-voices adds automatic support for HTML5 audio for modern browsers. Of course, the old native audio and Flash fallback functionality is still in place in case your users need it.

To get started, add the gwt-voices jar to your project's classpath and inherit the gwt-voices module:
    <inherits name="com.allen_sauer.gwt.voices.gwt-voices" />

Then simply play() your sound:
    SoundController sc = new SoundController();
    Sound sound = sc.createSound(Sound.MIME_TYPE_AUDIO_OGG_VORBIS,
        "mysoundfile.ogg"); // put the file in the 'war' directory
    sound.play();

The main project site, which includes a live demo, is here:
  http://code.g oogle.com/p/gwt-voices/

Interested in seeing which MIME Types are supported by the various HTML5 capable browsers? Look no further than this crowd sourced data (your own user agent will be highlighted in yellow):


Full set of Release Notes:

A more complete Getting Started guide:

Feedback is always welcome.

Enjoy-- 
Fred Sauer
Developer Advocate
G
ooglInc.
1600 Amphitheatre Parkway
Mountain View, CA 94043
fredsa@google.com


--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Accessing GWT code objects from the HTML/JS of another webpage

Hi All,

I am building a web application which has, among other things, a
com.google.gwt.user.client.ui.Frame.

I have access to the webpage viewed by this Frame and I can make some
small changes (add some javascript functions) to this page.

What I would like to do is be able to click on a button in the
page...and have that click activate something in the main GWT
application.

Any ideas how you do that?

Cheers

Andrew

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: how to call forcelayout() in a tablayout panel

I had a need for this recently - this is what I used:

private native void forceTabLayoutPanelToLayout(TabLayoutPanel
tabLayoutPanel) /*-{
var layoutPanel =
tabLayoutPanel.@com.google.gwt.user.client.ui.Composite::getWidget()
();

layoutPanel.@com.google.gwt.user.client.ui.LayoutPanel::forceLayout()
();
}-*/;

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: GWT Designer not available ...

GWT Designer, along with the other Instantiations products, is
currently being Googlized (legal, branding, etc.) and will be
available again in the future. We will make an announcement on the
Google Web Toolkit Blog when we have more information to provide.

All paid, registered users were sent an email last week containing
information on how to contact Google's GWT Designer support and how to
get access to the GWT Designer product itself. If you missed that
email or it was grabbed by your spam filter, you can send a request to
dev-tools-sales@google.com (make sure to include your GWT Designer
serial number). The product is not currently available for eval or
purchase, but we are working hard to make it available again in the
future.

-Eric

On Aug 31, 10:05 am, Kasper Hansen <kbhdk1...@gmail.com> wrote:
> I third that ;-) I also bought the awesome GWT Designer, and where did it
> go... ?
>
> On Tue, Aug 31, 2010 at 3:37 PM, dleins <dle...@gmail.com> wrote:
> > I have the same problem.  Can the old version at least be made
> > available?
>
> > On Aug 31, 6:14 am, norandom <vincent.arc...@gmail.com> wrote:
> > > Hi,
> > > I bought a license gwt designer a few months ago and now I need to
> > > install it again. But I can not download it from the site of
> > > instantiations since the purchase by google :-(.
> > > Hallo google !?!?
> > > How can I do?
> > > Do you plan to put it again online ?
> > > regards

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: problems with auto-complete form login

On 31 août, 19:34, Magnus <alpineblas...@googlemail.com> wrote:
> Hi folks,
>
> is it the common opinion for GWT apps to have a separate login page?
> (Thomas, your "cache" example seems a bit artificial to me (although I
> believe that you know why you recommend a separate login page).)

Having built 2 apps that way, and having to remember to handle those
login/logout events to "reset" the views, I can assure you it's not
"artificial", but lot of boilerplate code I could have just avoided
writing. I also spent way too much time (IMO) to get the login process
working (have to use a base AsyncCallback/RequestCallback that handles
authentication errors to show the login screen –RequestFactory will
fortunately makes this waaay easier–; and what to do once you log back
in? replay the request? the reason we went for an "integrated login"
UX was our client asking for sessions to expire, and we didn't want
the user to lose its unsaved work, so the login screen in this case is
showed "above" the screen, with the username field switched to
readonly; if you do not have a need for such a thing, then I you could
probably live with an "externalized login"; I'm now trying to make
clients change their mind about session expiration, and/or adopting a
different approach with auto-saves into server-side "working copies",
or live with their users losing work if they don't hit "save" soon
enough though without automatically redirecting them to the login
screen, similar to how "web 1.0" applications generally work –
directing you to the login screen only when you hit the server, i.e.
only between page loads–)

> Could someone please provide an example for a separate login page? I
> wonder if this should be realized as a servlet or a jsp or something
> like that, how control is passed to the app and how the app finds out
> that the user is logged in...

To force authentication, my approach is to just have the "host html
page" a protected resource (configure security in the web.xml to
require a valid, authenticated user; letting the servlet container
handling authentication, using JASPIC/JSR-196 or the container's own
APIs when you need/want customization).
For the app to know the user's details, the host html page is a JSP,
rendering a <script> block defining a JavaScript variable with the
needed info,and using JSNI or just Dictionnary to getthe info from the
GWT app (do a view-source on GMail or any AJAX Google App, you'll see
that they're doing similar things), but an RPC request at onModuleLoad
could do it too (though a bit less performant).

I can't give you code/config sample offhand, but there's nothing
really special about it. The only missing thing is to detect session
expirations from your RPC calls but you already were doing this,
right?
(as I said, RequestFactory makes this easier –dispatching an event on
the eventbus– so if you can wait GWT 2.1, use RequestFactory!)

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Loading the old 'gwt.js' bootstrap script is no longer supported

Thanks Isaac.

On Aug 31, 9:47 am, Isaac Truett <itru...@gmail.com> wrote:
> It sounds to me like you're editing ClientCallDetails.html in the compiler
> output instead of the source directory. You probably want
> src/com/sample/project/public/ClientCallDetails.html.
>
>
>
> On Mon, Aug 30, 2010 at 12:17 PM, grasshopper <revi2...@gmail.com> wrote:
> > Hello all,
>
> > I am trying to upgrade the GWT version of a project I did a long time
> > ago from the beta version of GWT to GWT 1.5.3.
>
> > When I try to run the project in host mode I get the following error:
> > [TRACE] The development shell servlet received a request for 'gwt.js'
> > in module 'com.sample.project.ClientCallDetails.gwt.xml'
> > [WARN] Loading the old 'gwt.js' bootstrap script is no longer
> > supported; please load
> > 'com.sample.project.ClientCallDetails.nocache.js' directly
>
> > I did change my ClientCallDetails.html file's <script /> tag to
> > reflect the new module name to load instead of gwt.js. However, every
> > time I compile the project the .html gets overwritten and module to
> > load returns to gwt.js
>
> > Anyone have ideas as to what I might of missed during my upgrade to
> > GWT 1.5?
>
> > Thanks in advanced
>
> > --
> > You received 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+unsubscribe@googlegroups.com<google-web-toolkit%2Bunsubs cribe@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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Clearing handlers added to elements created using wrap method

Good point... I've been spending too much time writing my own widgets
lately :-)
Anchor.wrap() takes care of everything.

Gal Dolber wrote:
> Are you sure that is required?
> That should be automatic
>
>
> 2010/8/31 George Georgovassilis <g.georgovassilis@gmail.com
> <mailto:g.georgovassilis@gmail.com>>
>
> RootPanel.detachOnWindowClose(yourWidget)
>
> On Aug 31, 9:06 pm, myapplicationquestions <parag.bhag...@cgi.com
> <mailto:parag.bhag...@cgi.com>>
> wrote:
> > Hi All,
> >
> > I have an existing html and i am adding a simple GWT script to that
> > page which will show an alert when an existing link is clicked. I do
> > this by the following code
> >
> > public class ABCMobile implements EntryPoint,ClickHandler
> > {
> >
> > public void onModuleLoad()
> > {
> >
> > Anchor lo = Anchor.wrap(DOM.getElementById("AMSBrowse"));
> > lo.addClickHandler(this);
> >
> > }
> >
> > public void onClick(ClickEvent event)
> > {
> > // TODO Auto-generated method stub
> > Window.alert("yeah yeah yeah222222222");
> >
> > }
> >
> > }
> >
> > Now the question is..
> >
> > 1) How do i make sure the handler is removed when the page
> unloads? I
> > could not find anyway to do that.
> >
> > Let me know if anyone has any suggestions.
> >
> > Thanks,
> > Parag
>
> --
> You received this message because you are subscribed to the Google
> Groups "Google Web Toolkit" group.
> To post to this group, send email to
> google-web-toolkit@googlegroups.com
> <mailto:google-web-toolkit@googlegroups.com>.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscribe@googlegroups.com
> <mailto:google-web-toolkit%2Bunsubscribe@googlegroups.com>.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>
>
> --
> Guit: Elegant, beautiful, modular and *production ready* gwt
> applications.
>
> http://code.google.com/p/guit/
>
>
>
> --
> You received 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+unsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Clearing handlers added to elements created using wrap method

Are you sure that is required?
That should be automatic


2010/8/31 George Georgovassilis <g.georgovassilis@gmail.com>
RootPanel.detachOnWindowClose(yourWidget)

On Aug 31, 9:06 pm, myapplicationquestions <parag.bhag...@cgi.com>
wrote:
> Hi All,
>
> I have an existing html and i am adding a simple GWT script to that
> page which will show an alert when an existing link is clicked. I do
> this by the following code
>
> public class ABCMobile implements EntryPoint,ClickHandler
> {
>
>    public void onModuleLoad()
>    {
>
>       Anchor lo = Anchor.wrap(DOM.getElementById("AMSBrowse"));
>       lo.addClickHandler(this);
>
>    }
>
>    public void onClick(ClickEvent event)
>    {
>       // TODO Auto-generated method stub
>       Window.alert("yeah yeah yeah222222222");
>
>    }
>
> }
>
> Now the question is..
>
> 1) How do i make sure the handler is removed when the page unloads? I
> could not find anyway to do that.
>
> Let me know if anyone has any suggestions.
>
> Thanks,
> Parag

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.




--
Guit: Elegant, beautiful, modular and production ready gwt applications.


--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Clearing handlers added to elements created using wrap method

RootPanel.detachOnWindowClose(yourWidget)

On Aug 31, 9:06 pm, myapplicationquestions <parag.bhag...@cgi.com>
wrote:
> Hi All,
>
> I have an existing html and i am adding a simple GWT script to that
> page which will show an alert when an existing link is clicked. I do
> this by the following code
>
> public class ABCMobile implements EntryPoint,ClickHandler
> {
>
>    public void onModuleLoad()
>    {
>
>       Anchor lo = Anchor.wrap(DOM.getElementById("AMSBrowse"));
>       lo.addClickHandler(this);
>
>    }
>
>    public void onClick(ClickEvent event)
>    {
>       // TODO Auto-generated method stub
>       Window.alert("yeah yeah yeah222222222");
>
>    }
>
> }
>
> Now the question is..
>
> 1) How do i make sure the handler is removed when the page unloads? I
> could not find anyway to do that.
>
> Let me know if anyone has any suggestions.
>
> Thanks,
> Parag

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: GWT Spring integration - what is the best method in late 2010?

Hi Sam,

The SL [1] is a community maintained integration of Spring and GWT
mainly focused at exporting Spring managed beans as RPC services. It
was launched four years ago and has reached through many releases a
high degree of maturity. The documentation is extensive, it's easy to
use (though I'm biased) but it's been criticized for not using maven.

[1] http://gwt-widget.sourceforge.net/

On Aug 31, 5:31 pm, Sam <sambrod...@gmail.com> wrote:
> Note: this thread is about using Spring for your service impls in a
> GWT app (it's not about integrating Spring MVC or using ROO. It's also
> not about Guice)
>
> There are a few posts on this but it's hard to tell what the best
> method is today.  The two contenders seem to me to be:
>
> 1)http://code.google.com/p/gwt-spring-starter-app/(my project based
> on P.G. Taboada's approach:http://pgt.de/2009/07/17/non-invasive-gwt-and-spring-integration-relo...)
>
> which is as simple as can be, however, the one annoyance is that you
> need yet another class for each RPC Service (A wrapper that extends a
> spring context injecting RemoteServiceServlet)
>
> 2)http://code.google.com/p/gwtrpc-spring/
>
> Just glanced at this.  Looks a lot more complicated and the project
> has a lot of unresolved issues.
>
> Am I missing any approaches?  Surely you other GWT devs are using
> Spring on the back end if you're writing serious applications.  Don't
> be shy, please speak up.

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: what is the appropriate MVP way of doing this?

Cool, I definitely look forward to reading the article. Thanks guys!

Joe

On Aug 31, 2:27 pm, Christian Goudreau <goudreau.christ...@gmail.com>
wrote:
> Even better, I would declare an interface inside my view referencing only
> presenters function needed and use @UiHandler.
>
> More informations here:http://code.google.com/intl/fr-FR/webtoolkit/articles/mvp-architectur...
>
> I'm also about to publish an article on ArcBees's developer
> blog<http://arcbees.wordpress.com/>in a day or two about that.
>
> Cheers,
>
>
>
> On Tue, Aug 31, 2010 at 2:23 PM, Sam <sambrod...@gmail.com> wrote:
> > Joe, in the View interface I would provide:
>
> > HasClickHandlers getTextBoxForClickHandler();
>
> > HasKeyUpHandlers getTextBoxForKeyUpHandler();
>
> > The implementations in the View would both return that same TextBox.
> > Redundant but clear.
>
> > --
> > You received 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+unsubscribe@googlegroups.com<google-web-toolkit%2Bunsubscribe@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> Christian Goudreauwww.arcbees.com

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: How to add an ImageResource to a CellTable Column

Thanks, do you have any examples implementing a CellTable with an
ImageResourceCell?

On Aug 30, 6:50 am, Thomas Broyer <t.bro...@gmail.com> wrote:
> On 27 août, 20:48, chiappone <chiapp...@gmail.com> wrote:
>
> > I have set up a CellTable where I would like to have an image inside
> > of a cell defined by an ImageResource.  What is the best way to do
> > this?
>
> GWT 2.1-M3 comes with anImageResourceCell.

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: App engine automatically caching?

App Engine should not automatically cache anything unless you tell it to. Here are the probably cases:

1. Did you set cache-control headers? If you set cache-control:public, this may cause your ISP, any proxies, or even the App Engine infrastructure to hold on longer than you like.
2. Local browser cache? (Test using curl/wget/telnet)
3. Could your ISP be caching?

I could be misunderstanding your email - are you using URLFetch? There may be some caching that happens on responses, but this data should be extremely short-lived. 

At any rate, you may want to ask this question in the Google App Engine groups: http://code.google.com/appengine/community.html

On Tue, Aug 31, 2010 at 9:38 AM, Thomas Dvornik <amphro@gmail.com> wrote:
Hey guys,

I'm building an application that processes xml, which can be located
on an external server. Based on the xml, the application views and
runs differently.

A common use case when working on the xml, is to make some changes, go
to the application, and reprocess the xml to see the changes. This
works great locally. However, when running it on app engine, I'll make
a change to the xml, go and reprocess it on the application, and the
changes don't show up. If I reload the page a few time, the changes
will show up. Modifying the url (maybe by removing www) will show the
changes right away. Sometimes loading a different xml, then going back
might work.

Does app engine automatically cache? If it does, can I stop it? Its
weird though, because even though the changes are small, the result of
the application is still different than before. So it seems app engine
should be able to recognize this and not pull from the cache. Also,
the processing is happening on the server via RPC, so caching makes no
sense.

If it's not an app engine issue, can you think of anything else that
might cause this problem or any ways to test it. I'm at a road block
because it works great locally.

I might just add a bunch of logging and see if I can identify a
problem, but figure I try to get some feedback here first.

Thanks guys,

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




--
Ikai Lan 
Developer Programs Engineer, Google App Engine

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Exception in client code.

You can re-symbolize it to get the original method name.

(at the bottom)

Or easier, you can execute development mode agains the remote server (instead of using localhost or 127.0.0.1, use you production address).

Best

2010/8/31 vikky8118 <vikkyno1@gmail.com>
Hello all,

Not sure how to solve this . I am having null pointer exceptions in
Client code. Not sure what is the point of code resulting this.

com.google.gwt.core.client.JavaScriptException: (TypeError): h is null


fileName: http://localhost:8080/projectName/8539D547D8E637FE2BDEF3195667D6A7.cache.html
 lineNumber: 2409


My question is - how to relate this to the code that is resulting this
error? 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.




--
Guit: Elegant, beautiful, modular and production ready gwt applications.


--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Speed-Optimization of an application (RPCs, Architecture)

Hi Fabian, 

Generally speaking, the fewer rpc calls the better, as browsers generally limit the number of simultaneous (http) calls to the same domain to two. If you make more, they will be queued. Therefore, it is often a good practice to batch these calls (see for example http://stackoverflow.com/questions/236793/how-to-group-gwt-rpc-calls). I think the new RequestFactory, as well as GWT-Platform, allow you to do that more easily. 
That said, if you want to have a tab immediately loaded, and if the other tabs can wait a bit, you could make one call to retrieve the data of this first tab, and a second one where you batch all the other RPCs (needed for the other tabs). It could be useful particularly if these calls take some time to be processed server-side: you don't want to wait for all of them to finish before sending the data of the first tab.
Hope this helps,

-- 
Tanguy

2010/8/31 Fabian <fabi.ginter@web.de>
Hi all,

first of all i am sorry if my english is not always correct, but i'll
do my best.

I'm pretty new to the GWT and just finished writing my first
application and i have a few questions. I couldn't find answers to
them in this group, the GWT docs or with the help of google. If there
are already existing topics i would be thankful for some links.

First a short description of my app:
The UI consists basically of a tabpanel. If there's a change in the
app required, which means new data from server is needed i.e. due to a
new history item typed in the adress bar, each tab of the tabpanel
gets the data from the server with a RPC.
Assume an app which shows a soccer player: The first tab shows his
picture, the second his characteristics like size, weight, etc., the
third tab shows his club history and so on.
The first tab is the one, that i want to be loaded as fast as
possible, because this is what i want to show immediately (while first
tab is loading, i'll show a loading screen). The data of the other
tabs can be loaded afterwards (without loading screen). What's the
best way to do that? At the moment, i have 8 tabs and i call first the
RPC for tab1, then RPC for tab2 etc.
S.th. like that:

loadPlayer(String inputPlayer){
   rpc_loadImage(inputPlayer); // <-- this is what i want to have
high priority
   rpc_loadCharacteristics(inputPlayer);
   rpc_loadClubHistory(inputPlayer);
   etc.
}

1.) But because RPCs are of course asynchronous, it happens that RPC
for tab2 returns before the RPC for tab1. I know i could start the
other RPCs after receiving the first one, but is this the right way to
do it?

2.) Another thing: Is it in general good to have more or less RPCs
which are called at a time (i could merge a few if it would help)?

Hope someone can help me!

Thanks in advance,
Fabian

--
You received 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+unsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Clearing handlers added to elements created using wrap method

Hi All,

I have an existing html and i am adding a simple GWT script to that
page which will show an alert when an existing link is clicked. I do
this by the following code

public class ABCMobile implements EntryPoint,ClickHandler
{

public void onModuleLoad()
{


Anchor lo = Anchor.wrap(DOM.getElementById("AMSBrowse"));
lo.addClickHandler(this);

}


public void onClick(ClickEvent event)
{
// TODO Auto-generated method stub
Window.alert("yeah yeah yeah222222222");

}

}


Now the question is..

1) How do i make sure the handler is removed when the page unloads? I
could not find anyway to do that.

Let me know if anyone has any suggestions.

Thanks,
Parag

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: 2.1 M3 sdk download missing classes

Yeah they changed a lot of thing, I'm also struggling to get my CellTable back to work.

Cheers,

On Tue, Aug 31, 2010 at 2:44 PM, chiappone <chiappone@gmail.com> wrote:
I am also struggling to get a simple CellTable working with M3.

Javadocs are included with the SDK locally if you need them.

On Aug 31, 11:01 am, John <bradley.r...@gmail.com> wrote:
> I just downloaded the eclipse plugin and sdk for 2.1M3 using the
> eclipse software installer.  I'm trying to create a simple CellTable
> example based on another post (http://groups.google.com/group/google-
> web-toolkit/browse_thread/thread/85dd53d3183e7b9a) but the class
> ListViewAdapter doesn't exist in the the sdk I have ... the only L
> class in com.google.gwt.view.client is ListDataProvider - which
> doesn't even exist in the javadocs (http://google-web-
> toolkit.googlecode.com/svn/javadoc/2.1/index.html?com/google/gwt/
> view/)
>
> Am I completely missing something or is the download repo for Gallileo
> just on the wrong version? (http://google-web-toolkit.googlecode.com/
> svn/2.1.0.M3/eclipse/plugin/3.5)
>
> Thanks,
> John

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.




--
Christian Goudreau

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: 2.1 M3 sdk download missing classes

I am also struggling to get a simple CellTable working with M3.

Javadocs are included with the SDK locally if you need them.

On Aug 31, 11:01 am, John <bradley.r...@gmail.com> wrote:
> I just downloaded the eclipse plugin and sdk for 2.1M3 using the
> eclipse software installer.  I'm trying to create a simple CellTable
> example based on another post (http://groups.google.com/group/google-
> web-toolkit/browse_thread/thread/85dd53d3183e7b9a) but the class
> ListViewAdapter doesn't exist in the the sdk I have ... the only L
> class in com.google.gwt.view.client is ListDataProvider - which
> doesn't even exist in the javadocs (http://google-web-
> toolkit.googlecode.com/svn/javadoc/2.1/index.html?com/google/gwt/
> view/)
>
> Am I completely missing something or is the download repo for Gallileo
> just on the wrong version? (http://google-web-toolkit.googlecode.com/
> svn/2.1.0.M3/eclipse/plugin/3.5)
>
> Thanks,
> John

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: gwt 2.1.0 m3 compilation error

Could you provide an example of using the new ListDataProvider class?
I had a ListViewAdapter working with M2 but an unable to get the new
implementations working.

thanks.

On Aug 25, 1:23 pm, Rokesh <rjan...@gmail.com> wrote:
> Hi,
>
> I'm giving gwt2.1 m3 a try with my current code (http://
> twiggered.appspot.com), which was built with gwt 2.1 m2).
> I had to change some things in order to get rid of the compilation
> errors:
>
> -ListDataProviderand ListViewAdapter
> - SimplePager (not a generic anymore)
>
> and some other API changes.
>
> The thing is, I got this corrected and now I'm trying to redeploy it
> on appengine
> and I get a compilation error (without stacktrace).
>
> The session data is like this
>
> eclipse.buildId=unknown
> java.version=1.6.0_20
> java.vendor=Apple Inc.
> BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US
> Framework arguments:  -product org.eclipse.epp.package.jee.product -
> keyring /Users/rjankie/.eclipse_keyring -showlocation
> Command-line arguments:  -os macosx -ws cocoa -arch x86 -product
> org.eclipse.epp.package.jee.product -keyring /Users/
> xxxxx/.eclipse_keyring -showlocation
>
> Can I still use the plugins of m2 in eclipse ?
> Unfortunately I haven't seen a page likehttp://code.google.com/webtoolkit/download_2_1_m2.html
> for the m3 build (with updates on the eclipse (deploy)plugin).
>
> The plugin for devmode in the browser reacts like this
>
>     Cross-site hosted mode not yet implemented. See issuehttp://code.google.com/p/google-web-toolkit/issues/detail?id=2079
>
> I really want to give this m3 a try, but so far it's not a success.
>
> Hope to hear from you guys soon.
>
> Rokesh

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: what is the appropriate MVP way of doing this?

Even better, I would declare an interface inside my view referencing only presenters function needed and use @UiHandler.

More informations here:
I'm also about to publish an article on ArcBees's developer blog in a day or two about that.

Cheers,

On Tue, Aug 31, 2010 at 2:23 PM, Sam <sambrodkin@gmail.com> wrote:
Joe, in the View interface I would provide:

HasClickHandlers getTextBoxForClickHandler();

HasKeyUpHandlers getTextBoxForKeyUpHandler();

The implementations in the View would both return that same TextBox.
Redundant but clear.

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.




--
Christian Goudreau

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: what is the appropriate MVP way of doing this?

Joe, in the View interface I would provide:

HasClickHandlers getTextBoxForClickHandler();

HasKeyUpHandlers getTextBoxForKeyUpHandler();

The implementations in the View would both return that same TextBox.
Redundant but clear.

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: problems with auto-complete form login

Hi folks,

is it the common opinion for GWT apps to have a separate login page?
(Thomas, your "cache" example seems a bit artificial to me (although I
believe that you know why you recommend a separate login page).)

Could someone please provide an example for a separate login page? I
wonder if this should be realized as a servlet or a jsp or something
like that, how control is passed to the app and how the app finds out
that the user is logged in...

Thanks
Magnus

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Can not download gwt developer plugin

I used that URL to get the plugin for chrome, but I still get the
missing-plugin message when I try to use the URL for my app that is
supplied in Eclipse.

The process works for Firefox, but something extra is broken for
Chrome, I think.

My steps are:

1. Browse to http://gwt.google.com/samples/MissingPlugin/MissingPlugin.html
and install the extension.

2. Copy, the URL for my app from the Eclipse "Development Mode" tab.

3. Paste that URL into Chrome.

On Aug 27, 10:45 pm, delightwjk <delight....@gmail.com> wrote:
> I encountered the same problem, eventually I found a workaround by
> using this link:http://gwt.google.com/samples/MissingPlugin/MissingPlugin.html
>
> I think this issue has P1 priority, there may be many users being
> blocked by this simple issue.
>
> -Jiakuan
>
> On Aug 28, 5:47 am, Chris Ramsdale <cramsd...@google.com> wrote:
>
>
>
> > You can also use this link in the interim:
>
> >  http://gwt.google.com/samples/MissingPlugin
>
> > On Fri, Aug 27, 2010 at 10:45 AM, David Chandler (Google) <
>
> > drfibona...@google.com> wrote:
> > > Oops, there is a broken URL mapping. This will be fixed shortly.
>
> > > /dmc
> > > David Chandler
> > > Developer Programs Engineer, Google Web Toolkit
>
> > > On Aug 26, 9:39 am, Guillaume Lasnier <guillaume.ph.lasn...@gmail.com>
> > > wrote:
> > > > Hi,
> > > > I have the same problem not being able to install the GWT
> > > developerpluginon any browser because the link is broken. Google please
> > > help,
> > > > this is critical!!!
>
> > > > Please find below the install url for eachpluginI got using the
> > > > cached page on Google:
>
> > > > "firefox-old" :
> > > >           {
> > > >             "caption" : "Sorry, the GWT DeveloperPluginonly supports
> > > > Firefox 3.0 and 3.5 at present",
> > > >             "url" : "http://www.getfirefox.com",
> > > >             "supported" : false
> > > >           },
>
> > > >           "opera" :
> > > >           {
> > > >             "caption" : "Sorry, there is currently no GWT
> > > DeveloperPluginfor Opera",
> > > >             // TODO(you): If you are reading this, maybe you would be
> > > > interested in contributing an Opera version?
> > > >             "url" : "http://code.google.com/webtoolkit/
> > > > makinggwtbetter.html#contributingcode",
> > > >             "supported" : false
> > > >           },
>
> > > >           "safari-iphone" :
> > > >           {
> > > >             "caption" : "Sorry, there is currently no GWT
> > > DeveloperPluginfor mobile Safari",
> > > >             "url" : troubleshootingUrl,
> > > >             "supported" : false
> > > >           },
>
> > > >           "webkit-android" :
> > > >           {
> > > >             "caption" : "Sorry, there is currently no GWT
> > > DeveloperPluginfor mobile WebKit",
> > > >             "url" : troubleshootingUrl,
> > > >             "supported" : false
> > > >           },
>
> > > >           "chrome-lin" :
> > > >           {
> > > >             "caption" : "Sorry, there is currently no GWT
> > > DeveloperPluginfor Chrome on Linux",
> > > >             "url" : troubleshootingUrl,
> > > >             "supported" : false
> > > >           },
>
> > > >           "chrome-mac" :
> > > >           {
> > > >             "caption" : "Sorry, there is currently no GWT
> > > DeveloperPluginfor Chrome on OS X",
> > > >             "url" : troubleshootingUrl,
> > > >             "supported" : false
> > > >           },
>
> > > >           "chrome-win" :
> > > >           {
> > > >             "caption" : "The GWT DeveloperPluginrequires Chrome 4 or
> > > > later,<br>so click here to learn about switching to the Chrome
> > > > DevChannel to get early access",
> > > >             "url" : "http://dev.chromium.org/getting-involved/dev-
> > > > channel",
> > > >             "supported" : false
> > > >           },
>
> > > >           "safari-win" :
> > > >           {
> > > >             "caption" : "Sorry, there is currently no GWT
> > > DeveloperPluginfor Safari on Windows",
> > > >             "url" : troubleshootingUrl,
> > > >             "supported" : false
> > > >           },
>
> > > >           "firefox" :
> > > >           {
> > > >             "caption" : "Download the GWT DeveloperPlugin<br>For
> > > > Firefox",
> > > >             "url" : "https://dl-ssl.google.com/gwt/plugins/firefox/gwt-
> > > > dev-plugin.xpi",
> > > >             "platforms" : "Win x86, Linux x86/x86_64, Mac x86/PPC",
> > > >             "supported" : true
> > > >           },
>
> > > >           "ie" :
> > > >           {
> > > >             "caption" : "Download the GWT DeveloperPlugin<br>For
> > > > Internet Explorer",
> > > >             "url" : "https://dl-ssl.google.com/tag/s/appguid%3D
> > > > %7B9a5e649a-ec63-4c7d-99bf-75adb345e7e5%7D%26lang%3Den%26appname%3DGWT
> > > > %2520Developer%2520Plugin%2520for%2520IE%26needsadmin%3Dfalse/gwt/
> > > > plugins/ie/GwtDevPluginSetup.exe",
> > > >             "platforms" : "Win x86",
> > > >             "supported" : true
> > > >           },
>
> > > >           "chrome4-win" :
> > > >           {
> > > >             "caption" : "Download the GWT DeveloperPlugin<br>For
> > > > Chrome",
> > > >             "url" : "https://dl-ssl.google.com/gwt/plugins/chrome/gwt-
> > > > dev-plugin.crx",
> > > >             "platforms" : "Win x86",
> > > >             "supported" : true
> > > >           },
>
> > > >           "safari-mac" :
> > > >           {
> > > >             "caption" : "Download the GWT DeveloperPlugin<br>For
> > > > Safari",
> > > >             "url" : "https://dl-ssl.google.com/gwt/plugins/safari/gwt-
> > > > dev-plugin.dmg",
> > > >             "platforms" : "Mac x86/x86_64/PPC",
> > > >             "supported" : 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+unsubscribe@googlegroups.com<google-web-toolkit%2Bunsubs cribe@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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: what is the appropriate MVP way of doing this?

That's great! Thanks Thomas.

I've got another question (well, a set of questions) - say you have a
text field in the view that you want to reference - to receive click
events as well as key up events.

1) Would you reference the text field as HasText and cast to the event
handlers?
2) Would you create some modified interface that extends from all of
the desired interfaces?
3) Or, would you do something completely different?

Again, thank you very much for the help.

Joe

On Aug 31, 11:47 am, Thomas Broyer <t.bro...@gmail.com> wrote:
> On 31 août, 17:00, Joe Hudson <joe...@gmail.com> wrote:
>
>
>
> > Hi,
>
> > If I have a presenter that needs to populate a view that contains a
> > FlowPanel which a list of custom widgets that contain some text and a
> > hyperlink can anyone help me understand the best way of properly
> > interfacing this out in the view?
>
> > For example:
>
> > public class MyPresenter {
> >     public interface View {
> >         // what interface method should I have to deal with a list of
> > composite elements?
> >     }
>
> > }
>
> > I'm thinking I need to make a new interface like HasLinkAndText and
> > something like that but even with that I still need to deal with a
> > list of these interface types.  If this question makes sense, I'd
> > appreciate some help with this.  Thanks.
>
> I'd use a CellList or CellTable in the view, so all you'd have to do
> is to give the view the data and a ValueUpdater.
> If you're not using GWT 2.1, I'd nevertheless follow this approach:
> i.e. give the view a list of things to display, and a callback/
> delegate to be informed when the user clicked a link, provided you
> want to be notified back in this case (it could also take the form of
> getting a HasSelectionHandlers from the view and listening to
> SelectionEvents, it depends how you're "doing MVP").

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

2.1 M3 sdk download missing classes

I just downloaded the eclipse plugin and sdk for 2.1M3 using the
eclipse software installer. I'm trying to create a simple CellTable
example based on another post (http://groups.google.com/group/google-
web-toolkit/browse_thread/thread/85dd53d3183e7b9a
) but the class
ListViewAdapter doesn't exist in the the sdk I have ... the only L
class in com.google.gwt.view.client is ListDataProvider - which
doesn't even exist in the javadocs (http://google-web-
toolkit.googlecode.com/svn/javadoc/2.1/index.html?com/google/gwt/
view/
)

Am I completely missing something or is the download repo for Gallileo
just on the wrong version? (http://google-web-toolkit.googlecode.com/
svn/2.1.0.M3/eclipse/plugin/3.5
)

Thanks,
John

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Use ScrollPanel inside the HorizontalPanel

Hi,

My scroll problem is over. Thanks again
But I have few problems in my GWT project.
My project is timeline Graph.
so im use GWTGraphic lib for graphic purposes.
Now I want to add a  ruler which must be drag-ble (move place to place).
I'm searching a solution but still I couldnt get a good one.
Do you know any solution for that?
plz let me knw.

Thanks.




On Tue, Aug 31, 2010 at 11:23 AM, udayanga ranasinghe <udayanga.ucsc@gmail.com> wrote:
Hi,

Thanks Aditya
It works fine.



On Tue, Aug 31, 2010 at 9:59 AM, aditya sanas <007aditya.babu@gmail.com> wrote:
At very first step set the size of horizontal panel as hrzPanel.setSize("350px","500px");
then set the size for scrollpanel in percentage or you can set it same as above.
this will work for sure.
also if you want scrollbars bydefault then set the method for scrPanel.setAlwaysShowScrollBars(true);
--
Aditya


On Mon, Aug 30, 2010 at 9:07 PM, udayanga ranasinghe <udayanga.ucsc@gmail.com> wrote:
Hi Aditya;

Thanks your reply.
But it doesnt work.
If you have tested code please send me as soon as possible.
I'm in big trouble with this issue.

Thanks again.

On Mon, Aug 30, 2010 at 5:49 PM, aditya sanas <007aditya.babu@gmail.com> wrote:
adjust the size of horizontal panel and then according to it adjust the size of scrolling panel...
--
Aditya


On Sat, Aug 28, 2010 at 9:33 AM, udayanga ranasinghe <udayanga.ucsc@gmail.com> wrote:
Hi All,

I try to put Scrollpanel into HorizontalPanel.
The content in the scrollpanel is appear as it expected.
But the scrolling property is not working.
It 's not scrolling. :(
What is the reason for that?

Please help me to solve this problem.

Thanks And Regards
Udayanga Ranasinghe.

--
You received 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+unsubscribe@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+unsubscribe@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+unsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.







--
Thanks and Regards,
Udayanga Ranasinghe
 

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

App engine automatically caching?

Hey guys,

I'm building an application that processes xml, which can be located
on an external server. Based on the xml, the application views and
runs differently.

A common use case when working on the xml, is to make some changes, go
to the application, and reprocess the xml to see the changes. This
works great locally. However, when running it on app engine, I'll make
a change to the xml, go and reprocess it on the application, and the
changes don't show up. If I reload the page a few time, the changes
will show up. Modifying the url (maybe by removing www) will show the
changes right away. Sometimes loading a different xml, then going back
might work.

Does app engine automatically cache? If it does, can I stop it? Its
weird though, because even though the changes are small, the result of
the application is still different than before. So it seems app engine
should be able to recognize this and not pull from the cache. Also,
the processing is happening on the server via RPC, so caching makes no
sense.

If it's not an app engine issue, can you think of anything else that
might cause this problem or any ways to test it. I'm at a road block
because it works great locally.

I might just add a bunch of logging and see if I can identify a
problem, but figure I try to get some feedback here first.

Thanks guys,

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

Re: problems with auto-complete form login

On 31 août, 11:38, Magnus <alpineblas...@googlemail.com> wrote:
> Hi Thomas,
>
> didn't you propose exactly this method which is referenced in the
> document I referred to?

Yes, and I implemented it, and I now regret.

> On 30 Aug., 10:48, Thomas Broyer <t.bro...@gmail.com> wrote:
>
> > ...which violates rule #3: do not move the form around
>
> Which rule do you mean?

Some informal rules. Rule #1 is to have the form in the original
markup of the page, and rule #2 is to let the browser submit the form
using an <input type=submit> or <button type=submit>, rather than
calling form.submit().

> > See above, the problem is moving the FormPanel around (adding it to a
> > VerticalPanel in this case).
>
> I don't understand that, because the VerticalPanel is also used in the
> example, and this seems to work:
>
> http://borglin.net/gwt-project/?page_id=467

I can't tell whether the example work in all browsers, but in my (now
ancient) testings, you had to leave the form where you found it and
only play with its attributes and style (that'd be rule #3).

> > (but believe me, you'd rather externalize the login process from your
> > app, just like Google apps –as you're using GMail, you should
> > understand what I mean–, it makes things so much simpler!)
>
> What exactly would get simpler? If the login/logout mechanism works,
> everything is fine, isn't it?

If you "cache" some data on the client-side (which also includes, for
instance, populating a ListBox only if it's empty, because you know
upfront that the data shouldn't change for the lifetime of the app,
for a given user), then you'd have to dispatch login/logout events to
all your components so they empty their caches. You don't have to
think about this kind of things if data won't change for the lifetime
of the app (because signing out would mean leaving the app).

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.