Facing some problems after switching to GWT 2.1 from GWT 2.0.4

2010-12-02 Thread Aditya
Hi,

I have updated my GWT version to 2.1 and faced some of the problems
regarding textbox' key press handlers...

the code which works completely fine in previous version is

   txtPassword.addKeyPressHandler(new
KeyPressHandler() {
   @Override
   public void onKeyPress(KeyPressEvent event) {

if(event.getCharCode()==KeyCodes.KEY_ENTER){
 // some processing here to send
username password to server
   }
// class closures.

whenever user presses an ENTER key the code from 'if' condition gets
executed but this does nt work in GWT 2.1
is there any other way to perform this validation to know user has
striked ENTER or not...?

Thanks,
Aditya

-- 
You received 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: Can't get to default place

2010-12-02 Thread zixzigma
Have you added your newly created place to AppPlaceHistoryMapper ?

http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html#PlaceHistoryMapper

@WithTokenizers({HelloPlace.Tokenizer.class,
GoodbyePlace.Tokenizer.class})
public interface AppPlaceHistoryMapper extends PlaceHistoryMapper
{
}

-- 
You received 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 MVP How to change Page title upon Navigation (Place Change)

2010-12-02 Thread zixzigma
traditionally apps have been composed of pages of HTML.
title of each HTML page could be set through HTML tag .

in GWT apps, generally there is one main html file.

as user navigates throughout the app, URL (history token) changes,
however I can't seem to figure out how we can change the Page Title.

I understand everything is one Page, and GWT apps doesnt fall into
traditional web apps.
But I'm wondering if there is a way to set the page title, so that it
can be displayed at browser header.

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



Understanding of GWT Upload

2010-12-02 Thread snehil parekh
Hi All,


I have a requirement where I have to support upload of around 500MB files
(zip file), so wanted to understand how GWTUpload work:

1) Does it chunk the data, or it sends the data as a continuous stream and
keep it in memory ? If yes then it would lead to out-of-memory.
2) Is it a reliable library for uploading huge data.

If this does not support, then are there any other libraries that would
support ?

Any help would be greatly appreciated.

Thanks,
Snehil Parekh.

-- 
You received 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: MVP *without* UiBinder

2010-12-02 Thread JosephLi
Thank you Konstantin,

The open with "Windows Builder Editor" did the trick. I can now edit
the gui graphically and easily work with event handlers without
jumping between two files.

Thanks,
Joseph


On Dec 2, 8:22 am, Konstantin Scheglov 
wrote:
>   Hi, I'm author of GWT Designer. ;-)
>
> > ** no wyswug viewer & GWT Designer
> > I have tried the GWT Designer, and I was referring by calling it
> > Window Builder in my previous post. I know I can get the wyswug
> > viewer, but seems like it only work if the gui is created thru GWT
> > Designer. And by do so GWT Designer actually generate Java code
> > instead of generating the UiBinder files. And I have not been able to
> > see how to get it work on a set of UiBinder files. Please correct me
> > if I am doing it wrong.
>
>   You may be need to use "Open with..." action to choose WindowBuilder
> Editor.
>
>
>
> > ** no event click navigation from the ui.xml file
> > This is a direct comparison between the UiBinder way and the GWT
> > Designer. In GWT Designer, I can view the gui and use the mouse the
> > navigate to associated event codes for any widgets. However, if I am
> > working on the ui.xml file, I can't seem to easily bring up a list of
> > event handler code thats associated with a particular field. I have to
> > actually take the uifield name, open the java view implementation
> > manually and look for the field there, and then do a text search to
> > look for the method that is marked with @UiHandler("fieldname").
> > Which  is cumbersome compare to GWT Designer.
>
>   This also work in same way as in Java version of GWT Designer.
>   Seehttp://dl.dropbox.com/u/76691/images/2010/Screenshot_20101202_161725.png
>   and page with displaying events
>  http://dl.dropbox.com/u/76691/images/2010/Screenshot_20101202_162040.png

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



Re: How to use new GWT plugin for GWT 2.1.0

2010-12-02 Thread raj
On placing new gwt-maven-plugin, I could resolve the windows jar
issue, but now the issue is I am getting error 404 on putting the
application URL on the browser. Any help is appreciated.

Thanks

R D Vij

On Dec 2, 12:42 pm, raj  wrote:
> I have placed new jar for this plugin(2.1.0) but it still asks for gwt-
> dev-windows.jar, how should this be used or checked if which plugin
> maven is using?

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



Multi Reference Object Graph - How to Persist.

2010-12-02 Thread Ramon Buckland
Hi,

I have a case where I have an object

   class ObjectFoo {
 private ObjectFoo next;
 private ObjectFoo previous;
   }

These Objects get stored in a parent object as a set

   class Parent {

  private Set foos;

   }

when I work with a particular object I am having difficulty "updating
the tree", and just wanting to know How I can properly populate an
ObejctFoo with other previously persisted ObjectFoo's ?


Attempt A.  - Set the next and previous on all objects and store.
problem: it recurses the object graph going between one and two and
then stack overflows (on the server).


ParentRequest req= getRequestFactory().parentRequest();
ObjectFooProxy one = req.create(ObjectFooProxy .class);
ParentProxy editableParent = req.edit(parent);
ObjectFooProxy editabletwo = req.edit(two);

   one.setNext(editabletwo );
   editabletwo.setPrevious(one);  // previously created

editableParent.getFoos().add(one);
req.persist().using(editableParent).fire();

Will try (somehow) .. :
 create and store (one).
 on success of entityproxyChange event, ** edit two and set the
reference to one.

BUT.. how do I, after persisting One, retrieve the new copy of it ?
   a. can I get it out of the RequestFactory, or do I have to query it
up ?
   b. can I use the EntityProxyChange event ? if so, How will I
recognise it is "my" ObjectFoo{one} that comes back ?


 any ideas ? (do I need to clarify the problem ? )

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

2010-12-02 Thread metalhammer29a
>>That's the exact use case for FilteredActivityMapper and
>>CachingActivityMapper (and how they're used AFAICT in "scaffold"
>>applications generated by String Roo for the "master" activities).


what about situations where a display region is master in some cases
(requiring to be cached), and
detail in other cases ?

for example, when we have West, Center, and East Regions,
Center region can act as Detail for West Region in some use cases,
but in other use cases, be used as Master for East Region.

what happens if we use CachingActivityMapper for ALL of our
ActivityMappers ?
would there be a performance problem, what are the implications,
benefits or drawbacks ?

-- 
You received 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  wrote:

>
> On 1 déc, 02:27, Matt H  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.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-02 Thread Thomas Broyer

On 1 déc, 02:27, Matt H  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.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Custom widget is blocking all events.

2010-12-02 Thread dparish
I've got a simple custom widget designed to display two column data.
Any widgets I put in this custom widget can't fire events. I've tried
even the simplest Button and it fails. Is there something about the
nature of my widget that is keeping events from widgets it contains
from firing?

public class LabeledValueWidget extends Composite {

private String caption;
private Map items = null;
private CaptionPanel container = new CaptionPanel();
private Style style;
static boolean isInjected = false;

public LabeledValueWidget () {
this.initWidget(container);
}

public void setItems (Map items) {
this.items = items;
}

@Override
public void setStyleName (String styleName) {
super.setStyleName(styleName);
}

@Override
public void addStyleName (String styleName) {
super.addStyleName(styleName);
}

public void setCaption (String caption) {
this.caption = caption;
}

public void render() {
style = LabeledValueWidgetResource.INSTANCE.style();
if (!isInjected) {
isInjected = style.ensureInjected();
}
container.setCaptionText(caption);
Element dl = DOM.createElement("dl");
writeDefinitions (dl);
container.getElement().appendChild(dl);

}

public LabeledValueWidget (Map items, String caption)
{
this.initWidget(container);
this.items = items;
render();
}

private void writeDefinitions (Element dl) {
for (Widget key: items.keySet()) {
Element dt = DOM.createElement("dt");
dt.addClassName(style.label());
dl.appendChild(dt);
Element label = DOM.createElement("label");
dt.appendChild(label);
label.appendChild(key.getElement());
Element dd = DOM.createElement("dd");
dd.addClassName(style.value());
dl.appendChild(dd);
dd.appendChild(items.get(key).getElement());
}
}


When I instantiate this and call setItems and pass it a map with
Label, Button and I've defined the button to have a click handler. The
click handler never gets fired ;(

-- 
You received 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: @def

2010-12-02 Thread Hilco Wijbenga
On 2 December 2010 16:11, Hilco Wijbenga  wrote:
> my.css:
> @def BORDER-WIDTH 1px;
>
> MyCss.java:
> interface MyCss extends CssResource {
> �...@defname("BORDER-WIDTH")
>  int getBorderWidth(); // Returns 1.
> }
>
> Is there a way to achieve something like this?

I thought I had a solution when I found @eval but it *only* works with methods?

my.css
@eval BORDER_WIDTH org.example.MyCss.BORDER_WIDTH_PX;

interface MyCss extends CssResource {
  int BORDER_WIDTH = 1;
  String BORDER_WIDTH_PX = String.valueOf(BORDER_WIDTH) + "px";
}

This throws an exception. BORDER_WIDTH_PX *must* be a static 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: Announcing free online GWT/GAE mini-book

2010-12-02 Thread metalhammer29a
Thank you, what a valuable resource.
already bookmarked it, going to read it soon.

-- 
You received 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: HelloMVP sample with JUnit TestCase example?

2010-12-02 Thread metalhammer29a
It would be a good idea to use GIN, therefore relieving you from
having to pass clientFactory around.


as your application grows, GWT MVP development is very cumbersome
without 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.



HelloMVP sample with JUnit TestCase example?

2010-12-02 Thread Rod
I am new to GWT development and have written a simple app based upon
the HelloMVP sample.  I was drawn to this model for A) MVP design with
code/UI separation, B) simpler unit testing not requiring GWTTestCase.

My Activity class is somewhat more involved than the sample program,
but not hugely.  Most examples that I have seen use EasyMock - so I am
trying to use EasyMock 3.0.  However, I have not been able to get a
single test case to compile and run successfully.  Attempts to declare
a variable of type IMocksControl or IMockBuilder give me the following
error: "org.easymock.IMocksControl can not be found in source
packages" (why is the source needed for a JUnit test that is supposed
to be run outside of the GWT framework?)  However, as long as I do it
all "in-line" (e.g. createMockBuilder(LoginPlace.class).createMock())
I can create mock objects.

Beyond that, to call the XxxActivity.start method, it requires passing
a ClientFactory object - that contains references to various other
objects (EventBus, PlaceController, defined views).  (I assume I need
to call "start" so the other methods can be called that use things
initialized in start.)

Does anyone know of some sample code that includes JUnit TestCase
examples for a GWT-MVP app that uses the Activity, Place,
ClientFactory model?  I have spent a couple days battling this and
have not made any progress.

I am using Eclipse 3.6.1, GWT 2.1.0, JUnit 4, EasyMock 3.0 on a
Windows XP system.

-- 
You received 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-maven-plugin / "google plugin for eclipse" / working for anyone?!?!

2010-12-02 Thread cri
No. No errors other than the ones mentioned in the original post.
After resolving those errors, we could run the default project using
"run as / web application". The problem only comes after we add
dependencies to our pom file.

On Dec 2, 2:43 pm, David Chandler  wrote:
> Do you see errors in any of the Eclipse consoles (including Maven console)
> while doing the import?
>
>
>
>
>
>
>
>
>
> On Thu, Dec 2, 2010 at 3:28 PM, cri  wrote:
> > We are trying to use gwt-maven-plugin to generate our mavenized gwt
> > project. Our versions are:
>
> > eclipse helios
> > gwt 2.1
> > gwt-maven-plugin 2.1.1-SNAPSHOT
>
> > We generate our initial project with the command line:
>
> > mvn archetype:generate \
> > -DarchetypeRepository=https://nexus.codehaus.org/content/groups/
> > snapshots-group/  \
> > -DarchetypeGroupId=org.codehaus.mojo \
> > -DarchetypeArtifactId=gwt-maven-plugin \
> > -DarchetypeVersion=2.1.1-SNAPSHOT
>
> > We then import the project into eclipse using "import / as existing
> > project".
>
> > Here are the problems we then encountered:
>
> > (1) Eclipse compile errors complaining of unknown classes. These are
> > classes the plugin generates and places in target/generated-sources/
> > gwt. The classes are Messages.java and GreetingServiceAsync.java. We
> > work around this problem by adding  target/generated-sources/gwt to
> > our eclipse project classpath.
>
> > (2) The class GwtTesttest.java has eclipse compile errors. We don't
> > care much about this so for the moment we are just deleting that
> > class.
>
> > (3) This is the problem we can't find a workaround for. If we add
> > dependencies to our pom, say spring framework, they then get added
> > automatically to the "Libraries/Maven Dependencies". The problem comes
> > when we invoke "Run As... / Web Application". Jetty fails to find
> > classes in our newly added maven dependency, e.g Spring.
>
> > Is there anyone out there that can shed some light on this? 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 > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> David Chandler
> Developer Programs Engineer, Google Web 
> Toolkithttp://googlewebtoolkit.blogspot.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-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.



@def

2010-12-02 Thread Hilco Wijbenga
Hi all,

I've been playing with @def and it's really nice. But it gets even
better because you can access the corresponding value in your Java
code.

my.css:
@def BORDER_WIDTH 1px;

MyCss.java:
interface MyCss extends CssResource {
  int BORDER_WIDTH(); // Returns 1.
}

The only issue I have with this is that the naming conventions don't
play nice. In my.css I'd like to use BORDER_WIDTH (or better yet
BORDER-WIDTH) but in Java I'd like to use getBorderWidth.

For CSS class names we have the very useful @ClassName. Not
surprisingly, this does not work for @def. I'd like to do something
similar to

my.css:
@def BORDER-WIDTH 1px;

MyCss.java:
interface MyCss extends CssResource {
  @DefName("BORDER-WIDTH")
  int getBorderWidth(); // Returns 1.
}

Is there a way to achieve something like this?

Cheers,
Hilco

-- 
You received 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: Can't get to default place

2010-12-02 Thread ailinykh
This is what I'm doing.

public class OneMoreActivity extends AbstractActivity implements
OneMoreView.Presenter {
OneMorePlace place;
OneMoreView oneMoreView;
PlaceController placeController;
public OneMoreActivity(OneMorePlace place, ClientFactory
clientFactory){
this.place =place;
oneMoreView = clientFactory.getOneMoreView();
placeController = clientFactory.getPlaceController();
}

@Override
public void start(AcceptsOneWidget panel, EventBus eventBus) {
oneMoreView.setPresenter(this);
panel.setWidget(oneMoreView);
}

@Override
public void onButtonClick(String str) {

placeController.goTo(new GoodbyePlace(str));
}

}


Also I modified HelloViewImpl, it starts OneMoreActivity not
GoodbyeActivity. Everything works as supposed except navigation back.

@UiHandler("goodbyeLink")
void onClickGoodbye(ClickEvent e)
{
listener.goTo(new OneMorePlace(name));
}

