Re: please Help me GWT Listbox

2011-01-06 Thread Y2i
Not sure if you can do this with ListBox, but you can try constructing
this through DOM manipulation using SelectElement, OptGroupElement and
OptionElement

On Jan 5, 10:34 pm, vijay gohel vijayigo...@gmail.com wrote:
 i want aout put like

 Group1
      Item1-1
      Item1-2
      Item1-3
      Item1-4
 Group2
      Item2-1
      Item2-2
      Item2-3
      Item2-4
 etc

 for that  in HTML

 there is option in Select Tag and Option in Select Tag is
 optiongroup

 i want that's output in get list box

 thanks

 Vijay

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



Re: Remove gwt.codesvr=127.0.0.1:9997 from http://127.0.0.1:8888/MyApp.html?gwt.codesvr=127.0.0.1:9997

2011-01-06 Thread Abdullah Shaikh
When you run your app in development, gwt.codesvr is there for you to
be able to debug the app. If you compile and deploy the app
gwt.codesvr is not required.

- Abdullah

On Thu, Jan 6, 2011 at 12:19 PM, Noor baken...@gmail.com wrote:
 I am tired of trying to remove gwt.codesvr=127.0.0.1:9997 this from my
 url, I have tried my such as removing argument from run and debug
 configuration or compiling the application but with no success

 Can someone help me

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



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



GWT ResizeComposite widget resizing problem in IE 7

2011-01-06 Thread Lakshitha Ranasinghe
Hi All,
I am developing a GWT application that consists a ResizeComposite as
the main container which is  wrapped in a TabLayoutPanel.

This composite widget contains two child widgets. Left widget is a GWT
tree
and it contains hyperlinks. The right widget is a simple panel that
contains image tiles. The functionality is if user clicks on a link in
the tree the corresponding tiles are loaded to right hand side widget
(simple panel). However, this widget does not get resized according to
the browser resize

For example if I resize the browser window to half size and click one
of the links in the tree. The image tiles are loaded with scrollbars
in the simple panel. Then I resize the browser window and the
ResizeComposite widget does not get resized according to the browser
size. I tried with almost all the possible solutions but no success.

I figured out that the div tag that belongs to ResizeComposite does
not get the size updates but the parent div resizes properly. This
happens only in IE 7 (I used
IE developer plugin for that)

I do not have any experience of using this widget before and I googled
and try this group as well but I haven't found any good answer yet.

Please help.

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



International SimplePager

2011-01-06 Thread Micha Roon
How can the text for the pager be changed so that it displays in the
application's locale?

A my application is in French and German, I need the text to be 1 à
10 de 14 and 1 bis 10 von 14 instead of 1 to 10 of 14

Thank you for your help

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



Re: Remove gwt.codesvr=127.0.0.1:9997 from http://127.0.0.1:8888/MyApp.html?gwt.codesvr=127.0.0.1:9997

2011-01-06 Thread Jaroslav Z?ruba
Anyways, there's the request you can star to move the parameter from URL to 
a cookie, so clicking a link does not break your debugging session.
http://code.google.com/p/google-web-toolkit/issues/detail?id=4367

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



Re: GWT Simple Pager Help

2011-01-06 Thread saklig
Hi Noor,


Heres an example of a Celltable (using a DataProvider):



