Re: Animation when switching activities impossible?

2011-10-14 Thread Daniel Kurka
For mgwt (http://www.m-gwt.com) I just put in a custom ActivityManager to
handle animations, while switching activities. Maybe that could work for you
was well

- Daniel Kurka

2011/10/13 Aidan O'Kelly 

>
>> It's a bit like they ignore the standards they created with
>> Activities. 'Cause in theory it's possible to show as many activities
>> as you like in parallel... ;)
>
>
> They are more like informal contracts rather than 'standards'. :) and in
> any case, the activity will be stopped by the Activity Manager, its the
> view/widget that you keep around temporarily. In another situation you might
> have 3 views, and only one active at once, with the other two greyed out.
> And FWIW, it is possible to have multiple Activity's running, but you would
> probably user multiple ActivityManagers or something similar.
>
>  --
> You received 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: native callback going into the eternal void

2011-10-14 Thread Dennis Haupt
that was it. makes sense.

2011/10/13 Tomasz Gawel 

> use double ()()
>
> @com.webfair.gwt.components.client.CalendarBox::test() is only the
> signature of method
> to call it use @com.webfair.gwt.components.client.CalendarBox::test()
> ();
>
> --
> You received 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: select language or country from a drop down list

2011-10-14 Thread gerry
What I did eventually for the languages is take a document like this:
http://www.loc.gov/standards/iso639-2/ISO-639-2_utf-8.txt, store it in
the war folder, and parse it line by line to get all languages and
their codes and put them in my drop down list.

For countries, I used the class that Prakash suggested above:
ListBox country = new ListBox();
DefaultLocalizedNames loc = new DefaultLocalizedNames();
for (int i=0; i wrote:
> i dont know of any class, but i had seen locale list box in GWT showcase 
> :http://gwt.google.com/samples/Showcase/Showcase.html
> Source code of Showcase app is included in SDK. Check that out ..
>
> Hope this helps.
>
> -prakash m

-- 
You received 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: Celltable loading state

2011-10-14 Thread David Sanders
You'd probably need to add a zero-sized array list of data and set what you 
want to show with table.setEmptyTableWidget()

-- 
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/-/sd3WS18VYYUJ.
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: native callback going into the eternal void

2011-10-14 Thread Daniel Kurka
to make UncaughtExceptionHandler working you should also wrap the call in
$entry() function:

var func = entry(function delegate() {
@com.webfair.gwt.components.client.CalendarBox::test()
se...@com.webfair.gwt.components.client.CalendarBox
::fireDateChangedEventFromJS()
});




2011/10/14 Dennis Haupt 

> that was it. makes sense.
>
>
> 2011/10/13 Tomasz Gawel 
>
>> use double ()()
>>
>> @com.webfair.gwt.components.client.CalendarBox::test() is only the
>> signature of method
>> to call it use @com.webfair.gwt.components.client.CalendarBox::test()
>> ();
>>
>> --
>> You received 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.
>

-- 
You received 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-14 Thread darkflame
Still struggleing with a solution for this.
My knowledge of event handeling clearly isnt good enough;

a) Is it possible to pass an event (or all events) to a parent/
container element and have it automaticaly passed on to all its
children?

b) would this event be triggered under the normal conditions of the
children, or would it just trigger under the parents conditions.
That is, if I pass a event that happens to be a mouse over event from
parent to child, would it trigger if the mouse isnt actualy over the
child? (but merely over the parent). Or would it still correctly only
fire if its over the child.

My end goal remains the same; a method to have a overlay which doesnt
block the event handeling of elements under it.
I'm hoping its possible by somehow passing events down from the
overlay to, say, a container with everything else.

The long winded way to do it seems to be manualy checking all the
elements, their co-ordinates, and calculating mouse over/out/click
events myself. Surely theres an easier method?

Thanks,
Thomas


On Oct 10, 1:16 pm, darkflame  wrote:
> hmz...something to keep an eye on, but sadly IE and Opera dont support
> it yet;http://caniuse.com/pointer-events
>
> On Oct 8, 1:19 pm, David Given  wrote:
>
>
>
> > 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
> > < 1KViewDownload

-- 
You received 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 auto-set column width

2011-10-14 Thread misko237
I have tried the first solution, and I couldn't manage to read real
cell width at runtime. The second one is not suitable for me.

On Oct 13, 2:57 pm, jaga  wrote:
> I have the same problem.
>
> For me there are two solutions:
> 1) calculate the maximum field width at runtime by inspecting the row
> data. Then set the field header size.
> 2) leave as stock and listen for a mouse click or similar on each
> field header and then resize it.
>
> On Oct 10, 2:49 pm, misko237  wrote:
>
>
>
>
>
>
>
> > I have a problem with DataGrid in gwt 2.4. I made table with
> > CellTable, and everything worked fine. But I needed fixed header, and
> > then just replaced CellTable with DataGrid. I had problem with .css
> > file, but than has been resolved.
>
> > Now, the problem is that every column have fixed width. I need each
> > column width to be set as the widest cell in entire column.
>
> > Can someone help to make old looking, but with fixed header.
>
> > 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.



Compiler exception occured. Not able to compile GWT application

2011-10-14 Thread Raghul
I getting the following error while compiling the GWT application.

Any one please help resolve this issue.

Validating newly compiled units
   Ignored 3 units with compilation errors in first pass.
Compile with -strict or with -logLevel set to TRACE or DEBUG to see
all errors.
[ERROR] An internal compiler exception occurred
com.google.gwt.dev.jjs.InternalCompilerException: Failed to get JNode
at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:140)
at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:71)
at com.google.gwt.dev.jjs.impl.BuildTypeMap.getType(BuildTypeMap.java:
730)
at
com.google.gwt.dev.jjs.impl.BuildTypeMap.createField(BuildTypeMap.java:
570)
at com.google.gwt.dev.jjs.impl.BuildTypeMap.access
$300(BuildTypeMap.java:99)
at com.google.gwt.dev.jjs.impl.BuildTypeMap
$BuildDeclMapVisitor.visit(BuildTypeMap.java:180)
at
org.eclipse.jdt.internal.compiler.ast.FieldDeclaration.traverse(FieldDeclaration.java:
285)
at
org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java:
1232)
at
org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse(CompilationUnitDeclaration.java:
687)
at
com.google.gwt.dev.jjs.impl.BuildTypeMap.createPeersForNonTypeDecls(BuildTypeMap.java:
637)
at com.google.gwt.dev.jjs.impl.BuildTypeMap.exec(BuildTypeMap.java:
514)
at com.google.gwt.dev.jjs.impl.BuildTypeMap.exec(BuildTypeMap.java:
523)
at
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:
599)
at
com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:
33)
at com.google.gwt.dev.Precompile.validate(Precompile.java:187)
at com.google.gwt.dev.Compiler.run(Compiler.java:222)
at com.google.gwt.dev.Compiler.run(Compiler.java:198)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
88)
at
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:
82)
at com.google.gwt.dev.Compiler.main(Compiler.java:177)
   [ERROR] : public class com.gwt.demo.User extends
java.lang.Object
/*   fields   */
private [unresolved] java.lang.String firstName
private [unresolved] java.lang.String lastName
/*   methods   */
public void (java.lang.String, java.lang.String) throws
java.lang.Exception
[unresolved] public void setLastName(java.lang.String)
[unresolved] private void getLastName() throws java.lang.Exception



  org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding
   [ERROR] at LoginDemo.java(18): public User user = null;
  org.eclipse.jdt.internal.compiler.ast.FieldDeclaration

-- 
You received 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 auto-set column width

2011-10-14 Thread misko237
I have tried with first solution, but I couldn't manage to read real
cell element width. Did you succeed? Second solution is not an option
for me.

On Oct 13, 2:57 pm, jaga  wrote:
> I have the same problem.
>
> For me there are two solutions:
> 1) calculate the maximum field width at runtime by inspecting the row
> data. Then set the field header size.
> 2) leave as stock and listen for a mouse click or similar on each
> field header and then resize it.
>
> On Oct 10, 2:49 pm, misko237  wrote:
>
>
>
>
>
>
>
> > I have a problem with DataGrid in gwt 2.4. I made table with
> > CellTable, and everything worked fine. But I needed fixed header, and
> > then just replaced CellTable with DataGrid. I had problem with .css
> > file, but than has been resolved.
>
> > Now, the problem is that every column have fixed width. I need each
> > column width to be set as the widest cell in entire column.
>
> > Can someone help to make old looking, but with fixed header.
>
> > 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: Apply style to header, row, cell in cellTable

2011-10-14 Thread Sudhakar Abraham
Add style to cellTable using this  CellTable.Resources interface.
Pass the CellTable.Resources object into CellTable constructor.
Change the property in CellTableStyle.css file as you wish.

S. Abraham
www.DataStoreGwt.com
Persist objects directly in Google App Engine

//In Java class

interface TableResources extends CellTable.Resources
  {
@Source(value = { CellTable.Style.DEFAULT_CSS,
"CellTableStyle.css" })
CellTable.Style cellTableStyle();
  }

