How to add style to Hyperlink in UiBinder?

2011-10-03 Thread powwow
I've looked and looked but I can't figure it out.

I am doing this:

g:Hyperlink ui:field='linkName' width='500px'
styleName='{res.style.lgLink}'/


In my css I am doing this:

.lgLink{
font:bold 20px arial, sans-serif;
color:#55;
cursor:pointer;
cursor:hand;
}

In my ClientBundle I have this:

public interface Style extends CssResource {
String lgLink();
}

But it doesn't work with I use UiBinder.  How do I get the link to
change color?  On visited?  hover? etc?

I tried this but it doesn't work either:

.lgLink:visited{
font:bold 20px arial, sans-serif;
color:#55;
cursor:pointer;
cursor:hand;
}

I also tried:

gwt-Hyperlink.lgLink:visited{
font:bold 20px arial, sans-serif;
color:#55;
cursor:pointer;
cursor:hand;
}

But the ClientBundle doesn't link that.  Any ideas?  Thanks.

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



Re: How to add style to Hyperlink in UiBinder?

2011-10-03 Thread Konstantin Zolotarev
have you added your client bundle to UiBinder ? 

ui:with field='res' type='com.my.app.widgets.logoname.Resources'/

-- 
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/-/9zdlgoFoot8J.
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.



Expose Component in UiBinder

2011-10-03 Thread Marcin Olejarczyk
Hi,

I created Custome Composite in UiBinder by GWT Designer (as described
in 
http://code.google.com/intl/pl/javadevtools/wbpro/wizards/gwt/uibinder_composite.html),
but I don't see 'Expose widget...' command avaiable in conext menu of
any widget (as described 
http://code.google.com/intl/pl/javadevtools/wbpro/features/custom_composites.html).
Is it possible to expose component in Custom Composites created by
UiBinder??

When I create the same custome composite by GWT Designer without use
UiBinder (but in Java code) this menu is always avaiable.

/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 2 Servlet

2011-10-03 Thread Sudhakar Abraham
Build the RequestBuilder object in Client side. Implement the
RequestCallback interface in client side code, override the
onResponseReceived(), onError() method. Call the send() method in
RequestBuilder class, requestBuilder object call the service method in
servlet. Try the below code to talk to servlet.

//client side code

public class RequestBuilderTest implements RequestCallback
{
private RequestBuilder rb;
public RequestBuilderTest()
{
rb = new 
RequestBuilder(RequestBuilder.POST,Your_servlet_name);
rb.setCallback(this);
Button send = new Button(Mail);
   send.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
try
{
rb.send();
}
catch(RequestException e)
{

}

}
  });
RootLayoutPanel.get().add(send);
}

@Override
public void onError(Request request, Throwable exception)
{
Window.alert(Error received from servlet);
}
@Override
public void onResponseReceived(Request request, Response response)
{
Window.alert(Response received from servlet);
}

}

//server side code

public class TestServlet extends HttpServlet
 {
   private static final long serialVersionUID = 1L;
   public void doPost(HttpServletRequest req, HttpServletResponse
resp)
   {
 try
{
   int port =req.getRemotePort();
   System.out.println(port :+port);
}
 catch (AddressException e1)
{
  e1.printStackTrace();
}
}


// To edit web.xml in War directory

?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
   !-- Servlets --
 servlet
 servlet-nameSampleServlet/servlet-name
 servlet-classcom.tan.server.TestServlet/servlet-class
/servlet
servlet-mapping
 servlet-nameSampleServlet/servlet-name
 url-pattern/Your_servlet_name/url-pattern
/servlet-mapping
  !-- Default page to serve --
 welcome-file-list
welcome-fileSampleGAE.html/welcome-file
 /welcome-file-list
/web-app

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

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



Re: How to use external Java beans on client

2011-10-03 Thread David
Hi Karim!

Thanks for your reply! My problem isn't to get the external classes
into Eclipse or at compile time. My problem is to use the external
classes at the web browser client side at runtime. The link from my
first post says GWT need to have access to the source files to
compile them into Javascript code. which I think is correct. My
problem still is unsolved.


On Sep 28, 10:17 pm, karim duran karim.du...@gmail.com wrote:
 Hi David,

 1) If you have the javadoc of the library where the javabean Class is, you
 don't need the source at all.

 2) Simply put the *.jar in /WEB-INF/lib of your web application. GWT don't
 prevent you to use normal java library in your project. As soon as is done,
 your javabean is in the CLASSPATH of your application. You can use it.

 3) If you use Eclipse as IDE, simply right-clic on the project - propertie
 - build path - add external jar. And it's done

 4) If you have the source, but don't have the javadoc, unzip the source jar
 in a folder. Then repeat the step 3), clic on the jar you just added -
 javadoc location - browse to the folder where you unzip the source. And
 it's done.

 I hope it helps.

 Regards.

 Karim Duran

 2011/9/28 David comp...@gmail.com







  I need to use Java beans (classes with getters and setters) from an
  external jar-file (like Xyz-1.2.3.jar) on the browser client. These
  beans implements java.io.Serializable and the Java source is available
  in a separate Xyz-1.2.3-sources.jar. How could this be done?

  I foundhttp://www.vogella.de/articles/GWTModules/article.htmlbut
  still can't get it to work.

  Any help appreciated, thanks!

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

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



Re: How to use Editors With a Service Oriented BackEnd

2011-10-03 Thread Mrabti Idriss
Im using the SimpleBean editor and on the add action I call 'driver.flush()'
then check if there is errors and finally I mad a request to add the object.
If the object is successfully added I initialize my object and call
'driver.edit()' again, I don't know why I receive the 'Bean has been frozen'
??

Am I doing some thing wrong ??
On Oct 2, 2011 11:32 PM, Thomas Broyer t.bro...@gmail.com wrote:
 The main difference between SimpleBeanEditorDriver and
RequestFactoryEditorDriver is that the later calls RequestContext#edit() on
each object. The others are HasRequestContext and getPaths.

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


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



Re: RequestFactory and JSR 303 validator behavior customization

2011-10-03 Thread ungarida
As I wrote here 
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/a9d5444eae6e0af0/
  
it was quite clear to me that onFaillure is for the communication channel 
exception and I may use onSuccess callback.

I was not able to build a wrapper object with entity proxy and error message 
so do you suggest a custom ExceptionHandler with custom Exceptions with nice 
error messages?

-- 
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/-/BSt-v68mp7IJ.
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: Any decent java.util.Calendar, Locale, TimeZone emulation?

2011-10-03 Thread Paul Robinson

There's a partial Calendar emulation in the source code here:
http://code.google.com/p/ftr-gwt-library/

It doesn't have locale and timezone stuff though.

HTH
Paul

On 30/09/11 22:31, David Given wrote:

Does anyone know of any decent libraries to emulate the above classes?
So far I've found this:

http://code.google.com/p/gwt-calendar-class/

...but it doesn't appear to be quite complete and I'm having trouble
making it work. Anyone know of anything else?

(This is to make existing code work, so switching to a different date
library won't help, I'm afraid.)



--
You received 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: Need good structure for page with login (2 views per presenter!?)

2011-10-03 Thread benneq
Hey thanks :)

Maybe that's a pretty good solution. Even if the admin-mode was in
another file I couldn't really stop 'attackers' from loading it. I
think that it's always possible to see the admin interface if you want
to (remember: you can open JS code in browser and live-modify it). I
don't think it's important to hide the UI, do you?
It's much much much more important that the guy who modifies it can't
modify the data on the server :)

For my page there will be just 1 button more per widget (- leads to
edit/delete mode). Sure I could load the edit/delete mode right after
someone locks in, but is it worth it for maybe 5kb?

Anyways thank you. I'll try you approach soon

On 3 Okt., 04:36, Aidan O'Kelly aida...@gmail.com wrote:
 On Sun, Oct 2, 2011 at 3:06 PM, benneq benjamin_ma...@lavabit.com wrote:

  A working solution would be:
  have a single presenter and a single view. And the presenter tells the
  display using a boolean which UI to display. But I expect it to
  produce very ugly code. Everywhere:
  # if(loggedIn == true)
  #    show this;
  #
  # show UI for both;

 If you don't mind having the admin widgets/elements exist in all pages, but
 be hidden then this, pretty much.

 In your view:
 showAdminUi(boolean isAdmin) {
    adminButtonA.setVisible(isAdmin);
    adminTextBoxB.setVisible(isAdmin);
    adminButtonY.setVisible(isAdmin);

 }

 Call it from your presenter. And hide the widgets by default (just call
 showAdminUi(false) in your views constructor)
 You could further improve this method using CSS and/or searching for the
 widgets/elements to be toggled. You can also group things inside Panel's and
 just hide/show them.

 There are certainly other approaches, but no need to overcomplicate it for a
 handful of widgets on each 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 add style to Hyperlink in UiBinder?

2011-10-03 Thread Sudhakar Abraham
Use the inline style sheet  ui:style/ui:style tag  in your ui.xml
file.  Edit the property in your uibinder.  In HyperLink class, set
the styleName property. Try the code below.

//ui.xml file

?xml version=1.0 encoding=UTF-8?
ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'
ui:style
   .lgLink
   {
color:green;
   }
   .lgLink:visited
   {
font:bold 20px arial, sans-serif;
color:#55;
cursor:pointer;
cursor:hand;
   }
  .lgLink:hover
  {
   font:bold 20px arial, sans-serif;
   color:red;
   cursor:pointer;
   cursor:hand;
  }
  /ui:style
 g:Hyperlink ui:field='linkName' width='500px'
styleName='{style.lgLink}'/
/UiBinder

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


On Oct 3, 11:14 am, powwow jimmy.w...@gmail.com wrote:
 I've looked and looked but I can't figure it out.

 I am doing this:

 g:Hyperlink ui:field='linkName' width='500px'
 styleName='{res.style.lgLink}'/

 In my css I am doing this:

 .lgLink{
         font:bold 20px arial, sans-serif;
         color:#55;
         cursor:pointer;
         cursor:hand;

 }

 In my ClientBundle I have this:

 public interface Style extends CssResource {
                 String lgLink();

 }

 But it doesn't work with I use UiBinder.  How do I get the link to
 change color?  On visited?  hover? etc?

 I tried this but it doesn't work either:

 .lgLink:visited{
         font:bold 20px arial, sans-serif;
         color:#55;
         cursor:pointer;
         cursor:hand;

 }

 I also tried:

 gwt-Hyperlink.lgLink:visited{
         font:bold 20px arial, sans-serif;
         color:#55;
         cursor:pointer;
         cursor:hand;

 }

 But the ClientBundle doesn't link that.  Any ideas?  Thanks.

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



Adding a context menu to DataGrid

2011-10-03 Thread Karan Nih
Can some one please tell me how to add a context menu to a DataGrid in
GWT
I am using GWT 2.4

Thanks

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



Simple GWT sample code from Eclipse does NOT run in Chrome!

2011-10-03 Thread Danux
After wondering why my little app wouldn't display properly in my
Chrome browser once compiled, but work fine in Firefox, I decided to
create an empty new Web Application Project in Eclipse and let it ONLY
generate the initial sample code, nothing else. After compiling that
unaltered code (obfuscated or pretty), it WILL run properly in Firefox
7.0 and IE 6.0, but NOT in Google Chrome (14.0.835.186). Is this some
kind of joke? Please someone help me here.

System: Linux Ubuntu 10.10 32-bit, Google Chrome 14, Firefox 7.0, IE
6.0 (in Win XP), Java 1.7.0, GWT 2.4.0, Eclipse Indigo Service Rel. 1,
GWT plugin installed for Eclipse and developer plugin for Chrome.

-- 
You received 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 Compiler Errors

2011-10-03 Thread Thomas Bachmann
Can you post the full stack trace? I am having similar problems but
one cause mentioned in the stack trace is:
 Caused by: java.io.IOException: Too many open files