public class TestTable implements EntryPoint {

private GreetingServiceAsync gService;

private CellTableMyStat table;


/**
 * This is the entry point method.
 */
public void onModuleLoad() {
// Create a CellTable.
table = new CellTableMyStat();

// Create name column.
gService = GWT.create(GreetingService.class);
TextColumnMyStat mIdColumn = new TextColumnMyStat() {
  public String getValue(MyStat stat) {
return +stat.getId();
  }
};

// Create address column.

ColumnMyStat, String machIdColumn = new ColumnMyStat,
String(new EditTextCell()) {
  @Override
  public String getValue(MyStat stat) {
  return stat.getMachineId();
  }
};
machIdColumn.setFieldUpdater(new FieldUpdaterMyStat, String() 
{

@Override
public void update(int index, MyStat object, String 
value) {
object.setMachineId(value);
Window.alert(value);
}
});

TextColumnMyStat msisdnColumn = new TextColumnMyStat() {
  public String getValue(MyStat stat) {
return stat.getMsisdn();
  }
};


ColumnMyStat, String bCol = new ColumnMyStat, String(new
ButtonCell()){

@Override
public String getValue(MyStat myDto) {

return OK;
}

};

bCol.setFieldUpdater(new FieldUpdaterMyStat, String() {

@Override
public void update(int index, MyStat object, String 
value) {
Window.alert(testing);
}
});

// SelectionCell.
final ListString options = new ArrayListString();
options.add(Opt1);
options.add(Opt2);
options.add(Opt3);
options.add(Opt4);
options.add(Opt5);
options.add(Opt6);
options.add(Opt7);
options.add(Opt8);

ColumnMyStat, String colMe = new ColumnMyStat, String(new
SelectionCell(options)) {
@Override
public String getValue(MyStat object) {
  return options.get(object.getOptId());
}
  };

colMe.setFieldUpdater(new FieldUpdaterMyStat, String() {

@Override
public void update(int index, MyStat object, String 
value) {
int i = 0;
for (String category : options) {
if (category.equals(value)) {
object.setOptId(i);
break;
}
i++;
}
}
});

 // Create a data provider.
MyDataProvider dataProvider = new MyDataProvider();

// Add the cellList to the dataProvider.
dataProvider.addDataDisplay(table);

// Add the columns.
table.addColumn(mIdColumn, ID);
table.addColumn(machIdColumn, MachineId);
table.addColumn(bCol, Report);
table.addColumn(msisdnColumn, Msisdn);
table.addColumn(colMe, Country);

// Set the total row count. This isn't strictly necessary, but it
affects
// paging calculations, so its good habit to keep the row count
up to date.
table.setRowCount(10, false);

NoSelectionModelMyStat selectionModel = new
NoSelectionModelMyStat();



table.setSelectionModel(selectionModel);
SimplePager pager = new SimplePager();
pager.setDisplay(table);


RootPanel.get().add(table);
RootPanel.get().add(pager);

}

class MyDataProvider extends AsyncDataProviderMyStat {
/**
 * {...@link #onRangeChanged(HasData)} is called when the table
requests a new
 * range of data. You can push data back to the displays using
 * {...@link #updateRowData(int, List)}.
 */
@Override
protected void onRangeChanged(HasDataMyStat display) {
  // Get the new range.
  final Range range = display.getVisibleRange();

  /*
   * Query the data asynchronously. If you 

Re: Setting HTML on TextCell GWT 2.1.1

2011-01-06 Thread bond
Thanks very much Thomas.
I forget to say that I need that the cell is clickable. So I extended
ClickableTextCell but the HTML is not rendered.
Instead with SafeHtmlCell it is rendered but the cell is not
clickable :-)

Thanks for your suggestions!

Regards

Daniele

On 5 Gen, 18:49, Thomas Broyer t.bro...@gmail.com wrote:
 That's what happens when you take advantage of bugs and then they fix them
 ;-)

 Use a SafeHtmlCell
 instead:http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/g...

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



Re: International SimplePager

2011-01-06 Thread Fernando
http://code.google.com/webtoolkit/doc/1.6/DevGuideI18nAndA11y.html

On Jan 6, 7:59 am, Micha Roon micha.r...@gmail.com wrote:
 How can the text for the pager be changed so that it displays in the
 application's locale?

 A my application is in French and German, I need the text to be 1 à
 10 de 14 and 1 bis 10 von 14 instead of 1 to 10 of 14

 Thank you for your help

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



History, Is An Alternate Implementation Possible?

2011-01-06 Thread cmarsh...@avenue100.com
We have been experimenting with GWT and with the MVP design pattern
but are having trouble with the history mechanism in our proposed UI.
Looking through the many posts there are other people who have
encountered problems similar to what we have but there don't seem to
be conclusive.  Our proposed UI uses a TabLayoutPanel where each tab
is a different function and each tab should be independent of every
other tab.  This includes the browser back and forward buttons working
within the tabs and not across the tabs.

Digging through the code and implementing a ValueChangeHandler and a
PlaceChangeEvent.Handler when the browsers back button is pressed the
ValueChangeHandler is invoked first and then the
PlaceChangeEvent.Handler is invoked.  Looking at the stack both events
seem to originate from a call to HistoryImpl.newItem() and the event
that is generated does include the token from the previous Place
visited within the application (but not necessarily the previous Place
within the current tab).  I presume that HistoryImpl.newItem() is
invoked from within a javascript library supplied by GWT.  Do I have
this right?

Assuming the preceding paragraph is correct it looks as though the key
to changing the behavior of the history mechanism would be replacing
the HistoryImpl class with a class that performs lookups for the
currently visible tab to figure out what the previous or next place
within the tab is.  Both the History and HistoryImpl consist of static
methods and assuming the javascript libraries are invoking the
HistoryImpl.newItem() the existence of the HistoryImpl is probably
baked into the javascript libraries.  Is there a property file or some
other mechanism that controls what HistoryImpl is invoked?  Is it
possible to replace the HistoryImpl and/or History implementation with
one's own implementation?

If it is not possible to replace the HistoryImpl, is there any way to
trap and kill events?  This would mean trapping the events fired as a
result of the invocation of the HistoryImpl.newItem() and then firing
new events with the content for the correct Place within the current
tab.  Is this possible?

From the experimentation I have done with creating my own
PlaceController and PlaceHistoryHandler it looks as though the only
other possible alternative is to let the place change events run their
course and in some way recognize in the Activity/Presenter that this
isn't really where we wanted to be and invoke a goTo to the Place we
really do want to be.

Chris Marshall
Avenue100 Media Solutions

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



GWT Cookies returning null

2011-01-06 Thread Noor
I am becoming almost mad with the GWT Cookies,

in one of my application I set the cookie in an RPC success, but I am
trying to retrieve it in another place of my application, it returns
null.

I know that when setting a variable in an rpc sucess,if we try to
access it elsewhere it result null, so how can i set a cookie an rpc
so that it does not returns null??

Edit:- I am doing something like this:

I do in Main.java

RPC.getUserDetails(new AsyncCallback String())
{
  public void onSuccess(String result)
  {
  Cookies.set(UserDetails,result);
  }
}

Now in another file.java, when i do Cookies.get(UserDetails), I get
null

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



Re: Problem with @sprite

2011-01-06 Thread Jeff Schwartz
Resolved by adding the following to my .ui.xml template:

ui:image field=btndelete16x12 src='btndelete16x12.gif'/

Apparently the image declaration is required because the .ui.xml file
references the .css file in which the @sprite is defined but you would never
have know that from the ambiguous error message I was getting; it was only
through trial and error did I find the above solution.

Anyway, thanks Thomas for trying to help me out on this one.

Jeff


On Wed, Jan 5, 2011 at 5:43 PM, Jeff Schwartz jefftschwa...@gmail.comwrote:

 Hi Thomas,

 Thank you for your explanation. I am at a loss understanding how I create
 the CssResource in the context of the ClientBundle. Can you elaborate on
 that and maybe provide an example? Just to update the information I
 previously provided, I've added

 @Source(lmv/com/client/members/insurance.css)
 Insurance insurance();

 to LMVResources which extends ClientBundle.

 Also, I didn't realize that in Eclipse if I select a resource file, right
 click and use the menu option Google | Add to ClientBundle... that it
 actually creates the interface extending ClientBundle for you. So, I've
 modified the code in my Composite to use the generated file whose name is
 Insurance.java and now it looks like

 interface InsurancePaymentStyle extends Insurance{}

 instead of what I had previously which was


 interface InsurancePaymentStyle extends CssResource {
 String deleteAnchor();
 }

 With the above changes in place I get this error

 16:19:43.624 [ERROR] [lmv] Unable to find ImageResource method
 value(btndelete16x12) in
 lmv.com.client.members.InsurancePaymentDisplayView_InsurancePaymentDisplayViewUiBinderImpl_GenBundle
 : Could not find no-arg method named btndelete16x12 in type
 lmv.com.client.members.InsurancePaymentDisplayView_InsurancePaymentDisplayViewUiBinderImpl_GenBundle

 Also, could it be that because the ClientBundle class, the resource and the
 Composite reside in different packages is what is causing the problem?

 Thanks in advance.

 Jeff


 On Wed, Jan 5, 2011 at 5:12 PM, Thomas Broyer t.bro...@gmail.com wrote:

 A CssResource is always created in the *context* of a ClientBundle, and
 the ImageResource-s are looked up in that ClientBundle. In the snippet you
 posted, there's no (apparent, as you didn't include the ClientBundle where
 InsurancePaymentStyle is used) relationship between LVMResources and
 InsurancePaymentStyle

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




 --
 *Jeff Schwartz*




-- 
*Jeff Schwartz*

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



REST + Spring Security 3.0

2011-01-06 Thread julio
Hi,

I need to use Spring Security 3 in my application which is composed by
Spring 3 for the server side and GWT 2.1 for the client side.

Client side and server side are totally decoupled, I mean they
don't belong to the same project in the eclipse workspace (server side
is managed by maven and client side uses prebuilt ant files) and till
now they communicate each other using Rest/Json.

Googling I found some tutorials and tips about integration with Spring
Security but all of them suppose that client side knows spring-
server-side classes, and so using @Controller @Autowired etc under the
gwt.server package. In my case this is not possible (or not clean to
do).

Is there a way to use Spring Security and keeping the code
decoupled? Maybe for every (rest) client request I should use basic
authentication? And what about a normal login page authentication?

Thanks

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



Re: REST + Spring Security 3.0

2011-01-06 Thread Sebastian Hoß
Well you could use basic authentication by setting username and
password inside the header for every request you make. If you want to
have a login page you can either redirect to the spring security page
(which should redirect you right back) or you can create your own
login page/dialog. The relevant code I've used for that looks like
this:

// POST credentials
final StringBuilder content = new StringBuilder();
content.append(j_username= + URL.encode(this.username.getText()));
content.append(j_password= + URL.encode(this.password.getText()));

final RequestBuilder builder = new
RequestBuilder(RequestBuilder.POST,
URL.encode(/server/j_spring_security_check));
builder.setHeader(Content-Type, application/x-www-form-urlencoded);

try {
builder.sendRequest(content.toString(), Callbacks.login());
} catch (final RequestException e) {
Window.alert(e.getLocalizedMessage());
}

The nice thing about that is, that you'll recieve a cookie from spring
security so you don't have to specify username and password in all
your requests. The only coupling you have with this approach is the
server URI (in this case /server) but this could be moved to a
shared properties file or something similar.

Greets


On Thu, Jan 6, 2011 at 3:04 PM, julio antongiuli...@gmail.com wrote:
 Hi,

 I need to use Spring Security 3 in my application which is composed by
 Spring 3 for the server side and GWT 2.1 for the client side.

 Client side and server side are totally decoupled, I mean they
 don't belong to the same project in the eclipse workspace (server side
 is managed by maven and client side uses prebuilt ant files) and till
 now they communicate each other using Rest/Json.

 Googling I found some tutorials and tips about integration with Spring
 Security but all of them suppose that client side knows spring-
 server-side classes, and so using @Controller @Autowired etc under the
 gwt.server package. In my case this is not possible (or not clean to
 do).

 Is there a way to use Spring Security and keeping the code
 decoupled? Maybe for every (rest) client request I should use basic
 authentication? And what about a normal login page authentication?

 Thanks

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



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



Re: GWT 2.1 compiler option : -noserver

2011-01-06 Thread SVR
Hi Agi,
When use the -noserver from eclipse, I am getting the following error
on the GWT development mode window:

00:00:49.531 [TRACE] Finding entry point classes
00:00:49.531 [ERROR] Unable to find type
'com.xyz.dashboard.prototype.gwt.widget.TxnTopLevelWidget'
00:00:49.531 [ERROR] Hint: Check that the type name
'com.xyz.dashboard.prototype.gwt.widget.TxnTopLevelWidget' is really
what you meant
00:00:49.531 [ERROR] Hint: Check that your classpath includes all
required source roots
00:00:49.531 [ERROR] Failed to load module 'prototype' from user agent
'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13)
Gecko/20101203 Firefox/3.6.13' at localhost:1027

I have set all the classpaths correctly, to give a background, I have
a struts application running on websphere (is it ok to run the
websphere appln from the same eclipse instance?).

thanks




On Tue, Jan 4, 2011 at 4:55 AM, agi agata.p...@gmail.com wrote:
 and how do you exactly run your application? can you paste whole
 command?

 I am using -noserver argument from eclipse and it works just fine..

 On Jan 4, 2:44 am, Srividhya Ramachandran svr...@gmail.com wrote:
 I want to run the appln in Websphere server and trying to explore the
 -noserver option. However I get the following error:

 gwtc:
      [java] Unknown argument: -noserver
      [java] Google Web Toolkit 2.1.0

 has anybody tried this successfully?

 thanks

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



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



Re: please Help me GWT Listbox

2011-01-06 Thread jaybose
Vijay, if you can't figure this out using Y2i's suggestion, consider
using a Tree rather than a ListBox.

http://gwt.google.com/samples/Showcase/Showcase.html#!CwTree


On Jan 6, 2:18 am, Y2i yur...@gmail.com wrote:
 Not sure if you can do this with ListBox, but you can try constructing
 this through DOM manipulation using SelectElement, OptGroupElement and
 OptionElement

 On Jan 5, 10:34 pm, vijay gohel vijayigo...@gmail.com wrote:

  i want aout put like

  Group1
       Item1-1
       Item1-2
       Item1-3
       Item1-4
  Group2
       Item2-1
       Item2-2
       Item2-3
       Item2-4
  etc

  for that  in HTML

  there is option in Select Tag and Option in Select Tag is
  optiongroup

  i want that's output in get list box

  thanks

  Vijay

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



Drawing Tools on GWT Application

2011-01-06 Thread Jay
Hey Folks ,

I am presently developing an Business application , I need to
implement a custom drawing tools for users , where they can drag and
drop images , change connections , etc ( something like designing a
DFD )  . I have done this previously using Microsoft Visio . Is ther
any tool to implement this in eclipse and GWT . Can I integrate Visio
or is there something else ?

Thnx ,
Jay

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



Re: Smart GWT 2.4 Released

2011-01-06 Thread Ezequiel Palumbo
Yes, really good library. I'm using it in a project that just started.
Thanks!

On 5 ene, 10:40, gcstang gcst...@gmail.com wrote:
 Excellent, Thank you for the update!

 On Jan 4, 8:22 am, Sanjiv Jivan sanjiv.ji...@gmail.com wrote: Hi,
  Smart GWT 2.4 has been released.

  Release Announcement 
  :http://www.jroller.com/sjivan/entry/smart_gwt_2_4_released
  Download :http://code.google.com/p/smartgwt/downloads/list
  Showcase Demo :http://www.smartclient.com/smartgwt/showcase/

  The key features of this release are :

  * GWT 2.1.1 compatible
  * Smart GWT QuickStart Guide
  * Offline support with seamless integration with the normal DataSource
  request / response cycle
  * User Defined data highlighting
  * Advanced Hover Components
  * New ultralight Simplicity theme that is virtually image free and easy to
  customize
  * IE Performance improvements
  * ListGrid autofit support
  * 24h cased Calendars
  * Several new Showcase samples

  Feedback welcome.

  Thanks,
  Sanjiv

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



Not able to set BigDecimal value in a grid column using HTMLTable setText function in IE8

2011-01-06 Thread sims
I am receiving following js error when I am trying to set a Bigdecimal
value for a grid column using
HTMLTable  setText function.

This is happening only in IE8 . Works fine in Firefox.

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
3.0.30729; Media Center PC 6.0)
Timestamp: Thu, 30 Dec 2010 18:51:16 UTC

Message: Exception thrown and not caught
Line: 1
Char: 21338
Code: 0
URI: http://dev3.compiere.org/apps/js/bigdecimal.js

This issue happens only when i run the application in hosted mode.
In development mode of eclipse it is working fine.





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



Implementing a ServiceLayerDecorator

2011-01-06 Thread Jan Swaelens
I am experimenting with the RequestFactory and came to a point where I
want to create my own ServiceLayerDecorator.

I have read trough the available documentation and found that I need
to hook my custom service layer decorator up by calling this method
with an instance of my decorator: 'ServiceLayer.create()'.

The code which I have implemented looks like this:

ServiceLayer serviceLayer = ServiceLayer.create(new
MyServiceLayerDecorator());
SimpleRequestProcessor processor = new
SimpleRequestProcessor(serviceLayer);
final EventBus eventBus = new SimpleEventBus();
MyRequestFactory f =
RequestFactoryMagic.create(MyRequestFactory.class);
f.initialize(eventBus, new InProcessRequestTransport(processor));

Now, I tried to run with this code implemented in the 'onModuleLoad'
which is not working (it is referencing server classes and giving the
expected 'source not found for class ABC' errors). I came up with the
idea to implement the code there because my old request factory
initialisation code was also located there.

I am wondering where I need to invoke the 'ServiceLayer.create'
related code in order to get this working.

Thanks a lot for your help!

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



Seek help from GOOGLE-WEB-TOOLKIT project team

2011-01-06 Thread rongxin
It's my honor to know the GOOGLE-WEB-TOOLKIT project team. I am a
student in Hong Kong university of science and technology, and my name
is Wu Rongxin. I would like to seek help from you about GOOGLE-WEB-
TOOLKIT application defects.
Recently, we are doing a research about the java applications and
planning to construct a defect prediction models which can help you
and other developers for java applications to understand the quality
of the project and the probability that the specific source file
contain defects. After reviewing many java applications, we find that
GOOGLE-WEB-TOOLKIT is really a very good project which contains enough
document for defects. However, in order to build a very convincing
model for that, we still need to check the defect data. We don't know
which revisions are used to fix these defects, so can you help me with
identify the defects?
I developed a simple tool for facilitating the process of building
the links, which can be download in
https://docs.google.com/leaf?id=0B9lIQDbQkfMKMDhmN2NjN2EtNmUxNy00MGNjLThkNWItZTEwNTE3NjAzZWU5hl=en
The download files contain the tool, the tool instruction, and the
dataset. Thanks very much. I hope we can establish a partnership, and
we also hope that we can build an open source tool for defect
predictions which can help you in future. Thanks again. Looking
forward to your reply.

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



InterfaceGenerator and @Import

2011-01-06 Thread Tommy K
I've got BlueprintGwtCss.css:
...

/* The last column in a row needs this class. */
.last {
margin-right: 0;
}

...

, which I generate the interface using InterfaceGenerator:


// DO NOT EDIT
// Automatically generated by
com.google.gwt.resources.css.InterfaceGenerator
package my.pkg.client.ui;
import com.google.gwt.resources.client.CssResource;
import com.google.gwt.resources.client.CssResource.ClassName;
interface BlueprintGwtCss extends CssResource {
...

  String last();
...
}


Separately, I have MyappGwtCss.css:

...
.motto span.BlueprintGwtCss-last {
position: relative;
left: 280px;
color: red;
}
...

, which I also generate the interface using InterfaceGenerator:


// DO NOT EDIT
// Automatically generated by
com.google.gwt.resources.css.InterfaceGenerator
package my.pkg.client.ui;
import com.google.gwt.resources.client.CssResource;
import com.google.gwt.resources.client.CssResource.ClassName;
interface MyappGwtCss extends CssResource {
...
  @ClassName(BlueprintGwtCss-last)
  String blueprintGwtCssLast();

  String motto();
...
}


And, I have them both added to my ClientBundle:


package my.pkg.client.ui;

import com.google.gwt.core.client.GWT;
import com.google.gwt.resources.client.CssResource;

public interface ClientBundle extends
com.google.gwt.resources.client.ClientBundle {
public static final ClientBundle INSTANCE =
GWT.create(ClientBundle.class);

 
@com.google.gwt.resources.client.ClientBundle.Source(BlueprintGwtCss.css)
BlueprintGwtCss blueprintCss();

 
@com.google.gwt.resources.client.ClientBundle.Source(MyappGwtCss.css)
@CssResource.Import({BlueprintGwtCss.class})
MyappGwtCss myappCss();
...
}


Notice that in MyappGwtCss.css, I attempt to refer to a prefixed class
defined in BlueprintGwtCss.css. However, something's wrong:

[INFO] [gwt:generateAsync {execution: default}]
[INFO] [gwt:css {execution: generate-css}]
[INFO] Generating [...]/target/generated-sources/gwt/my/pkg/client/ui/
BlueprintGwtCss.java with typeName my.pkg.client.ui.BlueprintGwtCss
[INFO] Generating [...]/target/generated-sources/gwt/my/pkg/client/ui/
MyappGwtCss.java with typeName my.pkg.client.ui.MyappGwtCss
...
[INFO] [gwt:compile {execution: default}]
[INFO] auto discovered modules [my.pkg.MyModule]
[INFO] Compiling module my.pkg.MyModule
[INFO]Scanning for additional dependencies: file:[...]/myapp/src/
main/java/my/pkg/client/ui/ClientBundle.java
[INFO]   Computing all possible rebind results for
'my.pkg.client.ui.ClientBundle'
[INFO]  Rebinding my.pkg.client.ui.ClientBundle
[INFO] Invoking generator
com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
[INFO]Creating assignment for myappCss()
[INFO]   Replacing CSS class names
[INFO]  The following obfuscated style classes
were missing from the source CSS file:
[INFO] [ERROR] BlueprintGwtCss-last: Fix by
adding .BlueprintGwtCss-last{}
[INFO]   [ERROR] Unable to process CSS
...

In other words, I think that I have failed to understand how to
correctly reference a style name defined in an imported scope, but
(since I'm using InterfaceGenerator and regenerating the interfaces at
build time) I am pretty sure that @ImportedWithPrefix will not help.

Can anyone see what I've done wrong? Any CssResource gurus out there?

Thanks,
Tommy K

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



Way to use a ServiceLocator to find a Locator in 2.1.1 RequestFactory?

2011-01-06 Thread Eric Andresen
I'm using the 2.1.1 RequestFactory in a Spring environment.  I would
like to use my Spring Service class to provide both my Entity Locator
and my RequestContext methods.

I can define my object's requestContext as:

@Service(value=MyObjectService.class,locator=SpringServiceLocator.class)
public interface MyObjectRequest extends RequestContext { ... }

and give it a Service Locator that retrieves the service class for the
current scope:

public class SpringServiceLocator implements ServiceLocator
{
@Override
public Object getInstance (Class? clazz)
{
return
ApplicationContextProvider.getContext().getBean(clazz.getSimpleName(),clazz);
}
}

which finds a Service that looks like:
@Scope(session)
@Service(MyObjectService)
@Transactional(isolation = Isolation.DEFAULT, propagation =
Propagation.REQUIRED)
public class MyObjectServiceImpl extends LocatorMyObject, Long
implements MyObjectService { ... }

This part works great.

Is there a way to point the Entity's Locator to this class using
something like a ServiceLocator?  What I'd like is something like
this:

@ProxyFor(value=MyObject.class,locator=MyObjectService.class,locatorLocator=SpringServiceLocator.class)
public interface MyObjectProxy extends EntityProxy { ... }

I'm trying to keep all of my object finders in my MyObjectService
layer, but I don't want GWT to construct it, I want to use a locator
to find the one Spring has already instantiated for me.

Does anyone know of a way to do this other than writing a separate
EntityLocator class that implements the Locator interface and passes
the requests into my Service layer?

Thanks,
Eric

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



EntityProxy with complex data types

2011-01-06 Thread Jan Swaelens
Our application uses a concept of 'complex data types' to represent 
values/properties of an object. Simply put, we have a 'MyInteger' variant 
for 'Integer' values, a 'MyDouble' variant for 'Double' values  (none of 
them actually extends these types, they are rather wrappers). Our data 
object thus contain a number of fields who are all typed as these 
'MyInteger', 'MyDouble' types.

I am trying to re-use our data model objects as entity proxies, which is 
working fine except that the values of these 'fields' are only returned when 
I use the '.with(propertyName)' method on my request context instance.
That approach is not really workable for me as we have many of these fields 
on all of our data objects.

I do understand that in many cases, the experienced behavior is actually 
what you want (=retrieve objects on demand).

I have done some digging around in this group as well as on the internet in 
general, but was not able to find a solution for my problem. I was hoping 
that anyone from the GWT team has some input on how I can get around this 
behavior.

Many thanks!

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



No API environment is registered for this thread when launching GWT devmode

2011-01-06 Thread frank
Hello

I have a GWT App with a GAE backend.
It works fine, if I compile the GWT Frontend an run it against the
local GAE envirinment.

If I try to launch the GWT devmode, I get:
No API environment is registered for this thread

I already asked i the GAE Group but noone coul pelp me.
Does here someone know a solution?.
Thanks

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



GWT RequestFactoy UserInformation

2011-01-06 Thread Łukasz Kidziński
Hi,
I'm new in GWT. I'm working on my first app, and have some problems
with login user. I could try to write some login system by myself but
I hope that there is something out of box. I've found UserInformation
class but I don't know how to use it. There is also tutorial for GWT
1.7 which works fine but I'd like to integrate it somehow with
RequestFactory.
Could you please provide me some link or example?

Thanks in advance,
Lucas Kidzinski

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



handle unchecked exceptions

2011-01-06 Thread klemensr
Hi folks,

I am using GWT 2.0 and JBoss. I have the following situation:
In my servlet filter is occouring an exception
(StaleObjectStateException) but the doFilter Method from the
Servlet.Filter superclass has the following construct:

public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain) throws IOException, ServletException

So I can just throw IOExceptions or ServletExceptions. But thats not
the point. So I throw an ServletException.

On the client side I have to handle these Exception. But since the
ServletException is a unchecked exception GWT is transforming the
Servlet Exception into an InvocationException. The original
ServletException is embedded in the InvocationException but I can't
catch the ServletException anymore.

So is there any possibility to prevent GWT to transform the
ServletException into an InvocationException???

So to recap: I'd like to catch an Exception which occours in the
Servlet.Filter on the client side, but not with the
InvocationException because it is very hard to evaluate the message
body.

Thanks a lot!

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



RE: please Help me GWT Listbox

2011-01-06 Thread nbansal...@gmail.com
Group 1


-Original Message-
From: vijay gohel
Sent:  06/01/2011 12:04:25 pm
Subject:  please Help me  GWT Listbox

i want aout put like

Group1
 Item1-1
 Item1-2
 Item1-3
 Item1-4
Group2
 Item2-1
 Item2-2
 Item2-3
 Item2-4
etc

for that  in HTML

there is option in Select Tag and Option in Select Tag is
optiongroup

i want that's output in get list box

thanks

Vijay


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


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



Google API Lib GWT

2011-01-06 Thread Sudhakar
Guy,

Please tell me how to use the Google API Lib (Visualization,Gears
etc)in Eclipse 3.6 and Eclipse 3.5.

I am using 3.6 in Windows and 3.5 in Ubuntu 10.10.

How to include the jars in CLASSPATH.

Regards,

Sudhakar

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



Re: Google API Lib GWT

2011-01-06 Thread Eric Ayers
Here is a getting started guide for the Maps API

http://code.google.com/p/gwt-google-apis/wiki/MapsGettingStarted
 http://code.google.com/p/gwt-google-apis/wiki/MapsGettingStarted
On Tue, Jan 4, 2011 at 11:55 PM, Sudhakar sudhakar.ferna...@gmail.comwrote:

 Guy,

 Please tell me how to use the Google API Lib (Visualization,Gears
 etc)in Eclipse 3.6 and Eclipse 3.5.

 I am using 3.6 in Windows and 3.5 in Ubuntu 10.10.

 How to include the jars in CLASSPATH.

 Regards,

 Sudhakar

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




-- 
Eric Z. Ayers
Google Web Toolkit, Atlanta, GA USA

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



Re: Dropping support for ie6?

2011-01-06 Thread markM
Big Pharma still using ie6 too.  Moving to ie7 but not there yet.

On Jan 4, 3:37 pm, El Mentecato Mayor rogelio.flo...@gmail.com
wrote:
 -1 for dropping ie6 (same here; big clients still use ie6--
 unfortunately)
 +1 for adding ie9

 On Dec 30 2010, 10:43 am, Peter Ondruska peter.ondru...@gmail.com
 wrote:



  I am very aware of that (working for very big bank which is still at IE6)...
  Something has to be done. And there are already possibilities like Google
  Chrome Frame.- Hide quoted text -

 - Show quoted text -

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



Re: History, Is An Alternate Implementation Possible?

2011-01-06 Thread Ben Imp
Have you pondered simply not using the Places?  I'm not sure if this
is a requirement (or simply a strongly desired outcome) of your
project, but if not, then you can simply roll your own MVP framework.
In the case of my company, we started using GWT before the new place
stuff came about, so we didn't have too much choice but to be
inventive (aka maniacal).

Since nothing in the base GWT libraries calls History.newItem()
(besides a Hyperlink widget), and (as far as I am aware) nothing of
importance listens to those events by default, you can pretty easily
make your own history management mechanism.  I wrap the whole thing in
a ApplicationNavigationControl class, which the various presenters can
poke to cause navigation to different Pages (our equivalent of
Places).  While our application is much more traditional (only one
Page at a time), I could see creating some custom scheme of encoding
the state of multiple tabs into the history token.

If you want the back/forward navigation to only affect the currently
selected tab, that might get a bit tricky, since you will need to keep
around multiple stacks of tokens in your history wrapper, and then
somehow create a composite token to represent the current top item on
all of the stacks.  Or perhaps some other method that additional
caffeine intake might bring about would work as well.

-Ben

On Jan 6, 7:14 am, cmarsh...@avenue100.com cmarsh...@avenue100.com
wrote:
 We have been experimenting with GWT and with the MVP design pattern
 but are having trouble with the history mechanism in our proposed UI.
 Looking through the many posts there are other people who have
 encountered problems similar to what we have but there don't seem to
 be conclusive.  Our proposed UI uses a TabLayoutPanel where each tab
 is a different function and each tab should be independent of every
 other tab.  This includes the browser back and forward buttons working
 within the tabs and not across the tabs.

 Digging through the code and implementing a ValueChangeHandler and a
 PlaceChangeEvent.Handler when the browsers back button is pressed the
 ValueChangeHandler is invoked first and then the
 PlaceChangeEvent.Handler is invoked.  Looking at the stack both events
 seem to originate from a call to HistoryImpl.newItem() and the event
 that is generated does include the token from the previous Place
 visited within the application (but not necessarily the previous Place
 within the current tab).  I presume that HistoryImpl.newItem() is
 invoked from within a javascript library supplied by GWT.  Do I have
 this right?

 Assuming the preceding paragraph is correct it looks as though the key
 to changing the behavior of the history mechanism would be replacing
 the HistoryImpl class with a class that performs lookups for the
 currently visible tab to figure out what the previous or next place
 within the tab is.  Both the History and HistoryImpl consist of static
 methods and assuming the javascript libraries are invoking the
 HistoryImpl.newItem() the existence of the HistoryImpl is probably
 baked into the javascript libraries.  Is there a property file or some
 other mechanism that controls what HistoryImpl is invoked?  Is it
 possible to replace the HistoryImpl and/or History implementation with
 one's own implementation?

 If it is not possible to replace the HistoryImpl, is there any way to
 trap and kill events?  This would mean trapping the events fired as a
 result of the invocation of the HistoryImpl.newItem() and then firing
 new events with the content for the correct Place within the current
 tab.  Is this possible?

 From the experimentation I have done with creating my own
 PlaceController and PlaceHistoryHandler it looks as though the only
 other possible alternative is to let the place change events run their
 course and in some way recognize in the Activity/Presenter that this
 isn't really where we wanted to be and invoke a goTo to the Place we
 really do want to be.

 Chris Marshall
 Avenue100 Media Solutions

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



Re: GWT Cookies returning null

2011-01-06 Thread Ben Imp
It looks like you aren't setting the expiry date on the cookie.  I
believe by default those expire when the session dies.  That might be
your issue.

-Ben

On Jan 6, 7:23 am, Noor baken...@gmail.com wrote:
 I am becoming almost mad with the GWT Cookies,

 in one of my application I set the cookie in an RPC success, but I am
 trying to retrieve it in another place of my application, it returns
 null.

 I know that when setting a variable in an rpc sucess,if we try to
 access it elsewhere it result null, so how can i set a cookie an rpc
 so that it does not returns null??

 Edit:- I am doing something like this:

 I do in Main.java

 RPC.getUserDetails(new AsyncCallback String())
 {
   public void onSuccess(String result)
   {
       Cookies.set(UserDetails,result);
   }

 }

 Now in another file.java, when i do Cookies.get(UserDetails), I get
 null

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



Re: Not able to set BigDecimal value in a grid column using HTMLTable setText function in IE8

2011-01-06 Thread Jeff Schwartz
**Use either BigDecimal's constructor to initialize its value or one of its
valueOf methods to set its value.

Jeff

On Thu, Jan 6, 2011 at 4:58 AM, sims smriti...@gmail.com wrote:

 I am receiving following js error when I am trying to set a Bigdecimal
 value for a grid column using
 HTMLTable  setText function.

 This is happening only in IE8 . Works fine in Firefox.

 User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
 Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
 3.0.30729; Media Center PC 6.0)
 Timestamp: Thu, 30 Dec 2010 18:51:16 UTC

 Message: Exception thrown and not caught
 Line: 1
 Char: 21338
 Code: 0
 URI: http://dev3.compiere.org/apps/js/bigdecimal.js

 This issue happens only when i run the application in hosted mode.
 In development mode of eclipse it is working fine.





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




-- 
*Jeff Schwartz*

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



Re: Problem with java.util.Date

2011-01-06 Thread bond
Hi,
maybe I've some more ideas about this problem.
With the simple code above it works; but I've a bean with several
field. For example


BeanExample

private long id;
private Date date;
private String text;

This bean has getter and setter; when I get the value of date's field
I print his class:

Window.alert(class: +objet.getDate().getClass());

And the class of the objet is java.sql.Date instead of
java.util.Date. In the bean I've imported ONLY java.util.Date.
I think the bug is on Gilead that I used on every bean.

Thanks very much




On 5 Gen, 20:22, Y2i yur...@gmail.com wrote:
  Just copied and tested above code in 2.1.1 and works fine in
  development mode.

 This is what I said earlier: the example also works for me in GWT
 2.1.1...

  Looking at the exception, you are using the setHours() method in the
  sql Date object...

 But if I replace java.util.Date with java.sql.Date the example would
 not compile because java.sql.Date does not have a default
 constructor...http://download.oracle.com/javase/6/docs/api/java/sql/Date.html

 A mystery...

 Initially I thought it might be that setHours() was being passed an
 Integer instead of an int and the Integer was null, but the call was
 explicit setHours(13)...

 What if you call date.setHours(12) or date.setHours(11)?

 Also, check your project settings, may be your project is referring to
 both GWT 2.1.1 and 2.0 at the same time, which may cause some side
 effects.

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



Re: Google API Lib GWT

2011-01-06 Thread sudhakar . fernando
Thanks Eric,

But how to add the jars in Eclipse.any idea?


Empower your Business with BlackBerry® and Mobile Solutions from Etisalat

-Original Message-
From: Eric Ayers zun...@google.com
Sender: google-web-toolkit@googlegroups.com
Date: Thu, 6 Jan 2011 10:03:25 
To: google-web-toolkit@googlegroups.com
Reply-To: google-web-toolkit@googlegroups.com
Subject: Re: Google API Lib GWT

Here is a getting started guide for the Maps API

http://code.google.com/p/gwt-google-apis/wiki/MapsGettingStarted
 http://code.google.com/p/gwt-google-apis/wiki/MapsGettingStarted
On Tue, Jan 4, 2011 at 11:55 PM, Sudhakar sudhakar.ferna...@gmail.comwrote:

 Guy,

 Please tell me how to use the Google API Lib (Visualization,Gears
 etc)in Eclipse 3.6 and Eclipse 3.5.

 I am using 3.6 in Windows and 3.5 in Ubuntu 10.10.

 How to include the jars in CLASSPATH.

 Regards,

 Sudhakar

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




-- 
Eric Z. Ayers
Google Web Toolkit, Atlanta, GA USA

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


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



Re: about gwt listbox

2011-01-06 Thread salk31
I don't think it supports that. This ticket
http://code.google.com/p/google-web-toolkit/issues/detail?id=1167
seems to back that up.

So guess only options are to choose a different widget, write your own
or use one of the libs that builds on core GWT.

On Jan 6, 6:13 am, vijay gohel vijayigo...@gmail.com wrote:
 hi all,

 please check attached image

 i want that kind of output

 please help me to do in gwt listbix

 --
 Regards,
 Vijay Gohel

  listboxoutput.bmp
 436KViewDownload

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



Re: REST + Spring Security 3.0

2011-01-06 Thread julio
thanks Sebastian for the reply

the basic authentication I think has worse performance than login
page has it must authenticate every time (well, I could forge ad
hoc filters chain but it always will hit the db) and u have not a real
logout.

with ur snippet i will use the login page :)