CellTable cellTable= new CellTable(15,
GWT. create(TableResources.class));

//add your cellTable column.
---
end java
class

//CellTableStyle.css file

.cellTableCell {
height: 25px;
padding-left: 2px;
padding-right: 2px;
background-color: red;
}

.cellTableHeader {
height: 25px;
border-bottom: 2px solid #60a6bf;
padding: 3px 25px;

}

.cellTableEvenRow {
background: #fffaf0;
border:solid 1px red;
}

.cellTableEvenRowCell {
border:solid 1px green;
}

.cellTableOddRow {
background: #fff8e8;
}

.cellTableOddRowCell {
 border:solid 1px red;
}

-- 
You received 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: UiBinder CSS URL

2011-10-14 Thread Sudhakar Abraham
You can't access the css file from outside package within uibinder.
However, there are two ways to access the css file within uibinder.
1. Using inline style sheet within uibinder (...)
2. Using 

S. Abraham
www.DataStoreGwt.com
Persist objects directly in Google App Engine

On Oct 13, 7:00 pm, SigmaBlu  wrote:
> Is there a way to use a URL to access CSS when using UiBinder? I
> already know that you can access this with in your package hierarchy.
> Unfortunately, I don't have any idea how i can reference outside of
> the package.
>
> Regards,
> Sigma

-- 
You received 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: Developers, please don't ignore reported GWT issues.

2011-10-14 Thread Patrick Tucker
Providing your own patches doesn't guarantee it will get looked at...

I submitted the following patch because it was a simple and quick
first attempt at recommending a patch for GWT:
http://code.google.com/p/google-web-toolkit/issues/detail?id=6589

The patch got no attention from the GWT team, negative or positive, so
I don't bother putting forth the effort to submit real patches.  I
realize the patch doesn't solve the communities problems, but that
wasn't the point.

Just my experience.

On Oct 11, 12:20 pm, Jeff Larsen  wrote:
> I'd recommend trying to provide your own patches. GWT is a community effort
> and as such it needs more than just the support of google. You'll almost
> certianly learn something in the process aswell, so it really is win/win.

-- 
You received 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-14 Thread darkflame
I found this;
http://www.vinylfox.com/forwarding-mouse-events-through-layers/

It seems the agreed way to do this at the moment.
I only hope its adaptable to GWT :-/

On Oct 14, 3:12 pm, darkflame  wrote:
> Still struggleing with a solution for this.
> My knowledge of event handeling clearly isnt good enough;
>
> a) Is it possible to pass an event (or all events) to a parent/
> container element and have it automaticaly passed on to all its
> children?
>
> b) would this event be triggered under the normal conditions of the
> children, or would it just trigger under the parents conditions.
> That is, if I pass a event that happens to be a mouse over event from
> parent to child, would it trigger if the mouse isnt actualy over the
> child? (but merely over the parent). Or would it still correctly only
> fire if its over the child.
>
> My end goal remains the same; a method to have a overlay which doesnt
> block the event handeling of elements under it.
> I'm hoping its possible by somehow passing events down from the
> overlay to, say, a container with everything else.
>
> The long winded way to do it seems to be manualy checking all the
> elements, their co-ordinates, and calculating mouse over/out/click
> events myself. Surely theres an easier method?
>
> Thanks,
> Thomas
>
> On Oct 10, 1:16 pm, darkflame  wrote:
>
>
>
> > hmz...something to keep an eye on, but sadly IE and Opera dont support
> > it yet;http://caniuse.com/pointer-events
>
> > On Oct 8, 1:19 pm, David Given  wrote:
>
> > > 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
> > > < 1KViewDownload

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



How to add click events to multiple images in a cell/celltable

2011-10-14 Thread Thomas Trebbien Pedersen
Hi,

I have a celltable where I would like to sort the rows by clicking
either a up or a down arrow. The two sort-direction arrows are placed
in a single cell on each row.

Now how do I add a click event to each image? I know a cell has a
onBrowserEvent(...) put thats for the entire cell right? What about
multiple images in a cell?

Does anyone have some good suggestions.

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.



SimplePager in CellTable on a DialogBox using UiBinder

2011-10-14 Thread jgm
Hi,

We are having problems getting the SimplePager to work.
The pager is shown, but it doesn't work - as if it is not initialized
correctly with the data, somehow.

The java code looks like this:

public class RunProgressPopupPanel extends DialogBox {

private final String dateFormat = ".MM.dd HH:mm:ss";

public interface Binder extends UiBinder {}
private static Binder uiBinder = GWT.create(Binder.class);
private ListDataProvider dataProvider = new
ListDataProvider();

@UiField CellTable cellTable;
@UiField SimplePager pager;

// (provided = true)

public RunProgressPopupPanel(){
super(false, Global.POPUPS_ARE_MODAL);
setWidget(uiBinder.createAndBindUi(this));

initTableColumns();
}

private void initTableColumns(){
// Connect the table to the data provider.
dataProvider.addDataDisplay(cellTable);

//SimplePager.Resources pagerResources =
GWT.create(SimplePager.Resources.class);
//pager = new SimplePager(TextLocation.CENTER, pagerResources,
false, 0, true);


pager = new SimplePager();
pager.setRangeLimited(false);
pager.setDisplay(cellTable);
//pager.setPageSize(10);

   ---
   ---
---


public void show(String title, RunProgress p){
this.setText(title);

if (dataProvider.getDataDisplays() == null ||
dataProvider.getDataDisplays().isEmpty()) {
dataProvider.addDataDisplay(cellTable);
}
dataProvider.getList().clear();
dataProvider.getList().addAll(p.steps);
cellTable.setRowCount(p.steps.size());
GWT.log("p.steps:"+ p.steps.size());
cellTable.redraw();

this.setPopupPosition(400, 200);
this.show();
}

public void updateProgress(RunProgress p) {
dataProvider.getList().clear();
dataProvider.getList().addAll(p.steps);
GWT.log("p.steps:"+ p.steps.size());
cellTable.setRowCount(p.steps.size());
cellTable.redraw();
}


The UIBinder xml looks like this:







Ok









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



SimplePager in CellTable on a DialogBox using UiBinder

2011-10-14 Thread jgm
Hi,

We are having problems getting the SimplePager to work.
The pager is shown, but it doesn't work - as if it is not initialized
correctly with the data, somehow.

The java code looks like this:

public class RunProgressPopupPanel extends DialogBox {

private final String dateFormat = ".MM.dd HH:mm:ss";

public interface Binder extends UiBinder {}
private static Binder uiBinder = GWT.create(Binder.class);
private ListDataProvider dataProvider = new
ListDataProvider();

@UiField CellTable cellTable;
@UiField SimplePager pager;

// (provided = true)

public RunProgressPopupPanel(){
super(false, Global.POPUPS_ARE_MODAL);
setWidget(uiBinder.createAndBindUi(this));

initTableColumns();
}

private void initTableColumns(){
// Connect the table to the data provider.
dataProvider.addDataDisplay(cellTable);

//SimplePager.Resources pagerResources =
GWT.create(SimplePager.Resources.class);
//pager = new SimplePager(TextLocation.CENTER, pagerResources,
false, 0, true);


pager = new SimplePager();
pager.setRangeLimited(false);
pager.setDisplay(cellTable);
//pager.setPageSize(10);

   ---
   ---
---


public void show(String title, RunProgress p){
this.setText(title);

if (dataProvider.getDataDisplays() == null ||
dataProvider.getDataDisplays().isEmpty()) {
dataProvider.addDataDisplay(cellTable);
}
dataProvider.getList().clear();
dataProvider.getList().addAll(p.steps);
cellTable.setRowCount(p.steps.size());
GWT.log("p.steps:"+ p.steps.size());
cellTable.redraw();

this.setPopupPosition(400, 200);
this.show();
}

public void updateProgress(RunProgress p) {
dataProvider.getList().clear();
dataProvider.getList().addAll(p.steps);
GWT.log("p.steps:"+ p.steps.size());
cellTable.setRowCount(p.steps.size());
cellTable.redraw();
}


The UIBinder xml looks like this:







Ok









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



SimplePager in CellTable on a DialogBox using UiBinder

2011-10-14 Thread jgm
Hi,

We are having problems getting the SimplePager to work.
The pager is shown, but it doesn't work - as if it is not initialized
correctly with the data, somehow.

The java code looks like this:

public class RunProgressPopupPanel extends DialogBox {

private final String dateFormat = ".MM.dd HH:mm:ss";

public interface Binder extends UiBinder {}
private static Binder uiBinder = GWT.create(Binder.class);
private ListDataProvider dataProvider = new
ListDataProvider();

@UiField CellTable cellTable;
@UiField SimplePager pager;

// (provided = true)

public RunProgressPopupPanel(){
super(false, Global.POPUPS_ARE_MODAL);
setWidget(uiBinder.createAndBindUi(this));

initTableColumns();
}

private void initTableColumns(){
// Connect the table to the data provider.
dataProvider.addDataDisplay(cellTable);

//SimplePager.Resources pagerResources =
GWT.create(SimplePager.Resources.class);
//pager = new SimplePager(TextLocation.CENTER, pagerResources,
false, 0, true);


pager = new SimplePager();
pager.setRangeLimited(false);
pager.setDisplay(cellTable);
//pager.setPageSize(10);

