Re: Places Activities - best practice of asynchronous data loading

2012-02-09 Thread Thomas Broyer


On Wednesday, February 8, 2012 12:57:22 PM UTC+1, Zdenek wrote:

 Am I really violating MVP design with the callbacks?


I'd say yes (at least it probably makes things harder to unit-test, which 
is one of the reasons to use MVP int he first place).

Now the question is whether it's a real problem.

My rule of thumb: do what you think is best for you, don't try to achieve 
theoretical purity at all cost, but stay agile and don't fear 
refactoring things if/when you think you found a better solution (as in 
would be better for you, not would move me nearer to theoretical 
purity).

-- 
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/-/8BMc3GaNdSsJ.
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: unexpected padding under canvas element

2012-02-09 Thread Philippe Lhoste

On 08/02/2012 15:03, Chris Price wrote:

Another alternative which fixes the root cause of the issue, is to call -

canvas.getCanvasElement().getStyle().setDisplay(Display.BLOCK);

The problem is that the canvas display mode is inline, which causes
strange alignment issues like these (strange that is, unless you want
it to behave as inline element). You can see this in action by adding
a display:block to the canvas element using your browser's dev tools
at http://gwtcanvasdemo.appspot.com/.


Interesting information.
Indeed, I tend to see canvas as a big bloc element, but it behaves like an image, and can 
be used as small component in the middle of some text, like sparklines, so it makes sense.


Thanks.

--
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --

--
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: MVP framework

2012-02-09 Thread Thomas Broyer
You could simply use a boolean field updated by start(), onStop() and 
onCancel(). In our case, we store the AcceptsOneWidget in a field on 
start() and set the field to 'null' in onStop() and onCancel().

-- 
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/-/z-NkD-q2PgAJ.
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: MVP framework

2012-02-09 Thread Thomas Broyer


On Thursday, February 9, 2012 1:39:10 AM UTC+1, dparish wrote:

 Thomas,

 I'm working on restructuring AppActivityMapper so that I inject in the 
 Activities.  My reasoning for the static injector was it kept me from 
 having gigantic constructor arguments.  If AppActivityMapper has 30 
 activities, that's alot of constructor arguments.


I also prefer constructor injection, but in the case of ActivityMapper-s, 
which have a lot of dependencies, I make an exception and simply use field 
injection:

class AppActivityMapper implements ActivityMapper {
   @Inject ProviderFooActivity fooActivityProvider;
   @Inject ProviderBarActivity barActivityProvider;
   …
 

 MyApp.getInjector().getActivityFoo()  seemed like a very clean way to get 
 around that.  I get that it breaks injection though.


What's the difference between declaring 30 dependencies in 
AppActivityMapper and declaring 30 accessor methods in the Ginjector?

In our case, we actually make an heavy use of assited-inject, so we declare 
factory interfaces within the AppActivityMapper and simply inject that 
factory (I generally prefer declaring an inner Factory interface in the 
type that's being constructed, but we make an exception for activities and 
use a single –or only a few– factory that can provide many activity types, 
and declare it within the ActivityMapper).
Of course, YMMV.

I could pass in the injector but I suspect that's bad form as well ;)


Would still be better than accessing a static field (you could possibly 
mock the Ginjector if you wanted to unit-test your ActivityMapper)
 

-- 
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/-/AsT7yuM3XuoJ.
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: Dates and SafeHTML

2012-02-09 Thread Thomas Broyer
You have the choice to skip sanitization if you trust the value:
http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/safehtml/shared/SafeHtmlUtils.html#fromTrustedString(java.lang.String)

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



if use rename-to in gwt.xml, then cannot run

2012-02-09 Thread tong123123
in gwt.xml
module rename-to='als'

and in service, write a function
@RemoteServiceRelativePath(search)

then in web.xml
servlet-mapping
  url-pattern/als/test/url-pattern
/servlet-mapping

compile, als folder under war
run
the application cannot be run.

then delete the rename-to attribute
in web.xml, servlet-mapping,
use
url-pattern/com.ha.als.ALS/test/url-pattern

delete the als folder under war
compile
a new com.ha.als.ALS folder is created under war
run
everything is normal!!!

why the rename-to attribute cannot function properly?

-- 
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: if use rename-to in gwt.xml, then cannot run

2012-02-09 Thread Jens
You also have to update your host html page which references your 
module-name.nocache.js file. 

-- 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/-/E6zSYSQHcRIJ.
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: if use rename-to in gwt.xml, then cannot run

2012-02-09 Thread tong123123
On Feb 9, 6:47 pm, Jens jens.nehlme...@gmail.com wrote:
 You also have to update your host html page which references your
 module-name.nocache.js file.