On Jan 6, 2:24 pm, Sebastian Hoß m...@shoss.de wrote:
 Well you could use basic authentication by setting username and
 password inside the header for every request you make. If you want to
 have a login page you can either redirect to the spring security page
 (which should redirect you right back) or you can create your own
 login page/dialog. The relevant code I've used for that looks like
 this:

         // POST credentials
         final StringBuilder content = new StringBuilder();
         content.append(j_username= + URL.encode(this.username.getText()));
         content.append(j_password= + URL.encode(this.password.getText()));

         final RequestBuilder builder = new
 RequestBuilder(RequestBuilder.POST,
 URL.encode(/server/j_spring_security_check));
         builder.setHeader(Content-Type, 
 application/x-www-form-urlencoded);

         try {
             builder.sendRequest(content.toString(), Callbacks.login());
         } catch (final RequestException e) {
             Window.alert(e.getLocalizedMessage());
         }

 The nice thing about that is, that you'll recieve a cookie from spring
 security so you don't have to specify username and password in all
 your requests. The only coupling you have with this approach is the
 server URI (in this case /server) but this could be moved to a
 shared properties file or something similar.

 Greets

 On Thu, Jan 6, 2011 at 3:04 PM, julio antongiuli...@gmail.com wrote:
  Hi,

  I need to use Spring Security 3 in my application which is composed by
  Spring 3 for the server side and GWT 2.1 for the client side.

  Client side and server side are totally decoupled, I mean they
  don't belong to the same project in the eclipse workspace (server side
  is managed by maven and client side uses prebuilt ant files) and till
  now they communicate each other using Rest/Json.

  Googling I found some tutorials and tips about integration with Spring
  Security but all of them suppose that client side knows spring-
  server-side classes, and so using @Controller @Autowired etc under the
  gwt.server package. In my case this is not possible (or not clean to
  do).

  Is there a way to use Spring Security and keeping the code
  decoupled? Maybe for every (rest) client request I should use basic
  authentication? And what about a normal login page authentication?

  Thanks

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

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



Re: DatePicker now starting with Monday, used to be Sunday

2011-01-06 Thread Dan
Adding those two lines to the gwt.xml file does the job.

However, now my compiles make 10 permutations, rather than 5. Is there
a way to get that back to 5 permutations?


On Jan 5, 12:14 pm, John LaBanca jlaba...@google.com wrote:
 Are you using the default locale?  I'm pretty sure that the start of week
 info comes from the CDLR locale data, which we update periodically from some
 open source resource.  Showcase uses the en locale, which starts on
 Sunday.  If you switch the app to French, you'll see it starts on Monday (L
 = Lundi = Monday in French).

 You can try adding the following lines to your gwt.xml file as a workaround:
   extend-property name=locale values=en/
   set-property-fallback name=locale value=en/

 @jat - Did the start of the week change for the default locale after some
 recent CDLR update?

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







 On Wed, Jan 5, 2011 at 10:57 AM, Ben Imp benlee...@gmail.com wrote:
  I experienced this as well.  I noticed it right after I upgraded to
  GWT 2.1, so I assume that must have done it.  I've ignored it so far,
  as no one in my organization seems to care, but I must admit, I am
  curious as to the cause.

  -Ben

  On Jan 5, 9:51 am, Dan danpr...@gmail.com wrote:
   My DatePicker in my program used to start with Sunday, but since some
   time recently--I don't know when--it has been starting with Monday.

   I've done nothing in this area.

   What do I do to get it back to starting with Sunday?

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

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



Re: Implementing a ServiceLayerDecorator

2011-01-06 Thread David Chandler
Jan,

It looks like the code you've implemented comes from the comments in
this unit test class, which has access to both client and server code:

http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/requestfactory/server/testing/InProcessRequestTransport.java?spec=svn9374r=9374

But in application code, as you've discovered, you can't call
ServiceLayer.create in the client. The way I've added a
ServiceLayerDecorator is to extend RequestFactoryServlet and override
the no-arg constructor to add my custom decorator:

public class MyRequestFactoryServlet extends RequestFactoryServlet {

public MyRequestFactoryServlet() {
this(new DefaultExceptionHandler(), new MySLD());
}

public MyRequestFactoryServlet(ExceptionHandler exceptionHandler,
ServiceLayerDecorator... serviceDecorators) {
super(exceptionHandler, serviceDecorators);
}
}

Don't forget to register MyRequestFactoryServlet in web.xml in place
of RequestFactoryServlet.

HTH,
/dmc

On Thu, Jan 6, 2011 at 3:22 AM, Jan Swaelens jan.swael...@gmail.com wrote:
 I am experimenting with the RequestFactory and came to a point where I
 want to create my own ServiceLayerDecorator.

 I have read trough the available documentation and found that I need
 to hook my custom service layer decorator up by calling this method
 with an instance of my decorator: 'ServiceLayer.create()'.

 The code which I have implemented looks like this:

 ServiceLayer serviceLayer = ServiceLayer.create(new
 MyServiceLayerDecorator());
 SimpleRequestProcessor processor = new
 SimpleRequestProcessor(serviceLayer);
 final EventBus eventBus = new SimpleEventBus();
 MyRequestFactory f =
 RequestFactoryMagic.create(MyRequestFactory.class);
 f.initialize(eventBus, new InProcessRequestTransport(processor));

 Now, I tried to run with this code implemented in the 'onModuleLoad'
 which is not working (it is referencing server classes and giving the
 expected 'source not found for class ABC' errors). I came up with the
 idea to implement the code there because my old request factory
 initialisation code was also located there.

 I am wondering where I need to invoke the 'ServiceLayer.create'
 related code in order to get this working.

 Thanks a lot for your help!

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





-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

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



Re: Dropping support for ie6?

2011-01-06 Thread Jeff Schwartz
-/+ 1 IE6
+1 IE9

On Dec 27, 2010 2:22 AM, marius.andreiana marius.andrei...@gmail.com
wrote:

Hi,

GWT 2.1.1 dropped support for firefox 1.0.