   ---
   ---
---


public void show(String title, RunProgress p){
this.setText(title);

if (dataProvider.getDataDisplays() == null ||
dataProvider.getDataDisplays().isEmpty()) {
dataProvider.addDataDisplay(cellTable);
}
dataProvider.getList().clear();
dataProvider.getList().addAll(p.steps);
cellTable.setRowCount(p.steps.size());
GWT.log("p.steps:"+ p.steps.size());
cellTable.redraw();

this.setPopupPosition(400, 200);
this.show();
}

public void updateProgress(RunProgress p) {
dataProvider.getList().clear();
dataProvider.getList().addAll(p.steps);
GWT.log("p.steps:"+ p.steps.size());
cellTable.setRowCount(p.steps.size());
cellTable.redraw();
}


The UIBinder xml looks like this:







Ok









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



SimplePager in CellTable on a DialogBox using UiBinder

2011-10-14 Thread jgm
Hi,

We are having problems getting the SimplePager to work.
The pager is shown, but it doesn't work - as if it is not initialized
correctly with the data, somehow.

The java code looks like this:

public class RunProgressPopupPanel extends DialogBox {

private final String dateFormat = ".MM.dd HH:mm:ss";

public interface Binder extends UiBinder {}
private static Binder uiBinder = GWT.create(Binder.class);
private ListDataProvider dataProvider = new
ListDataProvider();

@UiField CellTable cellTable;
@UiField SimplePager pager;

// (provided = true)

public RunProgressPopupPanel(){
super(false, Global.POPUPS_ARE_MODAL);
setWidget(uiBinder.createAndBindUi(this));

initTableColumns();
}

private void initTableColumns(){
// Connect the table to the data provider.
dataProvider.addDataDisplay(cellTable);

//SimplePager.Resources pagerResources =
GWT.create(SimplePager.Resources.class);
//pager = new SimplePager(TextLocation.CENTER, pagerResources,
false, 0, true);


pager = new SimplePager();
pager.setRangeLimited(false);
pager.setDisplay(cellTable);
//pager.setPageSize(10);

   ---
   ---
---


public void show(String title, RunProgress p){
this.setText(title);

if (dataProvider.getDataDisplays() == null ||
dataProvider.getDataDisplays().isEmpty()) {
dataProvider.addDataDisplay(cellTable);
}
dataProvider.getList().clear();
dataProvider.getList().addAll(p.steps);
cellTable.setRowCount(p.steps.size());
GWT.log("p.steps:"+ p.steps.size());
cellTable.redraw();

this.setPopupPosition(400, 200);
this.show();
}

public void updateProgress(RunProgress p) {
dataProvider.getList().clear();
dataProvider.getList().addAll(p.steps);
GWT.log("p.steps:"+ p.steps.size());
cellTable.setRowCount(p.steps.size());
cellTable.redraw();
}


The UIBinder xml looks like this:







Ok









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



How to deploy using modules

2011-10-14 Thread Néstor Boscán
Hi

I have a client that wishes to create a big GWT project that is modularized
where in one page you can see the panels of different modules. They want to
deploy by module not deploying the entire war everytime there is a change.
In GWT I could create 1 jar per module and create a war that integrates
everything and deploy it the first time. If I change something in one module
I would have to replace the jar, the entire .js and restart the server. Any
ideas on this?

Regards,

Néstor Boscán

-- 
You received 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: SimplePager in CellTable on a DialogBox using UiBinder

2011-10-14 Thread jgm
Dont't know why it was posted 4 times :-(



On 14 Okt., 15:48, jgm  wrote:
> Hi,
>
> We are having problems getting the SimplePager to work.
> The pager is shown, but it doesn't work - as if it is not initialized
> correctly with the data, somehow.
>
> The java code looks like this:
>
> public class RunProgressPopupPanel extends DialogBox {
>
>         private final String dateFormat = ".MM.dd HH:mm:ss";
>
>         public interface Binder extends UiBinder RunProgressPopupPanel> {}
>         private static Binder uiBinder = GWT.create(Binder.class);
>         private ListDataProvider dataProvider = new
> ListDataProvider();
>
>         @UiField CellTable cellTable;
>         @UiField SimplePager pager;
>
>         // (provided = true)
>
>         public RunProgressPopupPanel(){
>                 super(false, Global.POPUPS_ARE_MODAL);
>                 setWidget(uiBinder.createAndBindUi(this));
>
>                 initTableColumns();
>         }
>
>         private void initTableColumns(){
>                 // Connect the table to the data provider.
>                 dataProvider.addDataDisplay(cellTable);
>
>                 //SimplePager.Resources pagerResources =
> GWT.create(SimplePager.Resources.class);
>                 //pager = new SimplePager(TextLocation.CENTER, pagerResources,
> false, 0, true);
>
>                 pager = new SimplePager();
>                 pager.setRangeLimited(false);
>                 pager.setDisplay(cellTable);
>         //pager.setPageSize(10);
>
>                ---
>                ---
>                 ---
>
>         public void show(String title, RunProgress p){
>                 this.setText(title);
>
>                 if (dataProvider.getDataDisplays() == null ||
> dataProvider.getDataDisplays().isEmpty()) {
>                         dataProvider.addDataDisplay(cellTable);
>                 }
>                 dataProvider.getList().clear();
>                 dataProvider.getList().addAll(p.steps);
>                 cellTable.setRowCount(p.steps.size());
>                 GWT.log("p.steps:"+ p.steps.size());
>             cellTable.redraw();
>
>             this.setPopupPosition(400, 200);
>             this.show();
>         }
>
>         public void updateProgress(RunProgress p) {
>                 dataProvider.getList().clear();
>                 dataProvider.getList().addAll(p.steps);
>                 GWT.log("p.steps:"+ p.steps.size());
>                 cellTable.setRowCount(p.steps.size());
>             cellTable.redraw();
>         }
>
> The UIBinder xml looks like this:
>
>          xmlns:g="urn:import:com.google.gwt.user.client.ui"
>         xmlns:c="urn:import:com.google.gwt.user.cellview.client">
>
>         
>                  width="700px">
>                          pageSize='6'/>
>                         
>                         Ok
>                 
>         
> 

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



XMLParser EndOfFile question

2011-10-14 Thread coffeMan
I am retrieving XML from a servlet and parsing through it.  the xml
code is one large XML file but on through the servlet.  I can parse
through it easy and get my results but i am not sure when to stop it.
I keep getting NullPointerException that kicks off when it reaches the
end.  I never know when its going to end because every file that i
parse through is different in length.

I am using the DOM parser.  Document messageDom =
XMLParser.parse(srv.getXmlObject());

string name =
messageDom.getElementsByTagName("name").item(n).getFirstChild().getNodeValue();
- n being a variable that is an integer value that increases after
each loop

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: Developers, please don't ignore reported GWT issues.

2011-10-14 Thread Thomas Broyer
Patches should be submitted to http://gwt-code-reviews.appspot.com where, if 
you set reviewers, they will show in their "reviewable by me" (and they'll 
receive a mail).

As for your patch, a single JSNI method is faster in DevMode, because it 
only requires one roundtrip to the browser to execute it, so the proposed 
change really isn't worth it.

My own experience is that all my patches (submitted to 
gwt-code-review.appspot.com) were looked at (not necessarily immediately 
though), and a majority of them rolled in. And most, if not all, patches 
submitted to gwt-code-reviews.appspot.com have been reviewed (provided some 
reviewer was assigned, otherwise there's always the risk that it slips 
through in the flood of patches –public and private– they have to review).

-- 
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/-/UAN8uZZNwBoJ.
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: XMLParser EndOfFile question

2011-10-14 Thread Colin Alworth
NodeList, the return value of getElementsByTagName, has a method called 
getLength(). The standard way of iterating through the contents would 
involve using a for loop, and testing that n never reaches getLength()

-- 
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/-/UyFHjUVVNdYJ.
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: XMLParser EndOfFile question

2011-10-14 Thread coffeMan
Great Thanksill give it a try

On Oct 14, 10:35 am, Colin Alworth  wrote:
> NodeList, the return value of getElementsByTagName, has a method called
> getLength(). The standard way of iterating through the contents would
> involve using a for loop, and testing that n never reaches getLength()

-- 
You received 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: XMLParser EndOfFile question

2011-10-14 Thread coffeMan
great thanks

On Oct 14, 10:35 am, Colin Alworth  wrote:
> NodeList, the return value of getElementsByTagName, has a method called
> getLength(). The standard way of iterating through the contents would
> involve using a for loop, and testing that n never reaches getLength()

-- 
You received 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: XMLParser EndOfFile question

2011-10-14 Thread Jeffrey Chimene
On 10/14/2011 7:00 AM, coffeMan wrote:
> I am retrieving XML from a servlet and parsing through it.  the xml
> code is one large XML file but on through the servlet.  I can parse
> through it easy and get my results but i am not sure when to stop it.
> I keep getting NullPointerException that kicks off when it reaches the
> end.  I never know when its going to end because every file that i
> parse through is different in length.
>
> I am using the DOM parser.  Document messageDom =
> XMLParser.parse(srv.getXmlObject());
>
> string name =
> messageDom.getElementsByTagName("name").item(n).getFirstChild().getNodeValue();
> - n being a variable that is an integer value that increases after
> each loop

A couple of questions come to mind:

1) Are you sure the document is valid? Does there exist an XML schema
against which you can test this document instance? If not, you might
consider creating an XML schema, a sample document, and running the pair
through a validating parser such as xmllint. Such validation tests can
be a useful part of your overall product verification/validation regime.

2) Have you considered using GQuery to produce nodelists? For complex,
valid documents it can be a useful tool.

3) Consider using loops controlled by NodeList.length() instead of using
the builder pattern to process the tree. In my experience, using loops
instead of the builder pattern yields fewer surprises at runtime. I
realize there's a "cool factor" to chaining those method calls, but it
usually results in issues such as the one you're now trying to resolve.

Bueno Suerte,
jec

-- 
You received 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: JSNI - interactive chart

2011-10-14 Thread George Agiasoglou
Hi Tomasz,

Many thanks for your sample code. The only thing missing is inherit Json in 
your application module   

Although it compiles and runs the iframe comes out empty.

I stepped through the code in debug mode and the element created is shown 
below:

http://ajax.googleapis.com/ajax/static/modules/gviz/1.0/chart.js";>{"dataSourceUrl":"location.to.document",
 
"options":{"vAxes":[{"min":null, "title":"Hits", "max":null}], "cat":false, 
"title":"metrics", "titleX":"Date", "backgroundColor":"#FF", 
"legend":"right", "logScale":false, "reverseAxis":false, 
"hAxis":{"maxAlternation":1}, "hasLabelsColumn":true, "isStacked":false, 
"width":600, "height":371}, "state":{}, "chartType":"ColumnChart", 
"chartName":"Chart 1"}
 Inspecting the element in firebug I get the following:


  


  


Any idead what might be going wrong?

Thanks,
-G

-- 
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/-/SUpfdwPh_d8J.
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.



Suggestion for Eclipse Plugin: On SDK Upgrade > delete old SDK Jars (not working)

2011-10-14 Thread Brandon Donnelson
On Eclipse GWT SDK upgrade, the old SDK jars for App Engine and (maybe GWT) 
are sticking around, staying behind. 

I try to reset it by disabling both App Engine and Web Toolkit and closing 
properties option dialog, and repeating to enable. This replaces the jars 
some of the time. Why won't it fix it all of the time?

I suggest explicitly replacing the jars in the WEB-INF/lib directory for the 
SDK, (or checking for correct) every time the project is enabled and 
disabled. 

To repeat, delete the SDK jars for both App Engine and GWT in WEB-INF/lib 
directory and enable Web Toolkit in the Google Properties dialog. The jars 
will not replace. 

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/-/FM2V84gk1LEJ.
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: it is not a circular structure

2011-10-14 Thread .Mark
I have just updated my Ubuntu workstation to 11.10 which has provided
me Eclipse Indigo.  With that I have updated my Google plug-in to the
version for Eclipse Indigo.  I have GWT 2.4.0 and AppEngine 1.5.5.  It
appears things are working better. I am not currently getting the
circular reference exception in the same code.  I am going to test
things a bit more before I consider this issue completed.



On Oct 11, 7:07 am, "J.Ganesan"  wrote:
> Please check up whether equals method returns true for two different
> objects. Often, that is a reason for circularity.
>
> J.Ganesanwww.DataStoreGwt.com
> Persist objects directly in App Engine
>
> On Oct 8, 5:26 pm, ".Mark"  wrote:
>
>
>
>
>
>
>
> > 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): Convertingcircularstructure 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 thecircularerror.  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.