 -- J.

Great!! this solve the problem!!

thanks

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



Re: GWT: Google Map in firefox only randomly working

2012-02-09 Thread Steve Moyer
A 304 HTTP status code is supposed to tell the browser that it can
reuse its cached versions of those resources.  I think shift-reload
still forces the new ones to be obtained but you have to ask why the
browser is sending ETag information for resources it apparently
doesn't have.

-- 
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: Getting name of Column in overrided method onColumnSort of ColumnSortEvent.Handler in GWT2.4

2012-02-09 Thread divStar
Hi,

the event-argument you get contains a getColumn()-method, which in
turn returns a Column?,?-object. You can use this to find the column
the user has clicked.
I use a custom Column-class, that itself keeps a name. This way I can
cast the column-object into the class I have created, that has a name
(and is constructed with a name) and simply use
event.getColumn().getName() if I need the name.

Example:

public HidableColumn(CellC cell, String name) {
super(cell);
this.setName(name);
}

then when constructing, I go about it like this:
HidableColumnMyDTO, String column = new HidableColumnMyDTO,
String(new TextCell(), Column) {...

and now you could use ((HidableColumn?,?)
event.getColumn()).getName() to get the name of the column.

Note though: I'm using CellTable and thus it might be different if
using a datagrid as its methods might differ (I don't know since I
haven't used them).

Igor.

-- 
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 hide a column in CellTable

2012-02-09 Thread divStar
Adding and removing the column is - IMO - a bad idea. As far as I
understood there'll be an easier way to add styles to columns in
GWT2.5. However at the moment I've implemented a workaround that works
for me - with some limitations: 
http://code.google.com/p/google-web-toolkit/issues/detail?id=6547#c4
. Basically you add two methods to the CellTable-class (you cannot
extend the CellTable and add the methods in a new class, because the
attributes thead, tfoot and tbody are not available outside the class)
and have to make sure that after a range-change or any other redraw
you reapply the column-styles again.

Igor.

-- 
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: changing pages in GWT

2012-02-09 Thread divStar
I'm not too experienced, even though I'm using GWT for about 2 years
now. My understanding is that you might want to look into Activities
and Places.
I myself solved this in a different manner. Once the user logs in with
username and password, I verify it (and display a loading-circle
meanwhile) and then I could fire a custom GwtEvent - e.g.
PageSwitchEvent. This PageSwitchEvent contains information regarding
which page to navigate to (read: which widget to display in the place
of the Login-panel).
When I fire this event, I tell him to switch to e.g. the Profile-Page
(a Page is - in my application - a widget, that derives from a
VerticalPanel). My base-class, which creates some basic user
interface, implements a handler for the PageSwitchEvent.
So once the PageSwitchEvent is fired, the handler-method inside my
base-class does this:

// Begin PageSwitchEventHandler methods
@Override
public void onSwitchPage(PageSwitchEvent event) {
ODrop.currentPage = event.getPageToSwitchTo();  
// get the
current page
boolean pageAttached = 
(this.getPageContainer().getWidgetCount() ==
3) ? true : false;  // check whether a page is attached
if (pageAttached) {

this.getPageContainer().remove(this.getPageContainer().getWidget(2));   
//
remove the last item, because this is the page
}

this.getPageContainer().add(ODrop.currentPage.getPageContent());
//
attach the new/current page
ODrop.currentPage.load();   

// reload the page
}
// End PageSwitchEventHandler methods

It should be noted that my basic UI consists of a HorizontalPanel,
that has 3 cells: a StackPanel on the left, a narrow button in the
middle (which allows the user to show/hide the StackPanel) and a
maincontent-cell on the right. This maincontent-cell displays the
page currently selected by the user. So whenever I fire a
PageSwitchEvent, the existing Page (widget) is unattached and a new
one (that is passed along with the event and retrieved by
event.getPageToSwitchTo()) is attached. After attaching it, I call the
load-method of the newly attached page.

I'm not sure whether this is good (or even bad) practice, but it works
for me.

Igor.

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



DataGrid IE - Header not aligned with Data, When Horizontal Scroll Bar shows up

2012-02-09 Thread woland
The code below shows a table in the center of a DockLayoutPanel.

If you run this code you'll see that the header is not aligned with
the data when the horizontal bar shows up.

If there's no scrolling then the header is aligned correctly.

Tested with GWT2.4 on

IE8 Windows7 and IE7 WinXP

With Chrome it works.

Is there a work around?
Am I doing something wrong?


public void onModuleLoad()
{
testDockLayoutPanelWithDataGrid();
}

public void testDockLayoutPanelWithDataGrid()
{
final DockLayoutPanel p = new DockLayoutPanel(Unit.PX);

HTML html = new HTML(north);
html.getElement().getStyle().setBackgroundColor(red);
p.addNorth(html, 30);

html = new HTML(east);
html.getElement().getStyle().setBackgroundColor(blue);
p.addEast(html, 200);

html = new HTML(west);
html.getElement().getStyle().setBackgroundColor(green);
p.addWest(html, 200);

DataGrid center = createTable();
p.add(center);

RootLayoutPanel rp = RootLayoutPanel.get();
rp.add(p);
}

DataGrid createTable()
{
ArrayListHashMap list = new ArrayListHashMap();

HashMap row = new HashMap();
row.put(1, true);
row.put(2, Model ABC);
row.put(3, 1X1.5-6);
row.put(4, 0.344);
row.put(5, IRON);
row.put(6, 3,500);
row.put(7, 102);
row.put(8, 4.458);
row.put(9, 57.5);
row.put(10, 31.403);
row.put(11, 5.5);

list.add(row);

DataGrid table = new DataGrid();

Column columnDef2 = new ColumnHashMap, Boolean(new 
CheckboxCell())
{
@Override
public Boolean getValue(HashMap object)
{
return (Boolean) object.get(1);
}
};
table.addColumn(columnDef2, 1);
table.setColumnWidth(columnDef2, 100, Unit.PX);

Column columnDef = new ColumnHashMap, String(new TextCell())
{
@Override
public String getValue(HashMap object)
{
return (String) object.get(2);
}
};
table.addColumn(columnDef, 2);
table.setColumnWidth(columnDef, 100, Unit.PX);

columnDef = new ColumnHashMap, String(new TextCell())
{
@Override
public String getValue(HashMap object)
{
return (String) object.get(3);
}
};
table.addColumn(columnDef, 3);
table.setColumnWidth(columnDef, 100, Unit.PX);

columnDef = new ColumnHashMap, String(new TextCell())
{
@Override
public String getValue(HashMap object)
{
return (String) object.get(4);
}
};
table.addColumn(columnDef, 4);
table.setColumnWidth(columnDef, 100, Unit.PX);

columnDef = new ColumnHashMap, String(new TextCell())
{
@Override
public String getValue(HashMap object)
{
return (String) object.get(5);
}
};
table.addColumn(columnDef, 5);
table.setColumnWidth(columnDef, 100, Unit.PX);

columnDef = new ColumnHashMap, String(new TextCell())
{
@Override
public String getValue(HashMap object)
{
return (String) object.get(6);
}
};
table.addColumn(columnDef, 6);
table.setColumnWidth(columnDef, 100, Unit.PX);

columnDef = new ColumnHashMap, String(new TextCell())
{
@Override
public String getValue(HashMap object)
{
return (String) object.get(7);
}
};
table.addColumn(columnDef, 7);
table.setColumnWidth(columnDef, 100, Unit.PX);

columnDef = new ColumnHashMap, String(new TextCell())
{
  

Re: Dates and SafeHTML

2012-02-09 Thread Patrick Tucker
I realize that, I was just thinking a class that can be appended
directly to a SafeHtmlBuilder would be convenient.  Something like
SafeHtmlString but SafeHtmlDate?

Thanks,
Pat

On Feb 9, 5:28 am, Thomas Broyer t.bro...@gmail.com wrote:
 You have the choice to skip sanitization if you trust the 
 value:http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/googl...)

-- 
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: Dates and SafeHTML

2012-02-09 Thread Patrick Tucker
Now that I have looked a little more into it, something like this
would produce the same result without adding another class to GWT.

  public static SafeHtml fromDate(Date date, String pattern) {
return new
SafeHtmlString(DateTimeFormat.getFormat(htmlEscape(pattern)).format(date));
  }

  public static SafeHtml fromTrustedDate(Date date, String pattern) {
return new
SafeHtmlString(DateTimeFormat.getFormat(pattern).format(date));
  }

On Feb 9, 8:12 am, Patrick Tucker patrick.tuc...@macefusion.com
wrote:
 I realize that, I was just thinking a class that can be appended
 directly to a SafeHtmlBuilder would be convenient.  Something like
 SafeHtmlString but SafeHtmlDate?

 Thanks,
 Pat

 On Feb 9, 5:28 am, Thomas Broyer t.bro...@gmail.com wrote:







  You have the choice to skip sanitization if you trust the 
  value:http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/googl...)

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



RaphaelGWT

2012-02-09 Thread Sandip Chauhan
Hi

Can someone please tell me a link to the complete setup sample example
on raphaelGWT? Also how to compile the code and testing it on the
browser?

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



code splitting in abstract class

2012-02-09 Thread aim
Hi! 
In my current GWT project I have abstract class and many subclasses of it 
and they depends on other heavy parts of application. I need split somehow 
all parts that depends on each inheritor but I can't add manually 
GWT.runAsync in childs. Can I declare something in abstract class to tell 
GWT split all parts in separate JS?
Please give advice! Thank you!

-- 
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/-/doxNrW0QqKEJ.
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 root panel presenter question

2012-02-09 Thread hua....@autodesk.com
Maybe you can use a singleton/static class to store all these values
that need to be accessed cross classes?

On 2月9日, 上午10时29分, Joshua Carey jc11...@gmail.com wrote:
 I am new to gwt and I have followed the examples on gwt page to create a
 simple (3 tabbed) gwt project.  In my root panel view and presenter
 classes, there is a drop down box that has street names.  The drop down has
 about 10 different values with the default being the first one.  My
 question is, if I am in viewing my third tab (customer screen) which is
 class customerpresenter.class and customerview.class.  At the top of the
 screen shows the drop down list box from the rootpanel presenter.  How can
 I get the currently selected value in the drop down list box from rootpanel
 presenter, when im in the code from my 3rd tab (customerpresenter.class),
 how can I access the value of the listbox, since technically they are two
 different classes?

 Thanks,

 Joshua

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



Am I able to write a panel that likes DockLayoutPanel with scroll bar

2012-02-09 Thread linhua
What I want to do is:

Currently, I can only add scroll panel inside the center part of
DockLayoutPanel.

I want all the parts of DockLayoutPanel share a scroll bar.


If can do, how to implement a such class? Which class should I extend
and what interfaces should be implemented?

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



Questions about GWT Layout mechanism

2012-02-09 Thread linhua
1. If I resize a DockLayoutPanel, then which method in DockLayoutPanel
will be called to redo layout?

2. Here is my case:
MyOwnScrollPanel contains DockLayoutPanel (in center) contains another
DockLayoutPanel. (We call it panel2)

I override the onResize() method in MyOwnScrollPanel, it sets its
child DockLayoutPanel's height and width.

But the panel2's height and width is still the 0. If I remove
MyOwnScrollPanel, then everything is OK.

What should I do to make it work?

-- 
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 2.4 DialogBox close-icon

2012-02-09 Thread Patrick Tucker
You have to construct it with your own caption widget.

http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/DialogBox.html#DialogBox(com.google.gwt.user.client.ui.DialogBox.Caption)

It would be nice if there was a better solution, but this is better
than nothing.

On Feb 8, 2:45 pm, gwtTexter harald.eil...@gmail.com wrote:
 I want to add a HTML Widget containing a close-icon with a
 Clickhandler to Dialogbox.setHTML but it only accepts strings.
 According Issue 1405 (http://code.google.com/p/google-web-toolkit/
 issues/detail?id=1405) something is fixed regarding this problem, I'm
 a bit unsure what and in which version it's in.
 Can anyone shed som light on this? I know there is solutions extending
 Dialogbox but if I can skip that it would be great!

-- 
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: Getting name of Column in overrided method onColumnSort of ColumnSortEvent.Handler in GWT2.4

2012-02-09 Thread vaibhav jain
thanks for your suggestion

i am using like below:

ColumnT, String col = (ColumnT, String) event.getColumn();
int index = dataGrid.getColumnIndex(col);
//contains the column name list
 columnList = VO.getColumns();
String columnName =columnList.get(index).getName();

Regards,
vaibhav


On Thu, Feb 9, 2012 at 5:38 PM, divStar divs...@gmail.com wrote:

 Hi,

 the event-argument you get contains a getColumn()-method, which in
 turn returns a Column?,?-object. You can use this to find the column
 the user has clicked.
 I use a custom Column-class, that itself keeps a name. This way I can
 cast the column-object into the class I have created, that has a name
 (and is constructed with a name) and simply use
 event.getColumn().getName() if I need the name.

 Example:

public HidableColumn(CellC cell, String name) {
super(cell);
this.setName(name);
}

 then when constructing, I go about it like this:
HidableColumnMyDTO, String column = new
 HidableColumnMyDTO,
 String(new TextCell(), Column) {...

 and now you could use ((HidableColumn?,?)
 event.getColumn()).getName() to get the name of the column.

 Note though: I'm using CellTable and thus it might be different if
 using a datagrid as its methods might differ (I don't know since I
 haven't used them).

 Igor.

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




-- 
vaibhav jain.

-- 
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 root panel presenter question

2012-02-09 Thread Joshua Carey
I'm a little confused how it all works.  But basically when looking at a
given tab (screen) the rootpanelpresenter is also displayed across the top
of the screen. And on other tabs if you change a value in the dropdown list
from the rootpanelpresenter, it also updates the values displayed on the
current tab (Screen).  So somehow they are communicating but i'm unsure how.

On Thu, Feb 9, 2012 at 2:22 AM, hua@autodesk.com linhu...@citiz.netwrote:

 Maybe you can use a singleton/static class to store all these values
 that need to be accessed cross classes?

 On 2月9日, 上午10时29分, Joshua Carey jc11...@gmail.com wrote:
  I am new to gwt and I have followed the examples on gwt page to create a
  simple (3 tabbed) gwt project.  In my root panel view and presenter
  classes, there is a drop down box that has street names.  The drop down
 has
  about 10 different values with the default being the first one.  My
  question is, if I am in viewing my third tab (customer screen) which is
  class customerpresenter.class and customerview.class.  At the top of the
  screen shows the drop down list box from the rootpanel presenter.  How
 can
  I get the currently selected value in the drop down list box from
 rootpanel
  presenter, when im in the code from my 3rd tab (customerpresenter.class),
  how can I access the value of the listbox, since technically they are two
  different classes?
 
  Thanks,
 
  Joshua

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



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



Re: gwt root panel presenter question

2012-02-09 Thread Joshua Carey
I'm a little confused how it all works.  But basically when looking at a
given tab (screen) the rootpanelpresenter is also displayed across the top
of the screen. And on other tabs if you change a value in the dropdown list
from the rootpanelpresenter, it also updates the values displayed on the
current tab (Screen).  So somehow they are communicating but i'm unsure how.


On Thu, Feb 9, 2012 at 10:07 AM, Joshua Carey jc11...@gmail.com wrote:

 I'm a little confused how it all works.  But basically when looking at a
 given tab (screen) the rootpanelpresenter is also displayed across the top
 of the screen. And on other tabs if you change a value in the dropdown list
 from the rootpanelpresenter, it also updates the values displayed on the
 current tab (Screen).  So somehow they are communicating but i'm unsure how.


 On Thu, Feb 9, 2012 at 2:22 AM, hua@autodesk.com 
 linhu...@citiz.netwrote:

 Maybe you can use a singleton/static class to store all these values
 that need to be accessed cross classes?

 On 2月9日, 上午10时29分, Joshua Carey jc11...@gmail.com wrote:
  I am new to gwt and I have followed the examples on gwt page to create a
  simple (3 tabbed) gwt project.  In my root panel view and presenter
  classes, there is a drop down box that has street names.  The drop down
 has
  about 10 different values with the default being the first one.  My
  question is, if I am in viewing my third tab (customer screen) which is
  class customerpresenter.class and customerview.class.  At the top of the
  screen shows the drop down list box from the rootpanel presenter.  How
 can
  I get the currently selected value in the drop down list box from
 rootpanel
  presenter, when im in the code from my 3rd tab
 (customerpresenter.class),
  how can I access the value of the listbox, since technically they are
 two
  different classes?
 
  Thanks,
 
  Joshua

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



Force RequestFactory to retrieve data from domain object getters?

2012-02-09 Thread Richard
I have a Map in a domain object and I'd really like to pass it through 
RequestFactory.  RF doesn't do Maps, so I now generate a List of KeyValue 
in a getter in my domain object and they have KeyValueProxy equivalents on 
the client side.  It seems that RF bypasses the getter when populating the 
EntityProxy, so that method isn't called.

Is there a simple solution to this that I'm missing?  I'd prefer to stop 
adding levels of hackery to this essentially simple problem.

Richard

-- 
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/-/q7CmRNHfXJ4J.
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: Force RequestFactory to retrieve data from domain object getters?

2012-02-09 Thread Thomas Broyer
Have you referenced the property in a .with() on your request on the 
client-side?
http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html#relationships

-- 
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/-/9G1dE-Z80h0J.
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: Force RequestFactory to retrieve data from domain object getters?

2012-02-09 Thread Richard
No, I hadn't!  Simple solution, fixed.  I've been on that page all day but 
missed that!

Thanks Thomas,
Richard

-- 
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/-/JQei1MbQ7hQJ.
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: RaphaelGWT

2012-02-09 Thread Sebastian Gurin
you have all information bout how to get started using raphaelgwt in its wiki: 
http://code.google.com/p/raphaelgwt/wiki/GettingStarted

Also, if you are just getting started with your project, check out my new 
project raphael4gwt, that I think it supports 100% of the raphaeljs API in 
java. 

Homepage: 
http://code.google.com/p/raphael4gwt/, 

gallery with specific examples and java sources: 
http://cancerbero.vacau.com/gwt/raphael4gwtGallery/

On Wed, 8 Feb 2012 22:48:23 -0800 (PST)
Sandip Chauhan sandipchauhan@gmail.com wrote:

 Hi
 
 Can someone please tell me a link to the complete setup sample example
 on raphaelGWT? Also how to compile the code and testing it on the
 browser?
 
 -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.
 


-- 
Sebastian Gurin sgu...@softpoint.org

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



Is it bad practice to use links like #viewObject104 instead of eventBus.fireEvent(viewObjectEvent(id)) ?

2012-02-09 Thread Drew Spencer
Hi coders,

Hopefully the subject explains the question enough but here's a bit of 
background.

I have been using events for pretty much everything, but while searching 
for a better way than using ButonCell in my CellTable, I discovered that 
using SafeHtml I could generate an anchor with a token, which when clicked 
would add that token to the History. Then, my AppController would parse the 
token and load the correct presenter/view. Seems ok and works with the 
History system well.

I guess what I'm asking is: If my event's job was only to get an ID and 
then load a new presenter/view with that ID, does it need to exist or can I 
just bash a new item in the history from anywhere as long as my 
AppController can handle it?

Thanks as always,

Drew

-- 
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/-/G3-xxaDZ0ggJ.
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.



Can't transfer Java Object between different windows with JSNI

2012-02-09 Thread Luiz Mineo
While working on a feature to an app, that is similar to one found on
gmail, where you can move a gtalk chat to another window, I found some
problems concerning JSNI and child windows. Basically, JSNI works as
expected with objects and functions from another window, except when
it involves transfer Java objects, even when the two windows loads the
exactly same html, meaning the javascript code is the same.

I made an example that shows the problem:

http://pastebin.com/K8NYwL6u

This example shows two different scenarios. In the first, the child
window tries to send a message to parent window (an Integer object).
It works well in prod mode, but in development mode it throws an
exception:

java.lang.NullPointerException: null
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
232)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
136)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:
289)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:
107)
at
com.testjsni.client.TestEntryPoint.notifyParent(TestEntryPoint.java)
at
com.testjsni.client.TestEntryPoint.handleChildWindow(TestEntryPoint.java:
63)
at
com.testjsni.client.TestEntryPoint.onModuleLoad(TestEntryPoint.java:
21)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
396)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
200)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
525)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
363)
at java.lang.Thread.run(Thread.java:662)