What do you think about next GWT release dropping support for ie6?
(while introducing support for ie9 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.

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



deploy GWT app with Tomcat istead GAE..

2011-01-06 Thread Sebe
Hello everyone
I have a GWT application, created using the tutorial of Google Code ..
but I would deploy it to Tomcat. Can someone tell me the basics to use
Eclipse with Tomcat instead of Jetty / Google App Engine? At the
moment I'm a bit confused and did not find anything on the Internet
that can help me

Thanks to all

Regards

Sebe

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



Does SuggestBox.setOracle(SuggestOracle) have to be private?

2011-01-06 Thread Patrick Tucker
I have a form that depending upon a listbox value that the user
selects needs different suggestions.

Currently I have 1 SuggestOracle and I have to clear it and reload it,
with values from the server, every time the user changes the ListBox.
What I would like to do is store a SuggestOracle for each value and
swap the oracle out every time the user changes the ListBox value.

If I was to modify the SuggestBox code in my project to make setOracle
public would there be any negative reprocussions?

Thanks,
Pat

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



Re: Setting HTML on TextCell GWT 2.1.1

2011-01-06 Thread Thomas Broyer
Maybe you could then pass a SafeHtmlRenderer to the constructor of 
ClickableTextCell/TextCell, that uses SafeHtmlUtils.fromTrustedString 
(instead of relying on the SimpleSafeHtmlRenderer that's used by default 
with the no-arg constructor, that uses SafeHtmlUtils.fromString)

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



Re: Way to use a ServiceLocator to find a Locator in 2.1.1 RequestFactory?

2011-01-06 Thread Thomas Broyer


On Wednesday, January 5, 2011 11:05:10 PM UTC+1, Eric Andresen wrote:

 I'm using the 2.1.1 RequestFactory in a Spring environment.  I would 
 like to use my Spring Service class to provide both my Entity Locator 
 and my RequestContext methods. 

 I can define my object's requestContext as: 

 @Service(value=MyObjectService.class,locator=SpringServiceLocator.class) 
 public interface MyObjectRequest extends RequestContext { ... } 

 and give it a Service Locator that retrieves the service class for the 
 current scope: 

 public class SpringServiceLocator implements ServiceLocator 
 { 
 @Override 
 public Object getInstance (Class? clazz) 
 { 
 return 
 ApplicationContextProvider.getContext().getBean(clazz.getSimpleName(),clazz); 

 } 
 } 

 which finds a Service that looks like: 
 @Scope(session) 
 @Service(MyObjectService) 
 @Transactional(isolation = Isolation.DEFAULT, propagation = 
 Propagation.REQUIRED) 
 public class MyObjectServiceImpl extends LocatorMyObject, Long 
 implements MyObjectService { ... } 

 This part works great.


Actually, no: RequestFactory aggressively caches locators and service 
instances and re-uses them across requests. So your service won't have it's 
@Scope(session) applied at all (unless Spring actually proxies it to 
always hit the correct instance? – disclaimer: I don't use Spring).

Is there a way to point the Entity's Locator to this class using 
 something like a ServiceLocator?  What I'd like is something like 
 this: 

 @ProxyFor(value=MyObject.class,locator=MyObjectService.class,locatorLocator=SpringServiceLocator.class)
  

 public interface MyObjectProxy extends EntityProxy { ... } 

 I'm trying to keep all of my object finders in my MyObjectService 
 layer, but I don't want GWT to construct it, I want to use a locator 
 to find the one Spring has already instantiated for me.


Then you have to define a ServiceLayerDecorator and override createLocator 
to use Spring instead of the default implementation (which instantiates it 
using a no-arg constructor).
To use that ServiceLayerDecorator, you have to extend RequestFactoryServlet 
and pass the decorator to the servlet's constructor.

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



Re: History, Is An Alternate Implementation Possible?

2011-01-06 Thread Thomas Broyer
Well, PlaceHistoryHandler uses an Historian (DefaultHistorian by default, 
which delegates to the History class), so you can easily replace the 
implementation there.
But really, I wonder how you'll make it work OK with the back/forward 
browser buttons, particularly when going back/forth not a single place at 
a time (i.e. open the back/forth menu and go several steps back/forth; 
similar issue with bookmarks).

IMO, what you're trying to do is simply impossible.

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



Re: DatePicker now starting with Monday, used to be Sunday

2011-01-06 Thread Thomas Broyer
Add a third line:
set-property name=locale value=en/

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



Re: DatePicker now starting with Monday, used to be Sunday

2011-01-06 Thread Dan
Thank you Thomas (and others). It is all working well now.

On Jan 6, 11:43 am, Thomas Broyer t.bro...@gmail.com wrote:
 Add a third line:
 set-property name=locale value=en/

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



Composite Primary Keys (Many-to-Many relationship)

2011-01-06 Thread Aldo Neto
Hi all,

I'm trying to create a Many-to-Many relationship and add a couple of fields
to it. I based my mapping on this post:
http://sieze.wordpress.com/2009/09/04/mapping-a-many-to-many-join-table-with-extra-column-using-jpa/
(which
was very clear and helpful).

Summarizing the mapping on that blog (Product, Item and ProductItem), we'll
have the the code below. I reproduced that on my mapping and I was able to
add a Product X Item to it. However, when I try to add the same Item to a
second Product, I get the following error message:

*Server Error: org.hibernate.NonUniqueObjectException: a different
object with the same identifier value was already associated with the
session*

The strange thing is that it works just fine when I try to add a second Item
to the same product (so Products may have several Items, but an Item cannot
belong to several Products).

I played a little bit with the annotations and either I keep getting this
error message or the ProductItem references on Product and Item are not
updated correctly.

Does anyone knows what I'm doing wrong here? I'm really running out of
ideas.

Thanks,
Aldo


@Entity
@Table(name = item)public class Item {

...

/*
 * Here is the annotation to add in order to
 * Hibernate to automatically insert and update
 * ProducItems (if any)
 */
@OneToMany(fetch = FetchType.LAZY, mappedBy = pk.item, cascade =
{CascadeType.PERSIST, CascadeType.MERGE})
@Cascade({org.hibernate.annotations.CascadeType.SAVE_UPDATE,
org.hibernate.annotations.CascadeType.DELETE_ORPHAN})

public ListProductItem getProductItems() { return this.productItems; }

}


@Entity
@Table(name = product)public class Product {

...

/*
 * I just followed the same annotations on getProductItems()
 */
@OneToMany(fetch = FetchType.LAZY, mappedBy = pk.product,
cascade = {CascadeType.PERSIST, CascadeType.MERGE})
@Cascade({org.hibernate.annotations.CascadeType.SAVE_UPDATE,
org.hibernate.annotations.CascadeType.DELETE_ORPHAN})

public ListProductItem getProductItems() {

return this.productItems;
}

}


@Entity
@Table(name = product_item)
@AssociationOverrides({
@AssociationOverride(name = pk.item, joinColumns = @JoinColumn(name
= item_id)),
@AssociationOverride(name = pk.product, joinColumns =
@JoinColumn(name = product_id))})public class ProductItem {

...

private ProductItemPk pk = new ProductItemPk();

@EmbeddedId
private ProductItemPk getPk() {
return pk;
}

}

@Embeddablepublic class ProductItemPk implements Serializable {
private Item item;
private Product product;

...

}

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



Re: GWT Cookies returning null

2011-01-06 Thread Noor

No this is not the problem, i have tried setting an expiry date of 7
days

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



Re: Does SuggestBox.setOracle(SuggestOracle) have to be private?

2011-01-06 Thread Patrick Tucker
Thats a good idea, I will look into doing that instead.

The SuggestBox isn't going to have any problems with the SuggestOracle
being changed even though, if implemented this way, it doesn't know it
is being changed?

Thanks again,
Pat

On Jan 6, 11:46 am, Thomas Broyer t.bro...@gmail.com wrote:
 How about having a SuggestOracle that simply delegates to another
 SuggestOracle, and on which one you can swap the delegate? So, instead of
 suggestBox.setOracle(...), you'd call mySwappableOracle.setOracle(...)

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



Update ParentProxy with ListChildProxy using EditorChildProxy

2011-01-06 Thread -sowdri-
Dear All,

Given below is the source code, I'm not sure whether this is the right way 
of doing it. 
Anyways the object AcademicYear is not being persisted, in spite of that, 
I get a success on callback.

School.java (Parent)
http://pastebin.com/EYByVgBR


AcademicYear.java (Child)
http://pastebin.com/jHJre9Gt

Method: addAcademicYear()
http://pastebin.com/xpVpLQ5j

Method: savaAcademicYear()
http://pastebin.com/0VtHJcru

Any help is appreciated!

Thanks in advance.
PS: Is it convenient to use pastebin? or inline is preferred?



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



Re: History, Is An Alternate Implementation Possible?

2011-01-06 Thread Jeff Schwartz
I agree with Thomas and would add the behavior your are seeking to implement
is counter intuitive to what people expect when using browser history. As
such then I'd either try to adapt the application so that the browsers
navigation mechanism maintains the user's expectations or forgo using
history altogether which isn't such a far fetched idea considering the power
that GWT provides for creating applications that mimic desktop applications;
you can legitimately consider not using history a viable solution. I've done
just that when I was in the designing phase of my latest application,
http://lovemyvehicle.appspot.com/, and I decided to only use navigation for
the registration process which is sort of a wizard (at least at this time,
it might change as I give it more thought and get more feedback). Once a
user has become a member and logs into the application it uses no navigation
at all.

The application my members see is highly modeless. State is maintained in
most of the views so that switching to another view and then back using the
applications menu structure brings the user back to the same view and state
they were at before they switched views. Communication between views is via
an EventBus and events are consumed by all concerned views so that when one
view's state is changed it is immediately picked up by any view interested
in the event. This model is very intuitive and I am getting a lot of good
feedback on it.

So what I am suggesting is that there are alternatives to history if you are
so inclined to imagine them.

Good luck.

Jeff


On Thu, Jan 6, 2011 at 11:40 AM, Thomas Broyer t.bro...@gmail.com wrote:

 Well, PlaceHistoryHandler uses an Historian (DefaultHistorian by default,
 which delegates to the History class), so you can easily replace the
 implementation there.
 But really, I wonder how you'll make it work OK with the back/forward
 browser buttons, particularly when going back/forth not a single place at
 a time (i.e. open the back/forth menu and go several steps back/forth;
 similar issue with bookmarks).

 IMO, what you're trying to do is simply impossible.

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




-- 
*Jeff Schwartz*

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



Re: History, Is An Alternate Implementation Possible?

2011-01-06 Thread Jeff Schwartz
BTW, the app is still in development and there's lots of good stuff still
left to implement but I have a rather large number of members already who I
think are mostly interested in (at this time so far) seeing how my
implementation is progressing.

Jeff

On Thu, Jan 6, 2011 at 12:10 PM, Jeff Schwartz jefftschwa...@gmail.comwrote:

 I agree with Thomas and would add the behavior your are seeking to
 implement is counter intuitive to what people expect when using browser
 history. As such then I'd either try to adapt the application so that the
 browsers navigation mechanism maintains the user's expectations or forgo
 using history altogether which isn't such a far fetched idea considering the
 power that GWT provides for creating applications that mimic desktop
 applications; you can legitimately consider not using history a viable
 solution. I've done just that when I was in the designing phase of my latest
 application, http://lovemyvehicle.appspot.com/, and I decided to only use
 navigation for the registration process which is sort of a wizard (at least
 at this time, it might change as I give it more thought and get more
 feedback). Once a user has become a member and logs into the application it
 uses no navigation at all.

 The application my members see is highly modeless. State is maintained in
 most of the views so that switching to another view and then back using the
 applications menu structure brings the user back to the same view and state
 they were at before they switched views. Communication between views is via
 an EventBus and events are consumed by all concerned views so that when one
 view's state is changed it is immediately picked up by any view interested
 in the event. This model is very intuitive and I am getting a lot of good
 feedback on it.

 So what I am suggesting is that there are alternatives to history if you
 are so inclined to imagine them.

 Good luck.

 Jeff



 On Thu, Jan 6, 2011 at 11:40 AM, Thomas Broyer t.bro...@gmail.com wrote:

 Well, PlaceHistoryHandler uses an Historian (DefaultHistorian by default,
 which delegates to the History class), so you can easily replace the
 implementation there.
 But really, I wonder how you'll make it work OK with the back/forward
 browser buttons, particularly when going back/forth not a single place at
 a time (i.e. open the back/forth menu and go several steps back/forth;
 similar issue with bookmarks).

 IMO, what you're trying to do is simply impossible.

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




 --
 *Jeff Schwartz*




-- 
*Jeff Schwartz*

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



uploading to amazon s3

2011-01-06 Thread t.dave
hi all, wondered if anyone has had any success doing reliable and
robust uploads to amazon s3 directly from the browser?  i need to
upload mp3 files at 3-10ish MB a pop.

i have it working using the GWT-S3 library (http://code.google.com/p/
gwt-s3/) which basically translates into doing glorified form posts.
this works great for smaller image files but the problem i'm running
into is that occasionally uploads (especially of larger files) seem to
disappear into the ether and just spin forever.  i'm looking at
building in a timeout and upload verification, but would also like to
explore something that is flash-based, along the lines of one of these
libraries:

swfupload-gwt - http://code.google.com/p/swfupload-gwt/
gwtswfext - http://code.google.com/p/gwtswfext/
gwt-plupload - http://code.google.com/p/gwt-plupload/

of these i've made attempts with swfupload-gwt and gwtswfext (both of
these libraries are wrappers to swfupload flash uploader) and made the
most progress with gwtswfext.  that said, i can't actually get the
uploads to work with that library as of yet.

i've found examples of using these libraries and examples of uploading
to amazon s3, but very little crossover between the two.  so before i
start asking any specific questions or posting specific error
messages, wanted to ask if there's anyone on the list with experience
in this or who might be able to provide any examples along these
lines.

thanks in advance!

dave

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



Re: about gwt listbox

2011-01-06 Thread Thad
The code in this message worked for me in Firefox and IE, but not with
Safari 5:

http://groups.google.com/group/google-web-toolkit/msg/5c44460a11ad950b

I haven't looked into the whys of that, but if anyone figures out a
solution, I'd be interested.  I had to settle for a kludge of multiple
list boxes and hide/show via radio buttons to get something out the
door on time.

On Jan 6, 10:33 am, salk31 s...@redspr.com wrote:
 I don't think it supports that. This 
 tickethttp://code.google.com/p/google-web-toolkit/issues/detail?id=1167
 seems to back that up.

 So guess only options are to choose a different widget, write your own
 or use one of the libs that builds on core GWT.

 On Jan 6, 6:13 am, vijay gohel vijayigo...@gmail.com wrote:

  hi all,

  please check attached image

  i want that kind of output

  please help me to do in gwt listbix

  --
  Regards,
  Vijay Gohel

   listboxoutput.bmp
  436KViewDownload

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



Re: Google API Lib GWT

2011-01-06 Thread Eric Ayers
Those instructions assume you are using eclipse.  Follow the link in the
Getting Started guide I posted above to the Google Plugin for Eclipse and
make sure its installed.  Adding the jar file is the same as any other
Eclipse project (go to the 'Project' menu add add the .jar file to your
classpath).  Try working through the Getting Started guilde which will walk
you through creating a sample project.

On Thu, Jan 6, 2011 at 10:32 AM, sudhakar.ferna...@gmail.com wrote:

 Thanks Eric,

 But how to add the jars in Eclipse.any idea?

 Empower your Business with BlackBerry® and Mobile Solutions from Etisalat
 --
 *From: * Eric Ayers zun...@google.com
 *Sender: * google-web-toolkit@googlegroups.com
 *Date: *Thu, 6 Jan 2011 10:03:25 -0500
 *To: *google-web-toolkit@googlegroups.com
 *ReplyTo: * google-web-toolkit@googlegroups.com
 *Subject: *Re: Google API Lib GWT

 Here is a getting started guide for the Maps API

 http://code.google.com/p/gwt-google-apis/wiki/MapsGettingStarted
  http://code.google.com/p/gwt-google-apis/wiki/MapsGettingStarted
 On Tue, Jan 4, 2011 at 11:55 PM, Sudhakar sudhakar.ferna...@gmail.comwrote:

 Guy,

 Please tell me how to use the Google API Lib (Visualization,Gears
 etc)in Eclipse 3.6 and Eclipse 3.5.

 I am using 3.6 in Windows and 3.5 in Ubuntu 10.10.

 How to include the jars in CLASSPATH.

 Regards,

 Sudhakar

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




 --
 Eric Z. Ayers
 Google Web Toolkit, Atlanta, GA USA

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

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




-- 
Eric Z. Ayers
Google Web Toolkit, Atlanta, GA USA

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



Launching dev mode does not overwrite nocache.js

2011-01-06 Thread John Huss
I use the same directory for running dev mode and for doing a regular gwt 
compile.  If I compile first and then try to run dev mode, it won't connect 
to dev mode because it doesn't overwrite the compiled output with a new 
nocache.js file.  Am I doing something wrong, or is this just how it is 
supposed to work?  I have to delete the compiled output in order to run in 
dev mode again.

Thanks

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



Re: Google API Lib GWT

2011-01-06 Thread sudhakar . fernando
Thanks a lot Eric
Empower your Business with BlackBerry® and Mobile Solutions from Etisalat

-Original Message-
From: Eric Ayers zun...@google.com
Sender: google-web-toolkit@googlegroups.com
Date: Thu, 6 Jan 2011 13:09:54 
To: google-web-toolkit@googlegroups.com
Reply-To: google-web-toolkit@googlegroups.com
Subject: Re: Google API Lib GWT

Those instructions assume you are using eclipse.  Follow the link in the
Getting Started guide I posted above to the Google Plugin for Eclipse and
make sure its installed.  Adding the jar file is the same as any other
Eclipse project (go to the 'Project' menu add add the .jar file to your
classpath).  Try working through the Getting Started guilde which will walk
you through creating a sample project.

On Thu, Jan 6, 2011 at 10:32 AM, sudhakar.ferna...@gmail.com wrote:

 Thanks Eric,

 But how to add the jars in Eclipse.any idea?

 Empower your Business with BlackBerry® and Mobile Solutions from Etisalat
 --
 *From: * Eric Ayers zun...@google.com
 *Sender: * google-web-toolkit@googlegroups.com
 *Date: *Thu, 6 Jan 2011 10:03:25 -0500
 *To: *google-web-toolkit@googlegroups.com
 *ReplyTo: * google-web-toolkit@googlegroups.com
 *Subject: *Re: Google API Lib GWT

 Here is a getting started guide for the Maps API

 http://code.google.com/p/gwt-google-apis/wiki/MapsGettingStarted
  http://code.google.com/p/gwt-google-apis/wiki/MapsGettingStarted
 On Tue, Jan 4, 2011 at 11:55 PM, Sudhakar sudhakar.ferna...@gmail.comwrote:

 Guy,

 Please tell me how to use the Google API Lib (Visualization,Gears
 etc)in Eclipse 3.6 and Eclipse 3.5.

 I am using 3.6 in Windows and 3.5 in Ubuntu 10.10.

 How to include the jars in CLASSPATH.

 Regards,

 Sudhakar

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




 --
 Eric Z. Ayers
 Google Web Toolkit, Atlanta, GA USA

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

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




-- 
Eric Z. Ayers
Google Web Toolkit, Atlanta, GA USA

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


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



sliding panel

2011-01-06 Thread EMan
on this page:
http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html

there is a sliding panel that you can minimize/maximize vertically.
but this panel is not in the showcase.  Does anyone know how to create
this using uiBinder?

Thanks.

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



Re: History, Is An Alternate Implementation Possible?

2011-01-06 Thread Y2i
I would also like to have similar functionality: back-forth button
working within a tab, not across a tab.

This would be possible to achieve if GWT supported for nested places
and activities.

In the first level, back-forth button would work across the tabs.
Once a user clicks within a tab, URL would append information about a
nested place.
In such a case, currently running activity would not stop but keep
running, and the nested activity would start.  And so forth.

Since there is no support for nested activities/places in GWT, I
currently use back-forth button to switch between tabs.  When a user
navigates within the tab, I simply persist information about the
current place (using a single server request when an activity stops).
If user comes back to the same tab, its state is restored from the
database.

P.S, I don't use TabLayoutPanel, just TabBar to conform MVP approach.


On Jan 6, 5:14 am, cmarsh...@avenue100.com cmarsh...@avenue100.com
wrote:
 We have been experimenting with GWT and with the MVP design pattern
 but are having trouble with the history mechanism in our proposed UI.
 Looking through the many posts there are other people who have
 encountered problems similar to what we have but there don't seem to
 be conclusive.  Our proposed UI uses a TabLayoutPanel where each tab
 is a different function and each tab should be independent of every
 other tab.  This includes the browser back and forward buttons working
 within the tabs and not across the tabs.

 Digging through the code and implementing a ValueChangeHandler and a
 PlaceChangeEvent.Handler when the browsers back button is pressed the
 ValueChangeHandler is invoked first and then the
 PlaceChangeEvent.Handler is invoked.  Looking at the stack both events
 seem to originate from a call to HistoryImpl.newItem() and the event
 that is generated does include the token from the previous Place
 visited within the application (but not necessarily the previous Place
 within the current tab).  I presume that HistoryImpl.newItem() is
 invoked from within a javascript library supplied by GWT.  Do I have
 this right?

 Assuming the preceding paragraph is correct it looks as though the key
 to changing the behavior of the history mechanism would be replacing
 the HistoryImpl class with a class that performs lookups for the
 currently visible tab to figure out what the previous or next place
 within the tab is.  Both the History and HistoryImpl consist of static
 methods and assuming the javascript libraries are invoking the
 HistoryImpl.newItem() the existence of the HistoryImpl is probably
 baked into the javascript libraries.  Is there a property file or some
 other mechanism that controls what HistoryImpl is invoked?  Is it
 possible to replace the HistoryImpl and/or History implementation with
 one's own implementation?

 If it is not possible to replace the HistoryImpl, is there any way to
 trap and kill events?  This would mean trapping the events fired as a
 result of the invocation of the HistoryImpl.newItem() and then firing
 new events with the content for the correct Place within the current
 tab.  Is this possible?

 From the experimentation I have done with creating my own
 PlaceController and PlaceHistoryHandler it looks as though the only
 other possible alternative is to let the place change events run their
 course and in some way recognize in the Activity/Presenter that this
 isn't really where we wanted to be and invoke a goTo to the Place we
 really do want to be.

 Chris Marshall
 Avenue100 Media Solutions

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



GWT MVP History/Place/Activity Noticable Delay during Place Transition

2011-01-06 Thread zixzigma
Hello everyone,

I am using GWT MVP, I have different DisplayRegions for Different
Activities.

when I navigate around my app, from the time the History Token changes
to the time Activities start showing up in display regions, there is a
noticable delay.
this delay is more apparent in Chrome than in Firefox.

I am in Place A. (which only has one activity/display region)

when I go from Place A to Place B (which has 3 activities/
displayregions)

I notice the History Token changes right away (I am using HyperLink
for transition not placeController)

but there is a delay before 3 display regions in Place B show up.
in FireFox its negligible but in Chrome is really noticable.

I am not contacting the server, I am not accessing any data. I am not
building any complex UI or div manipulation, basically displaying a
Label or a Panel consisting of only Labels and HyperLinks in my
DisplayRegions.

I believe when user navigates, going from Place A to Place B, lets say
through a HyperLink,
the HistoryToken changes, this HistoryToken needs to be parsed, pieces
of it analyzed to be figured out what this new place is, and
corresponding Place for this new History Token needs to be
constructed, which involves going through a list of places and one by
one through if/else, to figure out the Place.
then when the corresponding place is found, we have ActivityMappers,
when having 4-5 ActivityMappers/Managers , these 5 ActivityMappers
have to Analyze the Place to figure out which of their fine-grained
ActivitiiesMapper should act on it, and then the corresponding
activity is returned from ActivityMapper to the ActivityManager. I
believe all these string manipulation/analysis on new history token,
and subsequent mapping of Place to Activity is 4-5 ActivityMappers is
causing this.

to clarify, I have 3 display regions, 3 ActivityMappers and 3 places
at the moment.
the log statements show this on every transition, even though I am not
communicating with server.
Thu Jan 06 11:20:14 PST 2011 WireActivityLogger
FINEST: Remote logging message acknowledged

I was wondering in your experience, when you navigate from a Place A
to Place B in your app,
how long does it take for the Activities to show up from the time
History Token changes.
is it instantanously, or you notice a slight delay ? do you notice
more delay in Chrome than in firefox ?

Thank You

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



Locale setting priority

2011-01-06 Thread nacho
Hi, i'm using locale with constants.

If I print this when I render my jsp for the hosted page

meta name='gwt:property' content=locale=es

And the user adds to the url the param ?locale=en

Wich one of the two locale has priority?

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



Re: Does SuggestBox.setOracle(SuggestOracle) have to be private?

2011-01-06 Thread Ben Imp
I use a delegate pattern to do this very thing.  Its really the only
way to keep presenter logic where it belongs without polluting your
namespace with widgets.  The SuggestBox is none the wiser.  Just make
sure your delegator handles the base case where its delegate oracle is
null, of course, otherwise explosions aplenty.

-Ben

On Jan 6, 10:56 am, Patrick Tucker tucker...@gmail.com wrote:
 Thats a good idea, I will look into doing that instead.

 The SuggestBox isn't going to have any problems with the SuggestOracle
 being changed even though, if implemented this way, it doesn't know it
 is being changed?

 Thanks again,
 Pat

 On Jan 6, 11:46 am, Thomas Broyer t.bro...@gmail.com wrote:

  How about having a SuggestOracle that simply delegates to another
  SuggestOracle, and on which one you can swap the delegate? So, instead of
  suggestBox.setOracle(...), you'd call mySwappableOracle.setOracle(...)

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



Tree widget's zIndex

2011-01-06 Thread colin.zhao
Just find out that the tree widget has the same zIndex as PopupPanel
by default.  So if you show a popup in the same area of the tree, you
need to set the zIndex of the popup to 2.  Otherwise, the tree nodes
will be still visible through the PopupPanel.

I see this with

GWT 2.1
Chrome and IE

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



gwt cell table error

2011-01-06 Thread Noor

I am getting an error on this where


CellBrowser cellBrowser_1 = new
CellBrowser(Model1,SelectedCategory.getAllAttributes());

 I have tested   SelectedCategory.getAllAttributes() and it is not
null, also model1 has been declared
stack trace:
00:42:31.294 [ERROR] [biddingsystem] Uncaught exception escaped
com.google.gwt.event.shared.UmbrellaException: One or more exceptions
caught, see full set in UmbrellaException#getCauses
at
com.google.gwt.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:
214)
at
com.google.gwt.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:
103)
at
com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:
96)
at com.google.gwt.view.client.SelectionModel
$AbstractSelectionModel.fireEvent(SelectionModel.java:70)
at
com.google.gwt.view.client.SelectionChangeEvent.fire(SelectionChangeEvent.java:
54)
at
com.google.gwt.view.client.SingleSelectionModel.resolveChanges(SingleSelectionModel.java:
108)
at
com.google.gwt.view.client.SingleSelectionModel.isSelected(SingleSelectionModel.java:
63)
at
com.google.gwt.user.cellview.client.HasDataPresenter.setRowData(HasDataPresenter.java:
710)
at
com.google.gwt.user.cellview.client.AbstractHasData.setRowData(AbstractHasData.java:
539)
at
com.google.gwt.view.client.AbstractDataProvider.updateRowData(AbstractDataProvider.java:
224)
at
com.google.gwt.view.client.ListDataProvider.onRangeChanged(ListDataProvider.java:
529)
at
com.google.gwt.view.client.AbstractDataProvider.addDataDisplay(AbstractDataProvider.java:
105)
at com.google.gwt.view.client.TreeViewModel
$DefaultNodeInfo.setDataDisplay(TreeViewModel.java:85)
at
com.google.gwt.user.cellview.client.CellBrowser.appendTreeNode(CellBrowser.java:
917)
at
com.google.gwt.user.cellview.client.CellBrowser.setChildState(CellBrowser.java:
1007)
at com.google.gwt.user.cellview.client.CellBrowser.access
$7(CellBrowser.java:978)
at com.google.gwt.user.cellview.client.CellBrowser
$BrowserCellList.doKeyboardSelection(CellBrowser.java:327)
at
com.google.gwt.user.cellview.client.CellList.onBrowserEvent2(CellList.java:
394)
at com.google.gwt.user.cellview.client.CellBrowser
$BrowserCellList.onBrowserEvent2(CellBrowser.java:233)
at
com.google.gwt.user.cellview.client.AbstractHasData.onBrowserEvent(AbstractHasData.java:
467)
at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1308)
at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1264)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
157)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:
326)
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
207)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
126)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
269)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214)
at sun.reflect.GeneratedMethodAccessor292.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
157)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
281)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
531)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NullPointerException: null
at
com.google.gwt.user.cellview.client.CellBrowser.createDisplay(CellBrowser.java:
939)
at
com.google.gwt.user.cellview.client.CellBrowser.appendTreeNode(CellBrowser.java:
889)
at
com.google.gwt.user.cellview.client.CellBrowser.init(CellBrowser.java:
768)
at
com.google.gwt.user.cellview.client.CellBrowser.init(CellBrowser.java:
720)
at 

