Re: How to integrate an open source web app into a GWT application

2010-08-17 Thread Anita
Hello,

First of all, thank you VERY MUCH for your answers!!!
Bakul, i've tried this solution, but i need to catch events from the
existing application. For example, i need that if i click a button on
this application, the second application(on the other frame) have to
do something predefined. ¿How can i do that if i use frames as you're
suggesting me?

Regards,
Anita

On 16 ago, 16:38, Bakul bakul.ku...@gmail.com wrote:
 Create your main HTML/JSP which will have html frame set code like
 this:

 

 frameset COLS=20%,50%, 30%
 frame NAME=opensourceExistingApp SRC='urlOfOpenSourceExistingApp'
 frame NAME=GWTApp SRC='urlOfGWTApp'
 frame NAME=ThirdApp SRC='urlOfThirdApp'
 /frameset

 
 urlOfOpenSourceExistingApp : should Points to your existing open
 source web url
 urlOfGWTApp: should point to your GWT Application
 urlOfThirdApp: should point to third application

 -Bakul

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



Re: How to integrate an open source web app into a GWT application

2010-08-17 Thread Anita
Hello Suersh,

With this solution, ¿How can i solve the problem of catching the
events on one application and doing something on the others?
Thank you very much!!!

Regards,
Anita


On 16 ago, 16:41, suersh babu sureshgbab...@gmail.com wrote:
 use div give id so that each id display differerent different information .



 On Thu, Aug 5, 2010 at 3:19 PM, Anita anapont...@gmail.com wrote:
  Hi,

  I’m new on GWT and i’m trying to do something but don´t know how…. My
  app has 2 panels (HorizontalSplitPanel and VerticalSplitPanel), in a
  way that i have my window divided in 3 parts. In each part i want 3
  differents app to be runing. One of them is an open source web app,
  written in Java/JSP(no GWT), but i don´t know how to integrate it, in
  a way that i can access de events generated by it. I’m a little lost
  and any help would be very usefull.
  Thank in advance.
  Regards,

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

 --
 your's truely

 suresh babu.g

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



Re: How to integrate an open source web app into a GWT application

2010-08-17 Thread Anita
Hello Suersh,

With this solution, ¿How can i solve the problem of catching the
events on one application and doing something on the others?
Thank you very much!!!

Regards,
Anita


On 16 ago, 16:41, suersh babu sureshgbab...@gmail.com wrote:
 use div give id so that each id display differerent different information .



 On Thu, Aug 5, 2010 at 3:19 PM, Anita anapont...@gmail.com wrote:
  Hi,

  I’m new on GWT and i’m trying to do something but don´t know how…. My
  app has 2 panels (HorizontalSplitPanel and VerticalSplitPanel), in a
  way that i have my window divided in 3 parts. In each part i want 3
  differents app to be runing. One of them is an open source web app,
  written in Java/JSP(no GWT), but i don´t know how to integrate it, in
  a way that i can access de events generated by it. I’m a little lost
  and any help would be very usefull.
  Thank in advance.
  Regards,

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

 --
 your's truely

 suresh babu.g

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



Re: How to integrate an open source web app into a GWT application

2010-08-17 Thread Anita
Hello Suersh,

With this solution, ¿How can i solve the problem of catching the
events on one application and doing something on the others?
Thank you very much!!!

Regards,
Anita


On 16 ago, 16:41, suersh babu sureshgbab...@gmail.com wrote:
 use div give id so that each id display differerent different information .



 On Thu, Aug 5, 2010 at 3:19 PM, Anita anapont...@gmail.com wrote:
  Hi,

  I’m new on GWT and i’m trying to do something but don´t know how…. My
  app has 2 panels (HorizontalSplitPanel and VerticalSplitPanel), in a
  way that i have my window divided in 3 parts. In each part i want 3
  differents app to be runing. One of them is an open source web app,
  written in Java/JSP(no GWT), but i don´t know how to integrate it, in
  a way that i can access de events generated by it. I’m a little lost
  and any help would be very usefull.
  Thank in advance.
  Regards,

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

 --
 your's truely

 suresh babu.g

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



Re: How to integrate an open source web app into a GWT application

2010-08-17 Thread Anita
Hello Suersh,

With this solution, ¿How can i solve the problem of catching the
events on one application and doing something on the others?
Thank you very much!!!

Regards,
Anita


On 16 ago, 16:41, suersh babu sureshgbab...@gmail.com wrote:
 use div give id so that each id display differerent different information .



 On Thu, Aug 5, 2010 at 3:19 PM, Anita anapont...@gmail.com wrote:
  Hi,

  I’m new on GWT and i’m trying to do something but don´t know how…. My
  app has 2 panels (HorizontalSplitPanel and VerticalSplitPanel), in a
  way that i have my window divided in 3 parts. In each part i want 3
  differents app to be runing. One of them is an open source web app,
  written in Java/JSP(no GWT), but i don´t know how to integrate it, in
  a way that i can access de events generated by it. I’m a little lost
  and any help would be very usefull.
  Thank in advance.
  Regards,

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

 --
 your's truely

 suresh babu.g

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



Re: How to integrate an open source web app into a GWT application

2010-08-17 Thread Anita
Hello Suersh,

With this solution, ¿How can i solve the problem of catching the
events on one application and doing something on the others?
Thank you very much!!!

Regards,
Anita


On 16 ago, 16:41, suersh babu sureshgbab...@gmail.com wrote:
 use div give id so that each id display differerent different information .



 On Thu, Aug 5, 2010 at 3:19 PM, Anita anapont...@gmail.com wrote:
  Hi,

  I’m new on GWT and i’m trying to do something but don´t know how…. My
  app has 2 panels (HorizontalSplitPanel and VerticalSplitPanel), in a
  way that i have my window divided in 3 parts. In each part i want 3
  differents app to be runing. One of them is an open source web app,
  written in Java/JSP(no GWT), but i don´t know how to integrate it, in
  a way that i can access de events generated by it. I’m a little lost
  and any help would be very usefull.
  Thank in advance.
  Regards,

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

 --
 your's truely

 suresh babu.g

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



Re: Reusing GWT Localization in Server Side Code

2010-08-17 Thread Joe Cole
What we do is use this code pattern:

public interface IMessages {
   public MyMessages get(); // your messages interface
}
public class Messages {
   private static IMessages messages;
   public static MyMessages get() { return messages.get(); }
   public static void set(IMessages messages) //etc
}

Then in our server side initialisation we use:

ServerMessages implements IMessages {
public MyMessages get(){
// note, basically pseudocode
Properties properties = new Properties();
InputStream in = // find yours
properties.load(in);
return (MyMessages)
Proxy.newProxyInstance(getClass().getClassLoader(), new Class[]
{ MyMessages.class },
new GWTMessageProxy(properties));
}
}

public class GWTMessageProxy implements InvocationHandler {

private final Properties properties;

public GWTMessageProxy(Properties properties) {
super();
this.properties = properties;
}

public Object invoke(Object proxy, Method method, Object[] args)
throws Throwable {
String property = 
String.valueOf(properties.get(method.getName()));
if (args != null  args.length  0) {
// we have a messages class...
return MessageFormat.format(property, args);
}
return property;
}

}

When you initialize your client side system, simply initialize your
messages with a client-side-only version that uses gwt localization.
Similarly, your tests probably need a different setup method, so just
initialise a custom class for that as well. It's kind of like manual
guice, but it doesn't have to be done that often so isn't a big deal.

This pattern works for everything, so we use it for NumberFormats 
DateFormatting and all sorts of other code that need to be shared
between client, server, tests etc.

If anyone has any better ideas please sing out!

Joe
On Aug 17, 7:20 am, Casey j.casey.one...@gmail.com wrote:
 Does anyone know if with Google Web Toolkit there is an easy way to
 reuse your client size localization files (constants and messages) in
 the server side code? I think in GWT 1.6 or 1.8 you could actually
 call the same GWT localization code on the server side that you called
 on the client side. I just upgraded from 1.6 to 2.0 and all of a
 sudden I'm receiving the following message: ERROR: GWT.create() is
 only usable in client code! That makes sense to me but there must be
 an easy way to reuse your Constant and Message files on the server.
 It's been awhile since I've opened this project but I'm pretty sure
 that this was working before. Thanks 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: No tag for 2.0.4 in SVN

2010-08-17 Thread Karel Piwko
Could somebody from developers verify if it is

releases/2.0:r8340

or

releases/2.0:r8322

according to the date when 2.0.4 was released?

Thanks,

Karel


On Wed, 2010-08-11 at 05:08 -0700, Karel Piwko wrote:
 Hi,
 
 I haven't been able to find the tag for 2.0.4 at
 http://google-web-toolkit.googlecode.com/svn/tags/2.0.4/.
 
 Could you create it and specify the revision number of
 http://google-web-toolkit.googlecode.com/svn/release/2.0 or another
 branch the tag was created from?
 
 Thanks,
 
 Karel
 


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



Re: why we probably won't use GWT for a large UI project

2010-08-17 Thread marius.andreiana
I'd like to thank everybody for the discussion. I've updated the
findings in the document below.
https://docs.google.com/document/edit?id=16rQknO-r3ZqfMbuIl0R52OnFcWBCOKTPm1wDCzSQgvUhl=en
I'll probably keep this doc updated and public, in case it helps
anybody.

From all the non-.NET technologies we considered, GWT with SmartGWT
REST data sources is actually meeting our needs.
We will investigate closer another alternative, using the same
technology as our back-end (.NET).

Thanks again,
Marius

On Aug 10, 11:27 am, marius.andreiana marius.andrei...@gmail.com
wrote:
 Hi,

 We're working on a large project, which has the back-end is written in
 a non-Java technology, with REST APIs. We're looking for a framework
 to replace the current UI.

 I did a brief analysis of using 
 GWT:https://docs.google.com/document/edit?id=16rQknO-r3ZqfMbuIl0R52OnFcWB...

 I'm looking to get this group's feedback before I present my findings
 to the team. What do you think?

 Thanks,
 Marius

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



html5 drag-and-drop multiple file upload

2010-08-17 Thread marius.andreiana
Hi there,

What would be the steps to implement html5 drag-and-drop multiple file
upload in GWT, as seen at 
http://www.appelsiini.net/2009/10/html5-drag-and-drop-multiple-file-upload
?

One approach would be implementing HTML5 file api support in gwt-
mobile-webkit, and then use this library and gwt-dnd library to
implemented the complete functionality demo'ed above.
Is there an easier way?

Thanks.

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



GWT serialization

2010-08-17 Thread Ciarán
Hi, I am currently working on a GWT app that requires me  to
serializes an object client side into maybe XML/JSON or anything
really. Then save that serialized object as a xml/json/.ser file. Then
at a later date read that file and reconstruct my object from it.

I have been searching for days for an answer to this, used several
external library, read tutorials, GWT documentation and I still not
closer to a solution. Am I totally missing something here? It was very
easy to do this in plan Java, but GWT I just can seem to get it
working.

Thanks

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



Re: No tag for 2.0.4 in SVN

2010-08-17 Thread Thomas Broyer


On 17 août, 12:35, Karel Piwko kpi...@redhat.com wrote:
 Could somebody from developers verify if it is

 releases/2.0:r8340

 or

 releases/2.0:r8322

 according to the date when 2.0.4 was released?

Well, you do have the source and the changes, so you can just compare
what's in 2.0.4 with what's in each of these revisions, no?
That being said, I believe 2.0.4 is just the latest change of the
releases/2.0 branch.

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



Re: GWT serialization

2010-08-17 Thread aditya sanas
Hi

The basic requirement for you is to deal with XML file

So we have jxl.jar which provides APIs to interact with tags and elements in
xml so

using these API's that are generally known as XML parsers that is SAX or DOC
parsers.

so use by using these parsers you will be able to deal with XML files.

It wont be that difficult for you once you learn how to use these parsers.

You will need external jar file jxl.jar


--
Aditya


On Tue, Aug 17, 2010 at 6:00 PM, Ciarán ciaran.mccann@gmail.com wrote:

 Hi, I am currently working on a GWT app that requires me  to
 serializes an object client side into maybe XML/JSON or anything
 really. Then save that serialized object as a xml/json/.ser file. Then
 at a later date read that file and reconstruct my object from it.

 I have been searching for days for an answer to this, used several
 external library, read tutorials, GWT documentation and I still not
 closer to a solution. Am I totally missing something here? It was very
 easy to do this in plan Java, but GWT I just can seem to get it
 working.

 Thanks

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



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



Re: Reusing GWT Localization in Server Side Code

2010-08-17 Thread KenJi_getpowered
Why can't you just use resource bundle to get messages?