In the second scenario, the child window sends a callback object to
parent window, so the parent window can send messages to the other
window. When a message is sent, the callback is triggered on the other
side, but the message is always receveid as a 'null' value. It happens
both in prod and dev modes, but no exception is thrown.

These problems doesn't happen if you use a primitive value (int,
boolean...), a String or a JavaScriptObject as a message. Any other
Java Object or enum type trigger the error.

I'm not sure if this is a bug, or it is supposed to work that way,
since there are no mention about this in the documentation (http://
code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI.html).
Should I post a bug report for this?

Thanks,
Luiz.

-- 
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: ff10 gwt dev plugin x86

2012-02-09 Thread Jim Douglas
Thanks, Alan!  Looks good in Mac OS X Snow Leopard.  Looks like we're
ok now until March 13th.  Now if only Mozilla can resist the urge to
stop breaking things with every new release.

https://wiki.mozilla.org/Releases

On Feb 8, 11:17 am, Alan Leung acle...@google.com wrote:
 The new plugin is pushed:

 https://dl.google.com/dl/gwt/plugins/firefox/1.0.10862/gwt-dev-plugin...

 -Alan







 On Wed, Feb 8, 2012 at 9:33 AM, wbabachan wbabac...@googlemail.com wrote:
  Sorry but it is not working !

  On Feb 6, 7:07 pm, Filipe Sousa nat...@gmail.com wrote:
   and for fedora 16 i686 (no tested)
 http://dl.dropbox.com/u/5176435/gwt-dev-plugin-i686.xpi

  --
  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 bad practice to use links like #viewObject104 instead of eventBus.fireEvent(viewObjectEvent(id)) ?