BlobInfo using the BlobKey

2011-01-06 Thread Janko
Does anybody know how to fetch the BlobInfo by BlobKey?

Thank you

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



static string internationalization without @DefaultStringValue annotations?

2011-01-06 Thread Magnus
Hi,

I have the following files for static string internationalization of
constants:

Constants.java
Constants_en.properties
Constants_de.properties

I would like to omit the @DefaultStringValue in Constants.java. The
defaults should be the EN-strings.

How can I do this?

If I omit the annotations, I get an exception (see below).

Thanks,
Magnus

-


21:55:54.123 [ERROR] [bcs] No resource found for key 'moves'
com.google.gwt.i18n.rebind.AbstractResource$MissingResourceException:
No resource found for key 'moves'
at com.google.gwt.i18n.rebind.AbstractResource
$ResourceList.getRequiredStringExt(AbstractResource.java:290)
at
com.google.gwt.i18n.rebind.SimpleValueMethodCreator.createMethodFor(SimpleValueMethodCreator.java:
95)
at
com.google.gwt.i18n.rebind.AbstractLocalizableImplCreator.delegateToCreator(AbstractLocalizableImplCreator.java:
313)
at
com.google.gwt.i18n.rebind.ConstantsImplCreator.emitMethodBody(ConstantsImplCreator.java:
163)
at
com.google.gwt.user.rebind.AbstractGeneratorClassCreator.genMethod(AbstractGeneratorClassCreator.java:
273)
at
com.google.gwt.user.rebind.AbstractGeneratorClassCreator.emitMethods(AbstractGeneratorClassCreator.java:
234)
at
com.google.gwt.user.rebind.AbstractGeneratorClassCreator.emitClass(AbstractGeneratorClassCreator.java:
117)
at
com.google.gwt.i18n.rebind.AbstractLocalizableImplCreator.generateConstantOrMessageClass(AbstractLocalizableImplCreator.java:
133)
at
com.google.gwt.i18n.rebind.LocalizableGenerator.generate(LocalizableGenerator.java:
114)
at
com.google.gwt.i18n.rebind.LocalizableGenerator.generate(LocalizableGenerator.java:
97)
at
com.google.gwt.dev.javac.StandardGeneratorContext.runGenerator(StandardGeneratorContext.java:
427)
at
com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:
39)
at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.tryRebind(StandardRebindOracle.java:115)
at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.rebind(StandardRebindOracle.java:58)
at
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
161)
at
com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java:
124)
at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:
585)
at
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
455)
at
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
at com.google.gwt.core.client.GWT.create(GWT.java:97)
at bcs.client.itn.itn.clinit(itn.java:19)
at bcs.client.apl.Menu.createMenu(Menu.java:72)
at bcs.client.apl.Menu.init(Menu.java:62)
at bcs.client.apl.Menu.init(Menu.java:55)
at bcs.client.apl.Display.init(Display.java:92)
at bcs.client.apl.Display.init(Display.java:66)
at bcs.client.Application.onModuleLoad(Application.java:95)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
43)
at java.lang.reflect.Method.invoke(Method.java:616)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
396)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
183)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
510)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)
at java.lang.Thread.run(Thread.java:636)

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



Example Code on how to add a check box column to CellView

2011-01-06 Thread Néstor Boscán
Hi

Anyone has some example code on how to add a check box column to CellView.

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



Re: GWT 2.1 MVP Multiple activities clarification help

2011-01-06 Thread karthik reddy
Hi Mauro

Your example is turning out to be very helpful.

I ran into one issue I thought I might communicate to you.

When you click the  Mail activites button, and then select the first
entry of the mail list (i.e., viva...@seddiamlorem.ca) the details are
populated in Mail Details. Similary if you select the second entry
of the mail list (i.e., fauci...@sit.com) the corresponding details
are populated in Mail Details .  The urls for the above two events
are  http://95.110.143.4/layoutmvp/layoutmvp.html#mail:1   and
http://95.110.143.4/layoutmvp/layoutmvp.html#mail:2  respectively . So
far so good.

When you hit the back button now , the url is changed from
http://95.110.143.4/layoutmvp/layoutmvp.html#mail:2  to
http://95.110.143.4/layoutmvp/layoutmvp.html#mail:1 and the contents
of Mail Details change as well. But, the selected email on the
list(highlighted with blue background) is not changing from the second
entry to the first entry.

Any thoughts on this would be much appreciated.

On Dec 23 2010, 8:29 am, Mauro Bertapelle mauro.bertape...@gmail.com
wrote:
 As an exercise I've build a little POC based on the concepts expressed
 by Thomas in his article.
 If someone is interested, the sources are 
 here:http://95.110.143.4/layoutmvp/layoutmvp.tar.gz
 and here you can find a live demo:http://95.110.143.4/layoutmvp/layoutmvp.html

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



Re: Composite Primary Keys (Many-to-Many relationship)

2011-01-06 Thread Y2i
I don't see @ManyToMany attribute in the sample code.

On Jan 6, 8:53 am, Aldo Neto tumo...@gmail.com wrote:
 Hi all,

 I'm trying to create a Many-to-Many relationship and add a couple of fields
 to it. I based my mapping on this 
 post:http://sieze.wordpress.com/2009/09/04/mapping-a-many-to-many-join-tab...
 (which
 was very clear and helpful).

 Summarizing the mapping on that blog (Product, Item and ProductItem), we'll
 have the the code below. I reproduced that on my mapping and I was able to
 add a Product X Item to it. However, when I try to add the same Item to a
 second Product, I get the following error message:

     *Server Error: org.hibernate.NonUniqueObjectException: a different
 object with the same identifier value was already associated with the
 session*

 The strange thing is that it works just fine when I try to add a second Item
 to the same product (so Products may have several Items, but an Item cannot
 belong to several Products).

 I played a little bit with the annotations and either I keep getting this
 error message or the ProductItem references on Product and Item are not
 updated correctly.

 Does anyone knows what I'm doing wrong here? I'm really running out of
 ideas.

 Thanks,
 Aldo

 @Entity
 @Table(name = item)public class Item {

 ...

     /*
      * Here is the annotation to add in order to
      * Hibernate to automatically insert and update
      * ProducItems (if any)
      */
     @OneToMany(fetch = FetchType.LAZY, mappedBy = pk.item, cascade =
 {CascadeType.PERSIST, CascadeType.MERGE})
     @Cascade({org.hibernate.annotations.CascadeType.SAVE_UPDATE,
 org.hibernate.annotations.CascadeType.DELETE_ORPHAN})

 public ListProductItem getProductItems() { return this.productItems; }

 }

 @Entity
 @Table(name = product)public class Product {

 ...

     /*
      * I just followed the same annotations on getProductItems()
      */
     @OneToMany(fetch = FetchType.LAZY, mappedBy = pk.product,
 cascade = {CascadeType.PERSIST, CascadeType.MERGE})
     @Cascade({org.hibernate.annotations.CascadeType.SAVE_UPDATE,
 org.hibernate.annotations.CascadeType.DELETE_ORPHAN})

 public ListProductItem getProductItems() {

         return this.productItems;
     }

 }

 @Entity
 @Table(name = product_item)
 @AssociationOverrides({
 @AssociationOverride(name = pk.item, joinColumns = @JoinColumn(name
 = item_id)),
 @AssociationOverride(name = pk.product, joinColumns =
 @JoinColumn(name = product_id))})public class ProductItem {

 ...

     private ProductItemPk pk = new ProductItemPk();

     @EmbeddedId
     private ProductItemPk getPk() {
         return pk;
     }

 }

 @Embeddablepublic class ProductItemPk implements Serializable {
     private Item item;
     private Product product;

 ...







 }

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