On Dec 2, 4:07 pm, David Chandler  wrote:
> Hi Andrey, what do you mean by "OneMoreActivity starts GoodByeActivity"? Can
> you please post the code for OneMoreActivity?
>
> /dmc
>
>
>
>
>
>
>
>
>
> On Thu, Dec 2, 2010 at 4:52 PM, ailinykh  wrote:
> > Hello, everybody!
> > I slightly modified hellomvp example, I just added one more place/
> > activity/view. It's called OneMorePlace, OneMoreActivity, OneMoreView.
>
> > So right now I have scenario like this- HelloActivty starts
> > OneMoreActivity, OneMoreActivity starts GoodByeActivity.
>
> > But when I tried to step back from GoodByeActivity I get loop
> > GoodByeActivity -> OneMoreActivity -> GoodByeActivity ->
> > OneMoreActivity ...
> > I never get back to default (HelloPlace) place.
> > The same happens in my real application. What could be wrong? Any
> > ideas?
>
> > Thank you,
> >  Andrey
>
> > --
> > You received 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 > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> David Chandler
> Developer Programs Engineer, Google Web 
> Toolkithttp://googlewebtoolkit.blogspot.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-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: Announcing free online GWT/GAE mini-book

2010-12-02 Thread PhilBeaudoin
I've had the pleasure of reviewing an early version of this book, and
can confirm it is very well down!

I'm sure it will prove useful both to newcomers to GWT and to power
users who want to learn more about tools like Guice, Gin, GWT-
Platform, etc.

Congratulations Marius!

Philippe

On Dec 2, 3:06 pm, nino ekambi  wrote:
> Woah this is just getting better and better
> Thank you so much !
> Regards,
> Alain
>
> 2010/12/3 marius.andreiana 
>
>
>
>
>
>
>
> > Hi everyone,
>
> > I'm glad to announce a free, online GWT 2.1 & GAE mini-book. It's
> > available at
> >http://code.google.com/p/gwt-gae-book
>
> > The book aims to introduce engineers on how to professionally develop
> > applications using Google Web Toolkit and App Engine by developing a
> > full real application step by step.
>
> > I'd like to thank the following persons for reviewing the contents and
> > suggesting numerous improvements before making the book public:
> > Philippe Beaudoin, Christian Goudreau, John Patterson, Zack Grossbart.
> > Thanks!
>
> > Hope you'll find it useful. Looking forward to your feedback and
> > contributions,
> > Marius
>
> > --
> > You received 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 > cr...@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: Announcing free online GWT/GAE mini-book

2010-12-02 Thread nino ekambi
Woah this is just getting better and better
Thank you so much !
Regards,
Alain

2010/12/3 marius.andreiana 

> Hi everyone,
>
> I'm glad to announce a free, online GWT 2.1 & GAE mini-book. It's
> available at
> http://code.google.com/p/gwt-gae-book
>
> The book aims to introduce engineers on how to professionally develop
> applications using Google Web Toolkit and App Engine by developing a
> full real application step by step.
>
> I'd like to thank the following persons for reviewing the contents and
> suggesting numerous improvements before making the book public:
> Philippe Beaudoin, Christian Goudreau, John Patterson, Zack Grossbart.
> Thanks!
>
> Hope you'll find it useful. Looking forward to your feedback and
> contributions,
> Marius
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: newbie: GAE + Oauth + Open Id example

2010-12-02 Thread marius.andreiana
On Oct 31, 8:55 am, Fendy Tjin  wrote:
> Hi,
>
> I've searched all over the places, what I found is that, I need to
> redirect or forward to authenticate to Google account or other
> accounts. However I am still puzzled as to how to implement oauth and
> open id authentication.
>
> Can anyone enlighten me as to how to implement?
> While at it, can you please give me some GWT frontend with RPC code
> and GAE server code?
Here you go
http://code.google.com/p/gwt-gae-book/wiki/Authentication

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



Announcing free online GWT/GAE mini-book

2010-12-02 Thread marius.andreiana
Hi everyone,

I'm glad to announce a free, online GWT 2.1 & GAE mini-book. It's
available at
http://code.google.com/p/gwt-gae-book

The book aims to introduce engineers on how to professionally develop
applications using Google Web Toolkit and App Engine by developing a
full real application step by step.

I'd like to thank the following persons for reviewing the contents and
suggesting numerous improvements before making the book public:
Philippe Beaudoin, Christian Goudreau, John Patterson, Zack Grossbart.
Thanks!

Hope you'll find it useful. Looking forward to your feedback and
contributions,
Marius

-- 
You received 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: To smart GWT or not

2010-12-02 Thread ckendrick
Sorry that's quite absurd: SmartGWT is often introduced to solve
performance problems, and it solves them.

SmartGWT is intentionally designed to have a one-time-ever download of
a feature rich runtime in exchange for reducing subsequent server
requests.  For example, Adaptive Filtering greatly reduces the
costliest types of database hits:


http://www.smartclient.com/smartgwt/showcase/#grid_adaptive_filter_featured_category

.. and allows you to introduce an extremely powerful data highlighting
system with no server load at all:

http://blog.isomorphic.com/?p=234

If your application is the kind we target - complex enterprise
applications which are used repeatedly and for significant lengths of
time - this provides a gigantic performance boost, and once-ever
download of cachable JavaScript files is a negligible factor.

Look at a deployed SmartGWT application and you've got users humming
along, ripping through the interface and nothing being downloaded
anymore because it's all cached.  And everyone is getting fast
responses from the database because the Smart GWT framework is
minimizing database load.

The larger your application becomes, the more these benefits accrue.
And, by the time you've built an application with comparable
functionality with core GWT or another GWT-based framework, you're
going to be downloading the same size runtime as SmartGWT anyway.

On Dec 1, 1:44 pm, aarnott  wrote:
> I've found Smart GWT to have rather poor performance and it comes at
> the added cost of massive javascript libraries (even when they are
> gzipped). If you are anything like me, you will probably find that you
> lose time in the long run by going with Smart GWT because you will
> want to get rid of it later to boost performance.

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



Re: CellTable not updating

2010-12-02 Thread Eric
I'm not adding a LayoutPanel to a PopupPanel. The only reason a popup
is involved is so I can prove my table is being updated - it's debug
code only.

My table is in a scroll panel, that's in a split layout panel, that's
in a dock layout panel.

On Dec 2, 2:20 pm, John LaBanca  wrote:
> LayoutPanels need an unbroken chain of parents that implement ProvidesResize
> up to the RootLayoutPanel.  If you add a LayoutPanel to a PopupPanel, it
> will not layout correctly, and content will be hidden.  You can get around
> this by giving the outermost panel an explicit height and width.
>
> Thanks,
> John LaBanca
> jlaba...@google.com
>
>
>
>
>
>
>
> On Thu, Dec 2, 2010 at 2:07 PM, Eric  wrote:
> > Yes, I added the table to the provider as a data display. I was not
> > invoking dataProvider.refresh() as I thought invoking
> > dataProvider.setList(myList) would update all displays. In fact, my
> > table is indeed updated. After I call setList on the provider, I can
> > query the table and see the updates have occurred (and popup the same
> > table in a Popup shows the updated table). The problem is, the table
> > was originally placed in a SplitLayoutPanel, inside a DockLayoutPanel,
> > etc., and that is not being updated.
>
> > I know the table is correct because I can query and put it in a popup.
> > I discovered that trying to figure out why the updated info was not
> > being displayed. If I wait until the table is updated and then place
> > it in the same panel hierarchy, it displays correctly. But updates are
> > not displayed.
>
> > Here's a small snippet with trace code where the update occurs (trace
> > information shows correct update):
>
> >    public void setSelectedFoodGroup(FdGroupEntity foodGroup,
> > List foods) {
> >        logger.entering(NutritionDataView.class,
> > "setSelectedFoodGroup");
> >        logger.info("Adding food list of size: " + foods.size());
> >        if (!dataProvider.getDataDisplays().contains(table)) {
> >            logger.info("Adding display");
> >            dataProvider.addDataDisplay(table);
> >        }
> >        dataProvider.setList(foods);
> >        table.setPageSize(foods.size());
> >        dataProvider.refresh();
> >        logger.info(table.getRowElement(5).getInnerHTML());
> >        logger.info("page start=" + table.getPageStart());
> > //        PopupPanel popupPanel = new PopupPanel(true);
> > //        popupPanel.setWidget(this);
> > //        popupPanel.show();
> >     }
>
> > On Dec 2, 10:53 am, Jeff Schwartz  wrote:
> > > Are you calling the data provider's addDataDisplay method to associate
> > the
> > > cell table with it?
> > >     dataProvider.addDataDisplay(yourCellTable);
>
> > > Also, after making any changes to the data provider such as modifying,
> > > adding or deleting, are you calling the data provider's refresh method?
> > >     dataProvider.refresh();
>
> > > Jeff
>
> > > On Wed, Dec 1, 2010 at 5:52 PM, Eric  wrote:
> > > > I have CellTable being fed data from a ListDataProvider. I set a list
> > > > into the data provider and can then query the CellTable and see the
> > > > updated HTML results. Popping up a window with the table also shows an
> > > > updated table.
>
> > > > The problem is, I originally put the table into a DeckPanel that's
> > > > nested in several other panels - dock, split,... and it shows in its
> > > > original "no data, only column header" form. When the data provider is
> > > > updated, the CellTable is not repainted. I can query it and pop it up
> > > > in another window, so I know the table is updated - it's just not
> > > > reflected in the panel in which it was originally placed.
>
> > > > Am I missing something simple here? Even trying to force a layout at
> > > > the root panel doesn't cause anything to show up. Any suggestions on
> > > > the problem or how I might debug this?
>
> > > > Thank you.
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Google Web Toolkit" group.
> > > > To post to this group, send email to
> > google-web-tool...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > google-web-toolkit+unsubscr...@googlegroups.com > > >  cr...@googlegroups.com> > cr...@googlegroups.com>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > > --
> > > *Jeff Schwartz*
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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

Re: instanceof check on element always return true?

2010-12-02 Thread Ed
How come you always know exactly to point out the correct piece of doc
snippet ;).. That keeps suprising me... like you memorized them...
thanks...

Anyway, what is the best way to discover the element type in this
case?
For example an InputElement?...
I can't use the tag name in the InputElement as it's package
protected :(..

One more thing: I bubble up the event from a checkbox, but how can I
get this checkbox widget, that started the event, out of the received
event?
Note: The source in the event is some panel, but not the one that
started the event..


On Dec 2, 10:31 pm, Thomas Broyer  wrote:
> On 2 déc, 12:10, Ed  wrote:
>
> > I receive an element in a Clickhandler like this:
> > final Element el = event.getNativeEvent().getEventTarget().cast()
>
> > It concerns a DIV element which the tag name shows.
>
> > However, the following result in true:
> > el instanceof DivElement (as expected).
> > el instanceof InputElement (not expected!!).
> > el instanceof LabelElement (not expected!!).
>
> > What am I missing here? or is this a bug?
>
> It's not a bug.
>
> Element extends JavaScriptObject, which has specific 
> "limitations":http://code.google.com/p/google-web-toolkit/wiki/OverlayTypes
> (linked from the GWT 
> doc:http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsOver...
> )

-- 
You received 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: Can't get to default place

2010-12-02 Thread David Chandler
Hi Andrey, what do you mean by "OneMoreActivity starts GoodByeActivity"? Can
you please post the code for OneMoreActivity?

/dmc

On Thu, Dec 2, 2010 at 4:52 PM, ailinykh  wrote:

> Hello, everybody!
> I slightly modified hellomvp example, I just added one more place/
> activity/view. It's called OneMorePlace, OneMoreActivity, OneMoreView.
>
> So right now I have scenario like this- HelloActivty starts
> OneMoreActivity, OneMoreActivity starts GoodByeActivity.
>
> But when I tried to step back from GoodByeActivity I get loop
> GoodByeActivity -> OneMoreActivity -> GoodByeActivity ->
> OneMoreActivity ...
> I never get back to default (HelloPlace) place.
> The same happens in my real application. What could be wrong? Any
> ideas?
>
> Thank you,
>  Andrey
>
> --
> You received 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.
>
>


-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
http://googlewebtoolkit.blogspot.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-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: Expenses example - cache warning

2010-12-02 Thread David Chandler
Thanks, David. FYI, I filed an issue and we should be able to get this in
for 2.1.1

http://code.google.com/p/google-web-toolkit/issues/detail?id=5705

/dmc

On Fri, Nov 26, 2010 at 3:30 PM, David Sowerby wrote:

> I compile the expenses example from trunk, but got the following
> warning appearing every second or so:
>
> 26-Nov-2010 20:28:01
> com.google.gwt.sample.expenses.server.domain.Report
> findReportEntriesBySearch
> WARNING: Exception retrieving memcache instance:
> net.sf.jsr107cache.CacheException: Could not find class:
> 'ri.cache.BasicCacheFactory'
>
> I found this post:, which gives the answer
>
> http://code.google.com/p/googleappengine/issues/detail?id=3099
>
>
> I changed the imports in both Report and ReportBack classes from
>
> import net.sf.jsr107cache.Cache;
> import net.sf.jsr107cache.CacheException;
> import net.sf.jsr107cache.CacheFactory;
> import net.sf.jsr107cache.CacheManager;
>
> to
>
> import javax.cache.Cache;
> import javax.cache.CacheException;
> import javax.cache.CacheFactory;
> import javax.cache.CacheManager;
>
> and the problem is cleared
>
> --
> You received 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.
>
>


-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
http://googlewebtoolkit.blogspot.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-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.



Can't get to default place

2010-12-02 Thread ailinykh
Hello, everybody!
I slightly modified hellomvp example, I just added one more place/
activity/view. It's called OneMorePlace, OneMoreActivity, OneMoreView.

So right now I have scenario like this- HelloActivty starts
OneMoreActivity, OneMoreActivity starts GoodByeActivity.

But when I tried to step back from GoodByeActivity I get loop
GoodByeActivity -> OneMoreActivity -> GoodByeActivity ->
OneMoreActivity ...
I never get back to default (HelloPlace) place.
The same happens in my real application. What could be wrong? Any
ideas?

Thank you,
  Andrey

-- 
You received 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: To smart GWT or not

2010-12-02 Thread Alejandro D. Garin
I would use pure GWT, and heavy use of UiBinder, plus taking advantage of
the latest 2.1 additions for mvp.
Do you have problems with layout? What is your issue?
Have a look to the DynaTableRf sample source code, it's a good example how
to use nested layout panels for doing layouts.

On Wed, Dec 1, 2010 at 1:35 PM, Baloe  wrote:

> Hi all,
>
> I wonder, is there anyone using Smart GWT? Or, any other (Sencha)
> product? We are struggling with the poor widgets included with GWT and
> it looks like my boss is not going to accept to spend more time on how
> to get these GWT widgets into place. And we need more advanced widgets
> as well.
>
> Thanks!
> NielsBaloe
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Expenses example - cache warning

2010-12-02 Thread Dan Billings
Thank you so much for posting this solution!

On Nov 26, 2:30 pm, David Sowerby  wrote:
> I compile the expenses example from trunk, but got the following
> warning appearing every second or so:
>
> 26-Nov-2010 20:28:01
> com.google.gwt.sample.expenses.server.domain.Report
> findReportEntriesBySearch
> WARNING: Exception retrieving memcache instance:
> net.sf.jsr107cache.CacheException: Could not find class:
> 'ri.cache.BasicCacheFactory'
>
> I found this post:, which gives the answer
>
> http://code.google.com/p/googleappengine/issues/detail?id=3099
>
> I changed the imports in both Report and ReportBack classes from
>
> import net.sf.jsr107cache.Cache;
> import net.sf.jsr107cache.CacheException;
> import net.sf.jsr107cache.CacheFactory;
> import net.sf.jsr107cache.CacheManager;
>
> to
>
> import javax.cache.Cache;
> import javax.cache.CacheException;
> import javax.cache.CacheFactory;
> import javax.cache.CacheManager;
>
> and the problem is cleared

-- 
You received 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: instanceof check on element always return true?

2010-12-02 Thread Thomas Broyer


On 2 déc, 12:10, Ed  wrote:
> I receive an element in a Clickhandler like this:
> final Element el = event.getNativeEvent().getEventTarget().cast()
>
> It concerns a DIV element which the tag name shows.
>
> However, the following result in true:
> el instanceof DivElement (as expected).
> el instanceof InputElement (not expected!!).
> el instanceof LabelElement (not expected!!).
>
> What am I missing here? or is this a bug?

It's not a bug.

Element extends JavaScriptObject, which has specific "limitations":
http://code.google.com/p/google-web-toolkit/wiki/OverlayTypes
(linked from the GWT doc: 
http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsOverlay.html
)

-- 
You received 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 MVP Activities and Places

2010-12-02 Thread Thomas Broyer


On 1 déc, 21:36, Brian Reilly  wrote:
> I haven't done this in a real project yet, but I was experimenting with
> something similar. I think I was able to get this kind of behavior by
> wrapping the ActivityMapper implementation in a CachingActivityMapper and
> wrapping that in a FilteredActivityMapper. The idea is that the filtered
> activity mapper recognizes some places (like detail views) and changes them
> into whatever place invokes your list activity. Then, the caching activity
> mapper, having already seen an equivalent place, doesn't invoke the wrapped
> activity mapper since the display region is already showing that place.
>
> It seems rather roundabout to me, so I don't know if this is the best way to
> do it, or if this is exactly what Caching/FilteredActivityMapper are for
> (the documentation is pretty light there). I'd appreciate if others could
> chime in with agreement or other options.

That's the exact use case for FilteredActivityMapper and
CachingActivityMapper (and how they're used AFAICT in "scaffold"
applications generated by String Roo for the "master" activities).

Of course you could do the exact same thing right into your
ActivityMapper (the need here is to return the same Activity instance,
so te ActivityManager will detect it and won't do the stop/start
dance); you'd however loose a bit of "separation of concerns".

-- 
You received 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: Debug problem since GWT 2.1.0, gwt-maven-plugin 2.1.0, Maven 3.0

2010-12-02 Thread Geoffrey Wiseman
I'm guessing this is caused by this filed issue?
http://code.google.com/p/google-web-toolkit/issues/detail?id=4853

-- 
You received 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-maven-plugin / "google plugin for eclipse" / working for anyone?!?!

2010-12-02 Thread David Chandler
Do you see errors in any of the Eclipse consoles (including Maven console)
while doing the import?

On Thu, Dec 2, 2010 at 3:28 PM, cri  wrote:

> We are trying to use gwt-maven-plugin to generate our mavenized gwt
> project. Our versions are:
>
> eclipse helios
> gwt 2.1
> gwt-maven-plugin 2.1.1-SNAPSHOT
>
> We generate our initial project with the command line:
>
> mvn archetype:generate \
> -DarchetypeRepository=https://nexus.codehaus.org/content/groups/
> snapshots-group/  \
> -DarchetypeGroupId=org.codehaus.mojo \
> -DarchetypeArtifactId=gwt-maven-plugin \
> -DarchetypeVersion=2.1.1-SNAPSHOT
>
> We then import the project into eclipse using "import / as existing
> project".
>
> Here are the problems we then encountered:
>
> (1) Eclipse compile errors complaining of unknown classes. These are
> classes the plugin generates and places in target/generated-sources/
> gwt. The classes are Messages.java and GreetingServiceAsync.java. We
> work around this problem by adding  target/generated-sources/gwt to
> our eclipse project classpath.
>
> (2) The class GwtTesttest.java has eclipse compile errors. We don't
> care much about this so for the moment we are just deleting that
> class.
>
> (3) This is the problem we can't find a workaround for. If we add
> dependencies to our pom, say spring framework, they then get added
> automatically to the "Libraries/Maven Dependencies". The problem comes
> when we invoke "Run As... / Web Application". Jetty fails to find
> classes in our newly added maven dependency, e.g Spring.
>
> Is there anyone out there that can shed some light on this? 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.
>
>


-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
http://googlewebtoolkit.blogspot.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-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-RPC Portlets Liferay

2010-12-02 Thread Olivier TURPIN
Hello,

There is some resources about GWT-APP management on liferay's forum :
http://www.liferay.com/web/guest/community/forums/-/message_boards/message/461945

http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/How+to+build+a+GWT+Portlet+in+Liferay

I think that there is a gwt sample with the demo bundle, did you try
it ?

Maybe you've got some troubles with contextpath (N.B i'm not a Liferay
expert...°)