2012-02-09 Thread KevMo
If you're just passing an ID, I think just using links is a lot better
than making events and listening for them. If you're passing an entire
object, then events are probably better to keep you from making
another call to the server.

I personally prefer links, because it also allows the user to open the
link in another window or tab.

On Feb 9, 9:05 am, Drew Spencer slugmand...@gmail.com wrote:
 Hi coders,

 Hopefully the subject explains the question enough but here's a bit of
 background.

 I have been using events for pretty much everything, but while searching
 for a better way than using ButonCell in my CellTable, I discovered that
 using SafeHtml I could generate an anchor with a token, which when clicked
 would add that token to the History. Then, my AppController would parse the
 token and load the correct presenter/view. Seems ok and works with the
 History system well.

 I guess what I'm asking is: If my event's job was only to get an ID and
 then load a new presenter/view with that ID, does it need to exist or can I
 just bash a new item in the history from anywhere as long as my
 AppController can handle it?

 Thanks as always,

 Drew

-- 
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: Hibernate prematurely flushing within RequestFactoryServlet while building object

2012-02-09 Thread Eric Andresen
Thanks for the information.  I updated all my locators and no longer have 
the flushing problem.

It still seems like the behavior I'm seeing in the RF Servlet is differing 
from what is documented at 
http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryMovingParts#Flow 
where 
it says:


   - The accumulated state is transmitted to the server, where the 
   following operations take place:
  - All domain objects referred to by the payload will be loaded.
  - Proxy objects are created for each referenced domain object. These 
  proxies are used later in the request processing to minimuze the amount 