Re: Composite Primary Keys (Many-to-Many relationship)

2011-01-06 Thread Y2i
Sorry, I misunderstood the question.  You are trying emulate
@ManyToMany...



On Jan 6, 3:13 pm, Y2i yur...@gmail.com wrote:
 I don't see @ManyToMany attribute in the sample code.

 On Jan 6, 8:53 am, Aldo Neto tumo...@gmail.com wrote:







  Hi all,

  I'm trying to create a Many-to-Many relationship and add a couple of fields
  to it. I based my mapping on this 
  post:http://sieze.wordpress.com/2009/09/04/mapping-a-many-to-many-join-tab...
  (which
  was very clear and helpful).

  Summarizing the mapping on that blog (Product, Item and ProductItem), we'll
  have the the code below. I reproduced that on my mapping and I was able to
  add a Product X Item to it. However, when I try to add the same Item to a
  second Product, I get the following error message:

      *Server Error: org.hibernate.NonUniqueObjectException: a different
  object with the same identifier value was already associated with the
  session*

  The strange thing is that it works just fine when I try to add a second Item
  to the same product (so Products may have several Items, but an Item cannot
  belong to several Products).

  I played a little bit with the annotations and either I keep getting this
  error message or the ProductItem references on Product and Item are not
  updated correctly.

  Does anyone knows what I'm doing wrong here? I'm really running out of
  ideas.

  Thanks,
  Aldo

  @Entity
  @Table(name = item)public class Item {

  ...

      /*
       * Here is the annotation to add in order to
       * Hibernate to automatically insert and update
       * ProducItems (if any)
       */
      @OneToMany(fetch = FetchType.LAZY, mappedBy = pk.item, cascade =
  {CascadeType.PERSIST, CascadeType.MERGE})
      @Cascade({org.hibernate.annotations.CascadeType.SAVE_UPDATE,
  org.hibernate.annotations.CascadeType.DELETE_ORPHAN})

  public ListProductItem getProductItems() { return this.productItems; }

  }

  @Entity
  @Table(name = product)public class Product {

  ...

      /*
       * I just followed the same annotations on getProductItems()
       */
      @OneToMany(fetch = FetchType.LAZY, mappedBy = pk.product,
  cascade = {CascadeType.PERSIST, CascadeType.MERGE})
      @Cascade({org.hibernate.annotations.CascadeType.SAVE_UPDATE,
  org.hibernate.annotations.CascadeType.DELETE_ORPHAN})

  public ListProductItem getProductItems() {

          return this.productItems;
      }

  }

  @Entity
  @Table(name = product_item)
  @AssociationOverrides({
  @AssociationOverride(name = pk.item, joinColumns = @JoinColumn(name
  = item_id)),
  @AssociationOverride(name = pk.product, joinColumns =
  @JoinColumn(name = product_id))})public class ProductItem {

  ...

      private ProductItemPk pk = new ProductItemPk();

      @EmbeddedId
      private ProductItemPk getPk() {
          return pk;
      }

  }

  @Embeddablepublic class ProductItemPk implements Serializable {
      private Item item;
      private Product product;

  ...

  }

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



Re: Update ParentProxy with ListChildProxy using EditorChildProxy

2011-01-06 Thread Thomas Broyer
You might have to response = context.edit(response) before modifying the 
academicYearList. Is the new AcademicYear sent to the server?

Also, from the doc:

RequestFactory automatically sends the whole object graph in a single 
request. In this case, the implementation of Person.persist() on the server 
is responsible for persisting the related Address also, which may or may not 
happen automatically, depending on the ORM framework and how the 
relationship is defined.

— 
http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html#relationships

It's your responsibility to save the new AcademicYear on the server (I don't 
know JDO enough to tell whether it will do it for you or not).

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



Re: GWT Cookies returning null

2011-01-06 Thread Thomas Broyer


On Thursday, January 6, 2011 2:23:04 PM UTC+1, Noor wrote:

 I am becoming almost mad with the GWT Cookies, 

 in one of my application I set the cookie in an RPC success, but I am 
 trying to retrieve it in another place of my application, it returns 
 null. 

 I know that when setting a variable in an rpc sucess,if we try to 
 access it elsewhere it result null, so how can i set a cookie an rpc 
 so that it does not returns null??


If you're referring to the fact that the RPC call is asynchronous (so the 
onSuccess will always be called later, never before the RPC method returns 
to your code), then using cookies won'thelp (the onSuccess still happens 
after, so you're still trying to read the result of something that hasn't 
yet happened).

See https://groups.google.com/d/msg/google-web-toolkit/-soVdfMGug8/vRmqIcAZ5zsJ

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



Re: Launching dev mode does not overwrite nocache.js

2011-01-06 Thread Thomas Broyer
AFAICT, it's the expected behavior (not overwriting), because the nocache.js 
generated by a compilation contains the necessary bootstrap code to make it 
debuggable with DevMode (which is necessary to debug/develop apps without 
using the embedded Jetty server of the DevMode)

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



primitive arrays vs Collections (performance wise)

2011-01-06 Thread Rafael
Hello there!

I've meaning to ask you the question implied in the subject of this
post. Is there an advantage in favoring Arrays over Collections when
working with code that will end up in the client (translated to HTML
and JavaScript that is)?

My gut tells me that i should stick to arrays in order to keep
performance on the client side, but i must admit that i do not exactly
know what happens with arrays or collections when they go through the
GWT compiler and therefore lack f hard evidence to support such a bold
statement...

Anyway, i was wandering if anyone else had thought of this...

thanks in advance!

take care!

Rafael

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



Re: Locale setting priority

2011-01-06 Thread Thomas Broyer
The URL: 
http://code.google.com/p/google-web-toolkit/source/browse/tags/2.1.1/user/src/com/google/gwt/i18n/I18N.gwt.xml?r=9507#32

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



Re: GWT MVP History/Place/Activity Noticable Delay during Place Transition

2011-01-06 Thread Thomas Broyer
Do you experience any delay in the Showcase?
http://gwt.google.com/samples/Showcase/Showcase.html

I don't. Showcase uses place changes rather than Hyperlink though (and I 
think you should do it too when using Places, as it helps decoupling the 
history token from the Place it represents), that being said it shouldn't 
change much things, as Hyperlink doesn't let the browser navigate but 
rather uses History.newItem, which fires an event synchronously (and thus 
generates the PlaceChangeRequestEvent and PlaceChangeEvent synchronously 
too, just as if you'd used the PlaceController).

The WireActivityLogger might be the bottleneck, as it appears to communicate 
with the server (through the SimpleRemoteLogHandler: 
http://code.google.com/p/google-web-toolkit/source/browse/tags/2.1.1/user/src/com/google/gwt/logging/client/SimpleRemoteLogHandler.java?r=9507
 (do 
you recognize the finest message?)

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



Re: gwt cell table error

2011-01-06 Thread Thomas Broyer
It looks like you're trying to display a 'null' NodeInfo:
http://code.google.com/p/google-web-toolkit/source/browse/tags/2.1.0/user/src/com/google/gwt/user/cellview/client/CellBrowser.java?r=9507#939
In other words, your TreeViewModel returns 'null' from getNodeInfo for the 
rootValue you're using (i.e. 
Model1.getNodeInfo(SelectedCategory.getAllAttributes()) returns 'null')

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



Re: GWT 2.1 MVP Multiple activities clarification help

2011-01-06 Thread Thomas Broyer
Because of the CachingActivityMapper and FilteredActivityMapper (found in 
CachingHorizontalMasterActivityMapper), the MailListActivity isn't 
restarted between place changes between MailDetailPlace-s (and 
MailListPlace-s).
As it doesn't listen to PlaceChangeEvent, its not even aware of the 
navigation. It should then listen to PlaceChangeEvent-s and adjust the 
selection accordingly.

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



Re: primitive arrays vs Collections (performance wise)

2011-01-06 Thread Thomas Broyer
Modulo ClassCastException and the like (e.g. instanceof checks), Java arrays 
are compiles straight into JavaScript arrays; while collections have an 
emulated wrapper class around a JavaScript array.
However, due to how the compiler inlines methods, most accesses to a 
collection's item (i.e. by index) only involve a single additional step 
cmpared to using Java arrays: dereferencing the property ofthe collection 
object containing the JS array (this is assuming a java.util.List, of course 
things are different with java.util.Set, for instance). Where things ge more 
different is for for (... : ...) loops, which are translated into for 
(int i=0,l=array.length; i l; i++) loops for arrays, but use an emulated 
java.util.Iterator for collections.

That being said, given the speed of today's JS engines it should not make a 
difference (maybe on IE6 ? on mobiles ?)

I'd personnally stick with collections if they better fit your use case 
(variable length, inserting/removing values, etc.) as your code will be more 
readable and thus more maintainable. And only if performance is an issue 
then investigate, but there will probably be other bottlenecks than arrays 
vs. collections! (widgets, DOM manipulations, network, including building 
and parsing request/response payload, etc.)

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



How do I override parameters in web.xml

2011-01-06 Thread Rob Tanner
I need to override URLs for servers (database, Active Directory, LDAP, etc) 
added as context parameters in web.xml.  When I'm doing regular servlet 
development, I simply put the overrides in tomcat's server.xml and the 
application only talk to the development environment servers. And when I 
move it into production, it talks to the production servers and there's no 
requirement that I remember to change to contents of web.xml to accomplish 
that bit of magic.  How do I do the same thing in development mode in the 
toolkit.

Thanks,
Rob

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



Re: GWT MVP History/Place/Activity Noticable Delay during Place Transition

2011-01-06 Thread zixzigma
Thank you for clarification.

when I tested in production mode (rather than development/hosted mode with 
plugin),
it worked fine.

I also tried the development mode, this time disabling logging all together, 
Firefox seemed to have been working ok,
but Chrome was showing delays. in production mode however, they both handled 
it just fine.

Thank You !

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



Re: Not able to set BigDecimal value in a grid column using HTMLTable setText function in IE8

2011-01-06 Thread smriti sharma
 I am using BigDecimal  constructor to initialize the BigDecimal value.

 m_table.setText(row, col, text);   //m_table here is of type HTMLTable

 setText for Hashtable is erroring for simple values for the text
parameter e.g.- 60.00, 23.57

 javascript error occurs only when  I run the application in web mode in
internet explorer 8.

Thanks,
Smriti


On Thu, Jan 6, 2011 at 8:56 PM, Jeff Schwartz jefftschwa...@gmail.comwrote:

 **Use either BigDecimal's constructor to initialize its value or one of
 its valueOf methods to set its value.

 Jeff

 On Thu, Jan 6, 2011 at 4:58 AM, sims smriti...@gmail.com wrote:

 I am receiving following js error when I am trying to set a Bigdecimal
 value for a grid column using
 HTMLTable  setText function.

 This is happening only in IE8 . Works fine in Firefox.

 User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
 Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
 3.0.30729; Media Center PC 6.0)
 Timestamp: Thu, 30 Dec 2010 18:51:16 UTC

 Message: Exception thrown and not caught
 Line: 1
 Char: 21338
 Code: 0
 URI: http://dev3.compiere.org/apps/js/bigdecimal.js

 This issue happens only when i run the application in hosted mode.
 In development mode of eclipse it is working fine.





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




 --
 *Jeff Schwartz*

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


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



Re: Dev plugin for firefox 3.7

2011-01-06 Thread morte...@gmail.com
I tried to build this as well.. although it did seem to build after
following most of the instructions here and on other sites, it didn't
work with Firefox 4.0b8 (osx).

Would be nice to know some updates.

On Nov 9 2010, 4:34 am, csillag csillag.kris...@gmail.com wrote:
 On okt. 26, 00:54, slowpoison slowpoi...@slowpoison.net wrote:

  On Sep 14, 8:21 am, John Tamplin j...@google.com wrote:

   I am working on it right now.  I have it working on FF40, but I am
   still trying to get it where one XPI will work on both FF3 and FF4.

  Any update about this, John?

 Hi,

 I am still waiting for this.
 Could you please at least give us some info about what's happening?

 Thank you:

     Kristof

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



Gwt module sometime not loaded, Only after clicking refresh button it work ?

2011-01-06 Thread suersh babu
Hi,

I am using gwt 2.1,  After uploading my application to production server,
some time I see my gwt module not loaded, only
After clicking refresh button it get loaded.

Kindly can any one tell me what could be the reason,  I am very interested
in this.


-- 
*Regards

Suresh Babu G*

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



Re: Gwt module sometime not loaded, Only after clicking refresh button it work ?

2011-01-06 Thread Sudhakar
I am also experiencing the same issue.I am using Chrome browser in
Ubuntu 10.10


On Fri, 2011-01-07 at 12:06 +0530, suersh babu wrote:
 Hi,
 
 I am using gwt 2.1,  After uploading my application to production
 server, some time I see my gwt module not loaded, only
 After clicking refresh button it get loaded.
 
 Kindly can any one tell me what could be the reason,  I am very
 interested in this.
 
 
 -- 
 Regards
 
 Suresh Babu G
 
 
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Google Web Toolkit group.
 To post to this group, send email to
 google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to google-web-toolkit
 +unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


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



Re: Update ParentProxy with ListChildProxy using EditorChildProxy

2011-01-06 Thread -sowdri-
Thanks Thomas!

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



new bee design widget with markup

2011-01-06 Thread fachhoch
I am new bee learning gwt.
I have a simple widget

