CellTable custom header help.

2011-10-06 Thread Konstantin Zolotarev
How could I create such table ?

https://lh5.googleusercontent.com/-P1lNQo2h0OU/To1OkdUm0aI/AMk/9PQw283WFOo/Screenshot.jpg

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



Re: CellTable custom header help.

2011-10-06 Thread Stanislav Ievlev
You can create a custom resources and initialize CellTable with them.

--
public class CustomTableT extends CellTableT {

  public static interface TableResources extends CellTable.Resources {
@Source({CellTable.Style.DEFAULT_CSS, CustomTable.css})
TableStyle cellTableStyle();
  }

  public static interface TableStyle extends CellTable.Style {}
  private static TableResources defaultResources =
GWT.create(TableResources.class);

  private TableResources resources;

  public CustomTable(int pageSize, ProvidesKeyT keyProvider)
  {
super(pageSize, defaultResources, keyProvider);
...
--


2011/10/6 Konstantin Zolotarev konstantin.zolota...@gmail.com

 How could I create such table ?


 https://lh5.googleusercontent.com/-P1lNQo2h0OU/To1OkdUm0aI/AMk/9PQw283WFOo/Screenshot.jpg

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


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



Re: GWT Developer Plugin for Firefox 6

2011-10-06 Thread Alek
The same

I've updated accidentally FF to 7 version... don't work again

Have to use meditative Chrome plugin... :(

On Oct 1, 4:58 am, leathrum leath...@jsu.edu wrote:
 Um...  OK... As much as I hate to be the one to throw gasoline on the fire
 here...  FF 7?  GWT plug-in is disabled again when the update happens.

 [Come to think of it, what exactly is the deal with all of these FF
 updates?  I seem to recall using FF3.6 just about a year ago.]

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



Re: GWT Community size ?

2011-10-06 Thread J.Ganesan


On Oct 3, 8:58 pm, David Chandler drfibona...@google.com wrote:
 Hi Jonathan,

 There are a couple ways to gauge this. You can see the number of times each
 version of GWT is downloaded here:

 http://code.google.com/p/google-web-toolkit/downloads/list

 This does not include downloads from Maven Central or Google Plugin for
 Eclipse, the sum of which is typically about the same as from the main
 downloads page.

 Also, there are 27k members of this group, which continues to grow at
 ~10%+/yr. Based on downloads of recent versions, this represents perhaps a
 quarter of active GWT developers.

 As for # of Web sites and/or businesses, we really don't know. We do know
 from interacting with the community that many, if not most, GWT applications
 are behind firewalls or paywalls, because GWT is especially well-suited for
 making desktop-like apps that run in a browser.

Does this mean that GWT + App Engine is  not  popular ?  If not, that
is really surprising. Given the fact that App Engine API and Gwt are
in java, one expects that Gwt + App Engine is really a compelling
combination to write cloud based applications, especially enterprise
applications.

J.Ganesan

 HTH,
 /dmc

 On Sun, Oct 2, 2011 at 8:56 PM, Jonathan Aubuchon 









 jonathan.aubuc...@gmail.com wrote:
  Hi all,

  Does anyone know how big is the GWT Community size?

  - Number of developpers who using it
  - Number of websites who using it
  - Number of business who using it

  (Approximately...)

  Thank you guys.

  --
  Jonathan Aubuchon
  Student in Software Engineering
 http://www.jonathanaubuchon.com

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

 --
 David Chandler
 Developer Programs Engineer, GWT+GAE
 w:http://code.google.com/
 b:http://turbomanage.wordpress.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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Request Builder Error - GWT

2011-10-06 Thread coffeMan
Can anyone tell me what the error might be coming from? I cannot get
passed this, Thanks!

 [WARN] Exception while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract java.lang.String
com.mymaps.client.dataService.getData(java.lang.String)' threw an
unexpected exception: java.lang.UnsatisfiedLinkError:
com.google.gwt.http.client.URL.encodeImpl(Ljava/lang/String;)Ljava/
lang/String;
at
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
385)
at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
588)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
208)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
248)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
362)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
181)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
729)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at
org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:
49)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
505)
at org.mortbay.jetty.HttpConnection
$RequestHandler.content(HttpConnection.java:843)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
395)
at org.mortbay.thread.QueuedThreadPool
$PoolThread.run(QueuedThreadPool.java:488)
Caused by: java.lang.UnsatisfiedLinkError:
com.google.gwt.http.client.URL.encodeImpl(Ljava/lang/String;)Ljava/
lang/String;
at com.google.gwt.http.client.URL.encodeImpl(Native Method)
at com.google.gwt.http.client.URL.encode(URL.java:155)
at com.mymaps.server.dataServiceImpl.getData(dataServiceImpl.java:22)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
569)

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



GWT RequestFactory with GAE, may cause conflict when fetch object using locator?

2011-10-06 Thread July
Hi all:

From the requestFactory locator class, there is an abstract method:
  public abstract T find(Class? extends T clazz, I id);

This is to retrieve an unique object with Class clazz and its id, however i 
notice in app engine with the class and its ID are not enough to identify 
one unique object, because in GAE(I use Objectify) only id+Class+parent 
could identify one object, in other word, there may exist one object with 
same ID and same Class but different Parent in GAE datastore, in this 
situation, it may fetch the wrong object.

Any ideas?
Thanks.



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



Apply Style to CellList in gwt 2.4.0

2011-10-06 Thread Brito
Where to add specific style to cellList in latest gwt 2.4.0. Could you
send sample code.

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



Re: Request Builder Error - GWT

2011-10-06 Thread Thomas Broyer


On Thursday, October 6, 2011 1:32:03 PM UTC+2, coffeMan wrote:

 Can anyone tell me what the error might be coming from? I cannot get 
 passed this, Thanks! 

  [WARN] Exception while dispatching incoming RPC call 
 com.google.gwt.user.server.rpc.UnexpectedException: Service method 
 'public abstract java.lang.String 
 com.mymaps.client.dataService.getData(java.lang.String)' threw an 
 unexpected exception: java.lang.UnsatisfiedLinkError: 
 com.google.gwt.http.client.URL.encodeImpl(Ljava/lang/String;)Ljava/ 
 lang/String; 

[...]

 Caused by: java.lang.UnsatisfiedLinkError: 
 com.google.gwt.http.client.URL.encodeImpl(Ljava/lang/String;)Ljava/ 
 lang/String; 
 at com.google.gwt.http.client.URL.encodeImpl(Native Method) 
 at com.google.gwt.http.client.URL.encode(URL.java:155) 



You're calling com.google.gwt.http.client.URL.encode() on the server.

The exact cause of the error is that URL.encodeImpl is a JSNI method, and 
JSNI is kind of a hack in that it uses the syntax for native methods 
(methods provided at runtime by native libraries –DLLs or equivalent–) 
followed by a Java comment with a specific syntax. Java, on the server 
side, just sees a native method, so it tries to resolve it from a native 
library, and it fails to find the link to that library (hence 
UnsatifiedLinkError).

You should use java.net.URLEncoder or, e.g., URIUtils from Apache 
HttpClient.

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



Re: GWT RequestFactory with GAE, may cause conflict when fetch object using locator?

2011-10-06 Thread Thomas Broyer
In that case, the ID of your object is the parent+id pair (or actually, 
parent+kind+id-or-name triplet), which you can easily get using 
ObjectifyFactory#keyToStringhttp://objectify-appengine.googlecode.com/svn/trunk/javadoc/com/googlecode/objectify/ObjectifyFactory.html#keyToString(com.googlecode.objectify.Key)
.

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



Re: Adding a collection of Suggestion to SuggestBox (replacement strings different from display strings)

2011-10-06 Thread Ice13ill
I also tried extending SuggestOracle, or Suggestion interface, but i
cannot access the methods needed or fields, because they have private
or default visibility. Is there something I'm missing ?

On Oct 5, 1:29 pm, Ice13ill andrei.fifi...@gmail.com wrote:
 Hello, I want to create a suggest box with suggestions that have
 replacement strings different from display strings
 I created acollectionof MultiWordSuggestion(replString,
 displayString) but i cannot find how to add them to the SuggestOracle.
 I have methods add(string) or addAll(stringCollection), and only
 setDefaultSuggestions(suggestionCollection).
 the oracle does not have a method addAll(CollectionSuggestion
 suggestions) or add(Suggestions).

 So how do put suggestions with replacement strings different from
 display strings?

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



Re: GWT RequestFactory with GAE, may cause conflict when fetch object using locator?

2011-10-06 Thread July
Thank Thomas now i see it.

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



Re: java.text.MessageFormat working on client?

2011-10-06 Thread Juan Pablo Gardella
In dev mode perhaps work, but in production mode (when is translate to js) I
suppose don't work