Re: Suggestion for Eclipse Plugin: On SDK Upgrade > delete old SDK Jars (not working)

2011-10-14 Thread Brandon Donnelson
Oops, My bad.

It works. I had a custom SDK selected. I should have selected the default 
SDK.

Brandon

-- 
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/-/bFOF2okwJCgJ.
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.



Invisible DataGrid

2011-10-14 Thread walker1c
Can anyone point me to a working example that uses
com.google.gwt.user.cellview.client.DataGrid?

The example code in the Javadoc relates to a different widget
(CellTable).  The code in the GWT showcase is incomplete and seems to
be full of dependencies related to the showcase infrastructure.

I've pulled the complete showcase code for this widget from SVN and
modified it to remove the dependencies.  What I get is a page with a
pager at the bottom showing the correct number of records, but no
DataGrid at all.  As far as I can tell from inspecting the page in
Firebug, it never gets rendered.

-- 
You received 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 Designer fails under Eclipse 3.7 with latest update

2011-10-14 Thread Claudio Pomo
I've the same problem with eclipse 3.6

this is the stack trace


!SESSION 2011-10-14 11:26:52.651
---
eclipse.buildId=M20110210-1200
java.version=1.6.0_26
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=it_IT
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os linux -ws gtk -arch x86 -product
org.eclipse.epp.package.jee.product
!ENTRY org.eclipse.wb.core 4 4 2011-10-14 12:41:45.212
!MESSAGE Designer [2.4.2.r36x201109270347]: 4107 (Unable to load
native library.). gwt-ll
!STACK 0
org.eclipse.wb.internal.core.utils.exception.DesignerException: 4107
(Unable to load native library.). gwt-ll
at
com.google.gdt.eclipse.designer.GwtExceptionRewriter.rewrite(GwtExceptionRewriter.java:
74)
at
org.eclipse.wb.internal.core.utils.exception.DesignerExceptionUtils.rewriteException(DesignerExceptionUtils.java:
225)
at
org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.showExceptionOnDesignPane(XmlDesignPage.java:
509)
at
org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.internal_refreshGEF(XmlDesignPage.java:
394)
at
org.eclipse.wb.internal.core.xml.editor.UndoManager.refreshDesignerEditor(UndoManager.java:
254)
at
org.eclipse.wb.internal.core.xml.editor.UndoManager.activate(UndoManager.java:
85)
at
org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.setActive(XmlDesignPage.java:
167)
at
org.eclipse.wb.internal.core.xml.editor.AbstractXmlEditor.pageChange(AbstractXmlEditor.java:
649)
at org.eclipse.ui.part.MultiPageEditorPart
$2.widgetSelected(MultiPageEditorPart.java:290)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:
234)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1267)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1061)
at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:
2743)
at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1429)
at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:
257)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:
3540)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3161)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:
2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:
332)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:
664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:
149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:
115)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:
196)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:
110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:
79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:
369)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:
179)
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 org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
Caused by: java.lang.UnsatisfiedLinkError: no gwt-ll in
java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1738)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at
com.google.gdt.eclipse.designer.moz.BrowserShellLinux.(BrowserShellLinux.java:
86)
at
com.google.gdt.eclipse.designer.moz.BrowserShellLinux32.(BrowserShellLinux32.java:
42)
at
com.google.gdt.eclipse.designer.moz.BrowserShellFactory.create(BrowserShellFactory.java:
30)
at
com.google.gdt.eclipse.designer.hosted.tdt.HostedModeSupport.createBrowse

Re: Invisible DataGrid

2011-10-14 Thread Jeff Larsen
DataGrid needs to live inside a LayoutPanel

-- 
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/-/_xePEB-6AJ8J.
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: XMLParser EndOfFile question

2011-10-14 Thread coffeMan
I got the solution resolved.i am parsing over 11,000 different
file types...it is going slow using the DOM Xml Parser...any ideas on
how to improve performance?

I cannot think of any other way to parse it

On Oct 14, 10:40 am, Jeffrey Chimene  wrote:
> On 10/14/2011 7:00 AM, coffeMan wrote:
>
> > I am retrieving XML from a servlet and parsing through it.  the xml
> > code is one large XML file but on through the servlet.  I can parse
> > through it easy and get my results but i am not sure when to stop it.
> > I keep getting NullPointerException that kicks off when it reaches the
> > end.  I never know when its going to end because every file that i
> > parse through is different in length.
>
> > I am using the DOM parser.  Document messageDom =
> > XMLParser.parse(srv.getXmlObject());
>
> > string name =
> > messageDom.getElementsByTagName("name").item(n).getFirstChild().getNodeValu 
> > e();
> > - n being a variable that is an integer value that increases after
> > each loop
>
> A couple of questions come to mind:
>
> 1) Are you sure the document is valid? Does there exist an XML schema
> against which you can test this document instance? If not, you might
> consider creating an XML schema, a sample document, and running the pair
> through a validating parser such as xmllint. Such validation tests can
> be a useful part of your overall product verification/validation regime.
>
> 2) Have you considered using GQuery to produce nodelists? For complex,
> valid documents it can be a useful tool.
>
> 3) Consider using loops controlled by NodeList.length() instead of using
> the builder pattern to process the tree. In my experience, using loops
> instead of the builder pattern yields fewer surprises at runtime. I
> realize there's a "cool factor" to chaining those method calls, but it
> usually results in issues such as the one you're now trying to resolve.
>
> Bueno Suerte,
> jec

