Re: My Maps Integration

2008-11-21 Thread Umberto

Hi Eric, I am actually using that binding for my project. However, I
was unable to find any way
to add to the map currently visualized, the layer created with the 'My
Maps' tool. I thought
something as addOverlay(URL) could exist, with URL poiting ad a user
created map, but
I was unable to find anything of sort.

Are you aware of any other solution?

Thanks again,

Umberto

On Nov 21, 3:11 am, Eric Ayers [EMAIL PROTECTED] wrote:
 Hi Umberto,
 I'm not sure how to interface with MyMaps, but a JavaScript API exists, as
 well as GWT bindings for the API athttp://code.google.com/p/gwt-google-apis

 On Thu, Nov 20, 2008 at 6:00 PM, Umberto [EMAIL PROTECTED] wrote:

  Hi everybody, just a simple question. Is it possible to easily
  integrate a map created with 'My Maps' tool (http://maps.google.com/
  help/maps/mymaps/create.htmlhttp://maps.google.com/help/maps/mymaps/create.html)
  in a GWT based web application?
  Any help would be appreciated. Thanks in advance,

  Umberto

 --
 Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Questions about transforming a GWT application as an open social gadget

2008-11-21 Thread Laurent Bois

I saw my problem with inspector in Safari...
Problem comes from the cache.html files displayed in iFrame , and
loaded from the url http://sudoracegadget.googlecode.com/svn/trunk/
whereas the Gadget itself is running in an OpenSocial container with a
different domain :
- on iGoogle , URL being 47.gmodules.com
- When testing , www.gmodules.com

I understand well the Javascript for  an OpenSocial gadget could be
self contained in the Gadget XML file, and in this case no problems.

So my question is :
With a more complex GWT application (as the StockWatcher exemple from
the Google GWT tutorial ), having dependencies to HTML artifacts...
are there tricks to make it run as a (OpenSocial) Gadget

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



Re: Sharing data between pre-existing data in a JSP and the GWT module

2008-11-21 Thread olivier nouguier

Hi Suri,
 Thanks for this tip !
 But IMHO in your case I think that the problem is in the hosted page:
 Try replacing:
var testVar = %= request.getAttribute(someValue) %
 by:
var testVar = %= request.getAttribute(someValue) %

Notice the quote !
Then the generate js will be:
  var testVar = 12345; // a string
Instead of
 var testVar = 12345; // an int

However your solution seems pretty to me and it's better check twice
those JS type.

Best regards
Olivier.
On Thu, Nov 20, 2008 at 10:19 PM, Suri [EMAIL PROTECTED] wrote:

 Hi Olivier,
 I just thought I'd let you know. The script you have works great
 however needs one additional modification.

 public static native String jnsiGetString(String jsVar, String
 defaultValue)/*-{
  var value = eval('$wnd.'+jsVar);
  if(value){
return value.toString();
  }
  return defaultValue;
}-*/;

 and

 public String getSomeValue(){
   return jnsiGetString(someValue, null);

 }

 Notice the .toString(). This is so that the value being returned is
 truly converted to a String datatype. As part of doing some work I had
 used the script but the variable that was being referenced, happened
 to have a numeric value. Thus, when trying to do an RPC, the system
 kept giving me a ClassCastException although I was sure I was passing
 a String (it also passed the instanceof test) but once I put
 the .toString() it worked correctly. I guess something funky happens
 there no idea what. e.g
 --- JSP-
 script language=javascript type=text/javascript
  // someValue happens to be an integer although its sent as a String
 in Java e.g 123456
  var testVar = %= request.getAttribute(someValue) %
 /script
 ---

 - Client Code 

 ...
  String testValue = getString(testVar, 0);
 // Although this executes correctly and works fine, it acts up later
 in the code unless the .toString() method is called in the javascript
 as shown before.
 

 Thanks

 Suri
 On Nov 20, 11:34 am, Suri [EMAIL PROTECTED] wrote:
 Thanks Olivier. That makes sense. I'll have to use the String and
 validate it at the server side I guess.

 Suri

 On Nov 20, 10:08 am, olivier nouguier [EMAIL PROTECTED]
 wrote:

  There is no long datatype in javascript !

 http://www.google.com/search?q=GWT+long+emulationsourceid=navclient-...

  On Thu, Nov 20, 2008 at 3:31 PM, Suri [EMAIL PROTECTED] wrote:

   Hi Olivier,
   I actually saw your post later on another thread and used the default
   solution. Thanks for that. Pretty neat.
   A different question now, I observed that after obtaining the value I
   wanted, I could not convert it to a Long type. i.e

   in my client java code after retrieving the value using the native
   method above I try something like

   Long longVal = Long.parseLong(returnedValue);

   And that seems to throw an error in the browser. I do remember reading
   about some issues with Long datatype and javascript, however any
   explanation is welcome. I'd like to understand it better.
   Thanks
   Suri

   On Nov 20, 3:43 am, olivier nouguier [EMAIL PROTECTED]
   wrote:
   public native String getSomeValue() /*- {
  return $wnd.someValue.}*-/;

   But be aware of undef !!!
   should be:
   public native String getSomeValue() /*- {
  if($wnd.someValue){
return $wnd.someValue.
  }
  return null;

   }*-/;

   More generic:

public static native String jnsiGetString(String jsVar, String
   defaultValue)/*-{
 var value = eval('$wnd.'+jsVar);
 if(value){
   return value;
 }
 return defaultValue;
   }-*/;

   and

   public String getSomeValue(){
  return jnsiGetString(someValue, null);

   }

   HIH

   On Wed, Nov 19, 2008 at 8:46 PM, Suri [EMAIL PROTECTED] wrote:

As an update question as well,

Does anyone know if this is correct syntax and if not what would be
the correct way to go about this.
I'm trying to copy the value of my javascript variable set in theJSP
to the GWT client.

JSPFILE --
script language=javascript type=text/javascript

var someValue = %= (String) request.getAttribute(someValue)
%

/script
 GWT ENTRY POINT CLIENT CLASS
-

public class SomeClass
{
 private String someValue;

 public onModuleLoad()
 {
   this.someValue = getSomeValue;
 }

 public native String getSomeValue() /*- {
  return someValue;
 } -*/

}


Thanks.

On Nov 19, 11:40 am, Suri [EMAIL PROTECTED] wrote:
Hi,
This must've been asked a million times and I tried looking but the
only answer I got was JSNI in most cases. I just want to be sure its
the only way. Assuming I was passing data to myJSPafter my action
has 

Problem in GWT 1.5

2008-11-21 Thread jamer

Hi Group!

In GWT 1.5, when I create an HTML to add an image, this appears
descuadrada me, that is, I do not appear in line with the text.
If I create a HorizontalPanel with a TextBox and a picture, the
TextBox and the image does not appear to me square, and if that aligns
with the options of VerticalPanel, I get a lot of space above and
below these Widget Why?
Pd: In GWT 1.4 I did this.

Thank you!!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Serializable class not being compiled and added to serialization policies whitelist

2008-11-21 Thread Paul Robinson

Do you have a no-arg constructor? That's a requirement for GWT
serialization (although it can be private)

Flapjack wrote:
 I have several classes that are not being compiled and added to the
 serialization policies whitelist, however by examining the logs I
 don't see any information which specifically indicates why it cannot
 be compiled.  Additionally, I have classes that extend a class which
 are compiled and added to the whitelist, but the superclass is not
 compiled or added to the whitelist... should this not be considered a
 bug?  If a classes superclass cannot be serialized how can the sub-
 type work?

 Is there any particular setting that will let me know why a class is
 failing to be compiled?

 Thanks.
 David
   

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



Re: GWT 1.5 demo - proxy issue

2008-11-21 Thread Miles T.

By the way, isn't gmail using GWT 1.5 ? I have no problem with GWT.

On 22 oct, 03:57, jiangh [EMAIL PROTECTED] wrote:
 The point is no one tell me what exact firewall rules should be
 changed if   this problem can be resolved by this way

 On Oct 2, 5:33 pm, Greg Stasica [EMAIL PROTECTED] wrote:

  i've the same problem while running Symantec Client Firewall. There
  are some posts onhttp://gwt-ext.com/forum/(searchfirewall) about
  this problem but unfortunately no solution (except perhaps that the
  problem can be resolved by changing some rules (no information what
  exactly has to be changed thoug) on your firewall)

  On Sep 25, 10:25 am, Nicolas [EMAIL PROTECTED] wrote:

   Maybe we should post a bug. Is there a place for that ?

   On 26 août, 02:33, Gabriel Krupa [EMAIL PROTECTED] wrote:

The firewall software in my compamy seems to modify the Left shift 
  operators.

in the generated Java Script there ist following line:
function Eob(a){if(a=30){return 1a}else{return Eob(30)*Eob(a-30)}}

and the Java Script received through firewall looks like this:
function Eob(a){if(a=30){return 1lt;a}else{return
Eob(30)*Eob(a-30)}}

I have shorty investigated the generated JavaScript Code differences
between GWT 1.4 and GWT 1.5 and GWT 1.4 does not use Left Shift
operators as extensive as GWT 1.5.

The question is: Who should change the code. GWT Team or firewall
producer?  GWT 1.4 is OK GWT 1.5 is not working.

Regards,
Gabriel

On 25 Jul., 13:08, dendie [EMAIL PROTECTED] wrote:

 I hav the same problem. I can openhttp://gwt-ext.com/demo-ux/andthe
 old 
 showcase2-apphttp://gwt-ext.com/showcase2/www/com.gwtext.sample.showcase2.Showcase...
 but the newhttp://gwt-ext.com/demo/doesn'tworksincetheyreleased
 gwt 1.5 RC 1.
 At home there is no issue

 That's the reason, why I can't develop with gwt 1.5 RC 1 im my 
 company.- 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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Fw: how to work with xs-linker in gwt

2008-11-21 Thread Manish Kumar

 Hi,

 My need is like cross-site implementation. Actually I have an HTML which
 display two buttons.Please make a note here that this HTML(external) could
 not be included in GET component.

 On click of buttons , I wanted to call GET component.

 My approach is to call a java native method with some parameter written in
 GET java file , where onModuleLoad is there on the click of Buttons.  My
 native method works well if we run GET separately.But when i go for
 integration with HTML
 this does not wrk. Now I compile the GET code using xs linker and included
 no-cache.js in my external HTML. I expect to make a call to GET java JSNI
 method. Months back I have tried , I succeeded. But currently this is not. 
I
 don't what I am missing.

 One markable point is that moths back I got my native method inside
 no-cache.js.

 Please let us know if anybody is having any alternative approach or can 
help me out.

 Manish


 - Original Message - 
 From: Manuel Carrasco [EMAIL PROTECTED]
 To: Google Web Toolkit Google-Web-Toolkit@googlegroups.com
 Sent: Thursday, November 20, 2008 10:49 PM
 Subject: Re: Fw: how to work with xs-linker in gwt



 I dont understand what exactly you want.

 Any way, basically the only difference between the standard and the
 cross-site compiler is:
 - std compiler generates files 'xxx.cache.html' (javascript is inside
 a script tag). This files are inserted in an iframe by the
 xxx.no.cache.js. This doesnt work if the  xxx.cache.html cames from a
 domain different of your application.html.
 - xd compiler generates files 'xxx.cache.js' that 'xxx.no-cache.js'
 inserts in your page creating a javascript link. This technique works
 for cross-site.

 I think , the main reason for using the standard compiler is because
 some browser versions (IE) dont work fine with gziped js.


 Manolo



 On Nov 20, 3:08 pm, Manish Kumar [EMAIL PROTECTED] wrote:
 Hi

 Thanks eggsy for a alternative.I ll take try on this.

 I have already added xs linker and then compile the GWT source.

 After that I am using compiled code in our HTML( including no-cache.js )
 for
 calling JNSI method call.

 Actually a couple of months back, I got succeeded in same way but this
 time
 i am not. The most crucial point for me is that time i was able to see my
 JSNI java
 method in no-cache.js which this time it's not.

 Please let us know if i am wrong in approach or anybody having any
 alternative.

 Regards
 Manish

 - Original Message -
 From: Manuel Carrasco [EMAIL PROTECTED]
 To: Google Web Toolkit Google-Web-Toolkit@googlegroups.com
 Sent: Thursday, November 20, 2008 5:57 PM
 Subject: Re: Fw: how to work with xs-linker in gwt

 Include this line in your module.gwt.xml file

 add-linker name=xs/

 On Nov 20, 11:22 am, Manish Kumar [EMAIL PROTECTED] wrote:
  Hi guys,

  Please help me out if anybody having any idea on the issue mentioned
  below
  ??

  Regards,
  Manish

  - Original Message -
  From: Manish Kumar
  To: Google-Web-Toolkit@googlegroups.com
  Sent: Wednesday, November 19, 2008 6:17 PM
  Subject: Re: how to work with xs-linker in gwt

  Hi,

  As asked , please have a look at my code :

  GWT :

  public void onModuleLoad(){

  try

  {

  exportStaticMethod(this);

  }

  catch(Exception re)

  {

  MessageBox.alert(re.getMessage());

  }

  }

  public native void exportStaticMethod(PMGWTHtmlUtils pmGWTHtmlUtils)

  /*-{

  $wnd.invokeGWT = function(bId,cId,mId,mName,cName)

  {

  [EMAIL 
  PROTECTED]::invokeGWT(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)(bId,cId,mId,mName,cName);

  };

  if($wnd.callGWTUtils){

  $wnd.callGWTUtils();

  }

  }-*/;

  public void invokeGWT( String bId,String cId,String mId,String
  mName,String cName ) throws RequestException {

  System.out.println(   :+ bId);

  if(bId.equalsIgnoreCase(new))

  {

  window = new Window();

  BorderLayoutData centerData = new
  BorderLayoutData(RegionPosition.CENTER);

  window.setTitle(Layout Window);

  //window.setClosable(true);

  window.setWidth(600);

  window.setHeight(500);

  window.setPlain(true);

  window.setLayout(new BorderLayout());

  window.add(createAddCommentForm( c0,c7,Test Process 
  Model,process
  overview) ,centerData);

  //window.setCloseAction(Window.HIDE);

  window.show();

  }

  else if(bId.equalsIgnoreCase(view))

  {

  String destUrl = PMServerUrl + processmaster/comments/+mName+.xml;

  doViewCommentRequest(destUrl);

  }

  }

  After compiling the gwt component using xs linker , I am trying to use
  this in HTML stuffs :

  script type=text/javascript src=../js/pmxslutils.js/script

  script language=javascript
  src=com.pm.output.html.gwt.model.comment.PMGWTHtmlUtils.nocache.js/script

  // pmxslutils.js

  function callGWTUtils( bttnId ) // This method id called on button 
  click
  on HTML.
  {
  if( currDispId != null )
  {
  invokeGWT(
  

Re: load property file from a list of property files

2008-11-21 Thread Reinier Zwitserloot

Zujee, that's not how you solve this problem.

Make the client download the properties from the server. Basically,
have a simple servlet that takes one parameter and returns the
appropriate properties, e.g. as a HashMap which you transfer via GWT-
RPC.

If you don't know what GWT-RPC is, its one of the systems you can use
to chat between client and server. There's plenty of documentation
available from the main GWT site about how to use it.

On Nov 21, 5:34 am, zujee [EMAIL PROTECTED] wrote:
 Yes.. I want deffered binding.. Bcoz according to each customer comes,
 we just want to add a property file for that customer.
 Not to compile the entire application. How can it be possible? Is
 there any example or sample document available which will help to
 achive that.
 pls help

 On Nov 20, 2:21 pm, Thomas Broyer [EMAIL PROTECTED] wrote:

  On 20 nov, 07:58, zujee [EMAIL PROTECTED] wrote:

   Hi,
   I have a number of property files according to our clients like

   myapp_compny1_en.propertis,myapp_compny2_en.propertis,...etc..etc..

   For each compny , property files contents  might vary..

   Can some one suggest me in which way i need to achive this...
   Currently im trying with immutableResourceBundle. Is thats the right
   approch? is there any thing i need to take when i put name for each
   property files?

  How is the company selected?

  If you package your app for each company and deploy them separately
  (each company has its own version of the app), then its just a matter
  of packaging.

  Otherwise (deferred binding), you might want to write your own
  generator (inheriting an existing one and adding your own logic to
  select the appropriate properties file depending on the company for
  the processed permutation)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



variable argument type in RPC service

2008-11-21 Thread Litty Preeth

Hi all,

Anybody have any idea how to use variable length argument (like
String...) in an RPC service. Coz the corresponding async service
should have AsyncCallback as its last argument. But when we use
variable type argument that should be the last argument of the method.

Thanks,
Litty Preeth
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Widgets In A List Box

2008-11-21 Thread jagadesh

HI Guys,

Iam Working on a requirement where i need to add Hyperlink to the
Listbox item.
can any one sort me out.

thanks in advance.
jagadesh

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



Re: MapWidget InfoWindow open ... no Content is shown

2008-11-21 Thread r3v3r3nd

hi eric,

thanks a lot, it works pretty well with version 1.0.1

regards, 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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Tree Issue?

2008-11-21 Thread Jose Santa Elena
Hi all..
When a presse Alt (todo do a Alt+tab) with my table selected, the selection
changes to the first item. To solv this problem, I've tried create the tree
like this:

tree = new Tree(images) {
protected boolean isKeyboardNavigationEnabled(TreeItem currentItem) {
return false;
}
};

But it doen't resolve.

Any ideas?

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



Is it a Tree Issue?

2008-11-21 Thread jsantaelena

Hi all..

When a presse Alt (todo do a Alt+tab) with my table selected, the
selection changes to the first item. To solv this problem, I've tried
create the tree like this:

tree = new Tree(images) {
protected boolean isKeyboardNavigationEnabled(TreeItem
currentItem) {
return false;
}
};

But it doen't resolve.

Any ideas?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



log4j in gwt environment with ibatis...

2008-11-21 Thread [EMAIL PROTECTED]


I searched the other posts in the group and didnt see a solution.
Somebody said they got it to work but never posted the solution. I
have -Dlog4j.debug=true -Dlog4j.configuration=...  and my
log4j.properties has log4j.rootCategory set to STDOUT and so is
log4j.logger. I have commons-logging and log4j in the classpath. I
read that commons logging with log4j is a problem with iBatis on gwt.
Anybody have this environment and can you comment on how you solved
these issues ? Help appreciated.

here is the log4j.properties...



log4j.rootCategory=INFO, STDOUT
# Use FILE-X in Application Server
log4j.rootLogger=ERROR, FILE-1
log4j.logger.com.ibatis=INFO, CONSOLE-1

log4j.logger.java.sql=INFO,stdout
log4j.logger.com.ibatis.common.jdbc.SimpleDataSource=INFO, CONSOLE-1
log4j.logger.com.ibatis.common.jdbc.ScriptRunner=INFO, CONSOLE-1
log4j.logger.com.ibatis.sqlmap.engine.impl.SqlMapClientDelegate=INFO,
CONSOLE-1
log4j.logger.java.sql.Connection=INFO, CONSOLE-1
log4j.logger.java.sql.Statement=INFO, CONSOLE-1
log4j.logger.java.sql.PreparedStatement=INFO, CONSOLE-1
log4j.logger.java.sql.ResultSet=INFO, CONSOLE-1

# CONSOLE is set to be a ConsoleAppender and uses PatternLayout
log4j.appender.CONSOLE-1=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE-1.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE-1.layout.ConversionPattern=%d{MM/dd/
HH:mm:ss,SSS} [%t] %-5p %c %x - %m%n


# FILE-1
log4j.appender.FILE-1=org.apache.log4j.RollingFileAppender
log4j.appender.FILE-1.File=log4j.log
log4j.appender.FILE-1.MaxFileSize=5000KB
# Keep 3 backup files
log4j.appender.FILE-1.MaxBackupIndex=100
log4j.appender.FILE-1.layout=org.apache.log4j.PatternLayout
log4j.appender.FILE-1.layout.ConversionPattern=%d{MM/dd/
HH:mm:ss,SSS} [%t] %-5p %c %x - %m%n



Thx

-- pady

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



How to update PagingScrollTable?

2008-11-21 Thread DevUnion

Could anybody tell me how I can to update PagingScrollTable? From time
to time data on the server is changed. Si, I want to use Timer to keep
the table in actual state. I've tried something like this:

new Timer() {
public void run() {
scrollTable.reloadPage();
scrollTable.redraw();
}
}.scheduleRepeating(2);

But it doesn't work.

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



Re: Easiest way to open a new window with some text in it?

2008-11-21 Thread darkflame

Thats still using the string by the URL though/get method, which
limits the charecfters to about  100  :-/

Is it possible to do the same thing but not have the data in the url,
so it could be picked up by the php's post variable instead?
(which you can do with RequestBuilder by using  new RequestBuilder
(RequestBuilder.POST) but that dosnt open a new window.)

On Nov 21, 8:13 am, Danny Schimke [EMAIL PROTECTED] wrote:
 You could try to use JSNI to open a new window as you've already done:

 It should look something like this:

 native JavaScriptObject openWindow(String param) /*-{
         $wnd.open('scripts/display.php' + '?text=' + messageslist.getText(),
 '_blank', null);
         return true;}-*/;

 I hpe it's what you searched for...

 Danny

 2008/11/20 darkflame [EMAIL PROTECTED]





  Any ideas?
  The text is dynamic, so I thought at first I'd just use;

  Window.open(scripts/display.php+?text=+messageslist.getText(),
  _blank, null);

  Where display.php simply gets the text variable in the url and echo's
  it back.

  However, this has a very short limit on the text that can be
  displayed.
  Is it possible to do a simerla function with RequestBuilder? So Post
  can be used correctly?
  I have no idea if its possible to use RequestBuilder to open a php in
  a new window, so if it isn't I would welcome workarounds if its not.

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



Re: variable argument type in RPC service

2008-11-21 Thread Jason Morris

I would say: pass the data as an array, and wrap the RPC service on the client 
side:

public void doSomething(Object param1, AsyncCallback callback, String... 
strings) {
asyncClient.doSomething(param1, strings, callback);
}

If you really need varargs. Bare in mind the expense of varargs in JavaScript 
is fairly high (since 
it's turned into an Array underneath by the GWT compiler)... A better option is 
to just go with the 
old 1.4 syntax:

doSomething(param1, new String[] { String 1, String 2 });

although it's the same expense as varargs, it plays nicely with RPC.

Litty Preeth wrote:
 Hi all,
 
 Anybody have any idea how to use variable length argument (like
 String...) in an RPC service. Coz the corresponding async service
 should have AsyncCallback as its last argument. But when we use
 variable type argument that should be the last argument of the method.
 
 Thanks,
 Litty Preeth
  
 

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



Socket connection

2008-11-21 Thread Pete Kay
Hi

Does anyone know of any GWT lib that can do socket connection?

Thanks alot in advance for your help.

Pete

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



Re:how to work with xs-linker in gwt

2008-11-21 Thread Manish Kumar

Hi,

 My need is like cross-site implementation. Actually I have an HTML which
 display two buttons.Please make a note here that this HTML(external) could
 not be included in GET component.

 On click of buttons , I wanted to call GET component.

 My approach is to call a java native method with some parameter written in
 GET java file , where onModuleLoad is there on the click of Buttons.  My
 native method works well if we run GET separately.But when i go for
 integration with HTML
 this does not wrk. Now I compile the GET code using xs linker and included
 no-cache.js in my external HTML. I expect to make a call to GET java JSNI
 method. Months back I have tried , I succeeded. But currently this is not.
 I don't what I am missing.

 One markable point is that moths back I got my native method inside
 no-cache.js.

 Please let us know if anybody is having any alternative approach or can
 help me out.

 Manish
- Original Message - 
 From: Manuel Carrasco [EMAIL PROTECTED]
 To: Google Web Toolkit Google-Web-Toolkit@googlegroups.com
 Sent: Thursday, November 20, 2008 10:49 PM
 Subject: Re: Fw: how to work with xs-linker in gwt



 I dont understand what exactly you want.

 Any way, basically the only difference between the standard and the
 cross-site compiler is:
 - std compiler generates files 'xxx.cache.html' (javascript is inside
 a script tag). This files are inserted in an iframe by the
 xxx.no.cache.js. This doesnt work if the  xxx.cache.html cames from a
 domain different of your application.html.
 - xd compiler generates files 'xxx.cache.js' that 'xxx.no-cache.js'
 inserts in your page creating a javascript link. This technique works
 for cross-site.

 I think , the main reason for using the standard compiler is because
 some browser versions (IE) dont work fine with gziped js.


 Manolo



 On Nov 20, 3:08 pm, Manish Kumar [EMAIL PROTECTED] wrote:
 Hi

 Thanks eggsy for a alternative.I ll take try on this.

 I have already added xs linker and then compile the GWT source.

 After that I am using compiled code in our HTML( including no-cache.js )
 for
 calling JNSI method call.

 Actually a couple of months back, I got succeeded in same way but this
 time
 i am not. The most crucial point for me is that time i was able to see 
 my
 JSNI java
 method in no-cache.js which this time it's not.

 Please let us know if i am wrong in approach or anybody having any
 alternative.

 Regards
 Manish

 - Original Message -
 From: Manuel Carrasco [EMAIL PROTECTED]
 To: Google Web Toolkit Google-Web-Toolkit@googlegroups.com
 Sent: Thursday, November 20, 2008 5:57 PM
 Subject: Re: Fw: how to work with xs-linker in gwt

 Include this line in your module.gwt.xml file

 add-linker name=xs/

 On Nov 20, 11:22 am, Manish Kumar [EMAIL PROTECTED] wrote:
  Hi guys,

  Please help me out if anybody having any idea on the issue mentioned
  below
  ??

  Regards,
  Manish

  - Original Message -
  From: Manish Kumar
  To: Google-Web-Toolkit@googlegroups.com
  Sent: Wednesday, November 19, 2008 6:17 PM
  Subject: Re: how to work with xs-linker in gwt

  Hi,

  As asked , please have a look at my code :

  GWT :

  public void onModuleLoad(){

  try

  {

  exportStaticMethod(this);

  }

  catch(Exception re)

  {

  MessageBox.alert(re.getMessage());

  }

  }

  public native void exportStaticMethod(PMGWTHtmlUtils pmGWTHtmlUtils)

  /*-{

  $wnd.invokeGWT = function(bId,cId,mId,mName,cName)

  {

  [EMAIL 
  PROTECTED]::invokeGWT(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)(bId,cId,mId,mName,cName);

  };

  if($wnd.callGWTUtils){

  $wnd.callGWTUtils();

  }

  }-*/;

  public void invokeGWT( String bId,String cId,String mId,String
  mName,String cName ) throws RequestException {

  System.out.println(   :+ bId);

  if(bId.equalsIgnoreCase(new))

  {

  window = new Window();

  BorderLayoutData centerData = new
  BorderLayoutData(RegionPosition.CENTER);

  window.setTitle(Layout Window);

  //window.setClosable(true);

  window.setWidth(600);

  window.setHeight(500);

  window.setPlain(true);

  window.setLayout(new BorderLayout());

  window.add(createAddCommentForm( c0,c7,Test Process
  Model,process
  overview) ,centerData);

  //window.setCloseAction(Window.HIDE);

  window.show();

  }

  else if(bId.equalsIgnoreCase(view))

  {

  String destUrl = PMServerUrl + processmaster/comments/+mName+.xml;

  doViewCommentRequest(destUrl);

  }

  }

  After compiling the gwt component using xs linker , I am trying to use
  this in HTML stuffs :

  script type=text/javascript src=../js/pmxslutils.js/script

  script language=javascript
  src=com.pm.output.html.gwt.model.comment.PMGWTHtmlUtils.nocache.js/script

  // pmxslutils.js

  function callGWTUtils( bttnId ) // This method id called on button
  click
  on HTML.
  {
  if( currDispId != null )
  {
  invokeGWT(
  bttnId,this.currDispId,this.mId,this.mName,this.currDispName 

Re: Socket connection

2008-11-21 Thread Jason Morris

The only types of connection available to JavaScript in HTTP/S, and then not 
with Streams of data 
(data is sent and received as Strings). Therefore GWT can't emulate a true 
Socket of any sort.

If you describe your problem in more detail, perhaps someone can suggest a 
solution.

Pete Kay wrote:
 Hi
  
 Does anyone know of any GWT lib that can do socket connection?
  
 Thanks alot in advance for your help.
  
 Pete
 
  

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



Re: Problem in redirecting to differnet page

2008-11-21 Thread rajasekhar

If you are not redirecting to a new page.When we refersh browser it is
going to the home page.Let me know how to handle this.

On Nov 20, 10:14 am, Litty Preeth [EMAIL PROTECTED] wrote:
 Why do u want to open a new window? You can create the Home UI using GWT and
 then add this to the RootPanel.

 - Litty Preeth

 On Wed, Nov 19, 2008 at 8:11 PM, zubair [EMAIL PROTECTED] wrote:

  Hi All,

  I want to redirect to the different page after successfull
  authentication. I have used window.open().

  below is the error message :-
  [ERROR] Failure to load module 'com.examples.gwt.mygwtapp'

  It is highly appreciated if any help me in resolving this issue.

   public void onClick(Widget sender) {
                  MyServiceAsync myService = (MyServiceAsync) GWT.create
  (MyService.class);
                  ServiceDefTarget target = (ServiceDefTarget) myService;
                  String relativeUrl = GWT.getModuleBaseURL() + myservice;
                  target.setServiceEntryPoint(relativeUrl);
                  String user = userName.getText();
                  String password =  userPassword.getText();
                  myService.validate(user, password, new AsyncCallback() {
                           public void onSuccess(Object result) {
                                  label.setText((String)result);
                                  Window.open(InstaAlertHome.html,_self,
  null);
                                  return;
                           }
                           public void onFailure(Throwable caught) {
                                  label.setText(caught.getMessage());
                           }
                  });
             }
           });
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



how to redirect to another EntryPoint class

2008-11-21 Thread rajasekhar

Hi All,

  how to redirect to another EntryPoint class in GWT.I
have a login page (home page),after login it is coming to onSuccess
function,but how to redirect to the another EntryPoint class.I am
using  Window.open(URL, _self, ) it is working in hosted mode and
web mode and not working in Tomcat.Please let me know the solution for
this.



Regards,
Rajasekhar
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Socket connection

2008-11-21 Thread Lothar Kimmeringer

Pete Kay schrieb:

 Does anyone know of any GWT lib that can do socket connection?

Signed Java-Applets and the use of java.net.Socket


Regards, Lothar

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



Re: Popup Stealing focus

2008-11-21 Thread markmccall

There is a know bug in FireFox that might be causing this:

http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/5d3f2fa71e57c72e/972cb02ea8558632?lnk=gstq=firefox+cursor#972cb02ea8558632
http://code.google.com/p/google-web-toolkit/issues/detail?id=891

Hope this helps.
Mark

On Nov 21, 12:24 am, Bryan [EMAIL PROTECTED] wrote:
 Okay so it seems that overriding show() actually is setting the focus
 on the textBox but the cursor is not showing up.

 On Nov 20, 10:51 pm, Bryan [EMAIL PROTECTED] wrote:

  Hey everyone,

  I have a pretty simple popup with a couple of text boxes in it.  When
  it comes up, i'd like the focus to be on the first text box.
  Unfortunately, the focus is getting lost when the popup is shown and
  i'm not sure what is eating it.  Does anyone have some insight into
  what might be going on?  I've even tried overriding show() to set the
  focus after i make the call to super.show().

  Thanks!
  bryan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



GWT Collapsible dialog box

2008-11-21 Thread David Hoffer
I need to show a GWT error dialog where I can set the title and error
message but also need a lower portion where I can show a detailed error
message.  I want the lower portion to be collapsible via a button or
something so that the user has the option to see it or not.

Does something like this exist in GWT?  GWT-EXT?  Other?

-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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Sharing data between pre-existing data in a JSP and the GWT module

2008-11-21 Thread Suri

Aha. You're right too Olivier. Thanks for the tip. Tottally missed
that. Appreciate it.

On Nov 21, 3:55 am, olivier nouguier [EMAIL PROTECTED]
wrote:
 Hi Suri,
  Thanks for this tip !
  But IMHO in your case I think that the problem is in the hosted page:
  Try replacing:
 var testVar = %= request.getAttribute(someValue) %
  by:
 var testVar = %= request.getAttribute(someValue) %

 Notice the quote !
 Then the generate js will be:
   var testVar = 12345; // a string
 Instead of
  var testVar = 12345; // an int

 However your solution seems pretty to me and it's better check twice
 those JS type.

 Best regards
 Olivier.



 On Thu, Nov 20, 2008 at 10:19 PM, Suri [EMAIL PROTECTED] wrote:

  Hi Olivier,
  I just thought I'd let you know. The script you have works great
  however needs one additional modification.

  public static native String jnsiGetString(String jsVar, String
  defaultValue)/*-{
       var value = eval('$wnd.'+jsVar);
       if(value){
         return value.toString();
       }
       return defaultValue;
     }-*/;

  and

  public String getSomeValue(){
    return jnsiGetString(someValue, null);

  }

  Notice the .toString(). This is so that the value being returned is
  truly converted to a String datatype. As part of doing some work I had
  used the script but the variable that was being referenced, happened
  to have a numeric value. Thus, when trying to do an RPC, the system
  kept giving me a ClassCastException although I was sure I was passing
  a String (it also passed the instanceof test) but once I put
  the .toString() it worked correctly. I guess something funky happens
  there no idea what. e.g
  --- JSP-
  script language=javascript type=text/javascript
   // someValue happens to be an integer although its sent as a String
  in Java e.g 123456
   var testVar = %= request.getAttribute(someValue) %
  /script
  ---

  - Client Code 

  ...
   String testValue = getString(testVar, 0);
  // Although this executes correctly and works fine, it acts up later
  in the code unless the .toString() method is called in the javascript
  as shown before.
  

  Thanks

  Suri
  On Nov 20, 11:34 am, Suri [EMAIL PROTECTED] wrote:
  Thanks Olivier. That makes sense. I'll have to use the String and
  validate it at the server side I guess.

  Suri

  On Nov 20, 10:08 am, olivier nouguier [EMAIL PROTECTED]
  wrote:

   There is no long datatype in javascript !

  http://www.google.com/search?q=GWT+long+emulationsourceid=navclient-...

   On Thu, Nov 20, 2008 at 3:31 PM, Suri [EMAIL PROTECTED] wrote:

Hi Olivier,
I actually saw your post later on another thread and used the default
solution. Thanks for that. Pretty neat.
A different question now, I observed that after obtaining the value I
wanted, I could not convert it to a Long type. i.e

in my client java code after retrieving the value using the native
method above I try something like

Long longVal = Long.parseLong(returnedValue);

And that seems to throw an error in the browser. I do remember reading
about some issues with Long datatype and javascript, however any
explanation is welcome. I'd like to understand it better.
Thanks
Suri

On Nov 20, 3:43 am, olivier nouguier [EMAIL PROTECTED]
wrote:
public native String getSomeValue() /*- {
   return $wnd.someValue.}*-/;

But be aware of undef !!!
should be:
public native String getSomeValue() /*- {
   if($wnd.someValue){
     return $wnd.someValue.
   }
   return null;

}*-/;

More generic:

 public static native String jnsiGetString(String jsVar, String
defaultValue)/*-{
      var value = eval('$wnd.'+jsVar);
      if(value){
        return value;
      }
      return defaultValue;
    }-*/;

and

public String getSomeValue(){
   return jnsiGetString(someValue, null);

}

HIH

On Wed, Nov 19, 2008 at 8:46 PM, Suri [EMAIL PROTECTED] wrote:

 As an update question as well,

 Does anyone know if this is correct syntax and if not what would be
 the correct way to go about this.
 I'm trying to copy the value of my javascript variable set in theJSP
 to the GWT client.

 JSPFILE --
 script language=javascript type=text/javascript

         var someValue = %= (String) 
 request.getAttribute(someValue)
 %

 /script
  GWT ENTRY POINT CLIENT CLASS
 -

 public class SomeClass
 {
  private String someValue;

  public onModuleLoad()
  {
    this.someValue = getSomeValue;
  }

  public native String getSomeValue() /*- {
   return someValue;
  } -*/

 }
 

 Thanks.

  

Re: GWT Collapsible dialog box

2008-11-21 Thread Isaac Truett

You a mean a DialogBox with a DisclosurePanel?

On Fri, Nov 21, 2008 at 9:23 AM, David Hoffer [EMAIL PROTECTED] wrote:
 I need to show a GWT error dialog where I can set the title and error
 message but also need a lower portion where I can show a detailed error
 message.  I want the lower portion to be collapsible via a button or
 something so that the user has the option to see it or not.

 Does something like this exist in GWT?  GWT-EXT?  Other?

 -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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT Collapsible dialog box

2008-11-21 Thread David Hoffer
Possibly, I'm not sure what a DisclosurePanel is.  What I'm looking for is a
DialogBox with a title, a main message in the dialog box, an OK button to
close.  But with the addition of a sub-panel or something under the main
message that can optionally show another message.  This would be optionally
shown via the user clicking on something, perhaps just another button next
to the OK button.

Oh, also the dialog should have a place to display an error icon.

-Dave

On Fri, Nov 21, 2008 at 7:28 AM, Isaac Truett [EMAIL PROTECTED] wrote:


 You a mean a DialogBox with a DisclosurePanel?

 On Fri, Nov 21, 2008 at 9:23 AM, David Hoffer [EMAIL PROTECTED] wrote:
  I need to show a GWT error dialog where I can set the title and error
  message but also need a lower portion where I can show a detailed error
  message.  I want the lower portion to be collapsible via a button or
  something so that the user has the option to see it or not.
 
  Does something like this exist in GWT?  GWT-EXT?  Other?
 
  -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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT Collapsible dialog box

2008-11-21 Thread Isaac Truett

DialogBox and DisclosurePanel are both part of the standard GWT widget
library. Everything you're asking for can be created as a simple
composite of existing widgets.


On Fri, Nov 21, 2008 at 9:34 AM, David Hoffer [EMAIL PROTECTED] wrote:
 Possibly, I'm not sure what a DisclosurePanel is.  What I'm looking for is a
 DialogBox with a title, a main message in the dialog box, an OK button to
 close.  But with the addition of a sub-panel or something under the main
 message that can optionally show another message.  This would be optionally
 shown via the user clicking on something, perhaps just another button next
 to the OK button.

 Oh, also the dialog should have a place to display an error icon.

 -Dave

 On Fri, Nov 21, 2008 at 7:28 AM, Isaac Truett [EMAIL PROTECTED] wrote:

 You a mean a DialogBox with a DisclosurePanel?

 On Fri, Nov 21, 2008 at 9:23 AM, David Hoffer [EMAIL PROTECTED] wrote:
  I need to show a GWT error dialog where I can set the title and error
  message but also need a lower portion where I can show a detailed error
  message.  I want the lower portion to be collapsible via a button or
  something so that the user has the option to see it or not.
 
  Does something like this exist in GWT?  GWT-EXT?  Other?
 
  -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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT Collapsible dialog box

2008-11-21 Thread David Hoffer
Okay I will take a look at these.  Just wondering is there an existing
library that has already created composite widgets like this?

-Dave

On Fri, Nov 21, 2008 at 7:40 AM, Isaac Truett [EMAIL PROTECTED] wrote:


 DialogBox and DisclosurePanel are both part of the standard GWT widget
 library. Everything you're asking for can be created as a simple
 composite of existing widgets.


 On Fri, Nov 21, 2008 at 9:34 AM, David Hoffer [EMAIL PROTECTED] wrote:
  Possibly, I'm not sure what a DisclosurePanel is.  What I'm looking for
 is a
  DialogBox with a title, a main message in the dialog box, an OK button to
  close.  But with the addition of a sub-panel or something under the main
  message that can optionally show another message.  This would be
 optionally
  shown via the user clicking on something, perhaps just another button
 next
  to the OK button.
 
  Oh, also the dialog should have a place to display an error icon.
 
  -Dave
 
  On Fri, Nov 21, 2008 at 7:28 AM, Isaac Truett [EMAIL PROTECTED] wrote:
 
  You a mean a DialogBox with a DisclosurePanel?
 
  On Fri, Nov 21, 2008 at 9:23 AM, David Hoffer [EMAIL PROTECTED]
 wrote:
   I need to show a GWT error dialog where I can set the title and error
   message but also need a lower portion where I can show a detailed
 error
   message.  I want the lower portion to be collapsible via a button or
   something so that the user has the option to see it or not.
  
   Does something like this exist in GWT?  GWT-EXT?  Other?
  
   -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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: My Maps Integration

2008-11-21 Thread Eric Ayers
You could try the Google-Maps-Api google group.

  http://groups.google.com/group/Google-Maps-API

 Search first, and please read their group guidelines before psoting.

On Fri, Nov 21, 2008 at 3:11 AM, Umberto [EMAIL PROTECTED] wrote:


 Hi Eric, I am actually using that binding for my project. However, I
 was unable to find any way
 to add to the map currently visualized, the layer created with the 'My
 Maps' tool. I thought
 something as addOverlay(URL) could exist, with URL poiting ad a user
 created map, but
 I was unable to find anything of sort.

 Are you aware of any other solution?

 Thanks again,

 Umberto

 On Nov 21, 3:11 am, Eric Ayers [EMAIL PROTECTED] wrote:
  Hi Umberto,
  I'm not sure how to interface with MyMaps, but a JavaScript API exists,
 as
  well as GWT bindings for the API athttp://
 code.google.com/p/gwt-google-apis
 
  On Thu, Nov 20, 2008 at 6:00 PM, Umberto [EMAIL PROTECTED] wrote:
 
   Hi everybody, just a simple question. Is it possible to easily
   integrate a map created with 'My Maps' tool (http://maps.google.com/
   help/maps/mymaps/create.html
 http://maps.google.com/help/maps/mymaps/create.html)
   in a GWT based web application?
   Any help would be appreciated. Thanks in advance,
 
   Umberto
 
  --
  Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://
 code.google.com/webtoolkit/
 



-- 
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/

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



TabPanel styling - gaps between tabs

2008-11-21 Thread Alex Reid

Firstly, apologies for the somewhat generic CSS question. However, I
hope someone with a knowledge of the GWT tab panel will be able to
help.

I'm attempting to style the standard GWT tab panel to look the same as
our existing tab panel. As the HTML is different, I cannot reuse the
existing CSS.

I have come up with the CSS below which works reasonably well.
However, I'd like to introduce a 2px gap inbetween the tabs. I cannot
just add margin-right: 2px to .gwtTabBar-Item as this breaks up the
border lines.

The problem could easily be solved by removing the borders, or just
leaving the tabs with no gap. I'd be interested if anyone knows of a
workaround.

Cheers

Alex


.gwt-TabPanel {
width: 100%;
padding: 10px;
}

.gwt-TabPanelBottom {
background-color: beige;
border-left: 1px solid #aaa;
border-right: 1px solid #aaa;
border-bottom: 1px solid #aaa;
border-top: 0px solid #aaa;
padding: 10px;
}

.gwt-TabBar {
margin-top: 15px;
height: 100%;
}

.gwt-TabBar .gwt-TabBarFirst {
height: 100%;
padding-left: 1px;
border-bottom: 1px solid #aaa;
}

.gwt-TabBar .gwt-TabBarRest {
border-left: 1px solid #aaa;
border-bottom: 1px solid #aaa;
}

.gwt-TabBar .gwt-TabBarItem {
border-top: 1px solid #aaa;
border-left: 1px solid #aaa;
border-bottom: 1px solid #aaa;
background-color: white;
font-size: 11px;
font-weight: bold;
color: grey;
padding: 4px 20px 4px 20px;

margin-left: 0px;

cursor: pointer;
cursor: hand;
}

.gwt-TabBar .gwt-TabBarItem-selected {
color: black;
font-weight: bold;
background-color: beige;
border-top: 1px solid #aaa;
border-left: 1px solid #aaa;
border-bottom: 1px solid beige;
padding: 4px 20px 4px 20px;
cursor: default;
}

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



Re: Socket connection

2008-11-21 Thread eric

Oh God ... unfortunatly we cannot do this in javascript .

This is why a major part of the chat systems are based on flash or java
applet .

regards .

Le vendredi 21 novembre 2008 à 21:30 +0800, Pete Kay a écrit :
 Hi
  
 Does anyone know of any GWT lib that can do socket connection?
  
 Thanks alot in advance for your help.
  
 Pete
 
  


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



GWT-Validation

2008-11-21 Thread kasp

je veux avoir un exemple d'utilisation du framewok gwt-validation avec
les services RPC.y'a t'il quelqu'un qu'a jeter un coup d'oeil la
dessus?

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



Styling specific part of a DockPanel?

2008-11-21 Thread HeideMeister

I'm using a DockPanel with a menu in DockPanel.WEST and the main
content in DockPanel.CENTER. The width of the WEST and CENTER cells
are set with something like

  myDockPanel.setCellWidth(menu, 20%);
  myDockPanel.setCellWidth(content, 80%);

My problems start when i want to print a page - but not the menu. I
disable the block (a custom Composite) with the menu in it using css
(display:none). That kinda works, as the menu is hidden. The WEST part
of the DockPanel however is a table cell which looks something like
this ...

td width=20%

... and that one is still there :-(  So in my printouts there are a
fat, empty space on the left side. I have been unable to find a way to
add a styleclass to a specific part of the DockPanel so it can be
hidden. The best hack i've found is to get the html for the whole
DockPanel (myDockPanel.getElement().getInnerHTML()) and then do a few
String.replace where 20%--0% and 80%--100%. It works but its UGLY
- and error prone. I'm also dreading to have to write som java-doc for
that pile of rubbish :S

help.

regards
Michael Heide Christensen

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



How to integrate morethan one Entry point classes in Single application in TONCAT.

2008-11-21 Thread [EMAIL PROTECTED]

Hi Dear Members,

  I have two entry point classes(LOGIN, HOME). First i open the
LOGIN entry point class ,  enter the data , click submit button its
going to the server side getting the data , after getting the Data how
to forward to the  HOME entry point class in TONCAT.

Thanks in advance!!


Regards,

RaviTeja

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



Add tooltips to images in an ImageBundle!

2008-11-21 Thread ART

Hi,
How can I add tooltips to images in an ImageBundle using only GWT.Some
code snippets please.
thanks,
Anitha.

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



Rebind result 'suglasnost.client.UnosServiceAsync' must be a class

2008-11-21 Thread Veljko

I am writing my first GWT application and want to invoke RPC. I am
getting error in compile batch:

C:\hrvoje\workspaceRSA7\GWT-Test-WebUnosApp-compile.cmd
Compiling module suglasnost.UnosApp
[ERROR] Errors in 'file:/C:/hrvoje/workspaceRSA7/GWT-Test-Web/src/
suglasnost/client/UnosApp.java'
   [ERROR] Line 62:  Rebind result
'suglasnost.client.UnosServiceAsync' must be a class
[ERROR] Cannot proceed due to previous errors
[ERROR] Build failed

Here is main class:

public class UnosApp implements EntryPoint {

public void onModuleLoad() {
...
Object obj=GWT.create(UnosServiceAsync.class);
...

Here is Async:

public interface UnosServiceAsync {
public void unesi(String file, String urls, AsyncCallbackString
callback);
}

Here is interface:

public interface UnosService extends RemoteService {
public String unesi(String file, String url);
}

Here is impl:

public class UnosServiceImpl extends RemoteServiceServlet implements
UnosService {
private static final long serialVersionUID = -3214487906817254720L;

public String unesi(String file, String url) {
return file + - + url;
}

}

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



Re: Add tooltips to images in an ImageBundle!

2008-11-21 Thread [EMAIL PROTECTED]

private XYZImageBundle Images = (XYZImageBundle)GWT.create
(XYZImageBundle.class);
private Image logo= Images.XYZLogo().createImage();
logo.setTitle(Click here to return to main screen);

Straight out of my code in production, XYZ substituted for the real
three letter acronym.  Also straight out of the book

On Nov 21, 8:17 am, ART [EMAIL PROTECTED] wrote:
 Hi,
 How can I add tooltips to images in an ImageBundle using only GWT.Some
 code snippets please.
 thanks,
 Anitha.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



GWT Google Maps API - setImage Error

2008-11-21 Thread Pavel Byles
*Code*
String markerUrl = http://maps.google.com/mapfiles/ms/micons/blue-dot.png;;
Marker m = new Marker(..., ...);
m.setImage(markerUrl));  // Error occurs here

*Error*
[ERROR] Uncaught exception escaped
com.google.gwt.core.client.JavaScriptException: (TypeError): a has no
properties
 fileName:
http://maps.google.com/intl/en_ALL/mapfiles/137c/maps2.api/main.js
 lineNumber: 452
 stack: (null,http://maps.google.com/mapfiles/ms/micons/blue-dot.png;)@
http://maps.google.com/intl/en_ALL/mapfiles/137c/maps2.api/main.js:452
(http://maps.google.com/mapfiles/ms/micons/blue-dot.png;)@
http://maps.google.com/intl/en_ALL/mapfiles/137c/maps2.api/main.js:1148
([object gwt_nativewrapper_class],
http://maps.google.com/mapfiles/ms/micons/blue-dot.png;)@transient source
for com.google.gwt.maps.client.impl.__MarkerImplImpl:48
private void
com.google.gwt.http.client.Request.fireOnResponseReceived(com.google.gwt.http.client.RequestCallback)([object
gwt_nativewrapper_class])@:0
()@jar:file:/home/wikid/Code/GWT15/gwt-user.jar!/com/google/gwt/http/client/XMLHTTPRequest.java:253
@:0

at com.google.gwt.maps.client.impl.__MarkerImplImpl.setImage(Native
Method)
at com.google.gwt.maps.client.overlay.Marker.setImage(Marker.java:677)
at com.pavco.client.ui.CountryMarker.init(CountryMarker.java:33)
at
com.pavco.client.ui.CountryChooser$1.onResponseReceived(CountryChooser.java:104)
at
com.google.gwt.http.client.Request.fireOnResponseReceivedImpl(Request.java:254)
at
com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch(Request.java:226)
at
com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:217)

Can anyone see what I am doing wrong?

-- 
-Pav

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



Re: [HELP] Problems with ZipFileDownload Servlet

2008-11-21 Thread Romeryto Lira
Hi,

I have the same mistake previous after deployment on tomcat. When I commented
the line that close ZipOutPutStream, the download of file don't ocurr
correctly,
the file is corrupted. I  uncommented the line, but the previous error
continue, the mime type of zip file is lost.

How to resolve this problem?

Thanks!
--
Se um dia tiver que escolher entre o mundo e o amor... Lembre-se:
Se escolher o mundo, ficará sem o amor, mas se escolher o amor,
com ele conquistará o mundo. (Albert Einstein)
╔╗
  ROMERYTO VIEIRA LIRA
  Bacharelando em Ciência da Computação - UFCG
  Membro do SegHidro2 - LSD - http://seghidro.lsd.ufcg.edu.br
  Membro do Grupo de Suporte Guardians - www.lcc.ufcg.edu.br
  Página Pessoal: http://romeryto.googlepages.com
  Blog: http://olhartecnologico.blogspot.com
╚╝

Pensou em imprimir este e-mail? Isto é mesmo necessário? Poupe o meio
ambiente.



2008/11/13 Romeryto Lira [EMAIL PROTECTED]

 Thanks for your help. I resolved the problem with your suggestion.

 --
 Se um dia tiver que escolher entre o mundo e o amor... Lembre-se:
 Se escolher o mundo, ficará sem o amor, mas se escolher o amor,
 com ele conquistará o mundo. (Albert Einstein)
 ╔╗
   ROMERYTO VIEIRA LIRA
   Bacharelando em Ciência da Computação - UFCG
   Membro do SegHidro2 - LSD - http://seghidro.lsd.ufcg.edu.br
   Membro do Grupo de Suporte Guardians - www.lcc.ufcg.edu.br
   Página Pessoal: http://romeryto.googlepages.com
   Blog: http://olhartecnologico.blogspot.com
 ╚╝

 Pensou em imprimir este e-mail? Isto é mesmo necessário? Poupe o meio
 ambiente.

 


 2008/11/12 Nicolas Chalon [EMAIL PROTECTED]

 Hi,

 In fact, in think that the problem comes from the way you close the
 outputstream. When you call zout.close(), the *close *method will call
 the underlying outputstream *close *method too and the reply will be sent
 to the client at that stage instead of when you call out.close(). you should
 try removing your zout.close() call and it should work.

 Regards

 Nicolas

 PS: Sorry if my english is not perfect, i am not an english native
 speaker.

 2008/11/11 Romeryto Lira [EMAIL PROTECTED]

 I have problem with my zip download servlet. When I go to download, in the
 window that open the mime tipe of the zip file is lost.

 *snippet of code:

 *String fileName = request.getParameter(filename);

 OutputStream out = response.getOutputStream();
 ZipOutputStream zout = new ZipOutputStream(out);
 *...*

 zout.close();
 response.setHeader(Content-Disposition, attachment;filename=\ +
 fileName + \;);
 response.setContentType(application/zip);
 out.flush();
 out.close();

 I mute the response to mime type zip but in download the file name and
 mime types are lost.
 In xml MyApplication.gwt.xml the servlet is declared like this:

 servlet path=/zipdownload
 class=myapplication.server.files.MyZipFileServlet /

 How to resolve this problem?

 Thanks!

 Ps.: The error's picture is attached.

 --
 Se um dia tiver que escolher entre o mundo e o amor... Lembre-se:
 Se escolher o mundo, ficará sem o amor, mas se escolher o amor,
 com ele conquistará o mundo. (Albert Einstein)
 ╔╗
   ROMERYTO VIEIRA LIRA
   Bacharelando em Ciência da Computação - UFCG
   Membro do SegHidro2 - LSD - http://seghidro.lsd.ufcg.edu.br
   Membro do Grupo de Suporte Guardians - www.lcc.ufcg.edu.br
   Página Pessoal: http://romeryto.googlepages.com
   Blog: http://olhartecnologico.blogspot.com
 ╚╝

 Pensou em imprimir este e-mail? Isto é mesmo necessário? Poupe o meio
 ambiente.

 





 --
 Nicolas CHALON
 [EMAIL PROTECTED]

 



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



Re: Socket connection

2008-11-21 Thread [EMAIL PROTECTED]

Well I guess you can look for a library with support for the WebSocket
interface (orbited?)


On Nov 21, 11:04 am, eric [EMAIL PROTECTED] wrote:
 Oh God ... unfortunatly we cannot do this in javascript .

 This is why a major part of the chat systems are based on flash or java
 applet .

 regards .

 Le vendredi 21 novembre 2008 à 21:30 +0800, Pete Kay a écrit :

  Hi

  Does anyone know of any GWT lib that can do socket connection?

  Thanks alot in advance for your help.

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



Re: Easiest way to open a new window with some text in it?

2008-11-21 Thread darkflame

Just thinking outloud here...it could be done with a form right? Just
hidden somewhere.
dosnt seem very neat though.

On Nov 21, 1:50 pm, darkflame [EMAIL PROTECTED] wrote:
 Thats still using the string by the URL though/get method, which
 limits the charecfters to about  100  :-/

 Is it possible to do the same thing but not have the data in the url,
 so it could be picked up by the php's post variable instead?
 (which you can do with RequestBuilder by using  new RequestBuilder
 (RequestBuilder.POST) but that dosnt open a new window.)

 On Nov 21, 8:13 am, Danny Schimke [EMAIL PROTECTED] wrote:



  You could try to use JSNI to open a new window as you've already done:

  It should look something like this:

  native JavaScriptObject openWindow(String param) /*-{
          $wnd.open('scripts/display.php' + '?text=' + messageslist.getText(),
  '_blank', null);
          return true;}-*/;

  I hpe it's what you searched for...

  Danny

  2008/11/20 darkflame [EMAIL PROTECTED]

   Any ideas?
   The text is dynamic, so I thought at first I'd just use;

   Window.open(scripts/display.php+?text=+messageslist.getText(),
   _blank, null);

   Where display.php simply gets the text variable in the url and echo's
   it back.

   However, this has a very short limit on the text that can be
   displayed.
   Is it possible to do a simerla function with RequestBuilder? So Post
   can be used correctly?
   I have no idea if its possible to use RequestBuilder to open a php in
   a new window, so if it isn't I would welcome workarounds if its not.

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



Re: Focus-Issue with RichTextArea inside TabPanel

2008-11-21 Thread Adi

I have a similar issue, although I am not using Tab panel.
My application creates (and removes) multiple RichTextAreas held in a
combination of VerticalPanel and HorizontalPanel objects.
Clicking once inside the RichTextArea works fine, the text is editable
as usual. When another RichTextArea is created it is not-editable, and
neither are any of regular TextBoxes. Any subsequent TextBoxes
RichTextAreas are also non-editable.
I am using the RichTextToolbar from the KitchenSink demo. Clicking on
one of the RichTextToolBar buttons (such as 'bold' for example)
enables the RichTextArea.
This issue occurs in version 1.5.3 of GWT. It did not occur in 1.4.6.
The issue occurs only in IE7. Chrome and FireFox 3 work fine.

Adi

On Nov 11, 1:46 pm, Schimki86 [EMAIL PROTECTED] wrote:
 We implemented a main dialog which provides 3 dialogs and a navigation to
 switch between those.

 *Dialog1:* It's the first (initial) dialog. TabPanel with RichTextArea on
 the first tab (you will see this after start up the application)
 *Dialog2 + Dialog3:* Dialogs with TextBox widgets

 If you start the app and switch to Dialog2 or Dialog3 without any other
 interaction then you can't focus and edit any TextBox.
 But when you click first anywhere in Dialog1 after start up and then switch
 to one of the other Dialogs you can use TextBoxes as usual.
 It occurs only if the TextArea is inside a TabPanel.

 We have not found a workaround for this...
 *
 See attachment* (It's an Eclipse project which demonstrates the issue)

  RichTextAreaIssue.zip
 8KViewDownload

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



Themes and 1.6

2008-11-21 Thread Moe48

Hello fellow developers.  I have been using GWT - Spring - SOAP -
Hibernate on my current project and am really enjoying the ease of UI
with GWT.  I have done both Java Swing UI and straight LAMP web
applications (with and without CMSs) in the past.
I am getting to the point where I will be handing off this project to
our CSS guys to stylize.  Because of this I want to make sure we
stylize it correctly.

I am really pleased with the Theme I see in the trunk
http://ongwt.googlecode.com/svn/trunk/com.google.gwt.sample.showcase.Showcase/Showcase.html
I am using 1.5.3 currently and would like this theme.

- When will the next release of GWT be?  (I have looked everywhere and
all I see is 1.6 1st half of 2009, will there be a 1.5.4 or anything
inbetween?)
- If this next release will be a bit, is there an easy way of
pulling out the theme from the trunk and tossing it into a 1.5.3
project without having to refactor too much when I update to 1.6 in
the future?
- What is standard practice for overwriting the default css of gwt
classes like .gwt-DecoratorPanel and DecoratorPanel?
- Are these classes at an early evolutionary stage and will change a
lot as we upgrade?

Basically I want to make a nice theme and I want to be able to keep up
to date with the newest release of GWT.  What are best practices so I
have to do the least amount of refactoring during an upgrade?
Thanks,
Moses

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



Re: how to redirect to another EntryPoint class

2008-11-21 Thread Not Ken Shabby

Why would you want to do this?
After login -in your onSucess() just replace your login component with
you main application component and go from there, there is no need to
'redirect'.



On Nov 21, 8:36 am, rajasekhar [EMAIL PROTECTED] wrote:
 Hi All,

               how to redirect to another EntryPoint class in GWT.I
 have a login page (home page),after login it is coming to onSuccess
 function,but how to redirect to the another EntryPoint class.I am
 using  Window.open(URL, _self, ) it is working in hosted mode and
 web mode and not working in Tomcat.Please let me know the solution for
 this.

 Regards,
 Rajasekhar

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



Portal/Portlets - like gwt-ext but in pure gwt ...

2008-11-21 Thread cloudycity

I am needing to add a dashboard to our current gwt app:

I would like to create something similar to gwt-ext's portal and
portlets but in gwt only - we are moving away from gwt-ext for various
reasons.

It seems like a flex table of panels with drag and drop could be
implemented but it would be nice if something similar was available.

I like the google/ig page and gadgets but don't know how that would
work with our application.

Just thinking at this point but any help would be appreciated.

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



Re: Portal/Portlets - like gwt-ext but in pure gwt ...

2008-11-21 Thread Ian P. Christian

Did you see the SmartGWT posted to the list a couple of days ago?

2008/11/21 cloudycity [EMAIL PROTECTED]:

 I am needing to add a dashboard to our current gwt app:

 I would like to create something similar to gwt-ext's portal and
 portlets but in gwt only - we are moving away from gwt-ext for various
 reasons.

 It seems like a flex table of panels with drag and drop could be
 implemented but it would be nice if something similar was available.

 I like the google/ig page and gadgets but don't know how that would
 work with our application.

 Just thinking at this point but any help would be appreciated.

 


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



RPC NumberFormatException on pipe (|)

2008-11-21 Thread Thad

I am getting a NumberFormatException on a GWT RPC call whenever a
string parameter I pass includes a pipe symbol (|).

I am attempting to pass a String value derived from a
JSONObject.onString() call.  A string like {foo:1|2} will fail,
but {foo:1} will work.  This happens in hosted or web mode.  (The
Tomcat log is at the bottom of this message.)

My solution has been to URL.encode() the string on the client side,
and URLDecoder.decode() on the server side.  But why should I have
to?  Why are the internals of this string fouling up?

I'm running Java 1.5, and GWT 1.5 OOPHM on Linux with a Firefox 3.0.3
browser (but I also see the error in IE7 from Windows).

Nov 21, 2008 1:47:43 PM org.apache.catalina.core.ApplicationContext
log
SEVERE: Exception while dispatching incoming RPC call
java.lang.NumberFormatException: For input string: 2}
at java.lang.NumberFormatException.forInputString
(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:456)
at java.lang.Integer.parseInt(Integer.java:497)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.readInt
(ServerSerializationStreamReader.java:423)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.readString
(ServerSerializationStreamReader.java:437)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepareToRead
(ServerSerializationStreamReader.java:388)
at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:234)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
(RemoteServiceServlet.java:163)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
(RemoteServiceServlet.java:86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:263)
at org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
447)
at java.lang.Thread.run(Thread.java:595)


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



Re: GWTTestCase and RemoteTestRunner use different port each time, triggering the Gears authentication dialog.

2008-11-21 Thread Eric Ayers
Add the '-port ' argument to the test run  at port  every time
(fixed)

e.g.

-Dgwt.args=-port 

on the JVM arguments in Eclipse.

On Thu, Nov 20, 2008 at 4:31 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


 Hello,

 I have GWTTestCase tests that I run (for the moment) in Eclipse. I
 haven't tested the following behavior in Ant scripts.

 I have an issue where each test run triggers the Gears authentication
 dialog. The application seems to be HTTP delivered from a different
 (localhost) port each time. Gears thus has to pop the dialog.

 What is causing this? Is it JUnit RemoteTestRunner? How is it that the
 embedded Tomcat opens a different HTTP port each time?

 Thank you for any idea or lead.

 Remy
 



-- 
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/

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



Problems to create a project

2008-11-21 Thread Alfredo Cavalcanti Segundo
C:\gwt-windows-1.5.3projectCreator -eclipse Projeto -out Projeto
Exception in thread main java.lang.UnsupportedClassVersionError:
com/google/gwt/user/tools/ProjectCreator (Unsupported major.minor version
49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)

using
jre-6u10-windows-i586-p.exe
jdk-6u10-windows-i586-p.exe

someone know how to fix this?

tanks!
-- 
Alfredo Cavalcanti Segundo

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



Re: SmartGWT 1.0 Released

2008-11-21 Thread Vinay

SmartGWT Showcase looks awesome. I think GWT-Ext will be out ;-)

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



Re: Rebind result 'suglasnost.client.UnosServiceAsync' must be a class

2008-11-21 Thread Veljko

The problem was in main class, should be:


public class UnosApp implements EntryPoint {


public void onModuleLoad() {
...
Object obj=GWT.create(UnosService.class);
...


On 21 stu, 16:20, Veljko [EMAIL PROTECTED] wrote:
 Here is main class:

 public class UnosApp implements EntryPoint {

 public void onModuleLoad() {
 ...
 Object obj=GWT.create(UnosServiceAsync.class);
 ...

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



Re: Problems to create a project

2008-11-21 Thread Qian Qiao

On Fri, Nov 21, 2008 at 20:58, Alfredo Cavalcanti Segundo
[EMAIL PROTECTED] wrote:
 C:\gwt-windows-1.5.3projectCreator -eclipse Projeto -out Projeto
 Exception in thread main java.lang.UnsupportedClassVersionError:
 com/google/gwt/user/tools/ProjectCreator (Unsupported major.minor version
 49.0)
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoader.defineClass(Unknown Source)
 at java.security.SecureClassLoader.defineClass(Unknown Source)
 at java.net.URLClassLoader.defineClass(Unknown Source)
 at java.net.URLClassLoader.access$100(Unknown Source)
 at java.net.URLClassLoader$1.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClassInternal(Unknown Source)

 using
 jre-6u10-windows-i586-p.exe
 jdk-6u10-windows-i586-p.exe

 someone know how to fix this?

Can you run java -version and post the output?

Joe

-- 
There are 3 kinds of people in the world: those who can count, and
those who can't.

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



Re: Problems to create a project

2008-11-21 Thread Alfredo Cavalcanti Segundo
C:\java -version
java version 1.3.1_01
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01)
Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)

On Fri, Nov 21, 2008 at 18:20, Qian Qiao [EMAIL PROTECTED] wrote:


 On Fri, Nov 21, 2008 at 20:58, Alfredo Cavalcanti Segundo
 [EMAIL PROTECTED] wrote:
  C:\gwt-windows-1.5.3projectCreator -eclipse Projeto -out Projeto
  Exception in thread main java.lang.UnsupportedClassVersionError:
  com/google/gwt/user/tools/ProjectCreator (Unsupported major.minor version
  49.0)
  at java.lang.ClassLoader.defineClass0(Native Method)
  at java.lang.ClassLoader.defineClass(Unknown Source)
  at java.security.SecureClassLoader.defineClass(Unknown Source)
  at java.net.URLClassLoader.defineClass(Unknown Source)
  at java.net.URLClassLoader.access$100(Unknown Source)
  at java.net.URLClassLoader$1.run(Unknown Source)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at java.lang.ClassLoader.loadClassInternal(Unknown Source)
 
  using
  jre-6u10-windows-i586-p.exe
  jdk-6u10-windows-i586-p.exe
 
  someone know how to fix this?

 Can you run java -version and post the output?

 Joe

 --
 There are 3 kinds of people in the world: those who can count, and
 those who can't.

 



-- 
Alfredo Cavalcanti Segundo

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



Re: Problems to create a project

2008-11-21 Thread Qian Qiao

On Fri, Nov 21, 2008 at 21:22, Alfredo Cavalcanti Segundo
[EMAIL PROTECTED] wrote:
 C:\java -version
 java version 1.3.1_01
 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01)
 Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)

That's the problem then, you are using a 1.3.1 JRE

-- 
There are 3 kinds of people in the world: those who can count, and
those who can't.

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



How do I get browser autocomplete on a login form

2008-11-21 Thread tieTYT

Hello,

I'm trying to replicate browser autocomplete on a login form.  For
example, every time you go to the login page, I'd like the username
and password field to be prepopulated with the username/password you
used last.  Not only that, but if you clear the username and double
click the field, the list of previous usernames you've entered should
show up.  If you select one, the password field gets populated with
that.

Fortunately, with normal HTML the browser handles all of this for
you.  But I can't figure out how to get this to work on IE6/7 on an
GWT app.  In these browsers, it doesn't offer to save the usernames.
I'll provide the code I have so far (this works in FF):

public class Sandbox implements EntryPoint, ClickListener,
KeyboardListener {

private Label label;
private FormPanel formPanel;

/**
 * This is the entry point method.
 */
public void onModuleLoad() {

formPanel = new FormPanel();
final VerticalPanel basePanel = new VerticalPanel();
formPanel.add(basePanel);

TextBox loginTB = new TextBox();
//without this, FF doesn't know where to place the data
loginTB.setName(name);
basePanel.add(loginTB);


PasswordTextBox passTB = new PasswordTextBox();
//without this, FF doesn't know where to place the data
passTB.setName(password);
basePanel.add(passTB);

Button loginBT = new Button(Submit);
basePanel.add(loginBT);


RootPanel.get(slot1).add(formPanel);

loginTB.addKeyboardListener(this);
passTB.addKeyboardListener(this);
loginBT.addClickListener(this);

label = new Label();
RootPanel.get(slot2).add(label);
}

public void onClick(Widget sender) {
//Without this, FF doesn't offer to remember the data
formPanel.submit();
if (label.getText().equals()) {
SandboxService.App.getInstance().getMessage(Hello,
World!, new MyAsyncCallback(label));
} else
label.setText();
}

public void onKeyDown(Widget sender, char keyCode, int modifiers)
{
}

public void onKeyPress(Widget sender, char keyCode, int modifiers)
{
}

public void onKeyUp(Widget sender, char keyCode, int modifiers) {
// If enter is pressed lets forward the request to onClick
method
if (keyCode == '\r') {
onClick(sender);
}
}

static class MyAsyncCallback implements AsyncCallback {
public void onSuccess(Object object) {
DOM.setInnerHTML(label.getElement(), (String) object);
}

public void onFailure(Throwable throwable) {
label.setText(Failed to receive answer from server!);
}

Label label;

public MyAsyncCallback(Label label) {
this.label = 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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How do I get browser autocomplete on a login form

2008-11-21 Thread Reinier Zwitserloot

These features generally only work if the textbox and passwordbox are
in the initial HTML.

In GWT's normal modus operandi, the boxes are added dynamically by the
javascript.

The solution is to have the boxes in the static HTML file that
bootstraps GWT (normally auto-generated by the applicationCreator), in
a div that makes them hidden (use visibility and not display: none).
From GWT, re-visibilize them if you need em. That should work.

On Nov 21, 11:04 pm, tieTYT [EMAIL PROTECTED] wrote:
 Hello,

 I'm trying to replicate browser autocomplete on a login form.  For
 example, every time you go to the login page, I'd like the username
 and password field to be prepopulated with the username/password you
 used last.  Not only that, but if you clear the username and double
 click the field, the list of previous usernames you've entered should
 show up.  If you select one, the password field gets populated with
 that.

 Fortunately, with normal HTML the browser handles all of this for
 you.  But I can't figure out how to get this to work on IE6/7 on an
 GWT app.  In these browsers, it doesn't offer to save the usernames.
 I'll provide the code I have so far (this works in FF):

 public class Sandbox implements EntryPoint, ClickListener,
 KeyboardListener {

     private Label label;
     private FormPanel formPanel;

     /**
      * This is the entry point method.
      */
     public void onModuleLoad() {

         formPanel = new FormPanel();
         final VerticalPanel basePanel = new VerticalPanel();
         formPanel.add(basePanel);

         TextBox loginTB = new TextBox();
         //without this, FF doesn't know where to place the data
         loginTB.setName(name);
         basePanel.add(loginTB);

         PasswordTextBox passTB = new PasswordTextBox();
         //without this, FF doesn't know where to place the data
         passTB.setName(password);
         basePanel.add(passTB);

         Button loginBT = new Button(Submit);
         basePanel.add(loginBT);

         RootPanel.get(slot1).add(formPanel);

         loginTB.addKeyboardListener(this);
         passTB.addKeyboardListener(this);
         loginBT.addClickListener(this);

         label = new Label();
         RootPanel.get(slot2).add(label);
     }

     public void onClick(Widget sender) {
         //Without this, FF doesn't offer to remember the data
         formPanel.submit();
         if (label.getText().equals()) {
             SandboxService.App.getInstance().getMessage(Hello,
 World!, new MyAsyncCallback(label));
         } else
             label.setText();
     }

     public void onKeyDown(Widget sender, char keyCode, int modifiers)
 {
     }

     public void onKeyPress(Widget sender, char keyCode, int modifiers)
 {
     }

     public void onKeyUp(Widget sender, char keyCode, int modifiers) {
         // If enter is pressed lets forward the request to onClick
 method
         if (keyCode == '\r') {
             onClick(sender);
         }
     }

     static class MyAsyncCallback implements AsyncCallback {
         public void onSuccess(Object object) {
             DOM.setInnerHTML(label.getElement(), (String) object);
         }

         public void onFailure(Throwable throwable) {
             label.setText(Failed to receive answer from server!);
         }

         Label label;

         public MyAsyncCallback(Label label) {
             this.label = 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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How do I get browser autocomplete on a login form

2008-11-21 Thread tieTYT

I saw a faq that made the same recommendation.  The problem is, I need
to capture the onKeyUp and onClick events of the input's inside the
form.  I could only figure out how to bind to the form OR bind to
its children.  I couldn't figure out how to bind to both.  GWT threw a
variety of exceptions over the issue.  Could you show me some sample
code that does this?

On Nov 21, 2:18 pm, Reinier Zwitserloot [EMAIL PROTECTED] wrote:
 These features generally only work if the textbox and passwordbox are
 in the initial HTML.

 In GWT's normal modus operandi, the boxes are added dynamically by the
 javascript.

 The solution is to have the boxes in the static HTML file that
 bootstraps GWT (normally auto-generated by the applicationCreator), in
 a div that makes them hidden (use visibility and not display: none).
 From GWT, re-visibilize them if you need em. That should work.

 On Nov 21, 11:04 pm, tieTYT [EMAIL PROTECTED] wrote:

  Hello,

  I'm trying to replicate browser autocomplete on a login form.  For
  example, every time you go to the login page, I'd like the username
  and password field to be prepopulated with the username/password you
  used last.  Not only that, but if you clear the username and double
  click the field, the list of previous usernames you've entered should
  show up.  If you select one, the password field gets populated with
  that.

  Fortunately, with normal HTML the browser handles all of this for
  you.  But I can't figure out how to get this to work on IE6/7 on an
  GWT app.  In these browsers, it doesn't offer to save the usernames.
  I'll provide the code I have so far (this works in FF):

  public class Sandbox implements EntryPoint, ClickListener,
  KeyboardListener {

      private Label label;
      private FormPanel formPanel;

      /**
       * This is the entry point method.
       */
      public void onModuleLoad() {

          formPanel = new FormPanel();
          final VerticalPanel basePanel = new VerticalPanel();
          formPanel.add(basePanel);

          TextBox loginTB = new TextBox();
          //without this, FF doesn't know where to place the data
          loginTB.setName(name);
          basePanel.add(loginTB);

          PasswordTextBox passTB = new PasswordTextBox();
          //without this, FF doesn't know where to place the data
          passTB.setName(password);
          basePanel.add(passTB);

          Button loginBT = new Button(Submit);
          basePanel.add(loginBT);

          RootPanel.get(slot1).add(formPanel);

          loginTB.addKeyboardListener(this);
          passTB.addKeyboardListener(this);
          loginBT.addClickListener(this);

          label = new Label();
          RootPanel.get(slot2).add(label);
      }

      public void onClick(Widget sender) {
          //Without this, FF doesn't offer to remember the data
          formPanel.submit();
          if (label.getText().equals()) {
              SandboxService.App.getInstance().getMessage(Hello,
  World!, new MyAsyncCallback(label));
          } else
              label.setText();
      }

      public void onKeyDown(Widget sender, char keyCode, int modifiers)
  {
      }

      public void onKeyPress(Widget sender, char keyCode, int modifiers)
  {
      }

      public void onKeyUp(Widget sender, char keyCode, int modifiers) {
          // If enter is pressed lets forward the request to onClick
  method
          if (keyCode == '\r') {
              onClick(sender);
          }
      }

      static class MyAsyncCallback implements AsyncCallback {
          public void onSuccess(Object object) {
              DOM.setInnerHTML(label.getElement(), (String) object);
          }

          public void onFailure(Throwable throwable) {
              label.setText(Failed to receive answer from server!);
          }

          Label label;

          public MyAsyncCallback(Label label) {
              this.label = 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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Chrome Behavior on DOM tree is different for root node

2008-11-21 Thread Scooter

The following code is designed to take an element and clone what is
below it(Deep) and then walk up the tree to preserve the path to the
root of the tree. This code works as expected in IE, Firefox, Safari
etc. In testing Chrome I get the non_object_property_call exception
listed below the source code. If you search on this message you find
it in the V8 engine. After doing lots of code trace statements it
appears the problem is related to parentElement.getParentNode() when
you are at the top node of the tree. The returning value is expected
to be NULL but it is not but when you try and test for it to be null
is when you get the exception. I fixed my code by checking for the
known name of the top node and breaking out of the loop. This is
either a bug in the V8 engine or something that GWT 1.5.+ needs to
defend against related to Chrome.

 public static Element cloneFromElementToTopElement(Element
childElement, boolean deepClone) {
Node cloneElement = childElement.cloneNode(deepClone);
Node originalCloneElement = cloneElement;
Node parentElement = childElement.getParentNode();
while (parentElement != null) {
Node parentCloneElement = parentElement.cloneNode(false);
parentCloneElement.appendChild(cloneElement);
cloneElement = parentCloneElement;
parentElement = parentElement.getParentNode();
}

return (Element) originalCloneElement;
}


com.google.gwt.core.client.JavaScriptException: (TypeError): type:
non_object_property_call arguments: tS,

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



Reload Server Code

2008-11-21 Thread tomkins.g...@gmail.com

Hi, fairly new to GWT. Clicking Reload in the hosted browser works
great, but is there a similar ability to automatically reload /
refresh / recompile server-side code? It seems you are forced to
shutdown the shell every time, even if the classes involved have been
recompiled externally. This is rather inconvenient. Thank you!

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



Re: Announcing GWT 1.5.3

2008-11-21 Thread jpnet

I would also like to see a -nosop option.  We are developers, not
children, and as such our development environment doesn't need to hold
our hands.  Please make this change.

-JP

On Oct 23, 6:47 am, Brian [EMAIL PROTECTED] wrote:
 Hi Sumit,

 Thanks for the replies.  Glad to know that about -whitelist, makes
 sense.

 Basically, I've just gone back to 1.5.2. I can work quite well with
 this, being able to hit other ports while still on localhost (or even
 better, modifying my hosts file so it looks like I'm coming from
 whatever host I want).  I'll probably build against 1.5.3 for a final
 build to deploy, but for debugging locally, 1.5.2 is much more
 efficient for me.
 I haven't looked into the speed issues with -noserver, but I wouldn't
 doubt that it's just something on my end causing the slowdown.
 I haven't looked into the imagebundle issues, and don't plan to for
 the foreseable future -- sorry, just don't have time this month to
 debug imagebundles on 1.5.3 with -noserver.

 -Brian
 P.S.  Just as you have a -whitelist option, perhaps consider a '-
 sophole host:port' option to allow this type of debugging locally
 without having to go to the -noserver route.

 On Oct 22, 9:25 pm, Sumit Chandel [EMAIL PROTECTED] wrote:

  Hi Brian,
  Hosted mode shouldn't be any slower running with the -noserver option as
  opposed to with the embedded Tomcat server. Is it possible that the server
  you're using is somehow carrying a larger load than just responding to your
  GWT application resource and other server-side requests?

  About the issues you're having with the ImageBundle, what problems are you
  experiencing? Are the images not showing up at all, or is hosted mode having
  a hard time locating the resources? In terms of steps you can follow to get
  up and running with hosted mode with the -noserver option, check out the FAQ
  below to make sure you've got everything setup correctly to use hosted mode
  with -noserver.

  Using hosted mode with the -noserver 
  option:http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=goog...

  Hope that helps,
  -Sumit Chandel

  On Wed, Oct 22, 2008 at 7:49 AM, Brian [EMAIL PROTECTED] wrote:

   Yeah, I couldn't figure out a -whitelist that would work either, so am
   now also doing -noserver.
   I also had imagebundle issues, but didn't bother tracking it down, I
   just copied everything over to the directory where my server serves
   content.  Wow -noserver is slow.  Not sure if it's because I've copied
   everything over, or what.  I don't have time yet to track this down.

   On Oct 22, 9:52 am, JY [EMAIL PROTECTED] wrote:
Same problem here. I had no luck with the whitelist parameter. Used
the exact same parameters as Brian:- -whitelist ^http[:][/]
[/]localhost[:]8080[/] . Any suggestions?

This forced me to use the -noserver option, but created yet another
problem for me. In the -noserver mode, my ImageBundles do not work in
hosted. I've started a thread here but no reply so far:-
  http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...

On Oct 22, 7:59 am, Brian [EMAIL PROTECTED] wrote:

 Yeah, and it was really handy that it did let them through, as IE also
 lets the URLs through in web mode (if you've enabled it in IE's
 internet options).  Great for testing.

 I wasn't able to get a -whitelist option to work with 1.5.3 and hosted
 mode. Here's what I'm using:
 -whitelist ^http[:][/][/]localhost[:]8080[/]

 Any suggestions on the -whitelist to use to get the above posted code
 to work in 1.5.3 hosted mode?

 Thanks.

 On Oct 21, 7:40 pm, Sumit Chandel [EMAIL PROTECTED] wrote:

  Hello again,
  As it turns out, the SOP warning message that hosted mode issues 
  when
   trying
  to make the request tohttp://localhost:8080/v1in1.5.3isan
   improvement
  over 1.5.2.

  The embedded Tomcat server in hosted mode is actually running on 
  port
   ,
  so a request to port 8080 does indeed violate SOP and should not be
   allowed
  to go through. In 1.5.2, it seems that hosted mode was still 
  allowing
  requests on different ports to go through, which is actually
   incorrect
  behaviour that looks to now be fixed in 1.5.3.

  Hope that helps,
  -Sumit Chandel

  On Tue, Oct 21, 2008 at 3:37 PM, Sumit Chandel 
   [EMAIL PROTECTED]wrote:

   Hello everyone,

   Hosted mode does indeed respect SOP so as to closely reflect what
   your
   application would look like running in a deployed environment as
   you
   debug. You can pass in a -whitelist for specific cross-site URLs
   that
   you want to communicate with, but that should only be used for
   quick
   debug cycles to make sure that SOP problems aren't something that
   you
   forget about and get stuck on at the web mode testing or 
   production
   stage.

   That said, Brian's code snippet doesn't seem 

Page navigation in GWT

2008-11-21 Thread jonbutler88

Hi all

I am new to GWT, though I have dabbled in C#/Java before so the
language itself doesn't boggle me that much, but it seems some of the
simpler concepts aren't sticking. Im pretty sure the answer to my
question is so obvious, as I have not seen it answered in any of the
tutorials on GWT on the web. What I wanted to know is, how do you do
page navigation in GWT? For example I have my new class, with its
onModuleLoad function, which is fine, but say I want to click a link
and load a new page with a different onModuleLoad function?

After a user logs in, I want them to be transported to a different
page (different class as well I assume...). I tried adding a new
servlet line in the .gwt.xml file, but as its not strictly a servlet
(doesnt extend RemoteService), it fails to load.

Where abouts should I be looking to edit? A new .html file? And if so,
what script should I include, as there is only 1 nocache.js file...

Thanks in advance,
Jon

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



Compiling in 1.5.3

2008-11-21 Thread slledru

I am trying to move my app from 1.4 to 1.5.3.
I am using ant to build and am getting following warnings and would
like to get rid of them.
What am I doing wrong?
I am using JDK1.6.

 [java] Scanning source for uses of the deprecated gwt.typeArgs
javadoc annotation; please use Java parameterized types instead
 [java]Type com.sirsidynix.client.request.report.ReportRunInfo
 [java]   Field toolList
 [java]  [WARN] Unable to recognize
'java.util.Listjava.util.List' as a type name (is it fully qualified?)
 [java] com.google.gwt.core.ext.typeinfo.NotFoundException: Unable
to recognize 'java.util.Listjava.util.List' as a type name (is it
fully qualified?)
 [java] at com.google.gwt.core.ext.typeinfo.TypeOracle.parseImpl
(TypeOracle.java:892)


And in ReportRunInfo, I have:
/**
 * @gwt.typeArgs
java.util.Listcom.sirsidynix.client.reports.tools.ToolOptions
 */
public List toolList = null;

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



Re: Your opinion sought: Jetty or Tomcat?

2008-11-21 Thread Alex Epshteyn

Bruce,

I might be too late in replying to this thread, but I want to phrase
my objections to what you've proposed.

A. Regarding Jetty:

I think this will be a waste of time for everyone.  Switching
underlying servers is a no value added task (using Six Sigma
vocabulary).

1).  Many developers are using -noserver so for them this will make no
difference.

2).  Many other developers have customized the embedded Tomcat to suit
our needs (I spent hours customizing it so that I don't have to run
with -noserver).   It will take hours to re-adjust again if you switch
underlying servers.

3). Why?  What's the benefit of switching to Jetty?  Tomcat startup is
like 5 seconds tops, which accounts for maybe 10% of the hosted mode
startup time.  You should speed up the compiler if you want to speed
up hosted mode.   I don't understand what Jetty has to offer here.
I'd be happy if you proved me wrong here, though.

B. Regarding the output directory structure:

I feel the same way about this as I do about Jetty.  I think this is a
waste of time - no real value added to GWT.  Most of us will have to
re-tweak our ant build configs which is always a waste of time.

C. Final thoughts

I'm really looking forward to seeing something of substance in the
roadmap for 1.6, because between what you've written here and what's
marked with 1_6_RC on the issue tracker, I see nothing of any value
except minor bug fixes.

Here are the top 3 features that I think would add real value to GWT:

1). A way to get meaningful Java line number from Javascript
exceptions thrown in a deployed production app (compiled with -style
OBF)

2). Out-of-process hosted mode (to enable using different browsers in
hosted mode).

3). A Declarative UI framework (one was started by Joel W. but seems
to have been abandoned).

4). Speed up compilation

Java 5 support would have been #1 on this list a year ago.  You guys
did a great job with GWT 1.5 - it included at least 2 giant leaps
(Java 5 and the JSO/DOM framework), and I hope to see another big leap
like that on the roadmap instead of features that add little value to
GWT, like Tomcat vs. Jetty.

In the end, if you decide to go forward with Jetty, I can come to
terms with that, but I will need a good reason to upgrade to 1.6, like
one of the 4 items on my list.

Thanks for your time,
Alex


 On Oct 13, 4:48 pm, Bruce Johnson [EMAIL PROTECTED] wrote:

  Hi everyone,
  Hope you're enjoying 1.5.

  The GWT team has started putting together a 1.6 roadmap, which we'll publish
  as soon as we have it nailed down. Two of the areas we want to work on for
  1.6 are some improvements tohostedmodestartup time and a friendlier
  output directory structure (something that looks more .war-like).

  As part of this effort, we've all but decided toswitchthehostedmode
 embeddedHTTPserverfromTomcattoJetty. Would this break you? (And if so,
  how mad would you be if we did it anyway?) We figure most people who really
  care about the web.xml and so on are already using -noserver to have full
  control over theirserverconfig.

  Thanks,
  Bruce
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Page navigation in GWT

2008-11-21 Thread mikedshaf...@gmail.com

The GWT (actually Ajax) way to look at navigation is not going from
one page to another, but rather staying on the same page and moving
your content in and out.  Take a look at most samples and you'll see
something like

public void onModuleLoad() {

RootPanel.get().add(new MyCoolNewWidget());
}

where MyCoolNewWidget is something you've created that is your first
page.  Perhaps on there is some widget that the user clicks to
navigate to the next page.  It would look something like:

final Button moveMe = new Button(Next page);
moveMe.addClickListener(new ClickListener() {
public void onClick(Widget sender) {
RootPanel.remove(0);
RootPanel.get().add(new AnotherReallyCoolWidget
());
}
});

In the click listener for the button, you first remove the content
from the RootPanel (basically the Window object in Javascript) and
then insert the new page in it's space.

The whole page based navigation methodology is really a web thing, any
heavy client, like those written in C# WinForms, SWT, Swing or MFC or
even OWL, you moved content in and out of the container which is
what the browser really becomes.

Later,

Shaffer
On Nov 21, 2:02 pm, jonbutler88 [EMAIL PROTECTED] wrote:
 Hi all

 I am new to GWT, though I have dabbled in C#/Java before so the
 language itself doesn't boggle me that much, but it seems some of the
 simpler concepts aren't sticking. Im pretty sure the answer to my
 question is so obvious, as I have not seen it answered in any of the
 tutorials on GWT on the web. What I wanted to know is, how do you do
 page navigation in GWT? For example I have my new class, with its
 onModuleLoad function, which is fine, but say I want to click a link
 and load a new page with a different onModuleLoad function?

 After a user logs in, I want them to be transported to a different
 page (different class as well I assume...). I tried adding a new
 servlet line in the .gwt.xml file, but as its not strictly a servlet
 (doesnt extend RemoteService), it fails to load.

 Where abouts should I be looking to edit? A new .html file? And if so,
 what script should I include, as there is only 1 nocache.js file...

 Thanks in advance,
 Jon
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Page navigation in GWT

2008-11-21 Thread jonbutler88

Ah I see, thats a very 'ajax' way of doing things.

Thanks for the help :D

On Nov 22, 12:22 am, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
 The GWT (actually Ajax) way to look at navigation is not going from
 one page to another, but rather staying on the same page and moving
 your content in and out.  Take a look at most samples and you'll see
 something like

 public void onModuleLoad() {

         RootPanel.get().add(new MyCoolNewWidget());

 }

 where MyCoolNewWidget is something you've created that is your first
 page.  Perhaps on there is some widget that the user clicks to
 navigate to the next page.  It would look something like:

 final Button moveMe = new Button(Next page);
         moveMe.addClickListener(new ClickListener() {
                 public void onClick(Widget sender) {
                     RootPanel.remove(0);
                     RootPanel.get().add(new AnotherReallyCoolWidget
 ());
                 }
             });

 In the click listener for the button, you first remove the content
 from the RootPanel (basically the Window object in Javascript) and
 then insert the new page in it's space.

 The whole page based navigation methodology is really a web thing, any
 heavy client, like those written in C# WinForms, SWT, Swing or MFC or
 even OWL, you moved content in and out of the container which is
 what the browser really becomes.

 Later,

 Shaffer
 On Nov 21, 2:02 pm, jonbutler88 [EMAIL PROTECTED] wrote:

  Hi all

  I am new to GWT, though I have dabbled in C#/Java before so the
  language itself doesn't boggle me that much, but it seems some of the
  simpler concepts aren't sticking. Im pretty sure the answer to my
  question is so obvious, as I have not seen it answered in any of the
  tutorials on GWT on the web. What I wanted to know is, how do you do
  page navigation in GWT? For example I have my new class, with its
  onModuleLoad function, which is fine, but say I want to click a link
  and load a new page with a different onModuleLoad function?

  After a user logs in, I want them to be transported to a different
  page (different class as well I assume...). I tried adding a new
  servlet line in the .gwt.xml file, but as its not strictly a servlet
  (doesnt extend RemoteService), it fails to load.

  Where abouts should I be looking to edit? A new .html file? And if so,
  what script should I include, as there is only 1 nocache.js file...

  Thanks in advance,
  Jon
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: same-origin security restriction

2008-11-21 Thread Sumit Chandel
Hi JP,

The SOP violation has to do with browser restrictions rather than
server-side technology such as J2EE.

The browser itself enforces single origin policy, which is what prevents
cross-site calls to external domains or different ports. The fact that
hosted mode permitted calls to different ports prior to 1.5.3 is actually a
bug because it allowed non-standard behaviour.

However, it seems like a few community members feel strongly about this
change in hosted mode in 1.5.3. The argument is that allowing calls to
different ports actually helped speed up the development cycle by allowing
shortcuts to setup proxies or makeshift test servers.

I believe the right way to deal with the problem is to use hosted mode with
the -noserver argument, as it will allow for custom setups using proxies.
However, for those who feel strongly about the change, I would suggest
creating an issue report on the Issue Tracker for this feature and starring
it for all those interested in seeing it in core. That way it will be on the
team's radar if enough people believe it should be an included feature.

Issue Tracker:
http://code.google.com/p/google-web-toolkit/issues/list

Hope that helps,
-Sumit Chandel

On Fri, Nov 21, 2008 at 1:23 PM, jpnet [EMAIL PROTECTED] wrote:


 This is not a feature! Please fix this.  Allow us developers to
 violate the SOP via the Hosted-Mode browsers.  You are screwing your
 developers that don't use J2EE on the backend.

 -JP

 On Nov 19, 7:33 pm, Sumit Chandel [EMAIL PROTECTED] wrote:
  Hi Danny,
 
  The issue you ran into is not actually a bug but an improvement in 1.5.3
 in
  terms of browser security compliance.
 
  Basically, the remote data you are fetching is indeed violating the
 single
  origin policy, which is why you are seeing the error message come up in
 the
  hosted mode console.
 
  The two ways to enable cross-site communication would be to use -noserver
  with a proxy that could delegate the calls or using the JSONP technique.
  Both are described in a bit more detail on the Groups post linked below:
 
  http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
 
  Hope that helps,
  -Sumit Chandel
 
  On Thu, Nov 13, 2008 at 5:05 PM, Danny [EMAIL PROTECTED] wrote:
 
   Just thought I'd post an update...
 
   I downgraded from 1.5.3 to 1.5.2 and its now working so I guess this
   is a bug with 1.5.3.
 
   Regards,
   Danny
 
   On Nov 14, 12:40 am, Danny [EMAIL PROTECTED] wrote:
Hi All,
 
I finally got round to making my app run in 1.5 and all is looking
good.  However I often use hosted mode with remote data, which helps
massively when debugging issues.  I am using RequestBuilder.
 
I'm getting a weird error in 1.5, if I switch back to 1.4 it works
perfectly.  I get the following when in hosted mode.
 
The URLhttp://x.x.x.x/.zzzisinvalid or violates the same-origin
security restriction
 
I've enabled cross-brower communication in Internet Explorer and
 added
the site to my Local Intranet, but still not joy.
 
Can anyone shed any light on this?
 
Many thanks,
Danny

 


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



[gwt-contrib] Re: Use LazyPanel in showcase

2008-11-21 Thread Ray Ryan
Committed at r4146

On Thu, Nov 20, 2008 at 11:44 PM, [EMAIL PROTECTED] wrote:

 LGTM


 http://codereview.appspot.com/9656


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



[gwt-contrib] Re: When to use Serializbale / IsSerializable

2008-11-21 Thread John LaBanca
That's a good question, and I has to ask around myself.  Here is the best
explanation:

In early versions of GWT, IsSerializable was the *only* way you could mark
a class as serializable by the RPC subsystem. The theory was that Java's
Serializable interface implied semantics that GWT simply couldn't implement
(readObject(), writeObject(), etc), so it was better to be absolutely clear
that it wasn't precisely the same as Java Serializable. We were eventually
convinced otherwise by many people who had existing POJOs that implemented
Serializable and *didn't* require these specialized semantics, and really
wanted it to work out of the box. So we added support for both.

So based on this, IsSerializable may be deprecated at some point in favor of
Serializable.  In the meantime, we run into these unfortunate cases where
you want a class to extent either IsSerializable or Serializable, but there
is no way to specify that in Java.

Thanks,
John LaBanca
[EMAIL PROTECTED]


On Thu, Nov 20, 2008 at 6:34 AM, dflorey [EMAIL PROTECTED] wrote:


 I don't know if it's the only place where this question comes up, but
 right now the SerializableResponse from the table model requires its
 wrapped row values to implement the IsSerializable interface.
 So every row value object that implement Serializable (and as such can
 be serialized) cannot be used in SerializableResponse as long as it
 will not extend the IsSerializable interface.
 When using Serializable instead the same problem will arise with
 classes implementing IsSerializable.
 Any ideas?
 


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



[gwt-contrib] [google-web-toolkit commit] r4147 - releases/1.6/dev/core/src/com/google/gwt/core/ext/linker/impl

2008-11-21 Thread codesite-noreply

Author: [EMAIL PROTECTED]
Date: Fri Nov 21 07:28:31 2008
New Revision: 4147

Modified:
 
releases/1.6/dev/core/src/com/google/gwt/core/ext/linker/impl/StandardCompilationResult.java

Log:
Typo fix.

Modified:  
releases/1.6/dev/core/src/com/google/gwt/core/ext/linker/impl/StandardCompilationResult.java
==
---  
releases/1.6/dev/core/src/com/google/gwt/core/ext/linker/impl/StandardCompilationResult.java
 
(original)
+++  
releases/1.6/dev/core/src/com/google/gwt/core/ext/linker/impl/StandardCompilationResult.java
 
Fri Nov 21 07:28:31 2008
@@ -107,7 +107,7 @@
  Unexpectedly unable to read PermutationResult '
  + resultFile.getAbsolutePath() + ', e);
}
-  if (toReturn == null) {
+  if (result == null) {
  throw new RuntimeException(
  Unexpectedly unable to read PermutationResult '
  + resultFile.getAbsolutePath() + ');

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



[gwt-contrib] Re: When to use Serializbale / IsSerializable

2008-11-21 Thread dflorey

So is it an option to let IsSerializable extend the Serializable
marker interface?

On 21 Nov., 16:16, John LaBanca [EMAIL PROTECTED] wrote:
 That's a good question, and I has to ask around myself.  Here is the best
 explanation:

 In early versions of GWT, IsSerializable was the *only* way you could mark
 a class as serializable by the RPC subsystem. The theory was that Java's
 Serializable interface implied semantics that GWT simply couldn't implement
 (readObject(), writeObject(), etc), so it was better to be absolutely clear
 that it wasn't precisely the same as Java Serializable. We were eventually
 convinced otherwise by many people who had existing POJOs that implemented
 Serializable and *didn't* require these specialized semantics, and really
 wanted it to work out of the box. So we added support for both.

 So based on this, IsSerializable may be deprecated at some point in favor of
 Serializable.  In the meantime, we run into these unfortunate cases where
 you want a class to extent either IsSerializable or Serializable, but there
 is no way to specify that in Java.

 Thanks,
 John LaBanca
 [EMAIL PROTECTED]

 On Thu, Nov 20, 2008 at 6:34 AM, dflorey [EMAIL PROTECTED] wrote:

  I don't know if it's the only place where this question comes up, but
  right now the SerializableResponse from the table model requires its
  wrapped row values to implement the IsSerializable interface.
  So every row value object that implement Serializable (and as such can
  be serialized) cannot be used in SerializableResponse as long as it
  will not extend the IsSerializable interface.
  When using Serializable instead the same problem will arise with
  classes implementing IsSerializable.
  Any ideas?
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: When to use Serializbale / IsSerializable

2008-11-21 Thread Freeland Abbott
Clever.  I don't see any reason that'd be bad... anybody else?

On Fri, Nov 21, 2008 at 10:38 AM, dflorey [EMAIL PROTECTED] wrote:


 So is it an option to let IsSerializable extend the Serializable
 marker interface?

 On 21 Nov., 16:16, John LaBanca [EMAIL PROTECTED] wrote:
  That's a good question, and I has to ask around myself.  Here is the best
  explanation:
 
  In early versions of GWT, IsSerializable was the *only* way you could
 mark
  a class as serializable by the RPC subsystem. The theory was that Java's
  Serializable interface implied semantics that GWT simply couldn't
 implement
  (readObject(), writeObject(), etc), so it was better to be absolutely
 clear
  that it wasn't precisely the same as Java Serializable. We were
 eventually
  convinced otherwise by many people who had existing POJOs that
 implemented
  Serializable and *didn't* require these specialized semantics, and really
  wanted it to work out of the box. So we added support for both.
 
  So based on this, IsSerializable may be deprecated at some point in favor
 of
  Serializable.  In the meantime, we run into these unfortunate cases where
  you want a class to extent either IsSerializable or Serializable, but
 there
  is no way to specify that in Java.
 
  Thanks,
  John LaBanca
  [EMAIL PROTECTED]
 
  On Thu, Nov 20, 2008 at 6:34 AM, dflorey [EMAIL PROTECTED]
 wrote:
 
   I don't know if it's the only place where this question comes up, but
   right now the SerializableResponse from the table model requires its
   wrapped row values to implement the IsSerializable interface.
   So every row value object that implement Serializable (and as such can
   be serialized) cannot be used in SerializableResponse as long as it
   will not extend the IsSerializable interface.
   When using Serializable instead the same problem will arise with
   classes implementing IsSerializable.
   Any ideas?
 


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



[gwt-contrib] [google-web-toolkit commit] r4148 - in trunk: dev/core/src/com/google/gwt/core/ext/linker/impl dev/core/src/com/google/gwt/de...

2008-11-21 Thread codesite-noreply

Author: [EMAIL PROTECTED]
Date: Fri Nov 21 07:53:38 2008
New Revision: 4148

Added:
trunk/dev/core/src/com/google/gwt/dev/CompilePermsServer.java
   - copied unchanged from r4145,  
/releases/1.6/dev/core/src/com/google/gwt/dev/CompilePermsServer.java
 
trunk/dev/core/src/com/google/gwt/dev/ExternalPermutationWorkerFactory.java
   - copied unchanged from r4145,  
/releases/1.6/dev/core/src/com/google/gwt/dev/ExternalPermutationWorkerFactory.java
trunk/dev/core/src/com/google/gwt/dev/OptionLocalWorkers.java
   - copied unchanged from r4145,  
/releases/1.6/dev/core/src/com/google/gwt/dev/OptionLocalWorkers.java
trunk/dev/core/src/com/google/gwt/dev/PermutationResult.java
   - copied, changed from r4145,  
/releases/1.6/dev/core/src/com/google/gwt/dev/PermutationResult.java
trunk/dev/core/src/com/google/gwt/dev/PermutationWorker.java
   - copied unchanged from r4145,  
/releases/1.6/dev/core/src/com/google/gwt/dev/PermutationWorker.java
trunk/dev/core/src/com/google/gwt/dev/PermutationWorkerFactory.java
   - copied unchanged from r4145,  
/releases/1.6/dev/core/src/com/google/gwt/dev/PermutationWorkerFactory.java
 
trunk/dev/core/src/com/google/gwt/dev/ThreadedPermutationWorkerFactory.java
   - copied unchanged from r4145,  
/releases/1.6/dev/core/src/com/google/gwt/dev/ThreadedPermutationWorkerFactory.java
trunk/dev/core/src/com/google/gwt/dev/TransientWorkerException.java
   - copied unchanged from r4145,  
/releases/1.6/dev/core/src/com/google/gwt/dev/TransientWorkerException.java
 
trunk/dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerLocalWorkers.java
   - copied unchanged from r4145,  
/releases/1.6/dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerLocalWorkers.java
trunk/reference/dispatch/
   - copied from r4145, /releases/1.6/reference/dispatch/
trunk/reference/dispatch/Dispatch.gwt.xml
   - copied unchanged from r4145,  
/releases/1.6/reference/dispatch/Dispatch.gwt.xml
trunk/reference/dispatch/client/
   - copied from r4145, /releases/1.6/reference/dispatch/client/
trunk/reference/dispatch/client/Dispatch.java
   - copied unchanged from r4145,  
/releases/1.6/reference/dispatch/client/Dispatch.java
trunk/reference/dispatch/client/Subject.java
   - copied unchanged from r4145,  
/releases/1.6/reference/dispatch/client/Subject.java
trunk/reference/dispatch/public/
   - copied from r4145, /releases/1.6/reference/dispatch/public/
trunk/reference/dispatch/public/Dispatch.html
   - copied unchanged from r4145,  
/releases/1.6/reference/dispatch/public/Dispatch.html
trunk/user/javadoc/com/google/gwt/examples/LazyPanelExample.java
   - copied unchanged from r4145,  
/releases/1.6/user/javadoc/com/google/gwt/examples/LazyPanelExample.java
trunk/user/src/com/google/gwt/user/client/ui/LazyPanel.java
   - copied unchanged from r4145,  
/releases/1.6/user/src/com/google/gwt/user/client/ui/LazyPanel.java
trunk/user/test/com/google/gwt/user/client/ui/LazyPanelTest.java
   - copied unchanged from r4145,  
/releases/1.6/user/test/com/google/gwt/user/client/ui/LazyPanelTest.java
Modified:
 
trunk/dev/core/src/com/google/gwt/core/ext/linker/impl/StandardCompilationResult.java
 
trunk/dev/core/src/com/google/gwt/core/ext/linker/impl/StandardLinkerContext.java
trunk/dev/core/src/com/google/gwt/dev/CompilePerms.java
trunk/dev/core/src/com/google/gwt/dev/CompileTaskOptionsImpl.java
trunk/dev/core/src/com/google/gwt/dev/CompilerOptions.java
trunk/dev/core/src/com/google/gwt/dev/GWTCompiler.java
trunk/dev/core/src/com/google/gwt/dev/Link.java
trunk/dev/core/src/com/google/gwt/dev/Permutation.java
trunk/dev/core/src/com/google/gwt/dev/Precompile.java
trunk/dev/core/src/com/google/gwt/dev/jjs/UnifiedAst.java
trunk/dev/core/src/com/google/gwt/dev/util/Util.java
 
trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/ContentWidget.java
trunk/user/src/com/google/gwt/user/client/ui/DisclosurePanel.java
trunk/user/src/com/google/gwt/user/client/ui/TabPanel.java
trunk/user/test/com/google/gwt/user/UISuite.java
trunk/user/test/com/google/gwt/user/client/ui/CompositeTest.java

Log:
Merging releases/[EMAIL PROTECTED]:4147 into trunk.

svn merge --accept postpone -r4130:4147  
https://google-web-toolkit.googlecode.com/svn/releases/1.6 .



Modified:  
trunk/dev/core/src/com/google/gwt/core/ext/linker/impl/StandardCompilationResult.java
==
---  
trunk/dev/core/src/com/google/gwt/core/ext/linker/impl/StandardCompilationResult.java

(original)
+++  
trunk/dev/core/src/com/google/gwt/core/ext/linker/impl/StandardCompilationResult.java

Fri Nov 21 07:53:38 2008
@@ -17,6 +17,7 @@

  import com.google.gwt.core.ext.linker.CompilationResult;
  import com.google.gwt.core.ext.linker.SelectionProperty;
+import 

[gwt-contrib] [google-web-toolkit commit] r4149 - releases/1.6

2008-11-21 Thread codesite-noreply

Author: [EMAIL PROTECTED]
Date: Fri Nov 21 07:57:26 2008
New Revision: 4149

Modified:
releases/1.6/branch-info.txt

Log:
Recording merge 1.6 - trunk.



Modified: releases/1.6/branch-info.txt
==
--- releases/1.6/branch-info.txt(original)
+++ releases/1.6/branch-info.txtFri Nov 21 07:57:26 2008
@@ -14,5 +14,8 @@
  /branches/[EMAIL PROTECTED]:4088 was merged (r4092) into this branch
  /releases/1.5/@r3863:4093 was merged (r4134) into this branch
  /releases/1.6/@r4025:4130 was merged (r4142) into trunk, superceding  
trunk:c4118
+/releases/1.6/@r4130:4147 was merged (r4148) into trunk, superceding  
trunk:c4118

 The next merge into trunk will be 4130:
+--- The next merge into trunk will be 4147:
+
+svn merge --accept postpone -r4147:  
https://google-web-toolkit.googlecode.com/svn/releases/1.6 .

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



[gwt-contrib] [google-web-toolkit] [EMAIL PROTECTED] commented on revision r4150.

2008-11-21 Thread codesite-noreply

[google-web-toolkit] [EMAIL PROTECTED] commented on revision r4150.
Details are at  
http://code.google.com/p/google-web-toolkit/source/detail?r=4150

Score: Positive

General Comment:
LGTM

Respond to these comments at  
http://code.google.com/p/google-web-toolkit/source/detail?r=4150
--
You received this message because you starred this review, or because
your project has directed all notifications to a mailing list that you
subscribe to.
You may adjust your review notification preferences at:
http://code.google.com/hosting/settings

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



[gwt-contrib] [google-web-toolkit commit] r4150 - branches/1_6_datepicker/user/src/com/google/gwt/user/theme/standard/p ublic/gwt/standard

2008-11-21 Thread codesite-noreply

Author: [EMAIL PROTECTED]
Date: Fri Nov 21 08:02:01 2008
New Revision: 4150

Modified:
 
branches/1_6_datepicker/user/src/com/google/gwt/user/theme/standard/public/gwt/standard/standard.css

Log:
less subtle highlight doesn't conflict w/today mark--use khaki background  
instead of gray outline

Modified:  
branches/1_6_datepicker/user/src/com/google/gwt/user/theme/standard/public/gwt/standard/standard.css
==
---  
branches/1_6_datepicker/user/src/com/google/gwt/user/theme/standard/public/gwt/standard/standard.css
 
(original)
+++  
branches/1_6_datepicker/user/src/com/google/gwt/user/theme/standard/public/gwt/standard/standard.css
 
Fri Nov 21 08:02:01 2008
@@ -1163,7 +1163,7 @@
  }

  .datePickerDayIsHighlighted {
-  border: 1px solid #ee;
+  background: #F0E68C;
padding: 0px;
  }


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



[gwt-contrib] [google-web-toolkit commit] r4151 - branches/1_6_datepicker/reference/code-museum/src/com/google/gwt/muse um/client/defaultmuseum

2008-11-21 Thread codesite-noreply

Author: [EMAIL PROTECTED]
Date: Fri Nov 21 08:17:54 2008
New Revision: 4151

Added:
 
branches/1_6_datepicker/reference/code-museum/src/com/google/gwt/museum/client/defaultmuseum/VisualsForDatePicker.java
   - copied, changed from r4146,  
/branches/1_6_datepicker/reference/code-museum/src/com/google/gwt/museum/client/defaultmuseum/VisualsForSimpleDatePicker.java
Removed:
 
branches/1_6_datepicker/reference/code-museum/src/com/google/gwt/museum/client/defaultmuseum/VisualsForSimpleDatePicker.java
Modified:
 
branches/1_6_datepicker/reference/code-museum/src/com/google/gwt/museum/client/defaultmuseum/DefaultMuseum.java
 
branches/1_6_datepicker/reference/code-museum/src/com/google/gwt/museum/client/defaultmuseum/VisualsForDateBox.java

Log:
Remove simple from name of VisualsForDatePicker. Add date visuals to  
default musuem.

Modified:  
branches/1_6_datepicker/reference/code-museum/src/com/google/gwt/museum/client/defaultmuseum/DefaultMuseum.java
==
---  
branches/1_6_datepicker/reference/code-museum/src/com/google/gwt/museum/client/defaultmuseum/DefaultMuseum.java
  
(original)
+++  
branches/1_6_datepicker/reference/code-museum/src/com/google/gwt/museum/client/defaultmuseum/DefaultMuseum.java
  
Fri Nov 21 08:17:54 2008
@@ -50,6 +50,8 @@
}

public void addVisuals() {
+addIssue(new VisualsForDateBox());
+addIssue(new VisualsForDatePicker());
  addIssue(new VisualsForDisclosurePanelEvents());
  addIssue(new VisualsForEventsFiring());
  addIssue(new VisualsForPopupEvents());

Modified:  
branches/1_6_datepicker/reference/code-museum/src/com/google/gwt/museum/client/defaultmuseum/VisualsForDateBox.java
==
---  
branches/1_6_datepicker/reference/code-museum/src/com/google/gwt/museum/client/defaultmuseum/VisualsForDateBox.java
  
(original)
+++  
branches/1_6_datepicker/reference/code-museum/src/com/google/gwt/museum/client/defaultmuseum/VisualsForDateBox.java
  
Fri Nov 21 08:17:54 2008
@@ -64,7 +64,9 @@
  HorizontalPanel p = new HorizontalPanel();
  v.add(p);
  final DateBox start = new DateBox();
+start.setWidth(15em);
  final DateBox end = new DateBox();
+end.setWidth(15em);
  start.setAnimationEnabled(true);

  end.setAnimationEnabled(true);

Copied:  
branches/1_6_datepicker/reference/code-museum/src/com/google/gwt/museum/client/defaultmuseum/VisualsForDatePicker.java
  
(from r4146,  
/branches/1_6_datepicker/reference/code-museum/src/com/google/gwt/museum/client/defaultmuseum/VisualsForSimpleDatePicker.java)
==
---  
/branches/1_6_datepicker/reference/code-museum/src/com/google/gwt/museum/client/defaultmuseum/VisualsForSimpleDatePicker.java

(original)
+++  
branches/1_6_datepicker/reference/code-museum/src/com/google/gwt/museum/client/defaultmuseum/VisualsForDatePicker.java
   
Fri Nov 21 08:17:54 2008
@@ -25,7 +25,7 @@
  /**
   * Date picker demo.
   */
-public class VisualsForSimpleDatePicker extends AbstractIssue {
+public class VisualsForDatePicker extends AbstractIssue {

@Override
public Widget createIssue() {

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



[gwt-contrib] [google-web-toolkit] [EMAIL PROTECTED] commented on revision r4151.

2008-11-21 Thread codesite-noreply

[google-web-toolkit] [EMAIL PROTECTED] commented on revision r4151.
Details are at  
http://code.google.com/p/google-web-toolkit/source/detail?r=4151

Score: Positive

General Comment:
LGTM

Respond to these comments at  
http://code.google.com/p/google-web-toolkit/source/detail?r=4151
--
You received this message because you starred this review, or because
your project has directed all notifications to a mailing list that you
subscribe to.
You may adjust your review notification preferences at:
http://code.google.com/hosting/settings

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



[gwt-contrib] [google-web-toolkit commit] r4152 - branches/1_6_datepicker/reference/code-museum/src/com/google/gwt/museum

2008-11-21 Thread codesite-noreply

Author: [EMAIL PROTECTED]
Date: Fri Nov 21 08:48:19 2008
New Revision: 4152

Modified:
 
branches/1_6_datepicker/reference/code-museum/src/com/google/gwt/museum/SingleIssue.gwt.xml

Log:
Oops, broke this. Fixed now

Modified:  
branches/1_6_datepicker/reference/code-museum/src/com/google/gwt/museum/SingleIssue.gwt.xml
==
---  
branches/1_6_datepicker/reference/code-museum/src/com/google/gwt/museum/SingleIssue.gwt.xml
  
(original)
+++  
branches/1_6_datepicker/reference/code-museum/src/com/google/gwt/museum/SingleIssue.gwt.xml
  
Fri Nov 21 08:48:19 2008
@@ -6,7 +6,7 @@
  inherits name=com.google.gwt.user.theme.standard.StandardResources/

  !-- Specify the app entry point class.   --
-entry-point  
class='com.google.gwt.museum.client.defaultmuseum.VisualsForSimpleDatePicker'/
+entry-point  
class='com.google.gwt.museum.client.defaultmuseum.VisualsForDatePicker'/
  source path=client/common/
  source path=client/defaultmuseum/
  source path=client/viewer/

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



[gwt-contrib] [google-web-toolkit commit] r4153 - branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client

2008-11-21 Thread codesite-noreply

Author: [EMAIL PROTECTED]
Date: Fri Nov 21 08:54:23 2008
New Revision: 4153

Modified:
 
branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client/DateBox.java
 
branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client/DatePicker.java
 
branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client/DefaultCalendarView.java

Log:
Making date picker expose setCurrentMonth/getCurrentMonth methods rather  
then showDate

Modified:  
branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client/DateBox.java
==
---  
branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client/DateBox.java
  
(original)
+++  
branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client/DateBox.java
  
Fri Nov 21 08:54:23 2008
@@ -301,7 +301,7 @@
  if (current == null) {
current = new Date();
  }
-picker.showDate(current);
+picker.setCurrentMonth(current);
  popup.showRelativeTo(this);
}

@@ -312,7 +312,7 @@
 */
public void showDate(Date date) {
  picker.setValue(date, false);
-picker.showDate(date);
+picker.setCurrentMonth(date);
  setText(date);
  dirtyText = false;
}

Modified:  
branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client/DatePicker.java
==
---  
branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client/DatePicker.java
   
(original)
+++  
branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client/DatePicker.java
   
Fri Nov 21 08:54:23 2008
@@ -221,7 +221,7 @@
  monthSelector.setup();
  this.setup();

-showDate(new Date());
+setCurrentMonth(new Date());
  addGlobalStyleToDate(new Date(), css().dayIsToday());
}

@@ -292,6 +292,19 @@
}

/**
+   * Gets the current month the date picker is showing.
+   *
+   * p
+   * A datepicker b may /b show days not in the current month. It
+   * bmust/b show all days in the current month.
+   * /p
+   *
+   */
+  public Date getCurrentMonth(){
+return getModel().getCurrentMonth();
+  }
+
+  /**
 * Returns the first shown date.
 *
 * @return the first date.
@@ -387,6 +400,20 @@
getView().removeStyleFromDate(date, styleName);
  }
}
+  /**
+   * Sets the date picker to show the given month, use [EMAIL PROTECTED]  
#getFirstDate()}
+   * and [EMAIL PROTECTED] #getLastDate()} to access the exact date range the 
date  
picker
+   * chose to display.
+   * p
+   * A datepicker b may /b show days not in the current month. It
+   * bmust/b show all days in the current month.
+   * /p
+   * @param month the month to show
+   */
+  public void setCurrentMonth(Date month) {
+getModel().setCurrentMonth(month);
+refreshAll();
+  }

/**
 * Sets a visible date to be enabled or disabled. This is only set until  
the
@@ -449,18 +476,6 @@
addGlobalStyleToDate(value, css().dayIsValue());
  }
  ValueChangeEvent.fire(this, newValue);
-  }
-
-  /**
-   * Shows the given date, use [EMAIL PROTECTED] #getFirstDate()} and
-   * [EMAIL PROTECTED] #getLastDate()} to access the exact date range the date 
picker  
chose
-   * to display.
-   *
-   * @param date the date to show
-   */
-  public void showDate(Date date) {
-getModel().setCurrentMonth(date);
-refreshAll();
}

/**

Modified:  
branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client/DefaultCalendarView.java
==
---  
branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client/DefaultCalendarView.java
  
(original)
+++  
branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client/DefaultCalendarView.java
  
Fri Nov 21 08:54:23 2008
@@ -73,7 +73,7 @@
  if (selected) {
getDatePicker().setValue(getValue());
if (isFiller()) {
-getDatePicker().showDate(getValue());
+getDatePicker().setCurrentMonth(getValue());
}
  }
  updateStyle();

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



[gwt-contrib] [google-web-toolkit] [EMAIL PROTECTED] commented on revision r4153.

2008-11-21 Thread codesite-noreply

[google-web-toolkit] [EMAIL PROTECTED] commented on revision r4153.
Details are at  
http://code.google.com/p/google-web-toolkit/source/detail?r=4153

Score: Positive


Respond to these comments at  
http://code.google.com/p/google-web-toolkit/source/detail?r=4153
--
You received this message because you starred this review, or because
your project has directed all notifications to a mailing list that you
subscribe to.
You may adjust your review notification preferences at:
http://code.google.com/hosting/settings

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



[gwt-contrib] RR: runAsync for static fields

2008-11-21 Thread Lex Spoon
Hey, Bob, I hope your trip back was pleasant.  Can you review this patch for me?

What it does is do a better job with static fields.  This was spurred
by a bug that occurs for static fields initialized to strings.
While fixing that, it was just as easy to improve static fields
in general.  Static fields can now be moved out of the initial
download.  Also, if a program has a class
full of static fields pointing to string literals, the individual
strings can be downloaded one by one, rather than all of them
coming together as soon as any of them are needed.

It shaves off 2431 bytes (1.9%) of Showcase's uncompressed initial download.

The specifics changes are:

FragmentExtractor: static field declarations can be moved out
of the initial download

ControlFlowAnalyzer: for static fields initialized to strings,
the string becomes live when the field does, but *not* when the
class's initializer does.

CodeSplitter:
  There is a load-order dependency of the field on the string.

  Also, when logging the fragment map, fields and string literals
  are now logegd.

There are also some cleanups: one method is moved and made private,
and three individual comments are moved to a more central location.


Lex

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



deferFields2-r4151.patch
Description: Binary data


[gwt-contrib] [google-web-toolkit commit] r4154 - branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client

2008-11-21 Thread codesite-noreply

Author: [EMAIL PROTECTED]
Date: Fri Nov 21 09:12:50 2008
New Revision: 4154

Modified:
 
branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client/DatePicker.java

Log:
reversed method order so date is always last field in preperation of adding  
Date... arguments

Modified:  
branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client/DatePicker.java
==
---  
branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client/DatePicker.java
   
(original)
+++  
branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client/DatePicker.java
   
Fri Nov 21 09:12:50 2008
@@ -222,17 +222,16 @@
  this.setup();

  setCurrentMonth(new Date());
-addGlobalStyleToDate(new Date(), css().dayIsToday());
+addGlobalStyleToDate(css().dayIsToday(), new Date());
}

/**
 * Globally adds a style name to a date. i.e. the style name is  
associated
 * with the date each time it is rendered.
-   *
-   * @param date date
 * @param styleName style name
+   * @param date date
 */
-  public void addGlobalStyleToDate(Date date, String styleName) {
+  public void addGlobalStyleToDate(String styleName, Date date) {
  styler.setStyleName(date, styleName, true);
  if (isDateVisible(date)) {
getView().addStyleToDate(date, styleName);
@@ -256,7 +255,7 @@
 */
public HandlerRegistration addShowRangeHandlerAndFire(
ShowRangeHandlerDate handler) {
-ShowRangeEvent event = new ShowRangeEvent(getView().getFirstDate(),
+ShowRangeEventDate event = new  
ShowRangeEventDate(getView().getFirstDate(),
  getView().getLastDate()) {
  };
  handler.onShowRange(event);
@@ -266,23 +265,21 @@
/**
 * Shows the given style name on the specified date. This is only set  
until
 * the next time the DatePicker is refreshed.
-   *
-   * @param visibleDate current visible date
 * @param styleName style name
+   * @param visibleDate current visible date
 */
-  public final void addStyleToVisibleDate(Date visibleDate, String  
styleName) {
+  public final void addStyleToVisibleDate(String styleName, Date  
visibleDate) {
  getView().addStyleToDate(visibleDate, styleName);
}

/**
 * Adds a style name on a set of currently visible dates. This is only  
set
 * until the next time the DatePicker is refreshed.
-   *
-   * @param visibleDates dates that will have the supplied style removed
 * @param styleName style name to remove
+   * @param visibleDates dates that will have the supplied style removed
 */
-  public final void addStyleToVisibleDates(IterableDate visibleDates,
-  String styleName) {
+  public final void addStyleToVisibleDates(String styleName,
+  IterableDate visibleDates) {
  getView().addStyleToDates(visibleDates, styleName);
}

@@ -375,11 +372,10 @@

/**
 * Globally removes a style from a date.
-   *
-   * @param date date
 * @param styleName style name
+   * @param date date
 */
-  public void removeGlobalStyleFromDate(Date date, String styleName) {
+  public void removeGlobalStyleFromDate(String styleName, Date date) {
  styler.setStyleName(date, styleName, false);
  if (isDateVisible(date)) {
getView().removeStyleFromDate(date, styleName);
@@ -388,12 +384,11 @@

/**
 * Removes a style name from multiple visible dates.
-   *
-   * @param dates dates that will have the supplied style removed
 * @param styleName style name to remove
+   * @param dates dates that will have the supplied style removed
 */
-  public final void removeStyleFromVisibleDates(IteratorDate dates,
-  String styleName) {
+  public final void removeStyleFromVisibleDates(String styleName,
+  IteratorDate dates) {
  while (dates.hasNext()) {
Date date = dates.next();
assert (isDateVisible(date)) : date +  should be visible;
@@ -418,11 +413,10 @@
/**
 * Sets a visible date to be enabled or disabled. This is only set until  
the
 * next time the DatePicker is refreshed.
-   *
-   * @param date the date
 * @param enabled is enabled
+   * @param date the date
 */
-  public final void setEnabledOnVisibleDate(Date date, boolean enabled) {
+  public final void setEnabledOnVisibleDate(boolean enabled, Date date) {
  assert isDateVisible(date) : date
  +  cannot be enabled or disabled as it is not visible;
  getView().setDateEnabled(date, enabled);
@@ -431,12 +425,11 @@
/**
 * Sets a group of visible dates to be enabled or disabled. This is only  
set
 * until the next time the DatePicker is refreshed.
-   *
-   * @param dates the dates
 * @param enabled is enabled
+   * @param dates the dates
 */
-  public final void setEnabledOnVisibleDates(IterableDate dates,
-  boolean enabled) {
+  public final void setEnabledOnVisibleDates(boolean enabled,
+  IterableDate dates) {
  

[gwt-contrib] Re: auto-deploy GWT on maven repo ?

2008-11-21 Thread Jason Essington
but with OOPHM in 1.6, that is no longer necessary is it?

On Nov 20, 2008, at 3:20 PM, Scott Blum wrote:

 Funny you should mention this.. we had a crazy plan once to embed  
 the native libs into gwt-dev.jar, and at startup install them into  
 the temp directory and then load them, with delete on exit.

 On Thu, Nov 20, 2008 at 5:15 PM, Ray Cromwell  
 [EMAIL PROTECTED] wrote:
 If this is done, please make sure that the conventions adhere to the
 gwt-maven plugin's repo layout. This allows you to use the
 maven-dependency plugin to download the platform specific JNI
 libraries separately and unpack them, so that one doesn't have to
 install the GWT distribution and set up a GWT_HOME environment
 variable.

 I use this in my build process which allows Chronoscope to build clean
 on an empty computer with only Java and Maven installed and no other
 prerequisites or reliance on absolute file system paths. This allows
 us to startup a VMWare instant with an OS of our choice, and have it
 build and test out of the box with virtually no configuration needed.

 -Ray


 


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



[gwt-contrib] [google-web-toolkit commit] r4155 - branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client

2008-11-21 Thread codesite-noreply

Author: [EMAIL PROTECTED]
Date: Fri Nov 21 09:26:43 2008
New Revision: 4155

Modified:
 
branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client/CalendarView.java
 
branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client/DatePicker.java
 
branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client/DefaultCalendarView.java

Log:
removing helper methods from calendar view and re-ordering its date  
arguments to the end as well

Modified:  
branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client/CalendarView.java
==
---  
branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client/CalendarView.java
 
(original)
+++  
branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client/CalendarView.java
 
Fri Nov 21 09:26:43 2008
@@ -35,24 +35,10 @@
/**
 * Adds a style name to the cell of the supplied date. This style is  
only set
 * until the next time the [EMAIL PROTECTED] CalendarView} is refreshed.
-   *
-   * @param date date that will have the supplied style added
-   * @param styleName style name to add
-   */
-  public abstract void addStyleToDate(Date date, String styleName);
-
-  /**
-   * Adds a style to the cell of the supplied dates. This is only set  
until the
-   * next time the [EMAIL PROTECTED] CalendarView} is refreshed.
-   *
-   * @param dates dates that will have the supplied style added
 * @param styleName style name to add
+   * @param date date that will have the supplied style added
 */
-  public void addStyleToDates(IterableDate dates, String styleName) {
-for (Date date : dates) {
-  addStyleToDate(date, styleName);
-}
-  }
+  public abstract void addStyleToDate(String styleName, Date date);

/**
 * Returns the first date that is currently shown by the calendar.
@@ -76,52 +62,23 @@
 */
public abstract boolean isDateEnabled(Date date);

-  /**
-   * Is the cell representing the given date visible?
-   *
-   * @param date the date
-   * @return whether the date is visible
-   */
-  public boolean isDateVisible(Date date) {
-Date first = getFirstDate();
-Date last = getLastDate();
-return (date != null  (first.equals(date) || last.equals(date) ||  
(first.before(date)  last.after(date;
-  }
-
@Override
public abstract void refresh();

/**
 * Removes a visible style name from the cell of the supplied date.
-   *
-   * @param date date that will have the supplied style added
 * @param styleName style name to remove
+   * @param date date that will have the supplied style added
 */
-  public abstract void removeStyleFromDate(Date date, String styleName);
+  public abstract void removeStyleFromDate(String styleName, Date date);

/**
 * Enables or Disables a particular date. by default all valid dates are
 * enabled after a rendering event. Disabled dates cannot be selected.
-   *
-   * @param date date to enable or disable
-   *
 * @param enabled true for enabled, false for disabled
+   * @param date date to enable or disable
 */
-  public abstract void setDateEnabled(Date date, boolean enabled);
-
-  /**
-   * Enables or disables multiple dates.
-   *
-   * @param dates dates to [en|dis]able
-   * @param enabled true to enable, false to disable
-   */
-  public void setDatesEnabled(IterableDate dates, boolean enabled) {
-for (Date date : dates) {
-  assert isDateVisible(date) : date
-  +  cannot be enabled or disabled as it is not visible;
-  setDateEnabled(date, enabled);
-}
-  }
+  public abstract void setDateEnabled(boolean enabled, Date date);

/**
 * Allows the calendar view to update the date picker's highlighted date.

Modified:  
branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client/DatePicker.java
==
---  
branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client/DatePicker.java
   
(original)
+++  
branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client/DatePicker.java
   
Fri Nov 21 09:26:43 2008
@@ -228,13 +228,14 @@
/**
 * Globally adds a style name to a date. i.e. the style name is  
associated
 * with the date each time it is rendered.
+   *
 * @param styleName style name
 * @param date date
 */
public void addGlobalStyleToDate(String styleName, Date date) {
  styler.setStyleName(date, styleName, true);
  if (isDateVisible(date)) {
-  getView().addStyleToDate(date, styleName);
+  getView().addStyleToDate(styleName, date);
  }
}

@@ -255,8 +256,8 @@
 */
public HandlerRegistration addShowRangeHandlerAndFire(
ShowRangeHandlerDate handler) {
-ShowRangeEventDate event = new  
ShowRangeEventDate(getView().getFirstDate(),
-getView().getLastDate()) {
+ShowRangeEventDate 

[gwt-contrib] [google-web-toolkit commit] r4156 - branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client

2008-11-21 Thread codesite-noreply

Author: [EMAIL PROTECTED]
Date: Fri Nov 21 09:32:58 2008
New Revision: 4156

Modified:
 
branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client/CalendarView.java

Log:
Fixing CalendarView formatting caused by eclipse refactor

Modified:  
branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client/CalendarView.java
==
---  
branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client/CalendarView.java
 
(original)
+++  
branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client/CalendarView.java
 
Fri Nov 21 09:32:58 2008
@@ -35,6 +35,7 @@
/**
 * Adds a style name to the cell of the supplied date. This style is  
only set
 * until the next time the [EMAIL PROTECTED] CalendarView} is refreshed.
+   *
 * @param styleName style name to add
 * @param date date that will have the supplied style added
 */
@@ -67,6 +68,7 @@

/**
 * Removes a visible style name from the cell of the supplied date.
+   *
 * @param styleName style name to remove
 * @param date date that will have the supplied style added
 */
@@ -75,6 +77,7 @@
/**
 * Enables or Disables a particular date. by default all valid dates are
 * enabled after a rendering event. Disabled dates cannot be selected.
+   *
 * @param enabled true for enabled, false for disabled
 * @param date date to enable or disable
 */

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



[gwt-contrib] Re: auto-deploy GWT on maven repo ?

2008-11-21 Thread nicolas.deloof

I was not aware OOPHM was planned for 1.6, but in such case only jars
are required in maven repo. This will just require the maven plugin(s)
to upgrade and detect gwt version = 1.6

Cheers,
Nicolas


On 21 nov, 18:19, Jason Essington [EMAIL PROTECTED] wrote:
 but with OOPHM in 1.6, that is no longer necessary is it?

 On Nov 20, 2008, at 3:20 PM, Scott Blum wrote:

  Funny you should mention this.. we had a crazy plan once to embed  
  the native libs into gwt-dev.jar, and at startup install them into  
  the temp directory and then load them, with delete on exit.

  On Thu, Nov 20, 2008 at 5:15 PM, Ray Cromwell  
  [EMAIL PROTECTED] wrote:
  If this is done, please make sure that the conventions adhere to the
  gwt-maven plugin's repo layout. This allows you to use the
  maven-dependency plugin to download the platform specific JNI
  libraries separately and unpack them, so that one doesn't have to
  install the GWT distribution and set up a GWT_HOME environment
  variable.

  I use this in my build process which allows Chronoscope to build clean
  on an empty computer with only Java and Maven installed and no other
  prerequisites or reliance on absolute file system paths. This allows
  us to startup a VMWare instant with an OS of our choice, and have it
  build and test out of the box with virtually no configuration needed.

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



[gwt-contrib] Re: auto-deploy GWT on maven repo ?

2008-11-21 Thread Ray Ryan
Oophm is not planned for 1.6

On Fri, Nov 21, 2008 at 12:35 PM, nicolas.deloof
[EMAIL PROTECTED]wrote:


 I was not aware OOPHM was planned for 1.6, but in such case only jars
 are required in maven repo. This will just require the maven plugin(s)
 to upgrade and detect gwt version = 1.6

 Cheers,
 Nicolas


 On 21 nov, 18:19, Jason Essington [EMAIL PROTECTED] wrote:
  but with OOPHM in 1.6, that is no longer necessary is it?
 
  On Nov 20, 2008, at 3:20 PM, Scott Blum wrote:
 
   Funny you should mention this.. we had a crazy plan once to embed
   the native libs into gwt-dev.jar, and at startup install them into
   the temp directory and then load them, with delete on exit.
 
   On Thu, Nov 20, 2008 at 5:15 PM, Ray Cromwell
   [EMAIL PROTECTED] wrote:
   If this is done, please make sure that the conventions adhere to the
   gwt-maven plugin's repo layout. This allows you to use the
   maven-dependency plugin to download the platform specific JNI
   libraries separately and unpack them, so that one doesn't have to
   install the GWT distribution and set up a GWT_HOME environment
   variable.
 
   I use this in my build process which allows Chronoscope to build clean
   on an empty computer with only Java and Maven installed and no other
   prerequisites or reliance on absolute file system paths. This allows
   us to startup a VMWare instant with an OS of our choice, and have it
   build and test out of the box with virtually no configuration needed.
 
   -Ray
 


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



[gwt-contrib] Re: auto-deploy GWT on maven repo ?

2008-11-21 Thread Ray Cromwell

It would also require a patch to the maven plugin to allow it to
download and install the OOPHM browser plugins, otherwise, the 'clean
checkout test run' scenario won't work. So the plugins should be
bundled as a separate artifact in the repo, downloadable via a maven
plugin.  A goal to launch a selenium server would be cool too. My
goals are to avoid having the person build stuff do any configuration
for it to work.


-Ray


On Fri, Nov 21, 2008 at 9:35 AM, nicolas.deloof
[EMAIL PROTECTED] wrote:

 I was not aware OOPHM was planned for 1.6, but in such case only jars
 are required in maven repo. This will just require the maven plugin(s)
 to upgrade and detect gwt version = 1.6

 Cheers,
 Nicolas


 On 21 nov, 18:19, Jason Essington [EMAIL PROTECTED] wrote:
 but with OOPHM in 1.6, that is no longer necessary is it?

 On Nov 20, 2008, at 3:20 PM, Scott Blum wrote:

  Funny you should mention this.. we had a crazy plan once to embed
  the native libs into gwt-dev.jar, and at startup install them into
  the temp directory and then load them, with delete on exit.

  On Thu, Nov 20, 2008 at 5:15 PM, Ray Cromwell
  [EMAIL PROTECTED] wrote:
  If this is done, please make sure that the conventions adhere to the
  gwt-maven plugin's repo layout. This allows you to use the
  maven-dependency plugin to download the platform specific JNI
  libraries separately and unpack them, so that one doesn't have to
  install the GWT distribution and set up a GWT_HOME environment
  variable.

  I use this in my build process which allows Chronoscope to build clean
  on an empty computer with only Java and Maven installed and no other
  prerequisites or reliance on absolute file system paths. This allows
  us to startup a VMWare instant with an OS of our choice, and have it
  build and test out of the box with virtually no configuration needed.

  -Ray
 


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



[gwt-contrib] Re: auto-deploy GWT on maven repo ?

2008-11-21 Thread nicolas.deloof



On 21 nov, 18:40, Ray Cromwell [EMAIL PROTECTED] wrote:
 It would also require a patch to the maven plugin to allow it to
 download and install the OOPHM browser plugins, otherwise, the 'clean
 checkout test run' scenario won't work. So the plugins should be
 bundled as a separate artifact in the repo, downloadable via a maven
 plugin.  A goal to launch a selenium server would be cool too. My
 goals are to avoid having the person build stuff do any configuration
 for it to work.

Yes, that's the typical maven spirit : all required artifacts in repo,
plugin handle the necessary setup.
Too many maven plugins require a local installation path :(
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: auto-deploy GWT on maven repo ?

2008-11-21 Thread John Tamplin
On Fri, Nov 21, 2008 at 12:40 PM, Ray Cromwell [EMAIL PROTECTED]wrote:

 It would also require a patch to the maven plugin to allow it to
 download and install the OOPHM browser plugins, otherwise, the 'clean
 checkout test run' scenario won't work. So the plugins should be
 bundled as a separate artifact in the repo, downloadable via a maven
 plugin.  A goal to launch a selenium server would be cool too. My
 goals are to avoid having the person build stuff do any configuration
 for it to work.


It isn't clear how the browser plugins would get installed without any user
interaction on all platforms, however.  To run selenium in FF, you need to
create a new profile with the plugin installed.  A profile could be checked
in, but it would likely be very vulnerable to browser version differences.

-- 
John A. Tamplin
Software Engineer (GWT), Google

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



[gwt-contrib] [google-web-toolkit commit] r4159 - branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client

2008-11-21 Thread codesite-noreply

Author: [EMAIL PROTECTED]
Date: Fri Nov 21 10:43:22 2008
New Revision: 4159

Modified:
 
branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client/CalendarView.java
 
branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client/DatePicker.java
 
branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client/DefaultCalendarView.java

Log:
emergency commit, Ray, you're it

Modified:  
branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client/CalendarView.java
==
---  
branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client/CalendarView.java
 
(original)
+++  
branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client/CalendarView.java
 
Fri Nov 21 10:43:22 2008
@@ -81,7 +81,7 @@
 * @param enabled true for enabled, false for disabled
 * @param date date to enable or disable
 */
-  public abstract void setDateEnabled(boolean enabled, Date date);
+  public abstract void setEnabledOnDate(boolean enabled, Date date);

/**
 * Allows the calendar view to update the date picker's highlighted date.

Modified:  
branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client/DatePicker.java
==
---  
branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client/DatePicker.java
   
(original)
+++  
branches/1_6_datepicker/user/src/com/google/gwt/user/datepicker/client/DatePicker.java
   
Fri Nov 21 10:43:22 2008
@@ -179,6 +179,7 @@
}
  }

+@SuppressWarnings(deprecation)
  private String genKey(Date d) {
return d.getYear() + / + d.getMonth() + / + d.getDate();
  }
@@ -268,10 +269,18 @@
 * the next time the DatePicker is refreshed.
 *
 * @param styleName style name
-   * @param visibleDate current visible date
+   * @param date visible date
+   * @param moreDates optional visible dates
 */
-  public final void addStyleToVisibleDate(String styleName, Date  
visibleDate) {
-getView().addStyleToDate(styleName, visibleDate);
+  public final void addStyleToVisibleDates(String styleName, Date date,
+  Date... moreDates) {
+assert (assertVisible(date, moreDates));
+getView().addStyleToDate(styleName, date);
+if (moreDates != null) {
+  for (Date d : moreDates) {
+getView().addStyleToDate(styleName, d);
+  }
+}
}

/**
@@ -395,6 +404,22 @@
 * Removes a style name from multiple visible dates.
 *
 * @param styleName style name to remove
+   * @param date a visible date
+   * @param moreDates optional additional visible dates
+   */
+  public final void removeStyleFromVisibleDates(String styleName, Date  
date,
+  Date... moreDates) {
+assert (isDateVisible(date)) : date +  should be visible;
+getView().removeStyleFromDate(styleName, date);
+for (Date d : moreDates) {
+  getView().removeStyleFromDate(styleName, date);
+}
+  }
+
+  /**
+   * Removes a style name from multiple visible dates.
+   *
+   * @param styleName style name to remove
 * @param dates dates that will have the supplied style removed
 */
public final void removeStyleFromVisibleDates(String styleName,
@@ -428,11 +453,17 @@
 *
 * @param enabled is enabled
 * @param date the date
+   * @param moreDates optional dates
 */
-  public final void setEnabledOnVisibleDate(boolean enabled, Date date) {
-assert isDateVisible(date) : date
-+  cannot be enabled or disabled as it is not visible;
-getView().setDateEnabled(enabled, date);
+  public final void setEnabledOnVisibleDates(boolean enabled, Date date,
+  Date... moreDates) {
+assert assertVisible(date, moreDates);
+getView().setEnabledOnDate(enabled, date);
+if (moreDates != null) {
+  for (Date d : moreDates) {
+getView().setEnabledOnDate(enabled, d);
+  }
+}
}

/**
@@ -448,7 +479,7 @@
  for (Date date : dates) {
assert isDateVisible(date) : date
+  cannot be enabled or disabled as it is not visible;
-  r.setDateEnabled(enabled, date);
+  r.setEnabledOnDate(enabled, date);
  }
}

@@ -555,9 +586,19 @@
 *
 * @param highlighted highlighted date
 */
-  void setHighlightedDate(Date highlightedDate) {
-this.highlighted = highlightedDate;
-HighlightEvent.fire(this, highlightedDate);
+  void setHighlightedDate(Date highlighted) {
+this.highlighted = highlighted;
+HighlightEvent.fire(this, highlighted);
+  }
+
+  private boolean assertVisible(Date date, Date... moreDates) {
+assert isDateVisible(date) : date +  must be visible;
+if (moreDates != null) {
+  for (Date d : moreDates) {
+assert isDateVisible(d) : d +  must be visible;
+  }
+}
+return true;
}

  }

Modified:  

[gwt-contrib] [google-web-toolkit] [EMAIL PROTECTED] commented on revision r4159.

2008-11-21 Thread codesite-noreply

[google-web-toolkit] [EMAIL PROTECTED] commented on revision r4159.
Details are at  
http://code.google.com/p/google-web-toolkit/source/detail?r=4159

Score: Negative

General Comment:
Think we should lose assertVisible(), not clear to me compiler can strip  
it. Will try to remember to check/fix that today.

Respond to these comments at  
http://code.google.com/p/google-web-toolkit/source/detail?r=4159
--
You received this message because you starred this review, or because
your project has directed all notifications to a mailing list that you
subscribe to.
You may adjust your review notification preferences at:
http://code.google.com/hosting/settings

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



[gwt-contrib] [google-web-toolkit commit] r4160 - in javadoc/1.6: . com resources

2008-11-21 Thread codesite-noreply

Author: [EMAIL PROTECTED]
Date: Fri Nov 21 10:57:01 2008
New Revision: 4160

Removed:
javadoc/1.6/com/
javadoc/1.6/resources/
Modified:
javadoc/1.6/allclasses-frame.html
javadoc/1.6/allclasses-noframe.html
javadoc/1.6/index-all.html
javadoc/1.6/overview-tree.html

Log:
Removed trunk version of javadoc


Modified: javadoc/1.6/allclasses-frame.html
==
--- javadoc/1.6/allclasses-frame.html   (original)
+++ javadoc/1.6/allclasses-frame.html   Fri Nov 21 10:57:01 2008
@@ -43,8 +43,6 @@
  BR
  A HREF=com/google/gwt/user/client/rpc/AsyncCallback.html  
title=interface in com.google.gwt.user.client.rpc  
target=classFrameIAsyncCallback/I/A
  BR
-A HREF=com/google/gwt/core/client/AsyncFragmentLoader.html title=class  
in com.google.gwt.core.client target=classFrameAsyncFragmentLoader/A
-BR
  A HREF=com/google/gwt/xml/client/Attr.html title=interface in  
com.google.gwt.xml.client target=classFrameIAttr/I/A
  BR
  A HREF=com/google/gwt/core/ext/BadPropertyValueException.html  
title=class in com.google.gwt.core.ext  
target=classFrameBadPropertyValueException/A

Modified: javadoc/1.6/allclasses-noframe.html
==
--- javadoc/1.6/allclasses-noframe.html (original)
+++ javadoc/1.6/allclasses-noframe.html Fri Nov 21 10:57:01 2008
@@ -43,8 +43,6 @@
  BR
  A HREF=com/google/gwt/user/client/rpc/AsyncCallback.html  
title=interface in com.google.gwt.user.client.rpcIAsyncCallback/I/A
  BR
-A HREF=com/google/gwt/core/client/AsyncFragmentLoader.html title=class  
in com.google.gwt.core.clientAsyncFragmentLoader/A
-BR
  A HREF=com/google/gwt/xml/client/Attr.html title=interface in  
com.google.gwt.xml.clientIAttr/I/A
  BR
  A HREF=com/google/gwt/core/ext/BadPropertyValueException.html  
title=class in com.google.gwt.core.extBadPropertyValueException/A

Modified: javadoc/1.6/index-all.html
==
--- javadoc/1.6/index-all.html  (original)
+++ javadoc/1.6/index-all.html  Fri Nov 21 10:57:01 2008
@@ -1120,11 +1120,7 @@
  Static method in class com.google.gwt.user.client.A  
HREF=./com/google/gwt/user/client/Window.Location.html title=class in  
com.google.gwt.user.clientWindow.Location/A
  DDAssigns the window to a new URL.
  DTA HREF=./com/google/gwt/user/client/rpc/AsyncCallback.html  
title=interface in  
com.google.gwt.user.client.rpcBAsyncCallback/B/Alt;A  
HREF=./com/google/gwt/user/client/rpc/AsyncCallback.html title=type  
parameter in AsyncCallbackT/Agt; - Interface in A  
HREF=./com/google/gwt/user/client/rpc/package-summary.htmlcom.google.gwt.user.client.rpc/ADDThe
  
primary interface a caller must implement to receive a response from a
- remote procedure call.DTA  
HREF=./com/google/gwt/core/client/AsyncFragmentLoader.html title=class  
in com.google.gwt.core.clientBAsyncFragmentLoader/B/A - Class in A  
HREF=./com/google/gwt/core/client/package-summary.htmlcom.google.gwt.core.client/ADD
- Low-level support to download an extra fragment of code.DTA  
HREF=./com/google/gwt/core/client/AsyncFragmentLoader.html#AsyncFragmentLoader()BAsyncFragmentLoader()/B/A
  
-
-Constructor for class com.google.gwt.core.client.A  
HREF=./com/google/gwt/core/client/AsyncFragmentLoader.html title=class  
in com.google.gwt.core.clientAsyncFragmentLoader/A
-DDnbsp;
-DTA  
HREF=./com/google/gwt/user/client/HTTPRequest.html#asyncGet(java.lang.String,  
com.google.gwt.user.client.ResponseTextHandler)BasyncGet(String,  
ResponseTextHandler)/B/A -
+ remote procedure call.DTA  
HREF=./com/google/gwt/user/client/HTTPRequest.html#asyncGet(java.lang.String,  
com.google.gwt.user.client.ResponseTextHandler)BasyncGet(String,  
ResponseTextHandler)/B/A -
  Static method in class com.google.gwt.user.client.A  
HREF=./com/google/gwt/user/client/HTTPRequest.html title=class in  
com.google.gwt.user.clientHTTPRequest/A
  DDBDeprecated./Bnbsp;Makes an asynchronous HTTP GET to a remote  
server.
  DTA  
HREF=./com/google/gwt/user/client/HTTPRequest.html#asyncGet(java.lang.String,  
java.lang.String, java.lang.String,  
com.google.gwt.user.client.ResponseTextHandler)BasyncGet(String,  
String, String, ResponseTextHandler)/B/A -
@@ -2824,10 +2820,6 @@
  Static method in class com.google.gwt.user.client.A  
HREF=./com/google/gwt/user/client/History.html title=class in  
com.google.gwt.user.clientHistory/A
  DDProgrammatic equivalent to the user pressing the browser's 'forward'
   button.
-DTA  
HREF=./com/google/gwt/core/client/AsyncFragmentLoader.html#fragmentHasLoaded(int)BfragmentHasLoaded(int)/B/A
  
-
-Static method in class com.google.gwt.core.client.A  
HREF=./com/google/gwt/core/client/AsyncFragmentLoader.html title=class  
in com.google.gwt.core.clientAsyncFragmentLoader/A
-DDInform the loader that the code for an entry point has now finished
- loading.
  DTA HREF=./com/google/gwt/user/client/ui/Frame.html 

[gwt-contrib] Re: CssResource question on nested styles

2008-11-21 Thread dflorey

It was me ;-)

On 21 Nov., 20:03, dflorey [EMAIL PROTECTED] wrote:
 I'm currently struggeling to apply a simple rule (just an example)
 like the following using CssResource:

 .headerTable td {
  font-size: 10px;

 }

 Before spending more time on this I'd like to know if the style name
 obfuscating might be the reason why this is not working properly (or
 is it me??) ?
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] CssResource question on nested styles

2008-11-21 Thread dflorey

I'm currently struggeling to apply a simple rule (just an example)
like the following using CssResource:

.headerTable td {
 font-size: 10px;
}

Before spending more time on this I'd like to know if the style name
obfuscating might be the reason why this is not working properly (or
is it me??) ?


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



[gwt-contrib] Re: auto-deploy GWT on maven repo ?

2008-11-21 Thread Ray Cromwell

That's true. Correct me if I'm wrong, but for IE, it's just a matter
of regsrv32 with the ocx. I remember in the old days, installing an FF
plugin was as simple as copying a file. This is not really GWT
specific, more for the gwt-maven guys, but it would be nice if the
plugin could provision browsers.

-Ray


On Fri, Nov 21, 2008 at 10:36 AM, John Tamplin [EMAIL PROTECTED] wrote:
 On Fri, Nov 21, 2008 at 12:40 PM, Ray Cromwell [EMAIL PROTECTED]
 wrote:

 It would also require a patch to the maven plugin to allow it to
 download and install the OOPHM browser plugins, otherwise, the 'clean
 checkout test run' scenario won't work. So the plugins should be
 bundled as a separate artifact in the repo, downloadable via a maven
 plugin.  A goal to launch a selenium server would be cool too. My
 goals are to avoid having the person build stuff do any configuration
 for it to work.

 It isn't clear how the browser plugins would get installed without any user
 interaction on all platforms, however.  To run selenium in FF, you need to
 create a new profile with the plugin installed.  A profile could be checked
 in, but it would likely be very vulnerable to browser version differences.

 --
 John A. Tamplin
 Software Engineer (GWT), Google

 


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



[gwt-contrib] Re: auto-deploy GWT on maven repo ?

2008-11-21 Thread Jason Essington
No? I thought that was going to be the primary focus of 1.6 ... serves  
me right for thinking :-(

-jason

On Nov 21, 2008, at 10:36 AM, Ray Ryan wrote:

 Oophm is not planned for 1.6

 On Fri, Nov 21, 2008 at 12:35 PM, nicolas.deloof [EMAIL PROTECTED] 
  wrote:

 I was not aware OOPHM was planned for 1.6, but in such case only jars
 are required in maven repo. This will just require the maven plugin(s)
 to upgrade and detect gwt version = 1.6

 Cheers,
 Nicolas


 On 21 nov, 18:19, Jason Essington [EMAIL PROTECTED] wrote:
  but with OOPHM in 1.6, that is no longer necessary is it?
 
  On Nov 20, 2008, at 3:20 PM, Scott Blum wrote:
 
   Funny you should mention this.. we had a crazy plan once to embed
   the native libs into gwt-dev.jar, and at startup install them into
   the temp directory and then load them, with delete on exit.
 
   On Thu, Nov 20, 2008 at 5:15 PM, Ray Cromwell
   [EMAIL PROTECTED] wrote:
   If this is done, please make sure that the conventions adhere to  
 the
   gwt-maven plugin's repo layout. This allows you to use the
   maven-dependency plugin to download the platform specific JNI
   libraries separately and unpack them, so that one doesn't have to
   install the GWT distribution and set up a GWT_HOME environment
   variable.
 
   I use this in my build process which allows Chronoscope to build  
 clean
   on an empty computer with only Java and Maven installed and no  
 other
   prerequisites or reliance on absolute file system paths. This  
 allows
   us to startup a VMWare instant with an OS of our choice, and  
 have it
   build and test out of the box with virtually no configuration  
 needed.
 
   -Ray



 


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



[gwt-contrib] [google-web-toolkit commit] r4162 - releases/1.6/dev/core/src/com/google/gwt/dev/javac

2008-11-21 Thread codesite-noreply

Author: [EMAIL PROTECTED]
Date: Fri Nov 21 13:35:42 2008
New Revision: 4162

Modified:
releases/1.6/dev/core/src/com/google/gwt/dev/javac/CompilationState.java
releases/1.6/dev/core/src/com/google/gwt/dev/javac/JdtCompiler.java
 
releases/1.6/dev/core/src/com/google/gwt/dev/javac/TypeOracleMediator.java

Log:
Fixes a bug I recently introduced where hosted mode refresh doesn't work.   
Also, another field in TypeOracleMediator can be made transient, reducing  
the memory overhead.

Review by: spoon


Modified:  
releases/1.6/dev/core/src/com/google/gwt/dev/javac/CompilationState.java
==
---  
releases/1.6/dev/core/src/com/google/gwt/dev/javac/CompilationState.java
 
(original)
+++  
releases/1.6/dev/core/src/com/google/gwt/dev/javac/CompilationState.java
 
Fri Nov 21 13:35:42 2008
@@ -22,9 +22,6 @@
  import com.google.gwt.dev.js.ast.JsProgram;
  import com.google.gwt.dev.util.PerfLogger;

-import org.eclipse.jdt.core.compiler.CharOperation;
-import org.eclipse.jdt.internal.compiler.ClassFile;
-
  import java.util.Collections;
  import java.util.HashMap;
  import java.util.HashSet;
@@ -86,12 +83,6 @@
private final JavaSourceOracle sourceOracle;

/**
-   * Tracks the set of valid binary type names for
-   * [EMAIL PROTECTED] BinaryTypeReferenceRestrictionsChecker}.
-   */
-  private final SetString validBinaryTypeNames = new HashSetString();
-
-  /**
 * Construct a new [EMAIL PROTECTED] CompilationState}.
 *
 * @param sourceOracle an oracle used to retrieve source code and check  
for
@@ -180,7 +171,6 @@
  getCompilationUnits());

  jdtCompiler = new JdtCompiler();
-validBinaryTypeNames.clear();
  compile(logger, getCompilationUnits());
  mediator.refresh(logger, getCompilationUnits());
  markSurvivorsChecked(getCompilationUnits());
@@ -199,7 +189,7 @@

// Check all units using our custom checks.
CompilationUnitInvalidator.validateCompilationUnits(newUnits,
-  validBinaryTypeNames);
+  jdtCompiler.getBinaryTypeNames());

// More units may have errors now.
anyErrors |=  
CompilationUnitInvalidator.invalidateUnitsWithErrors(logger,
@@ -210,8 +200,6 @@
  newUnits);
}

-  recordValidBinaryTypeNames(newUnits);
-
JsniCollector.collectJsniMethods(logger, newUnits, new JsProgram());
  }

@@ -231,18 +219,6 @@
  }
  exposedClassFileMap = Collections.unmodifiableMap(classFileMap);
  exposedClassFileMapBySource =  
Collections.unmodifiableMap(classFileMapBySource);
-  }
-
-  private void recordValidBinaryTypeNames(SetCompilationUnit units) {
-for (CompilationUnit unit : units) {
-  if (unit.getState() == State.COMPILED) {
-for (ClassFile classFile :  
unit.getJdtCud().compilationResult().getClassFiles()) {
-  char[] binaryName = CharOperation.concatWith(
-  classFile.getCompoundName(), '/');
-  validBinaryTypeNames.add(String.valueOf(binaryName));
-}
-  }
-}
}

private void refreshFromSourceOracle() {

Modified:  
releases/1.6/dev/core/src/com/google/gwt/dev/javac/JdtCompiler.java
==
--- releases/1.6/dev/core/src/com/google/gwt/dev/javac/JdtCompiler.java  
(original)
+++ releases/1.6/dev/core/src/com/google/gwt/dev/javac/JdtCompiler.java Fri  
Nov 21 13:35:42 2008
@@ -127,7 +127,7 @@
  }

  public NameEnvironmentAnswer findType(char[][] compoundTypeName) {
-  char[] binaryNameChars =  
CharOperation.concatWith(compoundTypeName, '.');
+  char[] binaryNameChars =  
CharOperation.concatWith(compoundTypeName, '/');
String binaryName = String.valueOf(binaryNameChars);
CompiledClass compiledClass = binaryTypes.get(binaryName);
if (compiledClass != null) {
@@ -137,20 +137,17 @@
  return null;
}
try {
-// Check for binary-only annotations.
-Class.forName(binaryName, false, getClassLoader());
-String resourcePath = binaryName.replace('.', '/') + .class;
-URL resource = getClassLoader().getResource(resourcePath);
-InputStream openStream = resource.openStream();
-try {
-  ClassFileReader cfr = ClassFileReader.read(openStream,
-  resource.toExternalForm(), true);
-  return new NameEnvironmentAnswer(cfr, null);
-} finally {
-  Utility.close(openStream);
+URL resource = getClassLoader().getResource(binaryName + .class);
+if (resource != null) {
+  InputStream openStream = resource.openStream();
+  try {
+ClassFileReader cfr = ClassFileReader.read(openStream,
+resource.toExternalForm(), true);
+return new NameEnvironmentAnswer(cfr, null);
+  } finally {
+Utility.close(openStream);
+  }
  }

  1   2   >