On 17 août, 10:49, Joe Cole profilercorporat...@gmail.com wrote:
 What we do is use this code pattern:

 public interface IMessages {
    public MyMessages get(); // your messages interface}

 public class Messages {
    private static IMessages messages;
    public static MyMessages get() { return messages.get(); }
    public static void set(IMessages messages) //etc

 }

 Then in our server side initialisation we use:

 ServerMessages implements IMessages {
     public MyMessages get(){
                 // note, basically pseudocode
                 Properties properties = new Properties();
                 InputStream in = // find yours
                 properties.load(in);
                 return (MyMessages)
 Proxy.newProxyInstance(getClass().getClassLoader(), new Class[]
 { MyMessages.class },
                                 new GWTMessageProxy(properties));
     }

 }

 public class GWTMessageProxy implements InvocationHandler {

         private final Properties properties;

         public GWTMessageProxy(Properties properties) {
                 super();
                 this.properties = properties;
         }

         public Object invoke(Object proxy, Method method, Object[] args)
 throws Throwable {
                 String property = 
 String.valueOf(properties.get(method.getName()));
                 if (args != null  args.length  0) {
                         // we have a messages class...
                         return MessageFormat.format(property, args);
                 }
                 return property;
         }

 }

 When you initialize your client side system, simply initialize your
 messages with a client-side-only version that uses gwt localization.
 Similarly, your tests probably need a different setup method, so just
 initialise a custom class for that as well. It's kind of like manual
 guice, but it doesn't have to be done that often so isn't a big deal.

 This pattern works for everything, so we use it for NumberFormats 
 DateFormatting and all sorts of other code that need to be shared
 between client, server, tests etc.

 If anyone has any better ideas please sing out!

 Joe
 On Aug 17, 7:20 am, Casey j.casey.one...@gmail.com wrote:

  Does anyone know if with Google Web Toolkit there is an easy way to
  reuse your client size localization files (constants and messages) in
  the server side code? I think in GWT 1.6 or 1.8 you could actually
  call the same GWT localization code on the server side that you called
  on the client side. I just upgraded from 1.6 to 2.0 and all of a
  sudden I'm receiving the following message: ERROR: GWT.create() is
  only usable in client code! That makes sense to me but there must be
  an easy way to reuse your Constant and Message files on the server.
  It's been awhile since I've opened this project but I'm pretty sure
  that this was working before. Thanks 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Catch focus event with NativePreviewHandler

2010-08-17 Thread Alexander Ulizko
Hi all.

I have come across the following issue.
I have a js web application which I had decided to rewrite using GWT.
So far everything goes smoothly except for one small problem: there's
a search form that consists of a single text input. I have to simulate
html5 placeholder attribute: to remove the fields' default value on
focus, and to show default value again on blur if the input is left
blank.

I tried to implement it this way:

// query-search-form - that input id
DOM.setEventListener(DOM.getElementById(query-search-form), new
EventListener() {
public void onBrowserEvent(Event event) {
if (event.getTypeInt() == Event.ONFOCUS) {
Window.alert(it handles!); // doesn't work
}

GWT.log(does any event catched at all?); // doesn't work.
looks like it doesn't catch any event at all
}
});



Event.addNativePreviewHandler(new Event.NativePreviewHandler() {
public void onPreviewNativeEvent(Event.NativePreviewEvent preview)
{
NativeEvent event = preview.getNativeEvent();

// seems like it catches all general events, like click,
mouseon, mouseover and so on, but not focus or blur
GWT.log(what type of event has been captured?  +
event.getType());


Element input = event.getEventTarget().cast();
if (event.getType().equalsIgnoreCase(focus) 
input.getId().equals(query-search-form)) {
Window.alert(gotcha!); // doesn't work
return;
}


preview.consume();
}
});


Any suggestions?

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



Encoding

2010-08-17 Thread sgt dwarf
Hello, many thanks to all of you but I still have an encoding problem.
I put the project's text file encoding property to UTF-8 deleted the
GWT built folder and then built the project again but the é and other
special characters appear not to be supported :-(

Environement : myEclipse 8.5 / GWT 2.0.3

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



ResourceBundle with CSS and obfuscation

2010-08-17 Thread Fratelli
Hello,

I'm using CssResource::ensureInjected() to inline my styles into the
host page.

So the thing is: everything worked just fine until I started
redefining some GWT style classes (ie, gwt-TabBarItem). The changes
didn't apply because the names are being obfuscated in the host page,
but the predefined GWT widgets use the unobfuscated names. So I did
some reading, and thought that @external would do the trick. Say:

@ClassName(gwt-TabBarItem)
public String tabBarItem();

But it doesn't. Now it tells me that it failed to resolve the
ClientBundle (CssBundle, in this case).

What should I do?

Best regards

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



Run time designing ( Dynamic text boxes )

2010-08-17 Thread AJAY SINGH AZAD
So, the problem: My concept is that  application reads a integer
from a TextBox after the user wrote it in there e.g. 3 and then
creates 3 new TextBoxes.

Reply ASAP

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



JS works in html file but not in httpServlet

2010-08-17 Thread poe
Hi everybody,

i've got a problem. When I include my main,nocache.js in an html file
everything works fine when I run it from a httpServlet nothing is
loading. Well the HTML from the servlet is loading but the javascript
isn't working. The link works, I can see it in the sources. What am I
doing wrong here?

Greets
Poe

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



Re: incubator SCrollTable scroll position.

2010-08-17 Thread Romaint2b
Hi,
I was searching for the same thing whn i found your post.
Did you find a solution in order to know the scroll position?

Thanks

Romain


On 22 juin, 14:59, Subhrajyoti Moitra subhrajyo...@gmail.com wrote:
 Hello Folks,

 I am using incubator gen2 ScrollTable. I have a use case, wherein i have to
 detect that when the user has scrolled to the last row (or somewhere around
 the last row), then load a fresh set of rows in the table, via a rpc call.
 TO achieve this i have extented ScrollTable and implemented
 HasScrollHandlers.

 public class UbqScrollTable extends ScrollTable implements HasScrollHandlers
 {

     public UbqScrollTable(FixedWidthGrid dataTable,
             FixedWidthFlexTable headerTable) {
         super(dataTable, headerTable);

     }

     public HandlerRegistration addScrollHandler(ScrollHandler handler) {

         return addDomHandler(handler, ScrollEvent.getType());
     }

 }

 And later in some other view i am setting up this table, and the initial
 data to go along with it.
 When trying to get the scroll position, i do this. st is the scrolltable.

 st.addScrollHandler(new ScrollHandler() {

             public void onScroll(ScrollEvent event) {
                 int top=event.getRelativeElement().getScrollTop();
                 int
 scrollHeight=event.getRelativeElement().getScrollHeight();
                 int left=event.getRelativeElement().getScrollLeft();
                 int width=event.getRelativeElement().getScrollWidth();

                 GWT.log(Scroll data: top: +top+, scrollHeight:
 +scrollHeight+, y: +event.getNativeEvent().getScreenY()+, x:
 +event.getNativeEvent().getScreenX()+, left: +left+, wiodth: +width+,
 class: +event.getSource().getClass().getName());
                 GWT.log(Top:
 +st.getDataTable().getElement().getScrollTop());
                 GWT.log(Height:
 +st.getDataTable().getElement().getScrollHeight());
                 //st.getElement().setScrollTop(50);
             }
         });

 All the values top, height, left, width are all constant and not changing. I
 know there is something wrong with my understanding. Please help.

 How do i get the scroll position, or Detect that the user is viewing the
 last few rows of the scroll table so load new rows from backend?

 Please help.

 Thanks,
 Subhro.

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



Google gwt objects serialization/desirialization and integration with the database

2010-08-17 Thread Tadas Davidsonas
Dear professionals,

I want to save gwt classes object in the database and later to
retrieve them back for use. Imagine that I have a class:

Pages{
  String pageName;
  String pageUrl;
}

and create an object:

Pages page1 = new Pages();

How can I:

1) Serialize 'page1' object.
2) Sent it to database with php
3) get to gwt again
4) desirealize and use it

Serialize and desirealize parts are the most important to me. Best
wishes to you and I'm waiting your help. I haven't found any tutorial
for this which works without bugs.

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



Re: EclEmma + GwtTestCase + GwtGenerator exception

2010-08-17 Thread Island
I am facing the same problem when I try to collect the code coverage
data, and here is the stack trace:

21:10:59.578 [ERROR] [splat] Failed to create an instance of
'com.splat.client.SplatService' via deferred binding
com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error
during visit.
at
com.google.gwt.dev.js.ast.JsVisitor.translateException(JsVisitor.java:
462)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:
448)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:
421)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
at
com.google.gwt.dev.js.JsToStringGenerationVisitor.visit(JsToStringGenerationVisitor.java:
801)
at com.google.gwt.dev.js.ast.JsVars$JsVar.traverse(JsVars.java:56)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:
446)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:
421)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
at
com.google.gwt.dev.js.JsToStringGenerationVisitor.visit(JsToStringGenerationVisitor.java:
814)
at com.google.gwt.dev.js.ast.JsVars.traverse(JsVars.java:89)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:
446)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:
421)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
at
com.google.gwt.dev.js.JsToStringGenerationVisitor.printJsBlock(JsToStringGenerationVisitor.java:
873)
at
com.google.gwt.dev.js.JsSourceGenerationVisitor.visit(JsSourceGenerationVisitor.java:
48)
at com.google.gwt.dev.js.ast.JsBlock.traverse(JsBlock.java:43)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:
446)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:
421)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
at
com.google.gwt.dev.shell.Jsni.generateJavaScriptForHostedMode(Jsni.java:
253)
at
com.google.gwt.dev.shell.Jsni.getJavaScriptForHostedMode(Jsni.java:
240)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.createNativeMethods(ModuleSpaceOOPHM.java:
46)
at
com.google.gwt.dev.shell.CompilingClassLoader.injectJsniMethods(CompilingClassLoader.java:
1214)
at
com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java:
1039)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at
com.splat.client.SplatService_Proxy.clinit(SplatService_Proxy.java:
14)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at
com.google.gwt.dev.shell.ModuleSpace.loadClassFromSourceName(ModuleSpace.java:
580)
at
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
415)
at
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:39)
at com.google.gwt.core.client.GWT.create(GWT.java:98)
at com.splat.client.SplatGxt.onModuleLoad(SplatGxt.java:97)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
369)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
185)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
380)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
222)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException: null
at com.google.gwt.dev.shell.CompilingClassLoader
$MyInstanceMethodOracle.findOriginalDeclaringClass(CompilingClassLoader.java:
409)
at com.google.gwt.dev.shell.rewrite.RewriteRefsToJsoClasses
$MyMethodAdapter.visitMethodInsn(RewriteRefsToJsoClasses.java:83)
at com.google.gwt.dev.asm.ClassReader.accept(ClassReader.java:
1371)
at com.google.gwt.dev.asm.ClassReader.accept(ClassReader.java:420)
at
com.google.gwt.dev.shell.rewrite.HostedModeClassRewriter.rewrite(HostedModeClassRewriter.java:
244)
at
com.google.gwt.dev.shell.CompilingClassLoader.findClassBytes(CompilingClassLoader.java:
1157)
at
com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java:
985)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at com.google.gwt.dev.shell.CompilingClassLoader
$DispatchClassInfoOracle.getClassFromBinaryName(CompilingClassLoader.java:
236)
at com.google.gwt.dev.shell.CompilingClassLoader
$DispatchClassInfoOracle.getClassFromBinaryOrSourceName(CompilingClassLoader.java:
266)
at 

GWT + Hibernate problem (Unknown entity exception)

2010-08-17 Thread Bancika
I'm using hibernate to map my data in GWT and have some weird
problems. Here's my setup.

* HSQL database
* entity class is in client folder
* annotated class (tried with hbm.xml file, same result)

the problem is that my mapped class does not get registered in the
config for some reason. I tried adding the mapped class through
hibernate.cfg.xml and directly into the configuration with the same
result.

AnnotationConfiguration config = new
AnnotationConfiguration();

config.addAnnotatedClass(com.bancika.client.data.User.class);
config.configure();

If I test config immediately after this, it appears that no classes
have been registered. Also, if I try session.save(user) it throws
Unknown entity exception.

Is there anything I missed in the config that should be done when
using hibernate with gwt? I've been using it in java ee for years
without these problems.

Thanks,
Bane

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



setting checkbox position

2010-08-17 Thread Dave Combs
I notice that GWT's Checkbox is implemented as a span + widget, so
that it can keep the label and the widget together.  Adding a style
adds it to the span.  How can I style a Checkbox widget via CSS so
that it has absolute positioning in it's parent container?  I'm
creating a UI that sets most items to absolute positions--it doesn't
want thing to float or move around when the page resizes.  As of now,
the checkboxes don't even show up in their containing div.

Thanks!
Dave

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



Textarea count

2010-08-17 Thread megala dhinakaran
I am looking into a solution where when you type text into the
TextArea it should notify the user how many characters are left to
enter. Like you can only enter 200 or something.

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



Ensuring a debug ID for a column header using ColumnConfig

2010-08-17 Thread Madalina Ionita
Hi,

I'm using GXT ColumnConfig class to create a table in a web
application. My problem is that I don't know how to ensure a debug ID
for each column header. I want to use the ensureDebugId() method, but
the getHeader() method of the ColumnConfig class returns a String, not
a ColumnHeader object, which would have allowed me to call the
ensureDebugId method and, of course, I can't modify the ColumnHeader
class from GXT. How can I get to the column header after instantiating
a ColumnConfig? Has anyone on this group ever worked with this kind of
structure or has any knowledge in this respect? I would be very
grateful if you could help me. Any ideas will do.

Thank you,
Madalina.

P.S.: Here is a sample of my code:

column = new ColumnConfig ();
column.setId(callDate);
column.setWidth(150);
column.setMenuDisabled(true);
column.setHeader(lm.get(CallStartTimeSHORT));
column.setRenderer(dateRenderer);
configs.add(column);

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



Google Web Toolkit

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



Debug or Run in eclipse does nothing with additional jars

2010-08-17 Thread Jg
Hi,
I'm new to GWT, I've got eclipse and the GWT plugin set up. I've then
created a new GWT project which creates the greet servlet example.
This did run fine.

I'm trying to add some code to the servlet which makes use of a 3rd
party jar file. But I'm not sure how to add the jar files in eclipse.

I've put these jars in war/WEB-INF/lib, and added them to my project
properties - Java Build Path - Libraries. Now when I run the
project, I get nothing. I select debug web application, then in the
Development Mode tab, I do not see the URL to test the application.

If I then remove these jar files, I can see the URL in the
Development Mode tab when I debug web application.

Note: I have not added any code to use the new jar files yet. Just
added the jar files to the build path.

I don't see any errors, is there a web service error console I can
enable?

Thanks

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



Can DateTimeConstants and NumberConstants be derived from a Dictionary in the same way that localized strings can

2010-08-17 Thread snayrb99

Yes I understand how localization works and yes I understand the
benefits of the way GWT handles localization and yes I am yet another
whiner complaining about the speed of the compiles when localization
is turned on and yes I know about speeding up compiles using -
localWorkers etc, etc.

Anyway, I have an app and I'm using a Dictionary for localized strings
and everything works great and whatever performance benefits I lose
from not using compile time checking I can live with. The number of
strings included in the dictionary is quite small. I would like to use
the same technique for accessing DateTimeConstants and
NumberConstants. Looking at LocaleInfo, there does not seem to be an
easy way to access these constants using a dictionary technique.

We use continuous integration for the builds which get deployed to a
QA environment on a frequent basis. This build will get deployed to a
production environment without recompilation. I recently added two
locales and my build time jumped from 6 to 14 minutes. As we
anticipate adding more locales the build time will increase even more.
We want to make all locales available in the QA environments and don't
want to push out a special build after testing in English.

Is there a way of accessing the constants using a dictionary
technique? If not, is there a way I can customize the build so that I
can insert my own version of LocaleInfoImpl to load the constants from
a dictionary?

As an aside, if localized strings can be accessed from a dictionary,
why not provide access to the constants in same way?

I would appreciate any input.

Thanks.

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



Client model objects input to == HTTPServlet

2010-08-17 Thread vinod
Hi,

I have a requirement to export entries on my GWT Table Grid on to a
XLS file. I am using direct HttpServlet for exporting the file in
response.

I want to know how to input the grid model entries say ListModelVO
to the Servlet directly.  If i use the HTTPResponse in GWT Server
ServiceImpl class directly its coming to onFailure block and failing.

Any pointers on this.

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



Resizable Text Area

2010-08-17 Thread Constantin Tanno
Does anyone know how to create a resizable text area in GWT?  This
would be a text area that has gripper bars somewhere (ideally in the
bottom right corner) so the user can resize the text area.  Is this
possible?  I've searched around in this groups and the docs and
couldn't find anything.

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



HTML in TextArea

2010-08-17 Thread steenstrup
My problem, is that i like to display html in a textArea that can get
lock, so it can't be edit.

TextArea have the ability to be lock, but can't handel html
RichTextArea can't lock, but can handel html

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



GWT memory leakage

2010-08-17 Thread Anita
Hi All,

I am using smart GWT, I am using a VLayout on this vlayout I am adding
one AbsolutePanel, in this AbsolutePanel i am showing 10 images and
line relatonships using gwt-diagram jar, All images has one click
handler,mouseover handler and Mouseout handler, When i click on any
image then 2 or 3 images is added with this object and I clear the
Absolute panel and draw all total 12 or 13 images on absolutepanel, My
memory is getting increase when i click on images, so how i resolve
this issue.

Please help me, I need urgent solution
Thansk in advance

Anita.

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



HTML in TextArea

2010-08-17 Thread steenstrup
My problem, is that i like to display html in a textArea that can get
lock, so it can't be edit.

TextArea have the ability to be lock, but can't handel html
RichTextArea can't lock, but can handel html

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



How to handle a HashMap nested in an Entity class with GWT-RPC?

2010-08-17 Thread kmARC
I have a synthetic entity class: TestAllType, with Lists, and Maps
inside it.
@Entity
public class TestAllType implements Serializable {
/* ... */
private Long longField;
private Integer integerField;
private Float floatField;
private Double doubleField;
private String stringField;
@Temporal(javax.persistence.TemporalType.DATE)
private Date dateField;
private TestEnumeration enumField;

@OneToOne(fetch=FetchType.EAGER)
private TestReferencedType referencedTypeField;

@ElementCollection(fetch=FetchType.EAGER)
private ListString listStringField;

@OneToMany(fetch=FetchType.EAGER)
private ListTestReferencedType listReferencedTypeField;

@ElementCollection(fetch=FetchType.EAGER)
private MapString, String mapStringTypeStrigTypeField;
/* ... */
}

There are also a TestReferencedType Entity class, also for testing
purposes.

My problem is that when I try to fetch one testAllType entity, GWT-RPC
throws an exception:
com.google.gwt.user.client.rpc.SerializationException: Type
'java.util.Hashtable' was not included in the set of types which can
be serialized by this SerializationPolicy or its Class object could
not be loaded. For security purposes, this type will not be
serialized.

The ListString is functional as well as ListTestReferencedType -
that is why I think that my Entity classes are designed and
implemented suitable to GWT-RPC's specifications on being
Serializable. But if I try to use that Map property of the entity
class, there comes the error message about the Hashtable's
blacklisting.