The strange thing for me is, that sometimes the compilation works and
sometimes it doesn't (even on the same machine).

On 13 Aug., 18:40, Matthias Rauer rauer1...@googlemail.com wrote:
 Yes, first I thought the same, and closed Eclipse. Seems to work...
 but the next attemp it doesnt work.

 May be a memory problem? Or virus scanner block the files (i am using
 avira prof.)?
 Can windows (32-bit) only handle for example 1000 open files?

 On 12 Aug., 20:38, Magno Machado magn...@gmail.com wrote:







  Isn't there any other process that may be blocking the folder/files?

  On Fri, Aug 12, 2011 at 1:53 PM, Matthias Rauer 
  rauer1...@googlemail.comwrote:

   Yes, you are right,there are some classes you cannot use on client
   side. But in this case I ll get another compile exception.

   The other team member haven't these problems, that I have :-( They use
   Windows 7 64-bit.

   On 11 Aug., 15:44, Juan Pablo Gardella gardellajuanpa...@gmail.com
   wrote:
At first, I think you can't use File classes in GWT (client side).

2011/8/11 Matthias Rauer rauer1...@googlemail.com Hello,

 I am getting compile errors. Looks like caching or synchronize
 problems.
    [java] Caused by: javax.imageio.IIOException: Can't create cache
 file!
     [java]     at
 javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:397)
     [java]     at javax.imageio.ImageIO.write(ImageIO.java:1558)
     [java]     ... 35 more
     [java] Caused by: java.io.FileNotFoundException: Z:
 \imageio2197704682044189508.tmp (Der Prozess kann nicht auf die Datei
 zugreifen, da sie von einem anderen Prozess verwendet wird)
     [java]     at java.io.RandomAccessFile.open(Native Method)
     [java]     at
   java.io.RandomAccessFile.init(RandomAccessFile.java:
 212)
     [java]     at

   javax.imageio.stream.FileCacheImageOutputStream.init(FileCacheImageOutput
­­Stream.java:
 73)
     [java]     at

   com.sun.imageio.spi.OutputStreamImageOutputStreamSpi.createOutputStreamInst
­­ance(OutputStreamImageOutputStreamSpi.java:
 50)
     [java]     at
 javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:393)
     [java]     ... 36 more

 ---

 C:\...\build\build.xml:459: IOException in 
 C:\...\build\tmp\web\WEB-INF
 \config\coreReportInvoiceConfig.xml - java.io.FileNotFoundException:C:
 \...build\tmp\web\WEB-INF\config\rep1473609419171320889.tmp (Der
 Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen
 Prozess verwendet wird)
 in english: process cannot access file, another process uses this file

 ---
 same exception again... but different file

     [java] Caused by: javax.imageio.IIOException: Can't create cache
 file!
     [java]     at
 javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:397)
     [java]     at javax.imageio.ImageIO.write(ImageIO.java:1558)
     [java]     ... 35 more
     [java] Caused by: java.io.FileNotFoundException: Z:
 \imageio5137244568657246113.tmp (Der Prozess kann nicht auf die Datei
 zugreifen, da sie von einem anderen Prozess verwendet wird)
     [java]     at java.io.RandomAccessFile.open(Native Method)
     [java]     at
   java.io.RandomAccessFile.init(RandomAccessFile.java:
 212)
     [java]     at

   javax.imageio.stream.FileCacheImageOutputStream.init(FileCacheImageOutput
­­Stream.java:
 73)
     [java]     at

   com.sun.imageio.spi.OutputStreamImageOutputStreamSpi.createOutputStreamInst
­­ance(OutputStreamImageOutputStreamSpi.java:
 50)
     [java]     at
 javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:393)
     [java]     ... 36 more
 ---

 If I compile again and again, I got different exceptions, like these:

 I already changed the extra and workDir to an RamDisk, deleted these
 directories before compiling, Deleted these directories before the
 build, but got same errors again. I also changed number of workers to
 1.

 Any suggestions?

 Greetings,
 Matthias

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

Re: GWT Tutorial, and then ? How to learn reald world GWT development

2011-10-03 Thread J.Ganesan
Please see http://code.google.com/hosting/. Go to GWT section. Pick
recent projects. You will learn a lot about practical way of
developing GWT Apps.

J.Ganesan
www.DataStoreGwt.com
Persist Objects directly in App Engine.

On Oct 2, 8:19 pm, Brandon@MediciGroup bran...@thegreshams.net
wrote:
 Dude, this contained one of the most enlightening things I've ever
 read on this issue; honestly, I hadn't quite realized until now that
 GWT isn't really it's own framework but rather more a framework to
 build custom frameworks with upon which you place your app; you build
 the middleware-framework, essentially.

 Yesterday I asked my buddy if there was any one single thing where if
 I didn't get it correct up-front to begin with (with respect to
 building a GWT-app) it would later cause me a lot of frustration in
 plumbing it in later on... he said the only thing he would advise I
 make sure to get correct from the beginning is Gin.  He said if you
 start your app from the get-go using Ginjection, you can pretty easily
 plumb more of the newer GWT-features in later as you go without too
 much effort.

 I didn't quite understand it yet; but now I think I do -- that's
 because GWT isn't the framework, it's just a bunch of nice tools in
 your toolbelt helping you to build whatever framework you need.  And
 I've already seen how some other GWT frameworks do things, so I have a
 target of sorts to aim at.

 Thanks for the reply -- you probably didn't quite realize that was the
 little piece I needed to make the lightbulb go off, but it was a big
 help.

 :)

 On Oct 1, 10:38 pm, Ashton Thomas ash...@acrinta.com wrote:







  I wish Google would pay someone just to build sample apps (pick me, pick
  me!). The GWT community needs someone like Ryan Bates:http://railscasts.com/

  Yeah, rails is a whole framework when GWT is nothing like that but samples
  that explain different things would help. The best thing about GWT seems to
  be the most difficult thing for developers: Just a tool to build some sick
  apps with custom frameworks built from the ground up where you do all the
  custom building.

  Seems like this topic is coming up more and more.. GWT is used in too many
  enterprise applications where the developers who build sweet custom
  frameworks can't release the code. I have a framework that I built and it
  works great for me but I would never be able to release it. Even if i could,
  it would only help a subset of people using more or less the same app
  configuration while confusing the heck out of other people.

  I could never go back to building apps without GWT but I also know the
  amount of work that has to go into building one of these bad boys

  Resources like we see in the rails community will probably never exist for
  the GWT community because of the nature of GWT. Just too many variables.
  Best thing to do would be to jump on to one of the GWT frameworks that exist
  but then you miss out on what makes pure GWT custom apps great... I've seen
  GWTP mentioned several times.

  Personally, I love working with my own framework. Best thing to do is to
  understand the available frameworks and whether they fit your project or if
  you need to build your own. Then you just have to roll your sleeves up and
  never look back

-- 
You received 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 launch the sample project

2011-10-03 Thread Gints
Valentin Torikian valentin.torikian@... writes:
 
 java.lang.VerifyError: Expecting a stackmap frame at branch target 6 

Go Eclipse - Window - Preferences
Choose Java - Installed JREs - click on your JRE and push Edit.
Add - -XX:-UseSplitVerifier as Default VM Arguments.

-- 
You received 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 Compiler Errors

2011-10-03 Thread ju
I had a similar problem and disabling the unit cache seemed to have
fixed the problem.

Try to add -Dgwt.persistentunitcache=false to the compiler arguments


On Oct 3, 9:13 am, Thomas Bachmann i...@thobach.de wrote:
 Can you post the full stack trace? I am having similar problems but
 one cause mentioned in the stack trace is:
  Caused by: java.io.IOException: Too many open files
 The strange thing for me is, that sometimes the compilation works and
 sometimes it doesn't (even on the same machine).

 On 13 Aug., 18:40, Matthias Rauer rauer1...@googlemail.com wrote:







  Yes, first I thought the same, and closed Eclipse. Seems to work...
  but the next attemp it doesnt work.

  May be a memory problem? Or virus scanner block the files (i am using
  avira prof.)?
  Can windows (32-bit) only handle for example 1000 open files?

  On 12 Aug., 20:38, Magno Machado magn...@gmail.com wrote:

   Isn't there any other process that may be blocking the folder/files?

   On Fri, Aug 12, 2011 at 1:53 PM, Matthias Rauer 
   rauer1...@googlemail.comwrote:

Yes, you are right,there are some classes you cannot use on client
side. But in this case I ll get another compile exception.

The other team member haven't these problems, that I have :-( They use
Windows 7 64-bit.

On 11 Aug., 15:44, Juan Pablo Gardella gardellajuanpa...@gmail.com
wrote:
 At first, I think you can't use File classes in GWT (client side).

 2011/8/11 Matthias Rauer rauer1...@googlemail.com Hello,

  I am getting compile errors. Looks like caching or synchronize
  problems.
     [java] Caused by: javax.imageio.IIOException: Can't create cache
  file!
      [java]     at
  javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:397)
      [java]     at javax.imageio.ImageIO.write(ImageIO.java:1558)
      [java]     ... 35 more
      [java] Caused by: java.io.FileNotFoundException: Z:
  \imageio2197704682044189508.tmp (Der Prozess kann nicht auf die 
  Datei
  zugreifen, da sie von einem anderen Prozess verwendet wird)
      [java]     at java.io.RandomAccessFile.open(Native Method)
      [java]     at
java.io.RandomAccessFile.init(RandomAccessFile.java:
  212)
      [java]     at

javax.imageio.stream.FileCacheImageOutputStream.init(FileCacheImageOutput
 ­­Stream.java:
  73)
      [java]     at

com.sun.imageio.spi.OutputStreamImageOutputStreamSpi.createOutputStreamInst
 ­­ance(OutputStreamImageOutputStreamSpi.java:
  50)
      [java]     at
  javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:393)
      [java]     ... 36 more

  ---

  C:\...\build\build.xml:459: IOException in 
  C:\...\build\tmp\web\WEB-INF
  \config\coreReportInvoiceConfig.xml - 
  java.io.FileNotFoundException:C:
  \...build\tmp\web\WEB-INF\config\rep1473609419171320889.tmp (Der
  Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen
  Prozess verwendet wird)
  in english: process cannot access file, another process uses this 
  file

  ---
  same exception again... but different file

      [java] Caused by: javax.imageio.IIOException: Can't create cache
  file!
      [java]     at
  javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:397)
      [java]     at javax.imageio.ImageIO.write(ImageIO.java:1558)
      [java]     ... 35 more
      [java] Caused by: java.io.FileNotFoundException: Z:
  \imageio5137244568657246113.tmp (Der Prozess kann nicht auf die 
  Datei
  zugreifen, da sie von einem anderen Prozess verwendet wird)
      [java]     at java.io.RandomAccessFile.open(Native Method)
      [java]     at
java.io.RandomAccessFile.init(RandomAccessFile.java:
  212)
      [java]     at

javax.imageio.stream.FileCacheImageOutputStream.init(FileCacheImageOutput
 ­­Stream.java:
  73)
      [java]     at

com.sun.imageio.spi.OutputStreamImageOutputStreamSpi.createOutputStreamInst
 ­­ance(OutputStreamImageOutputStreamSpi.java:
  50)
      [java]     at
  javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:393)
      [java]     ... 36 more
  ---

  If I compile again and again, I got different exceptions, like 
  these:

  I already changed the extra and workDir to an RamDisk, deleted these
  directories before compiling, Deleted these directories before the
  build, but got same errors again. I also changed number of workers 
  to
  1.

  Any suggestions?

  Greetings,
  Matthias

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

Re: CAS SSO

2011-10-03 Thread ChrisAtShaw
We have apps using CAS SSO, and do not use Spring at all, but instead 
Guice.  

Here is all that is in our web.xml

