Re: Unable to install GWT in Eclipse(Helios)

2012-05-24 Thread Alex
My students also often have  similar problems installing GWT and other 
plugins. 
Often the locally installed firewall / virusscanner is the cause of this 
problem.

Alex

On Saturday, May 19, 2012 8:59:03 AM UTC+2, @$# wrote:

 Hi, 

 I am new to GWT. While installing GWT in Eclipse I am getting a below 
 error. 
 An error occurred while collecting items to be installed 
 session context was:(profile=epp.package.jee, 
 phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, 
 action=). 
 Unable to read repository at 

 http://dl.google.com/eclipse/plugin/core/3.6/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201205091048-rel-r36.jar.
  


 Please help me out to resolve this error. 

 Thnks

-- 
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/-/XxbuAH_aJd4J.
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: JSON Parsing in GWT Client

2012-05-24 Thread dominikz
I was just having the same problem. I evaluated the solutions yesterday and 
frankly speaking was surprised by the lack of straight answers from both 
GWT documentation and the internet. 
The number of projects there are is just amazing, but nothing seems to 
stand out.


   - I don't like the idea of using Overlay Types since it's too much 
   coding and the objects coded this way can be used only on browser-side
   - I'm not sure what's the status of AutoBean (
   http://code.google.com/p/google-web-toolkit/wiki/AutoBean) since 
   clicking on 'Project Home' here takes me to some I think very old start 
   page for GWT. No official references from main GWT site 
   https://developers.google.com/web-toolkit/

In the end I wanted to use Piriti. However, we've had problems with using 
it with XML parsing on Android. Our applications work mainly on phone 
browsers, so lack of support for XPath on some phone struck us really hard. 
However with JSON it's different. We were kind of resistant after having a 
bad experience with phones+piriti+XML, but it seems that phones+piriti+JSON 
work. We just checked it on Android (Native browser, Opera Mobile and Opera 
Mini) on Samsung's Bada and on iPhone (Native Browser) and the test passed 
OK.

So given that piriti's code looks really nice and it's easy to switch 
between JSON and XML (if we ever needed),we'll try to go with that.

One issue we still have not resolved is the performance. We started with 
XML in the payload, since our apps work on SAP (ABAP is the language there) 
and it's easy to do XML on the backend rather than JSON. However, parsing 
of XML in the browser was not possible with piriti on some mobile platforms 
(Android) and using DOM library was both time consuming to code and really 
slow. Parsing of our payload took 5-7 secs on Android. This was 
unacceptable. That's why the switch to JSON.

The thing we'll test right now is piriti+JSON performance. I'm not sure how 
piriti does the parsing, but it might be that other frameworks do it 
faster/slower.

*If anyone has an answer to the PERFORMANCE question of piriti+JSON, I'd be 
glad to hear.*

-- 
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/-/C0GWkTej1xIJ.
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: JSON Parsing in GWT Client

2012-05-24 Thread dominikz
And by the lack of straight answers I mean that.

Take a look at the number of projects listed in comments under the post:

http://stackoverflow.com/questions/683123/json-java-serialization-that-works-with-gwt

Surely, to evaluate all of them would take a week at least.

-- 
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/-/kXrUDIaAqnAJ.
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: Large GIN Modules and DevMode performance

2012-05-24 Thread Thomas Broyer


On Thursday, May 24, 2012 4:25:34 AM UTC+2, Nuno R wrote:

 Hi,

 At the moment we've a large scale application that reached a bottleneck at 
 DevMode startup time.
 It takes ~120s to hit onModuleLoad() call and spends most of the time 
 generating and compiling GIN Injector ~85%.

 Our best result was to target gwt-UnitCache to a virtual disk in RAM, this 
 speeded things up but still not under 90s to reach onModuleLoad().
 Does exist any other way to improvide GIN processing without trying to 
 isolate groups of screens on their own GWT modules (by consequence smaller 
 GIN modules) and run only the one a developer is working on.
 I think we could not reach an acceptable startup time (20s) without it.

 This only brings some small concerns about mantaining dev mode code only 
 (besides gwt.xml files), at least ActivityMapper, HistoryMapper and GIN 
 module to switch.


 How do you tackle this issue on your large scale projects?


FYI, the Wave team recommended (2 years ago) creating harnesses; i.e. 
smaller standalone apps.
In Wave, they made an EditorHarness for their operation-transform-aware 
rich-text editor and an UndercurrentHarness for the wave panel (the one 
that displays a wave, with threaded wavelets, and incremental data and 
feature loading).
In your case, create small and modular GinModules, and small EntryPoints 
and Ginjectors specific to a particular set of screens.
http://www.google.com/events/io/2010/sessions/gwt-continuous-build-testing.html 
(starts 
around 42:30 in the video)


-- 
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/-/RfPgvyV0K24J.
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: JSON Parsing in GWT Client

2012-05-24 Thread Thomas Broyer


On Thursday, May 24, 2012 8:56:53 AM UTC+2, dominikz wrote:

 I was just having the same problem. I evaluated the solutions yesterday 
 and frankly speaking was surprised by the lack of straight answers from 
 both GWT documentation and the internet. 
 The number of projects there are is just amazing, but nothing seems to 
 stand out.


- I don't like the idea of using Overlay Types since it's too much 
coding and the objects coded this way can be used only on browser-side
- I'm not sure what's the status of AutoBean (
http://code.google.com/p/google-web-toolkit/wiki/AutoBean) since 
clicking on 'Project Home' here takes me to some I think very old start 
page for GWT. No official references from main GWT site 
https://developers.google.com/web-toolkit/

 AutoBean is the technology backing RequestFactory; it's stable and has 
very few known bugs in 2.4 (one or two, no more; all being already fixed in 
trunk; this is an all different story for RequestFactory).
I just think nobody had/took the time to copy the wiki page to the dev 
guide at developers.google.com/web-toolkit.

-- 
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/-/I6JfHi2Gw4QJ.
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: Root path for a GWT application

2012-05-24 Thread David Wery
Hi Thomas,

Thanks for the answer ! 

My application is already deployed in the root context of the application 
server (JBoss 7). The bar in the url seems to be coming for the GWT module 
name (rename-to section in the GWT.xml file). Is there a way to remove the 
name of the GWT module ?

David




 On Tuesday, May 22, 2012 2:18:08 PM UTC+2, David Wery wrote:

 Hi all,

 I'm currently building a GWT application but my customer does not want to 
 see anything in the URL path except the domain. For example, I have 
 actually the application deployed on the URL : 
 http://www.foo.com/bar/Bar.html (where bar is the module name) and we 
 actually want only http://www.foo.com.

 How to achieve this ?


 Nothing to do with GWT actually, more with your deployment.

 Assuming you're use Java on the server too, and deploying as a WAR into 
 something like Tomcat or Jetty, then to remove the '/bar/' context-path, 
 the easiest is to simply rename your war into ROOT.war (for Tomcat) or 
 root.war (for Jetty).

 http://tomcat.apache.org/tomcat-7.0-doc/config/host.html#Automatic_Application_Deployment
 http://wiki.eclipse.org/Jetty/Howto/Deploy_Web_Applications

 To remove the need for the Bar.html part, rename your page as 
 index.html or add the following to your web.xml:
 welcome-file-list
   welcome-fileBar.html/welcome-file
 /welcome-file-list

 https://developers.google.com/appengine/docs/java/config/webxml#The_Welcome_File_List
  (not 
 specific to AppEngine, see the links to the specs at the top of the page)


-- 
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/-/yXjHPUMsFywJ.
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: JSON Parsing in GWT Client

2012-05-24 Thread dominikz
Thanks Thomas,

we're now doing performance comparision between AutoBean and Piriti. 
We still don't know whether there will be problems with AutoBean on mobile 
devices - I guess not.

Do you know of any streghts/weaknesses of piriti/AutoBean?

-- 
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/-/PL6vRNl-h8gJ.
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: Root path for a GWT application

2012-05-24 Thread Thomas Broyer


On Thursday, May 24, 2012 11:05:15 AM UTC+2, David Wery wrote:

 Hi Thomas,

 Thanks for the answer ! 

 My application is already deployed in the root context of the application 
 server (JBoss 7). The bar in the url seems to be coming for the GWT module 
 name (rename-to section in the GWT.xml file). Is there a way to remove the 
 name of the GWT module ?


No, but you don't have to put your Bar.html into your GWT module's 'public' 
path (that layout dates back to the GWT 1.5 era, that's 3 years old!)

-- 
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/-/3uo-x-hp1egJ.
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: Root path for a GWT application

2012-05-24 Thread David Wery
Ah, indeed I have the Bar.html in the resources folder 
(src/main/resources). This is not the right way to manage it ? 



 On Thursday, May 24, 2012 11:05:15 AM UTC+2, David Wery wrote:

 Hi Thomas,

 Thanks for the answer ! 

 My application is already deployed in the root context of the application 
 server (JBoss 7). The bar in the url seems to be coming for the GWT module 
 name (rename-to section in the GWT.xml file). Is there a way to remove the 
 name of the GWT module ?


 No, but you don't have to put your Bar.html into your GWT module's 
 'public' path (that layout dates back to the GWT 1.5 era, that's 3 years 
 old!)


-- 
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/-/52T9JxSTD7AJ.
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: Root path for a GWT application

2012-05-24 Thread Thomas Broyer


On Thursday, May 24, 2012 11:14:04 AM UTC+2, David Wery wrote:

 Ah, indeed I have the Bar.html in the resources folder 
 (src/main/resources). This is not the right way to manage it ?


Put it in src/main/webapp and change your script's src= accordingly 
(from src=bar.nocache.js to src=bar/bar.nocache.js)

-- 
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/-/0AtDewpXjYEJ.
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: Null pointer

2012-05-24 Thread SCK
Hi

Thks very much. I follow your suggestions. It's OK now



On 23 mai, 14:48, Trevor Skaife tska...@gmail.com wrote:
 To add to what Thad said, your map should look like this MapString,
 String formData since the key of the map looks like a String, and your
 just doing a toString on the value. So when you create your map it should
 probably look something like this.

 MapString, String formData = new HashMapString, String();

 It's really important that you type any collection object (Map, Set, List,
 ...) since your compiled code will be huge, and it save a lot of casting of
 objects. Not to mention being able to easily loop through collections using
 the a for-each loop like so.

 ListString items = new ArrayListString();
 //add items to the list.

 for(String item : items)
      print(item);

 Lastly using the debugger is your friend. The possible items that could be
 null are formData, formData.get(username), and stmt. My guess is that
 either your map is null, or your map doesn't contain username.

 Trevor



 On Wednesday, May 23, 2012 2:12:22 AM UTC-5, SCK wrote:

  Hi

   I try to connect to my database with GWT RPC. But i get a error.

  Help please

  Thks

  java.lang.NullPointerException
          at
  org.etude.gwt.server.DatabaseServiceImpl.saveData(DatabaseServiceImpl.java:

  37)
          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)
          at
  com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServi­ceServlet.java:

  208)
          at
  com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServi­ceServlet.java:

  248)
          at
  com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(Abstract­RemoteServiceServlet.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:205)
          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)

  package org.etude.gwt.server;

  import java.net.URLDecoder;
  import java.sql.Connection;
  import java.sql.DriverManager;
  import java.sql.PreparedStatement;
  import java.sql.Statement;
  import java.util.Map;

  import org.etude.gwt.client.DatabaseService;

  import com.google.gwt.user.server.rpc.RemoteServiceServlet;

  public class DatabaseServiceImpl extends RemoteServiceServlet
  implements
                  DatabaseService {

          /**
           *
           */
          private static final long serialVersionUID = 1L;

          @SuppressWarnings(rawtypes)
          @Override
          public void saveData(Map formData) throws IllegalArgumentException
  {

                  try{
                          Class.forName(com.mysql.jdbc.Driver);
                          Connection conn =
  DriverManager.getConnection(jdbc:mysql://
  localhost:3306/oracle, root, );

                          Statement st = conn.createStatement();

                          //avec décodage
                          StringBuffer sqlQuery = new StringBuffer(insert
  into
  gwtusers(username,password,email,phone));
                          sqlQuery.append(values(?,?,?,?));

                          PreparedStatement stmt =
  conn.prepareStatement(sqlQuery.toString());
          LINE 37
  

GWT XML REQUEST RESPONSE

2012-05-24 Thread alp
Merhaba,

Asagidaki adrese XML gonderip ardindanda cevap olarak bir data almak
istiyorum

Kullanici adi ve password bilgileri dogruladigi icin code 200 reponse
aliyorum ama ardindan datayi alamiyorum bana yardimci olurmusunuz
Client tarafindan server tarafina gidiyorum
server dan diger servera baglaniyorum ancak data alamadim

kod asagida

package com.google.gwt.sample.stockwatcher.server;




package com.google.gwt.sample.stockwatcher.server;

import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLEncoder;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class HTTPProxy extends HttpServlet {

/**
 *
 */
private static final long serialVersionUID = 1L;


protected void doPost( HttpServletRequest req, HttpServletResponse
res)
   throws ServletException, IOException {




URL url=null;

String method = GET,post = null;
int timeout = 0;
Set entrySet = req.getParameterMap().entrySet();
Map headers = new HashMap();
for( Iterator iter = entrySet.iterator(); iter.hasNext(); ){
   Map.Entry header = (Map.Entry) iter.next();
   String key = (String)header.getKey();
   String value = ((String[])header.getValue())[0] ;

   if( key.equals(method) )
  method = value;
   else if( key.equals(post) )
  post = value;
   else if( key.equals(url) )
  url = new URL(http://www.hotelspro.com/xf_test_3.0/
hp_xml_request_parser.php?xml=);
   else
  headers.put( key, value );
}


//use a loop for handling redirects
boolean complete = false;
while( !complete ){
   //set up the remote connection
   HttpURLConnection urlConnection =
(HttpURLConnection)url.openConnection();

   //urlConnection.setRequestProperty(AffiliateCodeValue, 
xxx);
   //urlConnection.setRequestProperty(AffiliateUsernameValue,
xxx);
   //urlConnection.setRequestProperty(AffiliatePasswordValue,
xxx);
   //urlConnection.setRequestProperty(AffRequestIdValue,
1023456789);
   //urlConnection.setRequestProperty(AffRequestTimeValue,
2008-12-31T15:30:00);
   //urlConnection.setRequestProperty(CompleteListValue,
true);

   urlConnection.setDoOutput(true);
   urlConnection.setDoInput(true);
   urlConnection.setUseCaches(false);
   urlConnection.setInstanceFollowRedirects(false);
   urlConnection.setRequestMethod(method);


   if( timeout  0 ) urlConnection.setConnectTimeout(timeout);

   //copy the headers to the new connection
   Set headersSet = headers.entrySet();
   for( Iterator iter=headersSet.iterator(); iter.hasNext(); ){
  Map.Entry header = (Map.Entry)iter.next();
  urlConnection.setRequestProperty(
 (String)header.getKey(),(String)header.getValue() );
   }

   //write post body to remote connection
   if( post != null){
  OutputStreamWriter outRemote = new
 OutputStreamWriter(urlConnection.getOutputStream());
  outRemote.write( post );
  outRemote.flush();
   }

   //transfer contentType from remote connection
   String contentType = urlConnection.getContentType();
   if( contentType != null ) res.setContentType(contentType);

   //check for a redirect
   int responseCode = urlConnection.getResponseCode();
   if( responseCode == 302 ){
  String location = 
urlConnection.getHeaderField(Location);
  url = new URL( location );
   }
   else{
  //read from the appropriate stream
  res.setStatus( responseCode );
  BufferedInputStream in;
  if( responseCode == 200 || responseCode == 201 ) // I GOT 
CODE
200 EVERY TIME BUT THATS IT NO RESPONSE I GOT WHAT SHOULD I DO
  {
  in = new
BufferedInputStream(urlConnection.getInputStream());}
  else
  

XML REQUEST RESPONSE data

2012-05-24 Thread alp
Hi,

I am trying to access a URL with user name password and id, from GET
SERVER SIDE,
i call the server method from  gwt client
than the server side connects to the URL and get the response code of
200 which means connection succesfull for authentication. after that i
cant get data from the other server as a response

here is the server site code i have , which i got it from GWT
tutorials from google,

what should i do here could some one help me out with this.


url: http://www.hotelspro.com/xf_test_3.0/hp_xml_request_parser.php?xml=



POST XML is:

DestinationListRequest

?xml version=1.0 encoding=UTF-8 ?
XMLRequest
RequestTypeDestinationListRequest/RequestType
RequestLogin
AffiliateCodexx/AffiliateCode
AffiliateUsernamexx/AffiliateUsername
AffiliatePasswordxxx/AffiliatePassword
AffRequestId11231231/AffRequestId
AffRequestTime2012-05-01T12:00:00/AffRequestTime
/RequestLogin
DestinationListInfo
CompleteListtrue/CompleteList
/DestinationListInfo
/XMLRequest







server side code is:




public class HTTPProxy extends HttpServlet {


protected void doPost( HttpServletRequest req, HttpServletResponse
res)
   throws ServletException, IOException {




URL url=null;

String method = GET,post = null;
int timeout = 0;
Set entrySet = req.getParameterMap().entrySet();
Map headers = new HashMap();
for( Iterator iter = entrySet.iterator(); iter.hasNext(); ){
   Map.Entry header = (Map.Entry) iter.next();
   String key = (String)header.getKey();
   String value = ((String[])header.getValue())[0] ;

   if( key.equals(method) )
  method = value;
   else if( key.equals(post) )
  post = value;
   else if( key.equals(url) )
  url = new URL(http://www.hotelspro.com/xf_test_3.0/
hp_xml_request_parser.php?xml=);
   else
  headers.put( key, value );
}


//use a loop for handling redirects
boolean complete = false;
while( !complete ){
   //set up the remote connection
   HttpURLConnection urlConnection =
(HttpURLConnection)url.openConnection();

   //urlConnection.setRequestProperty(AffiliateCodeValue, 
xxx);
   //urlConnection.setRequestProperty(AffiliateUsernameValue,
xxx);
   //urlConnection.setRequestProperty(AffiliatePasswordValue,
xxx);
   //urlConnection.setRequestProperty(AffRequestIdValue,
1023456789);
   //urlConnection.setRequestProperty(AffRequestTimeValue,
2008-12-31T15:30:00);
   //urlConnection.setRequestProperty(CompleteListValue,
true);

   urlConnection.setDoOutput(true);
   urlConnection.setDoInput(true);
   urlConnection.setUseCaches(false);
   urlConnection.setInstanceFollowRedirects(false);
   urlConnection.setRequestMethod(method);


   if( timeout  0 ) urlConnection.setConnectTimeout(timeout);

   //copy the headers to the new connection
   Set headersSet = headers.entrySet();
   for( Iterator iter=headersSet.iterator(); iter.hasNext(); ){
  Map.Entry header = (Map.Entry)iter.next();
  urlConnection.setRequestProperty(
 (String)header.getKey(),(String)header.getValue() );
   }

   //write post body to remote connection
   if( post != null){
  OutputStreamWriter outRemote = new
 OutputStreamWriter(urlConnection.getOutputStream());
  outRemote.write( post );
  outRemote.flush();
   }

   //transfer contentType from remote connection
   String contentType = urlConnection.getContentType();
   if( contentType != null ) res.setContentType(contentType);

   //check for a redirect
   int responseCode = urlConnection.getResponseCode();
   if( responseCode == 302 ){
  String location = 
urlConnection.getHeaderField(Location);
  url = new URL( location );
   }
   else{
  //read from the appropriate stream
  res.setStatus( responseCode );
  BufferedInputStream in;
  if( responseCode == 200 || responseCode == 201 ) // I GOT 
CODE
200 EVERY TIME BUT THATS IT NO RESPONSE I GOT WHAT SHOULD I DO
  {
  

Export CellTable data to PDF and Excel Format using UIBinder

2012-05-24 Thread lucky
Hi,

can any one tell me how can i export my celltable data to pdf and excel 
format?

Thanks in advance

-- 
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/-/puujD6pLmAwJ.
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: JSON Parsing in GWT Client

2012-05-24 Thread dominikz
Just got performance results for various browsers and devices.
If you're interested please take a look here:

https://docs.google.com/spreadsheet/ccc?key=0AsuvWfSBnfyodEZqdmktOGNacG1MX0tsM0FBdXhXdUE#gid=0

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



problem with css and link

2012-05-24 Thread Assiya EL
hi all ,

I'd like the link to my gray,  I tried  :


. link {
color: # 2E2E2E;
text-decoration: none;

with :

Hyperlink link = new Hyperlink(Be the first to review this product,
http://www.google.com;);
link.addStyleName(link);

but it did not work

thank you
-- 

Assiya EL
Master Qualité du Logiciel



Plz consider environment - Only print this if necessary

-- 
You received 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: Google IO 2012 : no GWT session ?

2012-05-24 Thread kritic


 Java is the main language in many enterprise projects and runs on 70% of 
 the mobiles. So no, it won't go away. It is also the main course language 
 for computer science.


So what? That doesn't mean it won't be changed to something else. Also, I'm 
not talking about the enterprise. I'm talking about Google's future 
projects. Google doesn't *have* to stick with Java.

 Dart is not going to be accepted by the other browsers. It is no standard 
 and has no real added value and you can't connect it easily to server side 
 code based on J2EE/EJB3.


You don't know that. Nobody does. It's still very, very early days for 
dart. Personally, I'm not all that excited about it but wouldn't complain 
if it became bigger than it is now. As for connecting it back to server 
side code, I believe you can do server side code with dart also - sorta 
like node.js.

GO, is a quick and hack language for prototyping. It is not going to 
 replace Java or C#.


Forgive me, you seem to think I was implying Go was going to replace Java 
or C#. No. I am, however, wondering if it will replace Java *within* 
Google. It certainly has the potential to do so. It is not a hack. Take a 
little glance at who developed the language before saying ridiculous things 
such as that.

GWT, Closure Library, Dart, Native Client can all be summed up into a 
single package. Served as a complete development environment for 
developers. If you want to code in C/C++/C# or whatever language you want, 
it would make sense to bundle Native Client/GWT/Dart/Closure and use 
something like Emscripten to allow the developer to choose how to deploy 
their code. Need performance? Native code (NaCl).. Not so concerned about 
performance? GWT/Dart (javascript). 

Whether or not any of that will happen is a bit question. I think it would 
be pretty nice. We'll see.
 

On Saturday, May 19, 2012 10:17:01 AM UTC-4, de Witte wrote:



 Op zaterdag 19 mei 2012 09:34:24 UTC+2 schreef kritic het volgende:

 Regardless of what the GWT team says, I do believe GWT as it is now will 
 be phased out. Don't get me wrong, I think the features that GWT provides 
 are second to none and the work put into it has been nothing short of 
 impressive, but it has to be recognized that it is also becoming a rather 
 pain in lower back for Google simply because it uses Java. Seems odd, but I 
 really think the whole thing with Android is leaving a bad taste. I really 
 do think Java will become used less and less for future projects 
 (especially GWT).


 Java is the main language in many enterprise projects and runs on 70% of 
 the mobiles. So no, it won't go away. It is also the main course language 
 for computer science.

 The way GWT is now, like I wrote already, will probably be shifted to 
 something else. Dart is all the rage right now and it's nice, however it 
 almost feels like an attempt to replace GWT. Golang (Go) is another 
 language that is very well thought out and could conceivably replace Java 
 within, at least, Google. 


 Dart is not going to be accepted by the other browsers. It is no standard 
 and has no real added value and you can't connect it easily to server side 
 code based on J2EE/EJB3. 

 GO, is a quick and hack language for prototyping. It is not going to 
 replace Java or C#.
  


 Perhaps emscripten has been looked at by the GWT team. Perhaps it may be 
 better to use something like that - which will introduce a mix of languages 
 with all the same features as GWT? I would enjoy that. I think many would. 
 Right now, though, I am keeping my distance from GWT. Even though it's a 
 fantastic technology.

 On Thursday, May 17, 2012 2:00:00 AM UTC-4, Celinio Fernandes wrote:

 Hello,
 I just noticed that the schedule for Google IO 2012 is now available : 
 https://developers.google.com/events/io/sessions
 Not sure whether it is definitive or not.
 I see that this year there is no session dedicated to GWT. How come ? 
 But there are 2 sessions dedicated to Dart. Is this a sign ?





-- 
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/-/NZJydWH_dXEJ.
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: Large GIN Modules and DevMode performance

2012-05-24 Thread Nuno R
Thanks Thomas, that was what i suspected.

On Thursday, May 24, 2012 8:58:06 AM UTC+1, Thomas Broyer wrote:



 On Thursday, May 24, 2012 4:25:34 AM UTC+2, Nuno R wrote:

 Hi,

 At the moment we've a large scale application that reached a bottleneck 
 at DevMode startup time.
 It takes ~120s to hit onModuleLoad() call and spends most of the time 
 generating and compiling GIN Injector ~85%.

 Our best result was to target gwt-UnitCache to a virtual disk in RAM, 
 this speeded things up but still not under 90s to reach onModuleLoad().
 Does exist any other way to improvide GIN processing without trying to 
 isolate groups of screens on their own GWT modules (by consequence smaller 
 GIN modules) and run only the one a developer is working on.
 I think we could not reach an acceptable startup time (20s) without it.

 This only brings some small concerns about mantaining dev mode code only 
 (besides gwt.xml files), at least ActivityMapper, HistoryMapper and GIN 
 module to switch.


 How do you tackle this issue on your large scale projects?


 FYI, the Wave team recommended (2 years ago) creating harnesses; i.e. 
 smaller standalone apps.
 In Wave, they made an EditorHarness for their operation-transform-aware 
 rich-text editor and an UndercurrentHarness for the wave panel (the one 
 that displays a wave, with threaded wavelets, and incremental data and 
 feature loading).
 In your case, create small and modular GinModules, and small EntryPoints 
 and Ginjectors specific to a particular set of screens.

 http://www.google.com/events/io/2010/sessions/gwt-continuous-build-testing.html
  (starts 
 around 42:30 in the video)




-- 
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/-/3abJaEygYg8J.
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.



JS errors comes after migrating from GWT1.5 to GWT 2.0

2012-05-24 Thread Seema Singh
I changed deprecated  methods Interface and classes
which helped me to remove errors displayed for the code in eclipse

Though there were few warnings. my GWT application started

But the problem it is giving me DOM based JS error.

It seems, the JS method gets loaded before content load

I dont know why this behaviour changed.

So, it is resulting many errors

And in some pages it is OK

My application is using
GWT 2.0, YUI 2, XSL

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



How to Connect MySQL Connection?

2012-05-24 Thread Mahe
Hi all,

I am Mahesh, new in GWT and Java. I want to create one application in
that. Actually I do basic application like stop-watcher. But now i
want connect my database to application and do dynamic application
means like store all value in database of user registration form and
show the the register user list.

so any one can plz help me how i do it or give me related link so I
can refer it.

Somebody plz help me.

Thank you in Advance.


-- 
You received 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: problem with css and link

2012-05-24 Thread Mahe
Hi,

you refer this follow link

https://developers.google.com/web-toolkit/tools/gwtdesigner/tutorials/loginmanager

i hope you will get solution for


On May 24, 5:59 pm, Assiya EL missweb...@gmail.com wrote:
 hi all ,

 I'd like the link to my gray,  I tried  :

 . link {
 color: # 2E2E2E;
 text-decoration: none;

 with :

 Hyperlink link = new Hyperlink(Be the first to review this 
 product,http://www.google.com;);
 link.addStyleName(link);

 but it did not work

 thank you
 --

 Assiya EL
 Master Qualité du Logiciel

 Plz consider environment - Only print this if necessary

-- 
You received 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 Browser Dev-Plugin

2012-05-24 Thread gwtdev
Hey, I am getting the same issue. Did you get any answer from anyone?
If yes, please let me know.

On May 22, 2:15 am, Fabio safesfa...@gmail.com wrote:
 Hi All,

 I get an error 404 while downloading GWT Dev Plugin for IE9. (https://
 dl-ssl.google.com/tag/s/appguid%3D%7B9a5e649a-
 ec63-4c7d-99bf-75adb345e7e5%7D%26lang%3Den%26appname%3DGWT
 %2520Developer%2520Plugin%2520for%2520IE%2520%2528x86%2529%26needsadmin
 %3Dfalse/gwt/plugins/ie/GwtDevPluginSetup.exe)

 404. That’s an error.

 The requested URL /tag/s/appguid%3D%7B9a5e649a-
 ec63-4c7d-99bf-75adb345e7e5%7D%26lang%3Den%26appname%3DGWT
 %2520Developer%2520Plugin%2520for%2520IE%2520%2528x86%2529%26needsadmin
 %3Dfalse/gwt/plugins/ie/GwtDevPluginSetup.exe was not found on this
 server. That’s all we know.

 Thank u very much for your help!
 Fabio

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



JS errors comes after migrating from GWT1.5 to GWT 2.0

2012-05-24 Thread Seema Singh
My application uses GWT XSL YUI

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



URL for GwtDevPluginSetup.exe is broken

2012-05-24 Thread gwtdev
Since yesterday, I keep getting following error when load local GWT
application for the first time, please help where I can get
GwtDevPluginSetup.exe.

404. That’s an error.
The requested URL /tag/s/appguid%3D%7B9a5e649a-
ec63-4c7d-99bf-75adb345e7e5%7D%26lang%3Den%26appname%3DGWT
%2520Developer%2520Plugin%2520for%2520IE%2520%2528x86%2529%26needsadmin
%3Dfalse/gwt/plugins/ie/GwtDevPluginSetup.exe was not found on this
server. That’s all we know

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



Can't download a GWT Plug In For IE

2012-05-24 Thread David
I cleared my IE cache and now I can't download anew GWT Plugin. No
matter what link I follow I am getting 404 error. Does anyone else
have this issue?

https://dl-ssl.google.com/tag/s/appguid%3D%7B53dae7d2-8c28-440f-920b-b2d665ce73b2%7D%26lang%3Den%26appname%3DGWT%2520Developer%2520Plugin%2520for%2520IE%2520%2528x64%2529%26needsadmin%3Dfalse/gwt/plugins/ie/GwtDevPluginSetup.exe

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



What are the check list to be followed to migrate from GWT1.5 to GWT 2.0

2012-05-24 Thread Seema Singh
I changed deprecated  methods Interface and classes
which helped me to remove errors displayed for the code in eclipse

Though there were few warnings. my GWT application started

But the problem it is giving me DOM based JS error.

It seems, the JS method gets loaded before content load

I dont know why this behaviour changed.

So, it is resulting many errors

And in some pages it is OK

My application is using
GWT 2.0, YUI 2, XSL


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



Caused by: java.lang.ClassCastException: org.hibernate.dialect.MySQLDialect cannot be cast to org.hibernate.dialect.Dialect

2012-05-24 Thread Edgar Zamora
Hi all

I'm new with GWT (using plugin for eclipse) and Hibernate(v4.1.2).

Recently I got this error in my under-development-test-app:
java.lang.ClassCastException: org.hibernate.dialect.MySQLDialect
cannot be cast to org.hibernate.dialect.Dialect

I have found some info referring this exception and the mentioned
solutions are:
a. delete validation.jar
b. downgrade Hibernate 3.6

I would like to know if there is a more transparent solution.

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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 Browser Dev-Plugin

2012-05-24 Thread Pete_Scholar
Hi Fabio,

I've hit the same error for ie7:

https://dl-ssl.google.com/tag/s/appguid%3D%7B9a5e649a-ec63-4c7d-99bf-75adb345e7e5%7D%26lang%3Den%26appname%3DGWT%2520Developer%2520Plugin%2520for%2520IE%2520%2528x86%2529%26needsadmin%3Dfalse/gwt/plugins/ie/GwtDevPluginSetup.exe

returns:

The requested URL /tag/s/appguid%3D%7B9a5e649a-
ec63-4c7d-99bf-75adb345e7e5%7D%26lang%3Den%26appname%3DGWT
%2520Developer%2520Plugin%2520for%2520IE%2520%2528x86%2529%26needsadmin
%3Dfalse/gwt/plugins/ie/GwtDevPluginSetup.exe was not found on this
server. That’s all we know.

This means my only working browser for dev is Chrome, as I'm running
Firefox 12.0.

Have you found any work arounds?

Thanks.
Pete.

On May 22, 10:15 am, Fabio safesfa...@gmail.com wrote:
 Hi All,

 I get an error 404 while downloading GWT Dev Plugin for IE9. (https://
 dl-ssl.google.com/tag/s/appguid%3D%7B9a5e649a-
 ec63-4c7d-99bf-75adb345e7e5%7D%26lang%3Den%26appname%3DGWT
 %2520Developer%2520Plugin%2520for%2520IE%2520%2528x86%2529%26needsadmin
 %3Dfalse/gwt/plugins/ie/GwtDevPluginSetup.exe)

 404. That’s an error.

 The requested URL /tag/s/appguid%3D%7B9a5e649a-
 ec63-4c7d-99bf-75adb345e7e5%7D%26lang%3Den%26appname%3DGWT
 %2520Developer%2520Plugin%2520for%2520IE%2520%2528x86%2529%26needsadmin
 %3Dfalse/gwt/plugins/ie/GwtDevPluginSetup.exe was not found on this
 server. That’s all we know.

 Thank u very much for your help!
 Fabio

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



Unable To install GWT Developer Plug in for IE

2012-05-24 Thread David
I am getting 404 errors for both the IE and IE 64 bit install urls. I
am blocked.

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



Sending request between servers

2012-05-24 Thread Rafal Baumann
Hi,

My problem might seems strange but just to make it simpler imagine I
have a sever that runs GWT app listening on port 8080 and PHP app on
tis same server (apache listening on port 8000).

What I want to do is to make an ajax request from second server to GWT
and get an JSON answer. What I manage to do is to make a call with
exacly this same parameters, setting manually X-GWT-Module-Base in
call, but the anser I get is: Incorrect JSON string.

If I do this call from GWT server it works ok. Original headers:

Request URL:http://192.168.16.201:8080/test
Request Method:POST
Status Code:200 OK
Request Headersview source
Accept:*/*
Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
Cache-Control:max-age=0
Connection:keep-alive
Content-Length:157
Content-Type:text/x-gwt-rpc; charset=UTF-8
Host:192.168.16.201:8080
Origin:http://192.168.16.201:8080
Referer:http://192.168.16.201:8080/
User-Agent:Mozilla/5.0 (X11; Linux i686) AppleWebKit/536.5 (KHTML,
like Gecko) Chrome/19.0.1084.46 Safari/536.5
X-GWT-Module-Base:http://192.168.16.201:8080/maingui/
X-GWT-Permutation:E2298EA5C990D38B70D7942E75D62D4D
Request Payload
7|0|4|http://192.168.16.201:8080/maingui/|
B4325BEA8959861B9498186969F7C197|dk.nw.test.shared.service.TestService|
getInterruptStatusProviders|1|2|3|4|0|

Headers from my call:

Request URL:http://192.168.16.201:8000/celoxservice
Request Method:POST
Status Code:200 OK
Request Headersview source
Accept:*/*
Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
Cache-Control:max-age=0
Connection:keep-alive
Content-Length:157
Content-Type:text/x-gwt-rpc; charset=UTF-8
Host:192.168.16.201:8000
Origin:http://192.168.16.201:8000
Referer:http://192.168.16.201:8000/request=webgui
User-Agent:Mozilla/5.0 (X11; Linux i686) AppleWebKit/536.5 (KHTML,
like Gecko) Chrome/19.0.1084.46 Safari/536.5
X-GWT-Module-Base:http://192.168.16.201:8080/maingui/
X-GWT-Permutation:E2298EA5C990D38B70D7942E75D62D4D
Request Payload
7|0|4|http://192.168.16.201:8080/maingui/|
B4325BEA8959861B9498186969F7C197|dk.nw.test.shared.service.TestService|
getInterruptStatusProviders|1|2|3|4|0|

As you can see only Host, Origin and Referer are different in my call.
Any sugestions? 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: problem with css and link

2012-05-24 Thread Assiya EL
thank you for your reply

i resolved my problem with :

yourLink.setStyleName(gwt-Hyperlink a:active);


and in css :

.gwt-Hyperlink a:link,.gwt-Hyperlink a:hover,.gwt-Hyperlink
a:visited,.gwt-Hyperlink a:active
{
   color:gray;

}


2012/5/24 Mahe mahesh.jagad...@gmail.com

 Hi,

 you refer this follow link


 https://developers.google.com/web-toolkit/tools/gwtdesigner/tutorials/loginmanager

 i hope you will get solution for


 On May 24, 5:59 pm, Assiya EL missweb...@gmail.com wrote:
  hi all ,
 
  I'd like the link to my gray,  I tried  :
 
  . link {
  color: # 2E2E2E;
  text-decoration: none;
 
  with :
 
  Hyperlink link = new Hyperlink(Be the first to review this product,
 http://www.google.com;);
  link.addStyleName(link);
 
  but it did not work
 
  thank you
  --
 
  Assiya EL
  Master Qualité du Logiciel
 
  Plz consider environment - Only print this if necessary

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




-- 

Assiya EL
Master Qualité du Logiciel



Plz consider environment - Only print this if necessary

-- 
You received 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: ScrollPanel inside HeaderPanel // Another option for an auto-resizable DockLayoutPanel?

2012-05-24 Thread Shaun Tarves
No, I can't get the header panel to work at all. The header block shows up, 
but nothing in the content area is visible.

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



Error with GWT 2.4

2012-05-24 Thread skippy
IE8, Window 7, not chrome plug-in.

$wnd.addEventListener($intern_965,
com_google_gwt_user_client_impl_DOMImplStandard_dispatchCapturedMouseEvent,
true);

the error is:

Object doesn't support this property of method Char:3.

This is in a .cache.html file.

Its also not happening to all IE8 users.

I had the same problem when I have the chrome plug-in installed, but
disabled.

-- 
You received 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: JSON Parsing in GWT Client

2012-05-24 Thread Harald Pehl
Thanks for the numbers  It's quite interesting for me to see how Piriti 
performs compared to AutoBeans. In recent versions, I've added new features 
mainly (right now I'm working on JAXB support). Regarding performance 
there's still room for improvement. The problem is that Piriti is currently 
a one-man-show and my time is limited.

Nevertheless I'm happy to see that Piriti is actively used. If you have any 
questions don't hesitate to ask.

- Harald (author of Piriti)

Am Donnerstag, 24. Mai 2012 14:24:22 UTC+2 schrieb dominikz:

 Just got performance results for various browsers and devices.
 If you're interested please take a look here:


 https://docs.google.com/spreadsheet/ccc?key=0AsuvWfSBnfyodEZqdmktOGNacG1MX0tsM0FBdXhXdUE#gid=0


-- 
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/-/CmmEZHAV9nsJ.
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: Can't download a GWT Plug In For IE

2012-05-24 Thread David
Its been 24 hours and the GWT Developer Browser Plugin for IE is still 
broken 
[image: Google] //www.google.com/ 

*404.* That’s an error. 

The requested URL 
/tag/s/appguid%3D%7B9a5e649a-ec63-4c7d-99bf-75adb345e7e5%7D%26lang%3Den%26appname%3DGWT%2520Developer%2520Plugin%2520for%2520IE%2520%2528x86%2529%26needsadmin%3Dfalse/gwt/plugins/ie/GwtDevPluginSetup.exewas
 not found on this server. That’s 
all we know.


On Wednesday, May 23, 2012 1:21:58 PM UTC-4, David wrote:

 I cleared my IE cache and now I can't download anew GWT Plugin. No 
 matter what link I follow I am getting 404 error. Does anyone else 
 have this issue? 


 https://dl-ssl.google.com/tag/s/appguid%3D%7B53dae7d2-8c28-440f-920b-b2d665ce73b2%7D%26lang%3Den%26appname%3DGWT%2520Developer%2520Plugin%2520for%2520IE%2520%2528x64%2529%26needsadmin%3Dfalse/gwt/plugins/ie/GwtDevPluginSetup.exe

-- 
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/-/MQ_XWBu6Y3gJ.
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: Large GIN Modules and DevMode performance

2012-05-24 Thread Joseph Lust
We've run into the same issue with out project (~80 rich app screens). 
We're currently breaking it out into many independent modules for just this 
reason.

We also tried to make many application components common, and then moved 
these out into our common component module. This way we don't keep 
recompiling them for each module run, since they are precompiled and served 
up from Maven.

Sincerely,
Joseph

-- 
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/-/Rb3RDiVPF_kJ.
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 Local Database?

2012-05-24 Thread Kyle Anderson
I have a user application where a user loads a map with about
3000-5000 widgets on it.  The user needs to be able to filter/sort/
modify these elements quickly.  The server load is heavy, and GAE is
performing abominably.


My idea is to transfer all the elements to the client in a local
database such as the HTML5 local database.  Have the user interact/
modify them directly in the client,  send the database back to the
server, then update the dirty elements.


It's fine if my users are required to have HTML5, I'm not concerned
with this as its intended for a small set of users.

-- 
You received 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: Editor framework - return error from proprietary server validation (not requestfactory)

2012-05-24 Thread leemon
I figured this out. I needed to call driver.edit(myObject), then call 
driver.setConstraintViolations(myViolations)

On Sunday, May 20, 2012 12:22:38 PM UTC-4, leemon wrote:

 I am using the Editor framework combined with a proprietary rest-based 
 back end. The objects returned from my back end service may contain 
 validation errors (though not JSR 303 style errors). If I want to display 
 these errors in my editor, do I just create my own implementation of 
 ConstraintViolation and convert my own error format to a list of those?

 I'm guessing the flow is:

 1. user clicks save
 2. call driver.flush()
 3. if no errors, persist object to server
 4. server returns object w/validation errors
 5. call driver.setConstraintViolations(myViolations);
 6. call driver.edit(myObject);

 Is there anything else I need to do? Will this interfere with client-side 
 validations?

 thanks

 leemon




-- 
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/-/xK-6Ry8dqrQJ.
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: Export CellTable data to PDF and Excel Format using UIBinder

2012-05-24 Thread K vfdsdfbsdb
First time You have to deal it in server side.
Second. Make link for it's down load.
2012/05/24 21:10 lucky lucky.begum...@gmail.com:

 Hi,

 can any one tell me how can i export my celltable data to pdf and excel
 format?

 Thanks in advance

 --
 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/-/puujD6pLmAwJ.
 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: Export CellTable data to PDF and Excel Format using UIBinder

2012-05-24 Thread Joseph Lust
Apache POI is a good place to start if you need richly formatted Excel 
exports.
http://poi.apache.org/


Sincerely,
Joseph

-- 
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/-/zdHCQYX5E0UJ.
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 Local Database?

2012-05-24 Thread Joseph Lust
Be sure to check out the GWT-Mobile-WebKit database 
APIhttp://code.google.com/p/gwt-mobile-webkit/wiki/DatabaseApi
.

Keep in mind that this could be a huge security hole for SQL injection. 
You'll need to ensure you escape everything coming back in that sqlLite DB. 
Then you'll also need a robust way to detect diffs.

It might be easier, if the user does not make that many changes, to just 
send back the differences and merge those.



Sincerely,
Joseph

-- 
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/-/nfeOvHmWr3kJ.
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 with GWT 2.4

2012-05-24 Thread Joseph Lust
Skippy,

If you don't mind my asking, why are you using JSNI here to apply the 
listener rather than the DOM.sinkEvents() and DOM.setEventListener? Doing 
so is highly advised against in the documentation due to the high 
likelihood of memory leaks. It also mean's you're not getting permutation 
specific event handler implementations, which can lead to the famous 
Object doesn't support this property of method IE exception.


Sincerely,
Joseph

-- 
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/-/7iTu4Nzs3t0J.
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: JS errors comes after migrating from GWT1.5 to GWT 2.0

2012-05-24 Thread Joseph Lust
Can you include any of your code or the exceptions generated?

Joe

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



Re: How to access a GWT Servlet from a C# application?

2012-05-24 Thread Joseph Lust
This ought to help as I've had to do this same thing before (implementation 
example code for a customer to connect from their C# to our GWT service).
http://stackoverflow.com/questions/4821479/send-post-to-java-servlet-using-c-sharp-httpwebrequest


Sincerely,
Joseph

-- 
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/-/pGj0R_5AJpMJ.
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 Local Database?

2012-05-24 Thread dominikz
Just remember that there's a known issue with SQLite INSERT time. Google 
something like 'sqlite html5 insert time slow' and you'll see what I mean.

We bumped into that when writing our applications. They are on mobile 
browsers so it impacts us even more.

-- 
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/-/IkviWdCc1l4J.
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: JSON Parsing in GWT Client

2012-05-24 Thread dominikz
Don't get me wrong. One of my developers was evaluating JSON frameworks. He 
really liked pirity due to the fact that you can annotate fields there and 
not setters and getters like in AutoBean. He fealt that it's just too much 
code. I know this discussion is academic, but that's how he feels.

I'm also not sure whether you can plug in custom code formatters in 
AutoBeans as easily as in piriti.

So if it wasn't for performance we'd use piriti. Especially because it's so 
easy to switch to XML.

The reason why performance is so important for us is because our apps are 
on mobile. This parsing time can easily make the app seem unresponsive to 
the user. 

If we were writing for desktop browsers, we probably wouldn't care so much 
about each millisecond of parsing.

I guess what I wanted to say is that you've done a really good job with 
piriti. I know it's hard to fight with a group of hired google developers.


-- 
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/-/OHOX2x8ofFMJ.
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: JSON Parsing in GWT Client

2012-05-24 Thread dominikz


 Nevertheless I'm happy to see that Piriti is actively used. If you have 
 any questions don't hesitate to ask.



Actually I have. Do you know why AutoBeans is much faster? 
Can you share some details? You know your implementation better then all of 
us.

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



[gwt-contrib] Re: Fix issue 6959. (issue1587803)

2012-05-24 Thread t . broyer

Ping

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

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


[gwt-contrib] Re: Generated EditorContext class names take actual parameterization into account. (issue1352806)

2012-05-24 Thread t . broyer

Ping

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

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


[gwt-contrib] Re: Addresses a couple of my concerns re. RF validation. (issue1577806)

2012-05-24 Thread t . broyer

Ping

(sorry for the spam, these are important issues that we should really
try to fix in 2.5, so I'm just making sure they're not forgotten)

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

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


Re: [gwt-contrib] HELP: Generated Javascript contains wrong prototype assignments

2012-05-24 Thread Jens


 Can you apply this patch to a local GWT trunk build and see if it helps: 

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


Using trunk with your patch does not solve the issue.

In the first split point the code

_ = CustomPlace_2.prototype = CustomPlace_0.prototype = 
CustomPlace.prototype = new AbstractPlace;

is replaced with

defineSeed(2037, 2025, makeCastMap([Q$Place, Q$AbstractPlace, Q$IPlace, 
Q$CustomPlace]), CustomPlace_0, CustomPlace_2);

and in the second split point there is no equivalent defineSeed() method 
call which contains CustomPlace_1. 

So I still see ClassCastExceptions.


-- J.

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

[gwt-contrib] Re: Fixing a Chrome animation bug where animations never stop running. The timestamp that webkitReq... (issue1702803)

2012-05-24 Thread jlabanca

committed as r10989

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

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


[gwt-contrib] Re: Removing uses of deprecated Tree code in GWT showcase sample and TreeExample. (issue1712804)

2012-05-24 Thread jlabanca


http://gwt-code-reviews.appspot.com/1712804/diff/1/samples/showcase/src/com/google/gwt/sample/showcase/client/content/lists/CwTree.java
File
samples/showcase/src/com/google/gwt/sample/showcase/client/content/lists/CwTree.java
(right):

http://gwt-code-reviews.appspot.com/1712804/diff/1/samples/showcase/src/com/google/gwt/sample/showcase/client/content/lists/CwTree.java#newcode194
samples/showcase/src/com/google/gwt/sample/showcase/client/content/lists/CwTree.java:194:
item.addTextItem();
Agreed.  We should add some API to provide the children the first time
the node is opened.  I created issue 7387 to track this.

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

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


[gwt-contrib] Re: Added style getters to UiRenderers (issue1700803)

2012-05-24 Thread rchandia


http://gwt-code-reviews.appspot.com/1700803/diff/1/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java
File user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java
(right):

http://gwt-code-reviews.appspot.com/1700803/diff/1/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java#newcode1367
user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java:1367: for
(ImplicitCssResource css : bundleClass.getCssMethods()) {
On 2012/05/23 01:51:11, rdayal wrote:

Nit: refactor into a helper method (as the code is identical to the

three lines

below).


Done.

http://gwt-code-reviews.appspot.com/1700803/diff/1/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java#newcode1568
user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java:1568: *
{@code Element}.
On 2012/05/23 01:51:11, rdayal wrote:

Update this comment to reflect the new checks that you'd added.


Done.

http://gwt-code-reviews.appspot.com/1700803/diff/1/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java#newcode1576
user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java:1576: if
(field == null || (!FieldWriterType.DEFAULT.equals(field.getFieldType())
On 2012/05/23 01:51:11, rdayal wrote:

Maybe wrap this small block of code into a helper method (for

readability)?

In a sense, this method is a helper method intending to make the caller
easier to read.

I am not sure how extracting this block will make it more readable. I'd
get a confusing method signature and name :P

void dieIfNoFieldNorFieldTypeDefaultNorFieldTypeGeneratedCss(FieldWriter
field, String getterName, String fieldName)


Also, is there a reason as to why you moved this higher up in the

validation

order?


Yes, this way the following if-checks get simpler (field != null and
types are either GENERATED_CSS or DEFAULT). It did not matter before
because there was only one one type of ui:field being considered.

http://gwt-code-reviews.appspot.com/1700803/diff/1/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java#newcode1578
user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java:1578:
die(%s does not match a \ui:field='%s'\ declaration in %s,
getterName, fieldName,
On 2012/05/23 01:51:11, rdayal wrote:

This error message does not seem to reflect the fact that there may be

a

mismatch in the type (as opposed to a failure to find a matching

getter name)

Done.

http://gwt-code-reviews.appspot.com/1700803/diff/1/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java#newcode2221
user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java:2221: //
Esle the non-root elements are found by id
On 2012/05/23 01:51:11, rdayal wrote:

Spelling (Else).
Move this comment within the else block.


Done.

http://gwt-code-reviews.appspot.com/1700803/diff/1/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java#newcode2225
user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java:2225: //
return (ElementSubclass) findUiField(parent);
On 2012/05/23 01:51:11, rdayal wrote:

Seems like this comment is inaccurate.


Done.

http://gwt-code-reviews.appspot.com/1700803/diff/1/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java#newcode2230
user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java:2230: //
return (ElementSubclass) findPreviouslyRendered(parent);
On 2012/05/23 01:51:11, rdayal wrote:

Seems like this comment is inaccurate.


Done.

http://gwt-code-reviews.appspot.com/1700803/diff/1/user/test/com/google/gwt/uibinder/rebind/AbstractUiBinderWriterTest.java
File
user/test/com/google/gwt/uibinder/rebind/AbstractUiBinderWriterTest.java
(right):

http://gwt-code-reviews.appspot.com/1700803/diff/1/user/test/com/google/gwt/uibinder/rebind/AbstractUiBinderWriterTest.java#newcode105
user/test/com/google/gwt/uibinder/rebind/AbstractUiBinderWriterTest.java:105:
public static final MockJavaResource UI_STYLE = new
MockJavaResource(foo.UiStyle) {
On 2012/05/23 01:51:11, rdayal wrote:

Good man (adding test code). I like your style.



http://www.anyclip.com/movies/starsky-hutch/biker-bar-fight/
(start watching at 1:20)


Yup. Blow by blow, test by test.

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

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


[gwt-contrib] Re: Add Integer.TYPE, etc. (issue1710804)

2012-05-24 Thread stephen . haberman



I suppose if I tracked down the commit that set it up for 2.4, I could

just

change whatever it changed...I'll look in to that.


It seems like this shouldn't be too hard, but after making a new
gwt24_25 conf file and creating new reference jars from gwt 2.4, I'm
getting this error:

apicheck-nobuild:
 [java] Found 38 new resources
 [java] Found 38 new resources
 [java] Checking for compile errors
 [java][ERROR] Errors in
'/mock/com/google/gwt/safehtml/shared/SafeUriHostedModeUtils.java'
 [java]   [ERROR] Line 34: The type SafeUriHostedModeUtils is
already defined
 [java] [ERROR] Unable to build typeOracle for gwt24userApi

I'm not sure where the /mock/ part of that path comes from. Usually
that's for fake/in-memory compilation units for unit tests.

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

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


[gwt-contrib] Re: Removing uses of deprecated Tree code in GWT showcase sample and TreeExample. (issue1712804)

2012-05-24 Thread jlabanca

committed as r10991

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

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


[gwt-contrib] Resubmitting code review 1660804 (issue1716803)

2012-05-24 Thread rchandia

Reviewers: rdayal,

Description:
Resubmitting code review 1660804
Allow absolute paths in ui:style's src=
Thanks Thomas!

Fixes issue: 7230

Review by: rda...@google.com

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

Affected files:
  M user/src/com/google/gwt/uibinder/rebind/model/ImplicitCssResource.java
  M user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.ui.xml


Index:  
user/src/com/google/gwt/uibinder/rebind/model/ImplicitCssResource.java

===
--- user/src/com/google/gwt/uibinder/rebind/model/ImplicitCssResource.java	 
(revision 10982)
+++ user/src/com/google/gwt/uibinder/rebind/model/ImplicitCssResource.java	 
(working copy)

@@ -193,8 +193,16 @@

 for (String s : sources) {
   String resourcePath = path + '/' + s;
+  // Try to find the resource relative to the package.
   URL found = classLoader.getResource(resourcePath);
-  if (null == found) {
+  /*
+   * If we didn't find the resource relative to the package, assume it
+   * is absolute.
+   */
+  if (found == null) {
+found = classLoader.getResource(s);
+  }
+  if (found == null) {
 logger.die(Unable to find resource:  + resourcePath);
   }
   urls.add(found);
Index: user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.ui.xml
===
--- user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.ui.xml	 
(revision 10982)
+++ user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.ui.xml	 
(working copy)

@@ -107,7 +107,7 @@
 !--
   Tests creating a CssResource from an external file.
  --
-ui:style field='myStyle' src='WidgetBasedUi.css Menu.css'
+ui:style field='myStyle' src='WidgetBasedUi.css  
com/google/gwt/uibinder/test/client/Menu.css'

 type='com.google.gwt.uibinder.test.client.WidgetBasedUi.Style'
 .menuBar {
   font-family: sans-serif;


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


[gwt-contrib] Re: Issue 7230: allow absolute paths in ui:style's src= (issue1660804)

2012-05-24 Thread rchandia

Reposting for internal resubmission at:
http://gwt-code-reviews.appspot.com/1716803

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

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


[gwt-contrib] Resubmission of Issue 1686803 (issue1717803)

2012-05-24 Thread rchandia

Reviewers: rdayal,

Description:
Resubmission of Issue 1686803
Add text-align support to Style
Thanks Patrick!


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

Affected files:
  M user/src/com/google/gwt/dom/client/Style.java
  M user/src/com/google/gwt/safecss/shared/SafeStylesBuilder.java
  M user/src/com/google/gwt/safecss/shared/SafeStylesUtils.java
  M user/src/com/google/gwt/user/client/ui/HorizontalSplitPanel.java
  M user/test/com/google/gwt/dom/client/StyleTest.java
  M user/test/com/google/gwt/safecss/shared/GwtSafeStylesUtilsTest.java


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


[gwt-contrib] HorizontalSplitPanel should use ScheduledCommand instead of Command (issue1718803)

2012-05-24 Thread rchandia

Reviewers: rdayal,

Description:
HorizontalSplitPanel should use ScheduledCommand instead of Command
Resubmitting issue 1694803
Thanks Patrick!


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

Affected files:
  M user/src/com/google/gwt/user/client/ui/HorizontalSplitPanel.java


Index: user/src/com/google/gwt/user/client/ui/HorizontalSplitPanel.java
===
--- user/src/com/google/gwt/user/client/ui/HorizontalSplitPanel.java	 
(revision 10982)
+++ user/src/com/google/gwt/user/client/ui/HorizontalSplitPanel.java	 
(working copy)

@@ -16,13 +16,13 @@
 package com.google.gwt.user.client.ui;

 import com.google.gwt.core.client.GWT;
+import com.google.gwt.core.client.Scheduler;
+import com.google.gwt.core.client.Scheduler.ScheduledCommand;
 import com.google.gwt.i18n.client.LocaleInfo;
 import com.google.gwt.resources.client.ClientBundle;
 import com.google.gwt.resources.client.ImageResource;
 import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
-import com.google.gwt.user.client.Command;
 import com.google.gwt.user.client.DOM;
-import com.google.gwt.user.client.DeferredCommand;
 import com.google.gwt.user.client.Element;
 import com.google.gwt.user.client.Timer;

@@ -301,8 +301,7 @@
   // If one tries to set the width of the LEFT element to
   // before layout completes, the RIGHT element will
   // appear to be blanked out.
-
-  DeferredCommand.addCommand(new Command() {
+  Scheduler.get().scheduleDeferred(new ScheduledCommand() {
 public void execute() {
   setWidth(panel.getElement(LEFT), 0px);
 }
@@ -579,7 +578,7 @@
  * possible.
  */
 setSplitPosition(lastSplitPosition);
-DeferredCommand.addCommand(new Command() {
+Scheduler.get().scheduleDeferred(new ScheduledCommand() {
   public void execute() {
 setSplitPosition(lastSplitPosition);
   }


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


[gwt-contrib] Re: HorizontalSplitPanel should use ScheduledCommand instead of Command (issue1694803)

2012-05-24 Thread rchandia

LGTM

Reposting internally at:
http://gwt-code-reviews.appspot.com/1718803

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

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


[gwt-contrib] Re: SplitLayoutPanel should use ScheduledCommand instead of Command (issue1695803)

2012-05-24 Thread rchandia

Submitted as r10957

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

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


[gwt-contrib] DateBox should use ScheduledCommand instead of Command (issue1719803)

2012-05-24 Thread rchandia

Reviewers: rdayal,

Description:
DateBox should use ScheduledCommand instead of Command
Resubmission of issue 1695804
Thanks Patrick!


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

Affected files:
  M user/src/com/google/gwt/user/datepicker/client/DateBox.java


Index: user/src/com/google/gwt/user/datepicker/client/DateBox.java
===
--- user/src/com/google/gwt/user/datepicker/client/DateBox.java	(revision  
10982)
+++ user/src/com/google/gwt/user/datepicker/client/DateBox.java	(working  
copy)

@@ -17,6 +17,8 @@
 package com.google.gwt.user.datepicker.client;

 import com.google.gwt.core.client.GWT;
+import com.google.gwt.core.client.Scheduler;
+import com.google.gwt.core.client.Scheduler.ScheduledCommand;
 import com.google.gwt.editor.client.IsEditor;
 import com.google.gwt.editor.client.LeafValueEditor;
 import com.google.gwt.editor.client.adapters.TakesValueEditor;
@@ -35,8 +37,6 @@
 import com.google.gwt.event.logical.shared.ValueChangeHandler;
 import com.google.gwt.event.shared.HandlerRegistration;
 import com.google.gwt.i18n.client.DateTimeFormat;
-import com.google.gwt.user.client.Command;
-import com.google.gwt.user.client.DeferredCommand;
 import com.google.gwt.user.client.ui.Composite;
 import com.google.gwt.user.client.ui.HasValue;
 import com.google.gwt.user.client.ui.PopupPanel;
@@ -490,7 +490,7 @@

   private void preventDatePickerPopup() {
 allowDPShow = false;
-DeferredCommand.addCommand(new Command() {
+Scheduler.get().scheduleDeferred(new ScheduledCommand() {
   public void execute() {
 allowDPShow = true;
   }


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


[gwt-contrib] Re: DateBox should use ScheduledCommand instead of Command (issue1695804)

2012-05-24 Thread rchandia

LGTM

Reposting at http://gwt-code-reviews.appspot.com/1719803

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

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


[gwt-contrib] Re: Issue 7038: CompositeEditor and ListEditor optimizations (issue1664803)

2012-05-24 Thread Brian Slesinsky
On Sat, May 19, 2012 at 9:16 AM, Thomas Broyer t.bro...@gmail.com wrote:

 So I agree that is
 seems logical that a live view would only last until the next
 flush() or at most until the next setValue(). But this isn't
 well-documented in this class or anywhere else that I've found so far.

 To
 me, https://developers.google.com/web-toolkit/doc/latest/DevGuideUiEditors is
 clear enough. YMMV though.

It does explain a lot of things but I'm missing the part where it
explains the lifetime of the view returned by getEditors(). I'd expect
that to be explained in the javadoc for getEditors itself.

 So maybe we want to do that now? I also wonder if, for consistency, we
 want to make sure the live view goes stale on *every* call to
 setValue(), which would make our optimization a bit trickier; we
 should probably create a new ListValueProvider and copy all the
 subeditors into it.


 ListEditorWrapper could track this in detach() and from then on act as an
 immutable list (throwing exceptions if you try to change it).

Sure, that seems like a separate issue though.

Here's my concern: if you call setValue() twice with the same list,
this patch will make the live view returned by getEditors() last
longer than before. So I think maybe we shouldn't reuse the
ListEditorWrapper instance, just the Editors themselves.
ListEditorWrapper looks cheap to construct, so we might as well be
consistent and avoid changing behavior.

On the other hand, maybe you're expecting that the caller *knows* that
they're calling setValue() twice with the same List, so they expect
the view to last longer as a result, sort of like if we were returning
the same list again without wrapping it. If so, maybe this is a change
in behavior to be closer to what the user expects?

 If you ask me, for consistency, I'd
 remove the null-check in ListEditor and let it fail for 'null' values, just
 like it did originally. It might have been added by mistake, I don't know,
 it was added as part of a bigger change and wasn't tracked/documented at
 all, so who knows?

I'm not sure what you mean. Do you mean that setValue() should just
throw an exception for null lists? Or does it blow up later? Or do we
want to avoid blowing up?

 That's the kind of behavior I'd rather fight against: getValue just after
 setValue should try to preserve the value (null vs. empty string)

Yes, good point. Except that in this case, there is no getValue()
method, since this isn't a LeafValueEditor and doesn't implement
HasValue. It looks like all changes get sent to the backing list via
flush()?

If we call setValue() with a null list, I don't think flush() can do
anything, because we don't have any reference to a backing model to
update! Therefore, any changes made in the ListEditor cannot be saved?
You'd have to use an OptionalFieldEditor if you want to save it.

So it seems like at most we can display a read-only, empty list.
There's no point in letting the user edit something they can't save.

Or maybe I missed something - pretty likely, actually.

- Brian

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


[gwt-contrib] Add HasEnabled to FileUpload. (issue1614808)

2012-05-24 Thread tuckerpmt

LGTM

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

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


[gwt-contrib] Add clear support to Style (issue1720803)

2012-05-24 Thread tuckerpmt

Reviewers: ,

Description:
Style does not have a getter, setter or clear function for the 'clear'
CSS property.

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

Affected files:
  user/src/com/google/gwt/dom/client/Style.java
  user/src/com/google/gwt/safecss/shared/SafeStylesBuilder.java
  user/src/com/google/gwt/safecss/shared/SafeStylesUtils.java
  user/test/com/google/gwt/dom/client/StyleTest.java
  user/test/com/google/gwt/safecss/shared/GwtSafeStylesUtilsTest.java


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