I also tested, remote procedures' returning with MapString, String
are working, too. As I see, only with nested Maps there are this
issue.

// Note that everything works fine about annotated entity classes and
GWT-RPC as I included a self-packaged javax.persistence.jar GWT module
with the corresponding source codes so that the GWT Compiler
understand entity classes, and they can be utilized on client side.
Only with Maps are this problem //

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



2.1 Documentation

2010-08-17 Thread Bayard Randel
Hi there,

Is there any preliminary documentation around the new features in 2.1,
particularly the MVP implementation? I'm going to be starting a large
GWT project shortly, but am somewhat hesitant to get started knowing
that official support for MVP is forthcoming.

Many thanks

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



Re: How to integrate an open source web app into a GWT application

2010-08-17 Thread aditya sanas
Hi,

Once you have GWT compiled code you can embed it any kind of web application
just you will require

to is the copy the content from WAR folder which is created in GWT project
to the

project folder under your web application.

So consider if i m using Apache Tomcat then

the content from WAR that is modules will be copied to the

webapps/project_name/content From War

I hope this work.


--
Aditya


On Tue, Aug 17, 2010 at 12:38 PM, Anita anapont...@gmail.com wrote:

 Hello Suersh,

 With this solution, ¿How can i solve the problem of catching the
 events on one application and doing something on the others?
 Thank you very much!!!

 Regards,
 Anita


 On 16 ago, 16:41, suersh babu sureshgbab...@gmail.com wrote:
  use div give id so that each id display differerent different information
 .
 
 
 
  On Thu, Aug 5, 2010 at 3:19 PM, Anita anapont...@gmail.com wrote:
   Hi,
 
   I’m new on GWT and i’m trying to do something but don´t know how…. My
   app has 2 panels (HorizontalSplitPanel and VerticalSplitPanel), in a
   way that i have my window divided in 3 parts. In each part i want 3
   differents app to be runing. One of them is an open source web app,
   written in Java/JSP(no GWT), but i don´t know how to integrate it, in
   a way that i can access de events generated by it. I’m a little lost
   and any help would be very usefull.
   Thank in advance.
   Regards,
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-tool...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com
 
   .
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.
 
  --
  your's truely
 
  suresh babu.g

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



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



Re: 2.1 Documentation

2010-08-17 Thread Christian Goudreau
Then, you can consider using Gwt-Platform, even Gwt MVP support won't be as
complete as what we offer inside Gwt-Platform. Moreover, we don't want to
replace what will be offered inside GWT, we want to gives you the best of
it. Some of the feature bundled inside of the framework: MVP with history
support and CodeSplitting, command pattern, auto generation tools for boiler
plate code (in code review) and more !

You can find more informations:
www.gwtplatform.com

Cheers,

On Sun, Aug 15, 2010 at 9:58 PM, Bayard Randel k...@bestpractice.org.nzwrote:

 Hi there,

 Is there any preliminary documentation around the new features in 2.1,
 particularly the MVP implementation? I'm going to be starting a large
 GWT project shortly, but am somewhat hesitant to get started knowing
 that official support for MVP is forthcoming.

 Many thanks

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




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



Re: Generate Random String

2010-08-17 Thread spierce7
AH! I didn't think to search just java! Stupid me. Thanks so much.

On Aug 17, 12:49 am, Jim Douglas jdoug...@basis.com wrote:
 I did this google search:

 http://www.google.com/search?q=java+generate+random+alphanumeric+string

 That returns more suggestions that you could possibly need; take your
 pick.  The first link returned from that search has several
 suggestions:

 http://stackoverflow.com/questions/41107/how-to-generate-a-random-alp...

 On Aug 16, 9:05 pm, spierce7 spier...@gmail.com wrote:

  What would be the best way to generate a random string in GWT with no
  slashes (/ or \), preferably just capitol letters and numbers. How
  would I do this? I'm surprised I can't turn up any information in
  searches. I'm looking to do this Server Side, meaning in java, rather
  than javascript. Thanks!

  ~Scott

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



Re: No tag for 2.0.4 in SVN

2010-08-17 Thread Karel Piwko
If I had something like gwt-2.0.4-src.zip, that would be true.

However, I haven't found any package like this, only gwt-2.0.4.zip is
available for download, with binaries only. The only sources I've found
are sources classifier archetypes in Maven repository, but they do not
preserve the SVN directory structure, do not contain tests, etc...

I also believe the current state at releases/2.0 should equal tag/2.0.4,
because the next development takes place in 2.1 branches, but I would
like someone to verify that.

Thanks,

Karel

On Tue, 2010-08-17 at 05:47 -0700, Thomas Broyer wrote:
 
 On 17 août, 12:35, Karel Piwko kpi...@redhat.com wrote:
  Could somebody from developers verify if it is
 
  releases/2.0:r8340
 
  or
 
  releases/2.0:r8322
 
  according to the date when 2.0.4 was released?
 
 Well, you do have the source and the changes, so you can just compare
 what's in 2.0.4 with what's in each of these revisions, no?
 That being said, I believe 2.0.4 is just the latest change of the
 releases/2.0 branch.
 


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



Re: RFE: Allow constants defined in classes not residing in a client package to be used

2010-08-17 Thread madein
Why don't you simply put such Constants.java file in the shared or
client package?
It seems to be much simpler solution than yours, isn't it?

br,
Mariusz

On Aug 16, 4:15 pm, Lothar Kimmeringer j...@kimmeringer.de wrote:
 Hi,

 is it possible to extend the GWT-compiler, that you can use constants
 being defined in classes that aren't client-classes to be used.

 In my client classes I often want to use functionalities on the server
 that are configured using magic number (int type, etc.) where a lot
 of constants already exist increasing readability and avoid typos.

 At the moment I need to use the numbers instead of the constants
 because I end up with the famous No source code is available
 for type  Maybe the compiler can check if only final static
 primitives are accessed (for a start) and just copy the values of
 these fields to the client-source while compiling and just forget
 about the fact that a class outside the client-package was used.

 Best regards

 Lothar Kimmeringer

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



Re: GWT serialization

2010-08-17 Thread Ciarán
Thanks for the reply.

I am quite familiar with XML parsers, I used them in the past. Though
in this situation its not suitable as inherited class most always work
without having to define the added properties in the parsing. I need
to serialize objects into some kind of file, save it and restore it at
a later date.

Thanks again

On Aug 17, 2:21 pm, aditya sanas 007aditya.b...@gmail.com wrote:
 Hi

 The basic requirement for you is to deal with XML file

 So we have jxl.jar which provides APIs to interact with tags and elements in
 xml so

 using these API's that are generally known as XML parsers that is SAX or DOC
 parsers.

 so use by using these parsers you will be able to deal with XML files.

 It wont be that difficult for you once you learn how to use these parsers.

 You will need external jar file jxl.jar

 --
 Aditya



 On Tue, Aug 17, 2010 at 6:00 PM, Ciarán ciaran.mccann@gmail.com wrote:
  Hi, I am currently working on a GWT app that requires me  to
  serializes an object client side into maybe XML/JSON or anything
  really. Then save that serialized object as a xml/json/.ser file. Then
  at a later date read that file and reconstruct my object from it.

  I have been searching for days for an answer to this, used several
  external library, read tutorials, GWT documentation and I still not
  closer to a solution. Am I totally missing something here? It was very
  easy to do this in plan Java, but GWT I just can seem to get it
  working.

  Thanks

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

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



Re: Problem using Reflection and Casting objects on GAE

2010-08-17 Thread André Moraes
This solution is working in GWT compiled mode or you just tested it in
hosted-mode?

--
André Moraes
Analista de Desenvolvimento de Sistemas
andr...@gmail.com
http://andredevchannel.blogspot.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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT Maven Plugin + codeServerPort

2010-08-17 Thread Thalles
That did the trick! It's a hack, but it works fine for me.
Thank you very much for your answer!

Bye Henry

On Aug 16, 4:21 pm, Hilco Wijbenga hilco.wijbe...@gmail.com wrote:
 On 16 August 2010 09:00, Thalles henry.rotz...@googlemail.com wrote:

  Does nobody have an answer?

 Try putting it in the logLevel field:

 plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdgwt-maven-plugin/artifactId
 configuration
 logLevelINFO' -codeServerPort -logLevel 'INFO/logLevel
 /configuration
 /plugin
 /plugins

 This is a hack, of course, but that's how I set the bind address. I've
 created a profile that does this because it will break gwt:compile
 otherwise (gwt:compile requires a simple logLevelINFO/logLevel).

 P.S. Note the quotes!

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



Setting / in history token using encodeComponent

2010-08-17 Thread Ice13ill
I'm trying to set a text in history token containing the / character
but i want to encode it before setting the token
For exameple : 2/12/a to become 2%2F12%2Fa
the problem is that GWT also converts automatically % in %25. thus
History.newItem(URL.encodeComponent(text)) does not set the correct
text.
so how do i set in the history item the text %2F ?

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



Re: Setting / in history token using encodeComponent

2010-08-17 Thread Thomas Broyer

On 17 août, 17:07, Ice13ill andrei.fifi...@gmail.com wrote:
 I'm trying to set a text in history token containing the / character
 but i want to encode it before setting the token
 For exameple : 2/12/a to become 2%2F12%2Fa
 the problem is that GWT also converts automatically % in %25. thus
 History.newItem(URL.encodeComponent(text)) does not set the correct
 text.
 so how do i set in the history item the text %2F ?

You just cannot, at least using the stock History class in its current
state (but you could re-implement –copy/paste– on your own to overcome
this limitation).
I guess this is because some browsers would give you the same thing
for both / and %2F; or maybe just that History is actually
broken (or let's rather say there's room for improvement, by
implementing it differently)

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



Re: No tag for 2.0.4 in SVN

2010-08-17 Thread Thomas Broyer


On 17 août, 16:28, Karel Piwko kpi...@redhat.com wrote:
 If I had something like gwt-2.0.4-src.zip, that would be true.

 However, I haven't found any package like this, only gwt-2.0.4.zip is
 available for download, with binaries only. The only sources I've found
 are sources classifier archetypes in Maven repository, but they do not
 preserve the SVN directory structure, do not contain tests, etc...

Sources are packaged within the JARs, side-by-side with their compiled
*.class counterparts.
Every class that needs to be compiled to JavaScript by GWT *must*
have its source in the classpath, because GWT is a source-to-source
compiler, not a bytecode-to-source. But each and every GWT class comes
with its source, not only those that can be compiled to JS (i.e. used
in your client-side app).

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



Re: Setting / in history token using encodeComponent

2010-08-17 Thread Andrei Cosmin Fifiiţă
Well, this is just stupid... this means i cannot encode http:// in my url ?
well, GMAIL can, so what;s the deal ? i don;t think this is a bug it seams
like am amateur's mistake.


On 17 August 2010 18:31, Thomas Broyer t.bro...@gmail.com wrote:


 On 17 août, 17:07, Ice13ill andrei.fifi...@gmail.com wrote:
  I'm trying to set a text in history token containing the / character
  but i want to encode it before setting the token
  For exameple : 2/12/a to become 2%2F12%2Fa
  the problem is that GWT also converts automatically % in %25. thus
  History.newItem(URL.encodeComponent(text)) does not set the correct
  text.
  so how do i set in the history item the text %2F ?

 You just cannot, at least using the stock History class in its current
 state (but you could re-implement –copy/paste– on your own to overcome
 this limitation).
 I guess this is because some browsers would give you the same thing
 for both / and %2F; or maybe just that History is actually
 broken (or let's rather say there's room for improvement, by
 implementing it differently)

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



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



Re: 2.1 Documentation

2010-08-17 Thread Thomas Broyer


On 16 août, 03:58, Bayard Randel k...@bestpractice.org.nz wrote:
 Hi there,

 Is there any preliminary documentation around the new features in 2.1,
 particularly the MVP implementation? I'm going to be starting a large
 GWT project shortly, but am somewhat hesitant to get started knowing
 that official support for MVP is forthcoming.

See https://wave.google.com/wave/waveref/googlewave.com/w+eva-sERfA

There are other waves that could interest you, about Cell widgets,
Validation, RequestFactory, etc.
See https://wave.google.com/wave/waveref/googlewave.com/w+A-PZdxsLN as
a starting point
And the JavaDoc is here: 
http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/index.html

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



Re: Textarea count

2010-08-17 Thread Thomas Broyer

On 17 août, 11:01, megala dhinakaran megaladhinaka...@gmail.com
wrote:
 I am looking into a solution where when you type text into the
 TextArea it should notify the user how many characters are left to
 enter. Like you can only enter 200 or something.

Something like listening to KeyUp events and getting the TextArea's
getText().length() to update some other widget's content (such as a
Label) ?

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



Re: ResourceBundle with CSS and obfuscation

2010-08-17 Thread Thomas Broyer


On 15 août, 04:40, Fratelli andrefrate...@gmail.com wrote:
 Hello,

 I'm using CssResource::ensureInjected() to inline my styles into the
 host page.

 So the thing is: everything worked just fine until I started
 redefining some GWT style classes (ie, gwt-TabBarItem). The changes
 didn't apply because the names are being obfuscated in the host page,
 but the predefined GWT widgets use the unobfuscated names. So I did
 some reading, and thought that @external would do the trick. Say:

     @ClassName(gwt-TabBarItem)
     public String tabBarItem();

 But it doesn't. Now it tells me that it failed to resolve the
 ClientBundle (CssBundle, in this case).

 What should I do?

@external *should* work (I mean, it works in my code, in several
projects) but maybe your method confuses the generator (or you made a
mistake in your CSS file).

Why aren't you using a constant in your code for such cases?

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



GWT and indexing

2010-08-17 Thread Artem
There were a lot of topics about crawlable GWT application and ways to
make them crawlable

Maybe somebody could share information about last changes on this
topic? Maybe some new information came?

I found last updates on
Making AJAX Applications Crawlable
http://code.google.com/web/ajaxcrawling/index.html