!-- Guice servlet setup --
filter
filter-nameguiceFilter/filter-name
filter-classcom.google.inject.servlet.GuiceFilter/filter-class
/filter

filter-mapping
filter-nameguiceFilter/filter-name
url-pattern/*/url-pattern
/filter-mapping

listener

listener-classcom.mycopmany.ApplicationInitContextListener/listener-class
/listener


Guice plugs the app into CAS programmatically.


Can you elaborate on the issues you are experiencing?

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



Re: GWT Developer Plugin for Firefox 7

2011-10-03 Thread Michele
HmmmI'm unable to access the site so is there a way you can change the 
extension and send it to me as an attachment? 

- Original Message -
From: Michele Adams c.m.ad...@comcast.net 
To: google-web-toolkit@googlegroups.com 
Sent: Sunday, October 2, 2011 6:35:45 PM 
Subject: Re: GWT Developer Plugin for Firefox 7 

Thanks wbabachan.I guess we'll find out if it will work with Firefox 
6.0.2 

On 10/2/11 6:29 PM, wbabachan wbabac...@googlemail.com wrote: 

OK I've found a way, I have uploaded the file here: 
 
http://www.sendspace.com/file/s01yil 
 
I Hope that it helps everyone. 
 
-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group. 
To post to this group, send email to google-web-toolkit@googlegroups.com. 
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com. 
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en. 
 


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

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



Re: GWT Developer Plugin for Firefox 7

2011-10-03 Thread Kees de Kooter
This plugin is failing on FF 7.0.1: Sorry, the GWT Developer Plugin only 
supports Firefox 3.0 - 6.0 at present http://www.getfirefox.com/

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/D2gv03UT5p8J.
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.



Firefox Made Me Sad

2011-10-03 Thread Alan Chaney

Hi Everybody.

The time wasted by plug-in developers and us poor application developers 
because of the stupid rapid release concept of firefox is now getting 
to be beyond a joke. I came up with the following message:


'Rapid Release for Firefox is stupid and broken and wastes plugin and 
application developers time. One API release a year is sufficient.'


which fits in the very limited space allowed in the feedback window 
(Firefox: Help- Submit Feedback...- Firefox Made Me Sad.)


If you feel the same way as I do, please find the time to send this 
message or something like it to Mozilla.


Regards

Alan



--
You received 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: Bean Validation: Client vs Server

2011-10-03 Thread Piro
What methods are you using with Pattern/RegExp. String.matches isn't
enough?

On 3. Okt, 00:53 h., objectuser kevin.k.le...@gmail.com wrote:
 I'm differentiating validations to be run on the client vs. the server using
 validation groups.

 However, I have one validation for which I'd like a different implementation
 the client, due to the unavailability of the Pattern class there.  So on the
 client, I'd like to use the GWT RegExp class, while on the server, I'd like
 to use the JDK Pattern class.

 So far, I've not figured out a way to do this.  It seems like the only place
 to specify the validator class is in the validatedBy property of the
 @Constraint annotation.

 I even tried creating two different custom validation annotations, but the
 validation framework still seems to load the server version, and I get a
 runtime error due to the unavailability of the Pattern class.

 Thanks for any advice.

-- 
You received 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: Adding a context menu to DataGrid

2011-10-03 Thread Sudhakar Abraham
Subclass the TextInputCell, override the getConsumedEvents(),
onBrowserEvent() method. To edit the property in
Collections.singleton(contextmenu) in getConsumedEvents method.  Add
this as Column.

//.java

class TestTextInputCell extends TextInputCell
{
  public TestTextInputCell()
  {
super();
  }

  @Override
  public Set getConsumedEvents()
  {
return Collections.singleton(contextmenu);
  }

  public void onBrowserEvent(Cell.Context context, Element parent,
Object value, NativeEvent event)
  {
event.preventDefault();
event.stopPropagation();
  }
}



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


On Oct 3, 10:26 am, Karan Nih vlin...@gmail.com wrote:
 Can some one please tell me how to add a context menu to a DataGrid in
 GWT
 I am using GWT 2.4

 Thanks

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



Re: Bean Validation: Client vs Server

2011-10-03 Thread Thomas Broyer
Why don't you use the com.google.gwt.regexp.shared.RegExp on the server too?

Otherwise, I believe using super-source you could provide a client-side-only 
implementation.

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



Re: GWT Community size ?

2011-10-03 Thread David Chandler
Hi Jonathan,

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

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

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

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

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

HTH,
/dmc

On Sun, Oct 2, 2011 at 8:56 PM, Jonathan Aubuchon 
jonathan.aubuc...@gmail.com wrote:

 Hi all,

 Does anyone know how big is the GWT Community size?

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

 (Approximately...)

 Thank you guys.

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

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




-- 
David Chandler
Developer Programs Engineer, GWT+GAE
w: http://code.google.com/
b: http://turbomanage.wordpress.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

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



LocalHost and Same Origin Policy Question

2011-10-03 Thread coffeMan
I set up a java servlet and run it through tomcat.  I set it up on the
same network but just on a different machine.  I am trying to access
that servlet through gwt request builder but keep getting  a
statuscode of 0.  Is this an instance of Same Origin Policy? I dont
think it is, but any feedback or guidance would be great.

Thanks

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



Firefox v. Dev Plugin

2011-10-03 Thread Gregory Dougherty
For those of us who debug our GWT apps in Firefox, and would kind of
like to keep up to date on Firefox releases, could someone from Google
give a quick rundown on why it is that each of the last three (four ?)
Firefox releases has broken the Dev Plugin, apparently each in new
ways?  Are the people working of Firefox just doing stupid things?
Does the GWT Developer Plugin just assume that it must be incompatible
with any X+1.0 release?

Why is it that the Developer Plugin for Firefox only seems to get
cleared for the current version of Firefox less than a week before
the next (hyper critical, be sure to replace your previous version)
version comes out?

TIA,

Greg

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



Java Servlet and Same Origin Policy question using GWT Request Builder

2011-10-03 Thread coffeMan
I created a Java Servlet on a test machine, on network. I want to
create a gwt app to call that servlet and retrieve XML from it using
the request builder from a different machine but on the same network.
Is this going to invoke SOP?

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

2011-10-03 Thread Soumaya Ben Abdallah
Hi All,

I was wondering, is there a way to get the last modified date of a
file when using the FileUpload component?

Thanx 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: Bean Validation: Client vs Server

2011-10-03 Thread objectuser
I thought about just using RegExp on the sever, but it just seemed wrong to 
rely on that on the sever.  Not sure why, since I'm pretty coupled to GWT in 
any case. :)

The super-source idea is interesting.  I didn't know about that feature 
before.  Googling it, it seems pretty interesting.

Thanks for the recommendations!  I think I'll try out the super-source idea 
and then fallback to using RegExp.

-- 
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/-/Cx4IsOkEJI8J.
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 Servlet and Same Origin Policy question using GWT Request Builder

2011-10-03 Thread Jens
As long as protocol, domain and port number do not change you wont have a 
problem regarding same origin policy.If they change you can use 
JSONPRequstBuilder (requires some changes in your servlet to make it jsonp 
compliant) or you have to use a reverse proxy to map the external servlet to 
the domain of your gwt app.

-- 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/-/2JRhD9LX3hcJ.
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: Simple GWT sample code from Eclipse does NOT run in Chrome!

2011-10-03 Thread Isaac Truett
GWT apps work fine in Chrome for me. You'll have elaborate on the problem
you're seeing. Just saying it doesn't display properly doesn't help diagnose
your problem. Does the JS console show anything? How about the Developer
Tools' Network tab? Any resources failing to load? Or is this just an
aesthetic problem - alignment or font size or something like that?


On Mon, Oct 3, 2011 at 1:34 AM, Danux danbozi...@gmail.com wrote:

 After wondering why my little app wouldn't display properly in my
 Chrome browser once compiled, but work fine in Firefox, I decided to
 create an empty new Web Application Project in Eclipse and let it ONLY
 generate the initial sample code, nothing else. After compiling that
 unaltered code (obfuscated or pretty), it WILL run properly in Firefox
 7.0 and IE 6.0, but NOT in Google Chrome (14.0.835.186). Is this some
 kind of joke? Please someone help me here.

 System: Linux Ubuntu 10.10 32-bit, Google Chrome 14, Firefox 7.0, IE
 6.0 (in Win XP), Java 1.7.0, GWT 2.4.0, Eclipse Indigo Service Rel. 1,
 GWT plugin installed for Eclipse and developer plugin for Chrome.

 --
 You received 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 Servlet and Same Origin Policy question using GWT Request Builder

2011-10-03 Thread coffeMan
can i change what address is outputted from Eclipse GWT? I believe it
is my IP:port/.html?gwt.codes=IP:9997

I am assuming that is what it is comparing to in relation to my java
servlet i am trying to parse

On Oct 3, 1:06 pm, Jens jens.nehlme...@gmail.com wrote:
 As long as protocol, domain and port number do not change you wont have a
 problem regarding same origin policy.If they change you can use
 JSONPRequstBuilder (requires some changes in your servlet to make it jsonp
 compliant) or you have to use a reverse proxy to map the external servlet to
 the domain of your gwt app.

 -- J.

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



PlaceHistoryHandler for URL with multiple args

2011-10-03 Thread Mike Dee
Just wondering about how to go about implementing a history mechanism
(using Activities and Places) for URLs with multiple arguments.  For
example, lets say I want a book search url (call it BookSearch) to be
bookmarkable and have multiple arguments.  In a traditional web app
the URL may look like BookSearch.php?
title=xxxauthor=yyypublisher=zzz.

One idea I can see is to make the place token the entire argument
list.  So, in the above case it would look like:
title=xxxauthor=yyypublisher=zzz.  Then I could parse each arg (are
there any tools in GWT to help with this?).

Another idea would be to create a separate token for each argument.
The place class may look like this:

public class BookSearchPlace extends Place
{
public BookSearchPlace ( String title, String author, String
publisher )



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



Re: Is it possible to flush the sub-editor of a CompositeEditor ?

2011-10-03 Thread Eric Andresen
Thanks everyone for your help.  I traced the problem with the flushing down
to a portion of the Proxy's object tree not being populated with the .with()
call.  When the Flusher was hitting that part of the object, the call
to ctx.canSetInModel() was returning false and the flush was failing
silently.  Once I fully populated the .with() for the RF call that built the
new object, the flushing worked great.

I'm working on Thomas's suggestions on how to make these editors honor their
contracts, instead of making them force the flushes of the entire object
tree.  At least now I'm past the technical problems.

Thanks again everyone!


---
Eric Andresen


On Sat, Oct 1, 2011 at 8:41 PM, Jesse Hutton jesse.hut...@gmail.com wrote:

 If you have flushed the changes from the editor from your dialog form to
 your ChildObjProxy, you should just be able to call CellTable#redraw() on
 the instance used by your ListEditor to have the view refreshed.

 Jesse


 On Wed, Sep 28, 2011 at 10:46 PM, Eric Andresen ericandre...@gmail.comwrote:

 Hi Thomas,
   You are right that the ListEditor (or HasDataEditor) is the behavior I
 wanted to use, but my Proxies at the time were related with a Set
 interface based on the server-side requirements.  Essentially what I did was
 re-write the ListEditor as a SetEditor.

   Recently we had to change our Sets to Lists anyway, so I can go back and
 re-visit that decision.

 A slightly better description of the problem is, consider ParentObjProxy {
 ListChildObjProxy children; }
 When editing ParentObjProxy in its editor, the user should also be able to
 add/delete/edit the ChildObjProxys in the children relationship.
 In the ParentObjProxy edit page, the children are displayed in a
 CellTable.
 When the user selects a row in the CellTable and clicks an edit button, a
 dialog is shown containing an editor for the ChildObjProxy.
 The user then modifies the fields in the ChildObjProxy editor, and closes
 the dialog.
 At this point, we would like the CellTable in the ParentObjProxyEditor to
 display the newly modified values.  However, the call to
 chain.getValue(ChildObjProxy instance's editor) that should show the values
 from the editor is still showing the old values, because the child editor
 has not been flushed yet.

 What I'm trying to do is really no different than the WorkgroupEditor
 example at
 http://google-web-toolkit.googlecode.com/svn/javadoc/2.4/com/google/gwt/editor/client/CompositeEditor.html
  ,
 with the only difference that I'd also like to be able to read the current
 values of the Persons from the PersonSummaryEditors and display them in a
 table.

 I will try tomorrow converting it back to a ListEditor and see if that
 helps at all.  At the very least it should remove some of my boilerplate
 code.

 Thanks,
 Eric

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

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


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


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



Re: The RequestFactory ValidationTool must be run for the RequestFactory type

2011-10-03 Thread Eric Andresen
Evan,

  The extra steps I had to go through to get the annotation processor to run
were to remove all the m2e (and everything provided by Sonatype, Inc)
components from my Eclipse install, and then to a clean re-install of the
Maven Integration for WTP package and all of its dependencies.  The
different versions of the Maven integration plugins were fighting with each
other.

I don't know if that will help your problem or not, but it might help out
anyone who sees this error on a SpringSource STS + GWT + Maven project.

---
Eric Andresen


On Sun, Oct 2, 2011 at 4:29 PM, TULC evan.a.te...@gmail.com wrote:

 I just get the same error as posted by Eric at the beginning of the
 thread, but I have copied/pasted the full dump below.

 Thomas, I'm not sure what you mean about the .apt_generated being in
 my build path?

 Thanks for the help, guys...
 Evan

 Console:
 log4j:WARN No appenders could be found for logger
 (org.apache.jasper.compiler.Js
 pRuntimeContext).
 log4j:WARN Please initialize the log4j system properly.
 log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig
 for more in
 fo.
 03/10/2011 8:24:49 AM
 com.google.web.bindery.requestfactory.server.RequestFactor
 yServlet doPost
 SEVERE: Unexpected error
 java.lang.RuntimeException: The RequestFactory ValidationTool must be
 run for th
 e com.google.gwt.sample.dynatablerf.shared.DynaTableRequestFactory
 RequestFactor
 y type
at com.google.web.bindery.requestfactory.vm.impl.Deobfuscator
 $Builder.load(Deob
 fuscator.java:59)
at

 com.google.web.bindery.requestfactory.server.ResolverServiceLayer.updateDeob
 fuscator(ResolverServiceLayer.java:43)
at

 com.google.web.bindery.requestfactory.server.ResolverServiceLayer.resolveReq
 uestFactory(ResolverServiceLayer.java:176)
at

 com.google.web.bindery.requestfactory.server.ServiceLayerDecorator.resolveRe
 questFactory(ServiceLayerDecorator.java:172)
at

 com.google.web.bindery.requestfactory.server.ServiceLayerDecorator.resolveRe
 questFactory(ServiceLayerDecorator.java:172)
at

 com.google.web.bindery.requestfactory.server.ServiceLayerDecorator.resolveRe
 questFactory(ServiceLayerDecorator.java:172)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
 39
 )
at

 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
 .java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at

 com.google.web.bindery.requestfactory.server.ServiceLayerCache.getOrCache(Se
 rviceLayerCache.java:233)
at

 com.google.web.bindery.requestfactory.server.ServiceLayerCache.resolveReques
 tFactory(ServiceLayerCache.java:198)
at

 com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(
 SimpleRequestProcessor.java:207)
at

 com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(
 SimpleRequestProcessor.java:127)
at

 com.google.web.bindery.requestfactory.server.RequestFactoryServlet.doPost(Re
 questFactoryServlet.java:133)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
 org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
 487)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler
 .java:1097)
at

 com.google.gwt.sample.dynatablerf.server.SchoolCalendarService.doFilter(Scho
 olCalendarService.java:89)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler
 .java:1088)
at
 org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
 360)
at
 org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
 216)
at
 org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
 181)
at
 org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
 729)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
 405)
at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
 152)
at
 org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:
 49
 )
at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
 152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at
 org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
 505)
at org.mortbay.jetty.HttpConnection
 $RequestHandler.content(HttpConnection.java:
 843)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at
 org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
 

what's ReflectionHelper.loadClass(String) does?

2011-10-03 Thread Elhanan
hi.. it seems there is some sort of partial reflection support in gwt, but 
can i use it? is it the same as class.forname?

-- 
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/-/gKu9qoevNaIJ.
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: Firefox v. Dev Plugin

2011-10-03 Thread Dennis Haupt
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Am 03.10.2011 16:19, schrieb Gregory Dougherty:
 For those of us who debug our GWT apps in Firefox, and would kind
 of like to keep up to date on Firefox releases, could someone from
 Google give a quick rundown on why it is that each of the last
 three (four ?) Firefox releases has broken the Dev Plugin,
 apparently each in new ways?  Are the people working of Firefox
 just doing stupid things? Does the GWT Developer Plugin just assume
 that it must be incompatible with any X+1.0 release?
 
 Why is it that the Developer Plugin for Firefox only seems to get 
 cleared for the current version of Firefox less than a week
 before the next (hyper critical, be sure to replace your previous
 version) version comes out?
 
 TIA,
 
 Greg
 

i ignore the newest firefox release for exactly this reason

- -- 

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.14 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJOif8QAAoJENRtux+h35aGmZUQAIZoo32AcjtHDzRpYRI+WaXo
qOwkqTMedBtYH0r82P8MV4iv6FDxi89jBtFMqO1feNV5Pu35AdIVOwG8bEo1/7GB
GU64qGOSLJ0VoXpq2w4AVzkdoJ+QTwNelb7HPtIctJ058WtPMcfBN9yjIFc1BmnS
F0OECB5zCYFMpaelHmIYeknThSy82qEK/iyPrK2ZVzVMTtp4McqzNHtIc1e1MRf5
Qfz9im7d3cQ5pp6vymi/YbCBgIH8F564yo4jDQeruWr91wbX90RSkR/djvQFEKCE
GJmQ6VIpIobGAouTftGNvinZWvZpVoJiXrxSvUIAFuZO8y/oCPHutfee+w/AaKsR
PjWxtxur+Ly53UawGvyTm9ldnoz+KyeXSxjUFeTnUjXFehae688Fj2sPZb8wTwVv
qEBXaW/qO9Rdt0nJRhJqOF4fiuoXIxf9MIMfSWkRxtgBSnOEepDWK+dXLMDCBFGH
uzmRB75r890km/f1gcJPXgc2e2USZdlDh4/Zvn6IDikbQYpAFCDcVA+WcUEJ1Sdc
c2QCaIOksUIbVWVEG6gtL+qFt4avlhLAfIW+Xx+wgdDFMzrX6tv4BMZPtlsEUB9k
C2BZzHpKt6n0GRzuAR3LUmkqM62naVh1WSFjYdWM+R2beVcMOejatC6Lnb+tmGxf
ngjWqCpVid9/oyCGteOi
=A1sD
-END PGP SIGNATURE-

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



GWT4TiDesktop 1.0.0 is out!

2011-10-03 Thread Alfredo Quiroga-Villamil
We are proud to announce our first release of GWT4TiDesktop.

Mix  match Flex, GXT ,ExtJS and more and turn your web app into a desktop
solution.

www.emitrom.com/gwt4tidesktop

As usual we welcome your feedback.

Happy Coding!

Emitrom Team

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



Re: Firefox v. Dev Plugin

2011-10-03 Thread Chris Conroy
I've mentioned this in other threads, but I'll repeat here: Under the new
rapid-release model, Mozilla is intentionally breaking binary compatibility
with xpcom components on every release. We are forced to rebuild for every
platform with every release.

Our existing processes for maintaining the plugin come from a time long
before this model. Due to the number of platforms that we support, manually
building a new release of the plugin takes a decent amount of time. Mozilla
has said that the binary API can change up until the official release, so
that rules out attempting to start on this work early. Moreover, future
updates will almost certainly have real breaking changes that could require
significant time to address.

In the meantime, I would suggest running against whatever version of Firefox
is supported. If some version specific issue comes up that you must debug
before we can get a release out, then you may just have to build the plugin
yourself. But, these 'major' releases are really quite minor. In
all likelihood, any issue you want to debug in DevMode will surface in the
same way in FF6 as in FF7.

I know this isn't the answer you (or many people) want to hear, but that's
the reality today.

P.S.
I would advise people on this list to be cautious about downloading plugin
binaries from other people. It's much safer to build your own from source or
wait for an official release.

On Mon, Oct 3, 2011 at 10:19 AM, Gregory Dougherty gregdm...@gmail.comwrote:

 For those of us who debug our GWT apps in Firefox, and would kind of
 like to keep up to date on Firefox releases, could someone from Google
 give a quick rundown on why it is that each of the last three (four ?)
 Firefox releases has broken the Dev Plugin, apparently each in new
 ways?  Are the people working of Firefox just doing stupid things?
 Does the GWT Developer Plugin just assume that it must be incompatible
 with any X+1.0 release?

 Why is it that the Developer Plugin for Firefox only seems to get
 cleared for the current version of Firefox less than a week before
 the next (hyper critical, be sure to replace your previous version)
 version comes out?

 TIA,

 Greg

 --
 You received 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: GWT4TiDesktop 1.0.0 is out!

2011-10-03 Thread joe kolba
I would appreciate some screen shots of the final product on the website.
Also maybe release some tutorials along with your product.

On Mon, Oct 3, 2011 at 2:47 PM, Alfredo Quiroga-Villamil
laww...@gmail.comwrote:

 We are proud to announce our first release of GWT4TiDesktop.

 Mix  match Flex, GXT ,ExtJS and more and turn your web app into a desktop
 solution.

 www.emitrom.com/gwt4tidesktop

 As usual we welcome your feedback.

 Happy Coding!

 Emitrom Team

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


-- 
You received 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: GWT4TiDesktop 1.0.0 is out!

2011-10-03 Thread Alfredo Quiroga-Villamil
Hi Joe we'll be adding tutorials and demos soon.

Thanks for the feedback.

Alfredo

On Mon, Oct 3, 2011 at 2:52 PM, joe kolba joekolb...@gmail.com wrote:

 I would appreciate some screen shots of the final product on the website.
 Also maybe release some tutorials along with your product.

 On Mon, Oct 3, 2011 at 2:47 PM, Alfredo Quiroga-Villamil 
 laww...@gmail.com wrote:

 We are proud to announce our first release of GWT4TiDesktop.

 Mix  match Flex, GXT ,ExtJS and more and turn your web app into a desktop
 solution.

 www.emitrom.com/gwt4tidesktop

 As usual we welcome your feedback.

 Happy Coding!

 Emitrom Team

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


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




-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received 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: GWT4Touch Official Release!

2011-10-03 Thread Frank Argueta
What kind of license terms are you using Sencha Touch under?

On Mon, Oct 3, 2011 at 2:49 PM, Alfredo Quiroga-Villamil
laww...@gmail.comwrote:

 We said it and here you have it, our official release of Touch in Java is
 ready for action!

 www.emitrom.com/gwt4touch

 Visit us at our website and let us know how we can improve and make your
 development experience easier.

 Happy Coding!

 Emitrom Team


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


-- 
You received 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: Bean Validation: Client vs Server

2011-10-03 Thread objectuser
Yeah, String.matches only matches the entire input.  I need to see if the 
string contains a regular expression, as in pattern.matcher(string).find().

Also, String.matches compiles the expression every time.

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



Overlay Types combined with POJO. Found a solution (ugly?!). But is there a better one?

2011-10-03 Thread benneq
Hi!

I'm building a web app with JSON and PHP (+MySQL). Right now I'm
coding an image gallery. In the database I've got the following
structure:
TABLE: gallery {
int galleryId
String description
String primaryImageUrl (- this should be imageId, but then it
gets even more complicated with JSON)
}

TABLE: image {
int imageId
int galleryId (- just for the query, doesn't get fetched)
String url
}

It's clear that each gallery contains a list of images. In Java this
would mean that I've got a HashMapGalleryId, Gallery and each
Gallery has a HashMapImageId, Image. Now I'm using the easiest way
of retrieving this data: JSON. And for best user experience I only
fetch the data that is actually required. This means: When starting
the gallery I fetch ONLY the gallerys, for sure as JS Overlay Types.
When now a gallery is clicked I open the gallery and fetch all images
belonging to it. Pretty simple. But now comes the complicated part:
All those Images are belonging to that single gallery, though I think
it would be best to have them INSIDE the Gallery Object (remember it's
an overlay Type). For performance reasons I want to store those images
in a HashMap. That's the simple side. Just take your JsArrayImageJso
and put every element to the HashMap.

Now I've done the following (maybe stupid thing) to put it all
together:


public class GalleryJso extends JavaScriptObject implements Gallery {
protected GalleryJso() {}

private static HashMapGallery, HashMapInteger, Image imagesMap =
new HashMapGallery, HashMapInteger, Image();

/* JSNI getters */