Olivier


On 2 déc, 15:05, Ani  wrote:
> Hello,
>
> I'm new on portlets and LifeRay world. I have a GWT-RPC ap and i'd
> like to use it in a portlet, and see it in LifeRay, but when i try to
> add the portlet, i get the following error:
>
> Error:
> The call failed on the server; see server log for details
>
> In localhost."date".log i see:
> org.apache.catalina.core.StandardHostValve custom
> FINA: Processing ErrorPage[errorCode=404, location=/errors/404.jsp]
>
> Could you help me with this issue?
>
> Than you very much in advance por any kind of information you can give
> me about this, because i was not able to find much, and the one i've
> found, didn't help me, as i continue getting the same error.
>
> Regards,
> Ana

-- 
You received 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-maven-plugin / "google plugin for eclipse" / working for anyone?!?!

2010-12-02 Thread cri
We are trying to use gwt-maven-plugin to generate our mavenized gwt
project. Our versions are:

eclipse helios
gwt 2.1
gwt-maven-plugin 2.1.1-SNAPSHOT

We generate our initial project with the command line:

mvn archetype:generate \
-DarchetypeRepository=https://nexus.codehaus.org/content/groups/
snapshots-group/  \
-DarchetypeGroupId=org.codehaus.mojo \
-DarchetypeArtifactId=gwt-maven-plugin \
-DarchetypeVersion=2.1.1-SNAPSHOT

We then import the project into eclipse using "import / as existing
project".

Here are the problems we then encountered:

(1) Eclipse compile errors complaining of unknown classes. These are
classes the plugin generates and places in target/generated-sources/
gwt. The classes are Messages.java and GreetingServiceAsync.java. We
work around this problem by adding  target/generated-sources/gwt to
our eclipse project classpath.

(2) The class GwtTesttest.java has eclipse compile errors. We don't
care much about this so for the moment we are just deleting that
class.

(3) This is the problem we can't find a workaround for. If we add
dependencies to our pom, say spring framework, they then get added
automatically to the "Libraries/Maven Dependencies". The problem comes
when we invoke "Run As... / Web Application". Jetty fails to find
classes in our newly added maven dependency, e.g Spring.

Is there anyone out there that can shed some light on this? 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.



CSS3 Selector nth-child

2010-12-02 Thread dusty
Hello,

Using UiBinder I have an embedded CSS style and want to use nth-
child(even).  The Uibinder crashes saying it can't interpret the CSS.
If I replace "even" with a number it says it is expecting .  Is
this possible with GWT?

Here is my CSS segment:


.productlist {
cursor: pointer;
width: 50em;
padding: 10px 10px 0px 10px;
}

.productlist tr:nth-child(even) {
background-color: silver;
}



-- 
You received 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: Building GWT from source

2010-12-02 Thread aarnott
It ended up I was stupid and didn't add my SVN install to my path. I
thought the build had succeeded, but it failed part way through.

Thanks for the tips though! The 'ant dist-dev' seems to run a lot
faster than just 'ant', so that will save me a lot of time when I'm
testing my changes.

--Andrew

On Dec 2, 11:28 am, Chris Conroy  wrote:
> To build gwt-user and gwt-dev, you'll want to run 'ant dist-dev'.
>
> If you're using GPE, you can simply configure your ant built jars as one of
> your SDK choices from GPE's preferences, and then be sure to set your
> project to use that SDK.
>
> The above should be the bare bones you need to get rolling. You may also
> want to check out the eclipse README file for building from source and using
> Eclipse: Checkout the Eclipse README file for instructions on getting
> eclipse 
> setup:http://www.google.com/codesearch/p?hl=en#A1edwVHBClQ/eclipse/README.t...
>
>
>
>
>
>
>
> On Wed, Dec 1, 2010 at 5:15 PM, aarnott  wrote:
> > I'm investigating a bug I reported (here
> >http://code.google.com/p/google-web-toolkit/issues/detail?id=5669).
> > I'm hoping that I can figure out a fix myself and either post the
> > solution in the bug report or actually figure out how to submit it.
>
> > * I'm not very experienced with SVN (although I am familiar with
> > Perforce)
> > * I've never used ant before
> > * I'm not experienced building jars
> > * I'm fairly experienced with Java (otherwise I wouldn't even try
> > tackling this one)
>
> > I've followed the instructions for downloading the source and running
> > ant in the source directory. I'm stuck at this point, however. I'm not
> > sure what I'm supposed to do in order to build the GWT jars. I'd like
> > to make the gwt-user.jar and substitute it in my project to see if I
> > can fix the bugs (or find out if it is already fixed in the latest
> > code).
>
> > Any help would be appreciated!
>
> > Andrew Arnott
>
> > --
> > You received 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 > cr...@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: Observe (Hyper) Links in Texts to call JAVA methods

2010-12-02 Thread Jack
To intercept clicks on your anchor inside your html you can listen for
click events for the contentHtmlPanel and check if an anchor has been
clicked. Here is a short example using HTMLPanel:

public void onModuleLoad() {

HTMLPanel contentHtmlPanel = new HTMLPanel("Hello World");
contentHtmlPanel.addDomHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
Element e = 
DOM.eventGetTarget(Event.as(event.getNativeEvent()));
if(e instanceof AnchorElement) {
AnchorElement anchor = (AnchorElement) 
e;
String href = anchor.getHref(); 
//absolute URI
String hrefAttribute = 
anchor.getAttribute("href"); //href
attribute value
Window.alert("href:\n\n" + href + 
"\n\nhrefAttribute:\n\n" +
hrefAttribute);
}
}
}, ClickEvent.getType());

RootPanel.get().add(contentHtmlPanel);

}

If your HTMLPane is a custom widget you can also do the following:
1.) Create a custom GwtEvent and its corresponding Handler, e.g.:

public class AnchorClickedEvent extends
GwtEvent {
.. getter method for your needed information ..
}

public interface AnchorClickedEventHandler extends EventHandler {
  public void onAnchorClicked(AnchorClickedEvent event);
}

2.) Give your HTMLPane a new method (maybe through a
HasAnchorClickEventHandlers interface):

public HandlerRegistration
addAnchorClickedEventHandler(AnchorClickedEventHandler handler) {
  return this.addHandler(handler, AnchorClickedEvent.TYPE);
}

3.) Add this.sinkEvents(Event.ONCLICK) to your HTMLPane's constructor
and then overwrite onBrowserEvent(Event event). In the onBrowserEvent
method you check for click events and do the same as in onClick() from
the code above.
The line "Window.alert(...)" will become this.fireEvent(new
AnchorClickedEvent())

That way you should be able to attach AnchorClickedEventHandlers to
your custom HTMLPane and your Event will have the information you
need. You could also use the EventBus if you like. Just skip step 2
and fire your event through the eventbus in step 3.




On 2 Dez., 10:15, wawuvu  wrote:
> Hello everyone,
>
> I've been searching quit a lot for a solution to this problem but all
> I found wasn't 100% satisfactorily:
>
> I use RPCs in my GWT project to get some texts like
>
> String text =  " ...bla bla open me
> blablalb ";
>
> Those strings will be loaded into the content of a HTMLPane like this:
>
> contentHTMLPane = new HTMLPane();
> contentHTMLPane.setContents(text);
>
> And the user can see the new content after the RPC. What I need is the
> following:
>
> When the user clicks on open me it should call
> the method:
>
> public void openConent(String id){
> ...
>
> }
>
> ...of course with the ID of the Link. The openContent method is
> present in the class which processes the text and so on.
>
> So I have to observe the "user clicks on a hyperlink" event somehow.
> Somehow like:
>
> (pseudocode)
>
> if(eventHyperlinkOccurs) {
>
> this.openConent(event.getURLofLink);
>
> }
>
> All I've found is 
> this:http://googlewebtoolkit.blogspot.com/2008/07/getting-to-really-know-g...
> which tells me that it's possible to call JAVA methods with JS
> methods. This solution is OK but I've been wondering if there is a
> "smaller" solution with events/observers?
>
> Thanks in advance!

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



Re: CellTable not updating

2010-12-02 Thread John LaBanca
LayoutPanels need an unbroken chain of parents that implement ProvidesResize
up to the RootLayoutPanel.  If you add a LayoutPanel to a PopupPanel, it
will not layout correctly, and content will be hidden.  You can get around
this by giving the outermost panel an explicit height and width.

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


On Thu, Dec 2, 2010 at 2:07 PM, Eric  wrote:

> Yes, I added the table to the provider as a data display. I was not
> invoking dataProvider.refresh() as I thought invoking
> dataProvider.setList(myList) would update all displays. In fact, my
> table is indeed updated. After I call setList on the provider, I can
> query the table and see the updates have occurred (and popup the same
> table in a Popup shows the updated table). The problem is, the table
> was originally placed in a SplitLayoutPanel, inside a DockLayoutPanel,
> etc., and that is not being updated.
>
> I know the table is correct because I can query and put it in a popup.
> I discovered that trying to figure out why the updated info was not
> being displayed. If I wait until the table is updated and then place
> it in the same panel hierarchy, it displays correctly. But updates are
> not displayed.
>
> Here's a small snippet with trace code where the update occurs (trace
> information shows correct update):
>
>public void setSelectedFoodGroup(FdGroupEntity foodGroup,
> List foods) {
>logger.entering(NutritionDataView.class,
> "setSelectedFoodGroup");
>logger.info("Adding food list of size: " + foods.size());
>if (!dataProvider.getDataDisplays().contains(table)) {
>logger.info("Adding display");
>dataProvider.addDataDisplay(table);
>}
>dataProvider.setList(foods);
>table.setPageSize(foods.size());
>dataProvider.refresh();
>logger.info(table.getRowElement(5).getInnerHTML());
>logger.info("page start=" + table.getPageStart());
> //PopupPanel popupPanel = new PopupPanel(true);
> //popupPanel.setWidget(this);
> //popupPanel.show();
> }
>
>
>
> On Dec 2, 10:53 am, Jeff Schwartz  wrote:
> > Are you calling the data provider's addDataDisplay method to associate
> the
> > cell table with it?
> > dataProvider.addDataDisplay(yourCellTable);
> >
> > Also, after making any changes to the data provider such as modifying,
> > adding or deleting, are you calling the data provider's refresh method?
> > dataProvider.refresh();
> >
> > Jeff
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Wed, Dec 1, 2010 at 5:52 PM, Eric  wrote:
> > > I have CellTable being fed data from a ListDataProvider. I set a list
> > > into the data provider and can then query the CellTable and see the
> > > updated HTML results. Popping up a window with the table also shows an
> > > updated table.
> >
> > > The problem is, I originally put the table into a DeckPanel that's
> > > nested in several other panels - dock, split,... and it shows in its
> > > original "no data, only column header" form. When the data provider is
> > > updated, the CellTable is not repainted. I can query it and pop it up
> > > in another window, so I know the table is updated - it's just not
> > > reflected in the panel in which it was originally placed.
> >
> > > Am I missing something simple here? Even trying to force a layout at
> > > the root panel doesn't cause anything to show up. Any suggestions on
> > > the problem or how I might debug this?
> >
> > > Thank you.
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to
> google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com cr...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
> >
> > --
> > *Jeff Schwartz*
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: never ending topic "rich text editor"