code
public class HomeScreen extends Composite{

public HomeScreen() {
VerticalPanel vp=new VerticalPanel();
Label lblWelcome=new Label();
lblWelcome.setText(Hello +Saibaba);
Button  loginscreenbtn= new Button(loginscreen);
loginscreenbtn.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent arg0) {
PersonEntryPoint.add(new LoginScreen());

}
});
vp.add(loginscreenbtn);
vp.add(lblWelcome);
initWidget(vp);
}

}

/code


I add this to my rootpanel and this widget shows up , that is good,
can I create  a   mark up  file for this and refer   the lblWelcome ,
loginscreenbtn  and all the widgets ,  what I did not get is how
do I design the look and feel   of this   HomeScreen   widget ?

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



GWT MVP 2.1.1 code splitting

2011-01-06 Thread zixzigma
Is it possible to implement Code Splitting with GWT MVP 2.1.1 ?

really appreciate if you can share some tips on how this can be
achieved.

Thank You

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



[gwt-contrib] Multiple leftover fragments with a tree of code split points?

2011-01-06 Thread Ed
Please some advice on the following.
Sorry for reposting the question below, I tried the GWT user forum but
I think I have better luck here:
---
I am about to migrate 3 gwt app's to one gwt app. All gwt app's
contain code split points, and I want to connect them with 3 code
split points.
I am a bit concerned about the left over fragment. From the
documentation I understand that I only have one leftovers code
fragment, which isn't very ideal I think in my situation.
The code split points after migration:
main app
   1 split point: login app
  1a, 1b, 1c, .. split points in the login app.
   2 split point: profile app
  2a, 2b, 2c, .. split points in the profile app.
   3 split point: declare app
  3a, 3b, 3c, .. split points in the declare app.
I am afraid that my leftover code fragment becomes rather large,
where
I would love to have several leftover fragments that belong only to
1), 2), or 3).
Is that possible? How does gwt deal with this?
From the documentation I read that code are put in the leftover code
fragment if it's not unique to one split point. Ok, I understand that
but in my case it's unique to the parent split point. Example: I have
leftover code that is used in 1a and 1b split points, but is unique
to
1), so I would guess that 1) has his own unique leftover.
Can somebody please give some details on this, on how gwt deals with
these kind of nested split point situations?

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


[gwt-contrib] Re: Re-enable XML parse test, which was previously failing in one Safari configuration in Production... (issue1229801)

2011-01-06 Thread zundel

LGTM

http://gwt-code-reviews.appspot.com/1229801/show

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


[gwt-contrib] Re: Patch MethodBinding.collectMissingTypes for IOOBE (issue1252801)

2011-01-06 Thread conroy

On 2011/01/05 19:09:18, scottb wrote:

LGTM



Could you check in an original, unmodified version first, then check

in just

your changes to it?  Makes it easier to track/integrate if we update

JDT in the

future.


yeah, good call. patches incoming...


http://gwt-code-reviews.appspot.com/1252801/show

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


[gwt-contrib] Re: Adding an Async SortHandler that can be used with AsyncDataProvider. When a table is sorted, it... (issue1258801)

2011-01-06 Thread pdr

On 2011/01/05 19:23:46, jlabanca wrote:


LGTM.

May want to add the (trivial) test that it works.

http://gwt-code-reviews.appspot.com/1258801/show

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


Re: [gwt-contrib] Multiple leftover fragments with a tree of code split points?

2011-01-06 Thread Sami Jaber
Hi Ed,

I discussed this issue with Lex on his blog last year, you can see his
response there :

http://blog.lexspoon.org/2009/09/exclusively-live-code.html?showComment=1254755092729#c2793919353038691570

Sami

On Thu, Jan 6, 2011 at 11:12 AM, Ed post2edb...@gmail.com wrote:

 Please some advice on the following.
 Sorry for reposting the question below, I tried the GWT user forum but
 I think I have better luck here:
 ---
 I am about to migrate 3 gwt app's to one gwt app. All gwt app's
 contain code split points, and I want to connect them with 3 code
 split points.
 I am a bit concerned about the left over fragment. From the
 documentation I understand that I only have one leftovers code
 fragment, which isn't very ideal I think in my situation.
 The code split points after migration:
 main app
   1 split point: login app
  1a, 1b, 1c, .. split points in the login app.
   2 split point: profile app
  2a, 2b, 2c, .. split points in the profile app.
   3 split point: declare app
  3a, 3b, 3c, .. split points in the declare app.
 I am afraid that my leftover code fragment becomes rather large,
 where
 I would love to have several leftover fragments that belong only to
 1), 2), or 3).
 Is that possible? How does gwt deal with this?
 From the documentation I read that code are put in the leftover code
 fragment if it's not unique to one split point. Ok, I understand that
 but in my case it's unique to the parent split point. Example: I have
 leftover code that is used in 1a and 1b split points, but is unique
 to
 1), so I would guess that 1) has his own unique leftover.
 Can somebody please give some details on this, on how gwt deals with
 these kind of nested split point situations?

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

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

[gwt-contrib] Re: Test the type of a value before casting it. (issue1261801)

2011-01-06 Thread rchandia

LGTM. With nits.
On 2011/01/06 00:28:40, Nick Chalko wrote:




http://gwt-code-reviews.appspot.com/1261801/show

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


[gwt-contrib] Re: Test the type of a value before casting it. (issue1261801)

2011-01-06 Thread rchandia

Sorry, forgot to send the the nits.


http://gwt-code-reviews.appspot.com/1261801/diff/1/6
File
samples/validationtck/test/org/hibernate/jsr303/tck/tests/validation/ValidateValueGwtTest.java
(right):

http://gwt-code-reviews.appspot.com/1261801/diff/1/6#newcode66
samples/validationtck/test/org/hibernate/jsr303/tck/tests/validation/ValidateValueGwtTest.java:66:
// This passes but the desired behavior is still not working
Mark as TODO

http://gwt-code-reviews.appspot.com/1261801/diff/1/7
File
user/src/com/google/gwt/validation/rebind/GwtSpecificValidatorCreator.java
(right):

http://gwt-code-reviews.appspot.com/1261801/diff/1/7#newcode304
user/src/com/google/gwt/validation/rebind/GwtSpecificValidatorCreator.java:304:
*/
Remove or fill-in

http://gwt-code-reviews.appspot.com/1261801/show

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


Re: [gwt-contrib] RFC: Fixed width column support in CellTable

2011-01-06 Thread John LaBanca
After giving this more thought, I think the best option is to get rid of
ColumnWidths and roll it into CellTable directly, so you would have:
CellTable.setColumnWidth(Column col, double width, Unit unit)
CellTable.setColumnWidth(Column col, String)

I suggest this for two reasons:

   1. We don't need a CellTable#refreshColumnWidths() method because
   CellTable always knows when the width changes.  Both the ColumnWidths
   proposal and Column#setWidth() have the problem that the table isn't
   notified of the change.  We could add event handlers to ColumnWidths/Column,
   but thats a bit of overkill.
   2. I'm not 100% sold on Column#setWidth() because its possible to use the
   same column in two tables but have different widths.  For example, a source
   table and a destination table that both contain a summary column.

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


On Wed, Jan 5, 2011 at 9:31 PM, Miroslav Pokorny miroslav.poko...@gmail.com
 wrote:

 Minor suggestion but would not ColumnWidthSource be a better name than
 ColumnWidths, after all it is a source of column widths given a column. When
 i see classes w/ plural names, i think of classes w/ static helpers
 java.util.Collections. Guice is another example of this naming style.

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


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

[gwt-contrib] [google-web-toolkit] r9500 committed - Adding an Async SortHandler that can be used with AsyncDataProvider. ...

2011-01-06 Thread codesite-noreply

Revision: 9500
Author: jlaba...@google.com
Date: Thu Jan  6 05:35:04 2011
Log: Adding an Async SortHandler that can be used with AsyncDataProvider.   
When a table is sorted, it called the setVisibleRangeAndClear() method to  
clear the current data and send an event to the AsyncDataProvider to  
provide new information.


Review at http://gwt-code-reviews.appspot.com/1258801

Review by: p...@google.com
http://code.google.com/p/google-web-toolkit/source/detail?r=9500

Added:
  
/trunk/user/test/com/google/gwt/user/cellview/client/ColumnSortEventTest.java

Modified:
 /trunk/user/src/com/google/gwt/user/cellview/client/ColumnSortEvent.java
 /trunk/user/test/com/google/gwt/user/cellview/CellViewSuite.java

===
--- /dev/null
+++  
/trunk/user/test/com/google/gwt/user/cellview/client/ColumnSortEventTest.java	 
Thu Jan  6 05:35:04 2011

@@ -0,0 +1,106 @@
+/*
+ * Copyright 2010 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the License); you may  
not
+ * use this file except in compliance with the License. You may obtain a  
copy of

+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,  
WITHOUT

+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations  
under

+ * the License.
+ */
+package com.google.gwt.user.cellview.client;
+
+import com.google.gwt.cell.client.TextCell;
+import com.google.gwt.user.cellview.client.ColumnSortEvent.AsyncHandler;
+import com.google.gwt.user.cellview.client.ColumnSortEvent.ListHandler;
+import com.google.gwt.user.cellview.client.ColumnSortList.ColumnSortInfo;
+import com.google.gwt.view.client.MockHasData;
+import com.google.gwt.view.client.Range;
+import com.google.gwt.view.client.RangeChangeEvent;
+
+import junit.framework.TestCase;
+
+import java.util.ArrayList;
+import java.util.Comparator;
+import java.util.List;
+
+/**
+ * Tests for {...@link ColumnSortEvent}.
+ */
+public class ColumnSortEventTest extends TestCase {
+
+  public void testAccessors() {
+ColumnSortList sortList = new ColumnSortList();
+IdentityColumnString col0 = new IdentityColumnString(new  
TextCell());
+IdentityColumnString col1 = new IdentityColumnString(new  
TextCell());

+sortList.push(new ColumnSortInfo(col0, true));
+sortList.push(new ColumnSortInfo(col1, false));
+
+ColumnSortEvent event = new ColumnSortEvent(sortList);
+assertEquals(sortList, event.getColumnSortList());
+assertEquals(col1, event.getColumn());
+assertFalse(event.isSortAcsending());
+  }
+
+  public void testAsyncHandler() {
+MockHasDataString hasData = new MockHasDataString();
+final ListRange events = new ArrayListRange();
+hasData.addRangeChangeHandler(new RangeChangeEvent.Handler() {
+  public void onRangeChange(RangeChangeEvent event) {
+events.add(event.getNewRange());
+  }
+});
+AsyncHandler handler = new AsyncHandler(hasData);
+assertEquals(0, events.size());
+
+// Fire an event to the handler.
+ColumnSortList sortList = new ColumnSortList();
+handler.onColumnSort(new ColumnSortEvent(sortList));
+assertEquals(1, events.size());
+  }
+
+  public void testListHandler() {
+// Create some unsorted values.
+ListString values = new ArrayListString();
+values.add(b);
+values.add(a);
+values.add(c);
+
+// Create a handler for the list of values.
+ListHandlerString handler = new ListHandlerString(values);
+IdentityColumnString col0 = new IdentityColumnString(new  
TextCell());

+handler.setComparator(col0, new ComparatorString() {
+  public int compare(String o1, String o2) {
+return o1.compareTo(o2);
+  }
+});
+IdentityColumnString col1 = new IdentityColumnString(new  
TextCell());

+handler.setComparator(col1, null);
+
+// Sort ascending.
+ColumnSortList sortList = new ColumnSortList();
+sortList.push(col0);
+handler.onColumnSort(new ColumnSortEvent(sortList));
+assertEquals(a, values.get(0));
+assertEquals(b, values.get(1));
+assertEquals(c, values.get(2));
+
+// Sort descending.
+sortList.push(col0); // Switches sort to descending.
+handler.onColumnSort(new ColumnSortEvent(sortList));
+assertEquals(c, values.get(0));
+assertEquals(b, values.get(1));
+assertEquals(a, values.get(2));
+
+// Null comparator.
+sortList.push(col1);
+assertEquals(c, values.get(0));
+assertEquals(b, values.get(1));
+assertEquals(a, values.get(2));
+  }
+}
===
---  
/trunk/user/src/com/google/gwt/user/cellview/client/ColumnSortEvent.java	 
Wed Jan  5 04:42:33 2011
+++  
/trunk/user/src/com/google/gwt/user/cellview/client/ColumnSortEvent.java	 
Thu Jan  6 05:35:04 2011

@@ -18,6 +18,7 @@

[gwt-contrib] [google-web-toolkit] r9501 committed - For easier code archeology in the future:...

2011-01-06 Thread codesite-noreply

Revision: 9501
Author: gwt.mirror...@gmail.com
Date: Thu Jan  6 05:49:54 2011
Log: For easier code archeology in the future:
Step 1 of 2: revert MethodBinding.java to its original (unpatched) state.

http://code.google.com/p/google-web-toolkit/source/detail?r=9501

Modified:
  
/trunk/dev/core/src/org/eclipse/jdt/internal/compiler/lookup/MethodBinding.java


===
---  
/trunk/dev/core/src/org/eclipse/jdt/internal/compiler/lookup/MethodBinding.java	 
Tue Jan  4 07:56:18 2011
+++  
/trunk/dev/core/src/org/eclipse/jdt/internal/compiler/lookup/MethodBinding.java	 
Thu Jan  6 05:49:54 2011

@@ -311,7 +311,7 @@
   missingTypes =  
variable.superclass().collectMissingTypes(missingTypes);

   ReferenceBinding[] interfaces = variable.superInterfaces();
   for (int j = 0, length = interfaces.length; j  length; j++) {
-missingTypes = interfaces[j].collectMissingTypes(missingTypes);
+missingTypes = interfaces[i].collectMissingTypes(missingTypes);
   }
 }
   }

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


[gwt-contrib] Add support for mapping ConstraintViolation objects into SimpleBeanEditor. (issue1260801)

2011-01-06 Thread rjrjr

Nick, could you take a look at this? Is Bob making reasonable
assumptions about how ConstraintViolation acts, especially its paths?


http://gwt-code-reviews.appspot.com/1260801/show

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


  1   2   >