Described approach are doable (by require some additional coding to be
made (( )... Does anybody know if this is a common standard or only
GoogleBot supports it? Does other crawlers follow the same rules? Or
maybe this is not the last information and some other approach now
should be used?

Best regards!

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



Re: Generate Random String

2010-08-17 Thread lineman78
In Java you could also use the UUID class, but doubt its ported into
GWT.  Also, simply using the long value of time is also effective
assuming that there is no chance of ever generating 2 at the exact
same time(i.e. result of a user action): Long.toString(new
Date().getTime());

On Aug 17, 7:35 am, spierce7 spier...@gmail.com wrote:
 AH! I didn't think to search just java! Stupid me. Thanks so much.

 On Aug 17, 12:49 am, Jim Douglas jdoug...@basis.com wrote:

  I did this google search:

 http://www.google.com/search?q=java+generate+random+alphanumeric+string

  That returns more suggestions that you could possibly need; take your
  pick.  The first link returned from that search has several
  suggestions:

 http://stackoverflow.com/questions/41107/how-to-generate-a-random-alp...

  On Aug 16, 9:05 pm, spierce7 spier...@gmail.com wrote:

   What would be the best way to generate a random string in GWT with no
   slashes (/ or \), preferably just capitol letters and numbers. How
   would I do this? I'm surprised I can't turn up any information in
   searches. I'm looking to do this Server Side, meaning in java, rather
   than javascript. Thanks!

   ~Scott

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



Re: HTML in TextArea

2010-08-17 Thread lineman78
You might have to do some DOM tricks to lock RichTextArea, but it
should be possible. Such as adding a focus listener and canceling the
event or finding the inner text area object and disabling it.

On Aug 17, 5:13 am, steenstrup kasper.steenst...@gmail.com wrote:
 My problem, is that i like to display html in a textArea that can get
 lock, so it can't be edit.

 TextArea have the ability to be lock, but can't handel html
 RichTextArea can't lock, but can handel html

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



How to implement pagination using GWT 2.1 M2 SimplePager?

2010-08-17 Thread Ingo Jaeckel
hello everyone,

i am using the second milestone of gwt 2.1 mostly because of the new
list view related classes (e.g. ListViewAdapter, SimplePager,
PagingListView, SingleSelectionModel, etc.). based on these new
classes i implemented my own ListView class. i retrieve a couple of
dto objects from the server side and insert them into the list view
using ListViewAdapter.setList and CellTable.setDataSize. i also found
the following example that shows pagination should work like charm in
gwt 2.1 m2: see http://gwt-bikeshed.appspot.com/Scaffold.html and
source here http://google-web-toolkit.googlecode.com/svn/trunk/bikeshed/

unfortunately, in my own ListView class that is using all the new gwt
classes the pagination does not work at all (see code here lines
293-324 of 
http://code.google.com/p/honeycrm/source/browse/branches/honeycrm_r134_gwt2.1m2/src/honeycrm/client/view/ListView.java).
the values are not inserted into the listview and the item count (page
count) is not properly updated (or set at all). everytime the pager
receives a onRangeOrSizeChanged event I call refreshPage(newPage) if
the page number really has changed. this does an RPC call retrieving
the values from the server and inserting them by calling
refreshListViewValues(). this is how it looks like:

protected void initListView() {
pager = new SimplePagerDto(ct = new CellTableDto(), 
TextLocation.CENTER) {
@Override
public void onRangeOrSizeChanged(final 
PagingListViewDto listView) {
super.onRangeOrSizeChanged(listView);

/**
 * only do something if items have already been 
loaded
 */
if (itemsHaveBeenLoadedOnce) {
final int newPage = 1 + 
listView.getPageStart() / listView.getPageSize();
final boolean changedPage = newPage != 
currentPage;

if (changedPage) {
refreshPage(newPage); // this 
does a RPC calling
refreshListViewValues on sucess
}
}
};
};

}

protected void refreshListViewValues(ListQueryResult result) {
if (!itemsHaveBeenLoadedOnce) {
initListView();
itemsHaveBeenLoadedOnce = true;
}

ArrayListDto values = new ArrayListDto();
for (final Dto dto : result.getResults()) {
values.add(dto);
}

ct.setDataSize(result.getItemCount(), true); // ct is the cell 
table instance

// give the ListViewAdapter our data
lva.setList(values);
lva.refresh();
}

does anyone have a very simple working example explaining the
principle? i do not really understand the bikeshed code. i learned
the use of the new API from here
http://stackoverflow.com/questions/2891803/how-to-use-gwt-2-1-data-presentation-widgets.
currently i do not understand how to put all those new classes
together in a small, concise and working example.

kind regards,
ingo

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



Re: why we probably won't use GWT for a large UI project

2010-08-17 Thread lineman78
Frank,
First of all, this thread seems to have 2 different topics and I have
not said anything about Vaadin as I have no experience with it and
that seems to be what Joonas is referring to.  Second of all, my
problem is that you call them GWT enterprise architects.  When you
break it down it is Java EE with a Javascript client and people think
GWT is going to provide an end-to-end solution.  GWT dead code
elimination is an important capability which Ray Cromwell has
emphasized with GWTQuery in some of his old Google I/O talks and I
only point it out because I see it as the leading disadvantage to
SmartGWT in particular.  I am a Java EE developer who advocates GWT as
the client framework.  So as far as a SOA goes, yes I believe I know
more than the average GWT developer.  The problem is that too many
people on this group think of GWT as only a complete framework as is
the result of the GAE integration, but when it comes down to it all
GWT provides is a JS cross-compiler for the client with a custom
communications protocol built on REST.  You need to realize that not
everyone uses GAE and some of us must provide interfaces or integrate
with other technologies.  The problem that Marius has run into is that
he is writing a client to integrate with a .net REST server, therefore
the arguments about GWT-RPC were moot, which is all I was trying to
point out as far as why people might choose REST over GWT-RPC as I
often have to expose my services to .net clients.  And if you disagree
with me with my statements that overlay types is the fastest and most
efficient way to deal with a JSON REST service or that GWT as it is
right now is not a full UI library, but is heading that way let's here
some arguments against it.  It doesn't help with discussion by just
coming in and saying you guys are stupid and everything said here is
wrong, tell us what you think is wrong and why so we can have a
healthy discussion about it.

On Aug 16, 11:40 am, Frank Argueta frank.argu...@gmail.com wrote:
 Joonas,
 This thread cannot be taken seriously and has some terrible advise. It's
 like the blind leading the blind. Stefan and lineman78 in particular. I miss
 the days that Rienier would lash out when people spread misinformation or
 gave incorrect advise on this group. Alteast it kept the quality of the
 responses high but right now this forum is running wild and everyone who has
 read about GWT dead code elimination thinks they are GWT enterprise
 architects.

 -Frank

 On Mon, Aug 16, 2010 at 10:23 AM, Joonas lehti...@gmail.com wrote:
  Please do not judge by the Calc example - it is just a minimalistic
  Hello World type example for quickly showing how events are managed
  in Vaadin. Of course one should do such a trivial application (with no
  server-side needed at all and just a few lines of business logic) in
  just JavaScript - there is no need for any frameworks at all.

  For a more sophisticated analysis on communications, please read

 http://philipp-baerfuss-magnolia.blogspot.com/2010/08/why-vaadin-line...
  In this article Magnolia team has estimated that real world
  application can expect comparable number of ajax roundtrips both in
  GWT as in Vaadin. (Most of the data have to go back to server in any
  case).

  On Aug 15, 8:26 pm, Stefan Bachert stefanbach...@yahoo.de wrote:
   Hi,

   I would avoid vaadin. Agreed that vaadin looks good out of the box,
   vaadin falls back into the poor old fat-client architecture.
   GWT supports a real responsive client-server architecture but vaadin
   uses GWT like a display server.

   You can test the difference using the samplehttp://demo.vaadin.com/Calc

   Click a number and it tooks 300ms until the calc will display it.
   This latency is a direct consequence of choosing the poor old
   architecture.

   Stefan Bacherthttp://gwtworld.de

   On 10 Aug., 09:02, Nathan Wells nwwe...@gmail.com wrote:

I would look into vaadin. We just looked at it recently, and I think
it's a good alternative to straight GWT, but we can't switch because
it's a pretty significant change.

On Aug 10, 5:23 am, Shawn Brown big.coffee.lo...@gmail.com wrote:

  I'm looking to get this group's feedback before I present my
  findings
  to the team. What do you think?

 If open source is nice then go for gpl and ExtGWT (GXT).  If you
  don't
 pay the commercial fee, then you have to open source your project I
 believe.

 Shawn

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

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To 

Re: 2.1 Documentation

2010-08-17 Thread marius.andreiana
Adding to Thomas' notes:
MVP articles here http://code.google.com/webtoolkit/articles.html
(concepts, not really 2.1 implementation)


On Aug 17, 6:40 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 16 août, 03:58, Bayard Randel k...@bestpractice.org.nz wrote:

  Hi there,

  Is there any preliminary documentation around the new features in 2.1,
  particularly the MVP implementation? I'm going to be starting a large
  GWT project shortly, but am somewhat hesitant to get started knowing
  that official support for MVP is forthcoming.

 Seehttps://wave.google.com/wave/waveref/googlewave.com/w+eva-sERfA

 There are other waves that could interest you, about Cell widgets,
 Validation, RequestFactory, etc.
 Seehttps://wave.google.com/wave/waveref/googlewave.com/w+A-PZdxsLNas
 a starting point
 And the JavaDoc is 
 here:http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/index.html

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



Re: How to send data back to client side code?

2010-08-17 Thread Jeff Schnitzer
This is a major PITA with GAE+JPA.  You'll likely also need to detach
your entities from the JPA session, which AFAIK is impossible with the
JPA interface - only with the JDO interface.

My advice is throw out JPA and use Objectify.  You can use your
entities in GWT as-is (assuming they are client-safe), even if they
reference Key or GeoPt or other datastore classes.  Objectify provides
GWT emulation for all those classes:

http://code.google.com/p/objectify-appengine/wiki/ObjectifyWithGWT

(I'm the lead developer of Objectify, and I use it with GWT in my
applications every day)

http://code.google.com/p/objectify-appengine/

Jeff

On Sat, Aug 14, 2010 at 2:26 AM, cokol eplisc...@googlemail.com wrote:
 again - you shall not have any references inside your translatable
 classes to classes from 3rd party! translatable classes are those to
 be compiled to javascript and which reside in client and shared
 packages. 3rd party classes are those where you dont have sourcecode
 from.

 consider your Employee just to be a bean or container without any
 logic just with a purpose to carry payload data. so design the class
 NOT to use any classes from appengine like Key, BlobKey etc

 On 14 Aug., 07:05, Sree ... gattasrika...@gmail.com wrote:
 Modified the Employee.java as below

 *public class Employee implements IsSerializable{*

 then moved the Employee.java to shared package. [eclipse updated all
 references well]
 Now when I GWT to compile its saying

 Compiling module project.xxx
    Validating newly compiled units
       [ERROR] Errors in 'file:/C:/xxx/src/xxx/shared/Employee.java'
          [ERROR] Line 10: The import com.google.appengine cannot be resolved
          [ERROR] Line 11: The import com.google.appengine cannot be resolved
          [ERROR] Line 19: Key cannot be resolved to a type
          [ERROR] Line 101: BlobKey cannot be resolved to a type
          [ERROR] Line 141: Key cannot be resolved to a type
          [ERROR] Line 189: Key cannot be resolved to a type
          [ERROR] Line 190: Key cannot be resolved to a type
          [ERROR] Line 305: Key cannot be resolved to a type
          [ERROR] Line 306: Key cannot be resolved to a type
          [ERROR] Line 424: BlobKey cannot be resolved to a type
          [ERROR] Line 425: BlobKey cannot be resolved to a type
          [ERROR] Line 431: BlobKey cannot be resolved to a type
          [ERROR] Line 432: BlobKey cannot be resolved to a type
    Finding entry point classes
       [ERROR] Unable to find type 'xxx.client.Example'
          [ERROR] Hint: Previous compiler errors may have made this type
 unavailable
          [ERROR] Hint: Check the inheritance chain from your module; it may
 not be inheriting a required module or a module may not be adding its source
 path entries properly
 Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook

 Why appengine import statements are not working! Again they should be only
 in server folder?





 On Sat, Aug 14, 2010 at 6:17 AM, Sree ... gattasrika...@gmail.com wrote:
  okey... thanks alot guys
  i ll try to make those changes and will update here

  also thx for so quick responses.. am loving it

  On Sat, Aug 14, 2010 at 2:31 AM, cokol eplisc...@googlemail.com wrote:

  hi the problem is that gwt does not have source of your Employee
  class, since you have put it into the server package, you always have
  3 packages to handle (as per default):

  client
  server
  shared

  everything under client becomes javascript after compilation and is
  not aware of anything contained in server package, everything
  contained in server package is intended to run in java VM and remains
  java, here you may have references to classes used in client package
  if you like, this would not break up gwt. the shared package contains
  everything what is required for client and server package, like the
  service interfaces AND transfer objects  payload classes like your
  Employee. furthermore everything whats inside client and shared
  package has to be translatable to javascript, i.e. you shall not use
  3rd party libraries in there.

  so just move the Employee and all related (payload) classes to the
  shared (or client) package and you are done

  On 13 Aug., 19:39, Sree ... gattasrika...@gmail.com wrote:
   Am not sure this belongs to GWT or GAE or both ...

   So here's my problem...

   I have one client/Example.java [contains all GWT code] calls a methods
  on
   server/SomeServiceImpl.java [Contains code to talk to dataStore]

   Wat server/SomeServiceImpl.java does is Featch data from Employee.Java
     [this is class used to store data in datastore JPA]

   So now my problem is.. as long as I send data in the form of String or
   StringArray to client/Example.java am fine, but now I tried to send
   ListEmployee to client/Example.java

   Doing so throws me an error as below..

   Validating newly compiled units
         [ERROR] Errors in
   'file:/C:/XXX/XXX/src/xxx/client/GreetingServiceAsync.java'

Re: GWT and indexing

2010-08-17 Thread Katharina Probst
Hi Artem,

yes, the documentation you have found is indeed the latest.  This is
implemented and live in the Google crawler.  Currently, no other crawlers we
know of support this scheme, although we hope that this will change.

Hope this helps.

kathrin

On Tue, Aug 17, 2010 at 11:54 AM, Artem nikulche...@gmail.com wrote:

 There were a lot of topics about crawlable GWT application and ways to
 make them crawlable

 Maybe somebody could share information about last changes on this
 topic? Maybe some new information came?

 I found last updates on
 Making AJAX Applications Crawlable
 http://code.google.com/web/ajaxcrawling/index.html

 Described approach are doable (by require some additional coding to be
 made (( )... Does anybody know if this is a common standard or only
 GoogleBot supports it? Does other crawlers follow the same rules? Or
 maybe this is not the last information and some other approach now
 should be used?

 Best regards!

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



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



Re: Making GWT look good...

2010-08-17 Thread ChrLipp
I would also like to point you to
http://jqueryui.com/themeroller/
Choose Gallery on the left.

For mobile Clients there is an equivalent site on http://jquerymobile.com/

Regards, CL

On 16 Aug., 13:08, ChrLipp christian.l...@corba.at wrote:
 I appreciate the direction theGWTteam is heading.

 I also would like to see increased support for mobile clients onGWT
 too with native controls (HTML5) for the major plattforms (android,
 iPhone, ..)

 Samples could be found under
 -http://jquerymobile.com/designs/
 -http://www.sencha.com/products/touch/design.php
 -http://www.phonegap.com/apps
 -http://www.appcelerator.com/products/titanium-mobile-application-deve...

 HTML5 Development kits are developed everywhere, programming needs in
 JavaScript is increasing, I would like to stick toGWTand also being
 able to develop HTML5 mobile apps.

 Kind regards, CL

 On 6 Aug., 14:44, Chris Ramsdale cramsd...@google.com wrote:

  HeyGWT(ers),

  I've heard from many of you thatGWTapps simply don't look that good out of
  the box, and styling the default app would go a long way. We couldn't agree
  more. As some of you know,GWT2.1 (with the help of Spring Roo 1.1) will
  generate a full-fledged scaffolding app that users can then go customize,
  and build on top of. The current incarnation looks like this:

 http://gwt-bikeshed.appspot.com/Scaffold.html

  And while it's a start, it's long from being...well...good looking. I'm
  working with some UI/UX people back at Google, but in the spirit of openness
  I wanted to get feedback from the real users -- you. Specifically we're
  looking for business apps that are a good example of UI and/or UX. Apps
  that allow you to track tasks, expenses, travel, projects, etc.

  If you have ideas, simply post a link in a follow-up to this thread.

  Cheers,
  -- Chris

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



Re: NumberFormat on integer

2010-08-17 Thread Patrick Tucker
Me too but I wanted to make sure it wasn't already part of GWT before
submitting a request.

Thanks,
Pat

On Jul 7, 1:59 pm, Isaac Truett itru...@gmail.com wrote:
 I know that patches are always
 welcomehttp://code.google.com/webtoolkit/makinggwtbetter.html
 .



 On Wed, Jul 7, 2010 at 1:36 PM, Patrick Tucker tucker...@gmail.com wrote:
  Nobody knows??

  On Jun 23, 10:28 am, Patrick Tucker tucker...@gmail.com wrote:
   Why does GWT not have a getIntegerInstance() in NumberFormat??

   It seems simple enough to implement and it is part of java...

   Is it implemented somewhere else?

   Thanks,
   Pat

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

 - Show quoted text -

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



plans for ARIA in GWT

2010-08-17 Thread Thad
I'm disappointed with what I see, or rather DON'T see, in GWT 2.1.0M2
regarding ARIA support.  Granted the ARIA specification is moving very
fast, but there are many simple things that seem like no-brainers:
Why doesn't UIObject.setVisible() set the aria-hidden state? Why
doesn't FocusWidget.setEnabled() set the aria-disabled state?  Why
doesn't CheckBox.setValue() set the aria-checked state?  Are these
settings honestly not needed by common assistive technologies?

What's being done?

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



Flash Objects being Garbage collected in tablayoutpanel?

2010-08-17 Thread Patrick Tucker
On my page I have a TabLayoutPanel that has a few widgets in it, one
of which is a flex/flash object.

When I load the page in Firefox or Chrome and switch to the tab
containing the flex/flash object everything loads as expected.  The
problem arises when you switch to a different tab and then switch back
to the tab containing the flex/flash object, the object has
disappeared (Garbage Collected I'm assuming?) and is being reloaded.
This is not good because the User loses all of the information that
was entered into the object before switching the tab.

This does not happen in IE.

Has anyone ran across this and been able to solve this problem?

Thanks,
Pat

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



Re: How to send data back to client side code?

2010-08-17 Thread lineman78
Yeah, I ran into this issue a year ago when I was working with GAE +
GWT-RPC.  The client side object cannot have references to any code
not associated with a GWT module, so there are a few options for you
here.

1) create a translator and maintain 2 versions of the class; 1 for the
client(without annotations) and 1 for the server(with annotations)
2) use Java serialization to make a deep copy with 2 versions of the
class like specified above (serializeable uuids must be equal).
3) write a utility that uses reflection to translate between the
objects above
4) use some sort of 3rd party library that allows for persistence and
serialization.

There are more options that I haven't listed here, but these are a few
to start.

On Aug 17, 12:55 pm, Jeff Schnitzer j...@infohazard.org wrote:
 This is a major PITA with GAE+JPA.  You'll likely also need to detach
 your entities from the JPA session, which AFAIK is impossible with the
 JPA interface - only with the JDO interface.

 My advice is throw out JPA and use Objectify.  You can use your
 entities in GWT as-is (assuming they are client-safe), even if they
 reference Key or GeoPt or other datastore classes.  Objectify provides
 GWT emulation for all those classes:

 http://code.google.com/p/objectify-appengine/wiki/ObjectifyWithGWT

 (I'm the lead developer of Objectify, and I use it with GWT in my
 applications every day)

 http://code.google.com/p/objectify-appengine/

 Jeff

 On Sat, Aug 14, 2010 at 2:26 AM, cokol eplisc...@googlemail.com wrote:
  again - you shall not have any references inside your translatable
  classes to classes from 3rd party! translatable classes are those to
  be compiled to javascript and which reside in client and shared
  packages. 3rd party classes are those where you dont have sourcecode
  from.

  consider your Employee just to be a bean or container without any
  logic just with a purpose to carry payload data. so design the class
  NOT to use any classes from appengine like Key, BlobKey etc

  On 14 Aug., 07:05, Sree ... gattasrika...@gmail.com wrote:
  Modified the Employee.java as below

  *public class Employee implements IsSerializable{*

  then moved the Employee.java to shared package. [eclipse updated all
  references well]
  Now when I GWT to compile its saying

  Compiling module project.xxx
     Validating newly compiled units
        [ERROR] Errors in 'file:/C:/xxx/src/xxx/shared/Employee.java'
           [ERROR] Line 10: The import com.google.appengine cannot be 
  resolved
           [ERROR] Line 11: The import com.google.appengine cannot be 
  resolved
           [ERROR] Line 19: Key cannot be resolved to a type
           [ERROR] Line 101: BlobKey cannot be resolved to a type
           [ERROR] Line 141: Key cannot be resolved to a type
           [ERROR] Line 189: Key cannot be resolved to a type
           [ERROR] Line 190: Key cannot be resolved to a type
           [ERROR] Line 305: Key cannot be resolved to a type
           [ERROR] Line 306: Key cannot be resolved to a type
           [ERROR] Line 424: BlobKey cannot be resolved to a type
           [ERROR] Line 425: BlobKey cannot be resolved to a type
           [ERROR] Line 431: BlobKey cannot be resolved to a type
           [ERROR] Line 432: BlobKey cannot be resolved to a type
     Finding entry point classes
        [ERROR] Unable to find type 'xxx.client.Example'
           [ERROR] Hint: Previous compiler errors may have made this type
  unavailable
           [ERROR] Hint: Check the inheritance chain from your module; it may
  not be inheriting a required module or a module may not be adding its 
  source
  path entries properly
  Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook

  Why appengine import statements are not working! Again they should be only
  in server folder?

  On Sat, Aug 14, 2010 at 6:17 AM, Sree ... gattasrika...@gmail.com wrote:
   okey... thanks alot guys
   i ll try to make those changes and will update here

   also thx for so quick responses.. am loving it

   On Sat, Aug 14, 2010 at 2:31 AM, cokol eplisc...@googlemail.com wrote:

   hi the problem is that gwt does not have source of your Employee
   class, since you have put it into the server package, you always have
   3 packages to handle (as per default):

   client
   server
   shared

   everything under client becomes javascript after compilation and is
   not aware of anything contained in server package, everything
   contained in server package is intended to run in java VM and remains
   java, here you may have references to classes used in client package
   if you like, this would not break up gwt. the shared package contains
   everything what is required for client and server package, like the
   service interfaces AND transfer objects  payload classes like your
   Employee. furthermore everything whats inside client and shared
   package has to be translatable to javascript, i.e. you shall not use
   3rd party libraries in there.

   so just move the 

Re: Reusing GWT Localization in Server Side Code

2010-08-17 Thread Joe Cole
Because we don't want to have different code for different places.

E.g.

String text = GWT.create(MyMessages.class).myText();

This code fails if you run it on the server side.

What we want is something like Messages.get().myText() which runs on
both the client, server and test cases, but uses the appropriate
method of getting the messages, e.g. GWT.create, a Proxy or
ResourceBundle or whatever.

Unless I'm missing something?

Joe

On Aug 18, 1:22 am, KenJi_getpowered mikael.k...@gmail.com wrote:
 Why can't you just use resource bundle to get messages?

 On 17 août, 10:49, Joe Cole profilercorporat...@gmail.com wrote:



  What we do is use this code pattern:

  public interface IMessages {
     public MyMessages get(); // your messages interface}

  public class Messages {
     private static IMessages messages;
     public static MyMessages get() { return messages.get(); }
     public static void set(IMessages messages) //etc

  }

  Then in our server side initialisation we use:

  ServerMessages implements IMessages {
      public MyMessages get(){
                  // note, basically pseudocode
                  Properties properties = new Properties();
                  InputStream in = // find yours
                  properties.load(in);
                  return (MyMessages)
  Proxy.newProxyInstance(getClass().getClassLoader(), new Class[]
  { MyMessages.class },
                                  new GWTMessageProxy(properties));
      }

  }

  public class GWTMessageProxy implements InvocationHandler {

          private final Properties properties;

          public GWTMessageProxy(Properties properties) {
                  super();
                  this.properties = properties;
          }

          public Object invoke(Object proxy, Method method, Object[] args)
  throws Throwable {
                  String property = 
  String.valueOf(properties.get(method.getName()));
                  if (args != null  args.length  0) {
                          // we have a messages class...
                          return MessageFormat.format(property, args);
                  }
                  return property;
          }

  }

  When you initialize your client side system, simply initialize your
  messages with a client-side-only version that uses gwt localization.
  Similarly, your tests probably need a different setup method, so just
  initialise a custom class for that as well. It's kind of like manual
  guice, but it doesn't have to be done that often so isn't a big deal.

  This pattern works for everything, so we use it for NumberFormats 
  DateFormatting and all sorts of other code that need to be shared
  between client, server, tests etc.

  If anyone has any better ideas please sing out!

  Joe
  On Aug 17, 7:20 am, Casey j.casey.one...@gmail.com wrote:

   Does anyone know if with Google Web Toolkit there is an easy way to
   reuse your client size localization files (constants and messages) in
   the server side code? I think in GWT 1.6 or 1.8 you could actually
   call the same GWT localization code on the server side that you called
   on the client side. I just upgraded from 1.6 to 2.0 and all of a
   sudden I'm receiving the following message: ERROR: GWT.create() is
   only usable in client code! That makes sense to me but there must be
   an easy way to reuse your Constant and Message files on the server.
   It's been awhile since I've opened this project but I'm pretty sure
   that this was working before. Thanks 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: plans for ARIA in GWT

2010-08-17 Thread Jim Douglas
My guess is the GWT team is fairly small, and not many people are
screaming for full ARIA support.

If this was a critical feature to me, I'd probably start by reviewing
the open issues for ARIA or ACCESSIBILITY:

http://code.google.com/p/google-web-toolkit/issues/list?q=ARIA
http://code.google.com/p/google-web-toolkit/issues/detail?id=4756

...then vote for the ones you care about, enter new bug reports for
problems you've noticed that don't seem to be covered already, and (if
you're in a position to work on this), consider fixing issues that
concern you and submitting them to the GWT team.

http://code.google.com/webtoolkit/makinggwtbetter.html

On Aug 17, 2:15 pm, Thad thad.humphr...@gmail.com wrote:
 I'm disappointed with what I see, or rather DON'T see, in GWT 2.1.0M2
 regarding ARIA support.  Granted the ARIA specification is moving very
 fast, but there are many simple things that seem like no-brainers:
 Why doesn't UIObject.setVisible() set the aria-hidden state? Why
 doesn't FocusWidget.setEnabled() set the aria-disabled state?  Why
 doesn't CheckBox.setValue() set the aria-checked state?  Are these
 settings honestly not needed by common assistive technologies?

 What's being done?

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



Re: EclEmma + GwtTestCase + GwtGenerator exception

2010-08-17 Thread Gal Dolber
Finally someone :)

2010/8/16 Island qzha...@gmail.com

 I am facing the same problem when I try to collect the code coverage
 data, and here is the stack trace:

 21:10:59.578 [ERROR] [splat] Failed to create an instance of
 'com.splat.client.SplatService' via deferred binding
 com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error
 during visit.
at
 com.google.gwt.dev.js.ast.JsVisitor.translateException(JsVisitor.java:
 462)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:
 448)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:
 421)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
at

 com.google.gwt.dev.js.JsToStringGenerationVisitor.visit(JsToStringGenerationVisitor.java:
 801)
at com.google.gwt.dev.js.ast.JsVars$JsVar.traverse(JsVars.java:56)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:
 446)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:
 421)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
at

 com.google.gwt.dev.js.JsToStringGenerationVisitor.visit(JsToStringGenerationVisitor.java:
 814)
at com.google.gwt.dev.js.ast.JsVars.traverse(JsVars.java:89)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:
 446)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:
 421)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
at

 com.google.gwt.dev.js.JsToStringGenerationVisitor.printJsBlock(JsToStringGenerationVisitor.java:
 873)
at

 com.google.gwt.dev.js.JsSourceGenerationVisitor.visit(JsSourceGenerationVisitor.java:
 48)
at com.google.gwt.dev.js.ast.JsBlock.traverse(JsBlock.java:43)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:
 446)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:
 421)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
at
 com.google.gwt.dev.shell.Jsni.generateJavaScriptForHostedMode(Jsni.java:
 253)
at
 com.google.gwt.dev.shell.Jsni.getJavaScriptForHostedMode(Jsni.java:
 240)
at

 com.google.gwt.dev.shell.ModuleSpaceOOPHM.createNativeMethods(ModuleSpaceOOPHM.java:
 46)
at

 com.google.gwt.dev.shell.CompilingClassLoader.injectJsniMethods(CompilingClassLoader.java:
 1214)
at

 com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java:
 1039)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at
 com.splat.client.SplatService_Proxy.clinit(SplatService_Proxy.java:
 14)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at

 com.google.gwt.dev.shell.ModuleSpace.loadClassFromSourceName(ModuleSpace.java:
 580)
at
 com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
 415)
at
 com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:39)
at com.google.gwt.core.client.GWT.create(GWT.java:98)
at com.splat.client.SplatGxt.onModuleLoad(SplatGxt.java:97)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
 39)
at

 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
 25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
 369)
at

 com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
 185)
at

 com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
 380)
at

 com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
 222)
at java.lang.Thread.run(Thread.java:619)
 Caused by: java.lang.NullPointerException: null
at com.google.gwt.dev.shell.CompilingClassLoader

 $MyInstanceMethodOracle.findOriginalDeclaringClass(CompilingClassLoader.java:
 409)
at com.google.gwt.dev.shell.rewrite.RewriteRefsToJsoClasses
 $MyMethodAdapter.visitMethodInsn(RewriteRefsToJsoClasses.java:83)
at com.google.gwt.dev.asm.ClassReader.accept(ClassReader.java:
 1371)
at com.google.gwt.dev.asm.ClassReader.accept(ClassReader.java:420)
at

 com.google.gwt.dev.shell.rewrite.HostedModeClassRewriter.rewrite(HostedModeClassRewriter.java:
 244)
at

 com.google.gwt.dev.shell.CompilingClassLoader.findClassBytes(CompilingClassLoader.java:
 1157)
at

 com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java:
 985)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at com.google.gwt.dev.shell.CompilingClassLoader
 $DispatchClassInfoOracle.getClassFromBinaryName(CompilingClassLoader.java:
 236)
at 

Storing Session ID in cookie, and then what?

2010-08-17 Thread spierce7
Hey,

I'm currently making a site that has my own logins that I'm making (I
know Google provides something, but I need my own login system), and
I've been trying to figure out sessions for quite a while now. I've
found a few tutorials, and one of the sites that I was reading is
http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ

There is a section there on How to Remember Logins. I know how to
get the session ID and store it on the client in a cookie through an
RPC call. What I don't understand is, eventually after a day or so,
the user comes back and I'm supposed to get the session ID from the
cookie and send it back to the server. What am I supposed to do on the
server in order to securely evaluate if session ID is still legal, and
pull up all the necessary information about the user?

Additional questions:
1. What would make the session ID change?
2. What if the user was on a laptop, and the user went somewhere else.
Would he still be able to be securely logged back in without having to
type in his login and password again?

Thanks!

~Scott

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



eCommerce Shopping Cart With GWT

2010-08-17 Thread Daniel Simons
I'm am in the planning phase of developing a shopping cart application using
GWT for the front-end.  So far I have looked at integrating with a couple
eCommerce solutions (ie, konakart and softslate).  Does anyone have any
advice on eCommerce Solutions?  Are there any solutions out there that would
work better with GWT?

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



Re: EclEmma + GwtTestCase + GwtGenerator exception

2010-08-17 Thread Qi Zhang
I have resolved the problem after I debugged into GWT code.  I am using GXT
to build my Web Interface, but that GXT libraries was built with an old
version of GWT, so some method signature could not be matched by GWT
CompileClassLoader. After I upgraded my GXT libraries, the problem
disappeared.

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



[gwt-contrib] Public: Move the validation metadata classes to client/metadata. (issue773801)

2010-08-17 Thread nchalko

Reviewers: robertvawter,

Description:
Public: Move the validation metadata classes to client/metadata.


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

Affected files:
  A  
user/src/com/google/gwt/validation/client/metadata/ConstraintDescriptorImpl.java
  D  
user/src/com/google/gwt/validation/metadata/ConstraintDescriptorImpl.java



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


[gwt-contrib] Re: Public: Move the validation metadata classes to client/metadata. (issue773801)

2010-08-17 Thread bobv

LGTM

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

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


Re: [gwt-contrib] Re: History integration for the RequestFactory apps. (issue717801)

2010-08-17 Thread Patrick Julien
OK, I don't get how exit() being private works.  If we think about the
scenario where we have child resources to create after we get the
real id from the server, how are we suppose to save those child
resources?  Not to mention that I don't really care for showing the
details place in every case.

There is a bug opened about this already:

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

just added my star

On Fri, Aug 13, 2010 at 1:50 PM,  rj...@google.com wrote:
 Okay, Rayc, this is ready for review.

 On 2010/08/13 17:43:18, Ray Ryan wrote:




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

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

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


[gwt-contrib] Continuation of r8542 to actually properly enables double click for (issue774801)

2010-08-17 Thread fredsa

Reviewers: jgw,

Description:
Continuation of r8542 to actually properly enables double click for
- com/google/gwt/user/client/ui/FocusWidget.java
- com/google/gwt/user/client/ui/HTMLTable.java
- com/google/gwt/user/client/ui/Hyperlink.java
- com/google/gwt/user/client/ui/Image.java
- com/google/gwt/user/client/ui/Label.java


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

Affected files:
  M user/src/com/google/gwt/user/client/ui/FocusWidget.java
  M user/src/com/google/gwt/user/client/ui/HTMLTable.java
  M user/src/com/google/gwt/user/client/ui/Hyperlink.java
  M user/src/com/google/gwt/user/client/ui/Image.java
  M user/src/com/google/gwt/user/client/ui/Label.java


Index: user/src/com/google/gwt/user/client/ui/FocusWidget.java
===
--- user/src/com/google/gwt/user/client/ui/FocusWidget.java (revision 8543)
+++ user/src/com/google/gwt/user/client/ui/FocusWidget.java (working copy)
@@ -103,7 +103,7 @@
   }

   public HandlerRegistration addDoubleClickHandler(DoubleClickHandler  
handler) {

-return addHandler(handler, DoubleClickEvent.getType());
+return addDomHandler(handler, DoubleClickEvent.getType());
   }

   public HandlerRegistration addFocusHandler(FocusHandler handler) {
Index: user/src/com/google/gwt/user/client/ui/HTMLTable.java
===
--- user/src/com/google/gwt/user/client/ui/HTMLTable.java   (revision 8543)
+++ user/src/com/google/gwt/user/client/ui/HTMLTable.java   (working copy)
@@ -725,7 +725,7 @@
   }

   public HandlerRegistration addDoubleClickHandler(DoubleClickHandler  
handler) {

-return addHandler(handler, DoubleClickEvent.getType());
+return addDomHandler(handler, DoubleClickEvent.getType());
   }

   /**
Index: user/src/com/google/gwt/user/client/ui/Hyperlink.java
===
--- user/src/com/google/gwt/user/client/ui/Hyperlink.java   (revision 8543)
+++ user/src/com/google/gwt/user/client/ui/Hyperlink.java   (working copy)
@@ -142,7 +142,7 @@
   }

   public HandlerRegistration addDoubleClickHandler(DoubleClickHandler  
handler) {

-return addHandler(handler, DoubleClickEvent.getType());
+return addDomHandler(handler, DoubleClickEvent.getType());
   }

   public String getHTML() {
Index: user/src/com/google/gwt/user/client/ui/Image.java
===
--- user/src/com/google/gwt/user/client/ui/Image.java   (revision 8543)
+++ user/src/com/google/gwt/user/client/ui/Image.java   (working copy)
@@ -125,7 +125,7 @@
   image.replaceElement(impl.createStructure(url, left, top, width,  
height));
   // Todo(ecc) This is wrong, we should not be sinking these here on  
such a

   // common widget.After the branch is stable, this should be fixed.
-  image.sinkEvents(Event.ONCLICK | Event.MOUSEEVENTS |  
Event.ONMOUSEWHEEL
+  image.sinkEvents(Event.ONCLICK | Event.ONDBLCLICK |  
Event.MOUSEEVENTS | Event.ONMOUSEWHEEL

   | Event.ONLOAD);
 }

@@ -282,7 +282,7 @@
 UnclippedState(Element element) {
   // This case is relatively unusual, in that we swapped a clipped  
image

   // out, so does not need to be efficient.
-  Event.sinkEvents(element, Event.ONCLICK | Event.MOUSEEVENTS
+  Event.sinkEvents(element, Event.ONCLICK | Event.ONDBLCLICK |  
Event.MOUSEEVENTS

   | Event.ONLOAD | Event.ONERROR | Event.ONMOUSEWHEEL);
 }

@@ -294,7 +294,7 @@
   Event.sinkEvents(image.getElement(), Event.ONLOAD);

   // Todo(ecc) this could be more efficient overall.
-  image.sinkEvents(Event.ONCLICK | Event.MOUSEEVENTS | Event.ONLOAD
+  image.sinkEvents(Event.ONCLICK | Event.ONDBLCLICK |  
Event.MOUSEEVENTS | Event.ONLOAD

   | Event.ONERROR | Event.ONMOUSEWHEEL);
 }

Index: user/src/com/google/gwt/user/client/ui/Label.java
===
--- user/src/com/google/gwt/user/client/ui/Label.java   (revision 8543)
+++ user/src/com/google/gwt/user/client/ui/Label.java   (working copy)
@@ -216,7 +216,7 @@
   }

   public HandlerRegistration addDoubleClickHandler(DoubleClickHandler  
handler) {

-return addHandler(handler, DoubleClickEvent.getType());
+return addDomHandler(handler, DoubleClickEvent.getType());
   }

   public HandlerRegistration addMouseDownHandler(MouseDownHandler handler)  
{



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


Re: [gwt-contrib] Re: History integration for the RequestFactory apps. (issue717801)

2010-08-17 Thread Patrick Julien
Same for Abstract list, yeah, providing a default for showDetails is
nice, making it private is not so much

On Tue, Aug 17, 2010 at 12:30 PM, Pascal Patry i...@invalidip.com wrote:
 On Tuesday, August 17, 2010 11:50:13 Patrick Julien wrote:
 OK, I don't get how exit() being private works.  If we think about the
 scenario where we have child resources to create after we get the
 real id from the server, how are we suppose to save those child
 resources?  Not to mention that I don't really care for showing the
 details place in every case.

 There is a bug opened about this already:

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

 just added my star

 Yeah, a very annoying issue in AbstractRecordEditActivity. There is no way 
 this can be used in a real web application.
 We definitely need to know when save has been completed. We also have LIST 
 operations going directly to EDIT... I don't
 see how we update to this revision of GWT. exit() would at least need to be 
 protected but simple handlers like
 onSaveComplete() and friends would really improve this overall framework.

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

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


Re: [gwt-contrib] Re: History integration for the RequestFactory apps. (issue717801)

2010-08-17 Thread Pascal Patry
On Tuesday, August 17, 2010 12:34:29 Patrick Julien wrote:
 Same for Abstract list, yeah, providing a default for showDetails is
 nice, making it private is not so much

That's right... you can always create a new SelectionModel to have
something else than showDetails() that is being called, but then you
loose about half of the whole framework usefulness... so, not that
great either.

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


Re: [gwt-contrib] Re: History integration for the RequestFactory apps. (issue717801)

2010-08-17 Thread Ray Ryan
Thanks for all the feedback.

I'm definitely not suggesting that this mechanism is done, it's just a step
along the way. And yes, the hard coded exit points are particularly bad.
Rather than having these activities drive the place controller directly, I'd
like them to emit events like save worked, user canceled, and allow you
to wire up what happens in response. Also, don't forget that the
RequestFactory issues events on any record change.

To that end I have thoughts about changes we can make to HandlerManager and
Widget that I think can make things a lot more flexible than what you see
here, and simpler at the same time. I hope to have a design proposal to
share this week.

On Tue, Aug 17, 2010 at 9:40 AM, Pascal Patry i...@invalidip.com wrote:

 On Tuesday, August 17, 2010 12:34:29 Patrick Julien wrote:
  Same for Abstract list, yeah, providing a default for showDetails is
  nice, making it private is not so much

 That's right... you can always create a new SelectionModel to have
 something else than showDetails() that is being called, but then you
 loose about half of the whole framework usefulness... so, not that
 great either.

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


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

Re: [gwt-contrib] Re: History integration for the RequestFactory apps. (issue717801)

2010-08-17 Thread Patrick Julien
RequestFactory issues an event on record change but does it issue an
event on creation?

On Tue, Aug 17, 2010 at 1:04 PM, Ray Ryan rj...@google.com wrote:
 Thanks for all the feedback.
 I'm definitely not suggesting that this mechanism is done, it's just a step
 along the way. And yes, the hard coded exit points are particularly bad.
 Rather than having these activities drive the place controller directly, I'd
 like them to emit events like save worked, user canceled, and allow you
 to wire up what happens in response. Also, don't forget that the
 RequestFactory issues events on any record change.
 To that end I have thoughts about changes we can make to HandlerManager and
 Widget that I think can make things a lot more flexible than what you see
 here, and simpler at the same time. I hope to have a design proposal to
 share this week.
 On Tue, Aug 17, 2010 at 9:40 AM, Pascal Patry i...@invalidip.com wrote:

 On Tuesday, August 17, 2010 12:34:29 Patrick Julien wrote:
  Same for Abstract list, yeah, providing a default for showDetails is
  nice, making it private is not so much

 That's right... you can always create a new SelectionModel to have
 something else than showDetails() that is being called, but then you
 loose about half of the whole framework usefulness... so, not that
 great either.

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

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

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


[gwt-contrib] Allow merging of modules with the same prefix, for example if you have a (issue754802)

2010-08-17 Thread fabbott

Reviewers: unnurg,

Description:
Allow merging of modules with the same prefix, for example if you have a
directory of widgets that are separated into multiple modules (but in
the
same java package), or if you have src/test roots that each have modules
for the same package.  The existing exclude attribute is used to mark
something that no modue should ever touch, i.e. known non-translatable
source.  A new skip attribute is used to mark something that *this*
module doesn't want, but that *other* modules might need.  (You could
probably be clever with just include for this case, but sometimes it's
nice to be able to express a negative.)

Review by: unn...@google.com

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

Affected files:
  M dev/core/src/com/google/gwt/dev/cfg/ModuleDef.java
  M dev/core/src/com/google/gwt/dev/cfg/ModuleDefSchema.java
  M dev/core/src/com/google/gwt/dev/resource/impl/DefaultFilters.java
  M dev/core/src/com/google/gwt/dev/resource/impl/PathPrefix.java
  M dev/core/src/com/google/gwt/dev/resource/impl/PathPrefixSet.java
  A dev/core/test/com/google/gwt/dev/cfg/ModuleDefLoaderTest.java
  A dev/core/test/com/google/gwt/dev/cfg/testdata/merging/One.gwt.xml
  A dev/core/test/com/google/gwt/dev/cfg/testdata/merging/Three.gwt.xml
  A dev/core/test/com/google/gwt/dev/cfg/testdata/merging/Two.gwt.xml
  A dev/core/test/com/google/gwt/dev/cfg/testdata/merging/client/InOne.java
  A dev/core/test/com/google/gwt/dev/cfg/testdata/merging/client/InTwo.java
  A dev/core/test/com/google/gwt/dev/cfg/testdata/merging/client/Shared.java
  A dev/core/test/com/google/gwt/dev/cfg/testdata/merging/client/Toxic.java
  M dev/core/test/com/google/gwt/dev/resource/impl/DefaultFiltersTest.java


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


[gwt-contrib] Re: Allow merging of modules with the same prefix, for example if you have a (issue754802)

2010-08-17 Thread unnurg

LGTM
On 2010/08/17 17:24:51, fabbott wrote:




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

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


Re: [gwt-contrib] Re: History integration for the RequestFactory apps. (issue717801)

2010-08-17 Thread Patrick Julien
I don't know what your schedule looks like but before this patch.
This was still pretty usable and it was less expensive to track
changes in head than it was to use GWT 2.0.  Now, the abstract
activities are pretty much broken.

I understand, and take responsibility, for using GWT head, but at the
same time, what's the point of cutting M3 in this shape?


On Tue, Aug 17, 2010 at 1:42 PM, Ray Ryan rj...@google.com wrote:
 It doesn't yet, but it should. I think that change will not make our M3
 release, but it should be in M4.
 BTW, because we're working on this with the Spring Roo team, we've been
 using their issue tracker. We're less likely to lose track of issues that
 are filed there, under component GWT.
 https://jira.springsource.org/browse/ROO

 On Tue, Aug 17, 2010 at 10:13 AM, Patrick Julien pjul...@gmail.com wrote:

 RequestFactory issues an event on record change but does it issue an
 event on creation?

 On Tue, Aug 17, 2010 at 1:04 PM, Ray Ryan rj...@google.com wrote:
  Thanks for all the feedback.
  I'm definitely not suggesting that this mechanism is done, it's just a
  step
  along the way. And yes, the hard coded exit points are particularly bad.
  Rather than having these activities drive the place controller directly,
  I'd
  like them to emit events like save worked, user canceled, and allow
  you
  to wire up what happens in response. Also, don't forget that the
  RequestFactory issues events on any record change.
  To that end I have thoughts about changes we can make to HandlerManager
  and
  Widget that I think can make things a lot more flexible than what you
  see
  here, and simpler at the same time. I hope to have a design proposal to
  share this week.
  On Tue, Aug 17, 2010 at 9:40 AM, Pascal Patry i...@invalidip.com
  wrote:
 
  On Tuesday, August 17, 2010 12:34:29 Patrick Julien wrote:
   Same for Abstract list, yeah, providing a default for showDetails is
   nice, making it private is not so much
 
  That's right... you can always create a new SelectionModel to have
  something else than showDetails() that is being called, but then you
  loose about half of the whole framework usefulness... so, not that
  great either.
 
  --
  http://groups.google.com/group/Google-Web-Toolkit-Contributors
 
  --
  http://groups.google.com/group/Google-Web-Toolkit-Contributors

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

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

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


Re: [gwt-contrib] Public: Start of a sample application showing GWT validation. (issue760802)

2010-08-17 Thread Arthur Kalmenson
I'm really excited for this validation component, you guys/gals are
doing a great job! But it looks like Validation is using
VerticalPanel, but from my understand we're trying to discourage the
use of table based widgets where possible. Could this be done with
UiBinder and divs instead?

--
Arthur Kalmenson



On Tue, Aug 17, 2010 at 10:35 AM,  ncha...@google.com wrote:
 Reviewers: robertvater_google.com,

 Description:
 Public: Start of a sample application showing GWT validation.


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

 Affected files:
  A eclipse/samples/Validation/.checkstyle
  A eclipse/samples/Validation/.classpath
  A eclipse/samples/Validation/.project
  A eclipse/samples/Validation/Validation-gwtc.launch
  A eclipse/samples/Validation/Validation.launch
  M eclipse/user/.classpath
  M samples/build.xml
  A samples/validation/build.xml
  A samples/validation/src/com/google/gwt/sample/validation/COPYING
  A
 samples/validation/src/com/google/gwt/sample/validation/Validation.gwt.xml
  A
 samples/validation/src/com/google/gwt/sample/validation/client/GreetingService.java
  A
 samples/validation/src/com/google/gwt/sample/validation/client/GreetingServiceAsync.java
  A
 samples/validation/src/com/google/gwt/sample/validation/client/Validation.java
  A
 samples/validation/src/com/google/gwt/sample/validation/server/GreetingServiceImpl.java
  A
 samples/validation/src/com/google/gwt/sample/validation/shared/Person.java
  A samples/validation/war/Validation.css
  A samples/validation/war/Validation.html
  A samples/validation/war/WEB-INF/classes/marker
  A samples/validation/war/WEB-INF/web.xml


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

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


Re: [gwt-contrib] Re: History integration for the RequestFactory apps. (issue717801)

2010-08-17 Thread Ray Ryan
There are a lot of features and schedules driving M3, this is just one. I
can't make a drastic change at this point, and I can't roll the patch back,
but are there a quick fixes I can make to unbreak you? Make exit() public or
protected? Or can you whip up a patch?

On Tue, Aug 17, 2010 at 10:57 AM, Patrick Julien pjul...@gmail.com wrote:

 I don't know what your schedule looks like but before this patch.
 This was still pretty usable and it was less expensive to track
 changes in head than it was to use GWT 2.0.  Now, the abstract
 activities are pretty much broken.

 I understand, and take responsibility, for using GWT head, but at the
 same time, what's the point of cutting M3 in this shape?


 On Tue, Aug 17, 2010 at 1:42 PM, Ray Ryan rj...@google.com wrote:
  It doesn't yet, but it should. I think that change will not make our M3
  release, but it should be in M4.
  BTW, because we're working on this with the Spring Roo team, we've been
  using their issue tracker. We're less likely to lose track of issues that
  are filed there, under component GWT.
  https://jira.springsource.org/browse/ROO
 
  On Tue, Aug 17, 2010 at 10:13 AM, Patrick Julien pjul...@gmail.com
 wrote:
 
  RequestFactory issues an event on record change but does it issue an
  event on creation?
 
  On Tue, Aug 17, 2010 at 1:04 PM, Ray Ryan rj...@google.com wrote:
   Thanks for all the feedback.
   I'm definitely not suggesting that this mechanism is done, it's just a
   step
   along the way. And yes, the hard coded exit points are particularly
 bad.
   Rather than having these activities drive the place controller
 directly,
   I'd
   like them to emit events like save worked, user canceled, and
 allow
   you
   to wire up what happens in response. Also, don't forget that the
   RequestFactory issues events on any record change.
   To that end I have thoughts about changes we can make to
 HandlerManager
   and
   Widget that I think can make things a lot more flexible than what you
   see
   here, and simpler at the same time. I hope to have a design proposal
 to
   share this week.
   On Tue, Aug 17, 2010 at 9:40 AM, Pascal Patry i...@invalidip.com
   wrote:
  
   On Tuesday, August 17, 2010 12:34:29 Patrick Julien wrote:
Same for Abstract list, yeah, providing a default for showDetails
 is
nice, making it private is not so much
  
   That's right... you can always create a new SelectionModel to have
   something else than showDetails() that is being called, but then you
   loose about half of the whole framework usefulness... so, not that
   great either.
  
   --
   http://groups.google.com/group/Google-Web-Toolkit-Contributors
  
   --
   http://groups.google.com/group/Google-Web-Toolkit-Contributors
 
  --
  http://groups.google.com/group/Google-Web-Toolkit-Contributors
 
  --
  http://groups.google.com/group/Google-Web-Toolkit-Contributors

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


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

Re: [gwt-contrib] Public: Start of a sample application showing GWT validation. (issue760802)

2010-08-17 Thread Ray Ryan
This patch is focused on the validation plumbing. The UI is throw away.

On Tue, Aug 17, 2010 at 11:02 AM, Arthur Kalmenson arthur.k...@gmail.comwrote:

 I'm really excited for this validation component, you guys/gals are
 doing a great job! But it looks like Validation is using
 VerticalPanel, but from my understand we're trying to discourage the
 use of table based widgets where possible. Could this be done with
 UiBinder and divs instead?

 --
 Arthur Kalmenson



 On Tue, Aug 17, 2010 at 10:35 AM,  ncha...@google.com wrote:
  Reviewers: robertvater_google.com,
 
  Description:
  Public: Start of a sample application showing GWT validation.
 
 
  Please review this at http://gwt-code-reviews.appspot.com/760802/show
 
  Affected files:
   A eclipse/samples/Validation/.checkstyle
   A eclipse/samples/Validation/.classpath
   A eclipse/samples/Validation/.project
   A eclipse/samples/Validation/Validation-gwtc.launch
   A eclipse/samples/Validation/Validation.launch
   M eclipse/user/.classpath
   M samples/build.xml
   A samples/validation/build.xml
   A samples/validation/src/com/google/gwt/sample/validation/COPYING
   A
 
 samples/validation/src/com/google/gwt/sample/validation/Validation.gwt.xml
   A
 
 samples/validation/src/com/google/gwt/sample/validation/client/GreetingService.java
   A
 
 samples/validation/src/com/google/gwt/sample/validation/client/GreetingServiceAsync.java
   A
 
 samples/validation/src/com/google/gwt/sample/validation/client/Validation.java
   A
 
 samples/validation/src/com/google/gwt/sample/validation/server/GreetingServiceImpl.java
   A
 
 samples/validation/src/com/google/gwt/sample/validation/shared/Person.java
   A samples/validation/war/Validation.css
   A samples/validation/war/Validation.html
   A samples/validation/war/WEB-INF/classes/marker
   A samples/validation/war/WEB-INF/web.xml
 
 
  --
  http://groups.google.com/group/Google-Web-Toolkit-Contributors

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


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

Re: [gwt-contrib] Re: History integration for the RequestFactory apps. (issue717801)

2010-08-17 Thread Patrick Julien
On Tue, Aug 17, 2010 at 2:02 PM, Ray Ryan rj...@google.com wrote:
 There are a lot of features and schedules driving M3, this is just one. I
 can't make a drastic change at this point, and I can't roll the patch back,
 but are there a quick fixes I can make to unbreak you? Make exit() public or
 protected? Or can you whip up a patch?


I understand, but if you just make exit() protected in Edit and
showDetails in List protected, we have something we can work with at
least.

Edit no longer has getId() so I'm not sure how we would get around
that but at least we have a chance if these methods are protected

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


Re: [gwt-contrib] Re: History integration for the RequestFactory apps. (issue717801)

2010-08-17 Thread Ray Ryan
On Tue, Aug 17, 2010 at 11:05 AM, Patrick Julien pjul...@gmail.com wrote:

 On Tue, Aug 17, 2010 at 2:02 PM, Ray Ryan rj...@google.com wrote:
  There are a lot of features and schedules driving M3, this is just one. I
  can't make a drastic change at this point, and I can't roll the patch
 back,
  but are there a quick fixes I can make to unbreak you? Make exit() public
 or
  protected? Or can you whip up a patch?
 

 I understand, but if you just make exit() protected in Edit and
 showDetails in List protected, we have something we can work with at
 least.


Patch on its way to open those up, I'll cc you.


 Edit no longer has getId() so I'm not sure how we would get around
 that but at least we have a chance if these methods are protected


Why isn't edit.getRecord().getId() enough?




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


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

Re: [gwt-contrib] Re: History integration for the RequestFactory apps. (issue717801)

2010-08-17 Thread Ray Ryan
On Tue, Aug 17, 2010 at 11:09 AM, Ray Ryan rj...@google.com wrote:


 On Tue, Aug 17, 2010 at 11:05 AM, Patrick Julien pjul...@gmail.comwrote:

 On Tue, Aug 17, 2010 at 2:02 PM, Ray Ryan rj...@google.com wrote:
  There are a lot of features and schedules driving M3, this is just one.
 I
  can't make a drastic change at this point, and I can't roll the patch
 back,
  but are there a quick fixes I can make to unbreak you? Make exit()
 public or
  protected? Or can you whip up a patch?
 

 I understand, but if you just make exit() protected in Edit and
 showDetails in List protected, we have something we can work with at
 least.


 Patch on its way to open those up, I'll cc you.


 Edit no longer has getId() so I'm not sure how we would get around
 that but at least we have a chance if these methods are protected


 Why isn't edit.getRecord().getId() enough?


Ah. It doesn't exist. Will add it.





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




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

Re: [gwt-contrib] Public: Start of a sample application showing GWT validation. (issue760802)

2010-08-17 Thread Arthur Kalmenson
Ah, sorry about that.

--
Arthur Kalmenson



On Tue, Aug 17, 2010 at 2:04 PM, Ray Ryan rj...@google.com wrote:
 This patch is focused on the validation plumbing. The UI is throw away.

 On Tue, Aug 17, 2010 at 11:02 AM, Arthur Kalmenson arthur.k...@gmail.com
 wrote:

 I'm really excited for this validation component, you guys/gals are
 doing a great job! But it looks like Validation is using
 VerticalPanel, but from my understand we're trying to discourage the
 use of table based widgets where possible. Could this be done with
 UiBinder and divs instead?

 --
 Arthur Kalmenson



 On Tue, Aug 17, 2010 at 10:35 AM,  ncha...@google.com wrote:
  Reviewers: robertvater_google.com,
 
  Description:
  Public: Start of a sample application showing GWT validation.
 
 
  Please review this at http://gwt-code-reviews.appspot.com/760802/show
 
  Affected files:
   A eclipse/samples/Validation/.checkstyle
   A eclipse/samples/Validation/.classpath
   A eclipse/samples/Validation/.project
   A eclipse/samples/Validation/Validation-gwtc.launch
   A eclipse/samples/Validation/Validation.launch
   M eclipse/user/.classpath
   M samples/build.xml
   A samples/validation/build.xml
   A samples/validation/src/com/google/gwt/sample/validation/COPYING
   A
 
  samples/validation/src/com/google/gwt/sample/validation/Validation.gwt.xml
   A
 
  samples/validation/src/com/google/gwt/sample/validation/client/GreetingService.java
   A
 
  samples/validation/src/com/google/gwt/sample/validation/client/GreetingServiceAsync.java
   A
 
  samples/validation/src/com/google/gwt/sample/validation/client/Validation.java
   A
 
  samples/validation/src/com/google/gwt/sample/validation/server/GreetingServiceImpl.java
   A
 
  samples/validation/src/com/google/gwt/sample/validation/shared/Person.java
   A samples/validation/war/Validation.css
   A samples/validation/war/Validation.html
   A samples/validation/war/WEB-INF/classes/marker
   A samples/validation/war/WEB-INF/web.xml
 
 
  --
  http://groups.google.com/group/Google-Web-Toolkit-Contributors

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

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

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


Re: [gwt-contrib] Re: History integration for the RequestFactory apps. (issue717801)

2010-08-17 Thread Patrick Julien
 Why isn't edit.getRecord().getId() enough?

 Ah. It doesn't exist. Will add it.


thanks, here are the issues I reported in roo:


ROO-1225 Hard coded exit points for AbstractRecordEditActivity
ROO-1226 Hard coded exit points for AbstractRecordListActivity
ROO-1227 Can't create child resources from AbstractRecordEditActivity anymore
ROO-1228 Event should be fired on record creation

All are marked improvements with the exception of 1227.  I marked this
as a bug since we were able to that before

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


Re: [gwt-contrib] Public: Start of a sample application showing GWT validation. (issue760802)

2010-08-17 Thread Arthur Kalmenson
But this is looking to be a really great release for enterprise app
building! I can just imagine how many days and weeks of work this
release would have saved me :D

--
Arthur Kalmenson



On Tue, Aug 17, 2010 at 2:12 PM, Arthur Kalmenson arthur.k...@gmail.com wrote:
 Ah, sorry about that.

 --
 Arthur Kalmenson



 On Tue, Aug 17, 2010 at 2:04 PM, Ray Ryan rj...@google.com wrote:
 This patch is focused on the validation plumbing. The UI is throw away.

 On Tue, Aug 17, 2010 at 11:02 AM, Arthur Kalmenson arthur.k...@gmail.com
 wrote:

 I'm really excited for this validation component, you guys/gals are
 doing a great job! But it looks like Validation is using
 VerticalPanel, but from my understand we're trying to discourage the
 use of table based widgets where possible. Could this be done with
 UiBinder and divs instead?

 --
 Arthur Kalmenson



 On Tue, Aug 17, 2010 at 10:35 AM,  ncha...@google.com wrote:
  Reviewers: robertvater_google.com,
 
  Description:
  Public: Start of a sample application showing GWT validation.
 
 
  Please review this at http://gwt-code-reviews.appspot.com/760802/show
 
  Affected files:
   A eclipse/samples/Validation/.checkstyle
   A eclipse/samples/Validation/.classpath
   A eclipse/samples/Validation/.project
   A eclipse/samples/Validation/Validation-gwtc.launch
   A eclipse/samples/Validation/Validation.launch
   M eclipse/user/.classpath
   M samples/build.xml
   A samples/validation/build.xml
   A samples/validation/src/com/google/gwt/sample/validation/COPYING
   A
 
  samples/validation/src/com/google/gwt/sample/validation/Validation.gwt.xml
   A
 
  samples/validation/src/com/google/gwt/sample/validation/client/GreetingService.java
   A
 
  samples/validation/src/com/google/gwt/sample/validation/client/GreetingServiceAsync.java
   A
 
  samples/validation/src/com/google/gwt/sample/validation/client/Validation.java
   A
 
  samples/validation/src/com/google/gwt/sample/validation/server/GreetingServiceImpl.java
   A
 
  samples/validation/src/com/google/gwt/sample/validation/shared/Person.java
   A samples/validation/war/Validation.css
   A samples/validation/war/Validation.html
   A samples/validation/war/WEB-INF/classes/marker
   A samples/validation/war/WEB-INF/web.xml
 
 
  --
  http://groups.google.com/group/Google-Web-Toolkit-Contributors

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

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


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


[gwt-contrib] [google-web-toolkit] r8551 committed - Fix relation-id bug using wrong instance...

2010-08-17 Thread codesite-noreply

Revision: 8551
Author: cromwell...@google.com
Date: Tue Aug 17 10:06:27 2010
Log: Fix relation-id bug using wrong instance

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

Modified:
  
/trunk/user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java

 /trunk/user/test/com/google/gwt/valuestore/server/SimpleBar.java

===
---  
/trunk/user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java	 
Fri Aug 13 14:38:39 2010
+++  
/trunk/user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java	 
Tue Aug 17 10:06:27 2010

@@ -272,8 +272,8 @@
 Method method = entityElement.getClass().getMethod(methodName);
 Object returnValue = method.invoke(entityElement);
 if (returnValue != null   
Record.class.isAssignableFrom(propertyType)) {

-  Method idMethod = entityElement.getClass().getMethod(getId);
-  Long id = (Long) idMethod.invoke(entityElement);
+  Method idMethod = returnValue.getClass().getMethod(getId);
+  Long id = (Long) idMethod.invoke(returnValue);

   String keyRef =

operationRegistry.getSecurityProvider().encodeClassType(propertyType)

===
--- /trunk/user/test/com/google/gwt/valuestore/server/SimpleBar.java	Fri  
Aug 13 14:38:39 2010
+++ /trunk/user/test/com/google/gwt/valuestore/server/SimpleBar.java	Tue  
Aug 17 10:06:27 2010

@@ -55,7 +55,7 @@
   Integer version = 1;

   @Id
-  private Long id = -1L;
+  private Long id = 10L;

   private String userName;

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


[gwt-contrib] Re: Continuation of r8542 to actually properly enables double click for (issue774801)

2010-08-17 Thread t . broyer

LGTM, though I'm puzzled by Hyperlink implementing
HasDoubleClickHandlers, given that addClickHandler is deprecated on that
class.

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

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


[gwt-contrib] [google-web-toolkit] r8552 committed - Public: Move the validation metadata classes to client/metadata....

2010-08-17 Thread codesite-noreply

Revision: 8552
Author: ncha...@google.com
Date: Tue Aug 17 10:07:06 2010
Log: Public: Move the validation metadata classes to client/metadata.

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

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

Added:
 /trunk/user/src/com/google/gwt/validation/client/metadata
  
/trunk/user/src/com/google/gwt/validation/client/metadata/ConstraintDescriptorImpl.java

Deleted:
 /trunk/user/src/com/google/gwt/validation/metadata

===
--- /dev/null
+++  
/trunk/user/src/com/google/gwt/validation/client/metadata/ConstraintDescriptorImpl.java	 
Tue Aug 17 10:07:06 2010

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

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

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

+ * the License.
+ */
+package com.google.gwt.validation.client.metadata;
+
+import java.lang.annotation.Annotation;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
+import javax.validation.ConstraintValidator;
+import javax.validation.Payload;
+import javax.validation.metadata.ConstraintDescriptor;
+
+/**
+ * A immutable GWT implementation of {...@link ConstraintDescriptor}.
+ *
+ * @param T the constraint annotation to describe.
+ */
+public class ConstraintDescriptorImplT extends Annotation implements
+ConstraintDescriptorT {
+
+  /**
+   * Builder for {...@link ConstraintDescriptorImpl}
+   *
+   * @param T the constraint annotation to describe.
+   */
+  public static class BuilderT extends Annotation {
+private T annotation;
+private SetClass? groups;
+private SetClass? extends Payload payload;
+private ListClass? extends ConstraintValidatorT, ?  
constraintValidatorClasses;

+private MapString, Object attributes;
+private SetConstraintDescriptor? composingConstraints;
+private boolean reportAsSingleViolation;
+
+public ConstraintDescriptorImplT build() {
+  return new ConstraintDescriptorImplT(
+  annotation,
+  groups,
+  payload,
+  constraintValidatorClasses,
+  attributes,
+  composingConstraints,
+  reportAsSingleViolation);
+}
+
+public BuilderT setAnnotation(T annotation) {
+  this.annotation = annotation;
+  return this;
+}
+
+public BuilderT setAttributes(MapString, Object attributes) {
+  this.attributes = attributes;
+  return this;
+}
+
+public BuilderT setComposingConstraints(
+SetConstraintDescriptor? composingConstraints) {
+  this.composingConstraints = composingConstraints;
+  return this;
+}
+
+public BuilderT setConstraintValidatorClasses(
+ListClass? extends ConstraintValidatorT, ?  
constraintValidatorClasses) {

+  this.constraintValidatorClasses = constraintValidatorClasses;
+  return this;
+}
+
+public BuilderT setGroups(SetClass? groups) {
+  this.groups = groups;
+  return this;
+}
+
+public BuilderT setPayload(SetClass? extends Payload payload) {
+  this.payload = payload;
+  return this;
+}
+
+public BuilderT setReportAsSingleViolation(boolean  
reportAsSingleViolation) {

+  this.reportAsSingleViolation = reportAsSingleViolation;
+  return this;
+}
+  }
+
+  public static T extends Annotation BuilderT builder() {
+return new BuilderT();
+  }
+
+  private final T annotation;
+  private final SetClass? groups;
+  private final SetClass? extends Payload payload;
+  private final ListClass? extends ConstraintValidatorT, ?  
constraintValidatorClasses;

+  private final MapString, Object attributes;
+  private final SetConstraintDescriptor? composingConstraints;
+  private final boolean reportAsSingleViolation;
+
+  /**
+   * @param annotation
+   * @param groups
+   * @param payload
+   * @param constraintValidatorClasses
+   * @param attributes
+   * @param composingConstraints
+   * @param reportAsSingleViolation
+   */
+  private ConstraintDescriptorImpl(
+  T annotation,
+  SetClass? groups,
+  SetClass? extends Payload payload,
+  ListClass? extends ConstraintValidatorT, ?  
constraintValidatorClasses,

+  MapString, Object attributes,
+  SetConstraintDescriptor? composingConstraints,
+  boolean reportAsSingleViolation) {
+super();
+this.annotation = annotation;
+this.groups = groups;
+this.payload = payload;
+this.constraintValidatorClasses = constraintValidatorClasses;
+this.attributes 

[gwt-contrib] Re: Faster edit-distance computation in JsFunctionClusterer (issue669801)

2010-08-17 Thread mmendez

Is there anything else left to do on this change?  Alex's internship is
over, but we'd like to get the change in.

On 2010/08/10 08:44:14, zundel wrote:

Hi Andre, I'm waiting on Ray C or Lex to give the LGTM, but I noticed
this last patch you uploaded left out the editdistance library files.



On Mon, Aug 9, 2010 at 4:48 PM,  mailto:avassalo...@google.com

wrote:


 http://gwt-code-reviews.appspot.com/669801/diff/33001/34006
 File

dev/core/src/com/google/gwt/dev/jjs/impl/JsFunctionClusterer.java

 (right):



http://gwt-code-reviews.appspot.com/669801/diff/33001/34006#newcode43



dev/core/src/com/google/gwt/dev/jjs/impl/JsFunctionClusterer.java:43:

 Pattern.compile(function |[_a-zA-Z$][.$_a-zA-Z0-9]*=function);
 On 2010/08/06 02:12:25, cromwellian wrote:

 This regex will incorrect match vtable declarations of the form:

 _.name = function() { ... }

 These prototype declarations cannot be re-ordered, so don't let it

 match a

 single '_' symbol.


 Fixed.

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






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





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

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


[gwt-contrib] Re: Added all safehtml packages. (issue771801)

2010-08-17 Thread jat

On 2010/08/16 23:39:47, tbroyer wrote:

The HtmlSanitizer is a good idea, but the implementation is very weak

[2].

Note that the API is what is important, and SimpleHtmlSanitizer is just
that, a simple implementation.  A more involved implementation can be
added later.

Also, we aren't trying to parse HTML with a regex here, it simply looks
for opening tags and allows unescaped on a small set of whitelisted tags
-- everything else gets escaped.  If you think it fails to do its job,
can you supply a string which would not be propertly sanitized?

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

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


[gwt-contrib] Re: Makes the terminology used by AbstractListViewAdapter and AbstractPager consistent with HasData.... (issue772801)

2010-08-17 Thread jlabanca

committed as r8553

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

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


[gwt-contrib] [google-web-toolkit] r8554 committed - Allow merging of modules with the same prefix, for example if you have...

2010-08-17 Thread codesite-noreply

Revision: 8554
Author: fabb...@google.com
Date: Tue Aug 17 08:14:13 2010
Log: Allow merging of modules with the same prefix, for example if you have  
a

directory of widgets that are separated into multiple modules (but in the
same java package), or if you have src/test roots that each have modules
for the same package.  The existing exclude attribute is used to mark
something that no modue should ever touch, i.e. known non-translatable
source.  A new skip attribute is used to mark something that *this*
module doesn't want, but that *other* modules might need.  (You could
probably be clever with just include for this case, but sometimes it's
nice to be able to express a negative.)

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

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

Added:
 /trunk/dev/core/test/com/google/gwt/dev/cfg/ModuleDefLoaderTest.java
 /trunk/dev/core/test/com/google/gwt/dev/cfg/testdata
 /trunk/dev/core/test/com/google/gwt/dev/cfg/testdata/merging
 /trunk/dev/core/test/com/google/gwt/dev/cfg/testdata/merging/One.gwt.xml
 /trunk/dev/core/test/com/google/gwt/dev/cfg/testdata/merging/Three.gwt.xml
 /trunk/dev/core/test/com/google/gwt/dev/cfg/testdata/merging/Two.gwt.xml
 /trunk/dev/core/test/com/google/gwt/dev/cfg/testdata/merging/client
  
/trunk/dev/core/test/com/google/gwt/dev/cfg/testdata/merging/client/InOne.java
  
/trunk/dev/core/test/com/google/gwt/dev/cfg/testdata/merging/client/InTwo.java
  
/trunk/dev/core/test/com/google/gwt/dev/cfg/testdata/merging/client/Shared.java
  
/trunk/dev/core/test/com/google/gwt/dev/cfg/testdata/merging/client/Toxic.java

Modified:
 /trunk/dev/core/src/com/google/gwt/dev/cfg/ModuleDef.java
 /trunk/dev/core/src/com/google/gwt/dev/cfg/ModuleDefSchema.java
 /trunk/dev/core/src/com/google/gwt/dev/resource/impl/DefaultFilters.java
 /trunk/dev/core/src/com/google/gwt/dev/resource/impl/PathPrefix.java
 /trunk/dev/core/src/com/google/gwt/dev/resource/impl/PathPrefixSet.java
  
/trunk/dev/core/test/com/google/gwt/dev/resource/impl/DefaultFiltersTest.java


===
--- /dev/null
+++ /trunk/dev/core/test/com/google/gwt/dev/cfg/ModuleDefLoaderTest.java	 
Tue Aug 17 08:14:13 2010

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

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

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

+ * the License.
+ */
+package com.google.gwt.dev.cfg;
+
+import com.google.gwt.core.ext.TreeLogger;
+
+import junit.framework.TestCase;
+
+/**
+ * Test for the module def loading
+ */
+public class ModuleDefLoaderTest extends TestCase {
+
+  /**
+   * Test of merging multiple modules in the same package space.
+   * This exercises the interaction of include, exclude, and skip  
attributes.

+   */
+  public void testModuleMerging() throws Exception {
+TreeLogger logger = TreeLogger.NULL;
+ModuleDef one = ModuleDefLoader.loadFromClassPath(logger,
+com.google.gwt.dev.cfg.testdata.merging.One, false);
+ 
assertNotNull(one.findSourceFile(com/google/gwt/dev/cfg/testdata/merging/client/InOne.java));
+ 
assertNotNull(one.findSourceFile(com/google/gwt/dev/cfg/testdata/merging/client/Shared.java));
+ 
assertNull(one.findSourceFile(com/google/gwt/dev/cfg/testdata/merging/client/InTwo.java));
+ 
assertNull(one.findSourceFile(com/google/gwt/dev/cfg/testdata/merging/client/Toxic.java));

+
+ModuleDef two = ModuleDefLoader.loadFromClassPath(logger,
+com.google.gwt.dev.cfg.testdata.merging.Two, false);
+ 
assertNotNull(two.findSourceFile(com/google/gwt/dev/cfg/testdata/merging/client/InOne.java));
+ 
assertNotNull(two.findSourceFile(com/google/gwt/dev/cfg/testdata/merging/client/Shared.java));
+ 
assertNotNull(two.findSourceFile(com/google/gwt/dev/cfg/testdata/merging/client/InTwo.java));
+ 
assertNull(two.findSourceFile(com/google/gwt/dev/cfg/testdata/merging/client/Toxic.java));

+
+ModuleDef three = ModuleDefLoader.loadFromClassPath(logger,
+com.google.gwt.dev.cfg.testdata.merging.Three, false);
+ 
assertNotNull(three.findSourceFile(com/google/gwt/dev/cfg/testdata/merging/client/InOne.java));
+ 
assertNotNull(three.findSourceFile(com/google/gwt/dev/cfg/testdata/merging/client/Shared.java));
+ 
assertNull(three.findSourceFile(com/google/gwt/dev/cfg/testdata/merging/client/InTwo.java));
+ 
assertNull(three.findSourceFile(com/google/gwt/dev/cfg/testdata/merging/client/Toxic.java));

+  }
+
+}
===

[gwt-contrib] [google-web-toolkit] r8555 committed - Rolling back r8550: Change to CompilationStateBuilder to prevent recur...

2010-08-17 Thread codesite-noreply

Revision: 8555
Author: roytibur...@google.com
Date: Tue Aug 17 08:39:10 2010
Log: Rolling back r8550: Change to CompilationStateBuilder to prevent  
recursive invalidation on changed units.


Broke some users.

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

Deleted:
 /trunk/dev/core/src/com/google/gwt/dev/javac/Dependencies.java
Modified:
 /trunk/dev/core/src/com/google/gwt/dev/javac/CompilationState.java
 /trunk/dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java
 /trunk/dev/core/src/com/google/gwt/dev/javac/CompilationUnit.java
 /trunk/dev/core/src/com/google/gwt/dev/javac/CompilationUnitBuilder.java
 /trunk/dev/core/src/com/google/gwt/dev/javac/CompilationUnitImpl.java
  
/trunk/dev/core/src/com/google/gwt/dev/javac/CompilationUnitInvalidator.java

 /trunk/dev/core/src/com/google/gwt/dev/javac/JdtCompiler.java
 /trunk/dev/core/src/com/google/gwt/dev/javac/SourceFileCompilationUnit.java
 /trunk/dev/core/src/com/google/gwt/dev/util/Util.java
 /trunk/dev/core/test/com/google/gwt/dev/javac/CompilationStateTest.java
 /trunk/dev/core/test/com/google/gwt/dev/javac/CompilationStateTestBase.java
  
/trunk/dev/core/test/com/google/gwt/dev/javac/CompilationUnitFileReferenceTest.java


===
--- /trunk/dev/core/src/com/google/gwt/dev/javac/Dependencies.java	Tue Aug  
17 04:56:43 2010

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

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

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

- * the License.
- */
-package com.google.gwt.dev.javac;
-
-import com.google.gwt.dev.util.collect.HashMap;
-import com.google.gwt.dev.util.collect.Lists;
-
-import org.eclipse.jdt.internal.compiler.classfmt.ClassFileReader;
-import org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException;
-
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-import java.util.Map.Entry;
-
-/**
- * Tracks dependencies from a {...@link CompilationUnit} to {...@link  
CompiledClass

- * CompiledClasses}.
- */
-class Dependencies {
-  MapString, CompiledClass qualified = new HashMapString,  
CompiledClass();

-  MapString, CompiledClass simple = new HashMapString, CompiledClass();
-  private final String myPackage;
-  private ListString unresolvedQualified;
-  private ListString unresolvedSimple;
-
-  Dependencies() {
-this.myPackage = ;
-  }
-
-  /**
-   * Initializes the set of simple and qualified dependency names, but  
does not

-   * resolve them.
-   */
-  Dependencies(String myPackage, ListString unresolvedQualified,
-  ListString unresolvedSimple) {
-this.myPackage = (myPackage.length() == 0) ?  : (myPackage + '.');
-this.unresolvedQualified = unresolvedQualified;
-this.unresolvedSimple = unresolvedSimple;
-  }
-
-  /**
-   * Returns the list of deps that cannot be resolved at all.
-   */
-  ListString findMissingDeps(SetString allValidClasses) {
-ListString result = Lists.create();
-for (EntryString, CompiledClass entry : qualified.entrySet()) {
-  String sourceName = entry.getKey();
-  boolean expected = entry.getValue() != null;
-  boolean actual = allValidClasses.contains(sourceName);
-  if (expected != actual) {
-result = Lists.add(result, sourceName);
-  }
-}
-for (EntryString, CompiledClass entry : simple.entrySet()) {
-  String sourceName = entry.getKey();
-  boolean expected = entry.getValue() != null;
-  boolean actual = allValidClasses.contains(myPackage + sourceName)
-  || allValidClasses.contains(java.lang. + sourceName);
-  if (expected != actual) {
-result = Lists.add(result, sourceName);
-  }
-}
-return result;
-  }
-
-  /**
-   * Resolves unqualified dependencies against the global list of all valid
-   * classes. Must be called before {...@link #validate(String, Map, Map)}.
-   */
-  void resolve(MapString, CompiledClass allValidClasses) {
-for (String ref : unresolvedQualified) {
-  CompiledClass cc = allValidClasses.get(ref);
-  qualified.put(ref, cc);
-}
-
-for (String ref : unresolvedSimple) {
-  CompiledClass cc = findBySimpleName(ref, allValidClasses);
-  allValidClasses.get(ref);
-  simple.put(ref, cc);
-}
-unresolvedQualified = unresolvedSimple = null;
-  }
-
-  /**
-   * Validate that all of my existing dependencies can be found in the  
global

-   * set of valid classes, and resolve to structurally identical APIs.
-   *
-   * @return 

[gwt-contrib] Allows subclasses to take control of exit points in (issue771802)

2010-08-17 Thread rjrjr

Reviewers: jlabanca,

Description:
Allows subclasses to take control of exit points in
AbstractRecordListActivity and AbstractRecordEditActivity

https://jira.springsource.org/browse/ROO-1225
https://jira.springsource.org/browse/ROO-1226
https://jira.springsource.org/browse/ROO-1227


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

Affected files:
  M user/src/com/google/gwt/app/place/AbstractRecordEditActivity.java
  M user/src/com/google/gwt/app/place/AbstractRecordListActivity.java


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


Re: [gwt-contrib] Re: History integration for the RequestFactory apps. (issue717801)

2010-08-17 Thread Ray Ryan
http://gwt-code-reviews.appspot.com/771802

On Tue, Aug 17, 2010 at 11:14 AM, Patrick Julien pjul...@gmail.com wrote:

  Why isn't edit.getRecord().getId() enough?
 
  Ah. It doesn't exist. Will add it.


 thanks, here are the issues I reported in roo:


 ROO-1225 Hard coded exit points for AbstractRecordEditActivity
 ROO-1226 Hard coded exit points for AbstractRecordListActivity
 ROO-1227 Can't create child resources from AbstractRecordEditActivity
 anymore
 ROO-1228 Event should be fired on record creation

 All are marked improvements with the exception of 1227.  I marked this
 as a bug since we were able to that before

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


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

  1   2   >