of 
  data returned to the client.
  - All accumulated operations will be applied to the domain objects by 
  traversing properties of the proxies.
  - All method invocations in the payload are executed.
   
It seems like steps 1 and 3 are getting mixed together here.  I don't know 
if the wiki is an authoritative source or not, so I'm not sure what the 
actual expected behavior is. If the design is that the objects should be 
loaded first, we should probably log an issue.  If not, maybe update the 
wiki.

Thanks,
Eric

-- 
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/-/e1wWTY_dJ40J.
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 bad practice to use links like #viewObject104 instead of eventBus.fireEvent(viewObjectEvent(id)) ?

2012-02-09 Thread Matias Costa
 I personally prefer links, because it also allows the user to open the 
 link in another window or tab. 

And the history works

-- 
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/-/07ITHl41q5QJ.
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.



image can show in debug mode, but not when deloyed to weblogic

2012-02-09 Thread tong123123
in design time, the images is located at
war/Images/abc.png

and I have a class called Commons in client package and stored the
image location as string

public class Commons {
  public static final String abc_path = /Images/abc.png

}

then in the page show image, I write the following
  Image abc = new Image (Commons.abc_path);
  HorizontalPanel imagePanel = new HorizontalPanel();
  imagePanel.add(abc);
  ..

the image can show in development mode, but when compile and deployed
to weblogic,
the images folder still under war folder
war/Images/abc.png