2011/10/5 Thiago Coraini tcora...@gmail.com

 Actually, neither Locale nor MessageFormat are on this list. But
 magically both appear to be working on the client.

 I'm almost sure I'm missing something here, but I just don't know
 what!

 On Oct 5, 3:59 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
 wrote:
  Is the class and the method do you need are
  here
 http://code.google.com/intl/es/webtoolkit/doc/latest/RefJreEmulation,
  yes.
 
  2011/10/5 Thiago Coraini tcora...@gmail.com
 
 
 
 
 
 
 
   Hello all,
 
   I'm relatively new to GWT. I'm actually developing a web application
   using SmartGWT, don't know if you've heard of it.
 
   Anyway, I'm trying to format some internationalized messages. In the
   server, I'm using the Java built-in support, through
   java.text.MessageFormat class. But after doing some research, I
   understood that this would not work on the client side. But when I run
   the following code in a client-side class:
 
   -
   String message = Number: {0};
   Log.debug( [Is Client:  + GWT.isClient() + ] Before formatting:  +
   message );
   MessageFormat formatter = new MessageFormat( message );
   message = formatter.format( new Object[] { 2.5 } );
   Log.debug( [Is Client:  + GWT.isClient() + ] After formatting:  +
   message );
   -
 
   I get the following output:
 
   -
   (WebApplicationContext.java:51) 2011-10-05 15:07:19,662 [DEBUG] [Is
   Client: true] Before formatting: Number: {0}
   (WebApplicationContext.java:56) 2011-10-05 15:07:19,690 [DEBUG] [Is
   Client: true] After formatting: Number: 2,5
   -
 
   This is using my default locale, 'pt_BR'. But I can even change it
   with:
 
   -
   Locale locale = new Locale( en, US );
   formatter.setLocale( locale );
   -
 
   and then I would get the output:
 
   -
   (WebApplicationContext.java:52) 2011-10-05 15:12:08,592 [DEBUG] [Is
   Client: true] Before formatting: Number: {0}
   (WebApplicationContext.java:59) 2011-10-05 15:12:08,621 [DEBUG] [Is
   Client: true] After formatting: Number: 2.5
   -
 
   When I load my application in the browser, GWT output complains that
   there is no source code available for both java.text.MessageFormat and
   java.util.Locale. But, even then, the locale-specific formatting
   appears to be working perfectly.
 
   Does anyone understands what is happening?
 
   Thank you very much!
 
   Best regards,
   Thiago
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-toolkit@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.com.
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.

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



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



Re: Quick Question (Web Development Noobie)

2011-10-06 Thread Juan Pablo Gardella
You must have in some points share data (in your case), if you want N
clients see same things. So a DB is fine. If you don't use GWT you have the
same problem.

Think that GWT compile to javascript, so if you make singletons, are
singletons per tab in browser.

Juan.

2011/10/6 David Illescas dilles...@gmail.com

 I am really interested in the GWT technology and would like to learn
 more. I have the following problem.

 I want to run a simulation on the server, such that two separate
 clients accessing that simulation through a browser will see the same
 simulation. With GWT, I am not sure how this is done, since two
 clients seem to result in two separate generated server instances(??)
 with no sharing of data. I want to avoid having two separate
 simulations running because two clients are accessing the server;
 there should only be one, which both clients look at.

 The only way I can of to share data between clients is to maintain
 state in a database. Then the clients would simply receive data from
 that shared database, and the data displayed on both client would
 match. Are there better ways?

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



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



Re: Apply Style to CellList in gwt 2.4.0

2011-10-06 Thread Sudhakar Abraham
Use CellList.Resources interface.  Add your  CellList.css file in
Source attribute.   Override the cellListStyle method.   Construct a
new cellList and pass CellList.Resources as argument.  I send the code
segment of cellList.

//client side.

interface YourCellListResources extends CellList.Resources {
@Source({CellList.css})
@Override
public Style cellListStyle();
  }

//add CellList.Resources in CellList

 CellListString cellList = new
CellListString(your_cell,GWT.MyCellListResources
create(MyCellListResources.class));


//CellList.css file

cellListWidget
 {

}
.cellListEvenItem
 {
  cursor: pointer;
  zoom: 1;
  background:red;
}

.cellListOddItem
{
  cursor: pointer;
  zoom: 1;
   background:blue;
}

.cellListKeyboardSelectedItem
{
  background: #ffc;
}

@sprite .cellListSelectedItem
 {
  gwt-image: 'cellListSelectedBackground';
  background-color: green;
  color: white;
  height: auto;
  overflow: visible;
}


 S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE





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



RequestFactoryEditorDriver.flush() doesn't change edited object

2011-10-06 Thread Jens
Hi,

I am just playing around with the Editor Framework in combination with 
RequestFactoryEditorDriver and currently calling RFED.flush() does not 
update the edited object and I can not see why.

The app is pretty simple and the workflow is:
1.) Create view and initialize RFED
2.) Create a Person on the server datastore (simple hash map and UUID as id)
3.) Fetch the created person from server using the .stableId()
4.) start editing the fetched person
5.) at some point (currently on key up events while editing the persons 
name) do RFED.flush()
6.) PersonProxy does not contain updated name.


Client Side code:

@Override
public void onModuleLoad() {

//init view
view = new PersonViewImpl();
view.setDelegate(this);
RootPanel.get().add(view);

//init RequestFactory and RFED
requestFactory = GWT.create(AppRequestFactory.class);
requestFactory.initialize(new SimpleEventBus());
driver = view.createDriver();
driver.initialize(requestFactory, view);

//create person on server datastore (hash map)
PersonRequest createRequest = requestFactory.personRequest();
final PersonProxy p = createRequest.create(PersonProxy.class);
createRequest.persist(p);
createRequest.fire(new ReceiverVoid() {
@Override
public void onSuccess(final Void result) {
//fetch created person from server
RequestPersonProxy findRequest =
(RequestPersonProxy) 
requestFactory.find(p.stableId()).with(driver.getPaths());
findRequest.fire(new ReceiverPersonProxy() {
@Override
public void onSuccess(final PersonProxy foundPerson) {
//start editing fetched person
PersonRequest editRequest = requestFactory.personRequest();
//editPerson = editRequest.create(PersonProxy.class);
editPerson = foundPerson;
editRequest.persist(editPerson);
driver.edit(editPerson, editRequest);
}
});
}
});
}

@Override
public void onDataChanged() {
//try to autosave the changed data
if(driver != null) {
driver.flush();
System.out.println(edited:  + editPerson.getName() + ,  + 
editPerson.getUuid());
//... clone editPerson and save the clone with a 
separate request context
}
 }

When I am not editing the fetched person but editing a newly created one 
(see editPerson = editRequest.create(PersonProxy.class);), it works like 
expected and editPerson contains the updated name. But this will also create 
new persons on server side once I will save changes of the person proxy.

What am I missing? I think it shouldn't be much of a difference if the proxy 
is newly created or fetched from server.

Also you may notice that I do not use the RequestContext returned by 
driver.flush() because I clone the proxy anyways and save it in background 
in a separate RequestContext (auto save functionality and that way I am able 
to continuously edit the proxy while saving it). So in general a 
SimpleBeanEditorDriver would be enough for editing but I would like to use 
the getPaths() method of RFED when fetching data from server. Is there an 
easy way to calculate paths for a SimpleBeanEditorDriver? 

Thanks in advance.
-- J.

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



Re: How do I develop a large GWT application with generally correct architecture?

2011-10-06 Thread StrongSteve
1.) Start by watching and understanding the architecture talk
presented by google at their annual developer conferences [1].
2.) Make sure you really understand them. If not, repeat step 1.
3.) Work your way through the GWT documentation [2].
4.) Start with a simple GWT sample project and work your way up from
there...

BTW... Just providing a link to a previously asked question is not the
nice way to go...

Greetings
Stefan

[1] http://www.google.com/events/io/2011/index-live.html
[2] http://code.google.com/webtoolkit/doc/latest/DevGuide.html

On 4 Okt., 19:05, Анатолий Ручка anatoliy.ruc...@gmail.com wrote:
  I already ask questions 
 herehttp://stackoverflow.com/questions/7638524/how-do-i-develop-a-large-g...
  that was very awful, but i need answers

 Exists video lessons about mvp 
 arhitecture?http://habrahabr.ru/blogs/gwt/113121/http://blog.hivedevelopment.co.uk/2009/08/google-web-toolkit-gwt-mvp-...

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



Re: CellTable custom header help.

2011-10-06 Thread Sudhakar Abraham
Create a cellTable using CellTable.Resources interface.  Add your
CellTableStyle.css file in your CellTable constructor.   Construct the
header using cell interface.

//client side code.

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

//construct the cellTable using cellTable Resources.

  CellTableYour_domain_class cellTable =   new
CellTableStudent(15, GWT.TableResources
create(TableResources.class));
 
cellTable .setKeyboardSelectionPolicy(KeyboardSelectionPolicy.ENABLED);

  //Instatiate a column

ColumnYour_domain_class, String Column_ = new TableColumn
();
cellTable .addColumn(Column,Department);
Column_.setFieldUpdater(new FieldUpdaterYour_domain_class,
String()
  {

@Override
public void update(int index, Your_domain_class object, String
value)
{
 //set value to Your_domain_class.

}
  });
cellTable .setColumnWidth(Column_, 25ex);

//Adding a header

 HeaderString header = new HeaderString(new ClickableTextCell())
{

  @Override
  public String getValue() {

return Header_title;
  }

  @Override
  public void onBrowserEvent(Context context, Element parent,
NativeEvent event)
  {
   Window.alert(Header is clicked);
  }
};
cellTable.addColumn(feesColumn, header , new
TextHeader(footer));


//your column on cellTable

 private class TableColumn extends Columnyour_domain_class, String
  {
public TableColumn ()
{
  super(new EditTextCell());
}

@Override
public String getValue(your_domain_class object)
{
  return object.your_member_variable;
}
  }

 S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE

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



Re: Quick Question (Web Development Noobie)

2011-10-06 Thread Jens
Well there are a couple of different ways. 