@Override
public final HashMapInteger, Image getImages() {
if(!imagesMap.containsKey(this)) {
imagesMap.put(this, new HashMapInteger, Image());
}
return imagesMap.get(this);
}
}

It's allowed to have static fields in a JSO (but no instance fields).
Now I'd like to hear from you if there's a better way to get things
done the way I want (or maybe change the way to make it even easier or
faster). I'm not really familiar with Overlay Types, but my
programming experience tells me that the way I've done it is quite
ugly.

And there's another problem: I now store TWO HashMaps of the same
type. In my GalleryPresenter there's another one: HashMapInteger,
Gallery (so i can get fast a gallery for a specific galleryId). Do I
really have two? Or are both using the same data? And it's just a
pointer and not a complete copy of the data?

Maybe someone could help me improving my application (it's not that
big, but it may grow and i don't want to have possible bottlenecks
again and again).


Bye and thanks :)

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



Re: GWT4Touch Official Release!

2011-10-03 Thread Alfredo Quiroga-Villamil
Hello Frank:

The product is free to develop apps and it's under GPL as per Sencha's
licensing page. We only charge for support in this case.

Regards,

Alfredo

On Mon, Oct 3, 2011 at 3:29 PM, Frank Argueta frank.argu...@gmail.comwrote:

 What kind of license terms are you using Sencha Touch under?

 On Mon, Oct 3, 2011 at 2:49 PM, Alfredo Quiroga-Villamil 
 laww...@gmail.com wrote:

 We said it and here you have it, our official release of Touch in Java is
 ready for action!

 www.emitrom.com/gwt4touch

 Visit us at our website and let us know how we can improve and make your
 development experience easier.

 Happy Coding!

 Emitrom Team


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


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




-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received 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: GWT4Touch Official Release!

2011-10-03 Thread Frank Argueta
Before you invest a whole lot of effort into this you really should tread
carefully. Sencha has a long history of license foul play. It's GPL but it's
not, it's free but its not, it's a standard GPL license but it’s
a proprietary Sencha commercial license!

http://www.sencha.com/products/touch/license/
 Commercial OEM License (Paid license)

This is the appropriate option if you want to use Sencha Touch to create
your own commercially licensed SDK, or mobile application builder. Because
use cases can vary widely, Commercial OEM licenses are customized for each
customer.


On Mon, Oct 3, 2011 at 3:48 PM, Alfredo Quiroga-Villamil
laww...@gmail.comwrote:

 Hello Frank:

 The product is free to develop apps and it's under GPL as per Sencha's
 licensing page. We only charge for support in this case.

 Regards,

 Alfredo


 On Mon, Oct 3, 2011 at 3:29 PM, Frank Argueta frank.argu...@gmail.comwrote:

 What kind of license terms are you using Sencha Touch under?

   On Mon, Oct 3, 2011 at 2:49 PM, Alfredo Quiroga-Villamil 
 laww...@gmail.com wrote:

  We said it and here you have it, our official release of Touch in Java
 is ready for action!

 www.emitrom.com/gwt4touch

 Visit us at our website and let us know how we can improve and make your
 development experience easier.

 Happy Coding!

 Emitrom Team


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


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




 --
 Alfredo Quiroga-Villamil

 AOL/Yahoo/Gmail/MSN IM:  lawwton


 --
 You received 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: GWT4Touch Official Release!

2011-10-03 Thread Alfredo Quiroga-Villamil
Hi Frank, in this case we are not selling a commercially licensed SDK but
releasing under GPL, but I hear you. We had a meeting with Sencha not too
long ago and to make sure in this case we are going to setup another one.

Thanks,

Alfredo

On Mon, Oct 3, 2011 at 3:59 PM, Frank Argueta frank.argu...@gmail.comwrote:

 Before you invest a whole lot of effort into this you really should tread
 carefully. Sencha has a long history of license foul play. It's GPL but it's
 not, it's free but its not, it's a standard GPL license but it’s
 a proprietary Sencha commercial license!

 http://www.sencha.com/products/touch/license/
  Commercial OEM License (Paid license)

 This is the appropriate option if you want to use Sencha Touch to create
 your own commercially licensed SDK, or mobile application builder. Because
 use cases can vary widely, Commercial OEM licenses are customized for each
 customer.


 On Mon, Oct 3, 2011 at 3:48 PM, Alfredo Quiroga-Villamil 
 laww...@gmail.com wrote:

 Hello Frank:

 The product is free to develop apps and it's under GPL as per Sencha's
 licensing page. We only charge for support in this case.

 Regards,

 Alfredo


 On Mon, Oct 3, 2011 at 3:29 PM, Frank Argueta frank.argu...@gmail.comwrote:

 What kind of license terms are you using Sencha Touch under?

   On Mon, Oct 3, 2011 at 2:49 PM, Alfredo Quiroga-Villamil 
 laww...@gmail.com wrote:

  We said it and here you have it, our official release of Touch in Java
 is ready for action!

 www.emitrom.com/gwt4touch

 Visit us at our website and let us know how we can improve and make your
 development experience easier.

 Happy Coding!

 Emitrom Team


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


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




 --
 Alfredo Quiroga-Villamil

 AOL/Yahoo/Gmail/MSN IM:  lawwton


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




-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received 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: GWT4Touch Official Release!

2011-10-03 Thread Frank Argueta
Your product page http://www.emitrom.com/gwt4touch has a link to the license
that indicates that the product is available under commercial license and
GPL license.


On Mon, Oct 3, 2011 at 4:15 PM, Alfredo Quiroga-Villamil
laww...@gmail.comwrote:

 Hi Frank, in this case we are not selling a commercially licensed SDK but
 releasing under GPL, but I hear you. We had a meeting with Sencha not too
 long ago and to make sure in this case we are going to setup another one.

 Thanks,

 Alfredo


 On Mon, Oct 3, 2011 at 3:59 PM, Frank Argueta frank.argu...@gmail.comwrote:

 Before you invest a whole lot of effort into this you really should tread
 carefully. Sencha has a long history of license foul play. It's GPL but it's
 not, it's free but its not, it's a standard GPL license but it’s
 a proprietary Sencha commercial license!

 http://www.sencha.com/products/touch/license/
  Commercial OEM License (Paid license)

 This is the appropriate option if you want to use Sencha Touch to create
 your own commercially licensed SDK, or mobile application builder. Because
 use cases can vary widely, Commercial OEM licenses are customized for each
 customer.


 On Mon, Oct 3, 2011 at 3:48 PM, Alfredo Quiroga-Villamil 
 laww...@gmail.com wrote:

 Hello Frank:

 The product is free to develop apps and it's under GPL as per Sencha's
 licensing page. We only charge for support in this case.

 Regards,

 Alfredo


 On Mon, Oct 3, 2011 at 3:29 PM, Frank Argueta 
 frank.argu...@gmail.comwrote:

 What kind of license terms are you using Sencha Touch under?

   On Mon, Oct 3, 2011 at 2:49 PM, Alfredo Quiroga-Villamil 
 laww...@gmail.com wrote:

  We said it and here you have it, our official release of Touch in
 Java is ready for action!

 www.emitrom.com/gwt4touch

 Visit us at our website and let us know how we can improve and make
 your development experience easier.

 Happy Coding!

 Emitrom Team


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


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




 --
 Alfredo Quiroga-Villamil

 AOL/Yahoo/Gmail/MSN IM:  lawwton


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




 --
 Alfredo Quiroga-Villamil

 AOL/Yahoo/Gmail/MSN IM:  lawwton


 --
 You received 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: GWT4Touch Official Release!

2011-10-03 Thread Alfredo Quiroga-Villamil
Thanks Frank, appreciate it. Good catch we were linking back to the main
license page. Made a change there and pointed now only to the GPL.

Thanks for the help,

Alfredo



On Mon, Oct 3, 2011 at 4:18 PM, Frank Argueta frank.argu...@gmail.comwrote:

 Your product page http://www.emitrom.com/gwt4touch has a link to the
 license that indicates that the product is available under commercial
 license and GPL license.


 On Mon, Oct 3, 2011 at 4:15 PM, Alfredo Quiroga-Villamil 
 laww...@gmail.com wrote:

 Hi Frank, in this case we are not selling a commercially licensed SDK but
 releasing under GPL, but I hear you. We had a meeting with Sencha not too
 long ago and to make sure in this case we are going to setup another one.

 Thanks,

 Alfredo


 On Mon, Oct 3, 2011 at 3:59 PM, Frank Argueta frank.argu...@gmail.comwrote:

 Before you invest a whole lot of effort into this you really should tread
 carefully. Sencha has a long history of license foul play. It's GPL but it's
 not, it's free but its not, it's a standard GPL license but it’s
 a proprietary Sencha commercial license!

 http://www.sencha.com/products/touch/license/
  Commercial OEM License (Paid license)

 This is the appropriate option if you want to use Sencha Touch to create
 your own commercially licensed SDK, or mobile application builder. Because
 use cases can vary widely, Commercial OEM licenses are customized for each
 customer.


 On Mon, Oct 3, 2011 at 3:48 PM, Alfredo Quiroga-Villamil 
 laww...@gmail.com wrote:

 Hello Frank:

 The product is free to develop apps and it's under GPL as per Sencha's
 licensing page. We only charge for support in this case.

 Regards,

 Alfredo


 On Mon, Oct 3, 2011 at 3:29 PM, Frank Argueta 
 frank.argu...@gmail.comwrote:

 What kind of license terms are you using Sencha Touch under?

   On Mon, Oct 3, 2011 at 2:49 PM, Alfredo Quiroga-Villamil 
 laww...@gmail.com wrote:

  We said it and here you have it, our official release of Touch in
 Java is ready for action!

 www.emitrom.com/gwt4touch

 Visit us at our website and let us know how we can improve and make
 your development experience easier.

 Happy Coding!

 Emitrom Team


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


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




 --
 Alfredo Quiroga-Villamil

 AOL/Yahoo/Gmail/MSN IM:  lawwton


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




 --
 Alfredo Quiroga-Villamil

 AOL/Yahoo/Gmail/MSN IM:  lawwton


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




-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

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

Re: Simple GWT sample code from Eclipse does NOT run in Chrome!

2011-10-03 Thread Danux
I wanted to spare people go through my own code, so I simply create a
new web application project in Eclipse Indigo and compile the starter
code right away. When I click on the html page, I should see Web
Application Starter Project in large font, then Please enter your
name: with a text field and a send button. This works as it should in
Firefox, even in IE. In Chrome, all it shows is the two lines of text,
no text field and no send button either. I tried the same compiled
files on various Linux PCs with both Chrome and Firefox (with and
without dev plugins installed), as well as Windows XP with IE, Firefox
and Chrome again. On both platforms the web application starter code
works fine in Firefox (and IE), but not in Chrome. I don't think
resources fail to load, if Firefox sees everything, right? No, not
just an aesthetics problem, but widgets are missing. Should I maybe
revert back to JDK 1.6? An older GWT perhaps?

On Oct 3, 10:17 am, Isaac Truett itru...@gmail.com wrote:
 GWT apps work fine in Chrome for me. You'll have elaborate on the problem
 you're seeing. Just saying it doesn't display properly doesn't help diagnose
 your problem. Does the JS console show anything? How about the Developer
 Tools' Network tab? Any resources failing to load? Or is this just an
 aesthetic problem - alignment or font size or something like that?







 On Mon, Oct 3, 2011 at 1:34 AM, Danux danbozi...@gmail.com wrote:
  After wondering why my little app wouldn't display properly in my
  Chrome browser once compiled, but work fine in Firefox, I decided to
  create an empty new Web Application Project in Eclipse and let it ONLY
  generate the initial sample code, nothing else. After compiling that
  unaltered code (obfuscated or pretty), it WILL run properly in Firefox
  7.0 and IE 6.0, but NOT in Google Chrome (14.0.835.186). Is this some
  kind of joke? Please someone help me here.

  System: Linux Ubuntu 10.10 32-bit, Google Chrome 14, Firefox 7.0, IE
  6.0 (in Win XP), Java 1.7.0, GWT 2.4.0, Eclipse Indigo Service Rel. 1,
  GWT plugin installed for Eclipse and developer plugin for Chrome.

  --
  You received 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: Using FileUpload

2011-10-03 Thread Jim Douglas
Not in any reliable cross-browser way, but review this:

http://www.html5rocks.com/en/tutorials/file/dndfiles/#toc-selecting-files-input
http://dev.w3.org/2006/webapi/FileAPI/#file

On Oct 3, 9:19 am, Soumaya Ben Abdallah soumaya...@gmail.com wrote:
 Hi All,

 I was wondering, is there a way to get the last modified date of a
 file when using the FileUpload component?

 Thanx 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: Dart GWT

2011-10-03 Thread Stephen Haberman




 Not yet and therefore I'm asking those questions. Dart will be introduced 
 on 10-12th Oct. during the GOTO Conference.


Yeah, I'm really looking forward to the Dart introduction--I wrote a bit 
more in a blog post [1], but I think it has the potential to make GWT (or 
GWT next-gen) even better for developers.

- Stephen

[1] http://draconianoverlord.com/2011/10/03/reaction-to-dart.html

-- 
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/-/T0H0n4f-BqIJ.
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.



FileUpload and IE8

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

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

Any ideas?

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



Using Multiple Panels

2011-10-03 Thread paschn
Hello,

I have a problem with GWT using multiple panels.

I have the HTML file with two div elements,with ids mainData1 and
mainData2 and a java file like this:


public class MyProject implements EntryPoint {

private Label firstNameLabel = new Label(First name:);
private TextBox firstNameTextBox = new TextBox();

private Label lastNameLabel = new Label(Last name:);
private TextBox lastNameTextBox = new TextBox();



private FlexTable dataFlexTable2 = new FlexTable();
private Label captchaLettersLabel = new Label(Letters are not case-
sensitive);
private VerticalPanel mainPanel2 = new VerticalPanel();


public void onModuleLoad() {

//Assemble data table 1
dataFlexTable1.setWidget(0, 0, firstNameLabel);
dataFlexTable1.setWidget(0, 1, firstNameTextBox);
dataFlexTable1.setWidget(1, 0, lastNameLabel);
dataFlexTable1.setWidget(1, 1, lastNameTextBox);



//Assemble main panel 1
mainPanel1.add(getStartedLabel);
mainPanel1.add(dataFlexTable1);




 //Assemble data table 2
dataFlexTable2.setWidget(0, 0, captchaLettersLabel);

//Assemble main panel 2
mainPanel2.add(dataFlexTable2);

// Associate the Main panel 1 with the HTML host page.
RootPanel rootPanelStockList = RootPanel.get(mainData1);
rootPanelStockList.add(mainPanel1);

//RootPanel.get(mailData1).add(mainPanel1);

// Associate the Main panel 2 with the HTML host page.
RootPanel.get(mailData2).add(mainPanel2);
}


}

-- 
You received 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 Multiple Panels

2011-10-03 Thread paschn
Hello,
i m working with two panels and I have a problem I cannot solve.

A have an HTML file with 2 div elements with different ids (mainData1
and mainData2),
and a java file like this:


public class MyProject implements EntryPoint {


private Label firstNameLabel = new Label(First name:);
private TextBox firstNameTextBox = new TextBox();
private FlexTable dataFlexTable1 = new FlexTable();
private VerticalPanel mainPanel1 = new VerticalPanel();

private Label lastNameLabel = new Label(Last name:);
private TextBox lastNameTextBox = new TextBox();
private FlexTable dataFlexTable2 = new FlexTable();
private VerticalPanel mainPanel2 = new VerticalPanel();


public void onModuleLoad() {

//Assemble data table 1 and 2
dataFlexTable1.setWidget(0, 0, firstNameLabel);
dataFlexTable1.setWidget(0, 1, firstNameTextBox);
dataFlexTable2.setWidget(0, 0, lastNameLabel);
dataFlexTable2.setWidget(0, 1, lastNameTextBox);


//Assemble main panel 1
mainPanel1.add(dataFlexTable1);

//Assemble main panel 2
mainPanel2.add(dataFlexTable2);

   // Associate the Main panel 1 with the HTML host page.
   RootPanel.get(mailData1).add(mainPanel1);

  // Associate the Main panel 2 with the HTML host page.
  RootPanel.get(mailData2).add(mainPanel2);
}
}

I 've tried to create two java classes with the widgets of each panel
and an EntryPoint class with the onModuleLoad() method but it still
doesn't work. Any suggestions?
Can I have a small example like this to understand how it 's the
correct way to work with multiple panels?

-- 
You received 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: Simple GWT sample code from Eclipse does NOT run in Chrome!

2011-10-03 Thread David Given
On 03/10/11 21:45, Danux wrote:
 I wanted to spare people go through my own code, so I simply create a
 new web application project in Eclipse Indigo and compile the starter
 code right away. When I click on the html page...

Are you doing this from a file manager? That loads the HTML page into
the web browser via a file:// URL. Chrome doesn't support web apps via
the file scheme. Instead you'll need to serve up the web app via a
proper web server so that you can access it via a http:// URL.

-- 
┌─── dg@cowlark.com ─ http://www.cowlark.com ─
│
│ Under communism, man exploits man. Under capitalism, it's just the
│ opposite. --- John Kenneth Galbrith



signature.asc
Description: OpenPGP digital signature


Re: Using Spring servlets in GWT web apps

2011-10-03 Thread Tomasz Gawel
as to gwt-rpc simply make your RemoteServiceServlet implementation
also implement Spring's Controller interface. The rest goes
straightforward. Simply call doPost in your handleRequest
implementation and return null (no ModelAndView needed as doPost from
RemoteServiceServlet writes all needed directly into response).

for example see: 
http://code.google.com/p/google-web-toolkit-incubator/wiki/IntegratingWithSpring
(however the explanation (in comment) why to return null from
handleRequest seems to be incorrect for me)

as to other than rpc i simply used to paste module script tag into the
view (jsp or velocity) :).

-- 
You received 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: GWT4Touch Official Release!

2011-10-03 Thread Alain Ekambi
By the way a real live demo can be found here :
http://gwt4touch.appspot.com/

2011/10/3 Alfredo Quiroga-Villamil laww...@gmail.com

 Thanks Frank, appreciate it. Good catch we were linking back to the main
 license page. Made a change there and pointed now only to the GPL.

 Thanks for the help,

 Alfredo




 On Mon, Oct 3, 2011 at 4:18 PM, Frank Argueta frank.argu...@gmail.comwrote:

 Your product page http://www.emitrom.com/gwt4touch has a link to the
 license that indicates that the product is available under commercial
 license and GPL license.


 On Mon, Oct 3, 2011 at 4:15 PM, Alfredo Quiroga-Villamil 
 laww...@gmail.com wrote:

 Hi Frank, in this case we are not selling a commercially licensed SDK but
 releasing under GPL, but I hear you. We had a meeting with Sencha not too
 long ago and to make sure in this case we are going to setup another one.

 Thanks,

 Alfredo


 On Mon, Oct 3, 2011 at 3:59 PM, Frank Argueta 
 frank.argu...@gmail.comwrote:

 Before you invest a whole lot of effort into this you really should
 tread carefully. Sencha has a long history of license foul play. It's GPL
 but it's not, it's free but its not, it's a standard GPL license but it’s
 a proprietary Sencha commercial license!

 http://www.sencha.com/products/touch/license/
  Commercial OEM License (Paid license)

 This is the appropriate option if you want to use Sencha Touch to create
 your own commercially licensed SDK, or mobile application builder. Because
 use cases can vary widely, Commercial OEM licenses are customized for each
 customer.


 On Mon, Oct 3, 2011 at 3:48 PM, Alfredo Quiroga-Villamil 
 laww...@gmail.com wrote:

 Hello Frank:

 The product is free to develop apps and it's under GPL as per Sencha's
 licensing page. We only charge for support in this case.

 Regards,

 Alfredo


 On Mon, Oct 3, 2011 at 3:29 PM, Frank Argueta frank.argu...@gmail.com
  wrote:

 What kind of license terms are you using Sencha Touch under?

   On Mon, Oct 3, 2011 at 2:49 PM, Alfredo Quiroga-Villamil 
 laww...@gmail.com wrote:

  We said it and here you have it, our official release of Touch in
 Java is ready for action!

 www.emitrom.com/gwt4touch

 Visit us at our website and let us know how we can improve and make
 your development experience easier.

 Happy Coding!

 Emitrom Team


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


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




 --
 Alfredo Quiroga-Villamil

 AOL/Yahoo/Gmail/MSN IM:  lawwton


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




 --
 Alfredo Quiroga-Villamil

 AOL/Yahoo/Gmail/MSN IM:  lawwton


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




 --
 Alfredo Quiroga-Villamil

 AOL/Yahoo/Gmail/MSN IM:  lawwton


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

Re: Simple GWT sample code from Eclipse does NOT run in Chrome!

2011-10-03 Thread Danux
Yes! Thanks, mystery solved! Uploaded to my server and now it works.
It didn't even occur to me that Chrome wouldn't support web apps via
file:// URL. Anyway, thanks a bunch guys. Greatly appreciated.

On Oct 3, 3:34 pm, David Given d...@cowlark.com wrote:
 On 03/10/11 21:45, Danux wrote:

  I wanted to spare people go through my own code, so I simply create a
  new web application project in Eclipse Indigo and compile the starter
  code right away. When I click on the html page...

 Are you doing this from a file manager? That loads the HTML page into
 the web browser via a file:// URL. Chrome doesn't support web apps via
 the file scheme. Instead you'll need to serve up the web app via a
 proper web server so that you can access it via a http:// URL.

 --
 ┌─── dg@cowlark.com ─http://www.cowlark.com─
 │
 │ Under communism, man exploits man. Under capitalism, it's just the
 │ opposite. --- John Kenneth Galbrith

  signature.asc
  1KViewDownload

-- 
You received 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: Simple GWT sample code from Eclipse does NOT run in Chrome!

2011-10-03 Thread Thomas Broyer
If you're opening the file off the filesystem (rather than served by an HTTP 
server)n then that's the expected behavior (and expect other browsers to 
follow Chrome in the future). This is because each file:// URL should have 
its own origin; loading a *.cache.html in an iframe and trying to make it 
access its parent (as GWT does by default) thus violates the Same-Origin 
Policy.

-- 
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/-/kbgNgFeL4asJ.
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: Firefox v. Dev Plugin

2011-10-03 Thread Gregory Dougherty
Hi Chris,

Thanks for the info.  Have the Mozilla people posted some place WHY
they're doing that?  It strikes me a the kind of move that makes it
all the way to customer hostile. :-(

What would be involved in automating the plugin build process?  Are we
talking Maven + Ant + shell scripting?

And actually, this was more or less the answer I wanted to hear.  The
post was a why much more than a would you please fix.

FWIW, I finally found

ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/

Here you can get every Firefox release, not just the supported
ones.  One of the big frustrations of all this was the inability to
actually get my hands on the latest supported version, once the next
unsupported version came out (esp. since it seemed that every time a
new GWT Plugin came out, there'd be a new, unsupported version of
Firefox out before I could get my hands on the now supported
version).  Having that link takes this all from a major irritation to
a minor one.

Greg

On Oct 3, 1:51 pm, Chris Conroy con...@google.com wrote:
 I've mentioned this in other threads, but I'll repeat here: Under the new
 rapid-release model, Mozilla is intentionally breaking binary compatibility
 with xpcom components on every release. We are forced to rebuild for every
 platform with every release.

 Our existing processes for maintaining the plugin come from a time long
 before this model. Due to the number of platforms that we support, manually
 building a new release of the plugin takes a decent amount of time. Mozilla
 has said that the binary API can change up until the official release, so
 that rules out attempting to start on this work early. Moreover, future
 updates will almost certainly have real breaking changes that could require
 significant time to address.

 In the meantime, I would suggest running against whatever version of Firefox
 is supported. If some version specific issue comes up that you must debug
 before we can get a release out, then you may just have to build the plugin
 yourself. But, these 'major' releases are really quite minor. In
 all likelihood, any issue you want to debug in DevMode will surface in the
 same way in FF6 as in FF7.

 I know this isn't the answer you (or many people) want to hear, but that's
 the reality today.

 P.S.
 I would advise people on this list to be cautious about downloading plugin
 binaries from other people. It's much safer to build your own from source or
 wait for an official release.

 On Mon, Oct 3, 2011 at 10:19 AM, Gregory Dougherty gregdm...@gmail.comwrote:







  For those of us who debug our GWT apps in Firefox, and would kind of
  like to keep up to date on Firefox releases, could someone from Google
  give a quick rundown on why it is that each of the last three (four ?)
  Firefox releases has broken the Dev Plugin, apparently each in new
  ways?  Are the people working of Firefox just doing stupid things?
  Does the GWT Developer Plugin just assume that it must be incompatible
  with any X+1.0 release?

  Why is it that the Developer Plugin for Firefox only seems to get
  cleared for the current version of Firefox less than a week before
  the next (hyper critical, be sure to replace your previous version)
  version comes out?

  TIA,

  Greg

  --
  You received 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: Firefox v. Dev Plugin

2011-10-03 Thread Alan Leung


 What would be involved in automating the plugin build process?  Are we
 talking Maven + Ant + shell scripting?


Although they were usually minor, there are definitely changes in each
release.

I am trying to create scripts here and there but in reality, it is very hard
automatic  upstream API changes.


 And actually, this was more or less the answer I wanted to hear.  The
 post was a why much more than a would you please fix.

 FWIW, I finally found

 ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/

 Here you can get every Firefox release, not just the supported
 ones.  One of the big frustrations of all this was the inability to
 actually get my hands on the latest supported version, once the next
 unsupported version came out (esp. since it seemed that every time a
 new GWT Plugin came out, there'd be a new, unsupported version of
 Firefox out before I could get my hands on the now supported
 version).  Having that link takes this all from a major irritation to
 a minor one.

 Greg

 On Oct 3, 1:51 pm, Chris Conroy con...@google.com wrote:
  I've mentioned this in other threads, but I'll repeat here: Under the new
  rapid-release model, Mozilla is intentionally breaking binary
 compatibility
  with xpcom components on every release. We are forced to rebuild for
 every
  platform with every release.
 
  Our existing processes for maintaining the plugin come from a time long
  before this model. Due to the number of platforms that we support,
 manually
  building a new release of the plugin takes a decent amount of time.
 Mozilla
  has said that the binary API can change up until the official release, so
  that rules out attempting to start on this work early. Moreover, future
  updates will almost certainly have real breaking changes that could
 require
  significant time to address.
 
  In the meantime, I would suggest running against whatever version of
 Firefox
  is supported. If some version specific issue comes up that you must debug
  before we can get a release out, then you may just have to build the
 plugin
  yourself. But, these 'major' releases are really quite minor. In
  all likelihood, any issue you want to debug in DevMode will surface in
 the
  same way in FF6 as in FF7.
 
  I know this isn't the answer you (or many people) want to hear, but
 that's
  the reality today.
 
  P.S.
  I would advise people on this list to be cautious about downloading
 plugin
  binaries from other people. It's much safer to build your own from source
 or
  wait for an official release.
 
  On Mon, Oct 3, 2011 at 10:19 AM, Gregory Dougherty gregdm...@gmail.com
 wrote:
 
 
 
 
 
 
 
   For those of us who debug our GWT apps in Firefox, and would kind of
   like to keep up to date on Firefox releases, could someone from Google
   give a quick rundown on why it is that each of the last three (four ?)
   Firefox releases has broken the Dev Plugin, apparently each in new
   ways?  Are the people working of Firefox just doing stupid things?
   Does the GWT Developer Plugin just assume that it must be incompatible
   with any X+1.0 release?
 
   Why is it that the Developer Plugin for Firefox only seems to get
   cleared for the current version of Firefox less than a week before
   the next (hyper critical, be sure to replace your previous version)
   version comes out?
 
   TIA,
 
   Greg
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-toolkit@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.com.
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.

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



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



Re: Simple GWT sample code from Eclipse does NOT run in Chrome!

2011-10-03 Thread Danux
Yeah, I just wasn't thinking in that direction - at all. When two
browsers have no difficulty loading my local files and then Chrome
shows some stuff but not the widgets, then I suspected a bug in the
latest GWT or browser version maybe. Now that I know, I'll just upload
to the server, no biggie.

On Oct 3, 4:45 pm, Thomas Broyer t.bro...@gmail.com wrote:
 If you're opening the file off the filesystem (rather than served by an HTTP
 server)n then that's the expected behavior (and expect other browsers to
 follow Chrome in the future). This is because each file:// URL should have
 its own origin; loading a *.cache.html in an iframe and trying to make it
 access its parent (as GWT does by default) thus violates the Same-Origin
 Policy.

-- 
You received 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 add style to Hyperlink in UiBinder?

2011-10-03 Thread powwow
I did what you said below.  I can change the size of the link (when I
hover over the link I can make text shrink.)  However, the color does
not change.  I tried using different colors like #66 on hover, but
it is dark purple (visited.)  How do I change the color?

On Oct 3, 5:10 am, Sudhakar Abraham s.abra...@datastoregwt.com
wrote:
 Use the inline style sheet  ui:style/ui:style tag  in your ui.xml
 file.  Edit the property in your uibinder.  In HyperLink class, set
 the styleName property. Try the code below.

 //ui.xml file

 ?xml version=1.0 encoding=UTF-8?
 ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
         xmlns:g='urn:import:com.google.gwt.user.client.ui'
 ui:style
    .lgLink
    {
         color:green;
    }
    .lgLink:visited
    {
         font:bold 20px arial, sans-serif;
         color:#55;
         cursor:pointer;
         cursor:hand;
    }
   .lgLink:hover
   {
        font:bold 20px arial, sans-serif;
        color:red;
        cursor:pointer;
        cursor:hand;
   }
   /ui:style
  g:Hyperlink ui:field='linkName' width='500px'
 styleName='{style.lgLink}'/
 /UiBinder

 S. Abrahamwww.DataStoreGwt.com
 Persist objects directly in GAE

 On Oct 3, 11:14 am,powwowjimmy.w...@gmail.com wrote:







  I've looked and looked but I can't figure it out.

  I am doing this:

  g:Hyperlink ui:field='linkName' width='500px'
  styleName='{res.style.lgLink}'/

  In my css I am doing this:

  .lgLink{
          font:bold 20px arial, sans-serif;
          color:#55;
          cursor:pointer;
          cursor:hand;

  }

  In my ClientBundle I have this:

  public interface Style extends CssResource {
                  String lgLink();

  }

  But it doesn't work with I use UiBinder.  How do I get the link to
  change color?  On visited?  hover? etc?

  I tried this but it doesn't work either:

  .lgLink:visited{
          font:bold 20px arial, sans-serif;
          color:#55;
          cursor:pointer;
          cursor:hand;

  }

  I also tried:

  gwt-Hyperlink.lgLink:visited{
          font:bold 20px arial, sans-serif;
          color:#55;
          cursor:pointer;
          cursor:hand;

  }

  But the ClientBundle doesn't link that.  Any ideas?  Thanks.

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



Re: PlaceHistoryHandler for URL with multiple args

2011-10-03 Thread -sowdri-
Are you using 
PlaceTokenizerhttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/index.html?com/google/gwt/core/client/GWT.html?
 
If yes, they you can achieve what you are looking for using that. 

 One idea I can see is to make the place token the entire argument 
list.  So, in the above case it would look like: 
title=xxxauthor=yyypublisher=zzz.  Then I could parse each arg (are 
there any tools in GWT to help with this?). 

This is the way to go!

 Another idea would be to create a separate token for each argument. 
The place class may look like this

This is not supported, as GWT by default will consider the entire arg list 
as a single token only. i.e anything after the '#' in the url. Still you can 
have the constructor 

 public class BookSearchPlace extends Place 
{ 
public BookSearchPlace ( String title, String author, String 
publisher ) 

as such they are not related. 

-- 
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/-/1R1eu3LAsREJ.
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 add style to Hyperlink in UiBinder?

2011-10-03 Thread Konstantin Zolotarev
I think the best way will be to define style something like this:

a:hover {

   1. color: #06C;
   2. text-decoration: underline;

}

into global css file. Because same thing is defined into your theme css file 
and it may overwrite your one.
And you should place CSS file into right order. 

Take a look on CSS Priority 
http://hungred.com/useful-information/css-priority-order-tips-tricks/

It should help.

-- 
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/-/kCqfrRCNwfYJ.
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: GWT4Touch Official Release!

2011-10-03 Thread Konstantin Zolotarev
A little bug:
https://picasaweb.google.com/lh/photo/8z7AN3yoHVQFfH5c9KyHzUPaUYuYPNK_IbcBfo3gU0U?feat=directlink

Here is form example. And it couldn't be dragged down. I have no ability to 
see Bio field.
Android 2.2 (sdk emulator), android 2.3.4 (google nexus one).
http://gwt4touch.appspot.com/#Forms - link to example.

-- 
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/-/CgaVlCuRnA0J.
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: LocalHost and Same Origin Policy Question

2011-10-03 Thread Konstantin Zolotarev
What browser do you use ?
Is it into debug mode or in production ?

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



Building a GWT Framework

2011-10-03 Thread Ashton Thomas
I wanted to put some of my notes down for building a custom GWT Framework. I 
am not an expert and this is not a guide but I hope it helps. I 
greatly appreciate any feedback as well. Seems like a lot of new GWT 
developers struggle with the same issues:


http://ashtonthomas.posterous.com/building-a-gwt-framework

Hope it's not spam ;-)

-- 
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/-/h5036sMVdisJ.
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 Tutorial, and then ? How to learn reald world GWT development

2011-10-03 Thread Ashton Thomas
This may help from a higher level: 
http://ashtonthomas.posterous.com/building-a-gwt-framework

-- 
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/-/pACBnsveQbkJ.
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] [google-web-toolkit] r10677 committed - Remove entrDepthWatchdog exception reporting....

2011-10-03 Thread codesite-noreply

Revision: 10677
Author:   emmanu...@google.com
Date: Sun Oct  2 22:58:27 2011
Log:  Remove entrDepthWatchdog exception reporting.

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

Modified:
 /trunk/user/src/com/google/gwt/core/client/impl/Impl.java

===
--- /trunk/user/src/com/google/gwt/core/client/impl/Impl.java	Tue Sep  6  
06:11:27 2011
+++ /trunk/user/src/com/google/gwt/core/client/impl/Impl.java	Sun Oct  2  
22:58:27 2011

@@ -293,13 +293,7 @@
 // Note: this must NEVER be called nested in a $entry() call.
 // This method is call from a setTimeout: entryDepth should be set  
to 0.

 if (GWT.isScript()  entryDepth != 0) {
-  int oldDepth = entryDepth;
   entryDepth = 0;
-  if (GWT.getUncaughtExceptionHandler() != null) {
-// Report the problem.
-GWT.getUncaughtExceptionHandler().onUncaughtException(
-new IllegalStateException(Invalid entryDepth value  +  
oldDepth));

-  }
 }
 watchdogEntryDepthTimerId = -1;  // Timer has run.
   }

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


[gwt-contrib] Re: ui:with to set property values (issue1524803)

2011-10-03 Thread rjrjr

LGTM

I agree, I don't think you're making things worse, just subject to the
same problems that are already there. I'll submit this today or tomorrow
presuming Rafa doesn't shout me down.

Thanks for this!

On 2011/10/03 04:46:22, justin_hickman wrote:

Any updates to this issue?  From my investigations, the behavior with

the

ui:attributes element exhibits identical behavior to what is already

in

uibinder using just Widget references.




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

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


[gwt-contrib] Re: ui:with to set property values (issue1524803)

2011-10-03 Thread rjrjr

Justin, I'm having trouble applying the patch. Do you need to sync and
post a new one?

On 2011/10/03 17:19:57, rjrjr wrote:

LGTM



I agree, I don't think you're making things worse, just subject to the

same

problems that are already there. I'll submit this today or tomorrow

presuming

Rafa doesn't shout me down.



Thanks for this!



On 2011/10/03 04:46:22, justin_hickman wrote:
 Any updates to this issue?  From my investigations, the behavior

with the

 ui:attributes element exhibits identical behavior to what is

already in

 uibinder using just Widget references.




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

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


[gwt-contrib] Re: Design Time Access to UiBinder Model

2011-10-03 Thread Konstantin Scheglov
Basically these hooks allow you get notification about bean object creation 
and provide result for @UiField(provided=true) and @UiFactory.
That's all.

See implementation here:
http://www.google.com/codesearch#A1edwVHBClQ/user/src/com/google/gwt/uibinder/rebind/DesignTimeUtils.javact=rccd=1q=DesignTimeUtils
http://www.google.com/codesearch#A1edwVHBClQ/user/src/com/google/gwt/uibinder/rebind/DesignTimeUtilsImpl.javact=rccd=3q=DesignTimeUtils
UiBinder Designer implements interface DTObjectHandler.

Object handler =
Proxy.newProxyInstance(classLoader, new Class[]{handlerClass}, new 
InvocationHandler() {
  public Object invoke(Object proxy, Method method, Object[] args) 
throws Throwable {
if (method.getName().equals(handle)) {
  String path = (String) args[0];
  Object object = args[1];
  createModel(path, object);
}
if (method.getName().equals(provideFactory)) {
  Class? factoryType = (Class?) args[0];
  String methodName = (String) args[1];
  Object[] factoryArgs = (Object[]) args[2];
  return createProvidedFactory(m_context, factoryType, 
methodName, factoryArgs);
}
if (method.getName().equals(provideField)) {
  Class? fieldType = (Class?) args[0];
  String fieldName = (String) args[1];
  return createProvidedField(m_context, fieldType, fieldName);
}
return null;
  }
});
ReflectionUtils.setField(binder, dtObjectHandler, handler);

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

[gwt-contrib] [google-web-toolkit] r10678 committed - Fixed issue that was causing ERROR log messages due to duplicate cssma...

2011-10-03 Thread codesite-noreply

Revision: 10678
Author:   gwt.mirror...@gmail.com
Date: Mon Oct  3 12:47:54 2011
Log:  Fixed issue that was causing ERROR log messages due to duplicate  
cssmap file names.
Since there may be multiple css resources with the same base subtype (e.g.  
CssResource), the subtype class is not
guaranteed to be unique. Instead, the qualified resource getter method name  
is used which is unique.


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

Modified:
 /trunk/user/src/com/google/gwt/resources/rg/CssResourceGenerator.java
 /trunk/user/test/com/google/gwt/resources/rg/CssOutputTestCase.java

===
--- /trunk/user/src/com/google/gwt/resources/rg/CssResourceGenerator.java	 
Fri Sep 30 10:03:13 2011
+++ /trunk/user/src/com/google/gwt/resources/rg/CssResourceGenerator.java	 
Mon Oct  3 12:47:54 2011

@@ -445,9 +445,8 @@

 // Optimize the stylesheet, recording the class selector obfuscations
 MapJMethod, String actualReplacements = optimize(logger, context,  
method);

-
-outputCssMapArtifact(logger, context, actualReplacements,
-cssResourceSubtype.getQualifiedSourceName());
+
+outputCssMapArtifact(logger, context, method, actualReplacements);

 outputAdditionalArtifacts(logger, context, method, actualReplacements,
 cssResourceSubtype, stylesheet);
@@ -595,20 +594,26 @@
* Builds a CSV file mapping obfuscated CSS class names to their  
qualified source name and

* outputs it as a private build artifact.
*/
-  protected void outputCssMapArtifact(TreeLogger logger, ResourceContext  
context,

-  MapJMethod, String actualReplacements, String outputFileName) {
-String mappingFileName = cssResource/ + outputFileName + .cssmap;
+  protected void outputCssMapArtifact(TreeLogger logger, ResourceContext  
context, JMethod method,

+  MapJMethod, String actualReplacements) {
+// There may be several css resources that have the same css resource  
subtype (e.g. CssResource)
+// so the qualified accessor method name is used for the unique output  
file name.

+JClassType bundleType = method.getEnclosingType();
+
+String qualifiedMethodName = bundleType.getQualifiedSourceName() + .  
+ method.getName();

+
+String mappingFileName = cssResource/ + qualifiedMethodName  
+ .cssmap;


 OutputStream os = null;
 try {
   os = context.getGeneratorContext().tryCreateResource(logger,  
mappingFileName);

 } catch (UnableToCompleteException e) {
-  logger.log(TreeLogger.ERROR, Could not create resource:  +  
mappingFileName);
+  logger.log(TreeLogger.WARN, Could not create resource:  +  
mappingFileName);

   return;
 }

 if (os == null) {
-  logger.log(TreeLogger.ERROR, Created resource is null:  +  
mappingFileName);
+  logger.log(TreeLogger.WARN, Created resource is null:  +  
mappingFileName);

   return;
 }

@@ -625,13 +630,13 @@
   writer.flush();
   writer.close();
 } catch (IOException e) {
-  logger.log(TreeLogger.ERROR, Error writing artifact:  +  
mappingFileName);
+  logger.log(TreeLogger.WARN, Error writing artifact:  +  
mappingFileName);

 }

 try {
   context.getGeneratorContext().commitResource(logger,  
os).setVisibility(Visibility.Private);

 } catch (UnableToCompleteException e) {
-  logger.log(TreeLogger.ERROR, Error trying to commit artifact:  +  
mappingFileName);
+  logger.log(TreeLogger.WARN, Error trying to commit artifact:  +  
mappingFileName);

 }
   }

===
--- /trunk/user/test/com/google/gwt/resources/rg/CssOutputTestCase.java	Fri  
Sep 30 10:03:13 2011
+++ /trunk/user/test/com/google/gwt/resources/rg/CssOutputTestCase.java	Mon  
Oct  3 12:47:54 2011

@@ -49,23 +49,35 @@
  
EasyMock.expect(mockResourceContext.getGeneratorContext()).andReturn(mockGeneratorContext);

 EasyMock.expectLastCall().times(2);
 EasyMock.expect(mockGeneratorContext.tryCreateResource(
- 
testLogger, cssResource/test-file-name.cssmap)).andReturn(mockOutputStream);
+ 
testLogger, cssResource/com.test.Bundle.cssMethod.cssmap)).andReturn(mockOutputStream);
 EasyMock.expect(mockGeneratorContext.commitResource(testLogger,  
mockOutputStream)).andReturn(

 mockGeneratedResource);
+
+JMethod method = EasyMock.createMock(JMethod.class);
+JClassType bundleType = EasyMock.createMock(JClassType.class);
+EasyMock.expect(method.getEnclosingType()).andReturn(bundleType);
+ 
EasyMock.expect(bundleType.getQualifiedSourceName()).andReturn(com.test.Bundle);

+EasyMock.expect(method.getName()).andReturn(cssMethod);
+
 EasyMock.replay(mockResourceContext);
 EasyMock.replay(mockGeneratorContext);
+EasyMock.replay(method);
+EasyMock.replay(bundleType);

 CssResourceGenerator crg = new CssResourceGenerator();
-crg.outputCssMapArtifact(testLogger, mockResourceContext,  
testMap, 

[gwt-contrib] Re: Hosted mode without plugin

2011-10-03 Thread Tomasz Gawel
Fresh idea.
and what about implementing debugger in an applet? :)

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


Re: [gwt-contrib] Re: Hosted mode without plugin

2011-10-03 Thread Eric Ridge
Not real fresh, but still edible...

I send the below to the google-web-tool...@googlegroups.com list last
week, but I can't find a link to it via groups.google.com.  Maybe it
got held for moderation?

eric

---

Anyways, I think it's entirely possible.

Here's the solution -- ditch the plugins entirely.

Instead, develop a Java applet that functions as a JPDA server that
knows how to translate the state of the running GWT app into the JPDA
protocol so a remote Java debugger can understand it.  The applet
would be embedded into the module's primary .html page.

The concept of devmode basically goes away and instead the GWT
compiler would have a DEBUG output format which would include code
that passes state information to the JPDA Java applet as the
javascript executes.

Have youse guys considered anything like this?  The JPDA applet is
just a SMOP, but I'd have to guess adding a DEBUG output format to
the GWT compiler would be pretty big.  F5/Refresh performance would
need consideration in this too.

It's a totally half-baked idea right now, but I wanted to toss it out
to see if the smarties at google think it's worth further thought.


On Mon, Oct 3, 2011 at 6:22 PM, Tomasz Gawel tomaszga...@op.pl wrote:
 Fresh idea.
 and what about implementing debugger in an applet? :)

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


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


[gwt-contrib] Re: ui:with to set property values (issue1524803)

2011-10-03 Thread Rafael Castro
No shouting from here :-)

As soon as we get the attributes thing out of the way, maybe we should sit
down and try to figure out some definite solution for this precedence thing?

On Mon, Oct 3, 2011 at 2:19 PM, rj...@google.com wrote:

 LGTM

 I agree, I don't think you're making things worse, just subject to the
 same problems that are already there. I'll submit this today or tomorrow
 presuming Rafa doesn't shout me down.

 Thanks for this!


 On 2011/10/03 04:46:22, justin_hickman wrote:

 Any updates to this issue?  From my investigations, the behavior with

 the

 ui:attributes element exhibits identical behavior to what is already

 in

 uibinder using just Widget references.




 http://gwt-code-reviews.**appspot.com/1524803/http://gwt-code-reviews.appspot.com/1524803/


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