2010-12-02 Thread David Chandler
Hi P.G.,

Have you considered using an event handler with RichTextArea? Seems
like you could add a KeyPressHandler and call getText(), do your
String replacement as needed, then setText(result).

/dmc

On Thu, Dec 2, 2010 at 10:07 AM, P.G.Taboada  wrote:
> Hi,
>
> as far as I read myself through some messages here (yes, I know how to
> use the search), and after looking into some wrappers and into the
> RichTextArea provided by GWt I am a little bit lost.
>
> Beside of the standard features I need to be able to extend the
> editor. While the user types, I want to be able to programmatically
> replace words or group of words.
>
> Is there any extensible GWT based editor framework/ api out there?
>
> brgds,
>
> P.G. Taboada
>
> --
> You received 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.
>
>



-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
http://googlewebtoolkit.blogspot.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-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: Safe Html check?

2010-12-02 Thread Ed
Apearantly I was reading too fast :(...
I seem to need the class SimpleHtmlSanitizer .
Thanks for the tip.

I am using it now, but noticed that snaitizeHtml always returns an
SafeHtml object.
  public static SafeHtml sanitizeHtml(String html);

That's often not what I want, especially not when migrating to it's
usage. I rather have it return a string, but that method is private:
  private static String simpleSanitize(String text) {

As it safes me the creation of this object that I don't use.
I use it at this moment through a central method in my UtilsGwt:
public static String toSafeString(final String text) {
return SimpleHtmlSanitizer.sanitizeHtml(text).asString();
}


Besides that, I see you throw an exception if the specified html is
null:
  public static SafeHtml sanitizeHtml(String html) {
if (html == null) {
  throw new NullPointerException("html is null");
}
return new SafeHtmlString(simpleSanitize(html));
  }

I would prefer you just return null, especially as it's valid to set
null as: element.innerHtml(null)

Hmmm I also see that  is escaped, so I probably better off
creating my own sanitizer ;)..
It would be nice if there would a default sanitizer that you can
configure maybe (flexible white list)..

Just one question: why are elements as div and span not whitelisted ?
I think because you could do something like:


or not?





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



Re: CellTable not updating

2010-12-02 Thread Eric
Yes, I added the table to the provider as a data display. I was not
invoking dataProvider.refresh() as I thought invoking
dataProvider.setList(myList) would update all displays. In fact, my
table is indeed updated. After I call setList on the provider, I can
query the table and see the updates have occurred (and popup the same
table in a Popup shows the updated table). The problem is, the table
was originally placed in a SplitLayoutPanel, inside a DockLayoutPanel,
etc., and that is not being updated.

I know the table is correct because I can query and put it in a popup.
I discovered that trying to figure out why the updated info was not
being displayed. If I wait until the table is updated and then place
it in the same panel hierarchy, it displays correctly. But updates are
not displayed.

Here's a small snippet with trace code where the update occurs (trace
information shows correct update):

public void setSelectedFoodGroup(FdGroupEntity foodGroup,
List foods) {
logger.entering(NutritionDataView.class,
"setSelectedFoodGroup");
logger.info("Adding food list of size: " + foods.size());
if (!dataProvider.getDataDisplays().contains(table)) {
logger.info("Adding display");
dataProvider.addDataDisplay(table);
}
dataProvider.setList(foods);
table.setPageSize(foods.size());
dataProvider.refresh();
logger.info(table.getRowElement(5).getInnerHTML());
logger.info("page start=" + table.getPageStart());
//PopupPanel popupPanel = new PopupPanel(true);
//popupPanel.setWidget(this);
//popupPanel.show();
}



On Dec 2, 10:53 am, Jeff Schwartz  wrote:
> Are you calling the data provider's addDataDisplay method to associate the
> cell table with it?
>     dataProvider.addDataDisplay(yourCellTable);
>
> Also, after making any changes to the data provider such as modifying,
> adding or deleting, are you calling the data provider's refresh method?
>     dataProvider.refresh();
>
> Jeff
>
>
>
>
>
>
>
>
>
> On Wed, Dec 1, 2010 at 5:52 PM, Eric  wrote:
> > I have CellTable being fed data from a ListDataProvider. I set a list
> > into the data provider and can then query the CellTable and see the
> > updated HTML results. Popping up a window with the table also shows an
> > updated table.
>
> > The problem is, I originally put the table into a DeckPanel that's
> > nested in several other panels - dock, split,... and it shows in its
> > original "no data, only column header" form. When the data provider is
> > updated, the CellTable is not repainted. I can query it and pop it up
> > in another window, so I know the table is updated - it's just not
> > reflected in the panel in which it was originally placed.
>
> > Am I missing something simple here? Even trying to force a layout at
> > the root panel doesn't cause anything to show up. Any suggestions on
> > the problem or how I might debug this?
>
> > Thank you.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> *Jeff Schwartz*

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

2010-12-02 Thread Nirmal
When you nest a LayoutPanel within something NON-LayoutPanel (like
Flowpanel); you need to explicitly set both - the height & width of
the LayoutPanel. Read "Using a LayoutPanel without RootLayoutPanel" of
http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html


Regards,
Nirmal

On Dec 2, 7:10 pm, Jeff Larsen  wrote:
> >I don't understand your sentence, can you be more specific? I want to
>
> set the size of the flowpanel, that's allright.
>
> LayoutPanels want to be nested inside LayoutPanels. What if instead of
> using a FlowPanel you used a LayoutPanel for the main uibinder widget.
>
> The way I've ended up debugging some of these weird issues with
> LayoutPanels is by cracking open Firebug and hacking away at styles
> until things start to look right.
>
> On Dec 2, 2:38 am, Baloe  wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > Thanks for your suggestions. Setting the width on the flowpanel
> > doesn't work. I cannot set the width of it's parent, because there is
> > no parent (see uibinder file).
>
> > >Anything LayoutPanel wants to be in another layout panel.
>
> > I don't understand your sentence, can you be more specific? I want to
> > set the size of the flowpanel, that's allright.
>
> > We are currently looking into smartgwt, because it seems that over
> > there most things actually work.
>
> > Thanks all!
> > NielsBaloe
>
> > On 1 dec, 17:48, Jeff Larsen  wrote:
>
> > > Anything LayoutPanel wants to be in another layout panel.
>
> > > if you don't want to set the size of FlowPanel, put everything inside
> > > a LayoutPanel then make sure that LayoutPanel is attached to
> > > RootLayoutPanel.
>
> > >http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html
>
> > > On Dec 1, 9:30 am, Paul Stockley  wrote:
>
> > > > Try setting the width on the flowpanel. If this doesn't work, set the
> > > > width on its parent.
>
> > > > On Dec 1, 5:51 am, Baloe  wrote:
>
> > > > > Hi,
>
> > > > > Thanks for your suggestion. However, most widgets don't listen to
> > > > > their method-calls.
>
> > > > > Regarding the uibinder example, I have to put everything in a
> > > > > flowpanel, because uibinder expects to find only one (main) widget.
> > > > > So, we are basicly putting everything in a flowpanel without any
> > > > > layout-based reason.
>
> > > > > Best,
> > > > > Niels
>
> > > > > On 30 nov, 21:08, "Alejandro D. Garin"  wrote:
>
> > > > > > Hi,
>
> > > > > > I have made very good layouts using the gwt layout system. I would 
> > > > > > recommend
> > > > > > to have a look at :
>
> > > > > >http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html
>
> > > > > > Regarding to your UiBinder example, don't put the TabLayoutPanel 
> > > > > > inside a
> > > > > > FlowPanel.
>
> > > > > > On Tue, Nov 30, 2010 at 7:10 AM, Baloe  wrote:
> > > > > > > Hi all,
>
> > > > > > > I'm using a tabLayoutPanel with three tabs. However, the total 
> > > > > > > width
> > > > > > > is now dynamicly created by the width of the content of the 
> > > > > > > current
> > > > > > > tab. But, my first and second tabs are not that wide, so the 
> > > > > > > third tab
> > > > > > > always hangs a bit outside of the tab. How can I set the width of 
> > > > > > > the
> > > > > > > TabLayoutPanel?
>
> > > > > > > I tried several things, but I can't seem to set the width.
> > > > > > > tabLayoutPanel.setWidth("700px");
> > > > > > > tabLayoutPanel.setSize("700px", "500px");
> > > > > > > tabLayoutPanel.setPixelSize(700, 500);
> > > > > > > with and without tabLayoutPanel.onResize();
>
> > > > > > > uibinder file:
> > > > > > >        
> > > > > > >                 > > > > > >                        barHeight="50" height="600px">
> > > > > > >                
> > > > > > >                 > > > > > > />
> > > > > > >        
>
> > > > > > > I'm adding the tabs in java code after binding.
> > > > > > >        tabGeneral = new FlexTable();
> > > > > > >        .
> > > > > > >        tabLayoutPanel.add(tabGeneral, i18nGeneral.name());
>
> > > > > > > I really like GWT a lot, but I must say that the ui pieces are 
> > > > > > > really
> > > > > > > quite bad. You can't use certain widgets because it's standard 
> > > > > > > mode
> > > > > > > (or not) without warnings, setting sizes and other basic stuff 
> > > > > > > doesn't
> > > > > > > always work, examples often work in java code but not in the 
> > > > > > > uibinder,
> > > > > > > etc. It would be nice if the widgets themselves were better. It 
> > > > > > > feels
> > > > > > > like temporary broken, or just beta sourcecode. If you can make 
> > > > > > > such a
> > > > > > > good java2javascript compiler, why not create proper widgets as 
> > > > > > > well?
>
> > > > > > > Thanks!
> > > > > > > Niels
>
> > > > > > > --
> > > > > > > You received 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...@googlegro

Re: CellTable and multiple editable columns

2010-12-02 Thread Sean
Another thing that I do often is a Map between an Integer and a List
of Contacts, where Integer will be Column Number. Then you can keep
your current logic, but you just also insert column number.

On Dec 2, 11:38 am, Mittal  wrote:
> I am using CellTable with simple pager to show ArrayList
> contacts. There are multiple columns that are editable mostly using
> EditTextCell. I have implemented FieldUpdater for editable columns.
> But I do not want to make server side save/update call each time there
> is change made to particular editable column.
>
> I would like to collect all the updates, lets say in
> ArrayList modifiedContacts and send it server side by using
> some kind of Save Contacts button.
>
> I am able to do this if I keep only one column editable, but moment I
> add multiple columns as editable, I start getting duplicate objects in
> my ArrayList modifiedContacts since each editable column is
> implementing FieldUpdater.
>
> When 2 or more columns of same row are updated, FieldUpdater of each
> column is fired, storing duplicate objects in  ArrayList
> modifiedContacts.
>
> I could use Set instead of ArrayList to store unique contact objects
> but is there better way to do this ?
>
> Thanks
> Mittal

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



Re: CellTable and multiple editable columns

2010-12-02 Thread John LaBanca
You can store pending changes in a HashMap using the unique ID of the object
as the key.  When the use changes something in a row object, get it out of
the map (creating it if necessary) and update the fields that changes.  When
the user presses Save, send all of the pending changes to the server.

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


On Thu, Dec 2, 2010 at 11:38 AM, Mittal  wrote:

> I am using CellTable with simple pager to show ArrayList
> contacts. There are multiple columns that are editable mostly using
> EditTextCell. I have implemented FieldUpdater for editable columns.
> But I do not want to make server side save/update call each time there
> is change made to particular editable column.
>
> I would like to collect all the updates, lets say in
> ArrayList modifiedContacts and send it server side by using
> some kind of Save Contacts button.
>
> I am able to do this if I keep only one column editable, but moment I
> add multiple columns as editable, I start getting duplicate objects in
> my ArrayList modifiedContacts since each editable column is
> implementing FieldUpdater.
>
> When 2 or more columns of same row are updated, FieldUpdater of each
> column is fired, storing duplicate objects in  ArrayList
> modifiedContacts.
>
> I could use Set instead of ArrayList to store unique contact objects
> but is there better way to do this ?
>
> Thanks
> Mittal
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Plugin Upgrade Woes

2010-12-02 Thread Evan Ruff
Hey guys,

I'm having a really tough time today. I upgraded my GWT Plugin to
1.4v201010280047 at the update site and it has completely broken all
of my projects. When I have the "Use GWT" item selected in my project
properties, it will not generate any class files. the WEB-INF/classes
folder structures (as well as the gwt.xml resources) are all there,
but there are ZERO class files. When I uncheck the "Use GWT" box, all
my class files are compiled as normal.

Obviously, this has been pretty frustrating this morning. Is this a
known issue with the new Plugin and Eclipse 3.5? I'm POSITIVE I'm
installing the correct plugin for my version. Is there any way I can
fall back to the previous version? There does not seem to be any
listed at the update site.

Thanks for any help or direction,

Evan

-- 
You received 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: Customizing CSS Default GWT Widgets with CSSResource

2010-12-02 Thread Anderson Aroeira Araujo
Thanks Marcin!
It works!

On Dec 2, 2:35 pm, Marcin Misiewicz  wrote:
> Right know I'm customizing default gwt widgets.
> As a starting point I took the standard theme, I copied the
> standard.css file from standard theme and then declared this in my
> ThemeBundle like this :
>         @Source("standard.css")
>         CssResource getLegacyCssResource();
>
> Then I have added @external declaration to every class listed in this
> file. Thanks to this I don't have to subclass CssResource and there is
> no need to declare getters for classes found in this css file.
> Below are external declarations for all the class names found in
> standard.css :
>
> @external gwt-Reference-standard, gwt-Button, gwt-CheckBox, gwt-
> CheckBox-disabled, gwt-FileUpload, gwt-Frame, gwt-PasswordTextBox, gwt-
> PasswordTextBox-readonly, gwt-PopupPanel, gwt-TextArea, gwt-TextArea-
> readonly, gwt-TextBox, gwt-TextBox-readonly;
> @external gwt-DecoratorPanel, topCenter, bottomCenter, middleLeft,
> middleRight, topLeftInner, topRightInner, bottomLeftInner,
> bottomRightInner, topLeft, topRight, bottomLeft, bottomRight;
> @external gwt-DialogBox, Caption, dialogContent, dialogBottomCenter,
> dialogMiddleCenter, dialogMiddleLeft, dialogMiddleRight,
> dialogTopLeftInner, dialogTopRightInner, dialogBottomLeftInner,
> dialogBottomRightInner, dialogTopLeft, dialogTopRight,
> dialogBottomLeft, dialogBottomRight;
> @external gwt-DisclosurePanel, gwt-DisclosurePanel-open, gwt-
> DisclosurePanel-closed, header, content;
> @external gwt-HorizontalSplitPanel, hsplitter, gwt-VerticalSplitPanel,
> vsplitter, gwt-HTML, gwt-Hyperlink, gwt-Image, gwt-Label, gwt-ListBox;
> @external gwt-MenuBar, gwt-MenuItem, gwt-MenuItem-selected, gwt-
> MenuItem-disabled, gwt-MenuBar-horizontal, gwt-MenuItemSeparator,
> menuSeparatorInner, gwt-MenuBar-vertical, subMenuIcon, subMenuIcon-
> selected;
> @external gwt-MenuBarPopup, menuPopupTopCenter, menuPopupBottomCenter,
> menuPopupMiddleLeft, menuPopupMiddleRight, menuPopupTopLeftInner,
> menuPopupTopRightInner, menuPopupBottomLeftInner,
> menuPopupBottomRightInner, menuPopupTopLeft, menuPopupTopRight,
> menuPopupBottomLeft, menuPopupBottomRight;
> @external gwt-DecoratedPopupPanel, popupContent, popupMiddleCenter,
> popupTopCenter, popupTopRight, popupTopLeft, popupBottomCenter,
> popupBottomRight, popupBottomLeft, popupMiddleLeft, popupMiddleRight,
> popupTopLeftInner, popupTopRightInner, popupBottomLeftInner,
> popupBottomRightInner, gwt-PopupPanelGlass;
> @external gwt-PushButton-up, gwt-PushButton-up-hovering, gwt-
> PushButton-up-disabled, gwt-PushButton-down, gwt-PushButton-down-
> hovering, gwt-PushButton-down-disabled, gwt-RadioButton, gwt-
> RadioButton-disabled;
> @external gwt-RichTextArea, hasRichTextToolbar, gwt-RichTextToolbar,
> gwt-PushButton-up, gwt-PushButton-up-hovering, gwt-PushButton-down,
> gwt-PushButton-down-hovering, gwt-ToggleButton-up, gwt-ToggleButton-up-
> hovering, gwt-ToggleButton-up-disabled, gwt-ToggleButton-down, gwt-
> ToggleButton-down-hovering, gwt-ToggleButton-down-disabled;
> @external gwt-StackPanel, gwt-StackPanelItem, gwt-StackPanelContent,
> gwt-DecoratedStackPanel, stackItemTopLeft, stackItemTopRight,
> stackItemTopLeftInner, stackItemTopRightInner, stackItemTopCenter,
> stackItemMiddleLeft, stackItemMiddleLeftInner,
> stackItemMiddleRightInner, stackItemMiddleRight,
> stackItemMiddleCenter, gwt-StackPanelItem-first, gwt-StackPanelItem-
> below-selected;
> @external gwt-SuggestBox, gwt-SuggestBoxPopup, item, item-selected,
> suggestPopupContent, suggestPopupTopCenter, suggestPopupBottomCenter,
> suggestPopupMiddleLeft, suggestPopupMiddleRight,
> suggestPopupTopLeftInner, suggestPopupTopRightInner,
> suggestPopupBottomLeftInner, suggestPopupBottomRightInner,
> suggestPopupTopLeft, suggestPopupTopRight, suggestPopupBottomLeft,
> suggestPopupBottomRight;
> @external gwt-TabBar, gwt-TabBarFirst, gwt-TabBarRest, gwt-TabBarItem,
> gwt-TabBarItem-selected, gwt-TabBarItem-disabled, gwt-TabPanel, gwt-
> TabPanelBottom;
> @external gwt-DecoratedTabBar, tabTopCenter, tabTopLeft, tabTopRight,
> tabTopLeftInner, tabTopRightInner, tabMiddleLeft, tabMiddleRight,
> tabMiddleLeftInner, tabMiddleRightInner, tabMiddleCenter;
> @external gwt-Tree, gwt-TreeItem, gwt-TreeItem-selected, gwt-DateBox,
> dateBoxFormatError, dateBoxPopup, gwt-DatePicker, gwt-DatePicker,
> datePickerMonthSelector, datePickerDays, datePickerDay,
> datePickerWeekdayLabel, datePickerWeekendLabel, datePickerDayIsToday,
> datePickerDayIsWeekend, datePickerDayIsFiller, datePickerDayIsValue,
> datePickerDayIsDisabled, datePickerDayIsHighlighted,
> datePickerDayIsValueAndHighlighted, datePickerMonth,
> datePickerPreviousButton, datePickerNextButton;
> @external gwt-StackLayoutPanel, gwt-StackLayoutPanelHeader, gwt-
> StackLayoutPanelHeader-hovering, gwt-StackLayoutPanelContent, gwt-
> TabLayoutPanel, gwt-TabLayoutPanelTabs, gwt-TabLayoutPanelContent, gwt-
> TabLayoutPanelTab, gwt-TabLayoutPanelTab-selected, gwt-
> SplitLayo

Re: help with stack trace

2010-12-02 Thread Robert J. Carr
Thanks Didier, I already did exactly that and it appears my problem is
with the gwt-canvas library I recently added.  IE is saying my problem
is here:

function 
gwt_canvas_client_CanvasImpl_$init__Lgwt_canvas_client_CanvasImpl_2Lgwt_canvas_client_Canvas_2V(this$static,
canvas){
  this$static.gwt_canvas_client_CanvasImpl_element =
canvas.com_google_gwt_user_client_ui_UIObject_element;
  this$static.gwt_canvas_client_CanvasImpl_context =
this$static.gwt_canvas_client_CanvasImpl_element.getContext($intern_1342);
}

On the second line of that function.  The gwt-canvas author has made
demos that work with IE8 that I've tested but it doesn't seem to be
working for me.  I doubt you'll know what is going on here, but in
case you do, or have any suggestion, I'd appreciate the help.

Thanks!

On Thu, Dec 2, 2010 at 9:08 AM, Didier Durand  wrote:
> Hi,
>
> You should use "Output style = detailed" when translating to JS: your
> files will get much bigger but the source in js will be very easy to
> match with its java equivalent. Then by using firebug, you should spot
> where your issue is.
>
> regards
> didier
>
> On Dec 2, 5:34 pm, rjcarr  wrote:
>> I've been using GWT for years (since around release 1.4) but I'm
>> having a problem with a stack trace I can't figure out.  I develop on
>> a mac and primarily test with Safari and Firefox.  My application has
>> worked in IE(8) in the past but in my most recent test it is failing
>> and I can't figure out why.  Typically in the past when IE has failed
>> I'll open in dev mode (previously hosted mode) and then get the stack
>> trace but in this case the stack trace isn't pointing to any of my
>> code.
>>
>> The problem happens immediately when I open up my application in IE8.
>> Here's the complete stack trace:
>>
>> 00:02:02.218 [ERROR] Uncaught exception escaped
>> com.google.gwt.core.client.JavaScriptException: (TypeError): Object
>> doesn't support this property or method
>>   number: -2146827850
>>   description: Object doesn't support this property or method
>>
>>         at
>> com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
>> 237)
>>         at
>> com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
>> 126)
>>         at 
>> com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
>> 561)
>>         at
>> com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
>> 269)
>>         at
>> com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
>> 91)
>>         at com.google.gwt.core.client.impl.Impl.apply(Impl.java)        at
>> com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
>> 39)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
>> 25)
>>         at java.lang.reflect.Method.invoke(Method.java:597)
>>         at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
>> 103)
>>         at 
>> com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
>> 71)
>>         at
>> com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
>> 157)
>>         at
>> com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
>> 281)
>>         at
>> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
>> 531)
>>         at
>> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
>> 352)
>>         at java.lang.Thread.run(Thread.java:662)
>>
>> Is there anything I'm missing?  Does this indicate it must be coming
>> from JSNI?  How do I track down where this is coming from?
>>
>> Maybe I could try unobfuscating the code and use firebug in IE8 (does
>> that even exist)?
>>
>> Thanks for the 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.
>
>

-- 
You received 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: Safe Html check?

2010-12-02 Thread Philip Rogers
Glad to hear you like SafeHtml!

In order to prevent various attacks, you have to check for much more
than just script tags. For example, the following can cause javascript
to be interpreted and would get by a 

Re: help with stack trace

2010-12-02 Thread Didier Durand
Hi,

You should use "Output style = detailed" when translating to JS: your
files will get much bigger but the source in js will be very easy to
match with its java equivalent. Then by using firebug, you should spot
where your issue is.

regards
didier

On Dec 2, 5:34 pm, rjcarr  wrote:
> I've been using GWT for years (since around release 1.4) but I'm
> having a problem with a stack trace I can't figure out.  I develop on
> a mac and primarily test with Safari and Firefox.  My application has
> worked in IE(8) in the past but in my most recent test it is failing
> and I can't figure out why.  Typically in the past when IE has failed
> I'll open in dev mode (previously hosted mode) and then get the stack
> trace but in this case the stack trace isn't pointing to any of my
> code.
>
> The problem happens immediately when I open up my application in IE8.
> Here's the complete stack trace:
>
> 00:02:02.218 [ERROR] Uncaught exception escaped
> com.google.gwt.core.client.JavaScriptException: (TypeError): Object
> doesn't support this property or method
>   number: -2146827850
>   description: Object doesn't support this property or method
>
>         at
> com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
> 237)
>         at
> com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
> 126)
>         at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
> 561)
>         at
> com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
> 269)
>         at
> com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
> 91)
>         at com.google.gwt.core.client.impl.Impl.apply(Impl.java)        at
> com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
> 25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
> 103)
>         at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
> 71)
>         at
> com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
> 157)
>         at
> com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
> 281)
>         at
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
> 531)
>         at
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
> 352)
>         at java.lang.Thread.run(Thread.java:662)
>
> Is there anything I'm missing?  Does this indicate it must be coming
> from JSNI?  How do I track down where this is coming from?
>
> Maybe I could try unobfuscating the code and use firebug in IE8 (does
> that even exist)?
>
> Thanks for the 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: GWT 2.1 Activities – nesting? YAGNI ? - an exa mple of where you NEED it !

2010-12-02 Thread PhilBeaudoin
For anybody considering GWTP (http://gwtplatform.com) as an
alternative to GWT MVP, I want to stress out the fact that, despite
the differences, there are a lot of similarity in the spirit of these
two libraries. For example, gwtplatform's proxies are very similar to
GWT's Activities. The place systems are quite similar too.

One of the difference is that GWTP already offers mechanisms to reduce
boilerplate via annotations and generators. You can hook (lazy) events
to your presenters, define their place, etc. all with simple
annotations right in your presenter. I'm sure GWT will evolve towards
that at some point, but if you need it right away GWTP might not be a
bad choice.

Another difference is that GWTP fully embraces the concept of
presenters, whereas in GWT MVP you need to create them using the
provided building blocks. As you start nesting presenters it is useful
to have mechanisms to maintain a hierarchy and propagate lifecycle
notifications within that hierarchy. In GWT you will likely have to
build some scaffolding for that.

GWTP also has more bells and whistles such as hierarchical places
(useful for breadcrumbs), support for tabbed presenters, etc.

Where GWT shines is in the level of decoupling of the various
components. And the GWTP developers appreciate this a lot. In fact, we
plan to migrate the backend of GWTP towards the core GWT MVP classes
(as they stabilize). Our goal is to let users of the current API
benefit from any improvement provided by the GWT team. In time, we
want GWTP apps to be interoperable with standard GWT MVP apps.

A closing remark: GWTP offers other components that can be used
independently of its MVP framework. If you want to use GWT MVP but
need a good dispatch solution, take a look at GWTP dispatcher.

Cheers,

Philippe

On Dec 2, 1:22 am, massimo malvestio 
wrote:
>  and what if data from one workspace is used in another ?
>
> In my opionion for this point you could fire a specific event, because, if
> data inside a workspace is needed by another one, this means user did
> something or a generic condition about displayed data happened. Am I 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: To smart GWT or not

2010-12-02 Thread nino ekambi
No one willing to step up and starting something ?
Then people stop complaining about Sencha or any other company that creates
GWT widgets and ask money for it. It s their right.

2010/12/1 aarnott 

> I've found Smart GWT to have rather poor performance and it comes at
> the added cost of massive javascript libraries (even when they are
> gzipped). If you are anything like me, you will probably find that you
> lose time in the long run by going with Smart GWT because you will
> want to get rid of it later to boost performance.
>
> Another issue is that it does not play nicely with existing GWT
> widgets. There were many sizing related hacks that I needed to put in
> my code just to get Smart GWT to work within some GWT-based Widgets I
> made earlier. If you are starting from scratch, it probably won't be a
> problem.
>
> On the other hand, it does offer a lot of functionality and the
> developers have been very responsive for fixing minor bugs I
> discovered. YMMV, of course.
>
> On Dec 1, 3:59 pm, nino ekambi  wrote:
> > I think the EXT-GWT versions are pretty  backward compatible(atleast
> those
> > we use) With version 3 they probably will break a lot  but let s wait and
> > see.
> > Dont get me wrong i m  not trying to put GXT on top of Smart GWT. But for
> > the type of products that we develop (targeting AIR runtime) Smart GWT
> does
> > not fit well because smart gwt can not run inside AIR. At least in the
> > application sandbox. It was more easy for me to make GXT work inside AIR
> > then Smart GWT. Now that i do have more time i ll take a closer look at
> > Smart GWT inside AIR. Since our customers dont want to pay a Designer to
> > custom the gwt widgets we hav to go the GXT-way. Maybe some can start a
> > project on creating some good themes for GWT ? i m willing to contribuate
> :)
> >
> > Regards,
> >
> > Alain
> >
> > 2010/12/1 Travis Camechis 
> >
> >
> >
> >
> >
> >
> >
> > > this is true.
> >
> > > On Wed, Dec 1, 2010 at 12:43 PM, Ivan Chappel  >wrote:
> >
> > >> You do realize that with every release Ext-GWT essentially creates a
> new
> > >> product breaking all previous API's. If they're trying to get closer
> to GWT,
> > >> then why not use GWT itself. Why pay for a product when you can use
> GWT for
> > >> free. By the time they plan on a release, there will be little or no
> value
> > >> it adds over "core"  GWT.
> >
> > >> On Wed, Dec 1, 2010 at 12:29 PM, nino ekambi <
> jazzmatad...@googlemail.com
> > >> > wrote:
> >
> > >>> It looks like sencha is planing to go  the GWT way in the version 3
> of
> > >>> their library
> > >>>http://www.slideshare.net/darrellmeyer/ext-gwt-30
> >
> > >>> 2010/12/1 Travis Camechis 
> >
> > >>> To me the worst part about the third party frameworks is that the
> widgets
> >  can get slow and clunky or they don't follow the GWT ways making it
> hard to
> >  implement MVP.
> >
> >  On Wed, Dec 1, 2010 at 11:35 AM, Baloe 
> wrote:
> >
> > > Hi all,
> >
> > > I wonder, is there anyone using Smart GWT? Or, any other (Sencha)
> > > product? We are struggling with the poor widgets included with GWT
> and
> > > it looks like my boss is not going to accept to spend more time on
> how
> > > to get these GWT widgets into place. And we need more advanced
> widgets
> > > as well.
> >
> > > Thanks!
> > > NielsBaloe
> >
> > > --
> > > You received 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 cr...@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 cr...@googlegroups.com>
> >  .
> >  For more options, visit this group at
> > http://groups.google.com/group/google-web-toolkit?hl=en.
> >
> > >>>  --
> > >>> You received this message because you are subscribed to the Google
> Groups
> > >>> "Google Web Toolkit" group.
> > >>> To post to this group, send email to
> google-web-toolkit@googlegroups.com
> > >>> .
> > >>> To unsubscribe from this group, send email to
> > >>> google-web-toolkit+unsubscr...@googlegroups.com cr...@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 em