-- 
You received 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-14 Thread darkflame
Ok, dont mean to spam, but I think I'm getting near a solution and it
could be usefull to other people.

Based on;
http://groups.google.com/group/gwt-cal/browse_thread/thread/7e756151acbd9b14

I came up with this;


/** a class designed to catch events and forward them to a panel under
it
 * uses the techique specified in;
 * http://www.vinylfox.com/forwarding-mouse-events-through-layers/
 * In future, css3 might be used instead to make this whole thing more
simple **/
public class SpiffyOverlay extends FocusPanel {


static Logger Log = Logger.getLogger("SpiffyOverlay");

public SpiffyOverlay(Widget forwardEventsToThis){

//set temp background
this.getElement().getStyle().setBackgroundColor("blue");
this.getElement().getStyle().setOpacity(0.5);

this.add(new Label("test"));
this.setSize("100%", "100%");

sinkEvents(Event.ONMOUSEUP | Event.ONDBLCLICK | 
Event.ONCONTEXTMENU
| Event.ONCLICK | Event.ONMOUSEOVER | 
Event.ONMOUSEOUT);

}

//capture events
@Override
public void onBrowserEvent(Event event){
Log.info("__onBrowserEvent from overlay");
//event.cancelBubble(true);// This will stop the event from 
being
// 
propagated
DOM.eventCancelBubble(event, true);



event.preventDefault();

switch (DOM.eventGetType(event)) {

case Event.ONCLICK:

Log.info("Event.ONCLICK
");


int x = DOM.eventGetClientX(event);
 int y = DOM.eventGetClientY(event);

 Element clickedElement =
DOM.eventGetCurrentTarget(event);

// temporarily hide the appointment canvas
 //clickedElement.setAttribute("style",
"visibility:hidden");

clickedElement.getStyle().setVisibility(Visibility.HIDDEN);

// use a native JavaScript method to find the element at
the   doubleclick event
 Element elementBehind = getElementFromPoint(x, y);


Log.info("restoring
visibility ");

// restore the appointment canvas

clickedElement.getStyle().setVisibility(Visibility.VISIBLE);

Log.info("found
element : "+elementBehind.getParentElement().getOffsetWidth());



Log.info("firing
event ");

  //copy the event
 NativeEvent eventcopy =
Document.get().createClickEvent(event.getTypeInt(),
event.getScreenX(),
event.getScreenY(),
event.getClientX(),
event.getClientY(),
event.getCtrlKey(),
event.getAltKey(),
event.getShiftKey(),
event.getMetaKey());

   elementBehind.getParentElement().dispatchEvent(eventcopy);

 elementBehind.getParentElement().setTitle("test title
from overlay");



}


}

private native Element getElementFromPoint(int x, int y) /*-{
 return $wnd.document.elementFromPoint(x, y);
 }-*/;


}


This works for basic click events, allthough I cant seem to adapt it
for other types.

The problem is I need to copy the event and I have no idea how to do
that for anything other then clicks. Document has "createClickEvent"
but nothing thats just "createEvent".

If I just parse the event on without copying I get a
"EventException.DISPATCH_REQUEST_ERR  (1)" error.





On Oct 14, 3:37 pm, darkflame  wrote:
> I found this;http://www.vinylfox.com/forwarding-mouse-events-through-layers/
>
> It seems the agreed way to do this at the moment.
> I only hope its adaptable to GWT :-/
>
> On Oct 14, 3:12 pm, darkflame  wrote:
>
>
>
> > Still struggleing with a solution for this.
> > My knowledge of event handeling clearly isnt good enough;
>
> > a) Is it possible to pass an event (or all events) to a parent/
> > container element and have it automaticaly passed on to all its
> > children?
>
> > b) would this event be triggered under the normal conditions of the
> > children, or would it just trigger under the parents conditions.
> > That is, if I pass a event that happens to be a mouse over event from
> > parent to child, would it trigger if the mouse isnt actualy over the
> > child? (but merely over the parent). Or would it still correctly only
> > fire if its

GWT App Indexing

2011-10-14 Thread Kb .
I want to make an app which allows users to Post Content with GWT/GAE

Can the text in the Content be indexed by Search Engines?

or i have to use something else to build this ?

-- 
You received 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: How to add click events to multiple images in a cell/celltable

2011-10-14 Thread Adam
I use CompositeCell for this type of thing.  Create a composite of 2
cells, each with an image in them, and each cell handling "click"
events.  Each cell can detect clicks in their respective FieldUpdaters
and still be rendered in the same cell.

Hope this helps,
Adam

On Oct 14, 9:41 am, Thomas Trebbien Pedersen
 wrote:
> Hi,
>
> I have a celltable where I would like to sort the rows by clicking
> either a up or a down arrow. The two sort-direction arrows are placed
> in a single cell on each row.
>
> Now how do I add a click event to each image? I know a cell has a
> onBrowserEvent(...) put thats for the entire cell right? What about
> multiple images in a cell?
>
> Does anyone have some good suggestions.
>
> 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: How to create war file in GWT 2.4 / Eclipse Indigo

2011-10-14 Thread TBirch
Hi Sachin,
I believe I had the same issue when I first started working with
Indigo and here is what I remember doing. I started over with a fresh
download of Eclipse 3.7. Then I installed just the GWT sdk 2.4 through
the Eclipse update function (not the designer or any other of the
choices). At that point I checked and the option to deploy was there.
Only then did I go back in to the Eclipse update function and add the
additional features.

On Oct 14, 2:57 am, sachin sreenivasan
 wrote:
> Hi TBirch,
>
>   I tried that. Thats what I was doing in my prev GWT instance. But I am not
> seeing that now. Just want to explain a bit, I first downloaded
> Eclipse-Indigo-EE version. Then I went to the Install Software option and
> there I gave the link of GWT2.4 and selected the packages and installed. Is
> there something else I need to do? I am surprised that I am not seeing the
> "Deploy Module" option itself. Someone please advice.
>
> regards,
> Sachin
>
>
>
>
>
>
>
> On Thu, Oct 13, 2011 at 9:13 PM, TBirch  wrote:
> > Right click on your java module and then click on Google Web Toolkit
> > at the top of the list. Deploy module should be last in the list.
>
> > On Oct 13, 8:52 am, sachin sreenivasan
> >   wrote:
> > > Hi,
>
> > >    I just upgraded to Eclipse Indigo and installed the GWT 2.4. But I
> > > did not see the "Deploy Module" option at all when I create a Dynamic
> > > Web Project. I was using this option earlier to create a war file
> > > which would also get moved to the tomcat webapps folder. But since I
> > > am not seeing this option at all, I am not able to create a war file
> > > at all. Can someone please help me with this?
>
> > > Thanks,
> > > Sachin
>
> > --
> > You received 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.



How do I use a boolean parameter in the Message.Select annotation?

2011-10-14 Thread Zak Linder
According to the Messages.Select 
javadocI
 can use a boolean-type parameter, but I can't seem to get it to work. For 
example:

@DefaultMessage("{1} just did something.")
@AlternateMessage({
"true", "You just did something in another session."
})
String contextInvalidTherapyStopped(@Select boolean me, @Optional String 
userName);

I've tried using "TRUE" and using Boolean instead of boolean and nothing has 
worked. I do not want to use an enum if I can avoid it.

-- 
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/-/Mveiq4jKvkIJ.
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: How do I use a boolean parameter in the Message.Select annotation?

2011-10-14 Thread Zak Linder
Hmm, may be related to 
http://code.google.com/p/google-web-toolkit/issues/detail?id=6426

-- 
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/-/DE-E-Kng9EcJ.
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.



AutoBean: decoding JSON with an array at the root?

2011-10-14 Thread alexp
Assume I the following JSON:

[
   { "foo": 1, "bar": 2 },
   { "foo": 3, "bar": 4 }
]

How would I set up my AutoBean and factory to parse this?

If the array were a child of another object, like this:

{ "items": [
  { "foo": 1, "bar": 2 },
  { "foo": 3, "bar": 4 }
 ]
}

Then the AutoBean would be easy, because the array is identified by
the enclosing object:

interface Foo {
List items;
}

interface Item {
int getFoo();
int GetBar();
}

However, when the array is at the root, there doesn't seem a way to
decode a list at the root.  In other words, I cannot do this:

MyFactory {
List itemList();
}

Because I would not be able to specify List as the cass (e.g.
type) to be decoded:

AutoBean bean = AutoBeanCodex.decode(myFactory, ???.class,
jsonString);

I tried adding a list bean that extended list, like this:

interface ItemList extends List {
}

But I quickly realized that the AutoBean code would try to look for
JSON properties or Category methods for all the methods in the List
interface.

Any ideas?

Thanks in advance,

Alex

-- 
You received 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 Designer fails under Eclipse 3.7 with latest update

2011-10-14 Thread Eric Clayberg (Google)


This is caused by incompatibility between Linux versions and inconsistent 
library naming across versions and distros.

As a work around you can...

1) Open terminal and change dir to /usr/lib.

2) Execute sudo ln -s libwebkitgtk-1.0.so.0.6.0 libwebkit-1.0.so.2 command, 
where "libwebkitgtk-1.0.so.0.6.0" is the webkit lib file (it's name could have 
a different version number on your system).