but the image cannot be shown!!

what is the reason?

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



GWT Developer Plugin for Firefox not installing completely

2012-02-09 Thread Allyn
Up until yesterday I was using the GWT Developer Plugin for Firefox
3.6 without issue. Then, suddenly, when I started up Firefox yesterday
it did not recognize the plugin as being installed. In the add-on
list, the plugin stated that I had to restart Firefox to complete the
installation. I tried this, many times, to no avail. I even
reinstalled Firefox and downloaded the plugin again. Still didn't
work. I have no idea what would cause it to not only stop working
suddenly and also not to work when I reinstall everything from
scratch. I selected the option to remove all profile and plugin data
when I tried the re-install.

I'm not really sure what additional information to provide, so if
you're reading this thinking I can't help there's too little
information then please let me know what else I can provide.

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



developer plugin version 1.0.10862 for firefox won't install in firefox 3.6.20 on Ubuntu

2012-02-09 Thread Tim Zheng
I was prompted to install the new version today. But it just won't
install. It says it'll be installed after restart firefox. But after
restarting, it still says it'll be installed after restarting. quite
annoying.

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



iGoogle like page

2012-02-09 Thread RAJ
Hi,

Can you please point me to an article or a thread which help me
develop a site like igoogle, where I can create a host page. I
understand, tht the Gadgets themselves are developed using Gadgets
API, but I would like to have the host page also hosted within my
intranet, so I want to build the host page also, but I am not getting
a good reference for that.

-- 
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 IE - Header not aligned with Data, When Horizontal Scroll Bar shows up

2012-02-09 Thread woland
Well it turns out that for IE8 the compatibilty button was pressed,
while IE7 runs by default on compatibility mode.

