GWT with spring and hibernate

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



Generics Issue in GWT

2011-10-08 Thread skywalker
I am building an application which uses, GWT (2.4), App Engine
(1.5.4), and Objectify (3.0). As my application is evolving, I am
adding more domain classes and this is forcing me to write more
services, which more or less look like same. for example they all
should have code for CRUD operations. So I tried to create Generic
services which look like

//Client side
@RemoteServiceRelativePath("Generic")
public interface GenericService extends
RemoteService {

}

public interface GenericServiceAsync {
...
}

//ServerSide

@SuppressWarnings("serial")
public class GenericServiceImpl  extends
RemoteServiceServlet implements GenericService {

//implementation

}
When I am trying to create instance of it on client side using

//Domain extends BaseDomain

public static final GenericServiceAsync domainService =
 GWT.create(GenericService.class);
I am getting the following exception

java.lang.RuntimeException: Deferred binding failed for
'com.planner.client.GenericService' (did you forget to inherit a
required module?)

I am not sure what I a doing wrong, Would appreciate any pointers, and/
or alternative approaches.

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



Unknown tag with, or is not appropriate as a top level element Element

2011-10-08 Thread oerten25
Hello,

I couldn't manage to get ui:with working.

[ERROR] [com.myproject] - Unknown tag with, or is not appropriate as a
top level element Element 

My ui.xml contents :

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




.logo {
padding: 0 0 0 1em;
float:left;
height: 4.3em;
width: 13em;
}

.ss {
float:left;
padding:1.3em 0 0 1em;
text-decoration: underline;
font-weight: bold;

width:40%;
}
.aa{
clear:left;
width:100%;
background-color: #9CABBC;
min-height: 3em;

}


.eastPanel {
background-color: #F60;
}
.westPanel {
background-color: #F6F6F6;
}
.northPanel {
background-color: #F4F7FB;
}
.southPanel {
background-color: #F4F7FB;
}
.centerPanel {
background-color: transparent;
}









Lorem Ipsum



 
Homepage
 
Contacts
 Help































My ClientBundle contents:

public interface MyResource extends ClientBundle {

public interface Style extends CssResource {
String nav();
}

@Source("/css/base.css")
Style style();

@Source("/img/logo.png")
ImageResource logo();


}

And my base.css contents :

.nav {
list-style-type: none;
}

I don't know what i'm missing but those should be enough according to
the documentation and many samples i've examined.
Please someone help me resolve this problem.

Thanks


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



Re: DataGrid Pagination Problem

2011-10-08 Thread chris
I ran into the same problem today and can tell you that it is most
likely the @UiField(provided=true) annotation. I think I see your
problem and you are creating another SimplePager in your constructor
and it is not being assigned to pager1. This is what is giving you the
null pointer exception. I would recommed using the @UiFactory
annotation on a function to create your objects, then you do not need
the provided=true in you @Uifield. It really doesn't matter which
syntax you use but I like to keep my constructors pretty simple. Hope
that helps.

@UiFactory
SimplePager createSimplePager() {
SimplePager simplePager = new SimplePager();
simplePager = new SimplePager(TextLocation.RIGHT);
simplePager.setPageSize(10);
simplePager.setRangeLimited(true);
return simplePager;
}