3) Restart Eclipse.

-- 
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/-/MZ1pRsDRhoYJ.
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: Developers, please don't ignore reported GWT issues.

2011-10-14 Thread Eric Clayberg (Google)
If you follow the *correct 
procedure
* for submitting patches, it should get looked at. 

Attaching a patch to an issue won't get it looked at. You also need to sign 
a CLA and submit the patch to Rietveld .

-- 
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/-/XIzfH1CMcLEJ.
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 Designer fails under Eclipse 3.7 with latest update

2011-10-14 Thread Jean-Lou Dupont
But there is " libwebkit-1.0.so.2 " on my system in /usr/lib

Up until the latest release of the Google plugin (which included an
update to GWT Designer), everything was working fine.
There isn't any " libwebkitgtk " installed on my system (nor did I
remove it or ever installed it intentionally).

It seems the problem is elsewhere...  any clue?


On Oct 14, 4:37 pm, "Eric Clayberg (Google)" 
wrote:
> This is caused by incompatibility between Linux versions and inconsistent 
> library naming across versions and distros.
>
> As a work around you can...
>
> 1) Open terminal and change dir to /usr/lib.
>
> 2) Execute sudo ln -s libwebkitgtk-1.0.so.0.6.0 libwebkit-1.0.so.2 command, 
> where "libwebkitgtk-1.0.so.0.6.0" is the webkit lib file (it's name could 
> have a different version number on your system).
>
> 3) Restart Eclipse.

-- 
You received 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: Developers, please don't ignore reported GWT issues.

2011-10-14 Thread Eric Clayberg (Google)
It was somewhat of a coincidence as we were starting a small project to 
clean up and triage the issue tracker (which had been unfortunately 
neglected for awhile). We definitely took notice of your post and looked at 
each of the issues you referenced. 

"PatchesWelcome" does indeed mean that we think it is a good idea, but it 
isn't something we are going to get to any time soon (making it a great 
opportunity for the community to contribute a patch). Depending on our own 
priorities we may or may not ever get to a given PatchesWelcome issue, so if 
it is something very important to you ("you" as in anyone in the community), 
I would strongly encourage you to create and submit a patch. 

If you do submit a patch, it is important to follow the correct 
procedurefor
 submitting patches. Simply attaching a patch to an issue (as was 
originally the in the case 
6530) 
won't get it seen by the GWT development team. As you can see from case 
6530, 
that patch has now been submitted to the right place, 
reviewed, 
and submitted
.

As has been said by others and by us in the past, we are very much looking 
for community support and contributions. We will continue to step up our 
efforts to review and submit any patches that we receive.

-- 
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/-/WMLYkNXVUbEJ.
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: Developers, please don't ignore reported GWT issues.

2011-10-14 Thread Jens
As you now have your small clean up project phase it might be a good time to 
update the duties column 
in http://code.google.com/p/google-web-toolkit/people/list or create a 
similar list as wiki page to help the community to decide which persons 
should be assigned for reviewing patches in Rietveld 
(http://gwt-code-reviews.appspot.com/). 

Just assigning "someone" to a patch so it gets recognized (and later maybe 
reassigned) somehow doesn't feel right to me. I think its definitely better 
if the community can see who is active in the development team and who would 
be a good review candidate for, e.g. UiBinder patches, compiler patches, 
RequestFactory patches, Editor patches, 

-- J.


-- 
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/-/tHayH4mTHmQJ.
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 Designer fails under Eclipse 3.7 with latest update

2011-10-14 Thread Eric Clayberg (Google)
Nothing at the library level has changed in GWT Designer any time recently. 
The requirements under Linux are (and have been for quite some time) 
libwebkit.so or xulrunner-1.9.x. GWT Designer tries to use WebKit first. If 
it isn't available for some reason (older Linux distro or wrong/different 
library name), GWT Designer tries to fallback to Mozilla and use 
xulrunner-1.9.x. Keeping up with the incompatibilities between Linux distros 
and versions is rather mind numbing at times.

Is the GWT Designer bundle com.google.gdt.eclipse.designer.hosted.2_2.webkit 
installed in your Eclipse environment. If that is not installed for some 
reason, GWT Designer can't use WebKit, and you would see that same 
exception.

-- 
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/-/JEINMGerQxoJ.
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 Designer fails under Eclipse 3.7 with latest update

2011-10-14 Thread Jean-Lou Dupont
In the "Eclipse SDK Installation details" under "Plugins" I see

GWT Designer WebKit Support 2.0  2.4.2.r37x201109270337
com.google.gdt.eclipse.designer.hosted.2_0.webkit
GWT Designer WebKit Support 2.2  2.4.2.r37x201109270337
com.google.gdt.eclipse.designer.hosted.2_2.webkit

Everything was working fine until the last time I was offered to
update the Google Plugin and now I can't get work done :(



On Oct 14, 5:35 pm, "Eric Clayberg (Google)" 
wrote:
> Nothing at the library level has changed in GWT Designer any time recently.
> The requirements under Linux are (and have been for quite some time)
> libwebkit.so or xulrunner-1.9.x. GWT Designer tries to use WebKit first. If
> it isn't available for some reason (older Linux distro or wrong/different
> library name), GWT Designer tries to fallback to Mozilla and use
> xulrunner-1.9.x. Keeping up with the incompatibilities between Linux distros
> and versions is rather mind numbing at times.
>
> Is the GWT Designer bundle com.google.gdt.eclipse.designer.hosted.2_2.webkit
> installed in your Eclipse environment. If that is not installed for some
> reason, GWT Designer can't use WebKit, and you would see that same
> exception.

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



UiBinder & setVisible - Confusing (Inconsistent?) Behaviour

2011-10-14 Thread Hilco Wijbenga
Hi all,

If I use (in UiBinder) something like

Hello World!

then the widget is hidden as expected. This calls
UIObject.setVisible(boolean), IIUC.

When I try this for my own widgets this doesn't work, however. I have

public interface MiniGameWidget
{
  @UiTemplate("MiniGameWidget.ui.xml")
  interface UiBinder
extends
  com.google.gwt.uibinder.client.UiBinder
  {}
  interface View
extends IsWidget, HasVisibility
  { ... }
  ...
}

and

public class DefaultMiniGameWidgetView
  extends Composite
  implements View
{  ... }

Using



(in another widget) fails with

[ERROR] Class MiniGameWidget.View has no appropriate setVisible()
method Element  (:17)

even though View extends HasVisibility.

But it gets stranger. If I add a different method (like setXyz) which
then calls this.setVisible() everything works fine. So



and

void setXyz(boolean visible) {
  this.setVisible(visible);
}

works like a charm.

So it looks like the "visible" property is special somehow? How do I
get it to work for my widget?

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-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: Global Event Bus ?

2011-10-14 Thread Tomasz Gawel
If you want to pass objects between to separately compiled gwt modules
via javascript it can only be object that extend JavaScriptObject or
primitives.
but these can also be your custom overlay objects defined on both
sides.
for example when  module A knows about
com.google.gwt.core.client.JsDate and module B knows it either they
can pass this object over javascript and "overlay it properly" as
JsDate extends JavaScriptObject, but it is not valid as to "plain java
objects" as they are (or most possibly are) differently compiled on
both sides.
If you need to share a "plain java objects" you can make a JavaScript
wrapper over it and pass the wrapper js object to another module which
can treat it as overlay object - but as you see it is rather a
emergency hack than the solution to be use extensively :).

-- 
You received 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: Global Event Bus ?

2011-10-14 Thread Tomasz Gawel
package samples;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.JsDate;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.json.client.JSONObject;
import com.google.gwt.json.client.JSONParser;
import com.google.gwt.json.client.JSONString;
import com.google.gwt.user.client.Timer;
import com.google.gwt.user.client.Window;

public class JsBus extends JavaScriptObject {

public static class JsHandlerRegistration extends JavaScriptObject
implements HandlerRegistration {
protected JsHandlerRegistration() {}
@Override
public native final void removeHandler() /*-{
this.removeHandler();
}-*/;
}

public static interface Callback {
void call(JavaScriptObject event);
}

public static final native JsBus getInstance() /*-{
var name = "jsBusSingletonInstance";
return $wnd[name] || ($wnd[name] = (function(){
var _h = {};
return {
fire:function(key, evt){
if(_h[key]){
for(var 
i=0;i<_h[key].length;i++){
try {
_h[key][i](evt);
}
catch(e) {}
}
}
},
addHandler:function(key, handler){
(_h[key] || (_h[key] = 
[])).push(handler);
return {
removeHandler:function(){
if(_h[key]){
for(var 
i=_h[key].length-1; i>-1; i--){

if(_h[key][i] === handler){

_h[key].splice(i, 1);

if(_h[key].length == 0){

_h[key] = null;

delete _h[key];

}

return;
}
}
}
}
};
}
}
})());
}-*/;

protected JsBus() {}

public void fire(String key, JSONObject event) {
fire(key, event.getJavaScriptObject());
}

public native void fire(String key, JavaScriptObject event) /*-{
this.fire(key, event);
}-*/;

public native JsHandlerRegistration addHandler(String key, Callback
callback) /*-{
return this.addHandler(key, function(evt){

callback.@samples.JsBus.Callback::call(Lcom/google/gwt/core/client/
JavaScriptObject;)(evt);
});
}-*/;

}