First off if you only use a single server instead of a server cluster then 
you can create a singleton class that manages your simulations and clients 
that connect to your server can ask this singleton class about live 
information of a specific simulation that is currently running. Of course 
you could also save snapshots of your simulation data to a database and 
let the clients fetch these snapshots. But depending on the complexity of 
the simulation you may end up with a lot of database queries to save the 
snapshots. But maybe you want to snapshot anyways because you want to be 
able to resume the simulation if the server crashes or something like that.

If you have a server cluster things get a bit more complicated if you want 
live information without using simulation snapshots stored in a database. 
Because in that case you first have to identify the server on which the 
requested simulation runs and then find a way to communicate with that 
server to get live information. 
For a cluster setup something like Terracotta (terracotta.org) can also be 
interesting. It can create a JVM-level cluster which allows you to create 
objects that are shared/accessible by all JVMs in that cluster. Which 
instance should be shared can be defined in a configuration file. Take a 
look at http://video.google.com/videoplay?docid=7660457673499305140 to get 
an impression of what terracotta does.

-- J.

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



MVP - 1 Handler for multiple View (instances). How to identify which view was the target?

2011-10-06 Thread benneq
Hi,
I have a simple / small question:

I have an ItemPresenter (connected to an ItemView). And every View has
3 Buttons. I can have a single ClickHandler inside the View which can
tell me which of my 3 Buttons was clicked:

if(event.getSource() == button1) {
  Window.alert(1 was clicked);
} else if(event.getSource() == button2) {
...

That works fine. But now I think I have to go one step further,
because there's not just one instance of that Presenter and View: As
the name ItemPresenter should tell: There's one instance per item. So
I have about 100 of them. And then I have 100 ClickHandlers running.
I'd like to reduce it to one ClickHandler, but I don't know which is
the best way.
One thing I've tested:

public ItemDisplay() {
  this.addDomHandler(clickHandler, ClickEvent.getType());
}

public static ClickHandler clickHandler = new ClickHandler() {
  public void onClick(ClickEvent event) {
ItemDisplay item = (ItemDisplay) event.getSource();
  }
}

Now, if anything of the display was clicked I get a reference to that
display. So far so good. And with:

EventTarget target = event.getNativeEvent().getEventTarget();

I get a reference to the part of the Ui that was clicked. And here
comes the problem:
If I do 'System.out.println(target);' I can see 'button type=button
class=gwt-Button style=button 1/button' (or Button 2 or 3). But
how can I determine in that static context of the ClickHandler which
of the buttons it was?

Should I create getters for all buttons and check using them? like
this:

@UiField public Button button1;
@UiField public Button button2;
@UiField public Button button3;

public ItemDisplay() {
  this.addDomHandler(clickHandler, ClickEvent.getType());
}

public static ClickHandler clickHandler = new ClickHandler() {
  public void onClick(ClickEvent event) {
ItemDisplay item = (ItemDisplay) event.getSource();
EventTarget target = event.getNativeEvent().getEventTarget();

if(target.cast() == item.button1.getElement())
{ item.getPresenter().doSth1(); }
else if(target.cast() == item.button2.getElement())
{ item.getPresenter().doSth2(); }
else if(target.cast() == item.button3.getElement())
{ item.getPresenter().doSth3(); }
  }
}


Is that okay concerning MVP (supervising controller) ? Or maybe
there's a better solution handling all those handlers?

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



Re: RequestFactoryEditorDriver.flush() doesn't change edited object

2011-10-06 Thread Thomas Broyer
Your 'editPerson' variable points to the immutable version received by your 
first request. When you pass it to the RFED, it'll RequestContext#edit() it, 
and modify the returned mutable version.

You'd like to editPerson = editRequest.edit(foundPerson) first (calling 
RequestContext#edit() on a mutable object returns that object, so it's safe 
to pass editPerson to the RFED; actually you could even pass the 
foundPerson, as calling edit() in the same RequestContext on the same 
immutable proxy will always return the same mutable proxy).

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



Re: FileUpload and IE8

2011-10-06 Thread jhulford
You need to expound on what your issue is. when IE8 uploads, the
onSubmitComplete fires and regardless of what I do IE hangs up isn't
very descriptive of what problem you're actually encountering.

On Oct 5, 3:49 pm, GeorgeS sxoutt...@gmail.com wrote:
 So is this a known issue or just something IE8 does?

 On Oct 3, 4:27 pm, GeorgeS sxoutt...@gmail.com wrote:

  This is a cross-post but I realized I'd posted on the GAE forum and
  this likely belongs here.

  I have a Java app written using GAE and GWT and it makes use of the
  FileUpload control to send a file to a datastore. It has been working
  fine with IE9 and I started testing with other browsers and noticed a
  problem. All of the current crop of browsers seems to work fine on 
  myuploadusing a standard looking GWT form but  whenIE8uploads, the
  onSubmitComplete fires and regardless of what I do IE hangs up.  
  SinceIE8has around 12% of the browser market I need to find a fix.

  Any ideas?

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



Re: GWT Designer - Support to reference CSS from ui.xml as well as CSSResource

2011-10-06 Thread abby
Thanks Eric, I think what we have now allows us to manually select a
style by clicking in the textbox, which brings a dropdown where you
can select a style.

1) It probably will be nice that when you click a widget the dropdown
automatically filters the current styles applied, along with an entry
for Add... which allows you to select other styles or add new ones.

2) The CSS button is the most prominent one and it was not even
obvious too me that clicking the textbox actually brings a dropdown of
style. Clicking CSS should still allow you to select all styles, or it
probably should be done away with.

I can open an issue to let others brainstorm this through?


On Oct 5, 7:23 pm, Eric Clayberg (Google) clayb...@google.com
wrote:
 The CSS 
 editorhttp://code.google.com/webtoolkit/tools/gwtdesigner/features/gwt/css_...you
  refer to has actually be in the tool for a very long time. It was
 originally designed to support editing of global CSS styles referenced from
 HTML or from gwt.xml files. In the most recent GPE / GWT Designer release,
 we added CSS style editing directly in the property pane of the editor. This
 new CSS editing approach works with both globals styles as well as local
 styles defined in the current UiBinder XML file. If you would like to see
 the original CSS editor extended to support local styles, create a new issue
 in the GWT Issue 
 Trackerhttp://code.google.com/p/google-web-toolkit/issues/list
 .

 http://1.bp.blogspot.com/-p4Y6uH0k1-o/TmjiP80r_XI/ADc/gxj3wKc...

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



Re: java.text.MessageFormat working on client?

2011-10-06 Thread Thiago Coraini
Yeah, I see now that I didn't quite understand the dev/production
modes. You are right!

Thank you very much for the clarification!

Best regards,
Thiago

On 6 out, 09:55, Juan Pablo Gardella gardellajuanpa...@gmail.com
wrote:
 In dev mode perhaps work, but in production mode (when is translate to js) I
 suppose don't work

 2011/10/5 Thiago Coraini tcora...@gmail.com







  Actually, neither Locale nor MessageFormat are on this list. But
  magically both appear to be working on the client.

  I'm almost sure I'm missing something here, but I just don't know
  what!

  On Oct 5, 3:59 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
  wrote:
   Is the class and the method do you need are
   here
 http://code.google.com/intl/es/webtoolkit/doc/latest/RefJreEmulation,
   yes.

   2011/10/5 Thiago Coraini tcora...@gmail.com

Hello all,

I'm relatively new to GWT. I'm actually developing a web application
using SmartGWT, don't know if you've heard of it.

Anyway, I'm trying to format some internationalized messages. In the
server, I'm using the Java built-in support, through
java.text.MessageFormat class. But after doing some research, I
understood that this would not work on the client side. But when I run
the following code in a client-side class:

-
String message = Number: {0};
Log.debug( [Is Client:  + GWT.isClient() + ] Before formatting:  +
message );
MessageFormat formatter = new MessageFormat( message );
message = formatter.format( new Object[] { 2.5 } );
Log.debug( [Is Client:  + GWT.isClient() + ] After formatting:  +
message );
-

I get the following output:

-
(WebApplicationContext.java:51) 2011-10-05 15:07:19,662 [DEBUG] [Is
Client: true] Before formatting: Number: {0}
(WebApplicationContext.java:56) 2011-10-05 15:07:19,690 [DEBUG] [Is
Client: true] After formatting: Number: 2,5
-

This is using my default locale, 'pt_BR'. But I can even change it
with:

-
Locale locale = new Locale( en, US );
formatter.setLocale( locale );
-

and then I would get the output:

-
(WebApplicationContext.java:52) 2011-10-05 15:12:08,592 [DEBUG] [Is
Client: true] Before formatting: Number: {0}
(WebApplicationContext.java:59) 2011-10-05 15:12:08,621 [DEBUG] [Is
Client: true] After formatting: Number: 2.5
-

When I load my application in the browser, GWT output complains that
there is no source code available for both java.text.MessageFormat and
java.util.Locale. But, even then, the locale-specific formatting
appears to be working perfectly.

Does anyone understands what is happening?

Thank you very much!

Best regards,
Thiago

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

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

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



Crossposted from GPE group (Tooling support to handle GWT MVP boilerplate)

2011-10-06 Thread abby
Posting this on this group to reach the GWT community as well.

I was wondering if there are any plans to add better tooling support
to generate the boilerplate interfaces/classes to build a use case
using MVP approach.
One pain point i have been hearing a lot in my discussion with
developers is the amount of boilerplate code needed to get something
going. I believe support from GPE to have a right click menu item
saying add use case, which generates a corresponding presenter
interface, implementation, a uibinder.xml file with corresponding java
class and interface will help ease some of the pain. Thoughts?

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



Re: RequestFactoryEditorDriver.flush() doesn't change edited object