On Oct 5, 12:52 am, Karzai  wrote:
> Hi I m getting the following error can anyone please help me in
> resolving and getting a proper pagination flow, on clicking of the
> paginate icon. below is the code I have been trying to use and the
> exception I'm getting :
>
> Exception :
> ===
>
> 11:17:33.939 [ERROR] [myapps] Unable to load module entry point class
> com.apps.app1.client.Myapps (see associated exception for details)
>
> java.lang.NullPointerException: null
>     at
> com.google.gwt.user.client.ui.HTMLPanel.addAndReplaceElement(HTMLPanel.java:197)
>     at
> com.apps.app1.client.GridData_GridDataUiBinderImpl.createAndBindUi(GridData_GridDataUiBinderImpl.java:
> 37)
>     at
> com.apps.app1.client.GridData_GridDataUiBinderImpl.createAndBindUi(GridData_GridDataUiBinderImpl.java:
> 1)
>     at com.apps.app1.client.GridData.(GridData.java:61)
>     at com.apps.app1.client.Myapps.onModuleLoad(Myapps.java:14)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 39)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
> 25)
>     at java.lang.reflect.Method.invoke(Method.java:597)
>     at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
> 396)
>     at
> com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
> 200)
>     at
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
> 525)
>     at
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
> 363)
>     at java.lang.Thread.run(Thread.java:619)
>
> The GridData.java file
> ==
>
> package com.apps.app1.client;
>
> import java.util.ArrayList;
> import java.util.Comparator;
> import java.util.Date;
> import java.util.List;
>
> import com.apps.app1.client.Contact.Category;
> import com.google.gwt.cell.client.CheckboxCell;
> import com.google.gwt.cell.client.DateCell;
> import com.google.gwt.cell.client.EditTextCell;
> import com.google.gwt.cell.client.FieldUpdater;
> import com.google.gwt.cell.client.NumberCell;
> import com.google.gwt.cell.client.SelectionCell;
> import com.google.gwt.core.client.GWT;
> import com.google.gwt.dom.client.Style.Unit;
> import com.google.gwt.event.dom.client.ClickEvent;
> import com.google.gwt.event.dom.client.ClickHandler;
> import com.google.gwt.safehtml.shared.SafeHtmlUtils;
> import com.google.gwt.uibinder.client.UiBinder;
> import com.google.gwt.uibinder.client.UiField;
> import com.google.gwt.user.cellview.client.Column;
> import com.google.gwt.user.cellview.client.DataGrid;
> import com.google.gwt.user.cellview.client.Header;
> import com.google.gwt.user.cellview.client.SafeHtmlHeader;
> import com.google.gwt.user.cellview.client.SimplePager;
> import com.google.gwt.user.cellview.client.TextColumn;
> import
> com.google.gwt.user.cellview.client.ColumnSortEvent.ListHandler;
> import
> com.google.gwt.user.cellview.client.HasKeyboardSelectionPolicy.KeyboardSelectionPolicy;
> import com.google.gwt.user.cellview.client.SimplePager.TextLocation;
> import com.google.gwt.user.client.ui.Button;
> import com.google.gwt.user.client.ui.Composite;
> import com.google.gwt.user.client.ui.DialogBox;
> import com.google.gwt.user.client.ui.VerticalPanel;
> import com.google.gwt.user.client.ui.Widget;
> import com.google.gwt.view.client.ListDataProvider;
> import com.google.gwt.view.client.SelectionChangeEvent;
> import com.google.gwt.view.client.SingleSelectionModel;
>
> public class GridData extends Composite {
>
>         private static GridDataUiBinder uiBinder = GWT
>                         .create(GridDataUiBinder.class);
>
>         interface GridDataUiBinder extends UiBinder {
>         }
>
>           @UiField(provided = true)
>           DataGrid table;
>           @UiField(provided = true)
>           SimplePager pager1;
>
>         public GridData() {
>
>                 table = new DataGrid();
>                 SimplePager.Resources pagerResources =
> GWT.create(SimplePager.Resources.class);
>                 SimplePager pager

Re: GWT Slider

2011-10-08 Thread java4africa
I have not tried this but it looks interesting
http://www.zackgrossbart.com/hackito/gwt-slider/

I had a look at the incubator project but it had some problems with
firefox. The are a lot of open issues on this project - not sure if
that a reflection on the complexities of a slider or the project
itself.
http://code.google.com/p/google-web-toolkit-incubator/wiki/SliderBar



On Oct 8, 7:30 pm, Ezequiel Palumbo  wrote:
> That Nivo Slider seems to be very interesting.
> I'll be giving it a chance.
> Salud!
>
> On 8 oct, 09:46, Xi  wrote:
>
>
>
>
>
>
>
> > Try this:http://nivo.dev7studios.com/
>
> > very simple to use, and works for all browers...
>
> > On 7 oct, 22:21, mkn  wrote:
>
> > > Hi
>
> > > I need for a project a slider (an important requirement). Therefore I
> > > tested the following sliders:
>
> > > -SmartGWT => there is a huge overhead. My page has only sliders (10 of
> > > them) but since SmartGWT is a full-fledged library it takes up to 5
> > > seconds to display the page (respectively to load the SmartGWT
> > > javascripts). This is not acceptable because the user sees 5 seconds
> > > long a white page.
> > > -JQuery slider => for unknown reason, this slider does not work in
> > > IE8.
> > > -GWT Incubator => does not work with GWT 2.4
>
> > > Does anyone else have an idea what else I could try?

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



Re: GWT Slider

2011-10-08 Thread Ezequiel Palumbo
That Nivo Slider seems to be very interesting.
I'll be giving it a chance.
Salud!

On 8 oct, 09:46, Xi  wrote:
> Try this:http://nivo.dev7studios.com/
>
> very simple to use, and works for all browers...
>
> On 7 oct, 22:21, mkn  wrote:
>
>
>
>
>
>
>
> > Hi
>
> > I need for a project a slider (an important requirement). Therefore I
> > tested the following sliders:
>
> > -SmartGWT => there is a huge overhead. My page has only sliders (10 of
> > them) but since SmartGWT is a full-fledged library it takes up to 5
> > seconds to display the page (respectively to load the SmartGWT
> > javascripts). This is not acceptable because the user sees 5 seconds
> > long a white page.
> > -JQuery slider => for unknown reason, this slider does not work in
> > IE8.
> > -GWT Incubator => does not work with GWT 2.4
>
> > Does anyone else have an idea what else I could try?

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



Re: Passing an argument to a View using Activities and Places

2011-10-08 Thread Mike Dee
Jens, Allison,

Yes, I see my problem.  I even used the GWT MVP View wizard to create
the Place, Activity, and View.  It very nicely generates template
classes - with the FooPlace.setName().  I must have deleted the method
in FooPlace at some point.

Thanks,
Mike

On Oct 6, 1:38 pm, Jens  wrote:
> Your FooPlace should have a getter method to return the stored id. In your
> ActivityMapper you create an activity for a given place. When you create
> your activity you can pass the place into its constructor or via a separate
> setPlace(Place place) method. Your activity would then call the getter of
> the FooPlace to get the id stored in the place and store it in a variable.
>
> Take a look
> athttp://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideMvpAc...
> The AppActivityMapper constructs a HelloActivity and passes in the given
> HelloPlace. Then the HelloActivity calls HelloPlace.getName() in its
> constructor and stores the value. In HelloActivity.start() you can then use
> the value to make database calls, configure your view or whatever you need
> to do.

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



Re: What's a good widget for a small table?

2011-10-08 Thread Piro
I would use CellTable even if it says it is ideal for large amount of
data. The "ideal" sentence only says that CellTable has no performance
issues with large amount of data because it supports paging (if you
need it) and renders only visible cells. If you are not familiar with
cell widgets it can take some time, but it is worth.
On 8. Okt, 18:21 h., "Aidan O'Kelly"  wrote:
> Well Grid uses a html  to work, yes. The point is when working with
> UiBinder you can use normal HTML markup to make a widget, so you can do:
>
> 
>   
>     
>        Name
>     
>     
>         Phone
>     
>   
> 
>
> Jeff: I guess it reduces DOM complexity, and improves performance (almost
> certainly negligible in most cases, unless your widget is large and needs to
> be created many times over) In any case, I'm not saying this approach is
> better or worse than using Panels, its just the approach I take.
> The obvious disadvantage is that its a static table, you can't really modify
> it at runtime easily. If you need a dynamic table, Panels/FlexTable/Grid are
> more suited.
>
>
>
>
>
>
>
> On Sat, Oct 8, 2011 at 4:39 PM, Mike Dee  wrote:
> > Wouldn't that be a Grid control?  Would a Grid control be a little
> > heavy handed in that it seems to be designed to handle widgets in its
> > cells.
>
> > A property table - or something like that - seems ideal (if it
> > existed).
>
> > On Oct 8, 8:30 am, Jeffrey Chimene  wrote:
> > > On 10/8/2011 7:29 AM, Aidan O'Kelly wrote:
>
> > > > Well, its creating a table with a table for each row.. to end up with
> > > > a table structure...
> > > > If its a statically sized table, you can just write the 
> > > > structure yourself in UiBinder, and place Widgets/Text in each .
>
> > > Is that to to reduce DOM complexity, time to implementation,
> > > performance? Or some other factor I'm not understanding?
>
> > > > On Sat, Oct 8, 2011 at 2:53 PM, Jeffrey Chimene  > > > > wrote:
>
> > > >     On 10/8/2011 4:23 AM, benneq wrote:
> > > >     > A vertical panel containing several horizontal panels SOUNDS
> > pretty
> > > >     > straight forward, indeed.
> > > >     > BUT: Do it, look at you dom tree, and see that it's totally ugly!
> > > >     > It is: A  (vertical panel) containing several
> > > >     >  (1 horizontal
> > panel).
>
> > > >     Sorry, I'm missing the point here...
>
> > > >     > On 7 Okt., 22:45, Jeff Chimene  > > >     > wrote:
> > > >     >> On 10/07/2011 01:38 PM, Mike Dee wrote:
>
> > > >     >>> I have small data tables that I'd like to display.  In the
> > widget
> > > >     >>> showcase for DataGrid and CellTable it says they are ideal for
> > > >     large
> > > >     >>> amounts of data.
> > > >     >>> The goal is to display detail info.  For example, to display a
> > > >     single
> > > >     >>> record from a database - not a bunch of records from a
> > > >     database.  So
> > > >     >>> the columns of the database will be different.  Think of
> > something
> > > >     >>> like:
> > > >     >>> Name: John Doe
> > > >     >>> Address: Main St.
> > > >     >>> Phone: 555-1234
> > > >     >>> I was thinking a PropertyTable would be ideal.  It doesn't
> > exist,
> > > >     >>> although they have something similar in SmartGWT, which I'd
> > > >     like to
> > > >     >>> avoid for now.
> > > >     >>> Any ideas would be appreciated.
> > > >     >> I'd probably create a custom widget based on using ui.xml  It
> > > >     might not
> > > >     >> even be a widget, just an MVP instance. From your description
> > > >     it sounds
> > > >     >> like a Popup enclosing a VerticalPanel enclosing several
> > > >     >> HorizontalPanels. Very simple, very straightforward to
> > implement.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-toolkit@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: Doubt

2011-10-08 Thread Brandon Donnelson
Here are my HTML5 canvas notes.

GWT Canvas notes - http://code.google.com/p/gwt-examples/wiki/gwt_hmtl5
GWT canvas scaling demo - http://demogwtcanvas.appspot.com/

DemoIMage Water Marker - http://waterbughack.appspot.com/
GWT Image Water Marker 
- http://code.google.com/p/gwt-examples/wiki/HTML5_Hackathon_ImageWaterMarker

Brandon Donnelson
http://gwt-examples.googlecode.com

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



Re: Doubt

2011-10-08 Thread Brandon Donnelson
You won't be able to use JavaCV lib on the client side due to the 
dependencies it uses. There not available to the browser on all computers. 
You may be able to use the HTML5 canvas to do some of the image processing. 
The question is, could you do it in javascript?

Brandon Donnelson
http://gwt-examples.googlecode.com

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



Instead of Adsense (can't iframe) I've setup a affiliate banner rotator. Example Demo and source inside...

2011-10-08 Thread Brandon Donnelson
Since I can't stick Adsense in an iframe, I've been trying out Plan 
B, affiliate banner rotator inside an [iframe] with serialized loading so 
you don't get the same banner each time. 

Souce & demo and More on the wiki (in action here)- 
 http://code.google.com/p/gwt-examples/wiki/DemoAdvertisingAffiliate
Demo - http://affadpublish.appspot.com/adpublish - refresh to see the 
serialized loading

Brandon Donnelson
If I can do it, I'm sure you can do it 10x better :)
http://gwt-examples.googlecode.com


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



Re: What's a good widget for a small table?

2011-10-08 Thread Aidan O'Kelly
Well Grid uses a html  to work, yes. The point is when working with
UiBinder you can use normal HTML markup to make a widget, so you can do:


  

   Name


Phone

  


Jeff: I guess it reduces DOM complexity, and improves performance (almost
certainly negligible in most cases, unless your widget is large and needs to
be created many times over) In any case, I'm not saying this approach is
better or worse than using Panels, its just the approach I take.
The obvious disadvantage is that its a static table, you can't really modify
it at runtime easily. If you need a dynamic table, Panels/FlexTable/Grid are
more suited.


On Sat, Oct 8, 2011 at 4:39 PM, Mike Dee  wrote:

> Wouldn't that be a Grid control?  Would a Grid control be a little
> heavy handed in that it seems to be designed to handle widgets in its
> cells.
>
> A property table - or something like that - seems ideal (if it
> existed).
>
> On Oct 8, 8:30 am, Jeffrey Chimene  wrote:
> > On 10/8/2011 7:29 AM, Aidan O'Kelly wrote:
> >
> > > Well, its creating a table with a table for each row.. to end up with
> > > a table structure...
> > > If its a statically sized table, you can just write the 
> > > structure yourself in UiBinder, and place Widgets/Text in each .
> >
> > Is that to to reduce DOM complexity, time to implementation,
> > performance? Or some other factor I'm not understanding?
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > > On Sat, Oct 8, 2011 at 2:53 PM, Jeffrey Chimene  > > > wrote:
> >
> > > On 10/8/2011 4:23 AM, benneq wrote:
> > > > A vertical panel containing several horizontal panels SOUNDS
> pretty
> > > > straight forward, indeed.
> > > > BUT: Do it, look at you dom tree, and see that it's totally ugly!
> > > > It is: A  (vertical panel) containing several
> > > >  (1 horizontal
> panel).
> >
> > > Sorry, I'm missing the point here...
> >
> > > > On 7 Okt., 22:45, Jeff Chimene  > > > wrote:
> > > >> On 10/07/2011 01:38 PM, Mike Dee wrote:
> >
> > > >>> I have small data tables that I'd like to display.  In the
> widget
> > > >>> showcase for DataGrid and CellTable it says they are ideal for
> > > large
> > > >>> amounts of data.
> > > >>> The goal is to display detail info.  For example, to display a
> > > single
> > > >>> record from a database - not a bunch of records from a
> > > database.  So
> > > >>> the columns of the database will be different.  Think of
> something
> > > >>> like:
> > > >>> Name: John Doe
> > > >>> Address: Main St.
> > > >>> Phone: 555-1234
> > > >>> I was thinking a PropertyTable would be ideal.  It doesn't
> exist,
> > > >>> although they have something similar in SmartGWT, which I'd
> > > like to
> > > >>> avoid for now.
> > > >>> Any ideas would be appreciated.
> > > >> I'd probably create a custom widget based on using ui.xml  It
> > > might not
> > > >> even be a widget, just an MVP instance. From your description
> > > it sounds
> > > >> like a Popup enclosing a VerticalPanel enclosing several
> > > >> HorizontalPanels. Very simple, very straightforward to
> implement.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: I made a RequestFactory Demo (w/source)

2011-10-08 Thread Brandon Donnelson
Thank you :)

Have a good day,
Brandon Donnelson
c.gawkat.com


On Fri, Oct 7, 2011 at 8:17 PM, Kritic  wrote:

> Wow, RequestFactory already!
>
> Great job.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/IqzPqgspFM4J.
>
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: What's a good widget for a small table?

2011-10-08 Thread Strashimir
FlexTable would do the job fine.
Regards,
Strashimir


On Oct 7, 11:38 pm, Mike Dee  wrote:
> I have small data tables that I'd like to display.  In the widget
> showcase for DataGrid and CellTable it says they are ideal for large
> amounts of data.
>
> The goal is to display detail info.  For example, to display a single
> record from a database - not a bunch of records from a database.  So
> the columns of the database will be different.  Think of something
> like:
>
> Name: John Doe
> Address: Main St.
> Phone: 555-1234
>
> I was thinking a PropertyTable would be ideal.  It doesn't exist,
> although they have something similar in SmartGWT, which I'd like to
> avoid for now.
>
> Any ideas would be appreciated.

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



Re: What's a good widget for a small table?

2011-10-08 Thread Mike Dee
Wouldn't that be a Grid control?  Would a Grid control be a little
heavy handed in that it seems to be designed to handle widgets in its
cells.

A property table - or something like that - seems ideal (if it
existed).

On Oct 8, 8:30 am, Jeffrey Chimene  wrote:
> On 10/8/2011 7:29 AM, Aidan O'Kelly wrote:
>
> > Well, its creating a table with a table for each row.. to end up with
> > a table structure...
> > If its a statically sized table, you can just write the 
> > structure yourself in UiBinder, and place Widgets/Text in each .
>
> Is that to to reduce DOM complexity, time to implementation,
> performance? Or some other factor I'm not understanding?
>
>
>
>
>
>
>
>
>
> > On Sat, Oct 8, 2011 at 2:53 PM, Jeffrey Chimene  > > wrote:
>
> >     On 10/8/2011 4:23 AM, benneq wrote:
> >     > A vertical panel containing several horizontal panels SOUNDS pretty
> >     > straight forward, indeed.
> >     > BUT: Do it, look at you dom tree, and see that it's totally ugly!
> >     > It is: A  (vertical panel) containing several
> >     >  (1 horizontal panel).
>
> >     Sorry, I'm missing the point here...
>
> >     > On 7 Okt., 22:45, Jeff Chimene  >     > wrote:
> >     >> On 10/07/2011 01:38 PM, Mike Dee wrote:
>
> >     >>> I have small data tables that I'd like to display.  In the widget
> >     >>> showcase for DataGrid and CellTable it says they are ideal for
> >     large
> >     >>> amounts of data.
> >     >>> The goal is to display detail info.  For example, to display a
> >     single
> >     >>> record from a database - not a bunch of records from a
> >     database.  So
> >     >>> the columns of the database will be different.  Think of something
> >     >>> like:
> >     >>> Name: John Doe
> >     >>> Address: Main St.
> >     >>> Phone: 555-1234
> >     >>> I was thinking a PropertyTable would be ideal.  It doesn't exist,
> >     >>> although they have something similar in SmartGWT, which I'd
> >     like to
> >     >>> avoid for now.
> >     >>> Any ideas would be appreciated.
> >     >> I'd probably create a custom widget based on using ui.xml  It
> >     might not
> >     >> even be a widget, just an MVP instance. From your description
> >     it sounds
> >     >> like a Popup enclosing a VerticalPanel enclosing several
> >     >> HorizontalPanels. Very simple, very straightforward to implement.

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



Re: What's a good widget for a small table?

2011-10-08 Thread Jeffrey Chimene
On 10/8/2011 7:29 AM, Aidan O'Kelly wrote:
> Well, its creating a table with a table for each row.. to end up with
> a table structure... 
> If its a statically sized table, you can just write the 
> structure yourself in UiBinder, and place Widgets/Text in each .

Is that to to reduce DOM complexity, time to implementation,
performance? Or some other factor I'm not understanding?

>
> On Sat, Oct 8, 2011 at 2:53 PM, Jeffrey Chimene  > wrote:
>
> On 10/8/2011 4:23 AM, benneq wrote:
> > A vertical panel containing several horizontal panels SOUNDS pretty
> > straight forward, indeed.
> > BUT: Do it, look at you dom tree, and see that it's totally ugly!
> > It is: A  (vertical panel) containing several
> >  (1 horizontal panel).
>
> Sorry, I'm missing the point here...
>
>
> >
> >
> > On 7 Okt., 22:45, Jeff Chimene  > wrote:
> >> On 10/07/2011 01:38 PM, Mike Dee wrote:
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>> I have small data tables that I'd like to display.  In the widget
> >>> showcase for DataGrid and CellTable it says they are ideal for
> large
> >>> amounts of data.
> >>> The goal is to display detail info.  For example, to display a
> single
> >>> record from a database - not a bunch of records from a
> database.  So
> >>> the columns of the database will be different.  Think of something
> >>> like:
> >>> Name: John Doe
> >>> Address: Main St.
> >>> Phone: 555-1234
> >>> I was thinking a PropertyTable would be ideal.  It doesn't exist,
> >>> although they have something similar in SmartGWT, which I'd
> like to
> >>> avoid for now.
> >>> Any ideas would be appreciated.
> >> I'd probably create a custom widget based on using ui.xml  It
> might not
> >> even be a widget, just an MVP instance. From your description
> it sounds
> >> like a Popup enclosing a VerticalPanel enclosing several
> >> HorizontalPanels. Very simple, very straightforward to implement.
>

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



Re: GWT Slider

2011-10-08 Thread Ed
Make it yourself and use code of projects like Smartgwt and Gxt as
example.
It's not very difficult: just use an Animation class in gwt and change
the css settings..
In this way, I have made dozens of animations myself, including slide
north/../south..., fade in/out, etc...

The time searching a sliders will be the same time to make it yourself
and you don't have upgrade problems like mentioned above.
- Ed

On Oct 8, 3:56 pm, Julien Dramaix  wrote:
> You can try the slider coming from the Enhance plugin of gwtquery :
> Examples 
> :http://gwtquery-plugins.googlecode.com/svn/trunk/enhance/demos/Enhanc...
> Documentation : e.google.com/p/gwtquery-plugins/wiki/
> EnhancePluginGettingStarted
>
> Julien
>
> On Oct 7, 10:21 pm, mkn  wrote:
>
>
>
>
>
>
>
> > Hi
>
> > I need for a project a slider (an important requirement). Therefore I
> > tested the following sliders:
>
> > -SmartGWT => there is a huge overhead. My page has only sliders (10 of
> > them) but since SmartGWT is a full-fledged library it takes up to 5
> > seconds to display the page (respectively to load the SmartGWT
> > javascripts). This is not acceptable because the user sees 5 seconds
> > long a white page.
> > -JQuery slider => for unknown reason, this slider does not work in
> > IE8.
> > -GWT Incubator => does not work with GWT 2.4
>
> > Does anyone else have an idea what else I could try?

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



Re: What's a good widget for a small table?

2011-10-08 Thread Aidan O'Kelly
Well, its creating a table with a table for each row.. to end up with a
table structure...
If its a statically sized table, you can just write the  structure
yourself in UiBinder, and place Widgets/Text in each .

On Sat, Oct 8, 2011 at 2:53 PM, Jeffrey Chimene  wrote:

> On 10/8/2011 4:23 AM, benneq wrote:
> > A vertical panel containing several horizontal panels SOUNDS pretty
> > straight forward, indeed.
> > BUT: Do it, look at you dom tree, and see that it's totally ugly!
> > It is: A  (vertical panel) containing several
> >  (1 horizontal panel).
>
> Sorry, I'm missing the point here...
>
>
> >
> >
> > On 7 Okt., 22:45, Jeff Chimene  wrote:
> >> On 10/07/2011 01:38 PM, Mike Dee wrote:
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>> I have small data tables that I'd like to display.  In the widget
> >>> showcase for DataGrid and CellTable it says they are ideal for large
> >>> amounts of data.
> >>> The goal is to display detail info.  For example, to display a single
> >>> record from a database - not a bunch of records from a database.  So
> >>> the columns of the database will be different.  Think of something
> >>> like:
> >>> Name: John Doe
> >>> Address: Main St.
> >>> Phone: 555-1234
> >>> I was thinking a PropertyTable would be ideal.  It doesn't exist,
> >>> although they have something similar in SmartGWT, which I'd like to
> >>> avoid for now.
> >>> Any ideas would be appreciated.
> >> I'd probably create a custom widget based on using ui.xml  It might not
> >> even be a widget, just an MVP instance. From your description it sounds
> >> like a Popup enclosing a VerticalPanel enclosing several
> >> HorizontalPanels. Very simple, very straightforward to implement.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: GWT Slider

2011-10-08 Thread Julien Dramaix
You can try the slider coming from the Enhance plugin of gwtquery :
Examples : 
http://gwtquery-plugins.googlecode.com/svn/trunk/enhance/demos/Enhance/EnhanceSample.html
Documentation : e.google.com/p/gwtquery-plugins/wiki/
EnhancePluginGettingStarted

Julien

On Oct 7, 10:21 pm, mkn  wrote:
> Hi
>
> I need for a project a slider (an important requirement). Therefore I
> tested the following sliders:
>
> -SmartGWT => there is a huge overhead. My page has only sliders (10 of
> them) but since SmartGWT is a full-fledged library it takes up to 5
> seconds to display the page (respectively to load the SmartGWT
> javascripts). This is not acceptable because the user sees 5 seconds
> long a white page.
> -JQuery slider => for unknown reason, this slider does not work in
> IE8.
> -GWT Incubator => does not work with GWT 2.4
>
> Does anyone else have an idea what else I could try?

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



Re: What's a good widget for a small table?

2011-10-08 Thread Jeffrey Chimene
On 10/8/2011 4:23 AM, benneq wrote:
> A vertical panel containing several horizontal panels SOUNDS pretty
> straight forward, indeed.
> BUT: Do it, look at you dom tree, and see that it's totally ugly!
> It is: A  (vertical panel) containing several
>  (1 horizontal panel).

Sorry, I'm missing the point here...


>
>
> On 7 Okt., 22:45, Jeff Chimene  wrote:
>> On 10/07/2011 01:38 PM, Mike Dee wrote:
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>> I have small data tables that I'd like to display.  In the widget
>>> showcase for DataGrid and CellTable it says they are ideal for large
>>> amounts of data.
>>> The goal is to display detail info.  For example, to display a single
>>> record from a database - not a bunch of records from a database.  So
>>> the columns of the database will be different.  Think of something
>>> like:
>>> Name: John Doe
>>> Address: Main St.
>>> Phone: 555-1234
>>> I was thinking a PropertyTable would be ideal.  It doesn't exist,
>>> although they have something similar in SmartGWT, which I'd like to
>>> avoid for now.
>>> Any ideas would be appreciated.
>> I'd probably create a custom widget based on using ui.xml  It might not
>> even be a widget, just an MVP instance. From your description it sounds
>> like a Popup enclosing a VerticalPanel enclosing several
>> HorizontalPanels. Very simple, very straightforward to implement.

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



Re: GPE issue - erasing libs on Run As

2011-10-08 Thread André Salvati
Sudhakar,

Let make myself clear.

Maven (package goal) is building my app. So, ALL libs that I need are
put in WEB-INF/lib (guice and shiro inclusive). When try to "Run as.."
my application with GPE, just guice and shiro libs disappears.

On Oct 7, 3:48 am, Sudhakar Abraham 
wrote:
> Google Plugin Eclipse (GPE) does not delete the library jar in WEB-INF/
> lib directory by itself.  So manually copy /paste the Juice and shiro
> jars in WEB-INF/lib directory.
>
>  S. Abrahamwww.DataStoreGwt.com
> Persist objects directly in GAE
>
> On Oct 6, 10:59 pm, André Salvati  wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > strange behavior that started to happen on GPE after add guice and
> > shiro jars.
>
> > Step 1 - Package app (maven). All jars are on WEB-INF/lib as expected.
>
> > Step 2 - Execute Run as -> Web Application... gets
> > java.lang.ClassNotFoundException:
> > com.google.inject.servlet.GuiceServletContextListener. I noticed that
> > guice and shiro jars disapeared from my WEB-INF/lib
>
> > Note: When I execute gwt:run after 1, everything works fine.
>
> > Does GPE make any validation before start to run? Why GPE is deleting
> > some of my jars??
>
> > Should I crosspost questions about GPE on GAE forum?
>
> > Thanks.

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



Re: GWT Slider

2011-10-08 Thread Xi
Try this:
http://nivo.dev7studios.com/

very simple to use, and works for all browers...


On 7 oct, 22:21, mkn  wrote:
> Hi
>
> I need for a project a slider (an important requirement). Therefore I
> tested the following sliders:
>
> -SmartGWT => there is a huge overhead. My page has only sliders (10 of
> them) but since SmartGWT is a full-fledged library it takes up to 5
> seconds to display the page (respectively to load the SmartGWT
> javascripts). This is not acceptable because the user sees 5 seconds
> long a white page.
> -JQuery slider => for unknown reason, this slider does not work in
> IE8.
> -GWT Incubator => does not work with GWT 2.4
>
> Does anyone else have an idea what else I could try?

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



it is not a circular structure

2011-10-08 Thread .Mark
I have a problem that I can not figure out.  I have some classes
extending the JavaScriptObject class.  None of these classes reference
each other or reference itself.  I only access them in my java code
and use the JSON to store these data structures.

I get an error of "(TypeError): Converting circular structure to
JSON".

Each class's unit test works on the stringify calls.
The program works if I put debug lines to stringify each class before
the natural flow of the program.

What happens during run time is I fire events when data is written to
the jnsi objects.  A listener to the event is taking these objects and
serializing them to save.  It is during that call when triggered by
the events that I get the circular error.  But it works if I put a
debug call to stringify each object before it's chane event is fired.

I am lost in finding out what is going on or why this happens.

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



JSON issue with GWT

2011-10-08 Thread anand jain
I am making a DTO (JSON fomat). In that if my method returns a List,
then I am unable to get that List elements from JS0N string. In JSON
string, I can see the elements but unable to fetch them.

Can anybody help me?

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



Re: One-To-Many RElations Serialization

2011-10-08 Thread Jens
JDO does some byte code enhancement to your entities and JDO will replace 
java.util.List/ArrayList in entity classes with an implementation provided 
by JDO, e.g. org.datanucleus.sco.backed.ArrayList. You have the same problem 
when using Hibernate or any other JPA implementation because they all 
enhance class byte code to be able to support some JDO/JPA features. Thats 
why Juan mentioned Hibernate.

You either have to find a way to convert these specific JDO implementations 
back to their java counter parts before sending them back to the browser or 
you have to use a Data Transfer Object (DTO pattern) to return your data.

Looking at your code it seems like you somewhere missed to convert a JDO 
List into a java.util.List in MyInnerList.class. Otherwise you shouldn't see 
the exception anymore as you already copy things to a normal 
java.util.ArrayList.

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



Re: What's a good widget for a small table?

2011-10-08 Thread benneq
A vertical panel containing several horizontal panels SOUNDS pretty
straight forward, indeed.
BUT: Do it, look at you dom tree, and see that it's totally ugly!
It is: A  (vertical panel) containing several
 (1 horizontal panel).


On 7 Okt., 22:45, Jeff Chimene  wrote:
> On 10/07/2011 01:38 PM, Mike Dee wrote:
>
>
>
>
>
>
>
>
>
> > I have small data tables that I'd like to display.  In the widget
> > showcase for DataGrid and CellTable it says they are ideal for large
> > amounts of data.
>
> > The goal is to display detail info.  For example, to display a single
> > record from a database - not a bunch of records from a database.  So
> > the columns of the database will be different.  Think of something
> > like:
>
> > Name: John Doe
> > Address: Main St.
> > Phone: 555-1234
>
> > I was thinking a PropertyTable would be ideal.  It doesn't exist,
> > although they have something similar in SmartGWT, which I'd like to
> > avoid for now.
>
> > Any ideas would be appreciated.
>
> I'd probably create a custom widget based on using ui.xml  It might not
> even be a widget, just an MVP instance. From your description it sounds
> like a Popup enclosing a VerticalPanel enclosing several
> HorizontalPanels. Very simple, very straightforward to implement.

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



Re: Is it possible to have a div overlay something, but not catch the clicks (ie, "transparent" to clicks?)

2011-10-08 Thread David Given
On 08/10/11 11:48, darkflame wrote:
[...]
> Basicly I have a page with a lot of widgets, imagine if I wanted to
> tint the screen slightly - for example a 50% blue overlay. Yet I still
> want the widgets all clickable/interactable as normal.

You can do it by setting pointer-events:none on the overlay DIV... but I
don't know what the browser support is like for this. Here's a demo:

http://robertnyman.com/css3/pointer-events/pointer-events.html

-- 
┌─── dg@cowlark.com ─ http://www.cowlark.com ─
│
│ "Under communism, man exploits man. Under capitalism, it's just the
│ opposite." --- John Kenneth Galbrith



signature.asc
Description: OpenPGP digital signature


Re: GWT Developer Plugin for Firefox 7

2011-10-08 Thread Kees de Kooter

http://google-web-toolkit.googlecode.com/svn/trunk/plugins/xpcom/prebuilt/gwt-dev-plugin.xpi

On 08-10-2011 05:44 , Tapas Adhikary wrote:

Alan,

Can you share the check-in location?
-Tapas




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



Re: GWT Slider

2011-10-08 Thread darkflame
I made use of this one;
http://code.google.com/p/sphgwt/

But I cant remember where I actualy downloaded it now :-/

On Oct 7, 10:21 pm, mkn  wrote:
> Hi
>
> I need for a project a slider (an important requirement). Therefore I
> tested the following sliders:
>
> -SmartGWT => there is a huge overhead. My page has only sliders (10 of
> them) but since SmartGWT is a full-fledged library it takes up to 5
> seconds to display the page (respectively to load the SmartGWT
> javascripts). This is not acceptable because the user sees 5 seconds
> long a white page.
> -JQuery slider => for unknown reason, this slider does not work in
> IE8.
> -GWT Incubator => does not work with GWT 2.4
>
> Does anyone else have an idea what else I could try?

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



convert javascript element into gwt uibinder widget

2011-10-08 Thread Luke
how to convert javascript element into gwt uibinder widget


public static CustomWidget wrap(Element element) {
assert Document.get().getBody().isOrHasChild(element);

CustomWidget customWidget = new CustomWidget(element);


 System.out.println(eachItineraryWidget.getWidget()); //
widget is null  , how to set widget as i'm using uibinder


eachItineraryWidget.onAttach();
RootPanel.detachOnWindowClose(eachItineraryWidget);

return customWidget;
  }


public CustomWidget(Element element){

   setElement(element);

}

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



Is it possible to have a div overlay something, but not catch the clicks (ie, "transparent" to clicks?)

2011-10-08 Thread darkflame

I suspect the answer here might just be "no", but before I do anything
too eleborate I thought Id ask.

Basicly I have a page with a lot of widgets, imagine if I wanted to
tint the screen slightly - for example a 50% blue overlay. Yet I still
want the widgets all clickable/interactable as normal.
I know I can somewhat just pass an event to a specific widget, but is
there a way to pass it to anything that happens to be under as if the
overlay isnt there?

Thanks,
Thomas

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



Re: What GWT designer is for?

2011-10-08 Thread darkflame
For your second question, you basicly make a new composite widget with
Designer, and then call it as the contents of a Popup widget.
Something like;

PopupPanel testPopup = new PopupPanel();

Label testContents = new Label("This popup had a label as its
contents, but you can put any widget here! Including those made by
Designer");

testPopup.setWidget(testContents);
testPopup.show();

But instand of "testContents" being a label, it will be a widget class
made in designer.

To be honest, Id recomend at least a bit learning how to use GWT and
layout widgets in code before jumping to designer. While it makes many
things quicker/easier - it could make them a lot worse if you don't
understand whats its doing on your behalf.
Designer is relatively recent compared to the rest of GWT, so the
examples wernt made with it in mind.



On Oct 7, 11:49 am, Dims  wrote:
> Sorry for my stupid question, I am a newbie. I am looking at example
> application "Web Application Starter Project" which is sending a text
> to server and responding with "Hello" dialog.
>
> My question is how to use GWT designer (in Eclipse) in general?
>
> I tried to move a button and got a warning "Warning:
> com.google.gwt.user.client.ui.RootPanel descendants will be
> incorrectly positioned, i.e. not relative to their parent element,
> when 'position:static', which is the CSS default, is in effect. One
> possible fix is to call
> 'panel.getElement().getStyle().setPosition(Position.RELATIVE)'."
>
> So the default design of main page does not suppose GWT designer use.
>
> Also, the sample contains dialog window. I can't find a way to call
> GWT designer against this window.
>
> So, both two visual components of the sample does not suppose GWT
> designer usage? Then how I can create something which will demonstrate
> where to use GWT designer? Is it possible to create some dialog
> windows which can be edited with GWT designer?
>
> Thanks.

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