class A implements EntryPoint {

@Override
public void onModuleLoad() {
final JsBus jsBus = JsBus.getInstance();
jsBus.addHandler("timer_in_b", new JsBus.Callback() {

@Override
public void call(JavaScriptObject event) {
Window.alert(event. 
cast().toLocaleTimeString());
}

});

new Timer() {

@Override
public void run() {
JSONObject event = new JSONObject();
event.put("message", new JSONString("Message 
from class A!"));
event.put("data", JSONParser

.parseStrict("{\"someData\":[1,2,3]}"));
jsBus.fire("event_from_A", event);
}
}.schedule(1);
}
}

class B implements EntryPoint {

@Override
public void onModuleLoad() {

final Timer

Re: Thoughts on Adding Widgets

2011-10-14 Thread gangurg gangurg
  Good Idea , I will ponder my head on this one .

On Thu, Oct 13, 2011 at 9:55 PM, -sowdri-  wrote:

> Did you thought about using HTMLPanel, with handlers for keyboard input?
> such that you can have a complete control over the area and this will also
> enable you to add any kind of widget dynamically.
>
> --
> 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/-/aEMvmYwSIRUJ.
> 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: Global Event Bus ?

2011-10-14 Thread Stefan Ollinger

Hello,

you could use a common library to define your message classes and import 
that library in both gwt modules. Then use something like comet to push 
your messages to the clients: http://code.google.com/p/gwt-comet/


Regards,
Stefan

--
You received 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: Global Event Bus ?

2011-10-14 Thread Stefan Ollinger
Oh, and if you want to do local communication between separate modules, 
i would use a JSNI approach and de-/serialize the common message 
classes. Using the AutoBean framework for example: 
http://code.google.com/p/google-web-toolkit/wiki/AutoBean


Am 15.10.2011 02:22, schrieb Stefan Ollinger:

Hello,

you could use a common library to define your message classes and 
import that library in both gwt modules. Then use something like comet 
to push your messages to the clients: http://code.google.com/p/gwt-comet/


Regards,
Stefan
--
You received 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: XMLParser EndOfFile question

2011-10-14 Thread Jeff Chimene
On 10/14/2011 09:32 AM, coffeMan wrote:
> I got the solution resolved.i am parsing over 11,000 different
> file types...it is going slow using the DOM Xml Parser...any ideas on
> how to improve performance?
> 
> I cannot think of any other way to parse it

Well, first things first: let's clear-up the terminology. I think you
mean 11x10^3 different documents, all conforming to the same schema.
You only have /one/ document type: xml.

Please correct my impression otherwise.

Short answer: Form a NodeList of "interesting" leaf nodes, and don't
worry about the path from the document root to each leaf.

Long answer follows.

11x10^3 different documents is not unusual in a production environment.
For example, consider the single DocBook schema, and the count of
documents derived from that single schema.

Apparently, all you know is that the current document is well-formed.
You do not know if it's valid. Some might argue that you do not even
know if the document is well-formed, but let's assume the document was
produced mechanically, and that all elements, attributes, and PCDATA are
well-formed.

So, you should only write code that relies on the document's physical
structure, not its logical structure.

I think that the best you can do is to treat the document as a "flat
space". Go directly to the child nodes of interest. There's probably
nothing to gain by parsing the document as though it were a tree (which
it is, I know...). In other words, given what little I know about your
specific problem, I believe you are probably just interested in leaf
nodes. So, form a NodeList of those leaf nodes, and don't worry about
the path from the document root to each leaf. The leaf nodes in the list
will probably have different parents, but I don't think that matters in
this instance.

Forget my earlier advice about GQuery. It's probably over-kill, given
what little I know about the problem you're trying to solve.

Bueno Suerte,
jec

> 
> On Oct 14, 10:40 am, Jeffrey Chimene  wrote:
>> On 10/14/2011 7:00 AM, coffeMan wrote:
>>
>>> I am retrieving XML from a servlet and parsing through it.  the xml
>>> code is one large XML file but on through the servlet.  I can parse
>>> through it easy and get my results but i am not sure when to stop it.
>>> I keep getting NullPointerException that kicks off when it reaches the
>>> end.  I never know when its going to end because every file that i
>>> parse through is different in length.
>>
>>> I am using the DOM parser.  Document messageDom =
>>> XMLParser.parse(srv.getXmlObject());
>>
>>> string name =
>>> messageDom.getElementsByTagName("name").item(n).getFirstChild().getNodeValu 
>>> e();
>>> - n being a variable that is an integer value that increases after
>>> each loop
>>
>> A couple of questions come to mind:
>>
>> 1) Are you sure the document is valid? Does there exist an XML schema
>> against which you can test this document instance? If not, you might
>> consider creating an XML schema, a sample document, and running the pair
>> through a validating parser such as xmllint. Such validation tests can
>> be a useful part of your overall product verification/validation regime.
>>
>> 2) Have you considered using GQuery to produce nodelists? For complex,
>> valid documents it can be a useful tool.
>>
>> 3) Consider using loops controlled by NodeList.length() instead of using
>> the builder pattern to process the tree. In my experience, using loops
>> instead of the builder pattern yields fewer surprises at runtime. I
>> realize there's a "cool factor" to chaining those method calls, but it
>> usually results in issues such as the one you're now trying to resolve.
>>
>> Bueno Suerte,
>> jec
> 

-- 
You received 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: Compiler exception occured. Not able to compile GWT application

2011-10-14 Thread Kevin Jordan
You'll need to put a SomeName.gwt.xml in some directory relative to
the com.gwt classpath that has   and then in
your app's entrypoint module .gwt.xml file you add a line that says
  where SomeName is the module you
name where you're putting your .User stuff.  If you put it in
the .client sub-package relative to your entrypoint .gwt.xml you don't
have to do an inherits.

On Oct 14, 4:52 am, Raghul  wrote:
> I getting the following error while compiling the GWT application.
>
> Any one please help resolve this issue.
>
> Validating newly compiled units
>    Ignored 3 units with compilation errors in first pass.
> Compile with -strict or with -logLevel set to TRACE or DEBUG to see
> all errors.
> [ERROR] An internal compiler exception occurred
> com.google.gwt.dev.jjs.InternalCompilerException: Failed to get JNode
>         at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:140)
>         at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:71)
>         at com.google.gwt.dev.jjs.impl.BuildTypeMap.getType(BuildTypeMap.java:
> 730)
>         at
> com.google.gwt.dev.jjs.impl.BuildTypeMap.createField(BuildTypeMap.java:
> 570)
>         at com.google.gwt.dev.jjs.impl.BuildTypeMap.access
> $300(BuildTypeMap.java:99)
>         at com.google.gwt.dev.jjs.impl.BuildTypeMap
> $BuildDeclMapVisitor.visit(BuildTypeMap.java:180)
>         at
> org.eclipse.jdt.internal.compiler.ast.FieldDeclaration.traverse(FieldDeclar 
> ation.java:
> 285)
>         at
> org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclarat 
> ion.java:
> 1232)
>         at
> org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse(C 
> ompilationUnitDeclaration.java:
> 687)
>         at
> com.google.gwt.dev.jjs.impl.BuildTypeMap.createPeersForNonTypeDecls(BuildTy 
> peMap.java:
> 637)
>         at com.google.gwt.dev.jjs.impl.BuildTypeMap.exec(BuildTypeMap.java:
> 514)
>         at com.google.gwt.dev.jjs.impl.BuildTypeMap.exec(BuildTypeMap.java:
> 523)
>         at
> com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScript 
> Compiler.java:
> 599)
>         at
> com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.jav a:
> 33)
>         at com.google.gwt.dev.Precompile.validate(Precompile.java:187)
>         at com.google.gwt.dev.Compiler.run(Compiler.java:222)
>         at com.google.gwt.dev.Compiler.run(Compiler.java:198)
>         at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
>         at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
> 88)
>         at
> com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRu 
> nner.java:
> 82)
>         at com.google.gwt.dev.Compiler.main(Compiler.java:177)
>    [ERROR] : public class com.gwt.demo.User       extends
> java.lang.Object
> /*   fields   */
> private [unresolved] java.lang.String firstName
> private [unresolved] java.lang.String lastName
> /*   methods   */
> public void (java.lang.String, java.lang.String) throws
> java.lang.Exception
> [unresolved] public void setLastName(java.lang.String)
> [unresolved] private void getLastName() throws java.lang.Exception
>
>       org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding
>    [ERROR] at LoginDemo.java(18): public User user = null;
>       org.eclipse.jdt.internal.compiler.ast.FieldDeclaration