CellTable and multiple editable columns

2010-12-02 Thread Mittal
I am using CellTable with simple pager to show ArrayList
contacts. There are multiple columns that are editable mostly using
EditTextCell. I have implemented FieldUpdater for editable columns.
But I do not want to make server side save/update call each time there
is change made to particular editable column.

I would like to collect all the updates, lets say in
ArrayList modifiedContacts and send it server side by using
some kind of Save Contacts button.

I am able to do this if I keep only one column editable, but moment I
add multiple columns as editable, I start getting duplicate objects in
my ArrayList modifiedContacts since each editable column is
implementing FieldUpdater.

When 2 or more columns of same row are updated, FieldUpdater of each
column is fired, storing duplicate objects in  ArrayList
modifiedContacts.

I could use Set instead of ArrayList to store unique contact objects
but is there better way to do this ?

Thanks
Mittal

-- 
You received 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: Customizing CSS Default GWT Widgets with CSSResource

2010-12-02 Thread Marcin Misiewicz
Right know I'm customizing default gwt widgets.
As a starting point I took the standard theme, I copied the
standard.css file from standard theme and then declared this in my
ThemeBundle like this :
@Source("standard.css")
CssResource getLegacyCssResource();

Then I have added @external declaration to every class listed in this
file. Thanks to this I don't have to subclass CssResource and there is
no need to declare getters for classes found in this css file.
Below are external declarations for all the class names found in
standard.css :

@external gwt-Reference-standard, gwt-Button, gwt-CheckBox, gwt-
CheckBox-disabled, gwt-FileUpload, gwt-Frame, gwt-PasswordTextBox, gwt-
PasswordTextBox-readonly, gwt-PopupPanel, gwt-TextArea, gwt-TextArea-
readonly, gwt-TextBox, gwt-TextBox-readonly;
@external gwt-DecoratorPanel, topCenter, bottomCenter, middleLeft,
middleRight, topLeftInner, topRightInner, bottomLeftInner,
bottomRightInner, topLeft, topRight, bottomLeft, bottomRight;
@external gwt-DialogBox, Caption, dialogContent, dialogBottomCenter,
dialogMiddleCenter, dialogMiddleLeft, dialogMiddleRight,
dialogTopLeftInner, dialogTopRightInner, dialogBottomLeftInner,
dialogBottomRightInner, dialogTopLeft, dialogTopRight,
dialogBottomLeft, dialogBottomRight;
@external gwt-DisclosurePanel, gwt-DisclosurePanel-open, gwt-
DisclosurePanel-closed, header, content;
@external gwt-HorizontalSplitPanel, hsplitter, gwt-VerticalSplitPanel,
vsplitter, gwt-HTML, gwt-Hyperlink, gwt-Image, gwt-Label, gwt-ListBox;
@external gwt-MenuBar, gwt-MenuItem, gwt-MenuItem-selected, gwt-
MenuItem-disabled, gwt-MenuBar-horizontal, gwt-MenuItemSeparator,
menuSeparatorInner, gwt-MenuBar-vertical, subMenuIcon, subMenuIcon-
selected;
@external gwt-MenuBarPopup, menuPopupTopCenter, menuPopupBottomCenter,
menuPopupMiddleLeft, menuPopupMiddleRight, menuPopupTopLeftInner,
menuPopupTopRightInner, menuPopupBottomLeftInner,
menuPopupBottomRightInner, menuPopupTopLeft, menuPopupTopRight,
menuPopupBottomLeft, menuPopupBottomRight;
@external gwt-DecoratedPopupPanel, popupContent, popupMiddleCenter,
popupTopCenter, popupTopRight, popupTopLeft, popupBottomCenter,
popupBottomRight, popupBottomLeft, popupMiddleLeft, popupMiddleRight,
popupTopLeftInner, popupTopRightInner, popupBottomLeftInner,
popupBottomRightInner, gwt-PopupPanelGlass;
@external gwt-PushButton-up, gwt-PushButton-up-hovering, gwt-
PushButton-up-disabled, gwt-PushButton-down, gwt-PushButton-down-
hovering, gwt-PushButton-down-disabled, gwt-RadioButton, gwt-
RadioButton-disabled;
@external gwt-RichTextArea, hasRichTextToolbar, gwt-RichTextToolbar,
gwt-PushButton-up, gwt-PushButton-up-hovering, gwt-PushButton-down,
gwt-PushButton-down-hovering, gwt-ToggleButton-up, gwt-ToggleButton-up-
hovering, gwt-ToggleButton-up-disabled, gwt-ToggleButton-down, gwt-
ToggleButton-down-hovering, gwt-ToggleButton-down-disabled;
@external gwt-StackPanel, gwt-StackPanelItem, gwt-StackPanelContent,
gwt-DecoratedStackPanel, stackItemTopLeft, stackItemTopRight,
stackItemTopLeftInner, stackItemTopRightInner, stackItemTopCenter,
stackItemMiddleLeft, stackItemMiddleLeftInner,
stackItemMiddleRightInner, stackItemMiddleRight,
stackItemMiddleCenter, gwt-StackPanelItem-first, gwt-StackPanelItem-
below-selected;
@external gwt-SuggestBox, gwt-SuggestBoxPopup, item, item-selected,
suggestPopupContent, suggestPopupTopCenter, suggestPopupBottomCenter,
suggestPopupMiddleLeft, suggestPopupMiddleRight,
suggestPopupTopLeftInner, suggestPopupTopRightInner,
suggestPopupBottomLeftInner, suggestPopupBottomRightInner,
suggestPopupTopLeft, suggestPopupTopRight, suggestPopupBottomLeft,
suggestPopupBottomRight;
@external gwt-TabBar, gwt-TabBarFirst, gwt-TabBarRest, gwt-TabBarItem,
gwt-TabBarItem-selected, gwt-TabBarItem-disabled, gwt-TabPanel, gwt-
TabPanelBottom;
@external gwt-DecoratedTabBar, tabTopCenter, tabTopLeft, tabTopRight,
tabTopLeftInner, tabTopRightInner, tabMiddleLeft, tabMiddleRight,
tabMiddleLeftInner, tabMiddleRightInner, tabMiddleCenter;
@external gwt-Tree, gwt-TreeItem, gwt-TreeItem-selected, gwt-DateBox,
dateBoxFormatError, dateBoxPopup, gwt-DatePicker, gwt-DatePicker,
datePickerMonthSelector, datePickerDays, datePickerDay,
datePickerWeekdayLabel, datePickerWeekendLabel, datePickerDayIsToday,
datePickerDayIsWeekend, datePickerDayIsFiller, datePickerDayIsValue,
datePickerDayIsDisabled, datePickerDayIsHighlighted,
datePickerDayIsValueAndHighlighted, datePickerMonth,
datePickerPreviousButton, datePickerNextButton;
@external gwt-StackLayoutPanel, gwt-StackLayoutPanelHeader, gwt-
StackLayoutPanelHeader-hovering, gwt-StackLayoutPanelContent, gwt-
TabLayoutPanel, gwt-TabLayoutPanelTabs, gwt-TabLayoutPanelContent, gwt-
TabLayoutPanelTab, gwt-TabLayoutPanelTab-selected, gwt-
SplitLayoutPanel-HDragger, gwt-SplitLayoutPanel-VDragger;

After that you can very easy customize gwt widgets, you can use @def
in this file and use all of the benefits which come from CssResource.
And of course don't forget to call
theme.getLegac

help with stack trace

2010-12-02 Thread rjcarr
I've been using GWT for years (since around release 1.4) but I'm
having a problem with a stack trace I can't figure out.  I develop on
a mac and primarily test with Safari and Firefox.  My application has
worked in IE(8) in the past but in my most recent test it is failing
and I can't figure out why.  Typically in the past when IE has failed
I'll open in dev mode (previously hosted mode) and then get the stack
trace but in this case the stack trace isn't pointing to any of my
code.

The problem happens immediately when I open up my application in IE8.
Here's the complete stack trace:

00:02:02.218 [ERROR] Uncaught exception escaped
com.google.gwt.core.client.JavaScriptException: (TypeError): Object
doesn't support this property or method
  number: -2146827850
  description: Object doesn't support this property or method

at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
237)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
126)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
269)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)at
com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
71)
at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
157)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
281)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
531)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)
at java.lang.Thread.run(Thread.java:662)

Is there anything I'm missing?  Does this indicate it must be coming
from JSNI?  How do I track down where this is coming from?

Maybe I could try unobfuscating the code and use firebug in IE8 (does
that even exist)?

Thanks for the 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: Changing ActionCell Title

2010-12-02 Thread Greg Dougherty
Hi John,

Just wanted to say I implemented this last night, and it worked
exactly the way I wanted it to.

Thanks!

Greg

On Dec 1, 3:00 pm, John LaBanca  wrote:
> Everything you said sounds correct.
>
> Here is a code snippet that should work:
> ButtonCell cell = newButtonCell();
> // Create a column using the ButtonCell.
> Column column = new Column(cell) {
>   public String getValue(RowObject object) {
>     return "Show " + object.getListSize(); // Get a String from the object.
>   }};
>
> // Set a fieldupdater.
> column.setFieldUpdater(new FieldUpdater() {
>   public void update(int index, RowObject object, String value) {
>     Window.alert("You clicked " + object.toString());
>   }});
>
> myCellTable.addColumn(column);
>
> Thanks,
> John LaBanca
> jlaba...@google.com
>
> On Wed, Dec 1, 2010 at 3:33 PM, Greg Dougherty
> wrote:
>
> > Hi John,
>
> > I'm pretty sure I'm not following you.  Here's my understanding:
>
> > I currently have an ActionCell in an IdentityColumn.  You're saying I
> > can replace the ActionCell with a ButtonCell.
> > I need to have a class implement FieldUpdater, and pass that to
> > the IdentityColumn that holds my ButtonCell.  T is the class of my row
> > object.  C is ???
> > So you're saying that clicking on the button will fire a ValueChange
> > call that will cause my FieldUpdater to have update (int, T, C)
> > called, which can then use the T parameter to fire off my command?
>
> > Other problem: ButtonCell implements Cell.  But I need to pass
> > it my row object, so that it can change its title based on non-string
> > information in the row.  (i.e. I want one button that will say "Show
> > 'x'", where x is the number of items in a list in the row object, or
> > to disable the button and put "Nothing" as the title if the list is
> > empty.  I don't see how I can do that with a ButtonCell.  Am I missing
> > something?
>
> > Thanks,
>
> > Greg
>
> > On Dec 1, 1:43 pm, John LaBanca  wrote:
> > > ButtonCell triggers a ValueChangeHandler when it is clicked.  Add a
> > > FieldUpdater to your Column and FieldUpdater#update() will be called.
>
> > > Thanks,
> > > John LaBanca
> > > jlaba...@google.com
>
> > > On Wed, Dec 1, 2010 at 2:29 PM, Greg Dougherty
> > > wrote:
>
> > > > What, then, do I have to implement so that the button will fire an
> > > > action when it's clicked.  Does this require me to extend ButtonCell?
>
> > > > Thanks,
> > > > Greg
>
> > > > On Dec 1, 12:48 pm, John LaBanca  wrote:
> > > > > You can use a ButtonCell instead.  ButtonCell takes a String to
> > display
> > > > in
> > > > > the Button, but otherwise it looks just like ActionCell.
>
> > > > > Thanks,
> > > > > John LaBanca
> > > > > jlaba...@google.com
>
> > > > > On Wed, Dec 1, 2010 at 12:30 PM, Greg Dougherty
> > > > > wrote:
>
> > > > > > Is it possible to change teh title of an ActionCell based on the
> > > > > > contents of the row it's in?
>
> > > > > > It looks like the answer is no, but I figured I'd check here before
> > I
> > > > > > gave up.
>
> > > > > > Greg
>
> > > > > > --
> > > > > > You received this message because you are subscribed to the Google
> > > > Groups
> > > > > > "Google Web Toolkit" group.
> > > > > > To post to this group, send email to
> > > > google-web-tool...@googlegroups.com.
> > > > > > To unsubscribe from this group, send email to
> > > > > > google-web-toolkit+unsubscr...@googlegroups.com
> > 
>
> > > > 
> > 
>
> > > > > > .
> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Google Web Toolkit" group.
> > > > To post to this group, send email to
> > google-web-tool...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > google-web-toolkit+unsubscr...@googlegroups.com
> > 
>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: Building GWT from source

2010-12-02 Thread Chris Conroy
To build gwt-user and gwt-dev, you'll want to run 'ant dist-dev'.

If you're using GPE, you can simply configure your ant built jars as one of
your SDK choices from GPE's preferences, and then be sure to set your
project to use that SDK.

The above should be the bare bones you need to get rolling. You may also
want to check out the eclipse README file for building from source and using
Eclipse: Checkout the Eclipse README file for instructions on getting
eclipse setup:
http://www.google.com/codesearch/p?hl=en#A1edwVHBClQ/eclipse/README.txt&q=README%20package:http://google-web-toolkit%5C.googlecode%5C.com&sa=N&cd=2&ct=rc

On Wed, Dec 1, 2010 at 5:15 PM, aarnott  wrote:

> I'm investigating a bug I reported (here
> http://code.google.com/p/google-web-toolkit/issues/detail?id=5669).
> I'm hoping that I can figure out a fix myself and either post the
> solution in the bug report or actually figure out how to submit it.
>
> * I'm not very experienced with SVN (although I am familiar with
> Perforce)
> * I've never used ant before
> * I'm not experienced building jars
> * I'm fairly experienced with Java (otherwise I wouldn't even try
> tackling this one)
>
> I've followed the instructions for downloading the source and running
> ant in the source directory. I'm stuck at this point, however. I'm not
> sure what I'm supposed to do in order to build the GWT jars. I'd like
> to make the gwt-user.jar and substitute it in my project to see if I
> can fix the bugs (or find out if it is already fixed in the latest
> code).
>
> Any help would be appreciated!
>
> Andrew Arnott
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Customizing CSS Default GWT Widgets with CSSResource

2010-12-02 Thread Hilco Wijbenga
On 2 December 2010 08:10, Anderson Aroeira Araujo  wrote:
> How to customize the gwt default widgets using cssresource?
>
> Like:
> .gwt-DialogBox
> .gwt-DialogBox .dialogTop
>
> I can change the gwt-DialogBox visuals, but dialogTop I don't know how
> to do.

http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html#CssResource

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



onResize issue with IE 7

2010-12-02 Thread Magnus
Hi,

I found a problem with onResize on IE 7:

My panel receives an onResize, but at this point, getOffset[Width|
Height] returns the old window size, not the new size.

I am currently using a workaround like this:
Within onResize I schedule a deferred command, which does the resize
actions later, when the new window size is returned by getOffset[Width|
Height].

This workaround is not nice, since I cannot hide it in some base
class, but have to deal with in every derived class. In every onResize
method I cannot rely on getOffset[Width|Height], so I always have to
do the deferred stuff within the derived classes.

Is this a known issue and can I expect a solution in the near future?
Or is there a better workaround?

Thank you very much!
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-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.



Customizing CSS Default GWT Widgets with CSSResource

2010-12-02 Thread Anderson Aroeira Araujo
Hi,