On Feb 9, 2:53 pm, woland athensdeve...@gmail.com wrote:
 The code below shows a table in the center of a DockLayoutPanel.

 If you run this code you'll see that the header is not aligned with
 the data when the horizontal bar shows up.

 If there's no scrolling then the header is aligned correctly.

 Tested with GWT2.4 on

 IE8 Windows7 and IE7 WinXP

 With Chrome it works.

 Is there a work around?
 Am I doing something wrong?

     public void onModuleLoad()
         {
                 testDockLayoutPanelWithDataGrid();
         }

         public void testDockLayoutPanelWithDataGrid()
         {
                 final DockLayoutPanel p = new DockLayoutPanel(Unit.PX);

                 HTML html = new HTML(north);
                 html.getElement().getStyle().setBackgroundColor(red);
                 p.addNorth(html, 30);

                 html = new HTML(east);
                 html.getElement().getStyle().setBackgroundColor(blue);
                 p.addEast(html, 200);

                 html = new HTML(west);
                 html.getElement().getStyle().setBackgroundColor(green);
                 p.addWest(html, 200);

                 DataGrid center = createTable();
                 p.add(center);

                 RootLayoutPanel rp = RootLayoutPanel.get();
                 rp.add(p);
         }

         DataGrid createTable()
         {
                 ArrayListHashMap list = new ArrayListHashMap();

                 HashMap row = new HashMap();
                 row.put(1, true);
                 row.put(2, Model ABC);
                 row.put(3, 1X1.5-6);
                 row.put(4, 0.344);
                 row.put(5, IRON);
                 row.put(6, 3,500);
                 row.put(7, 102);
                 row.put(8, 4.458);
                 row.put(9, 57.5);
                 row.put(10, 31.403);
                 row.put(11, 5.5);

                 list.add(row);

                 DataGrid table = new DataGrid();

                 Column columnDef2 = new ColumnHashMap, Boolean(new 
 CheckboxCell())
                 {
                         @Override
                         public Boolean getValue(HashMap object)
                         {
                                 return (Boolean) object.get(1);
                         }
                 };
                 table.addColumn(columnDef2, 1);
                 table.setColumnWidth(columnDef2, 100, Unit.PX);

                 Column columnDef = new ColumnHashMap, String(new TextCell())
                 {
                         @Override
                         public String getValue(HashMap object)
                         {
                                 return (String) object.get(2);
                         }
                 };
                 table.addColumn(columnDef, 2);
                 table.setColumnWidth(columnDef, 100, Unit.PX);

                 columnDef = new ColumnHashMap, String(new TextCell())
                 {
                         @Override
                         public String getValue(HashMap object)
                         {
                                 return (String) object.get(3);
                         }
                 };
                 table.addColumn(columnDef, 3);
                 table.setColumnWidth(columnDef, 100, Unit.PX);

                 columnDef = new ColumnHashMap, String(new TextCell())
                 {
                         @Override
                         public String getValue(HashMap object)
                         {
                                 return (String) object.get(4);
                         }
                 };
                 table.addColumn(columnDef, 4);
                 table.setColumnWidth(columnDef, 100, Unit.PX);

                 columnDef = new ColumnHashMap, String(new TextCell())
                 {
                         @Override
                         public String getValue(HashMap object)
                         {
                                 return (String) object.get(5);
                         }
                 };
                 table.addColumn(columnDef, 5);
                 table.setColumnWidth(columnDef, 100, Unit.PX);

                 columnDef = new ColumnHashMap, String(new TextCell())
                 {
                         @Override
                         public String getValue(HashMap object)
                         {
                                 return (String) object.get(6);
                         }
                 };
                 table.addColumn(columnDef, 6);
                 table.setColumnWidth(columnDef, 100, Unit.PX);

                 columnDef = new ColumnHashMap, String(new TextCell())
                 {
                         @Override
                         public String getValue(HashMap object)
                         {
                                 

Re: DataGrid IE - Header not aligned with Data, When Horizontal Scroll Bar shows up

2012-02-09 Thread woland
Well it turns out that for IE8 the compatibilty button was pressed,
while IE7 runs by default on compatibility mode.

On Feb 9, 2:53 pm, woland athensdeve...@gmail.com wrote:
 The code below shows a table in the center of a DockLayoutPanel.

 If you run this code you'll see that the header is not aligned with
 the data when the horizontal bar shows up.

 If there's no scrolling then the header is aligned correctly.

 Tested with GWT2.4 on

 IE8 Windows7 and IE7 WinXP

 With Chrome it works.

 Is there a work around?
 Am I doing something wrong?

     public void onModuleLoad()
         {
                 testDockLayoutPanelWithDataGrid();
         }

         public void testDockLayoutPanelWithDataGrid()
         {
                 final DockLayoutPanel p = new DockLayoutPanel(Unit.PX);

                 HTML html = new HTML(north);
                 html.getElement().getStyle().setBackgroundColor(red);
                 p.addNorth(html, 30);

                 html = new HTML(east);
                 html.getElement().getStyle().setBackgroundColor(blue);
                 p.addEast(html, 200);

                 html = new HTML(west);
                 html.getElement().getStyle().setBackgroundColor(green);
                 p.addWest(html, 200);

                 DataGrid center = createTable();
                 p.add(center);

                 RootLayoutPanel rp = RootLayoutPanel.get();
                 rp.add(p);
         }

         DataGrid createTable()
         {
                 ArrayListHashMap list = new ArrayListHashMap();

                 HashMap row = new HashMap();
                 row.put(1, true);
                 row.put(2, Model ABC);
                 row.put(3, 1X1.5-6);
                 row.put(4, 0.344);
                 row.put(5, IRON);
                 row.put(6, 3,500);
                 row.put(7, 102);
                 row.put(8, 4.458);
                 row.put(9, 57.5);
                 row.put(10, 31.403);
                 row.put(11, 5.5);

                 list.add(row);

                 DataGrid table = new DataGrid();

                 Column columnDef2 = new ColumnHashMap, Boolean(new 
 CheckboxCell())
                 {
                         @Override
                         public Boolean getValue(HashMap object)
                         {
                                 return (Boolean) object.get(1);
                         }
                 };
                 table.addColumn(columnDef2, 1);
                 table.setColumnWidth(columnDef2, 100, Unit.PX);

                 Column columnDef = new ColumnHashMap, String(new TextCell())
                 {
                         @Override
                         public String getValue(HashMap object)
                         {
                                 return (String) object.get(2);
                         }
                 };
                 table.addColumn(columnDef, 2);
                 table.setColumnWidth(columnDef, 100, Unit.PX);

                 columnDef = new ColumnHashMap, String(new TextCell())
                 {
                         @Override
                         public String getValue(HashMap object)
                         {
                                 return (String) object.get(3);
                         }
                 };
                 table.addColumn(columnDef, 3);
                 table.setColumnWidth(columnDef, 100, Unit.PX);

                 columnDef = new ColumnHashMap, String(new TextCell())
                 {
                         @Override
                         public String getValue(HashMap object)
                         {
                                 return (String) object.get(4);
                         }
                 };
                 table.addColumn(columnDef, 4);
                 table.setColumnWidth(columnDef, 100, Unit.PX);

                 columnDef = new ColumnHashMap, String(new TextCell())
                 {
                         @Override
                         public String getValue(HashMap object)
                         {
                                 return (String) object.get(5);
                         }
                 };
                 table.addColumn(columnDef, 5);
                 table.setColumnWidth(columnDef, 100, Unit.PX);

                 columnDef = new ColumnHashMap, String(new TextCell())
                 {
                         @Override
                         public String getValue(HashMap object)
                         {
                                 return (String) object.get(6);
                         }
                 };
                 table.addColumn(columnDef, 6);
                 table.setColumnWidth(columnDef, 100, Unit.PX);

                 columnDef = new ColumnHashMap, String(new TextCell())
                 {
                         @Override
                         public String getValue(HashMap object)
                         {
                                 

Re: iGoogle like page

2012-02-09 Thread Subhrajyoti Moitra
try
http://shindig.apache.org/

HTH.

Subhro.

On Fri, Feb 10, 2012 at 7:00 AM, RAJ nrwor...@gmail.com wrote:

 Hi,

 Can you please point me to an article or a thread which help me
 develop a site like igoogle, where I can create a host page. I
 understand, tht the Gadgets themselves are developed using Gadgets
 API, but I would like to have the host page also hosted within my
 intranet, so I want to build the host page also, but I am not getting
 a good reference for that.

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



[gwt-contrib] Re: RPC payload question: Why use fully qualified class names?

2012-02-09 Thread Thomas Broyer
There's a 
com.google.gwt.user.RemoteServiceObfuscateTypeNameshttp://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/user/RemoteServiceObfuscateTypeNames.gwt.xml
 module 
since GWT 2.0; I guess it'll do what you're asking for.

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Fix Closure backend with JsNumericEntry (issue1640803)

2012-02-09 Thread acleung

Reviewers: johnlenz,

Description:
Fix Closure backend with JsNumericEntry


Please review this at http://gwt-code-reviews.appspot.com/1640803/

Affected files:
  M dev/core/src/com/google/gwt/dev/js/ClosureJsAstTranslator.java


Index: dev/core/src/com/google/gwt/dev/js/ClosureJsAstTranslator.java
===
--- dev/core/src/com/google/gwt/dev/js/ClosureJsAstTranslator.java	 
(revision 7614)
+++ dev/core/src/com/google/gwt/dev/js/ClosureJsAstTranslator.java	(working  
copy)

@@ -46,6 +46,7 @@
 import com.google.gwt.dev.js.ast.JsNode;
 import com.google.gwt.dev.js.ast.JsNullLiteral;
 import com.google.gwt.dev.js.ast.JsNumberLiteral;
+import com.google.gwt.dev.js.ast.JsNumericEntry;
 import com.google.gwt.dev.js.ast.JsObjectLiteral;
 import com.google.gwt.dev.js.ast.JsParameter;
 import com.google.gwt.dev.js.ast.JsPostfixOperation;
@@ -83,7 +84,7 @@
 import java.util.Set;

 /**
- * Translate a Dart JS AST to a Closure Compiler AST.
+ * Translate a GWT JS AST to a Closure Compiler AST.
  */
 public class ClosureJsAstTranslator {
   private static String getStringValue(double value) {
@@ -420,6 +421,9 @@
   case NULL:
 return transform((JsNullLiteral) x);
   case NUMBER:
+if (x instanceof JsNumericEntry) {
+  return transform((JsNumericEntry) x);
+}
 return transform((JsNumberLiteral) x);
   case REGEXP:
 return transform((JsRegExp) x);
@@ -599,6 +603,10 @@
 return IR.nullNode();
   }

+  private Node transform(JsNumericEntry x) {
+return IR.number(x.getValue());
+  }
+
   private Node transform(JsNumberLiteral x) {
 return IR.number(x.getValue());
   }


--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Updates Missing Plugin Page (issue1641803)

2012-02-09 Thread acleung

Reviewers: conroy,

Description:
Updates Missing Plugin Page


Please review this at http://gwt-code-reviews.appspot.com/1641803/

Affected files:
  M plugins/MissingPlugin/war/MissingPlugin.html


Index: plugins/MissingPlugin/war/MissingPlugin.html
===
--- plugins/MissingPlugin/war/MissingPlugin.html(revision 7614)
+++ plugins/MissingPlugin/war/MissingPlugin.html(working copy)
@@ -35,7 +35,7 @@

   firefox-old :
   {
-caption : Sorry, the GWT Developer Plugin only supports  
Firefox 3.0 - 7.0 at present,
+caption : Sorry, the GWT Developer Plugin only supports  
Firefox 3.0 - 10.0 at present,

 url : http://www.getfirefox.com;,
 supported : false
   },
@@ -175,7 +175,10 @@
   ua.indexOf(rv:2.0) != -1 ||
   ua.indexOf(rv:5.0) != -1 ||
   ua.indexOf(rv:6.0) != -1 ||
-  ua.indexOf(rv:7.0) != -1) {
+  ua.indexOf(rv:7.0) != -1 ||
+  ua.indexOf(rv:8.0) != -1 ||
+  ua.indexOf(rv:9.0) != -1 ||
+  ua.indexOf(rv:10.0) != -1) {
   id = 'firefox';
 } else {
   id = 'firefox-old';


--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Updates Missing Plugin Page (issue1641803)

2012-02-09 Thread jat

LGTM

http://gwt-code-reviews.appspot.com/1641803/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors