how to import a css file in module.gwt.xml

2011-09-14 Thread wahaha
i use gwt v2.3.
if i write a tag link,it wrong:
[ERROR] Line 22: Unexpected element 'link'
  [ERROR] Failure while parsing XML
com.google.gwt.core.ext.UnableToCompleteException: (see previous log
entries)


if i change to a tag stylesheet,then i do not work.

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



can we make a ScrollPanel do not roll in vertical?

2011-09-14 Thread wahaha
a ScrollPanel,i just want it to scroll in horizontal,do not scroll in
vertical,would i?

-- 
You received 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 2.4 Spring Integration Using RequestFactory

2011-09-14 Thread POODevelopper
I'm currently Working on a GWT 2.4 / Spring 3 application and want to
use the RequestFactory API to communicate with Spring services.

I searched and find that to integrate GWT integrate with Spring
beginning from 2.4 you just need to create a custom ServiceLocator
that expose your Spring beans.

public class SpringServiceLocator implements ServiceLocator {

public Object getInstance(Class? clazz) {
ApplicationContext context =
WebApplicationContextUtils.getWebApplicationContext(
RequestFactoryServlet.getThreadLocalServletContext());
return context.getBean(clazz);
}

}

And you need to configure you RequestFactoryServlet as mentioned on
the Google documentation.

I followed theses steps but my when GWT client make a Request to the
Back-end i receive this Exception :

  Sep 13, 2011 7:42:34 AM
com.google.web.bindery.requestfactory.server.RequestFactoryServlet
doPost
SEVERE: Unexpected error
java.lang.ArrayIndexOutOfBoundsException: 1
at
com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.processInvocationMessages(SimpleRequestProcessor.java:
425)
at
com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java:
217)
at
com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java:
125)
at
com.google.web.bindery.requestfactory.server.RequestFactoryServlet.doPost(RequestFactoryServlet.java:
118)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
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)
[ERROR] 500 - POST /gwtRequest (127.0.0.1) 1420 bytes

Did I miss something on the configuration ??

-- 
You received 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: UiHandler and how to do it right?

2011-09-14 Thread Volker
Thanks for the clarification!

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



mvn gwt:run failed

2011-09-14 Thread kim young ill
hi,
i just updated my gwt-maven project to gwt 2.4  cannot use jsp anymore:

got this on the webpage:

Compile failed; see the compiler error output for details.
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:933)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

 On console:

Syntax error, parameterized types are only available if source level is 1.5
...


how could i fix this quick ?

thanx

-- 
You received 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: render image using clientbundle problem?

2011-09-14 Thread Sudhakar Abraham
I have written below a  code segment for  rendering image using
ClientBundle. Please try.

static interface Images extends ClientBundle {
@Source(yourImage.gif)
ImageResource contactsGroup();
  }

// call CategoryCell

public static Images images;
new CategoryCell(images.contactsGroup());

 private static class CategoryCell extends AbstractCellCategory {

private final String imageHtml;

public CategoryCell(ImageResource image) {
  this.imageHtml = AbstractImagePrototype.create(image).getHTML();
}

public void render(Context context, Category value,
SafeHtmlBuilder sb) {
 sb.appendHtmlConstant(imageHtml).appendEscaped( );
  }
}
  }

S. Abraham
www.DataStoreGwt.com


On Sep 13, 5:40 pm, Stephen Fleming m.naveenguru...@gmail.com wrote:
 I am unable to render image on my application  using clientbundle.
 Provide solution for me.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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 - GIN - GWTP Problem with Dispatchers

2011-09-14 Thread opn
Hello friend,

Do you have access to your injector where you new your instance?
I am not sure, but could you try to new the instance and then use
your injector like injector.injectMembers(instance). You would need to
put the @Inject above the Dispatcher field.

According to the table here: 
http://code.google.com/p/google-gin/wiki/GuiceCompatibility
this feature is available.

And according to the documentation here:
http://google-guice.googlecode.com/svn/trunk/javadoc/com/google/inject/Injector.html#injectMembers(java.lang.Object)
it should just do exactly what you need!

Let me know if it works.

Regards

On Sep 13, 10:44 am, Asfak balooch.as...@gmail.com wrote:
 Hello Friendz,

 I am in a situation where someone might be already in. I am using GWTP
 in my application. GWTP is using GIN as a client side
 dependency injection. GWTP also uses Dispatcher mechanism for sending
 request to server side.

 Now, There are some classes (PRESENTERS) which is injected by GWTP, I
 have some other classes which are created runtime without injection
 that means using new keywork. Let's have an example :

 // Injected
 class Dispatcher {

 }

 // Injected
 Class A {
         @Inject // I can do this and access the disp without any hurdle.
         Dispatcher disp;

 }

 // Created using new keywork
 class B {
         //@Inject I can't do this because of B is not an injected class.
 Correct me if I am wrong here
         Dispatcher disp;

 }

 So, I need to access Injected class in non injected classes. You might
 think I havn't tried GWT.Create(Injector.class) method. I have tried
 that and I am able to get that object in non inected classes but the
 object Dispatcher is something different it increments(adds) /
 dispatch/ to its base url. That means i need to have the same object
 which GWTP internally using. And GWTP creates the GIN INJECTOR at the
 entry point.

 One solution is to put the same GIN INJECTOR to client side session
 (Static Hashmap) and use it in non injected classes (I have also tried
 this solution and it is working like charm).

 I need more perfect solution which can work.

 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: what is the usage of hosted.html

2011-09-14 Thread Thomas Broyer
It's the equivalent of the *.cache.html for the DevMode. When the 
*.nocache.js detects that you want to run in DevMode (there's a gwt.codesvr 
in the URL's query string), then it loads hosted.html rather than some 
*.nocache.html. It is that hosted.html which contains the code that loads 
the GWT Dev plugin in your browser to connect back to the DevMode.

Note that if you use the xsiframe linker, you'll have a hosted.js instead.

-- 
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/-/nWbYhjUErz8J.
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 fire a customized event.

2011-09-14 Thread Thomas Broyer
Widget#fireEventhttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/Widget.html#fireEvent(com.google.gwt.event.shared.GwtEvent)?
 
(how about looking at how things are done in existing widgets? look 
specifically for the com.google.gwt.event.logical.shared.* events)

-- 
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/-/ZPkfG-VGxHoJ.
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 2.4 breaks JDK 5 compile support

2011-09-14 Thread Lars Ködderitzsch
It seems that gwt-user.jar in GWT 2.4 packages a certain dependency
(flute-1.3-gg2.jar) which is compile against target 1.6.

This breaks GWT compile support for JDK 5, which I suppose was not
intendend (even though JDK 5 support is deprecated).

Please have a look at bug 6790:

http://code.google.com/p/google-web-toolkit/issues/detail?id=6790

My current workaround is to provide a rebuilt version of flute into my
GWT compile classpath, before gwt-user.jar.

BR,
Lars

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



Problem to migrate requestfactory 2.3 to 2.4

2011-09-14 Thread Geoffray
Good morning everyone,

i'm trying to figure out how to migrate requestfactory 2.3 to 2.4 but
I still have the same problem : java.lang.RuntimeException: The
RequestFactory ValidationTool must be run for the
com.airfrance.cappla.client.service.factory.AppRequestFactory
RequestFactory type

Actually, in order to solve my problem I tried to do what was
explained in this tutorial : 
http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterfaceValidation,
but it still doesn't work :(

Does anyone have the same problem ??
Does anyone have solve it ??

Thank you for your help.

Geoffray.

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

2011-09-14 Thread Xybrek
Has anyone here have worked with GWT Multipage 
(http://code.google.com/p/gwt-multipage/) ?


There are scenarios when accessing the GWT app, that the gwt-multipage 
Entrypoint selection shows up, I need to prevent this event.



--
You received 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 fire a customized event.

2011-09-14 Thread wahaha
in a user-defined widget,i defined a event.
i want to fire the event,when i click on the child widget.
how to imple this?

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



Re: how to fire a customized event.

2011-09-14 Thread Ali Thabet
If your goal is to do a treatment when the event occurs on the child widget you
must implement the corresponding interface in your custom Widget. for
example:

public class MyWidget extends Composite implements HasClickHandlers
{
private TextBox text = new TextBox();

private PushButton button = new PushButton(MyButton);

public MyWidget()
{
 
 initWidget(...);
 }

 @Override
   public HandlerRegistration addClickHandler(ClickHandler handler)
   {
  return button.addClickHandler(handler);
   }
}

-- 
You received 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 and HTML file

2011-09-14 Thread obesga
..mmm the case is that I don't want to use Gwt DeclarativeUI, just
plain HTML (tags with id's inside)

If you know Wicket, you'll get the idea about what I want.

My first post works, but it generates a div class=gwt-HTML/div
that contains the HTML file I've got; I would like to getrid of it

I've seen that there's a method

HTML.wrap();

http://stackoverflow.com/questions/1822891/gwt-widget-from-html
http://stackoverflow.com/questions/744137/best-way-to-externalize-html-in-gwt-apps


Thanks

On Sep 13, 5:58 pm, Ben Imp benlee...@gmail.com wrote:
 While I'm not sure GWT allows you to do exactly what you are asking, you
 should be able to use a ui binder template to accomplish the same goal.

 http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html

 -Ben

-- 
You received 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 to migrate requestfactory 2.3 to 2.4

2011-09-14 Thread kim young ill
i have other prob. updating from 2.3 to 2.4 with request-factory

 java.lang.ArrayIndexOutOfBoundsException: 1
[ERROR] at
com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.processInvocationMessages(SimpleRequestProcessor.java:425)
[ERROR] at
com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java:217)
[ERROR] at
com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java:125)
[ERROR] at
com.google.web.bindery.requestfactory.server.RequestFactoryServlet.doPost(RequestFactoryServlet.java:118)
[ERROR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
[ERROR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)





On Wed, Sep 14, 2011 at 10:27 AM, Geoffray geoffray.gr...@gmail.com wrote:

 Good morning everyone,

 i'm trying to figure out how to migrate requestfactory 2.3 to 2.4 but
 I still have the same problem : java.lang.RuntimeException: The
 RequestFactory ValidationTool must be run for the
 com.airfrance.cappla.client.service.factory.AppRequestFactory
 RequestFactory type

 Actually, in order to solve my problem I tried to do what was
 explained in this tutorial :
 http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterfaceValidation
 ,
 but it still doesn't work :(

 Does anyone have the same problem ??
 Does anyone have solve it ??

 Thank you for your help.

 Geoffray.

 --
 You received 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: Problem to migrate requestfactory 2.3 to 2.4

2011-09-14 Thread Ashwin Desikan

On Wednesday 14 September 2011 01:57 PM, Geoffray wrote:

Good morning everyone,

i'm trying to figure out how to migrate requestfactory 2.3 to 2.4 but
I still have the same problem : java.lang.RuntimeException: The
RequestFactory ValidationTool must be run for the
com.airfrance.cappla.client.service.factory.AppRequestFactory
RequestFactory type

Actually, in order to solve my problem I tried to do what was
explained in this tutorial : 
http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterfaceValidation,
but it still doesn't work :(

Does anyone have the same problem ??
Does anyone have solve it ??

Thank you for your help.

Geoffray.

I had the same error as you had, but was able to fix the issue following 
the instructions provided in wiki.  I use and eclipse based 
configuration. Post recompiling my project and ensuring my project 
refers to the correct version of gwt 2.4.0, i was able to successfully 
load my app


~Ashwin

--
You received 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: can't attach text with mail using Google App engine? please help me

2011-09-14 Thread John
I didn't get any exception.  please help me. I have been waiting for
your reply for the past 8 hours.

This is My Google App Engine Log:

2011-09-13 20:47:12.758 /mailserver 200 79ms 46cpu_ms 0kb Mozilla/5.0
(Windows; U; Windows NT 5.1; en-US; rv:1.9.2.22) Gecko/20110902
Firefox/3.6.22

59.92.6.102 - - [13/Sep/2011:08:17:12 -0700] POST /mailserver HTTP/
1.1 200 0 http://dinefinemail.appspot.com/; Mozilla/5.0 (Windows;
U; Windows NT 5.1; en-US; rv:1.9.2.22) Gecko/20110902 Firefox/3.6.22
dinefinemail.appspot.com ms=80 cpu_ms=47 api_cpu_ms=0
cpm_usd=0.301408 instance=00c61b117ce578ca700cf428ae7f9245e72200

I 2011-09-13 20:47:12.708

[s~dinefinemail/1.353217802270349484].stdout: Mail Servlet is





On Sep 13, 9:11 pm, skly kvk...@gmail.com wrote:
 You can print  the exceptions to view details

 2011/9/13 John gan.tan...@gmail.com

  I don't know what mistake i did in the server side code of google app
  engine, I send my code segment to you. Thanks for advance .

  //server side code
  public class MailServlet extends HttpServlet {

         private static final long serialVersionUID = 1L;

         public void doPost(HttpServletRequest req, HttpServletResponse resp)
         {

                 Properties properties = new Properties();

                 Session session = Session.getDefaultInstance(properties,
  null);

                 String message = Welcome towww.datastoregwt.com;

                 String attachement = attachementString for testing ;

                 try
                 {

                 Message msg = new MimeMessage(session);

                 Multipart mp = new MimeMultipart();

                 MimeBodyPart bodyPart = new MimeBodyPart();

                 bodyPart.setContent(attachement, text/plain);

                 mp.addBodyPart(bodyPart);

                 msg.setFrom(new
  InternetAddress(rajaganapathiv...@gmail.com));
                 msg.addRecipient(Message.RecipientType.TO, new
  InternetAddress(gan.tan...@gmail.com));

                 msg.setSubject(Invitation fromwww.datastoregwt.com);

                 msg.setText(message);

                 msg.setContent(mp);

                 Transport.send(msg);

                 }
                 catch (AddressException e1)
                 {

                 }
                 catch (MessagingException e2)
                 {

                 }
                 catch (UnsupportedEncodingException e)
                 {
                         e.printStackTrace();
                 }
         }
  }

  --
  You received 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: Java and HTML file

2011-09-14 Thread obesga
Threre's nothing like

$('body').append(divmy data/div)

in GWT ?

(I know GWTQuery, but's not the case)


Thanks


On Sep 14, 12:20 pm, obesga obe...@gmail.com wrote:
 ..mmm the case is that I don't want to use Gwt DeclarativeUI, just
 plain HTML (tags with id's inside)

 If you know Wicket, you'll get the idea about what I want.

 My first post works, but it generates a div class=gwt-HTML/div
 that contains the HTML file I've got; I would like to getrid of it

 I've seen that there's a method

 HTML.wrap();

 http://stackoverflow.com/questions/1822891/gwt-widget-from-htmlhttp://stackoverflow.com/questions/744137/best-way-to-externalize-htm...

 Thanks

 On Sep 13, 5:58 pm, Ben Imp benlee...@gmail.com wrote:







  While I'm not sure GWT allows you to do exactly what you are asking, you
  should be able to use a ui binder template to accomplish the same goal.

 http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html

  -Ben

-- 
You received 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 to migrate requestfactory 2.3 to 2.4

2011-09-14 Thread Thomas Broyer
What did you do exactly?
Do you have a 
com.airfrance.cappla.client.service.factory.AppRequestFactoryDeobfuscatorBuilder
 
class in what you deploy on the server? This is what the 
requestfactory-apt.jar annotation processor and/or ValidationTool generate, 
that RequestFactory looks for, and which generates this error when it's not 
found.
See 
http://code.google.com/p/google-web-toolkit/source/browse/tags/2.4.0/user/src/com/google/web/bindery/requestfactory/vm/impl/Deobfuscator.java#36

-- 
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/-/MttDF3ag0YMJ.
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 to migrate requestfactory 2.3 to 2.4

2011-09-14 Thread Thomas Broyer
Line 425 in the version included in 2.4.0 cannot throw an 
ArrayIndexOutOfBounds: 
http://code.google.com/p/google-web-toolkit/source/browse/tags/2.4.0/user/src/com/google/web/bindery/requestfactory/server/SimpleRequestProcessor.java#425
Are you sure you deployed the correct version of gwt-servlet.jar or 
requestfactory-server.jar?
It looks like you might still be using 2.3.0 on the server: 
http://code.google.com/p/google-web-toolkit/source/browse/tags/2.3.0/user/src/com/google/web/bindery/requestfactory/server/SimpleRequestProcessor.java#425
 (even 
though the error should be line 426 there)

-- 
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/-/7kl4U6w4_sYJ.
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 and HTML file

2011-09-14 Thread Thomas Broyer
I'm pretty sure that it should work. Have you tried it? Did it fail?

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



Re: GWT 2.4 Spring Integration Using RequestFactory

2011-09-14 Thread Miroslav Genov
I made similar thing with Guice. You can take a look at: 
https://github.com/mgenov/injecting-request-factory

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



Re: GWT 2.4 Spring Integration Using RequestFactory

2011-09-14 Thread Kevin Jordan
From that, it sounds like you may have a 2.3.0 version of
RequestFactory on there too if you are indeed trying to use 2.4.0.
The line in question in the top of the stack trace makes no sense for
the 2.4.0 source, but in the 2.3.0 source it does:
Method contextMethod = service.resolveRequestContextMethod(
operation[0], operation[1]);

which in 2.4.0 became:
Method contextMethod = service.resolveRequestContextMethod(operation);

On Sep 14, 2:50 am, POODevelopper imra...@gmail.com wrote:
 I'm currently Working on a GWT 2.4 / Spring 3 application and want to
 use the RequestFactory API to communicate with Spring services.

 I searched and find that to integrate GWT integrate with Spring
 beginning from 2.4 you just need to create a custom ServiceLocator
 that expose your Spring beans.

 public class SpringServiceLocator implements ServiceLocator {

 public Object getInstance(Class? clazz) {
     ApplicationContext context =
 WebApplicationContextUtils.getWebApplicationContext(
             RequestFactoryServlet.getThreadLocalServletContext());
     return context.getBean(clazz);

 }
 }

 And you need to configure you RequestFactoryServlet as mentioned on
 the Google documentation.

 I followed theses steps but my when GWT client make a Request to the
 Back-end i receive this Exception :

   Sep 13, 2011 7:42:34 AM
 com.google.web.bindery.requestfactory.server.RequestFactoryServlet
 doPost
 SEVERE: Unexpected error
 java.lang.ArrayIndexOutOfBoundsException: 1
     at
 com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process 
 InvocationMessages(SimpleRequestProcessor.java:
 425)
     at
 com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process 
 (SimpleRequestProcessor.java:
 217)
     at
 com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process 
 (SimpleRequestProcessor.java:
 125)
     at
 com.google.web.bindery.requestfactory.server.RequestFactoryServlet.doPost(R 
 equestFactoryServlet.java:
 118)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
     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)
 [ERROR] 500 - POST /gwtRequest (127.0.0.1) 1420 bytes

 Did I miss something on the configuration ??

-- 
You received 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 multiple CellTables on one page

2011-09-14 Thread Sudhakar Abraham
To avoid this problem, use different resources (like different style
sheets ). I send the code segment.

S. Abraham
www.DataStoreGwt.com

public interface CellTableResources1 extends CellTable.Resources
 {
   @Source(your_css1.css)
   Style cellTableStyle();
}

public interface CellTableResources2 extends CellTable.Resources
 {
   @Source(Your_css2.css)
   Style cellTableStyle();
}

//cell table

CellTableResources  firstCss = GWT.create(CellTableResources1.class);
CellTableResources2 secondCss = GWT.create(CellTableResources2.class);
CellTablePerson table1 = new CellTablePerson(25, firstCss );
CellTablePerson table2 = new CellTablePerson(25, secondCss);


On Sep 14, 12:50 am, Pedro Perez guerr...@gmail.com wrote:
 Hello,

 I'm having an issue with 2 CellTables on the same page using the same
 CellTableResource. 1st table is defined like this:

 CellTableResource resource = GWT.create(CellTableResource.class);
 CellTableDataRecord table1 = new CellTableDataRecord(100,
 resource);

 where CellTableResource is an interface that extends
 CellTable.Resources that successfully maps to our custom css and
 styles our first table correctly.

 The issue is with table 2, which is defined like this:
 CellTable.Resources tableResources =
 GWT.create(CellTable.Resources.class);
 CellTableAddressRecord table2 = new CellTableAddressRecord(25,
 tableResources);

 table2 seems to inherit table1's styling. I was expecting in this case
 that table2 would use GWT's stock CellTable styling.

 Can someone perhaps show me where I'm wrong/correct my
 misunderstanding of how CellTables use Resources? Is there a way to
 have multiple cellTables on one page that use different stylings?

 One last thing, we are using GWT 2.2. It is difficult for us to
 upgrade 2.3 at this point.

 Thanks so much for your help,
 Pedro

-- 
You received 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 Binder error problem? show [ERROR] Element may only contain a single child element, but found g:VerticalPanel ui:field='panel1' and g:VerticalPanel ui:field='panel2'. Element g:center

2011-09-14 Thread Stephen Fleming
I got the problem when I compile application. I send my xml file.
Provide solution for me.

//.xml file

ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'

g:DockLayoutPanel ui:field=dock
g:north size=25
g:FlowPanel
g:Button ui:field=saveSave/g:Button
/g:FlowPanel
/g:north
g:center
g:VerticalPanel ui:field=panel1
g:Button ui:field=button1print/g:Button
g:Button ui:field=button2clear/g:Button
/g:VerticalPanel
  g:VerticalPanel ui:field=panel2
g:TextArea ui:field=textArea /
/g:VerticalPanel

/g:center
/g:DockLayoutPanel
/ui:UiBinder

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



File download by GWT client

2011-09-14 Thread Marcin Olejarczyk
Hi,

Is there any possibility to generate *.txt file and give the user the
opportunity to download this file locally by typical download web
browser window only by executing GWT client code without any
involvement on the server side.

Shortly: Click the button, generate file on open download window only
by the client side.

Thx for any help

/Marcin

-- 
You received 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 Binder error problem? show [ERROR] Element may only contain a single child element, but found g:VerticalPanel ui:field='panel1' and g:VerticalPanel ui:field='panel2'. Element g:center

2011-09-14 Thread Eric Clayberg (Google)
It looks like the answer is actually in the error message itself.

You have two center elements where you are only allowed to have one.

If you want both panels there, you would need to contain the both in a 
single panel that is the sole center element.

-- 
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/-/r6dRdj037YoJ.
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 Binder error problem? show [ERROR] Element may only contain a single child element, but found g:VerticalPanel ui:field='panel1' and g:VerticalPanel ui:field='panel2'. Element g:center

2011-09-14 Thread Thomas Broyer
As the error says, there can only be a single center widget. You'll have 
to wrap your 2 VerticalPanel (panel1 and panel2) within another widget 
(FlowPanel or whatever), or possibly merge them in a single VerticalPanel 
(move TextArea from panel2 to panel1, and remove panel1)

-- 
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/-/Zz_hTiQb_wEJ.
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 multiple CellTables on one page

2011-09-14 Thread Thomas Broyer
That's not enough. As I said on the issue tracker (see link in previous 
message in this thread), you have to create interfaces that extend the Style 
interface too, otherwise your class names from the two CSS files will have 
the same obfuscated names.

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



Browser does GWT 2.4 support for Firefox

2011-09-14 Thread AS Rosiel
As mentioned at FAQ, GWT support browser Firefox from 1.0 to 3.5.
Since the latest release of Firefox is 6.0.2. Is GWT fully support
that?
Besides, for the developer plugin, Firefox officially support version
3.0 to 5.0. Does it implies GWT is fully support for those Firefox
version?

Thanks a lot.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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 import a css file in module.gwt.xml

2011-09-14 Thread Palo G.
The tag link is not declared in gwt DND. There are many ways how to
append styles into GWT application, see
http://code.google.com/intl/cs/webtoolkit/doc/latest/DevGuideUiCss.html

- you can use link tag in your html file where you are appending gwt
js
- with UI Binder
- in module file *.gwt.xml , use stylesheet src=css-url / (if the
name of css file contains non alphanumeric letters then this can cause
problems sometimes)
- use CssResource interface

On 14 zář, 08:23, wahaha il...@yahoo.com.cn wrote:
 i use gwt v2.3.
 if i write a tag link,it wrong:
 [ERROR] Line 22: Unexpected element 'link'
       [ERROR] Failure while parsing XML
 com.google.gwt.core.ext.UnableToCompleteException: (see previous log
 entries)

 if i change to a tag stylesheet,then i do not work.

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



Re: Browser does GWT 2.4 support for Firefox

2011-09-14 Thread Thomas Broyer
The FAQ is a bit outdated.

Firefox 1.0 is no longer supported as of GWT 2.1.1. I can't tell whether 
Firefox 1.5 and 2.0 are still officially supported, but their code path is 
the same as for all other Firefox versions.

Firefox 6 is supported (the developer plugin has recently been updated, the 
missing plugin page will reflect it soon); it has caused no regression 
compared to Firefox 5 or even 4.

Also, IE9 is supported since GWT 2.3; and I believe only the latest version 
of Opera is officially supported (which is 11.51, and not 9 as the FAQ 
says). I also believe Safari 2 support has been deprecated (and has even 
been removed in some places, e.g. History).

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



Re: GWT 2.4 Spring Integration Using RequestFactory

2011-09-14 Thread POODevelopper
I Have just gwt 2.4 Libraries on my classpath? does Gwt 2.4 have a
special JAR where there is the RequestFactory dependencies ??

On Sep 14, 12:29 pm, Kevin Jordan ke...@kjordan.net wrote:
 From that, it sounds like you may have a 2.3.0 version of
 RequestFactory on there too if you are indeed trying to use 2.4.0.
 The line in question in the top of the stack trace makes no sense for
 the 2.4.0 source, but in the 2.3.0 source it does:
 Method contextMethod = service.resolveRequestContextMethod(
             operation[0], operation[1]);

 which in 2.4.0 became:
 Method contextMethod = service.resolveRequestContextMethod(operation);

 On Sep 14, 2:50 am, POODevelopper imra...@gmail.com wrote:







  I'm currently Working on a GWT 2.4 / Spring 3 application and want to
  use the RequestFactory API to communicate with Spring services.

  I searched and find that to integrate GWT integrate with Spring
  beginning from 2.4 you just need to create a custom ServiceLocator
  that expose your Spring beans.

  public class SpringServiceLocator implements ServiceLocator {

  public Object getInstance(Class? clazz) {
      ApplicationContext context =
  WebApplicationContextUtils.getWebApplicationContext(
              RequestFactoryServlet.getThreadLocalServletContext());
      return context.getBean(clazz);

  }
  }

  And you need to configure you RequestFactoryServlet as mentioned on
  the Google documentation.

  I followed theses steps but my when GWT client make a Request to the
  Back-end i receive this Exception :

    Sep 13, 2011 7:42:34 AM
  com.google.web.bindery.requestfactory.server.RequestFactoryServlet
  doPost
  SEVERE: Unexpected error
  java.lang.ArrayIndexOutOfBoundsException: 1
      at
  com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process 
  InvocationMessages(SimpleRequestProcessor.java:
  425)
      at
  com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process 
  (SimpleRequestProcessor.java:
  217)
      at
  com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process 
  (SimpleRequestProcessor.java:
  125)
      at
  com.google.web.bindery.requestfactory.server.RequestFactoryServlet.doPost(R 
  equestFactoryServlet.java:
  118)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      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)
  [ERROR] 500 - POST /gwtRequest (127.0.0.1) 1420 bytes

  Did I miss something on the configuration ??

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



Re: GWT 2.4 breaks JDK 5 compile support

2011-09-14 Thread Lars Ködderitzsch
Doing the flute.jar workaround triggered another JDK 1.5 compatibility
issue further down the road:

[INFO]   [ERROR] Unexpected internal compiler error
[INFO] java.lang.NoSuchMethodError: java/util/Arrays.copyOf([II)[I
[INFO]  at
com.google.gwt.dev.jjs.impl.JsFunctionClusterer.exec(JsFunctionCluste
rer.java:153)

Here a Java 6 introduced API is being used, that I could only
workaround by locally patching the affected GWT class.
After that GWT compile worked fine again on a Java 5 JDK.



-- 
You received 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 create image sprits

2011-09-14 Thread ramesh
In my project have 200+ PNG image files.

We have one functionality like Back up. In this functionality entire
our application going to back up in back up server.In this process
these 200+ images are also in part . So number of http requests are
increasing in back up process.

One way is using image sprites combine all images in to single image
in that case we will reduce number of http request.


Can you please tell me how to create image sprites in GWT ?

Do you have demo example ?

-- 
You received 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: File download by GWT client

2011-09-14 Thread Derek
Modern HTML5 should allow something along those lines, but browser
support is going to be pretty hit or miss. I haven't tried exactly
what you describe, but you should check out FileSystem, FileWriter,
and blob support (http://www.html5rocks.com/en/tutorials/file/
filesystem/). In Chrome at least, you can create a file in a temporary
space, write text to it, and expose that as a filesystem: URL for the
user to click to download.

None of that is reflected in GWT currently. I created overlay types
for the few FileSystem / FileWriter objects I needed on the project
I'm working on, and you could do similarly. Or you could just sling
some JSNI.

Hope that helps,
Derek

On Sep 14, 8:28 am, Marcin Olejarczyk
marcin.xx.olejarc...@softhouse.se wrote:
 Hi,

 Is there any possibility to generate *.txt file and give the user the
 opportunity to download this file locally by typical download web
 browser window only by executing GWT client code without any
 involvement on the server side.

 Shortly: Click the button, generate file on open download window only
 by the client side.

 Thx for any help

 /Marcin

-- 
You received 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 create meta with @template?

2011-09-14 Thread Luke
@Template(meta name='description' content='{0}' /)
SafeHtml metaDescriptionHTML(String descriptionText);

i tried the above on gwt2.4 but i get error. can comments how to i
progromatically add meta on page?

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



Re: how to import a css file in module.gwt.xml

2011-09-14 Thread Sudhakar Abraham
There are three ways to include css file.

1. you can add a link tag inside the head section of the host page
( you also need to create a file called   your_Stylesheet.css in the
public directory ).

Ex:
link type=text/css rel=stylesheet href=your_StyleSheet.css /

2. you can  include css on project.gwt.xml file.

Ex:
 stylesheet src='Your_StyleSheet.css' /

3. Using UI binder, specify the ui:style ...  /ui:style

Ex:
 ui:style
  .buttonSave {
float: left;
margin-top: 10px;
margin-left: 10px;
margin-bottom: 10px;
  }
/ui:style

S. Abraham
www.DataStoreGwt.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.



Re: how to create meta with @template?

2011-09-14 Thread Thomas Broyer
May I ask why would you want to do that?
The only meta/ that are not useless are only used at parse time (charset, 
viewport), and possibly by user agents that don't run JS (description, used 
by Google bots).

-- 
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/-/7RDFDI1qPJ0J.
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: mvn gwt:run failed

2011-09-14 Thread Y2i
What is you source/ in the configuration/ section of the 
maven-compiler-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/-/DR4lJ8uongAJ.
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 and HTML file

2011-09-14 Thread obesga
My previous code works fine inserting HTML code(the first message).
But when I want to add one or many child widgets, for example a
button, to an internal DIV of the HTML code injected it seems to be a
little complicated.

To get down under the HTML added you can use
- RootPanel.get(id) (after adding it to parent panel, not on
constructor)
- Get deeper with getElement().getElementsByTagName(xxx);


/**BEGIN CLASS**/
public class MyComposite extends Composite {

interface MyCompositeResource extends ClientBundle {
MyCompositeResource INSTANCE =
GWT.create(MyCompositeResource.class);

@Source(MyComposite.html)
TextResource html();
}

   public MyComposite (){
initWidget(new HTML(INSTANCE.html().getText()));
VerticalPanel vp; // Add wigets inside
this.getElement().appendChild((vp = new
VerticalPanel()).getElement());
for(int i=0; i  10; i++) vp.add( new Button(bt+i));
//To add to an internal div
NodeListElement eles =
getElement().getElementsByTagName(div);
Element e = eles.getItem(0);
e.appendChild((vp = new VerticalPanel()).getElement());
for(int i=0; i  10; i++) vp.add( new Button(bt2+i));

}
}

/**END CLASS**/


Of there's another method, I'd like to know



On Sep 14, 2:04 pm, Thomas Broyer t.bro...@gmail.com wrote:
 I'm pretty sure that it should work. Have you tried it? Did it fail?

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



Strange Request: How do I open a new browser window, run part of the GWT application there, and communicate with it

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

I have a strange request. I have an application that needs to run on an
iframe as part of another application. This application needs to open  popup
browser windows to show additional information, for example a celltable with
a list. How do I use GWT to run on the new popup browser window and send it
data?

Regards,

Néstor Boscán

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



Re: GWT 2.4 breaks JDK 5 compile support

2011-09-14 Thread Jens
Not quite sure if JDK 5 is just deprecated as of GWT 2.4 or if its already 
unsupported.

Taking a look at 
http://code.google.com/p/google-web-toolkit/source/browse/releases/2.4/eclipse/README.txt
 
shows that you should set the compiler compliance setting to 1.6 which is 
only possible if you have JDK 6 and not JDK 5.

-- 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/-/G4cf_JBSr0kJ.
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 and HTML file

2011-09-14 Thread obesga
(Excuse me for the number of messages, I've been trying a lot of times
while asking.)

I've found a class that makes me vey happy and works fine: HTMLPanel


public class MyComposite extends Composite {

interface MyCompositeResource extends ClientBundle {


@Source(MyComposite.html)
TextResource html();
}
/*** THE HTML FILE BEGIN
div id=inicioInicio
div id=inicio2/div
p id=micasa/p
div id=midiv/div
/div
***/


public MyComposite () {
MyCompositeResource myComposite Resource
=GWT.create(MyCompositeResource.class) ;
HTMLPanel htmlPanel;
initWidget(htmlPanel = new
HTMLPanel(myCompositeResource.html().getText()));
htmlPanel.add(new Button(bt),midiv); // my div is internal
}
}


THAT works fine !!

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



JSNI - Call Javascript native method from another

2011-09-14 Thread Jésica
Hi, I'm facing problems for calling a native method from another. i'm
trying to do It like this:

//JSNI code
public native void dragStart()/*-{
 alert(OnDragStart);
}-*/;

public native void addPushpin()/*-{
(...)
blah.Events.addHandler(pin, 'dragstart', dragStart);
(...)
}-*/

I'm getting an error saying dragStart is not defined.
Is there an special way for making this interaction work?

Thanks,
Jésica.



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



Re: GWT 2.4 breaks JDK 5 compile support

2011-09-14 Thread Lars Ködderitzsch
Well, neither the SKD release notes (http://code.google.com/intl/de-DE/
webtoolkit/release-notes.html#Release_Notes_Current) nor the What's
new page mention dropping Java 5 support - as I would expect from a
change of this magnitude.

This leads me to believe that those issues are not intentional.

Let's see if someone (from the committers?) can clarify this.

BR,
Lars

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



Using RPC to get list of menu items(final variable issue)

2011-09-14 Thread Frederick van Staden
Hi all,

I am having trouble building a dynamic GUI that is dependent on
information form the server.
I am calling an RPC that returns an array of strings,this contains the
display names of the menu items i would like to place inside a
VLayout.

The problem is I cannot access a non-final variable inside the RPC
implementation.And if i change the VLayout variable to final,adding
widgets to it does not have the effect i'd like(it does not add the
items to the VLayout).
In other areas of my project i have achieved the same affect by just
adding the menu items to a pre-defined div-id that resides in my html
( by doing this RootPanel.get(my.div.id).add(item);) This works
nicely!But I cant do this again because i'm not adding these items to
a pre-defined tag, rather, i'm adding them to a VLayout.


Here is a snippet of my code trying to add items to a VLayout inside
an RPC:
***
final VLayout vLayout1 = new VLayout();

uiService.getDataList(new AsyncCallbackString[]() {

@Override
public void onFailure(final Throwable caught) {
Window.alert(Could not connect to server, 
please check your
connection.);
}

@Override
public void onSuccess(final String[] result) {

if (result == null)
Window.alert(No data in datalist);

else {
// Iterate through all the items in the 
dataset list
for (int i = 0; i  result.length; i++) 
{
// TODO loop through datasets 
and create list
MenuItem item = new 
MenuItem(result[i], data);
vLayout1.addChild(item);
}
}
}
});
***
Does anyone have a suggestion or workaround?
I have tried populating an arrayList inside the RPC and then using the
arrayList's content to create the menu items and add them to the
VLayout but when that code executes the arrayList is empty.
It's probably because that code is executed before the RPC returns.

Would appreciate any suggestions!
Thank you in advance.

Regards
Fred

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



Using how do I customize my splitLayoutPanel slider bars with buttons?

2011-09-14 Thread DemiSheep
I am using the splitLayoutPanel in my widget design. I have two slider
bars from the splitLayoutPanel, one vertical and one horizontal. I
want to modify the horizontal bar by adding the following buttons:

UP causes the slider bar to jump to the maximum top are of the
window, so you don't have to slide it. DOWN Opposite of UP. New
Note Create a new note which will appear in the bottom half of the
horizontally split area.

So I need to make the horizontal split bar wide enough for the buttons
and I need to add the bottons onto it. How do I go about doing this?

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



User maintained HTML in GWT app - any security concerns?

2011-09-14 Thread maq
Hi, all,

If I were to allow user to create their own HTML code which being
displayed in a HTML widget, so that they can maintain their content.
Is there any security concern, such as they can inject javascripts
into the HTML?

Any best practices or comments is appreciated!


-maq

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



Re: GWT 2.4 breaks JDK 5 compile support

2011-09-14 Thread ciosbel
Java 1.5 has been deprecated since gwt 2.2.
http://code.google.com/webtoolkit/doc/2.2/ReleaseNotes.html#Java15

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



RequestFactory / AutoBean with non-bean value type

2011-09-14 Thread Eric Sirianni
I would like to use a value type for a bean property in an EntityProxy
that is not natively supported by RequestFactory.  In other words, a
java type not in com.google.web.bindery.autobean.shared.ValueCodex
(Enum, BigInteger, BigDecimal, Date, etc.).

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

The specific use case I have is using Joda-time types (Duration,
Instant, etc.).  ValueProxy won't work for these as they do not
conform to JavaBean conventions.

Is this possible?  It doesn't appear to be given the current factoring
of the code.

What would be the best workaround?  I toyed with the idea of declaring
these properties as Strings in my EntityProxy interface and then
converting them in a crosscutting manner using ServiceLayerDecorator.

i.e.
  Object getProperty(Object domainObject, String property) {
Object value = super.getProperty(domainObject, property);
if (value instanceof JodaDuration) {
   // ... convert to String
   return ...;
} else {
  return value;
}
  }

In this way the domain objects would use the native Joda type but the
EntityProxy objects would talk in terms of Strings.

Would this work?  Any better ideas?

Thanks,
Eric

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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 Development Mode - Safari and Opera

2011-09-14 Thread NN
Take the Firefox plugin
https://dl-ssl.google.com/gwt/plugins/firefox/gwt-dev-plugin.xpi

Install it in Firefox.
Set Opera plugin directory to FF plugins, so it can take it there. That's 
all.

You can do it manually.

XPI is a zip file.
So unzip it , take xpGwtDevPlugin.dll from FF 5  , put it in Program 
Files\Opera\program\plugins

But then you need to supply all needed dlls like xpcom.dll and other.

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



Status of Eclipse 4.1 integration

2011-09-14 Thread Joel
Hello all, thank you for this software, it is really enjoyable to use.

I just updated Eclipse to version 4.1 and I can't install the GWT
plugin anymore (trying with 3.7, since I knew it was alike, but it
didn't work)

I guess this integration means (at least) a little work, but I haven't
found any communication on that yet.
- (when) is it planned ?
- what is left to do ?
- what can we expect in this revision ?

Thank you again for all your work,
Joël.

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



Graffiti and GWT

2011-09-14 Thread gkkumar
Hi,

I'm new to GWT and I'm building an application that allows you to
create graffiti wall pages.

For example, the wall page will look something similar to: http://www.devour.com
but with two exceptions:
1) thumbnails could correspond to images or videos,
2) the size of thumbnail images are not equal. One image could occupy
half of the screen while the other could take up only 1/10 of the
screen space.
3) there is no border spacing between images and the images should be
draggable like iGoogle home page.

I think I am looking for a GWT grid control that is good for layout
images of varying dimensions. I'd like to know if there any libraries
that will be help achieve do this quickly.

Can you guys suggest some pointers on how go to about it?

thanks,
Kiran

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



Re: GWT 2.4 breaks JDK 5 compile support

2011-09-14 Thread Jeff Larsen
Yea, 1.6 is required now. Good riddance to 1.5!

-- 
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/-/CUxC4EEtzlsJ.
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 and jQuery.width()/bind()

2011-09-14 Thread Darnok
I've developed a jQuery Widget, one of the things it does is appends
html and checks its width.  This works standalone, but as soon as I
use it inside GWT page, the jQuery.width()/innerWidth()/outerWidth()
gets unexpected results, most often 0.  Seems like there's a race
condition between the assignment of actual widths and me calling this
being available to width().  Is there a way to ensure that dynamically
created html is ready for subsequent use?
eg.
// css: .header { padding: 10px; }
$(root).append('div id=h1AAA/div');
var h = $('#h1', root)
h.text();// ok, gets AAA
h.width();  // most often 0
h.outerWidth();  // sometimes 0, sometimes 20 (10+10 of padding)

I also notice similar case in event handling - outside of GWT page
it's ok to bind jQuery hadlers and then trigger them straight after.
Inside GWT, the initial trigger might just be eaten up, eg:
$('.scrollable', root).bind('scroll', function(ui) {
 console.log('scrolled!');
});
$('.scrolable', root).scrollLeft(100);  // might not print scrolled!

This behaviour appears in both GWT Development mode and Compiled mode.

-- 
You received 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 center a DockLayoutPanel in the page

2011-09-14 Thread Sanjay
Hi All,

I want to have my DockLayoutPanel of width 1000px to get centered in
the page in stead of left aligned. Using UiBinder. Tried a lot but not
able to know how to have this. Need some help. Thanks.

- Sanjay

-- 
You received 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: File download by GWT client

2011-09-14 Thread Marcin Olejarczyk
Thank for you answer. I am quite a new in Web technologies.

When you mention about FileSystem, FileWriter for HTML5 do you mean
JavaScript API available to use in web browser?
How have you created your own overlay types for the FileSystem /
FileWriter objects - Did you use JSNI for that?

On 14 Wrz, 16:59, Derek derekad...@gmail.com wrote:
 Modern HTML5 should allow something along those lines, but browser
 support is going to be pretty hit or miss. I haven't tried exactly
 what you describe, but you should check out FileSystem, FileWriter,
 and blob support (http://www.html5rocks.com/en/tutorials/file/
 filesystem/). In Chrome at least, you can create a file in a temporary
 space, write text to it, and expose that as a filesystem: URL for the
 user to click to download.

 None of that is reflected in GWT currently. I created overlay types
 for the few FileSystem / FileWriter objects I needed on the project
 I'm working on, and you could do similarly. Or you could just sling
 some JSNI.

 Hope that helps,
 Derek

 On Sep 14, 8:28 am, Marcin Olejarczyk







 marcin.xx.olejarc...@softhouse.se wrote:
  Hi,

  Is there any possibility to generate *.txt file and give the user the
  opportunity to download this file locally by typical download web
  browser window only by executing GWT client code without any
  involvement on the server side.

  Shortly: Click the button, generate file on open download window only
  by the client side.

  Thx for any help

  /Marcin

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



Remember User name, password in GWT cross borwsers

2011-09-14 Thread Markandayarushi Pamu
Hi,

I want to implement the remember username and password functionality
in my application.

We are using the GWT version 2.2. I have tried to implement but user
name auto complete is only working in the Fiirefox, Chrome and not
working IE. remember the password is not working any browser. Actually
when submit the form it is asking to save the password and it is
stored in the browser but when I select the user name from auto
complete suggested items password is not populating.

My code is

FormPanel formPanel = new FormPanel();
formPanel.setMethod(FormPanel.METHOD_POST);
HTMLPanel verticalPanel = new HTMLPanel();
TextBox textBox = new TextBox();
textBox.setName(username);
verticalPanel.add(textBox);
PasswordTextBox password= new PasswordTextBox();
password.setName(password);
verticalPanel.add(password);
Button btn = new SubmitButton();
btn.setText(Click);
verticalPanel.add(btn);
formPanel.add(verticalPanel);
formPanel.setAction(/);
HTMLPanel htmlPanel = new HTMLPanel();
htmlPanel.add(formPanel);
RootPanel.get().add(formPanel);


Please help me how to implement remember user name and password in
GWT .

Thanks
P.M.Rushi

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



localization/custom text/ message through configuration

2011-09-14 Thread kelly
Hi,

I have a web application that I want to distribute to multiple user
grroups./company.

I want to make the text on my screen fllexible that they can change
the properties file without re-compiling it.

ie companyName = my Company

my client with company name ABC Company can change it like
companyName = ABC company

is that for image, as long as they can replace the image with the same
filename in the war file, they can change it themselves as well?

-- 
You received 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: JAXB + GWT

2011-09-14 Thread Alexandre Dupriez
Hello Kyle,

I faced a close issue before when I had to generate XML from JAXB-
generated beans. If JAXB-generated beans can be used on GWT client
side and converted in Javascript without concern, not are the JAXB
(un)marshallers for those beans. Unfortunately, there is not, as far
as I know, a possible straight translation of these (un)marshallers
into Javascript. GWT does not enable reflection; some frameworks
propose to work around it but I hardly think they can help to
implement an efficient JAXB translation.

Why not make the server do the job and push/pull data through RPC
calls ?

Alexandre.

On 3 sep, 20:21, Kyle Anderson kyleanderso...@gmail.com wrote:
 I have an XML Schema defined in XSD format.  Basically, there are a
 whole lot of objects with attributes associated with them.  The
 attributes have various types (strings, enumerated types, integers).
 The restrictions on these attributes are all defined in the XSD
 format.   I would like to create an editor in GWT which allows the
 user to edit a file in XSD format.  The editor should be able to
 create a form using the XSD.  For example, if there is an enumerated
 type attribute, the editor should create a drop down menu.

 I experimented with JAXB to generate the java bean classes from the
 XSD format.  The problem with this is that you cannot do reflection in
 GWT, so there's no great way to view the attributes of the class in
 order to create the editor window.

 I imagine people have done similar things before.

 Thanks!!
 Kyle

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



Re: GWT 2.4 Spring Integration Using RequestFactory

2011-09-14 Thread POODevelopper
You are right, It was because on the build Lib Folder there was GWT
2.3 and 2.4 libraries, I just removed the 2.3 and everything worked.
Thank You.

On Sep 14, 12:29 pm, Kevin Jordan ke...@kjordan.net wrote:
 From that, it sounds like you may have a 2.3.0 version of
 RequestFactory on there too if you are indeed trying to use 2.4.0.
 The line in question in the top of the stack trace makes no sense for
 the 2.4.0 source, but in the 2.3.0 source it does:
 Method contextMethod = service.resolveRequestContextMethod(
             operation[0], operation[1]);

 which in 2.4.0 became:
 Method contextMethod = service.resolveRequestContextMethod(operation);

 On Sep 14, 2:50 am, POODevelopper imra...@gmail.com wrote:







  I'm currently Working on a GWT 2.4 / Spring 3 application and want to
  use the RequestFactory API to communicate with Spring services.

  I searched and find that to integrate GWT integrate with Spring
  beginning from 2.4 you just need to create a custom ServiceLocator
  that expose your Spring beans.

  public class SpringServiceLocator implements ServiceLocator {

  public Object getInstance(Class? clazz) {
      ApplicationContext context =
  WebApplicationContextUtils.getWebApplicationContext(
              RequestFactoryServlet.getThreadLocalServletContext());
      return context.getBean(clazz);

  }
  }

  And you need to configure you RequestFactoryServlet as mentioned on
  the Google documentation.

  I followed theses steps but my when GWT client make a Request to the
  Back-end i receive this Exception :

    Sep 13, 2011 7:42:34 AM
  com.google.web.bindery.requestfactory.server.RequestFactoryServlet
  doPost
  SEVERE: Unexpected error
  java.lang.ArrayIndexOutOfBoundsException: 1
      at
  com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process 
  InvocationMessages(SimpleRequestProcessor.java:
  425)
      at
  com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process 
  (SimpleRequestProcessor.java:
  217)
      at
  com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process 
  (SimpleRequestProcessor.java:
  125)
      at
  com.google.web.bindery.requestfactory.server.RequestFactoryServlet.doPost(R 
  equestFactoryServlet.java:
  118)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      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)
  [ERROR] 500 - POST /gwtRequest (127.0.0.1) 1420 bytes

  Did I miss something on the configuration ??

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



ie8 problem with gwt 2.4?

2011-09-14 Thread macagain
Is anyone else have a problem with IE8 on GWT2.4?

I'm running in standards mode !doctype html

exactly the same code worked fine on GWT2.3... with that F12 dev tools 
showed:
Browser Mode: IE8
Doc Mode: IE8 Standards

but on GWT2.4, the page errors in the generated js, doesn't load, and F12 
dev tools shows:
Browser Mode: IE8 Compatibility Mode
Doc Mode: IE7 Standards

and yes:
- user-agent properties the same in both (in fact using whatever is in 
UserAgent.gwt.xml
- i clean'd
- everything works fine in ie9

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



JavaScript GWT

2011-09-14 Thread Diego Piedrahita
I have a JavaScript file and want to include GWT, someone has idea?.
The JavaScript I want to apply for a textArea to format the text
entered into the.
Thank you.

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



Re: GWT 2.4 breaks JDK 5 compile support

2011-09-14 Thread Eric Clayberg (Google)
Support for JDK 1.5 was indeed deprecated when GWT 2.2 was released. 
According to the release 
noteshttp://code.google.com/webtoolkit/doc/2.2/ReleaseNotes.html#Java15
...

Version 2.2 will have only deprecated support for Java 1.5, resulting in 
warnings when building applications. While Java 1.5 will still work for at 
least the next release of GWT, developers should upgrade their version of 
Java to correct these warnings and ensure compatibility with future versions 
of GWT.


While we indicated that JDK 1.5 would work for at least the next release 
(e.g., GWT 2.3), there was no implied promise that JDK 1.5 would work in GWT 
2.4 and beyond. The simple fact is that supporting JDK 1.5 was a significant 
burden and was holding us back. JDK 1.5 was originally released seven years 
agohttp://en.wikipedia.org/wiki/Java_version_history#J2SE_5.0_.28September_30.2C_2004.29,
 
and entered end-of-life more than three years ago. For GWT 2.4 (and beyond) 
we were not focused on JDK 1.5 compatibility at all so various 
incompatibilities (big and small) started to enter the product and will no 
doubt accelerate in the future (for example, APT support actually requires 
JDK 1.6). While you might be able to temporarily hack JDK 1.5 support back 
into parts of GWT, it would only be temporary and equivalent to sticking 
your finger in the dike. Sorry.

-- 
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/-/xbxX5Hf8ozUJ.
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 center a DockLayoutPanel in the page

2011-09-14 Thread Ashwin Desikan
Add additional CSS styling to the panel 

.center {
  Margin-left : auto;
  Margin-right : auto;
}

.width {
 Width: 1000px;
}

DockLayoutPanel addStyleNames={style.center} {style.width }
/DockLayoutPanel


Thanks
Ashwin
Sent from my iPhone

On Sep 14, 2011, at 11:11 PM, Sanjay skpate...@gmail.com wrote:

 Hi All,
 
 I want to have my DockLayoutPanel of width 1000px to get centered in
 the page in stead of left aligned. Using UiBinder. Tried a lot but not
 able to know how to have this. Need some help. Thanks.
 
 - Sanjay
 
 -- 
 You received 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.



Ordering guarantees for RequestFactory.append()

2011-09-14 Thread Craig Day
Are there any ordering guarantees for the sequence of callbacks a 
RequestFactory delivers when multiple RequestContexts are appended? It 
appears to me that the order of callbacks does actually match the order of 
the append() calls. If that's guaranteed by the API then it would be great 
for this to be in the javadoc for the append() call.

Cheers
Craig

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



Remember username password in GWT

2011-09-14 Thread Markandayarushi Pamu
Hi,

I want to implement the remember username and password functionality
in my application.

We are using the GWT version 2.2. I have tried to implement but user
name auto complete is only working in the Fiirefox, Chrome and not
working IE. remember the password is not working any browser. Actually
when submit the form it is asking to save the password and it is
stored in the browser but when I select the user name from auto
complete suggested items password is not populating.

My code is

   FormPanel formPanel = new FormPanel();
   formPanel.setMethod(FormPanel.METHOD_POST);
   HTMLPanel verticalPanel = new HTMLPanel();
   TextBox textBox = new TextBox();
   textBox.setName(username);
   verticalPanel.add(textBox);
   PasswordTextBox password= new PasswordTextBox();
   password.setName(password);
   verticalPanel.add(password);
   Button btn = new SubmitButton();
   btn.setText(Click);
   verticalPanel.add(btn);
   formPanel.add(verticalPanel);
   formPanel.setAction(/);
   HTMLPanel htmlPanel = new HTMLPanel();
   htmlPanel.add(formPanel);
   RootPanel.get().add(formPanel);


Please help me how to implement remember user name and password in
GWT .

Thanks
P.M.Rushi

-- 
You received 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: JAXB + GWT

2011-09-14 Thread Sanjiv Jivan
If you're okay with using Smart GWT, it has inbuilt support for this. Have a
look at this sample :

http://www.smartclient.com/smartgwt/showcase/#featured_xsd_ds

Sanjiv

On Sat, Sep 3, 2011 at 2:21 PM, Kyle Anderson kyleanderso...@gmail.comwrote:

 I have an XML Schema defined in XSD format.  Basically, there are a
 whole lot of objects with attributes associated with them.  The
 attributes have various types (strings, enumerated types, integers).
 The restrictions on these attributes are all defined in the XSD
 format.   I would like to create an editor in GWT which allows the
 user to edit a file in XSD format.  The editor should be able to
 create a form using the XSD.  For example, if there is an enumerated
 type attribute, the editor should create a drop down menu.

 I experimented with JAXB to generate the java bean classes from the
 XSD format.  The problem with this is that you cannot do reflection in
 GWT, so there's no great way to view the attributes of the class in
 order to create the editor window.

 I imagine people have done similar things before.

 Thanks!!
 Kyle

 --
 You received 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: How to center a DockLayoutPanel in the page

2011-09-14 Thread Sanjay
Exactly what I wanted. Thanks a lot!

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



Re: GWT 2.4 breaks JDK 5 compile support

2011-09-14 Thread Lars Ködderitzsch
Thanks for the clarification, I sure do understand all of that - even
though it's also a fact that in corporate wonderland Java 5 is still
the rage (and building with a higher JDK as the target runtime also
has its intricacies).

Yet, a more formal announcement would have been nice and the docs
should be updated to state the new 1.6 requirement prominently.
In fact (parts of) the documentation (e.g.
http://code.google.com/intl/de/webtoolkit/gettingstarted.html) still
mention only Java 5 SKD as requirement.

I suppose this question will continue to come up, as GWT 2.4 adoption
increases - but at least I am clear now :-)

Thanks,
Lars

PS: you may close the mentioned tracker issue (http://code.google.com/
p/google-web-toolkit/issues/detail?id=6790 ) as you see fit.

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



Plug-in for Eclipse 3.7 (Indigo)

2011-09-14 Thread MarcoGT
Hi all,

I am trying to install Google Plug-in for Eclipse but I get this
error:

Unable to read repository at
http://dl.google.com/eclipse/plugin/3.7/plugins/com.google.gwt.eclipse.core_2.4.0.r37v201108301710.jar

Does someone have the same problem?

Thanks
Marco

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



[gwt-contrib] Re: Update the checkstule path for validation sample (issue1547803)

2011-09-14 Thread Ray Ryan
LGTM

Oops. Thanks Nick. I'll need to remember to put this on the 2.4 branch.
On Sep 13, 2011 7:27 PM, ncha...@google.com wrote:
 Reviewers: rjrjr,

 Description:
 Update the checkstule path for validation sample
 Fix the @NotSupported count


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

 Affected files:
 M samples/common.ant.xml
 M user/build.xml


 Index: samples/common.ant.xml
 ===
 --- samples/common.ant.xml (revision 8405)
 +++ samples/common.ant.xml (working copy)
 @@ -189,8 +189,8 @@
 target name=checkstyle description=Static analysis of source
 gwt.checkstyle outputdirectory=${sample.build}
 fileset dir=src 
 - exclude name=org/**/super/org/**/*.java/
 - exclude
 name=com/google/gwt/sample/validation*/**/ValidationMessages.java /
 + exclude name=main/java/org/**/super/org/**/*.java/
 + exclude

name=main/java/com/google/gwt/sample/validation*/**/ValidationMessages.java

 /
 /fileset
 /gwt.checkstyle
 /target
 Index: user/build.xml
 ===
 --- user/build.xml (revision 8405)
 +++ user/build.xml (working copy)
 @@ -803,13 +803,14 @@
 countfilter match=@Failing property=jsr303.marked.Failing
 init=0/
 countfilter match=@NonTckTest
 property=jsr303.marked.NonTckTest init=0/
 countfilter match=@NotSupported
 property=jsr303.marked.NotSupported init=0/
 - countfilter match=@TestNotCompatible
 property=jsr303.marked.NotSupported init=0/
 + countfilter match=@TestNotCompatible
 property=jsr303.marked.TestNotCompatible init=0/
 /filterchain
 /scan

 !-- force to zero if not set above --
 property name=jsr303.marked.Failing value=0/
 property name=jsr303.marked.NonTckTest value=0/
 + property name=jsr303.marked.NotSupported value=0/
 property name=jsr303.marked.TestNotCompatible value=0/

 echo message=Marked Failing = ${jsr303.marked.Failing} /



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

[gwt-contrib] [google-web-toolkit] r10646 committed - Update the checkstule path for validation sample...

2011-09-14 Thread codesite-noreply

Revision: 10646
Author:   gwt.mirror...@gmail.com
Date: Wed Sep 14 06:33:50 2011
Log:  Update the checkstule path for validation sample
Fix the @NotSupported count

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

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

Modified:
 /trunk/samples/common.ant.xml
 /trunk/user/build.xml

===
--- /trunk/samples/common.ant.xml   Wed Jun  1 11:14:07 2011
+++ /trunk/samples/common.ant.xml   Wed Sep 14 06:33:50 2011
@@ -189,8 +189,8 @@
   target name=checkstyle description=Static analysis of source
 gwt.checkstyle outputdirectory=${sample.build}
   fileset dir=src 
-exclude name=org/**/super/org/**/*.java/
-exclude  
name=com/google/gwt/sample/validation*/**/ValidationMessages.java /

+exclude name=main/java/org/**/super/org/**/*.java/
+exclude  
name=main/java/com/google/gwt/sample/validation*/**/ValidationMessages.java  
/

   /fileset
 /gwt.checkstyle
   /target
===
--- /trunk/user/build.xml   Fri Jul  1 09:12:59 2011
+++ /trunk/user/build.xml   Wed Sep 14 06:33:50 2011
@@ -803,13 +803,14 @@
   countfilter match=@Failing  property=jsr303.marked.Failing  
init=0/
   countfilter match=@NonTckTest   
property=jsr303.marked.NonTckTest init=0/
   countfilter match=@NotSupported   
property=jsr303.marked.NotSupported init=0/
-  countfilter match=@TestNotCompatible   
property=jsr303.marked.NotSupported init=0/
+  countfilter match=@TestNotCompatible   
property=jsr303.marked.TestNotCompatible init=0/

 /filterchain
   /scan

   !-- force to zero if not set above --
   property name=jsr303.marked.Failing value=0/
   property name=jsr303.marked.NonTckTest value=0/
+  property name=jsr303.marked.NotSupported value=0/
   property name=jsr303.marked.TestNotCompatible value=0/

   echo message=Marked Failing = ${jsr303.marked.Failing} /

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


[gwt-contrib] Re: Serialization of Final Fields in RPC (issue1380807)

2011-09-14 Thread zhuyi

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

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


[gwt-contrib] Introduces BrowserEvents string constants (issue1550803)

2011-09-14 Thread rjrjr

Reviewers: jlabanca,

Description:
Introduces BrowserEvents string constants


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

Affected files:
  M user/src/com/google/gwt/cell/client/AbstractCell.java
  M user/src/com/google/gwt/cell/client/AbstractInputCell.java
  M user/src/com/google/gwt/cell/client/ActionCell.java
  M user/src/com/google/gwt/cell/client/ButtonCell.java
  M user/src/com/google/gwt/cell/client/ButtonCellBase.java
  M user/src/com/google/gwt/cell/client/Cell.java
  M user/src/com/google/gwt/cell/client/CheckboxCell.java
  M user/src/com/google/gwt/cell/client/ClickableTextCell.java
  M user/src/com/google/gwt/cell/client/DatePickerCell.java
  M user/src/com/google/gwt/cell/client/EditTextCell.java
  M user/src/com/google/gwt/cell/client/ImageLoadingCell.java
  M user/src/com/google/gwt/cell/client/SelectionCell.java
  M user/src/com/google/gwt/cell/client/TextInputCell.java
  A user/src/com/google/gwt/dom/client/BrowserEvents.java
  M user/src/com/google/gwt/dom/client/Document.java
  M user/src/com/google/gwt/event/dom/client/BlurEvent.java
  M user/src/com/google/gwt/event/dom/client/CanPlayThroughEvent.java
  M user/src/com/google/gwt/event/dom/client/ChangeEvent.java
  M user/src/com/google/gwt/event/dom/client/ClickEvent.java
  M user/src/com/google/gwt/event/dom/client/ContextMenuEvent.java
  M user/src/com/google/gwt/event/dom/client/DoubleClickEvent.java
  M user/src/com/google/gwt/event/dom/client/DragEndEvent.java
  M user/src/com/google/gwt/event/dom/client/DragEnterEvent.java
  M user/src/com/google/gwt/event/dom/client/DragEvent.java
  M user/src/com/google/gwt/event/dom/client/DragLeaveEvent.java
  M user/src/com/google/gwt/event/dom/client/DragOverEvent.java
  M user/src/com/google/gwt/event/dom/client/DragStartEvent.java
  M user/src/com/google/gwt/event/dom/client/DropEvent.java
  M user/src/com/google/gwt/event/dom/client/EndedEvent.java
  M user/src/com/google/gwt/event/dom/client/ErrorEvent.java
  M user/src/com/google/gwt/event/dom/client/FocusEvent.java
  M user/src/com/google/gwt/event/dom/client/GestureChangeEvent.java
  M user/src/com/google/gwt/event/dom/client/GestureEndEvent.java
  M user/src/com/google/gwt/event/dom/client/GestureStartEvent.java
  M user/src/com/google/gwt/event/dom/client/KeyDownEvent.java
  M user/src/com/google/gwt/event/dom/client/KeyPressEvent.java
  M user/src/com/google/gwt/event/dom/client/KeyUpEvent.java
  M user/src/com/google/gwt/event/dom/client/LoadEvent.java
  M user/src/com/google/gwt/event/dom/client/LoseCaptureEvent.java
  M user/src/com/google/gwt/event/dom/client/MouseDownEvent.java
  M user/src/com/google/gwt/event/dom/client/MouseMoveEvent.java
  M user/src/com/google/gwt/event/dom/client/MouseOutEvent.java
  M user/src/com/google/gwt/event/dom/client/MouseOverEvent.java
  M user/src/com/google/gwt/event/dom/client/MouseUpEvent.java
  M user/src/com/google/gwt/event/dom/client/MouseWheelEvent.java
  M user/src/com/google/gwt/event/dom/client/ProgressEvent.java
  M user/src/com/google/gwt/event/dom/client/ScrollEvent.java
  M user/src/com/google/gwt/event/dom/client/TouchCancelEvent.java
  M user/src/com/google/gwt/event/dom/client/TouchEndEvent.java
  M user/src/com/google/gwt/event/dom/client/TouchMoveEvent.java
  M user/src/com/google/gwt/event/dom/client/TouchStartEvent.java
  M user/src/com/google/gwt/user/cellview/client/AbstractCellTable.java
  M user/src/com/google/gwt/user/cellview/client/AbstractHasData.java
  M  
user/src/com/google/gwt/user/cellview/client/CellBasedWidgetImplStandard.java
  M  
user/src/com/google/gwt/user/cellview/client/CellBasedWidgetImplTrident.java

  M user/src/com/google/gwt/user/cellview/client/CellBrowser.java
  M user/src/com/google/gwt/user/cellview/client/CellList.java
  M user/src/com/google/gwt/user/cellview/client/CellTable.java
  M user/src/com/google/gwt/user/cellview/client/CellTree.java
  M user/src/com/google/gwt/user/cellview/client/CellTreeNodeView.java
  M user/src/com/google/gwt/user/client/impl/DOMImplIE9.java
  M user/src/com/google/gwt/user/client/impl/DOMImplStandard.java
  M user/src/com/google/gwt/user/client/ui/Image.java
  M user/src/com/google/gwt/view/client/DefaultSelectionEventManager.java


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


[gwt-contrib] Re: Serialization of Final Fields in RPC (issue1380807)

2011-09-14 Thread zhuyi

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

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


[gwt-contrib] Re: Serialization of Final Fields in RPC (issue1380807)

2011-09-14 Thread zhuyi

Ray, John and others:

I and Stephen have been working on this for a while to make the option
of serializing final fields in RPC be a non-static variable to eliminate
flakiness, and pass this option to server side by serialization policy
file. Please let us know if the change is in good shape and ready for
submission.

Thanks.

Yi

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

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


[gwt-contrib] Fixes fake even dispatch in UiRendererEventsTest for IE8 and less (issue1550804)

2011-09-14 Thread rchandia

Reviewers: rjrjr,

Description:
Fixes fake even dispatch in UiRendererEventsTest for IE8 and less


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

Affected files:
  M user/test/com/google/gwt/uibinder/test/client/UiRendererEventsTest.java


Index:  
user/test/com/google/gwt/uibinder/test/client/UiRendererEventsTest.java

===
--- user/test/com/google/gwt/uibinder/test/client/UiRendererEventsTest.java	 
(revision 10639)
+++ user/test/com/google/gwt/uibinder/test/client/UiRendererEventsTest.java	 
(working copy)

@@ -319,6 +319,9 @@
 var event = {};

 event.target = target;
+// For IE  9
+event.srcElement = target;
+
 event.type = type;
 return event;
   }-*/;


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


[gwt-contrib] Re: Changed the interface used to send metrics to a dashboard application. The (issue1499811)

2011-09-14 Thread tobyr

On 2011/09/14 18:58:04, jhumphries wrote:

LGTM again

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

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


[gwt-contrib] Re: Changed the interface used to send metrics to a dashboard application. The (issue1499811)

2011-09-14 Thread tobyr

On 2011/09/14 18:58:04, jhumphries wrote:

LGTM again

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

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


[gwt-contrib] Re: Changed the interface used to send metrics to a dashboard application. The (issue1499811)

2011-09-14 Thread skybrian

Seems reasonable, except that I lack context and don't know what you're
actually trying to do. Is there a design doc somewhere?


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

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


[gwt-contrib] Re: Fixes fake even dispatch in UiRendererEventsTest for IE8 and less (issue1550804)

2011-09-14 Thread rjrjr

LGTM

Sweet. Thanks for the fix.

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

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


[gwt-contrib] [google-web-toolkit] r10647 committed - Edited wiki page RequestFactoryInterfaceValidation through web user in...

2011-09-14 Thread codesite-noreply

Revision: 10647
Author:   rj...@google.com
Date: Wed Sep 14 14:31:53 2011
Log:  Edited wiki page RequestFactoryInterfaceValidation through web  
user interface.

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

Modified:
 /wiki/RequestFactoryInterfaceValidation.wiki

===
--- /wiki/RequestFactoryInterfaceValidation.wikiThu Sep  1 15:15:48 2011
+++ /wiki/RequestFactoryInterfaceValidation.wikiWed Sep 14 14:31:53 2011
@@ -26,7 +26,7 @@
 == IDE configuration ==

 === Eclipse ===
-Open the project properties dialog and navigate to `Java Compiler -  
Annotation Processing`.  Ensure that annotation processing is enabled.
+Open the project properties dialog and navigate to `Java Compiler -  
Annotation Processing`.  Ensure that annotation processing is enabled -- by  
default it is not.


 img src=http://i.imgur.com/7upSN.png; /

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


[gwt-contrib] [google-web-toolkit] r10648 committed - Fixes fake even dispatch in UiRendererEventsTest for IE8 and less...

2011-09-14 Thread codesite-noreply

Revision: 10648
Author:   rchan...@google.com
Date: Wed Sep 14 11:48:51 2011
Log:  Fixes fake even dispatch in UiRendererEventsTest for IE8 and less

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

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

Modified:
  
/trunk/user/test/com/google/gwt/uibinder/test/client/UiRendererEventsTest.java


===
---  
/trunk/user/test/com/google/gwt/uibinder/test/client/UiRendererEventsTest.java	 
Wed Sep  7 09:32:44 2011
+++  
/trunk/user/test/com/google/gwt/uibinder/test/client/UiRendererEventsTest.java	 
Wed Sep 14 11:48:51 2011

@@ -319,6 +319,9 @@
 var event = {};

 event.target = target;
+// For IE  9
+event.srcElement = target;
+
 event.type = type;
 return event;
   }-*/;

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


[gwt-contrib] Do RF validation via APT instead of command line. (issue1547804)

2011-09-14 Thread rjrjr

Reviewers: drfibonacci,

Description:
Do RF validation via APT instead of command line.


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

Affected files:
  M samples/dynatablerf/pom.xml


Index: samples/dynatablerf/pom.xml
===
--- samples/dynatablerf/pom.xml (revision 10645)
+++ samples/dynatablerf/pom.xml (working copy)
@@ -30,7 +30,7 @@
   !-- Could use requestfactory-server instead --
   artifactIdgwt-servlet/artifactId
   version${gwtVersion}/version
-  scoperuntime/scope
+!--  scoperuntime/scope --
 /dependency
 dependency
   groupIdcom.google.gwt/groupId
@@ -98,6 +98,7 @@
  
outputDirectory${project.build.directory}/${project.build.finalName}/WEB-INF/classes/outputDirectory


 plugins
+
   !-- GWT Maven Plugin--
   plugin
 groupIdorg.codehaus.mojo/groupId
@@ -144,32 +145,6 @@
 /configuration
   /plugin

-  !-- 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.dynatablerf.shared.DynaTableRequestFactory/argument

-  /arguments
-/configuration
-goals
-  goalexec/goal
-/goals
-  /execution
-/executions
-  /plugin
-
   !-- Copy static web files before executing gwt:run --
   plugin
 artifactIdmaven-resources-plugin/artifactId
@@ -208,6 +183,30 @@
  
projectnaturecom.google.gwt.eclipse.core.gwtNature/projectnature

   /additionalProjectnatures
 /configuration
+  /plugin
+
+  !-- Run the RequestFactory validator annotation processor --
+  plugin
+groupIdorg.bsc.maven/groupId
+artifactIdmaven-processor-plugin/artifactId
+version2.0.5/version
+executions
+  execution
+idprocess/id
+goals
+  goalprocess/goal
+/goals
+phasegenerate-sources/phase
+configuration
+  !-- TODO(rjrjr) Can this explicit processor line go away if  
we depend
+   on requestfactory-apt directly? Is that jar in maven  
central?

+--
+  processors
+ 
processorcom.google.web.bindery.requestfactory.apt.RfValidator/processor

+  /processors
+/configuration
+  /execution
+/executions
   /plugin
 /plugins

@@ -234,6 +233,19 @@
 execute /
   /action
 /pluginExecution
+pluginExecution
+  pluginExecutionFilter
+groupIdorg.bsc.maven/groupId
+artifactIdmaven-processor-plugin/artifactId
+versionRange[2.0.5,)/versionRange
+goals
+  goalprocess/goal
+/goals
+  /pluginExecutionFilter
+  action
+execute /
+  /action
+/pluginExecution
   /pluginExecutions
 /lifecycleMappingMetadata
   /configuration


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


[gwt-contrib] Re: Do RF validation via APT instead of command line. (issue1547804)

2011-09-14 Thread rjrjr

Rajeev, this changes the DynaTableRf sample to use APT for rf validation
instead of the command line tool.

* mvn gwt:run works just fine at the command line
* it imports into indigo (required the lifecycle mapping brain damage)
* m2e can launch it as a maven goal
* gpe run as web app works iff I manually turn on eclipse's apt, per
http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterfaceValidation



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

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


[gwt-contrib] Re: Do RF validation via APT instead of command line. (issue1547804)

2011-09-14 Thread rjrjr

More: if this solves whatever problem it is you're trying to solve,
we'll need to make the same change to mobilewebapp, and update the
pom.xml recipe on that wiki page.

@drfibonacci, notice that I had to make make gwt-servlet into a real
dependency instead of just a runtime one. Is that okay? Also, I tried
making dependencies on just requestfactory-servlet, or
requestfactory-apt, but those artifacts don't appear to be in maven
central. Should they be?

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

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


[gwt-contrib] Re: Introduces BrowserEvents string constants (issue1550803)

2011-09-14 Thread rjrjr

RayC, John is on vacation. Can you review? Please keep a good eye out
for typos.

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

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


[gwt-contrib] Re: Fixes fake even dispatch in UiRendererEventsTest for IE8 and less (issue1550804)

2011-09-14 Thread rchandia

On 2011/09/14 21:19:55, rjrjr wrote:

LGTM



Sweet. Thanks for the fix.


You are welcome. Submitted as r10648.

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

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