How to customize the gwt default widgets using cssresource?

Like:
.gwt-DialogBox
.gwt-DialogBox .dialogTop

I can change the gwt-DialogBox visuals, but dialogTop I don't know how
to do.
Anybody?

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: CellTable not updating

2010-12-02 Thread Jeff Schwartz
Are you calling the data provider's addDataDisplay method to associate the
cell table with it?
dataProvider.addDataDisplay(yourCellTable);

Also, after making any changes to the data provider such as modifying,
adding or deleting, are you calling the data provider's refresh method?
dataProvider.refresh();

Jeff

On Wed, Dec 1, 2010 at 5:52 PM, Eric  wrote:

> I have CellTable being fed data from a ListDataProvider. I set a list
> into the data provider and can then query the CellTable and see the
> updated HTML results. Popping up a window with the table also shows an
> updated table.
>
> The problem is, I originally put the table into a DeckPanel that's
> nested in several other panels - dock, split,... and it shows in its
> original "no data, only column header" form. When the data provider is
> updated, the CellTable is not repainted. I can query it and pop it up
> in another window, so I know the table is updated - it's just not
> reflected in the panel in which it was originally placed.
>
> Am I missing something simple here? Even trying to force a layout at
> the root panel doesn't cause anything to show up. Any suggestions on
> the problem or how I might debug this?
>
> Thank you.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-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.
>
>


-- 
*Jeff Schwartz*

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-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 create Gmail contextual gadget using GWT?

2010-12-02 Thread Simeon Ross
I've been having the same issue and I haven't got much further with
it.

What is the structure of your inject.xml file? I had a lot of problems
trying that approach and only was able to get one required tag in
there otherwise I got compile issues for malformed xml