-- 
You received 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: Digest for google-web-toolkit@googlegroups.com - 25 Messages in 14 Topics

2011-10-14 Thread rajandeep vij
On 10/15/11, google-web-toolkit@googlegroups.com
 wrote:
> =
> Today's Topic Summary
> =
>
> Group: google-web-toolkit@googlegroups.com
> Url: http://groups.google.com/group/google-web-toolkit/topics
>
>   - XMLParser EndOfFile question [2 Updates]
> http://groups.google.com/group/google-web-toolkit/t/6ec276d877144b68
>   - Global Event Bus ? [4 Updates]
> http://groups.google.com/group/google-web-toolkit/t/c9ba8a48bc600d99
>   - Thoughts on Adding Widgets [1 Update]
> http://groups.google.com/group/google-web-toolkit/t/906bbce069d9033a
>   - UiBinder & setVisible - Confusing (Inconsistent?) Behaviour [1 Update]
> http://groups.google.com/group/google-web-toolkit/t/9648047d608c47c2
>   - GWT Designer fails under Eclipse 3.7 with latest update [5 Updates]
> http://groups.google.com/group/google-web-toolkit/t/3ea91b1d6f613038
>   - Developers, please don't ignore reported GWT issues. [3 Updates]
> http://groups.google.com/group/google-web-toolkit/t/e60b4d63569e2f08
>   - AutoBean: decoding JSON with an array at the root? [1 Update]
> http://groups.google.com/group/google-web-toolkit/t/731257d0ca6f6258
>   - How do I use a boolean parameter in the Message.Select annotation? [2
> Updates]
> http://groups.google.com/group/google-web-toolkit/t/a2f7376654aca9c4
>   - How to create war file in GWT 2.4 / Eclipse Indigo [1 Update]
> http://groups.google.com/group/google-web-toolkit/t/8689b5258647a2bb
>   - How to add click events to multiple images in a cell/celltable [1
> Update]
> http://groups.google.com/group/google-web-toolkit/t/35f6b316e18b1dfa
>   - GWT App Indexing [1 Update]
> http://groups.google.com/group/google-web-toolkit/t/7a44acce7d8cea24
>   - Is it possible to have a div overlay something, but not catch the clicks
> (ie, "transparent" to clicks?) [1 Update]
> http://groups.google.com/group/google-web-toolkit/t/ee265196c3fa3a4d
>   - Invisible DataGrid [1 Update]
> http://groups.google.com/group/google-web-toolkit/t/52946b8244cd8a24
>   - Compiler exception occured. Not able to compile GWT application [1
> Update]
> http://groups.google.com/group/google-web-toolkit/t/2ed8c5ac7dd0abc1
>
>
> =
> Topic: XMLParser EndOfFile question
> Url: http://groups.google.com/group/google-web-toolkit/t/6ec276d877144b68
> =
>
> -- 1 of 2 --
> From: coffeMan 
> Date: Oct 14 09:32AM -0700
> Url: http://groups.google.com/group/google-web-toolkit/msg/91503267b9a7c63b
>
> I got the solution resolved.i am parsing over 11,000 different
> file types...it is going slow using the DOM Xml Parser...any ideas on
> how to improve performance?
>
> I cannot think of any other way to parse it
>
>
>
> -- 2 of 2 --
> From: Jeff Chimene 
> Date: Oct 14 06:51PM -0700
> Url: http://groups.google.com/group/google-web-toolkit/msg/f7c92df98c256a5a
>
> On 10/14/2011 09:32 AM, coffeMan wrote:
>> file types...it is going slow using the DOM Xml Parser...any ideas on
>> how to improve performance?
>
>> I cannot think of any other way to parse it
>
> Well, first things first: let's clear-up the terminology. I think you
> mean 11x10^3 different documents, all conforming to the same schema.
> You only have /one/ document type: xml.
>
> Please correct my impression otherwise.
>
> Short answer: Form a NodeList of "interesting" leaf nodes, and don't
> worry about the path from the document root to each leaf.
>
> Long answer follows.
>
> 11x10^3 different documents is not unusual in a production environment.
> For example, consider the single DocBook schema, and the count of
> documents derived from that single schema.
>
> Apparently, all you know is that the current document is well-formed.
> You do not know if it's valid. Some might argue that you do not even
> know if the document is well-formed, but let's assume the document was
> produced mechanically, and that all elements, attributes, and PCDATA are
> well-formed.
>
> So, you should only write code that relies on the document's physical
> structure, not its logical structure.
>
> I think that the best you can do is to treat the document as a "flat
> space". Go directly to the child nodes of interest. There's probably
> nothing to gain by parsing the document as though it were a tree (which
> it is, I know...). In other words, given what little I know about your
> specific problem, I believe you are probably just interested in leaf
> nodes. So, form a NodeList of those leaf nodes, and don't worry about
> the path from the document root to each leaf. The leaf nodes in the list
> will probably have different parents, but I don't think that matters in
> this instance.
>
> Forget my earlier advice about GQuery. I

Re: Compiler exception occured. Not able to compile GWT application

2011-10-14 Thread Sudhakar Abraham
Add your project.gwt.xml file in your project directory.  Inherit your
application entrypoint module with  

S. Abraham
www.DataStoreGwt.com
Persist objects directly in Google App Engine



On Oct 14, 2:52 pm, Raghul  wrote:
> I getting the following error while compiling the GWT application.
>
> Any one please help resolve this issue.
>
> Validating newly compiled units
>    Ignored 3 units with compilation errors in first pass.
> Compile with -strict or with -logLevel set to TRACE or DEBUG to see
> all errors.
> [ERROR] An internal compiler exception occurred
> com.google.gwt.dev.jjs.InternalCompilerException: Failed to get JNode
>         at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:140)
>         at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:71)
>         at com.google.gwt.dev.jjs.impl.BuildTypeMap.getType(BuildTypeMap.java:
> 730)
>         at
> com.google.gwt.dev.jjs.impl.BuildTypeMap.createField(BuildTypeMap.java:
> 570)
>         at com.google.gwt.dev.jjs.impl.BuildTypeMap.access
> $300(BuildTypeMap.java:99)
>         at com.google.gwt.dev.jjs.impl.BuildTypeMap
> $BuildDeclMapVisitor.visit(BuildTypeMap.java:180)
>         at
> org.eclipse.jdt.internal.compiler.ast.FieldDeclaration.traverse(FieldDeclaration.java:
> 285)
>         at
> org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java:
> 1232)
>         at
> org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse(CompilationUnitDeclaration.java:
> 687)
>         at
> com.google.gwt.dev.jjs.impl.BuildTypeMap.createPeersForNonTypeDecls(BuildTypeMap.java:
> 637)
>         at com.google.gwt.dev.jjs.impl.BuildTypeMap.exec(BuildTypeMap.java:
> 514)
>         at com.google.gwt.dev.jjs.impl.BuildTypeMap.exec(BuildTypeMap.java:
> 523)
>         at
> com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:
> 599)
>         at
> com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:
> 33)
>         at com.google.gwt.dev.Precompile.validate(Precompile.java:187)
>         at com.google.gwt.dev.Compiler.run(Compiler.java:222)
>         at com.google.gwt.dev.Compiler.run(Compiler.java:198)
>         at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
>         at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
> 88)
>         at
> com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:
> 82)
>         at com.google.gwt.dev.Compiler.main(Compiler.java:177)
>    [ERROR] : public class com.gwt.demo.User       extends
> java.lang.Object
> /*   fields   */
> private [unresolved] java.lang.String firstName
> private [unresolved] java.lang.String lastName
> /*   methods   */
> public void (java.lang.String, java.lang.String) throws
> java.lang.Exception
> [unresolved] public void setLastName(java.lang.String)
> [unresolved] private void getLastName() throws java.lang.Exception
>
>       org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding
>    [ERROR] at LoginDemo.java(18): public User user = null;
>       org.eclipse.jdt.internal.compiler.ast.FieldDeclaration

-- 
You received 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: Invisible DataGrid

2011-10-14 Thread Sudhakar Abraham
Add your DataGrid in  panels like HTMLPanel, HorizontalPanel etc..,.

S. Abraham
www.DataStoreGwt.com
Persist objects directly in Google App Engine

On Oct 14, 8:41 pm, walker1c  wrote:
> Can anyone point me to a working example that uses
> com.google.gwt.user.cellview.client.DataGrid?
>
> The example code in the Javadoc relates to a different widget
> (CellTable).  The code in the GWT showcase is incomplete and seems to
> be full of dependencies related to the showcase infrastructure.
>
> I've pulled the complete showcase code for this widget from SVN and
> modified it to remove the dependencies.  What I get is a page with a
> pager at the bottom showing the correct number of records, but no
> DataGrid at all.  As far as I can tell from inspecting the page in
> Firebug, it never gets rendered.

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