2011-10-06 Thread Jens
Ahhh I see...now it works. Thanks for that.

Using SimpleBeanEditorDriver you get the edited bean when calling .flush(). 
Wouldn't it be handy if RFED returns the mutable instance when calling 
RFED.edit()? RFED.flush() returns the request context so RFED.edit() would 
be a good choice if you want to access the mutable object. Would be a bit 
easier.

But anyways I have also found the PathCollector EditorVisitor so I think I 
could switch to SimpleBeanEditorDriver + getPaths() via visitor.

-- J.

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



Re: Error com.google.gwt.user.client.rpc.InvocationException: from LoginService Proxy.login

2011-10-06 Thread sahista
please can someone point me what to to or what comes this error?

On Oct 6, 11:40 am, sahista sven.maco...@gmail.com wrote:
 Hello.

 Im getting this error trying to login onto my google apps through
 google login:

 com.google.gwt.user.client.rpc.InvocationException: from LoginService
 Proxy.login

 sometimes it gives me the login page from google but in 70% cases i
 get this throwable error.

 any help appreciated.

 thanx in advance.

 s

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



CSS3 support in GWT

2011-10-06 Thread Claudio Coelho
Hi all,
We are now trying to get into using HTML5+CSS3 with GWT, but we failed
to find specific info regarding what does GWT support in terms of
CSS3? Can we use all the features (with uibinder)? Or only a specific
set? We got stuff like shadows to work easily, but gradients don't
seem to work at all, so we are wondering if it's a matter of GWT
support or if we are doing anything wrong.
Any info will be helpful.

Thanks

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



Re: FileUpload and IE8

2011-10-06 Thread Ben Imp
Not that this helps you resolve your issue, but the GWT applications I 
maintain have no issues when uploading files in IE8 land.  Something about 
how you are handling things is likely unique.  Post some code and, as others 
have mentioned, a bit more detail about what exactly is happening.

-Ben

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



Re: RichTextArea Exception with IE9

2011-10-06 Thread Rogermi
Hi,
i mentioned this exception, too! But i swear it worked a few weeks
ago! with the same version of GWT! Perhaps the IE9 changed its
version!
So i hope the google-croud will fix it soon!

greetz

On 30 Sep., 02:15, drtman drt...@gmail.com wrote:
 I get the exception below any time I try to add a RichTextArea to a
 panel in IE9.  The RichTextArea can be created, but the exception is
 thrown any time it is added to a panel.  I've recreated this pretty
 easily - it will even happen if I just create a new GWT web
 application project in eclipse, and modify the entrypoint module to
 add a RichTextArea to the root panel.  Browser mode is set to IE9 and
 Document Mode is set to IE9 standards, but I think this happens
 irregardless of that setting.  This does not happen in Firefox or
 Chrome.  I am using GWT 2.4.0.  Anything I should look for specific to
 IE9 (or IEx)?

 com.google.gwt.core.client.JavaScriptException: (TypeError): Unable
 to
 set value of the property 'innerHTML': object is null or undefined
     at
 com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann­­
 elServer.java:
 248)
     at
 com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
 136)
     at
 com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
 561)
     at
 com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
 269)
     at
 com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.j­­
 ava:
 91)
     at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
     at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
 Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     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.jav­­
 a:
 172)
     at
 com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChanne­­
 lServer.java:
 292)
     at
 com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan­­
 nelServer.java:
 546)
     at
 com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java­­:
 363)
     at java.lang.Thread.run(Unknown Source)

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



Passing an argument to a View using Activities and Places

2011-10-06 Thread Mike Dee
I'm using Activities and Place and can't figure this out.  I've been
looking at samples but don't see it in there. I think I'm missing
something.

I have a button in one place that, when clicked, will trigger a new
activity and place (along with a new view).  The code for that button
simply looks like this:

listener.goTo( new FooPlace( fooid ) );

The above code is in the button handler of BarViewImpl (view
implementation for a separate place/activity).

This above line works in that it goes to FooPlace and the URL shows
the parameter (123456):

MyApp.html?gwt.codesvr=127.0.0.1:9997#FooPlace:123456

But fooid doesn't make it to FooView.  How does the FooPlace or
FooActivity pass the fooid to FooView?

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



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

2011-10-06 Thread Mike Dee
Just want to add one thing.  FooView has a method named setName(),
which (I think) is used to set the argument.  I've noticed this is not
called, even though it is passed in creating the FooPlace.

On Oct 6, 10:17 am, Mike Dee mdichiapp...@gmail.com wrote:
 I'm using Activities and Place and can't figure this out.  I've been
 looking at samples but don't see it in there. I think I'm missing
 something.

 I have a button in one place that, when clicked, will trigger a new
 activity and place (along with a new view).  The code for that button
 simply looks like this:

 listener.goTo( new FooPlace( fooid ) );

 The above code is in the button handler of BarViewImpl (view
 implementation for a separate place/activity).

 This above line works in that it goes to FooPlace and the URL shows
 the parameter (123456):

 MyApp.html?gwt.codesvr=127.0.0.1:9997#FooPlace:123456

 But fooid doesn't make it to FooView.  How does the FooPlace or
 FooActivity pass the fooid to FooView?

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



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

2011-10-06 Thread Alisson Prestes
The FooActivity extracts the arguments from the FooPlace. Then it calls the
right method in the FooView. Place and View do not interact with each other
directly.

Alisson Prestes
www.google.com/profiles/javalisson



On Thu, Oct 6, 2011 at 2:17 PM, Mike Dee mdichiapp...@gmail.com wrote:

 I'm using Activities and Place and can't figure this out.  I've been
 looking at samples but don't see it in there. I think I'm missing
 something.

 I have a button in one place that, when clicked, will trigger a new
 activity and place (along with a new view).  The code for that button
 simply looks like this:

 listener.goTo( new FooPlace( fooid ) );

 The above code is in the button handler of BarViewImpl (view
 implementation for a separate place/activity).

 This above line works in that it goes to FooPlace and the URL shows
 the parameter (123456):

 MyApp.html?gwt.codesvr=127.0.0.1:9997#FooPlace:123456

 But fooid doesn't make it to FooView.  How does the FooPlace or
 FooActivity pass the fooid to FooView?

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



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



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

2011-10-06 Thread Mike Dee
So, should I put code in FooActivity?  I am not sure if the
boilerplate code generated by the activity should have done that or
not.

On Oct 6, 10:44 am, Alisson Prestes javalis...@gmail.com wrote:
 The FooActivity extracts the arguments from the FooPlace. Then it calls the
 right method in the FooView. Place and View do not interact with each other
 directly.

 Alisson Presteswww.google.com/profiles/javalisson







 On Thu, Oct 6, 2011 at 2:17 PM, Mike Dee mdichiapp...@gmail.com wrote:
  I'm using Activities and Place and can't figure this out.  I've been
  looking at samples but don't see it in there. I think I'm missing
  something.

  I have a button in one place that, when clicked, will trigger a new
  activity and place (along with a new view).  The code for that button
  simply looks like this:

  listener.goTo( new FooPlace( fooid ) );

  The above code is in the button handler of BarViewImpl (view
  implementation for a separate place/activity).

  This above line works in that it goes to FooPlace and the URL shows
  the parameter (123456):

  MyApp.html?gwt.codesvr=127.0.0.1:9997#FooPlace:123456

  But fooid doesn't make it to FooView.  How does the FooPlace or
  FooActivity pass the fooid to FooView?

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

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



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

2011-10-06 Thread Mike Dee
Would the call to set the arg in the view go in FooActivity.start()?

On Oct 6, 10:46 am, Mike Dee mdichiapp...@gmail.com wrote:
 So, should I put code in FooActivity?  I am not sure if the
 boilerplate code generated by the activity should have done that or
 not.

 On Oct 6, 10:44 am, Alisson Prestes javalis...@gmail.com wrote:







  The FooActivity extracts the arguments from the FooPlace. Then it calls the
  right method in the FooView. Place and View do not interact with each other
  directly.

  Alisson Presteswww.google.com/profiles/javalisson

  On Thu, Oct 6, 2011 at 2:17 PM, Mike Dee mdichiapp...@gmail.com wrote:
   I'm using Activities and Place and can't figure this out.  I've been
   looking at samples but don't see it in there. I think I'm missing
   something.

   I have a button in one place that, when clicked, will trigger a new
   activity and place (along with a new view).  The code for that button
   simply looks like this:

   listener.goTo( new FooPlace( fooid ) );

   The above code is in the button handler of BarViewImpl (view
   implementation for a separate place/activity).

   This above line works in that it goes to FooPlace and the URL shows
   the parameter (123456):

   MyApp.html?gwt.codesvr=127.0.0.1:9997#FooPlace:123456

   But fooid doesn't make it to FooView.  How does the FooPlace or
   FooActivity pass the fooid to FooView?

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

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



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

2011-10-06 Thread Alisson Prestes
Yes, I think this will work.


Alisson Prestes
www.google.com/profiles/javalisson



On Thu, Oct 6, 2011 at 2:48 PM, Mike Dee mdichiapp...@gmail.com wrote:

 Would the call to set the arg in the view go in FooActivity.start()?

 On Oct 6, 10:46 am, Mike Dee mdichiapp...@gmail.com wrote:
  So, should I put code in FooActivity?  I am not sure if the
  boilerplate code generated by the activity should have done that or
  not.
 
  On Oct 6, 10:44 am, Alisson Prestes javalis...@gmail.com wrote:
 
 
 
 
 
 
 
   The FooActivity extracts the arguments from the FooPlace. Then it calls
 the
   right method in the FooView. Place and View do not interact with each
 other
   directly.
 
   Alisson Presteswww.google.com/profiles/javalisson
 
   On Thu, Oct 6, 2011 at 2:17 PM, Mike Dee mdichiapp...@gmail.com
 wrote:
I'm using Activities and Place and can't figure this out.  I've been
looking at samples but don't see it in there. I think I'm missing
something.
 
I have a button in one place that, when clicked, will trigger a new
activity and place (along with a new view).  The code for that button
simply looks like this:
 
listener.goTo( new FooPlace( fooid ) );
 
The above code is in the button handler of BarViewImpl (view
implementation for a separate place/activity).
 
This above line works in that it goes to FooPlace and the URL shows
the parameter (123456):
 
MyApp.html?gwt.codesvr=127.0.0.1:9997#FooPlace:123456
 
But fooid doesn't make it to FooView.  How does the FooPlace or
FooActivity pass the fooid to FooView?
 
--
You received this message because you are subscribed to the Google
 Groups
Google Web Toolkit group.
To post to this group, send email to
 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at
   http://groups.google.com/group/google-web-toolkit?hl=en.

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



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



GPE issue - erasing libs on Run As

2011-10-06 Thread André Salvati
Hi,

strange behavior that started to happen on GPE after add guice and
shiro jars.

Step 1 - Package app (maven). All jars are on WEB-INF/lib as expected.

Step 2 - Execute Run as - Web Application... gets
java.lang.ClassNotFoundException:
com.google.inject.servlet.GuiceServletContextListener. I noticed that
guice and shiro jars disapeared from my WEB-INF/lib

Note: When I execute gwt:run after 1, everything works fine.

Does GPE make any validation before start to run? Why GPE is deleting
some of my jars??

Should I crosspost questions about GPE on GAE forum?

Thanks.

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



Documentation Request: Add javax.persistence API to the Navigation Reference

2011-10-06 Thread Brandon Donnelson
 

It would be nice to be able to quickly reference the javax.persistence Api 
in the left navigation list. In writing Request factory code, it would be 
nice to reference the things that go along with it. 

For example the RequestFactory  expenses example, what is 
setFirstResult(int) refer to?

package com.google.gwt.sample.expenses.server.domain.Employee

ListEmployee resultList = em.createQuery(select o from Employee o
).setFirstResult(

  firstResult).setMaxResults(maxResults).getResultList();

Brandon Donnelson

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



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

2011-10-06 Thread Mike Dee
FooActivity.start() looks like this.  Note that while it can get
FooView from the clientfactory, it has no notion of FooPlace, which is
where the argument (fooid) is stored.

@Override
public void start( AcceptsOneWidget containerWidget, EventBus
eventBus )
{
  FooView view = clientFactory.getFooView();
  view.setPresenter( this );
  containerWidget.setWidget( view.asWidget() );
}

I guess the call to view.setName() could be made in FooActivity's
constructor, where a FooPlace is passed in.

public FooActivity( FooPlace place, ClientFactory clientFactory )
{
  this.clientFactory = clientFactory;
}

But I don't know how to get the argument (token) out of FooPlace.


On Oct 6, 10:51 am, Alisson Prestes javalis...@gmail.com wrote:
 Yes, I think this will work.

 Alisson Presteswww.google.com/profiles/javalisson







 On Thu, Oct 6, 2011 at 2:48 PM, Mike Dee mdichiapp...@gmail.com wrote:
  Would the call to set the arg in the view go in FooActivity.start()?

  On Oct 6, 10:46 am, Mike Dee mdichiapp...@gmail.com wrote:
   So, should I put code in FooActivity?  I am not sure if the
   boilerplate code generated by the activity should have done that or
   not.

   On Oct 6, 10:44 am, Alisson Prestes javalis...@gmail.com wrote:

The FooActivity extracts the arguments from the FooPlace. Then it calls
  the
right method in the FooView. Place and View do not interact with each
  other
directly.

Alisson Presteswww.google.com/profiles/javalisson

On Thu, Oct 6, 2011 at 2:17 PM, Mike Dee mdichiapp...@gmail.com
  wrote:
 I'm using Activities and Place and can't figure this out.  I've been
 looking at samples but don't see it in there. I think I'm missing
 something.

 I have a button in one place that, when clicked, will trigger a new
 activity and place (along with a new view).  The code for that button
 simply looks like this:

 listener.goTo( new FooPlace( fooid ) );

 The above code is in the button handler of BarViewImpl (view
 implementation for a separate place/activity).

 This above line works in that it goes to FooPlace and the URL shows
 the parameter (123456):

 MyApp.html?gwt.codesvr=127.0.0.1:9997#FooPlace:123456

 But fooid doesn't make it to FooView.  How does the FooPlace or
 FooActivity pass the fooid to FooView?

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

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

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



Re: GPE issue - erasing libs on Run As

2011-10-06 Thread André Salvati
Just found a new group for GPE.

https://groups.google.com/group/google-plugin-eclipse

On Oct 6, 2:59 pm, André Salvati andre.f.salv...@gmail.com wrote:
 Hi,

 strange behavior that started to happen on GPE after add guice and
 shiro jars.

 Step 1 - Package app (maven). All jars are on WEB-INF/lib as expected.

 Step 2 - Execute Run as - Web Application... gets
 java.lang.ClassNotFoundException:
 com.google.inject.servlet.GuiceServletContextListener. I noticed that
 guice and shiro jars disapeared from my WEB-INF/lib

 Note: When I execute gwt:run after 1, everything works fine.

 Does GPE make any validation before start to run? Why GPE is deleting
 some of my jars??

 Should I crosspost questions about GPE on GAE forum?

 Thanks.

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



Re: RichTextArea Exception with IE9

2011-10-06 Thread Rogermi
i found out that the GWT seems to think IE9 is Safari ... so the wrong
implementation is called!

On 6 Okt., 18:47, Rogermi roger.michael...@googlemail.com wrote:
 Hi,
 i mentioned this exception, too! But i swear it worked a few weeks
 ago! with the same version of GWT! Perhaps the IE9 changed its
 version!
 So i hope the google-croud will fix it soon!

 greetz

 On 30 Sep., 02:15, drtman drt...@gmail.com wrote:



  I get the exception below any time I try to add a RichTextArea to a
  panel in IE9.  The RichTextArea can be created, but the exception is
  thrown any time it is added to a panel.  I've recreated this pretty
  easily - it will even happen if I just create a new GWT web
  application project in eclipse, and modify the entrypoint module to
  add a RichTextArea to the root panel.  Browser mode is set to IE9 and
  Document Mode is set to IE9 standards, but I think this happens
  irregardless of that setting.  This does not happen in Firefox or
  Chrome.  I am using GWT 2.4.0.  Anything I should look for specific to
  IE9 (or IEx)?

  com.google.gwt.core.client.JavaScriptException: (TypeError): Unable
  to
  set value of the property 'innerHTML': object is null or undefined
      at
  com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann­­­
  elServer.java:
  248)
      at
  com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
  136)
      at
  com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
  561)
      at
  com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
  269)
      at
  com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.j­­­
  ava:
  91)
      at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
      at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
  Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      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.jav­­­
  a:
  172)
      at
  com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChanne­­­
  lServer.java:
  292)
      at
  com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan­­­
  nelServer.java:
  546)
      at
  com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java­­­:
  363)
      at java.lang.Thread.run(Unknown Source)- Zitierten Text ausblenden -

 - Zitierten Text anzeigen -

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



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

2011-10-06 Thread Alisson Prestes
Here's an example from GWT Development with Activities and Places tutorial
(
http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html
)

public class HelloPlace extends Place {

private String helloName;

public HelloPlace(String token) {

this.helloName = token;
}

public String getHelloName() {

return helloName;
}

public static class Tokenizer implements PlaceTokenizerHelloPlace {

@Override
public String getToken(HelloPlace place) {

return place.getHelloName();
}

@Override
public HelloPlace getPlace(String token) {

return new HelloPlace(token);

}
}
}

As you correctly guessed, in the constructor you call the get... method
and stores it in an attribute, just like you did with the clientFactory.
Then you can check if this attribute is not null in the start method and
call the appropriated method of the view.

Alisson Prestes
www.google.com/profiles/javalisson



On Thu, Oct 6, 2011 at 3:00 PM, Mike Dee mdichiapp...@gmail.com wrote:

 FooActivity.start() looks like this.  Note that while it can get
 FooView from the clientfactory, it has no notion of FooPlace, which is
 where the argument (fooid) is stored.

 @Override
 public void start( AcceptsOneWidget containerWidget, EventBus
 eventBus )
 {
  FooView view = clientFactory.getFooView();
  view.setPresenter( this );
  containerWidget.setWidget( view.asWidget() );
 }

 I guess the call to view.setName() could be made in FooActivity's
 constructor, where a FooPlace is passed in.

 public FooActivity( FooPlace place, ClientFactory clientFactory )
 {
  this.clientFactory = clientFactory;
 }

 But I don't know how to get the argument (token) out of FooPlace.


 On Oct 6, 10:51 am, Alisson Prestes javalis...@gmail.com wrote:
  Yes, I think this will work.
 
  Alisson Presteswww.google.com/profiles/javalisson
 
 
 
 
 
 
 
  On Thu, Oct 6, 2011 at 2:48 PM, Mike Dee mdichiapp...@gmail.com wrote:
   Would the call to set the arg in the view go in FooActivity.start()?
 
   On Oct 6, 10:46 am, Mike Dee mdichiapp...@gmail.com wrote:
So, should I put code in FooActivity?  I am not sure if the
boilerplate code generated by the activity should have done that or
not.
 
On Oct 6, 10:44 am, Alisson Prestes javalis...@gmail.com wrote:
 
 The FooActivity extracts the arguments from the FooPlace. Then it
 calls
   the
 right method in the FooView. Place and View do not interact with
 each
   other
 directly.
 
 Alisson Presteswww.google.com/profiles/javalisson
 
 On Thu, Oct 6, 2011 at 2:17 PM, Mike Dee mdichiapp...@gmail.com
   wrote:
  I'm using Activities and Place and can't figure this out.  I've
 been
  looking at samples but don't see it in there. I think I'm missing
  something.
 
  I have a button in one place that, when clicked, will trigger a
 new
  activity and place (along with a new view).  The code for that
 button
  simply looks like this:
 
  listener.goTo( new FooPlace( fooid ) );
 
  The above code is in the button handler of BarViewImpl (view
  implementation for a separate place/activity).
 
  This above line works in that it goes to FooPlace and the URL
 shows
  the parameter (123456):
 
  MyApp.html?gwt.codesvr=127.0.0.1:9997#FooPlace:123456
 
  But fooid doesn't make it to FooView.  How does the FooPlace or
  FooActivity pass the fooid to FooView?
 
  --
  You received this message because you are subscribed to the
 Google
   Groups
  Google Web Toolkit group.
  To post to this group, send email to
   google-web-toolkit@googlegroups.com.
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.com.
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-toolkit@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.com.
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.

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



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

Re: Adding a collection of Suggestion to SuggestBox (replacement strings different from display strings)

2011-10-06 Thread Aidan O'Kelly
You can't add suggestion objects directly, but you can override
the createSuggestion(String replacementString, String displayString) method.

It will be called with the original string, passed into add(), and a
displayString, which will have the search query terms highlighted with
strong tags. You can then go ahead and modify the strings, and create and
return a MultiWordSuggestion object which will be returned to the
SuggestBox.


On Thu, Oct 6, 2011 at 1:14 PM, Ice13ill andrei.fifi...@gmail.com wrote:

 I also tried extending SuggestOracle, or Suggestion interface, but i
 cannot access the methods needed or fields, because they have private
 or default visibility. Is there something I'm missing ?

 On Oct 5, 1:29 pm, Ice13ill andrei.fifi...@gmail.com wrote:
  Hello, I want to create a suggest box with suggestions that have
  replacement strings different from display strings
  I created acollectionof MultiWordSuggestion(replString,
  displayString) but i cannot find how to add them to the SuggestOracle.
  I have methods add(string) or addAll(stringCollection), and only
  setDefaultSuggestions(suggestionCollection).
  the oracle does not have a method addAll(CollectionSuggestion
  suggestions) or add(Suggestions).
 
  So how do put suggestions with replacement strings different from
  display strings?

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



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



Re: CSS3 support in GWT

2011-10-06 Thread benneq
GWT itself doesn't support CSS3 right now (I think it's because
there's still IE6 support...). That just mean's that there are no
classes or methods that do any CSS3 things.
But you still can use CSS3 with GWT. Just like you use box-shadows
(GWT has no support for shadows, too). So you take your ui:style-
tags in UiBinder and insert all of the CSS3 stuff you like. If you
open your page with a CSS3-supporting browser, than you should see
your CSS3 styles.

On 6 Okt., 17:22, Claudio Coelho
innovation.that.matt...@homeyplanet.com wrote:
 Hi all,
 We are now trying to get into using HTML5+CSS3 with GWT, but we failed
 to find specific info regarding what does GWT support in terms of
 CSS3? Can we use all the features (with uibinder)? Or only a specific
 set? We got stuff like shadows to work easily, but gradients don't
 seem to work at all, so we are wondering if it's a matter of GWT
 support or if we are doing anything wrong.
 Any info will be helpful.

 Thanks

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



Re: CSS3 support in GWT

2011-10-06 Thread Chris Conroy
Yep, note that CSSResource doesn't grok CSS3 yet, so you'll need to use
literals for CSS3 attributes:

e.g.
background: literal(-webkit-gradient(linear, left top, left bottom,
from(#f5f5f5), to(#e4e4e4)));

On Thu, Oct 6, 2011 at 2:22 PM, benneq benjamin_ma...@lavabit.com wrote:

 GWT itself doesn't support CSS3 right now (I think it's because
 there's still IE6 support...). That just mean's that there are no
 classes or methods that do any CSS3 things.
 But you still can use CSS3 with GWT. Just like you use box-shadows
 (GWT has no support for shadows, too). So you take your ui:style-
 tags in UiBinder and insert all of the CSS3 stuff you like. If you
 open your page with a CSS3-supporting browser, than you should see
 your CSS3 styles.

 On 6 Okt., 17:22, Claudio Coelho
 innovation.that.matt...@homeyplanet.com wrote:
  Hi all,
  We are now trying to get into using HTML5+CSS3 with GWT, but we failed
  to find specific info regarding what does GWT support in terms of
  CSS3? Can we use all the features (with uibinder)? Or only a specific
  set? We got stuff like shadows to work easily, but gradients don't
  seem to work at all, so we are wondering if it's a matter of GWT
  support or if we are doing anything wrong.
  Any info will be helpful.
 
  Thanks

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



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



Re: New group for Google Plugin for Eclipse (GPE)

2011-10-06 Thread André Salvati
Please,

could you update?

http://code.google.com/eclipse/community.html

Thanks.


On Sep 9, 5:43 am, gwt.user gwt.u...@yahoo.fr wrote:
 This is cool news.
 Thx.

 On Sep 8, 6:11 am, Sriram Saroop sar...@google.com wrote:







  Hi folks,
  We have created a new group for Google Plugin for Eclipse (GPE).

 https://groups.google.com/group/google-plugin-eclipse
  google-plugin-ecli...@googlegroups.com

  Do join this group and feel free to post your queries/suggestions on GPE.

  Cheers,

  The GPE team

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



Re: CSS3 support in GWT

2011-10-06 Thread Jeff Larsen
There also is a library which makes some css3 work on old IE easier,

http://css3pie.com

and I made a wrapper for that in gwt

http://gwt-css3-pie.googlecode.com

so you don't have to implement the special pie selectors yourself, the 
library automatically ads them to the IE versions. 

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



Re: new in 2.4? GWT SDK JAR gwt-servlet.jar is missing in the WEB-INF/lib directory

2011-10-06 Thread brent.r...@gmail.com
I've noticed this issue as well.  I don't understand why eclipse GWT
SDK just doesn't include the gwt-servlet.jar file there instead of
needing to copy it over to WEB-INF/lib.  The only way I get around
this now is to make sure that my war/WEB-INF/lib directory doesn't
have any jar files in it when I build my maven project.  And the only
way I can get eclipse to copy the jar file over to where it wants it
is to open the Google-GWT settings dialog and then close it...


Anyone else have a fix or workaround?



On Sep 19, 11:57 am, cri chuck.irvine...@gmail.com wrote:
 I'm seeing this error in eclipse problems:

      GWT SDK JARgwt-servlet.jaris missing in the WEB-INF/lib
 directory

 Does anyone know whether this is new in GWT 2.4? I don't recall seeing
 it before.

 I'm using gwt-maven-plugin and my pom file has gwt-servlet as a
 dependency. If I put this jar in my WEB-INF/lib directory, I end up
 with two jars in my war file:gwt-servlet.jarandgwt-servlet.jar-2.x.x.

 Any advice from anyone? Thanks

 Chuck

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



Issue with GWT Desginer

2011-10-06 Thread Bruno Sandivilli
I starred this issue here:
http://code.google.com/p/google-web-toolkit/issues/detail?id=6864thanks=6864ts=1317928466

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



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

2011-10-06 Thread Jens
Your FooPlace should have a getter method to return the stored id. In your 
ActivityMapper you create an activity for a given place. When you create 
your activity you can pass the place into its constructor or via a separate 
setPlace(Place place) method. Your activity would then call the getter of 
the FooPlace to get the id stored in the place and store it in a variable.

Take a look 
at 
http://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html
The AppActivityMapper constructs a HelloActivity and passes in the given 
HelloPlace. Then the HelloActivity calls HelloPlace.getName() in its 
constructor and stores the value. In HelloActivity.start() you can then use 
the value to make database calls, configure your view or whatever you need 
to do.

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



Re: Declarative UI + Google Maps

2011-10-06 Thread alexandroid
I had the same problem and could not figure out how to fix it.

Looks like that widget is not working with the designer, so you have
to edit XML and just run the application - it should work in runtime.

(Another thing to try - restarting Eclipse after editing the module
file)

~Alex

 The problem is when i switch from the code view to the design view
 elipse show me this error:
 Error loading module(s).
 GWT Designer can't load a module because of error in gwt.xml module
 description, incorrect resource which requires processing with GWT
 generator or by some other configuration error.

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



Re: Cross Site Requests

2011-10-06 Thread tuxcode
This might be a good start: 
http://kennethjorgensen.com/blog/2010/04/12/proxy-servlet-for-gwt-in-devmode/
which is based on: http://www.siafoo.net/snippet/258

I just stumbled across it myself :-).

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



GWT DataGrid: how to scroll to the top

2011-10-06 Thread Cedric
When changing the content of my DataGrid I would like the grid to
scroll back to the top but it does not happen automatically.

I have two grids side by side (see http://code.google.com/p/bug4j/ )
and when the selection changes on the left, the content changes on the
right.

I found a workaround but it isn't pretty:
final DataGridBugHit ret = new DataGridBugHit(PAGE_SIZE){
@Override
public void setRowData(int start, List? extends BugHit
values) {
final HeaderPanel headerPanel = (HeaderPanel)
getWidget();
final ScrollPanel scrollPanel = (ScrollPanel)
headerPanel.getContentWidget();
scrollPanel.scrollToTop();
super.setRowData(start, values);
}
};

1) Did I miss something?
2) Should I file a bug?
3) What is the bug? a) the DataGrid should expose the ScrollPanel or
b) DataGrid it should scroll automatically to the top?

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



Re: CSS3 support in GWT

2011-10-06 Thread Lília
We did try the literal(...), yet it doesn't seem to work. If you
have any ideas about the reason why it doesn't work, it would be
great!

Thanks!

On Oct 6, 7:32 pm, Chris Conroy con...@google.com wrote:
 Yep, note that CSSResource doesn't grok CSS3 yet, so you'll need to use
 literals for CSS3 attributes:

 e.g.
 background: literal(-webkit-gradient(linear, left top, left bottom,
 from(#f5f5f5), to(#e4e4e4)));







 On Thu, Oct 6, 2011 at 2:22 PM, benneq benjamin_ma...@lavabit.com wrote:
  GWT itself doesn't support CSS3 right now (I think it's because
  there's still IE6 support...). That just mean's that there are no
  classes or methods that do any CSS3 things.
  But you still can use CSS3 with GWT. Just like you use box-shadows
  (GWT has no support for shadows, too). So you take your ui:style-
  tags in UiBinder and insert all of the CSS3 stuff you like. If you
  open your page with a CSS3-supporting browser, than you should see
  your CSS3 styles.

  On 6 Okt., 17:22, Claudio Coelho
  innovation.that.matt...@homeyplanet.com wrote:
   Hi all,
   We are now trying to get into using HTML5+CSS3 with GWT, but we failed
   to find specific info regarding what does GWT support in terms of
   CSS3? Can we use all the features (with uibinder)? Or only a specific
   set? We got stuff like shadows to work easily, but gradients don't
   seem to work at all, so we are wondering if it's a matter of GWT
   support or if we are doing anything wrong.
   Any info will be helpful.

   Thanks

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

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



Re: Refactored RequestFactory in 2.3 Fails with org/json/JSONException

2011-10-06 Thread Brandon Donnelson
I had the same problem. I'd like to suggest adding a FAQ section to 
RequestFactory documentation, with the org/json error and how to solve it, 
so it could get indexed with the RequestFactory document. And/or a note in 
RequestFactory  Putting it all together add org.json jar... 

I solved it by downloading the sdk, extracted it, and then added the 
gwt-servlet-deps.jar to the lib directory and then to the build path. 

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

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



Re: Issue with GWT Desginer

2011-10-06 Thread Eric Clayberg (Google)
This is expected behavior at design time since you can't call RPC code at 
design time. 

You need to wrapper calls to RPC code with Beans.isDesignTime() checks.

Please see the docs...

http://code.google.com/webtoolkit/tools/gwtdesigner/features/gwt/enhanced_compilation.html#isDesignTime

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



One-To-Many RElations Serialization

2011-10-06 Thread Bruno Sandivilli
I'm getting this error when my RPC returns a list of a custom object:
Type 'org.datanucleus.sco.backed.List' was not included in the set of types
which can be serialized by this SerializationPolicy or its Class object
could not be loaded. For security purposes, this type will not be
serialized.

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



Re: RequestFactory Validation Tool must be run for.... (error)??? How come?

2011-10-06 Thread Brandon Donnelson
*Here is the server side class*
http://code.google.com/p/gwt-examples/source/browse/trunk/DemoRequestFactory/src/org/gonevertical/server/namedata/NameData.java

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



Re: RequestFactory Validation Tool must be run for.... (error)??? How come?

2011-10-06 Thread Brandon Donnelson
I see this in Expenses Example (in gwt sdk) do I have to run this if I'm not 
running maven?

!-- Run the RequestFactory ValidationTool --
  plugin
groupIdorg.codehaus.mojo/groupId
artifactIdexec-maven-plugin/artifactId
version1.2/version
executions
  execution
phaseprocess-classes/phase
configuration
  idVerifyRequestFactoryInterfaces/id
  executablejava/executable
  arguments
argument-cp/argument
classpath /

argumentcom.google.web.bindery.requestfactory.apt.ValidationTool/argument
argument${project.build.outputDirectory}/argument

argumentcom.google.gwt.sample.mobilewebapp.shared.MobileWebAppRequestFactory/argument
  /arguments
/configuration
goals
  goalexec/goal
/goals
  /execution
/executions
  /plugin

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



Re: RequestFactory Validation Tool must be run for.... (error)??? How come?

2011-10-06 Thread Aidan O'Kelly
Starting with GWT 2.4, you need to follow the instructions here:
http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterfaceValidation


On Fri, Oct 7, 2011 at 2:41 AM, Brandon Donnelson
branflake2...@gmail.comwrote:

 I see this in Expenses Example (in gwt sdk) do I have to run this if I'm
 not running maven?

 !-- Run the RequestFactory ValidationTool --
   plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdexec-maven-plugin/artifactId
 version1.2/version
 executions
   execution
 phaseprocess-classes/phase
 configuration
   idVerifyRequestFactoryInterfaces/id
   executablejava/executable
   arguments
 argument-cp/argument
 classpath /
 
 argumentcom.google.web.bindery.requestfactory.apt.ValidationTool/argument
 argument${project.build.outputDirectory}/argument
 
 argumentcom.google.gwt.sample.mobilewebapp.shared.MobileWebAppRequestFactory/argument
   /arguments
 /configuration
 goals
   goalexec/goal
 /goals
   /execution
 /executions
   /plugin

  --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/bJX-zae1vwkJ.

 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


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



Re: RequestFactory Validation Tool must be run for.... (error)??? How come?

2011-10-06 Thread Krishna Kishore k
After you follow the instructions in
http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterfaceValidation
check
the web-inf classes folder and find your *YourRequestFactory*.class file. In
the same location if you fine *YourRequestFactory*DeobfuscatorBuilder.class
file then it means that the validation has been run successfully.

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



Re: RequestFactory Validation Tool must be run for.... (error)??? How come?

2011-10-06 Thread Brandon Donnelson
Awesome. Thank you :)



On Thu, Oct 6, 2011 at 7:30 PM, Krishna Kishore k kishore72...@gmail.comwrote:

 After you follow the instructions in
 http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterfaceValidation
  check
 the web-inf classes folder and find your *YourRequestFactory*.class file. In
 the same location if you fine *YourRequestFactory*DeobfuscatorBuilder.class
 file then it means that the validation has been run successfully.

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


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



GWT Visualisations API - ImageLineGraph display options

2011-10-06 Thread Tony Kennah
Hi

I'm displaying a ImageLineChart via my little GWT application and I
just wanted to add some display options, namely:

   chm=s,00,0,1,7.5

Which is just a little black square node on series 1 (0) point number
2(1). I tried appending the above string onto one of my current
ImageLineChart url's and hey presto, there appeared the black node.
In the GWT application I used:

   options.set(chm, s,00,0,1,7.5);

As I couldn't find an actual method for setting chm, so I tried a
general-purpose set() method, as above.  This doesn't seem to be
working and checking the URL in debug I can't find any mention of this
chm parameter which I thought I'd have set.

Can anyone see where I've gone wrong or suggest a way of setting such
a parameter?

Many Thanks in advance

Tony

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



Re: Failure Parsing XML Document from Servlet

2011-10-06 Thread Laura Bickle
The problem was that I was using an XMLWriter instead of a StringBuilder and
a normal file writer.  XMLWriter was adding additional and invalid
characters.

Thanks everybody for taking the time to help me!

On Fri, Sep 30, 2011 at 1:31 AM, Thomas Broyer t.bro...@gmail.com wrote:



 On Thursday, September 29, 2011 10:39:40 PM UTC+2, Laura Bickle wrote:

 Hi Jeff,

 I set the content type like so:  response.setContentType(text/**xml);

 I think MIME is a superset of content type.  I don't explicitly set any
 other MIME things.  How do I look up the MIME type of a file?

 My previous errors are from firefox.  Per your suggestion, I tried using
 safari and chrome instead and they each gave me this error.  The first line
 is the result of requesting the xml file.  The second line comes from trying
 to parse it.

 (-:-) 2011-09-29 13:32:28,825 [DEBUG] result:?xml version=1.0
 encoding=UTF-8?stuff


 IIRC, some browsers (can't remember which ones) choke on the XMLDecl when
 it specifies an encoding; because you're parsing a String, which is a stream
 of characters, and encodings only applies to streams of bytes (to actually
 turn the bytes into characters).
 Try trimming the XMLDecl from your XML before giving it to
 XMLParser.parse().
 Something like (untested):
 if (xml.substring(0, 5).equalsIgnoreCase(?xml)) {
xml = xml.substring(xml.indexOf(?) + 2);
 }

 Best would of course be to emit the encoding in the Content-Type HTTP
 header (application/xml; charset=UTF-8) and not send the XMLDecl at all.

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/1h74ivOd75AJ.

 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


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



Re: [gwt-contrib] More control over split point fragments

2011-10-06 Thread John Patterson

On 05/10/2011 23:53, Ray Cromwell wrote:

You could try making a split point which contains other split points,
something like this:


I = Initial Fragment
W - Split point from which all Widget using splitpoints exist
W1 - Widget using split point 1
W2 - Widget using split point 2
G - Split point from which all GQuery using code exists
G1 - GQuery split point page 1

I don't remember if this is so, but if all Widget using code ends up
exclusive to W, then it won't be in the leftovers fragment.


Yes this is how I would like it to work but unfortunately it puts all 
the common code from W1 and W2 into the leftovers fragment and not the 
common parent W


My test code below creates a Lable and a Button in different split 
points that have a common parent split point:


public void onModuleLoad()
{
GWT.runAsync(Widget.class, new Callback()
{
@Override
public void onSuccess()
{
GWT.runAsync(Label.class, new Callback()
{
@Override
public void onSuccess()
{
RootPanel.get().add(new Label(Hello));
}
});
GWT.runAsync(Button.class, new Callback()
{
@Override
public void onSuccess()
{
RootPanel.get().add(new Button(World));
}
});
}
});
}


The left overs fragment contains 25K of code and each of the 3 split 
points contain a trivial 1K or 2K


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


[gwt-contrib] Activity

2011-10-06 Thread Mathias Bogaert
Hi,

Recently GWT development activity seems to have slowed down. Also
hardly any Twitter or blog posts. Is this a slowdown after Google IO /
Google Plus / GWT 2.4? Or is something else going on?

Thanks,

Mathias

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


[gwt-contrib] Re: Firefox 7 DevMode Plugin (issue1560803)

2011-10-06 Thread conroy

On 2011/10/05 09:13:29, tbroyer wrote:

http://gwt-code-reviews.appspot.com/1560803/diff/3001/plugins/xpcom/Makefile

File plugins/xpcom/Makefile (right):



http://gwt-code-reviews.appspot.com/1560803/diff/3001/plugins/xpcom/Makefile#newcode125

plugins/xpcom/Makefile:125: ifeq ($(BROWSER),ff70)
On 2011/10/05 07:34:06, acleung wrote:
 On 2011/10/04 23:11:19, conroy wrote:
  so, i'm responsible for starting the cascade here, but I think now

would be

a
  good opportunity to clean up this section of the makefile by

consolidating

all
  the option settings for ff40+ rather than copy pasting this stanza

every 6

 weeks

 It seems like GNU Make doesn't have any other fancy control flow

like

 switch-case. It doesn't even have something like if-greater-than. We

would

have
 to use shell's expr. Since we still have to set -DGECKO_VERSION, I

think this

is
 still cleaner.



How about moving the MOZALLOC_DLLFLAGS, MOZJS_DLLFLAGS and

ALLARCHCFLAGS befire

the ifeq ($(BROWSER),ff40)?
That would leave only the GECKO_VERSION and CFLAGS in each

version-specific

ifeq/endif block, as with ff3 to ff36 blocks.


LGTM

I think tbroyer's suggestions are worth considering.

It might clean things up to change the if-else sequence to just a set of
independent if statements concluded by checking that *some*
GECKO_VERSION got set. I won't hold this CL up on this cosmetic change
though, so feel free to defer this or just punt it back onto me.


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

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


Re: [gwt-contrib] Re: More control over split point fragments

2011-10-06 Thread John Patterson


On Thursday, 6 October 2011 01:02:10 UTC+7, John A. Tamplin wrote:

 The basic code splitting algorithm can handle this, 


Can you give some more details?  I have not seen a solution to this problem 
yet.

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

[gwt-contrib] Re: Make client-side JUnit 3 classes available without GWTTestCase. (issue1564803)

2011-10-06 Thread rjrjr

LGTM

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

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


[gwt-contrib] gwt issues marked as patcheswelcome don't show up under open issues

2011-10-06 Thread Jeff Larsen
All the issues marked patcheswelcome are reasonably hidden from view because 
they do not show up as open anymore. 

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

[gwt-contrib] Re: gwt issues marked as patcheswelcome don't show up under open issues

2011-10-06 Thread Eric Clayberg (Google)
At least for the moment, that is intentional. 

As you probably know, the GWT issue tracker has not had a lot of love 
lately, and we would like to fix that. We are undertaking a multi-week 
project to triage as many of the open issues as we can. We would like to 
close stale, invalid, fixed  duplicate issues, assign owners as 
appropriate, or mark issues as PatchesWelcome if it is something that we 
think is a reasonable idea but not something we (the GWT development team) 
are going to commit to. By treating PatchesWelcome as a closed state, we 
are, in essence, making a positive indication that, while we are happy to 
look at a patch, we are not going to address this ourselves (similar to 
NotPlanned).

We are willing to be convinced otherwise, if folks think it is a bad idea.

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

[gwt-contrib] Re: gwt issues marked as patcheswelcome don't show up under open issues

2011-10-06 Thread Jeff Larsen
Is there a way to add patcheswelcome to the dropdown of the issue tracker? I 
think people will not find these issues and know to work on them. 

If I went to the issue tracker hoping to work on something where I would be 
able to help out the gwt community, I would start looking at open issues. I 
would not look at closed issues, closed issues would indicate to me that 
they are either not going to be done, and that is by design, or those issues 
are fixed. I would probably never know these issues existed. 

These issues seem like they are still open, just that they aren't issues 
that the gwt team will devote time to implement. 

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

[gwt-contrib] Re: gwt issues marked as patcheswelcome don't show up under open issues

2011-10-06 Thread Eric Clayberg (Google)
You make some good points, so we have reverted it back to open.

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

[gwt-contrib] Change the superclass of the translatable version of (issue1565803)

2011-10-06 Thread skybrian

Reviewers: rjrjr,

Description:
Change the superclass of the translatable version of
junit.framework.AssertionFailedError to match the JVM version,
for consistency when catching java.lang.AssertionError in
testing tools.

Fixes issue 6863.


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

Affected files:
  M  
user/super/com/google/gwt/junit/translatable/junit/framework/AssertionFailedError.java



Index:  
user/super/com/google/gwt/junit/translatable/junit/framework/AssertionFailedError.java

===
---  
user/super/com/google/gwt/junit/translatable/junit/framework/AssertionFailedError.java	 
(revision 10689)
+++  
user/super/com/google/gwt/junit/translatable/junit/framework/AssertionFailedError.java	 
(working copy)

@@ -18,7 +18,7 @@
 /**
  * Translatable version of JUnit's codeAssertionFailedError/code.
  */
-public class AssertionFailedError extends Error {
+public class AssertionFailedError extends AssertionError {

   public AssertionFailedError() {
   }


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


Re: [gwt-contrib] Re: More control over split point fragments

2011-10-06 Thread John Patterson

On 06/10/2011 07:27, Alan Leung wrote:
I have studied Lex Spoon's writeup extensively a few weeks back. While 
I do believe it is beneficial to leftover code size,
when I bought it up with some of the internal projects, they believe 
the cache-ability lost with multiple leftover fragments is not 
something they'd trade off.


I don't really understand this point.  Smaller fragments are still 
strongly cachable - there are just more download requests, no?  In a 
multi-page app it is likely that most of the code in the left overs 
fragment (used in other pages) will not be needed.



That's why I went down the fragment merging route.


Im about to make some very naive suggestions out of desperation to get 
my website running fast again.  The left overs size is killing it.


What about if we could define a list of package names (patterns) that 
would be kept in the same fragment?  I would like to keep all 
gwt.client.ui classes together.


If there were some annotation like @DoNotSplit that stopped code from a 
single class being distributed amongst multiple fragments that would 
give more control of where code ends up.


@DoNotSplit
class WidgetFactory
{
// async provider pattern to access

Label lable()
{
return new Label();
}
}

Or what about a @KeepCodeHere annotation!  That would force all code 
generated from a certain statement to remain in the current fragment - 
not move to the left overs.


@KeepCodeHere Label label = new Label();

That would essentially make the fragment an initial fragment for any 
other fragment that also used a label or any of its class hierarchy.


This would at least keep the code for the label() method with the 
fragment for the WidgetFactory - currently it ends up in the fragment 
that calls the label() method - or most likely in the left overs 
fragment because label() will be called from multiple places.


Still, it would be much nicer if GWT could figure out what common code 
to put in an exclusive fragment that is guaranteed to be loaded before 
another (i.e. put code in W that is common to W1 and W2).



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


[gwt-contrib] Re: Change the superclass of the translatable version of (issue1565803)

2011-10-06 Thread Ray Ryan
LGTM
On Oct 6, 2011 5:07 PM, skybr...@google.com wrote:
 Reviewers: rjrjr,

 Description:
 Change the superclass of the translatable version of
 junit.framework.AssertionFailedError to match the JVM version,
 for consistency when catching java.lang.AssertionError in
 testing tools.

 Fixes issue 6863.


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

 Affected files:
 M

user/super/com/google/gwt/junit/translatable/junit/framework/AssertionFailedError.java


 Index:

user/super/com/google/gwt/junit/translatable/junit/framework/AssertionFailedError.java
 ===
 ---

user/super/com/google/gwt/junit/translatable/junit/framework/AssertionFailedError.java

 (revision 10689)
 +++

user/super/com/google/gwt/junit/translatable/junit/framework/AssertionFailedError.java

 (working copy)
 @@ -18,7 +18,7 @@
 /**
 * Translatable version of JUnit's codeAssertionFailedError/code.
 */
 -public class AssertionFailedError extends Error {
 +public class AssertionFailedError extends AssertionError {

 public AssertionFailedError() {
 }



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