On Dec 2, 2:12 am, Alexander  wrote:
> You can create usual gadget using 
> thishttp://code.google.com/p/gwt-google-apis/wiki/GadgetsGettingStarted
>
> But the Gmail contextual gadgets has several differences from usual
> gadgets.
>
> The main is spec XML file. It should begin like this:
> 
>         
>                 
>                         
>                                 google.com:MessageIDExtractor
>                 
>                 
>
>         
>
>         
>         
> ...
>
> The usual gadget can start like this:
> 
>         
>         
>
> In order to get desired context gadget specification I added some code
> to usual gadget class:
>
> ...
> @ModulePrefs(title = "GmCGadget", author = "akolchin", author_email =
> "akolc...@gmail.com")
> @InjectModulePrefs (files = "inject.xml")
> @ContentType(views = "card")
> @UseLongManifestName(false)
> @AllowHtmlQuirksMode(false)
> public class GmCGadget extends Gadget {
>
> The line @InjectModulePrefs (files = "inject.xml") works fine and adds
> desired elements to ModulePrefs node from inject.xml file.
>
> But the @ContentType(views = "card") didn't' produce any effect. (I
> wished to add 'view="card"' in the )
>
> Could anybody help me? Maybe I have to add some other declarations to
> get desired effect?

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



SuggestBox not displayed on Tomcat Server

2010-12-02 Thread ben
Hello,

I have encountered a problem using a SuggestBox when the application
is deployed on a Tomcat server.

My interface, which contains several SuggestBox widgets, displays the
widgets correctly when I deploy using the Eclipse built-in server and
when I deploy to the app engine server. But when I deploy to a Tomcat
server, the SuggestBox widgets do not display the suggestions.

My target tomcat server is 5.5.27 but I have tried on 5.5.29 with the
same result. I have a very small CSS entry for the SuggestBox to allow
a scrollable suggestion list:

.gwt-SuggestBoxPopup {
  overflow-y: auto !important;
  max-height: 250px;
}

Does anyone know why this might be happening just on a tomcat server
(all the other widgets appear to be working other than the
SuggestBox)? I can provide more details if required.

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



CellTable not updating

2010-12-02 Thread Eric
I have CellTable being fed data from a ListDataProvider. I set a list
into the data provider and can then query the CellTable and see the
updated HTML results. Popping up a window with the table also shows an
updated table.

The problem is, I originally put the table into a DeckPanel that's
nested in several other panels - dock, split,... and it shows in its
original "no data, only column header" form. When the data provider is
updated, the CellTable is not repainted. I can query it and pop it up
in another window, so I know the table is updated - it's just not
reflected in the panel in which it was originally placed.

Am I missing something simple here? Even trying to force a layout at
the root panel doesn't cause anything to show up. Any suggestions on
the problem or how I might debug this?

Thank you.

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



Fire Eventlisners in Cell-table

2010-12-02 Thread nnvd narendra
Hi all,


I have one small problem i.e. one textbox is their when click on the
text box the popup is shows below the text box.The popup contains
celltable

i write keypresslisner for textbox when i press Down And UP arrow the
focus is set to be cellTable And also we still press down and up
arrows its highlites the rows in celltable

in celltable we set the focus the celltable developers write code for
selection rows so,my requirement is how to set focus for cell table

Note:--
  1.i will try by using SETFOCUS method in celltable but no result
  2.so,i will try to set a eventlisneres but how to create it

please tell me anyone solution

-- 
You received 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 client overlay generation from XSD

2010-12-02 Thread greenkiwi
Hello,

I was wondering whether or not there was any facility to generate
JavaScript Overlay objects from XSDs or GSON objects?

We have an application that is talking to a JSON REST backend.  We
have defined all our communications via XSD and use GSON to generate
Java objects that serialize/deserialize to/from JSON.  I would really
like to be able to just generate my JavaScript overlay objects from
this same source.  Are there any facilities that can do that for me?

Thanks,
Adam

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



Observe (Hyper) Links in Texts to call JAVA methods

2010-12-02 Thread wawuvu
Hello everyone,

I've been searching quit a lot for a solution to this problem but all
I found wasn't 100% satisfactorily:

I use RPCs in my GWT project to get some texts like

String text =  " ...bla bla open me
blablalb ";

Those strings will be loaded into the content of a HTMLPane like this:

contentHTMLPane = new HTMLPane();
contentHTMLPane.setContents(text);

And the user can see the new content after the RPC. What I need is the
following:

When the user clicks on open me it should call
the method:

public void openConent(String id){
...
}

...of course with the ID of the Link. The openContent method is
present in the class which processes the text and so on.

So I have to observe the "user clicks on a hyperlink" event somehow.
Somehow like:

(pseudocode)

if(eventHyperlinkOccurs) {

this.openConent(event.getURLofLink);

}


All I've found is this: 
http://googlewebtoolkit.blogspot.com/2008/07/getting-to-really-know-gwt-part-1-jsni.html
which tells me that it's possible to call JAVA methods with JS
methods. This solution is OK but I've been wondering if there is a
"smaller" solution with events/observers?

Thanks in advance!




-- 
You received 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 use new GWT plugin for GWT 2.1.0

2010-12-02 Thread raj
I have placed new jar for this plugin(2.1.0) but it still asks for gwt-
dev-windows.jar, how should this be used or checked if which plugin
maven is using?

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



never ending topic "rich text editor"

2010-12-02 Thread P.G.Taboada
Hi,

as far as I read myself through some messages here (yes, I know how to
use the search), and after looking into some wrappers and into the
RichTextArea provided by GWt I am a little bit lost.

Beside of the standard features I need to be able to extend the
editor. While the user types, I want to be able to programmatically
replace words or group of words.

Is there any extensible GWT based editor framework/ api out there?

brgds,

P.G. Taboada

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



Dynamic inclusion of UI/script

2010-12-02 Thread Abdullah Shaikh
Hi All,

We will be creating a huge ERP system, with lots of screens. I am
looking if there is a way to dynamically include screens, I mean if  a
user sends a request, the system will look for a xml file, may be a ui
binder file, compile the script and sends the generated script back to
the user and from then the already generated script will be sent. I
guess this will minimize the size of the generated javascript files
and the loading time.

I think the Histroy can be maintained in the same way and I guess
there wont be any need for modules then.

Let me know your thought on this or pros/cons or any way to achieve this ?


Thanks,
Abdullah

-- 
You received 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 MVP Activities and Places

2010-12-02 Thread Ashton Thomas
I am not too sure of the final goal but I have two sample projects
that do something similar using places with parent class (sub-class
defines main content activity, and parent class defines a different
area that does not update every time)

Both activity mappers are wrapped in a cacheActivityMapper

https://github.com/ashtonthomas/gwt-seminar
https://github.com/ashtonthomas/beans

Not sure if this will help you or not


On Dec 1, 7:47 pm, metalhammer29a  wrote:
> >>Depending on how your app is structured you can implement a Place
> >>hierarchy.
> >>AppPlace or just Place
> >>Type1Place extends AppPlace (or Place)
> >>Type2Place extends AppPlace (or Place)
> >>Type3Place extends AppPlace (or Place)
> >>HomePlace extends Type1Place
> >>ContactUsPlace extends Type2Place etc
>
> I believe it should be the other way around.
>
> instead of organizing by "Place" types, we have to organize by
> "Activity" types.
>
> "one place" can be mapped to "many" different Activities.
> (upon navigating to "a" new place, you can start activities in
> different regions: eg. west and center )
>
> therefore we would have:
>
>  abstract class ApplicationActivities implements ActivityMapper
>
>  class ApplicationWestRegionActivities extends ApplicationActivities
>  class ApplicationCenterRegionActivities extends ApplicationActivities
> // and the same for North and East Regions
>
> and in these RegionActivities we override getActivity() method to
> return the Activity that matches the currently passed in place, or
> null to hide the region.
>
> however, in most cases we require two regions to be visible, and as
> user interacts with one region, the other get updated (as a result of
> navigation).
>
> using the approach I described, both regions fetch the data, while in
> fact only one should do it.
>
> as a general question,
> is it better to organize/split the application by Places, or by
> Activities ?

-- 
You received 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: Asynchronous script inclusion - Like Google Analytics

2010-12-02 Thread Jeff Chimene
On Thu, Dec 2, 2010 at 2:23 AM, eggsy84  wrote:

> Hi Jeff,
>
> Thank you for getting back to me.
>
> Yes that is exactly the problem it appears to try and fetch the code
> from the users site which obviously won't wrong.
>
> I shall see if I can leverage your solution somehow. I'm trying to
> keep the JS they have to add to their website small and uncomplicated.
>
> Another area I have looked into is making my own Linker.
>
> If you look at the current GWT XS Linker
>
>
> http://www.google.com/codesearch/p?hl=en#A1edwVHBClQ/dev/core/src/com/google/gwt/core/linker/XSLinker.java&d=8
>
> It leverages a Javascript file XSLinker.js
>
>
> http://www.google.com/codesearch/p?hl=en#A1edwVHBClQ/dev/core/src/com/google/gwt/core/linker/XSTemplate.js&d=8
>
> And this defines a base that is used when scripts are included. Note
> the compiledScriptTag variable.
>
> If I can force the base it may work?
>

Probably, but I think you're underestimating your users, and making more
work for yourself. Ideally, all they would do is drop a file into a special
directory on their server, and then update their script to load that file.
If thousands of sites can handle GA, surely your stuff is not so difficult?

Cheers,
jec

>
> Eggsy
>
>
> On Dec 2, 12:12 am, Jeff Chimene  wrote:
> > On 12/01/2010 04:03 PM, eggsy84 wrote:
> >
> >
> >
> > > Hi all,
> >
> > > Can anyone explain to me why you cannot include Google web toolkit
> > > scripts Asynchronously like Google Analytics:
> >
> > >http://googlecode.blogspot.com/2009/12/google-analytics-launches-asyn.
> ..
> >
> > > I ask because my GWT code is ultimately going to be used on a variety
> > > of websites (using the XS linker) and if for any reason my server is
> > > down and cannot process a request for the Javascript then it has the
> > > effect of preventing the website from loading due to synchronous
> > > nature if Web browser script evaluation.
> >
> > > I have tried including my GWT *.nocache.js like Google do for their
> > > Analytics but it fails to load the subsequent browser specific
> > > compiled units as it tries to obtain them from an incorrect location.
> > > It seems to be due to the base URL not being defined.
> >
> > Notice that the GA code bootstraps from the user's server.
> >
> > You'll probably want something similar, in that you provide a bootstrap
> > function that loads from your customer's site. That function then loads
> > your GWT code. If the load fails, it fails on your customer's site, not
> > your site. You can take action since your customer's page has loaded,
> > but with an exception (it hasn't loaded your GWT code).
> >
> > There may be other, unexplored complications to this solution.
> >
> > > Any ideas guys?
> >
> > > Eggsy
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Safe Html check?

2010-12-02 Thread Ed
I like the new SafeHtml functionality.
However, how can I best check if a string that I inject in a div
(example: HTML.setHTML(html)) contains script?

I now have made simple checks, like checking for the 

Re: TabLayoutPanel does not listen to width

2010-12-02 Thread Jeff Larsen

>I don't understand your sentence, can you be more specific? I want to
set the size of the flowpanel, that's allright.

LayoutPanels want to be nested inside LayoutPanels. What if instead of
using a FlowPanel you used a LayoutPanel for the main uibinder widget.

The way I've ended up debugging some of these weird issues with
LayoutPanels is by cracking open Firebug and hacking away at styles
until things start to look right.

On Dec 2, 2:38 am, Baloe  wrote:
> Hi,
>
> Thanks for your suggestions. Setting the width on the flowpanel
> doesn't work. I cannot set the width of it's parent, because there is
> no parent (see uibinder file).
>
> >Anything LayoutPanel wants to be in another layout panel.
>
> I don't understand your sentence, can you be more specific? I want to
> set the size of the flowpanel, that's allright.
>
> We are currently looking into smartgwt, because it seems that over
> there most things actually work.
>
> Thanks all!
> NielsBaloe
>
> On 1 dec, 17:48, Jeff Larsen  wrote:
>
>
>
>
>
>
>
> > Anything LayoutPanel wants to be in another layout panel.
>
> > if you don't want to set the size of FlowPanel, put everything inside
> > a LayoutPanel then make sure that LayoutPanel is attached to
> > RootLayoutPanel.
>
> >http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html
>
> > On Dec 1, 9:30 am, Paul Stockley  wrote:
>
> > > Try setting the width on the flowpanel. If this doesn't work, set the
> > > width on its parent.
>
> > > On Dec 1, 5:51 am, Baloe  wrote:
>
> > > > Hi,
>
> > > > Thanks for your suggestion. However, most widgets don't listen to
> > > > their method-calls.
>
> > > > Regarding the uibinder example, I have to put everything in a
> > > > flowpanel, because uibinder expects to find only one (main) widget.
> > > > So, we are basicly putting everything in a flowpanel without any
> > > > layout-based reason.
>
> > > > Best,
> > > > Niels
>
> > > > On 30 nov, 21:08, "Alejandro D. Garin"  wrote:
>
> > > > > Hi,
>
> > > > > I have made very good layouts using the gwt layout system. I would 
> > > > > recommend
> > > > > to have a look at :
>
> > > > >http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html
>
> > > > > Regarding to your UiBinder example, don't put the TabLayoutPanel 
> > > > > inside a
> > > > > FlowPanel.
>
> > > > > On Tue, Nov 30, 2010 at 7:10 AM, Baloe  wrote:
> > > > > > Hi all,
>
> > > > > > I'm using a tabLayoutPanel with three tabs. However, the total width
> > > > > > is now dynamicly created by the width of the content of the current
> > > > > > tab. But, my first and second tabs are not that wide, so the third 
> > > > > > tab
> > > > > > always hangs a bit outside of the tab. How can I set the width of 
> > > > > > the
> > > > > > TabLayoutPanel?
>
> > > > > > I tried several things, but I can't seem to set the width.
> > > > > > tabLayoutPanel.setWidth("700px");
> > > > > > tabLayoutPanel.setSize("700px", "500px");
> > > > > > tabLayoutPanel.setPixelSize(700, 500);
> > > > > > with and without tabLayoutPanel.onResize();
>
> > > > > > uibinder file:
> > > > > >        
> > > > > >                 > > > > >                        barHeight="50" height="600px">
> > > > > >                
> > > > > >                
> > > > > >        
>
> > > > > > I'm adding the tabs in java code after binding.
> > > > > >        tabGeneral = new FlexTable();
> > > > > >        .
> > > > > >        tabLayoutPanel.add(tabGeneral, i18nGeneral.name());
>
> > > > > > I really like GWT a lot, but I must say that the ui pieces are 
> > > > > > really
> > > > > > quite bad. You can't use certain widgets because it's standard mode
> > > > > > (or not) without warnings, setting sizes and other basic stuff 
> > > > > > doesn't
> > > > > > always work, examples often work in java code but not in the 
> > > > > > uibinder,
> > > > > > etc. It would be nice if the widgets themselves were better. It 
> > > > > > feels
> > > > > > like temporary broken, or just beta sourcecode. If you can make 
> > > > > > such a
> > > > > > good java2javascript compiler, why not create proper widgets as 
> > > > > > well?
>
> > > > > > Thanks!
> > > > > > Niels
>
> > > > > > --
> > > > > > You received 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 > > > > >  cr...@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 op

Re: Drag-and-drop solution with GwtQuery

2010-12-02 Thread Norberto
Good job...

On Nov 29, 6:04 pm, Julien Dramaix  wrote:
> Hello,
>
> I'm proud to announce you the first release of the drag-and-drop
> plugin for GwtQuery.
> This plugin allows you to make any DOM element draggable and/or
> droppable.
> In addition, it offers an API to add drag-and-drop support to your GWT
> widget including also the new data presentetation widgets.
>
> Documentation is available on the gwt-query-plugins site 
> :http://code.google.com/p/gwtquery-plugins/wiki/DragAndDropPluginForGW...
> Examples are available at 
> :http://gwtquery-plugins.googlecode.com/svn/trunk/droppable/demo/GwtSi...
>
> I'm looking forward your feedback,
>
> Julien

-- 
You received 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-RPC Portlets Liferay

2010-12-02 Thread Ani
Hello,

I'm new on portlets and LifeRay world. I have a GWT-RPC ap and i'd
like to use it in a portlet, and see it in LifeRay, but when i try to
add the portlet, i get the following error:

Error:
The call failed on the server; see server log for details

In localhost."date".log i see:
org.apache.catalina.core.StandardHostValve custom
FINA: Processing ErrorPage[errorCode=404, location=/errors/404.jsp]

Could you help me with this issue?

Than you very much in advance por any kind of information you can give
me about this, because i was not able to find much, and the one i've
found, didn't help me, as i continue getting the same error.


Regards,
Ana

-- 
You received 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: Help me to get rid of these d... scrollbars!!! :-/

2010-12-02 Thread Magnus


On 30 Nov., 12:59, Jeff Schwartz  wrote:
> When I need to center an element I apply the following css to its containing
> element:
>
>             margin-left:auto;
>             margin-right:auto;

Well, I need to center both horizontally and vertically. I have tested
"auto", but it does not work.

Nevertheless, I found that the scrollbars disappear when I omit the
right and bottom margins. The centering still works. I will now test
this on different platforms...

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-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 DateTimeFormat & locale changes?

2010-12-02 Thread Rick Porter
I think I have solved my date/time issues by forcing a locale, but I
would welcome suggestions for a better solution.

In my module XML, I added the following line to include some
internationalization code:

   

I added the following line to my module XML for my locale:

   

Including the locale extend-property increases the GWT compile time,
since the compile does each browser/locale combination. This was the
most undesireable piece of my solution since it basically doubled my
GWT compile times. I tried to set the default locale using another bit
of XML found at 
http://code.google.com/intl/es-AR/webtoolkit/doc/latest/DevGuideI18nLocale.html#LocaleDefault,
but I could not even get the GWT compile to work when including that
XML.

The last required piece was adding the following line in my HTML file:

   

This gives it a default locale, but I believe that it can be
overridden with request parameters.

I did test this on a couple projects, and it worked for both. However,
I did not test with different locales. It seems that a new GWT 2.1
project has the same issues, so this is not just a GWT 2.0 conversion
problem -- I tested by adding a DateBox to a new GWT default project.


Enjoy,
Rick

-- 
You received 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: MVP *without* UiBinder

2010-12-02 Thread Konstantin Scheglov

  Hi, I'm author of GWT Designer. ;-)

> ** no wyswug viewer & GWT Designer
> I have tried the GWT Designer, and I was referring by calling it
> Window Builder in my previous post. I know I can get the wyswug
> viewer, but seems like it only work if the gui is created thru GWT
> Designer. And by do so GWT Designer actually generate Java code
> instead of generating the UiBinder files. And I have not been able to
> see how to get it work on a set of UiBinder files. Please correct me
> if I am doing it wrong.

  You may be need to use "Open with..." action to choose WindowBuilder
Editor.



>
> ** no event click navigation from the ui.xml file
> This is a direct comparison between the UiBinder way and the GWT
> Designer. In GWT Designer, I can view the gui and use the mouse the
> navigate to associated event codes for any widgets. However, if I am
> working on the ui.xml file, I can't seem to easily bring up a list of
> event handler code thats associated with a particular field. I have to
> actually take the uifield name, open the java view implementation
> manually and look for the field there, and then do a text search to
> look for the method that is marked with @UiHandler("fieldname").
> Which  is cumbersome compare to GWT Designer.

  This also work in same way as in Java version of GWT Designer.
  See http://dl.dropbox.com/u/76691/images/2010/Screenshot_20101202_161725.png
  and page with displaying events
  http://dl.dropbox.com/u/76691/images/2010/Screenshot_20101202_162040.png

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



instanceof check on element always return true?

2010-12-02 Thread Ed
I receive an element in a Clickhandler like this:
final Element el = event.getNativeEvent().getEventTarget().cast()

It concerns a DIV element which the tag name shows.

However, the following result in true:
el instanceof DivElement (as expected).
el instanceof InputElement (not expected!!).
el instanceof LabelElement (not expected!!).

What am I missing here? or is this a bug?

-- 
You received 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: Get all events

2010-12-02 Thread MAM
thank you for the reply, but that's not what I want, actually I want
to do the same thing like in gwt designer :by clicking on the widget
we have all the possible events to be added and  those already
present. i try to do the Same Thing by retrieving all events (to add &
added).
Thanks

On 24 nov, 11:18, ep  wrote:
> hi, is this one you're looking 
> for?http://groups.google.com/group/google-web-toolkit-contributors/browse...
> if so, maybe we can make an issue on that :)
>
> elsewise, maybe a workaround would help:
>
> write a JSNI method which takes generic eventhandler and a widget it
> shall bind it with, and attach your handler from within the javascript
> code (referring to widget's method via GWT's @class references, rather
> than raw JS code)
>
> On 24 Nov., 10:43, MAM  wrote:
>
>
>
>
>
>
>
> > please , need help!!
>
> > thanks
>
> > On 23 nov, 09:53, MAM  wrote:
>
> > > thanks for the reply , i'm not trying to listen to native domevents.
> > > i give you an example to understand:
>
> > > - i have a button "add" with an "addClickHandler"
> > > - At runtime i'm trying togetallbutton's properties andevents(in
> > > this case the "addClickHandler")
>
> > > Thanks
>
> > > On 19 nov, 12:25, Jack  wrote:
>
> > > > You mean something like:
>
> > > > Event.addNativePreviewHandler(NativePreviewHandler handler)
>
> > > > ?
>
> > > > JavaDoc: Adds a NativePreviewHandler that will receiveallevents
> > > > before they are fired to their handlers. Note that the handler will
> > > > receiveallnativeevents, including those received due to bubbling,
> > > > whereas normal event handlers only receive explicitly sunkevents.
>
> > > > On 19 Nov., 10:33, MAM  wrote:
>
> > > > > i want to retrieveallevents, "previously"added to a Widget(button,
> > > > > Panel, TextFiled ...) , at runtime

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



Showing and hiding a ButtonCell in a CellTable

2010-12-02 Thread Stephan T
In a CellTable I'm using a ButtonCell column. The button for each row
should show only when a condition is true. How do I achieve that?

This is my code now:
Column myColumn = new Column(new
ButtonCell()) {
   @Override
   public String getValue(Person object) {
   return "Button label";
   }
   };
   myColumn.setFieldUpdater(new FieldUpdater() {
   @Override
   public void update(int index, final Person object, String
value) {
   object.performOperationOnObject();
   // and do some other stuff...
   }
   });
   myCellTable.addColumn("", myColumn);


The button should only show up if the Person.showButton() == true.
Reply

-- 
You received 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: Asynchronous script inclusion - Like Google Analytics

2010-12-02 Thread eggsy84
Hi Jeff,

Thank you for getting back to me.

Yes that is exactly the problem it appears to try and fetch the code
from the users site which obviously won't wrong.

I shall see if I can leverage your solution somehow. I'm trying to
keep the JS they have to add to their website small and uncomplicated.

Another area I have looked into is making my own Linker.

If you look at the current GWT XS Linker

http://www.google.com/codesearch/p?hl=en#A1edwVHBClQ/dev/core/src/com/google/gwt/core/linker/XSLinker.java&d=8

It leverages a Javascript file XSLinker.js

http://www.google.com/codesearch/p?hl=en#A1edwVHBClQ/dev/core/src/com/google/gwt/core/linker/XSTemplate.js&d=8

And this defines a base that is used when scripts are included. Note
the compiledScriptTag variable.

If I can force the base it may work?

Eggsy


On Dec 2, 12:12 am, Jeff Chimene  wrote:
> On 12/01/2010 04:03 PM, eggsy84 wrote:
>
>
>
> > Hi all,
>
> > Can anyone explain to me why you cannot include Google web toolkit
> > scripts Asynchronously like Google Analytics:
>
> >http://googlecode.blogspot.com/2009/12/google-analytics-launches-asyn...
>
> > I ask because my GWT code is ultimately going to be used on a variety
> > of websites (using the XS linker) and if for any reason my server is
> > down and cannot process a request for the Javascript then it has the
> > effect of preventing the website from loading due to synchronous
> > nature if Web browser script evaluation.
>
> > I have tried including my GWT *.nocache.js like Google do for their
> > Analytics but it fails to load the subsequent browser specific
> > compiled units as it tries to obtain them from an incorrect location.
> > It seems to be due to the base URL not being defined.
>
> Notice that the GA code bootstraps from the user's server.
>
> You'll probably want something similar, in that you provide a bootstrap
> function that loads from your customer's site. That function then loads
> your GWT code. If the load fails, it fails on your customer's site, not
> your site. You can take action since your customer's page has loaded,
> but with an exception (it hasn't loaded your GWT code).
>
> There may be other, unexplored complications to this solution.
>
> > Any ideas guys?
>
> > Eggsy

-- 
You received 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 Activities – nesting? YAGNI ? - an exa mple of where you NEED it !

2010-12-02 Thread massimo malvestio
 and what if data from one workspace is used in another ?


In my opionion for this point you could fire a specific event, because, if
data inside a workspace is needed by another one, this means user did
something or a generic condition about displayed data happened. Am I 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: TabLayoutPanel does not listen to width

2010-12-02 Thread Baloe
Hi,

Thanks for your suggestions. Setting the width on the flowpanel
doesn't work. I cannot set the width of it's parent, because there is
no parent (see uibinder file).

>Anything LayoutPanel wants to be in another layout panel.

I don't understand your sentence, can you be more specific? I want to
set the size of the flowpanel, that's allright.

We are currently looking into smartgwt, because it seems that over
there most things actually work.

Thanks all!
NielsBaloe


On 1 dec, 17:48, Jeff Larsen  wrote:
> Anything LayoutPanel wants to be in another layout panel.
>
> if you don't want to set the size of FlowPanel, put everything inside
> a LayoutPanel then make sure that LayoutPanel is attached to
> RootLayoutPanel.
>
> http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html
>
> On Dec 1, 9:30 am, Paul Stockley  wrote:
>
> > Try setting the width on the flowpanel. If this doesn't work, set the
> > width on its parent.
>
> > On Dec 1, 5:51 am, Baloe  wrote:
>
> > > Hi,
>
> > > Thanks for your suggestion. However, most widgets don't listen to
> > > their method-calls.
>
> > > Regarding the uibinder example, I have to put everything in a
> > > flowpanel, because uibinder expects to find only one (main) widget.
> > > So, we are basicly putting everything in a flowpanel without any
> > > layout-based reason.
>
> > > Best,
> > > Niels
>
> > > On 30 nov, 21:08, "Alejandro D. Garin"  wrote:
>
> > > > Hi,
>
> > > > I have made very good layouts using the gwt layout system. I would 
> > > > recommend
> > > > to have a look at :
>
> > > >http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html
>
> > > > Regarding to your UiBinder example, don't put the TabLayoutPanel inside 
> > > > a
> > > > FlowPanel.
>
> > > > On Tue, Nov 30, 2010 at 7:10 AM, Baloe  wrote:
> > > > > Hi all,
>
> > > > > I'm using a tabLayoutPanel with three tabs. However, the total width
> > > > > is now dynamicly created by the width of the content of the current
> > > > > tab. But, my first and second tabs are not that wide, so the third tab
> > > > > always hangs a bit outside of the tab. How can I set the width of the
> > > > > TabLayoutPanel?
>
> > > > > I tried several things, but I can't seem to set the width.
> > > > > tabLayoutPanel.setWidth("700px");
> > > > > tabLayoutPanel.setSize("700px", "500px");
> > > > > tabLayoutPanel.setPixelSize(700, 500);
> > > > > with and without tabLayoutPanel.onResize();
>
> > > > > uibinder file:
> > > > >        
> > > > >                 > > > >                        barHeight="50" height="600px">
> > > > >                
> > > > >                
> > > > >        
>
> > > > > I'm adding the tabs in java code after binding.
> > > > >        tabGeneral = new FlexTable();
> > > > >        .
> > > > >        tabLayoutPanel.add(tabGeneral, i18nGeneral.name());
>
> > > > > I really like GWT a lot, but I must say that the ui pieces are really
> > > > > quite bad. You can't use certain widgets because it's standard mode
> > > > > (or not) without warnings, setting sizes and other basic stuff doesn't
> > > > > always work, examples often work in java code but not in the uibinder,
> > > > > etc. It would be nice if the widgets themselves were better. It feels
> > > > > like temporary broken, or just beta sourcecode. If you can make such a
> > > > > good java2javascript compiler, why not create proper widgets as well?
>
> > > > > Thanks!
> > > > > Niels
>
> > > > > --
> > > > > You received 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 > > > >  cr...@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: Error using style with UiBinder

2010-12-02 Thread Luis Cabellos
I found the error, isn't related to UiBinder.

The error was caused by a missing library, but the exception appearas
when i modified the 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.