Bindery package refactoring?

2011-09-01 Thread Michael Allan
I've been wondering about the new bindery classes, as well.  I found
no explanation in the API.  It looks like 2.3 may have been released
in mid-transition.

Ed wrote:
 The class LegacyHandlerWrapper is used to wrap the new
 HandlerRegistration.

2.3.0 does not have LegacyHandlerWrapper.  I found I had to code my
own.  Here's my version, in case anyone prefers it.  ;-)
http://zelea.com/project/votorola/g/web/gwt/HandlerRegistrationCW.java

-- 
Michael Allan

Toronto, +1 416-699-9528
http://zelea.com/


Ed wrote:
 I just upgraded from 2.1.1. to version 2.3.0 and not noticed the new
 bindery package.
 The Binery package contains a new HandlerRegistration class.
 When adding a handler you still receive the old HandlerRegistration
 (from the shared package). I also noticed that the Has**Handlers like
 the HasClickHandlers contains the old HandlerRegistration.
 The class LegacyHandlerWrapper is used to wrap the new
 HandlerRegistration.

 What is the plan/roadmap for these new classes like
 HandlerRegistration. Will the old ones b decprectaed in 3.0 ? and the
 Has*Handlers return the new HandlerRegistration ?

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



Re: Bindery package refactoring?

2011-09-01 Thread Ed Bras
 2.3.0 does not have LegacyHandlerWrapper.
Mine does. In the gwt-user-2.3.0.jar I find:
com.google.gwt.event.shared.LegacyHandlerWrapper

I also made a public copy of this such that I could use it, as I changed low
level gwt things such that I can test it outside of GWT.. See:
http://code.google.com/p/google-web-toolkit/issues/detail?id=6113 (issue:
6113)

- Ed

On Thu, Sep 1, 2011 at 8:31 AM, Michael Allan m...@zelea.com wrote:

 I've been wondering about the new bindery classes, as well.  I found
 no explanation in the API.  It looks like 2.3 may have been released
 in mid-transition.

 Ed wrote:
  The class LegacyHandlerWrapper is used to wrap the new
  HandlerRegistration.

 2.3.0 does not have LegacyHandlerWrapper.  I found I had to code my
 own.  Here's my version, in case anyone prefers it.  ;-)
 http://zelea.com/project/votorola/g/web/gwt/HandlerRegistrationCW.java

 --
 Michael Allan

 Toronto, +1 416-699-9528
 http://zelea.com/


 Ed wrote:
  I just upgraded from 2.1.1. to version 2.3.0 and not noticed the new
  bindery package.
  The Binery package contains a new HandlerRegistration class.
  When adding a handler you still receive the old HandlerRegistration
  (from the shared package). I also noticed that the Has**Handlers like
  the HasClickHandlers contains the old HandlerRegistration.
  The class LegacyHandlerWrapper is used to wrap the new
  HandlerRegistration.
 
  What is the plan/roadmap for these new classes like
  HandlerRegistration. Will the old ones b decprectaed in 3.0 ? and the
  Has*Handlers return the new HandlerRegistration ?

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



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



Re: custom tabs

2011-09-01 Thread Alexandre Ardhuin
Hi,

You can use CSS to do this

.gwt-TabLayoutPanel .gwt-TabLayoutPanelTab {
background-color: #123456;
}
.gwt-TabLayoutPanel .gwt-TabLayoutPanelTab-selected {
background-color: #654321;
}

Alexandre


2011/9/1 nf...@pevco.com nf...@pevco.com

 I'm using TabLayoutPanel and would like to customize the tabs on the tab
 bar. Currently the active tab is white and the inactive tabs are gray. I've
 tried setting the background-color for the widget in the tab, but that
 didn't seem to work. I'd like the active tab to be green and the inactive
 tabs to be blue. Any suggestions?

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


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



Re: How to exclude JUnit test files to be converted to javascript inside /src/test/java/ folder when the Project is using Maven.

2011-09-01 Thread Andrew Hughes
Maven should not even allow you project to compile if that is the case. Dev
mode might still run. Try mvn install .

If that fails you prob have an import/reference to a test in you main src
code.

Post results back.
On 01/09/2011 7:06 AM, Jason Pack jason...@gmail.com wrote:
 In your gwt.xml file, you can use include or exclude tags under your
 source paths. Like so:

 source path='client' /
 source path='service' /
 source path='dto'

 exclude name='**/*Test.java' /

 exclude name='**/Mock*.java' /

 /source

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


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



Re: Why doesn't my custom widget work in chrome but perfectly in firefox?

2011-09-01 Thread Ingert Doe
Did you actually test that? Becouse I get the same problems, mouse
over works but mouseout won't fire in chrome..

On Aug 30, 4:33 pm, Sudhakar Abraham s.abra...@datastoregwt.com
wrote:
 Use MouseMoveHander and MouseOutHandler  instead of
 MouseOverHandler,MouseOutHandler. See the following code. Hover the
 cursor to the div, the text  responds  to mouse over. Remove the
 cursor from div to get bye mouse.

 S. Abrahamwww.DataStoreGwt.com

 package com.college.client;
 import com.google.gwt.event.dom.client.MouseMoveEvent;
 import com.google.gwt.event.dom.client.MouseMoveHandler;
 import com.google.gwt.event.dom.client.MouseOutEvent;
 import com.google.gwt.event.dom.client.MouseOutHandler;
 import com.google.gwt.user.client.ui.HTML;
 import com.google.gwt.user.client.ui.RootLayoutPanel;
   public class MyWidget
   {
    private final HTML widget;
    public MyWidget() {
    widget = new HTML(divHello/div);
    widget.addMouseMoveHandler(new MouseMoveHandler()
 {
    @Override
     public void onMouseMove(MouseMoveEvent event)
     {
      widget.setHTML(divMouse over/div);
     }
    });
     widget.addMouseOutHandler(new MouseOutHandler()
 {
     @Override
     public void onMouseOut(MouseOutEvent event)
     {
      widget.setHTML(divBye mouse!/div);
     }
     });
      RootLayoutPanel.get().add(widget);
     }

   }

 On Aug 30, 3:08 am, Ingert Doe inge...@gmail.com wrote:







  Hello, Today I ran into some problems with a custom widget. I created
  a new GWT project and made a small test widget to narrow down the
  problem. Here is the test widget I wrote:

  public class MyWidget extends Composite implements MouseOverHandler,
  MouseOutHandler {
          private final HTML widget;

          public MyWidget() {
                  widget = new HTML(divHello/div);
                  widget.addDomHandler(this, MouseOverEvent.getType());
                  widget.addDomHandler(this, MouseOutEvent.getType());
                  initWidget(widget);
          }

          @Override
          public void onMouseOver(MouseOverEvent event) {
                  widget.setHTML(divMouse over/div);
          }

          @Override
          public void onMouseOut(MouseOutEvent event) {
                  widget.setHTML(divBye mouse!/div);
          }

  }

  In firefox, this code works as expected. When I hover the cursor over
  the div, the text changes to Mouse over, when I remove the cursor
  from the div, the text changes to Bye mouse!.

  In Chrome, only the onMouseOver handler is executed. To be perfectly
  clear: When I hover the cursor over the div, the text changes to
  Mouse over, but when I remove the cursor from the div, the text does
  Not change to Bye mouse!.
  If I comment out the addDomHandler for MouseOver, the MouseOut works.

  I have also tried (as suggested on different forums) to only implement
  the HasMouseOverHandlers and HasMouseOutHanders on my widget,
  overriding the addMouse*Handler and using a separate class for
  implementing the MouseOverHander/MouseOutHandler but I get the same
  results here. Works perfectly in ff but only one handler works in
  chrome.

  Am I doing anything wrong in the code above? Is there another way I
  can write the code to get the it more cross-browser compliant?

  Thank you!

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



Re: GWT Date 'week of year' and 'day of week' problem

2011-09-01 Thread md
Thanks geert3 for your answer, and sorry for my late reply!


I didn't found something helpfull and made (in the end) a workaround
with a GWT RPC... so let the server do the stuff.
Definetely not a good solution, but it works.


Thanks alot for your help!



On 23 Aug., 21:10, geert3 geert.coelm...@gmail.com wrote:
 There are some 3rd party Calendar replacements out there, search GWT
 Calendar Class.
 i tried one and it worked, but had massive performance hit on first use.
 Maybe today others are better but I managed to do without anyway.
 Perhaps silly but could you make a server call and let the server do it?

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



Re: Titanium Java Desktop Development with GWT4TiDesktop is almost HERE!

2011-09-01 Thread Magno Machado
For curiosity, why would I use this if I can already develop desktop apps
with Java?

On Wed, Aug 31, 2011 at 11:52 PM, Alfredo Quiroga-Villamil 
alfr...@emitrom.com wrote:

 Titanium Java Desktop Development with GWT4TiDesktop is almost HERE!

 http://www.emitrom.com/comment/4#comment-4

 Stay tuned for more updates.

 Regards,

 Alfredo

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




-- 
Magno Machado Paulo
http://blog.magnomachado.com.br
http://code.google.com/p/emballo/

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



how to gwt value of radio button from ui binder

2011-09-01 Thread Sanjay Jain India
Lets say I have three radio buttons belonging to a group.   Upon some
event,
I would like to retrieve the value of the radio button selected in my
UiBInder class.

One possible approach, I guess, is to declare a ui:field for each of
the
radio buttons(like in the example below) and thus retrieve the
selected
value in the UiBInder class.

g:RadioButton ui:field=value1 value=value1
ui:name=rbnamevalue1/g:RadioButton
g:RadioButton ui:field=value2 value=value2
ui:name=rbnamevalue2/g:RadioButton
g:RadioButton ui:field=value3 value=value3
ui:name=rbnamevalue3/g:RadioButton

Is there any other way to achieve this without having to declare a
ui:filed
for each and every radio button of a group.

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



Re: Click Listener on CellTableRow

2011-09-01 Thread Foermchen82
You retreive the item by using the currentSelectedItem. But on click,
the row is actually not selected. So you will get the Item of the
previous selected row.

Is there not normal way for handling a click on a row of a
celltable?
On a flex table there is a addTableListener method. but this is
deprecated. On a HTMLTable there is the method getcellforEvent. But
how I can do this with a CellTable??

I only want to have the index of the row that I have clicked.

Can somebody pleas help me



On 31 Aug., 21:28, Juan Pablo Gardella gardellajuanpa...@gmail.com
wrote:
 You can extend CellTable and overwritte onBrowserEvent2.

  @Override
   protected void onBrowserEvent2(Event event) {
     super.onBrowserEvent2(event);

     String eventType = event.getType();
     boolean isClick = click.equals(eventType);

     // Get the event target.
     EventTarget eventTarget = event.getEventTarget();
     if (!Element.is(eventTarget)) {
       return;
     }
     final Element target = event.getEventTarget().cast();

     if (isClick) {
       int columnClicked = getCellIndex(target);
       boolean isExcludedColumn =
           this.excludedColumns != null
                (Arrays.binarySearch(this.excludedColumns, columnClicked)= 
 0);

       if (!input.equalsIgnoreCase(target.getTagName())
            !isExcludedColumn) {
         T item = getCurrentSelectedItem(target);
        //do something
       }
     }
   }

 2011/8/31 Foermchen82 juergen.f...@gmx.de







  Hi,

  I want to handle click events on cell table rows. But i'm not able to
  do this!

  I tried the following code:

  CellTableMyObject table = new CellTableMyObject();
  final SingleSelectionModelMyObject model = new
  SingleSelectionModelMyObject();
                 table.setSelectionModel(model);

                 table.addHandler(new ClickHandler() {

                         @Override
                         public void onClick(ClickEvent event) {
                                 try{

   Window.alert(model.getSelectedObject());
                                 }
                                 catch(Exception e){
                                         System.out.println(e);
                                 }
                         }
                 }, ClickEvent.getType());

  The problem is, that I try to get the object of the row on which I
  have clicked. But on the click, the row under the mouse is actually
  not selected. so the popup shows the wrong object.

  How can I retreive the object under the mouse?

  Kind regards,

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

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



Re: Funny behaviour in CellTable.

2011-09-01 Thread jsg
Yes, the critical call which makes it work in your last example is the
dataProvider.setList() .

This seems to me to be unintuitive because the whole notion of a
provider and view is that when your model changes, the provider is
informed and updates the views accordingly. Here not only does the
provider have to be reconnected to a model by setList() , severing
connection with the previous model (which means it has to redraw rows
that haven't changed), but the CellTable itself has to be notified
individually.

There might be no mechanism currently in the provider to test for row
data changes, but the way the user has to call this API seems to me to
be all wrong.

I guess we leave this here. Thanks for your help.

On Aug 23, 5:38 pm, Jeffrey Chimene jchim...@gmail.com wrote:
 On 8/23/2011 8:33 AM, Jeffrey Chimene wrote:









  On 8/23/2011 8:19 AM, Jeffrey Chimene wrote:
  On 8/23/2011 2:38 AM, jsg wrote:
  Let me get this straight, you run the code in dev mode, you set the
  endTime TextInputCell to a value, let's say 14:18 and on pushing Enter
  or leaving focus, the code parses the value and updates it to 15:19
  (as the + 1 is set in the FieldUpdater) and then this displays
  immediately on your machine??
  Yes.

  In fact, there are other actions that can occur after pressing enter.
  For example, the user could choose to delete a row in the table.

  You can review the code athttp://code.google.com/p/gwt-sked, or try
  out the project athttp://jchimene.com/sked.htmlThe specific example
  you cite can be demonstrated by the following actions:
  0) Select Load sample schedule under the Helpmenu
  1) Click a cell in the Likely column for a specific activity
  2) Set the value to zero. Press enter to blur the cell. Notice the
  adjacent cell values are set to zero.
  3) Enter a non-zero value in the Likely cell. Press Enter to blur
  the cell, the other cells are immediately updated.

  I'm happy to supply annotations or answer questions.

  You might have already done this, but try compiling the code in
  PRETTY mode and run it using a browser that will display the
  Javascript console (I usually use Firefox + Firebug). See if you have
  any interesting runtime errors.

  Thinking further on your question, it occurs to me that you're asking:
  how do I update THE SAME CELL. I have to admit this caused some
  consternation. For a while, I considered sub-classing EditTextCell, an
  approach I abandoned as unworkable.

  The Predecessor column implements this same cell update behavior to
  correct data entry errors that might introduce a network cycle. The
  apropos code is in ActivityPresenter.onPredecessorChange()

  Demonstrate as follows:

  0) Select Load sample schedule under the Helpmenu
  1) Click a cell in the Predecessor column for a specific activity
  2) Enter a comma-separated list that includes that row's ID. For
  example, if you choose activity C,enter the string 1,3 as that
  activity's predecessor list. Press enter to blur the cell. Notice that
  the string ,3 is removed from the value.

 The action sequence is:
 0) Update the Data Provider list:
      dataProvider.setList(new ArrayListActivity(scheduler.getValues()));
      dataProvider.flush();  //Maybe not needed?

 1) Update the view
          cellTable.setRowData(list);
          cellTable.redraw();

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



Re: How to cache DTD in Eclipse for GWT 2.0

2011-09-01 Thread reda ABDI
Eclipse still freeze and is slow to give suggestions.

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



Re: Titanium Java Desktop Development with GWT4TiDesktop is almost HERE!

2011-09-01 Thread Alfredo Quiroga-Villamil
Hi Magno, Bom Dia!

There are a few differences with this approach:

1. You are developing with GWT4TiDesktop using Java and GWT with Titanium
Desktop under the hood. The application you are creating initially is no
different than if you had been writing a regular RIA web application. You
have access to rich libraries such as Sencha Ext-GWT, or you can use Flex
with the GWT4Flex product that we provide in this case. You can use other JS
libraries if you wanted to or widgets and expose them via JSNI for example
as well. This already gives you a good range of possibilities vs using for
example swing only.

2. Even though the application is developed and feels like it would be
intended for the web, you have access to the file system and many other
things just like you would have had if it would have been a regular java
desktop application.

3. The same application can now be used or deployed to a servlet container.
Customers can now have an offline and online version of the app that looks
and feels the same. The only difference is that in this case in web mode you
would not have for instance access to the OS and file system; unless of
course you use Flex with it and then you would be good there as well.

These are just some of the things that come to mind.

Obrigado,

Alfredo

On Thu, Sep 1, 2011 at 7:03 AM, Magno Machado magn...@gmail.com wrote:

 For curiosity, why would I use this if I can already develop desktop apps
 with Java?


 On Wed, Aug 31, 2011 at 11:52 PM, Alfredo Quiroga-Villamil 
 alfr...@emitrom.com wrote:

 Titanium Java Desktop Development with GWT4TiDesktop is almost HERE!

 http://www.emitrom.com/comment/4#comment-4

 Stay tuned for more updates.

 Regards,

 Alfredo

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




 --
 Magno Machado Paulo
 http://blog.magnomachado.com.br
 http://code.google.com/p/emballo/

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




-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

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



Re: GWT Date 'week of year' and 'day of week' problem

2011-09-01 Thread Tom Carchrae
For day of the week, you can use DateFormat.

For week of the year, you could look at the gap from Jan 1 to the date, look
at the difference and then adjust to ensure you are counting weeks.

Java Date is a mess.  An abomination.  But Calendar was even worse and you'd
never use it in performance code.  (curses to you who was born in the 0th
month!).  I'm predicting that GWT team will port Joda someday.  There's an
attempt called Goda - but it seems dead.

Most people I've spoken with have their own little library of hacks using
Date and DateFormat.

Tom

On Thu, Sep 1, 2011 at 2:09 AM, md matthias_deh...@gmx.de wrote:

 Thanks geert3 for your answer, and sorry for my late reply!


 I didn't found something helpfull and made (in the end) a workaround
 with a GWT RPC... so let the server do the stuff.
 Definetely not a good solution, but it works.


 Thanks alot for your help!



 On 23 Aug., 21:10, geert3 geert.coelm...@gmail.com wrote:
  There are some 3rd party Calendar replacements out there, search GWT
  Calendar Class.
  i tried one and it worked, but had massive performance hit on first use.
  Maybe today others are better but I managed to do without anyway.
  Perhaps silly but could you make a server call and let the server do it?

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



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



Re: Manipulate a div section in the html page

2011-09-01 Thread Jeffrey Chimene

On 8/31/2011 7:59 PM, Kevin Courtney wrote:

Jeff  Thomas,

Thanks to both of you, both of your solutions work great.

Jeff, from what I've played with it so far, I tend to agree with you
that I'll want to use a GWT widget to display to the user the final
output instead of this HTML in my home page.

But I think this is going to allow me to get that HTML in the home
page so the search engine robots will parse it.  Everything I've been
reading about SEO is that one of the major keys is to have HTML that
the robots will see.   Using GWT, we seem to have very little HTML for
the robots.

Thanks again for your help,

Kevin


Hi Kevin,

Search this list's archives for SEO topics. I don't do much with it, but 
there is a special URL syntax that will allow your application to return 
SEO results upon request.


SEO is a common topic here.

Cheers,
jec



On Aug 29, 11:55 am, Thomas Broyert.bro...@gmail.com  wrote:

On Monday, August 29, 2011 8:03:21 PM UTC+2, jchimene wrote:


HTML.wrap(Document.get().getElementById(theId)).setVisible(false);

I didn't follow the thread, but you should wrap an element in a widget just
to call a few methods. For setVisible, use the static method in UIObject:

UIObject.setVisible(Document.get().getElementById(theId), false);


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



Sorting CellTable data server-side

2011-09-01 Thread fabio.bozzo
I'm currently using a Gwt CellTable, bound to my GAE/Objectify backend
via RPC calls.

All right now! :-)

Then I want to sort columns, so I read
http://code.google.com/intl/it-IT/webtoolkit/doc/latest/DevGuideUiCellTable.html#columnSorting

The Async Remote sorting sections shows very well how to get sorting
into my AsyncDataProvider but... how can I retrieve the name of the
column the user wants to sort?

It shows this code: ColumnSortList sortList =
table.getColumnSortList();

But how can I get String names from that? I simply want to know
surname or soldDate, the name of the field the column is bound
to!
Then I will pass it to my rpc service, and use it to sort data server-
side query(...).order(field_name)

Am I missing something?

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



Iframe events

2011-09-01 Thread noach
I am using a native event previewer to detect if the user has pressed
certain keys. However, part of my interface contains an iframe
displaying another page. If the user has clicked inside the frame, key
presses events aren't previewed. Is there a way I can get the iframe
to foward events back to my app?

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



access local executable

2011-09-01 Thread pipehappy
Hi, all

I'm a latex user and once come across the latexlab project which use
gwt as its foundation. The apps contains a feature that can use local
installed executable (in latexlab case, it claims it can use local
install miktex. Though the apps shown on its site doesn't have this
feature functional). I guess this involve user input to certificate.
If this is the case, is the chrome browser that supports this feature
or something like html5? Thank you for your input and I'm new to web
develop, so bear with me.

Best

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



Re: Sorting CellTable data server-side

2011-09-01 Thread Thomas Broyer
That's probably the reason behind this recent change: 
http://code.google.com/p/google-web-toolkit/source/detail?r=10487

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



Is it still preferable to have HashMapString, Panel over MapString, Panel in GWT client side code?

2011-09-01 Thread Blackberet
thanks

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



No source code is available for type javax.xml.parsers.DocumentBuilderFactory

2011-09-01 Thread Vrushali Patil
Hi,

I am new to Java and GWT. I am trying to parse a xml, which I have
written as stringbuilder.

1) I tried using XMLParser.parse(xmlstring); but it gave a
DOMException tat string is crossing max length. Is there any way to
work around this.

2) I used DocumentBuilderFactory ... the code is as follows. It gives
the error as

No source code is available for type
javax.xml.parsers.DocumentBuilderFactory - It is some sort of
Inheritance issue. But I am unaware of what exactly inherit name i
should be using. Please guide.

- code
---
edu.xml.gwt.ibm.tutorialDemo1.client;

import java.io.IOException;
import java.io.InputStream;
import java.io.StringReader;

import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;


import com.google.gwt.core.client.EntryPoint;
import org.w3c.dom.Document;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;

/**
 * Entry point classes define codeonModuleLoad()/code.
 */
public class TutorialDemo1 implements EntryPoint {

xmlquery callquery = new xmlquery();
String xmlstring;
/**
 * This is the entry point method.
 */
public void onModuleLoad() {

xmlstring = callquery.xmlget_capabilities();
System.out.println(xmlstring);

DocumentBuilderFactory factory =
DocumentBuilderFactory.newInstance();
InputSource inStream = new InputSource();
inStream.setCharacterStream(new StringReader(xmlstring));
//doc = builder.parse(new
ByteArrayInputStream(xml.getBytes(UTF-8)));
try {
DocumentBuilder builder = factory.newDocumentBuilder();
try {
Document doc = builder.parse(inStream);

System.out.println();
} catch (SAXException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
} catch (ParserConfigurationException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
--- xml string return function
-

public String xmlget_capabilities(){

StringBuilder xmlquery = new StringBuilder() ;
xmlquery.append(?xml version='1.0' encoding='UTF-8'?
+ GetCapabilities 
xmlns='http://www.opengis.net/sos/1.0
+ ows:AcceptVersions
+ ows:Version1.0.0/ows:Version
+ /ows:AcceptVersions
+ ows:Sections
+ 
ows:SectionOperationsMetadata/ows:Section
+ 
ows:SectionServiceIdentification/ows:Section
+ ows:SectionServiceProvider/ows:Section
+ 
ows:SectionFilter_Capabilities/ows:Section
+ ows:SectionContents/ows:Section
+ /ows:Sections
+ /GetCapabilities);

return xmlquery.toString();

}

-

Thanks,
Vrushali

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



Seperating the hosting of the client and server

2011-09-01 Thread Sander Smith
I'm trying to seperate the client side of my GWT app (the JS files)
from the server side by hosting them in different places. So the
static JS is at www.host1.com and the Java web app stuff is at www.host2.com.
To communicate, I simply pass the fully qualified URL (http://
www.host2.com/...) into setServiceEntryPoint().

Things aren't working, and I don't know why. I've looked through the
documentation to see if this is allowed, and can't find anything that
says it's not. I have a gut feeling that this is violating some sort
of JS security issue, so I wanted to check before continuing.

Am I able to do what I want?

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



Re: Extra Outer ScrollPanel in Firefox

2011-09-01 Thread leslie
A beautiful thing happens.  The extra scroll bars go away and the
ListBox contains it's own vertical scroll bar which functions in the
expected and desired way.
Great stuff.  Michael I thank you very much.  This is a big help to
me.

On Aug 31, 11:53 pm, Michael Allan m...@zelea.com wrote:
  ListBox list = new ListBox();
  ScrollPanel scrollpanel = new ScrollPanel( list );
  VerticalPanel main = new VerticalPanel();
  main.add( scrollpanel );

 What happens if you drop the scroll panel, and just add the list box?

 --
 Michael Allan

 Toronto, +1 416-699-9528http://zelea.com/







 leslie wrote:
  Mac OS X 10.5
  Java 6
  GWT 2.3.0

  I'm having difficulty with my application rendering in Firefox.  I've
  created a ListBox that will contain names and I've placed it in a
  ScrollPanel.

  ListBox list = new ListBox();
  ScrollPanel scrollpanel = new ScrollPanel( list );
  VerticalPanel main = new VerticalPanel();
  main.add( scrollpanel );

  When the component appears in the Firefox browser, horizontal and the
  vertical scrollbars appear on some sort of outer component, as an
  extra ScrollPanel even before the list is populated with names.
  Moreover, when the listbox becomes populated, I see the proper
  Vertical scrollbar for the list box but the outer scrollbar remains.
  That is, I can see a properly configured ListBox within a ScrollPanel,
  within some form of unknown ScrollPanel.

   By contrast, In Safari I observe the desired behavior.  That is, the
  scroll bars do not appear until the list is populated with names.  At
  that time, the vertical bar appears and it functions in the desired
  way, scrolling the list so that the names become visible.  There are
  no other scroll bars other than what are expected.

  I've come across a thread somewhere that suggested I must resize the
  ListBox because it is too wide.  But too wide for what?  What is
  causing the extra ScrollPanel to appear in Firefox and how can I
  remove it?  Many thanks.

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



Re: Is it still preferable to have HashMapString, Panel over MapString, Panel in GWT client side code?

2011-09-01 Thread Paul Robinson

For anything going over the wire via RPC, yes.

For anything that stays within the client, it doesn't matter.

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



Re: Seperating the hosting of the client and server

2011-09-01 Thread Thomas Broyer


On Thursday, September 1, 2011 6:07:23 PM UTC+2, Sander Smith wrote:

 I'm trying to seperate the client side of my GWT app (the JS files) 
 from the server side by hosting them in different places. So the 
 static JS is at www.host1.com and the Java web app stuff is at 
 www.host2.com. 
 To communicate, I simply pass the fully qualified URL (http:// 
 www.host2.com/...) into setServiceEntryPoint(). 

 Things aren't working, and I don't know why.


Same Origin Policy
 

 I've looked through the 
 documentation to see if this is allowed, and can't find anything that 
 says it's not. I have a gut feeling that this is violating some sort 
 of JS security issue, so I wanted to check before continuing. 

 Am I able to do what I want?


If your HTML host page is on host1, then you won't be able to use GWT-RPC, 
RequestFactory or RequestBuilder to communicate with host2 (well, that's not 
entirely true, but if IE is to be supported, then consider it's simply not 
possible).

You can however deploy your HTML host page on host2 and your JS at host1. 
You'll have to use the xsiframe linker for your code to be loaded in the 
web page though, but it's as easy as adding a line to your gwt.xml:
add-linker name=xsiframe /

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



How to mock Listbox when testing the Presenter class?

2011-09-01 Thread BM
Presenter:
public interface Display  {
HasText ageTxtBox();
HasClickHandlers incrementButton();
}

View implements Presenter.Display interface:
@UiField Button incrementButton;
@UiField TextBox ageTxtBox;

@Override
public HasText ageTxtBox() {
  return ageTxtBox;
}

@Override
public HasClickHandlers incrementButton() {
  return incrementButton;
}

How do we do this for a Listbox in a view?

@UiField ListBox listBoxAdmin;

The methods on listBox I am using are:
addItem
getItemCount
getSelectedIndex
getItemText
getValue
removeItem
clear


How can I test my listbox functionality which is in Presenter with a
mock Listbox? What interface it need to implement?

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



How to mock Listbox when testing the Presenter class?

2011-09-01 Thread BM
Presenter:
public interface Display  {
HasText ageTxtBox();
HasClickHandlers incrementButton();
}

View implements Presenter.Display interface:
@UiField Button incrementButton;
@UiField TextBox ageTxtBox;

@Override
public HasText ageTxtBox() {
  return ageTxtBox;
}

@Override
public HasClickHandlers incrementButton() {
  return incrementButton;
}

How do we do this for a Listbox in a view?

@UiField ListBox listBoxAdmin;

The methods on listBox I am using are:
addItem
getItemCount
getSelectedIndex
getItemText
getValue
removeItem
clear


How can I test my listbox functionality which is in Presenter with a
mock Listbox? What interface it need to implement?

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



Changing image data of a canvas has not effect

2011-09-01 Thread omar.belkhodja
The following code has no effect. Any idea why ?

ImageData imageData = context2d.getImageData(0, 0, 100, 100);

for(int j = 0; j  100; j++)
for(int i = 0; i  100; i++)
imageData.setRedAt(255, i, j);


Thanks,
Omar

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



[ANN] Scala+GWT 0.1-M1 released

2011-09-01 Thread Grzegorz Kossakowski
Hello,

I'm excited to announce first milestone of Scala+GWT project.

Download (and then follow README instructions) from here:
http://goo.gl/Ym3xU

Release notes (included below) can be found here: http://goo.gl/H8san



Scala+GWT 0.1-M1


The first official milestone release from the Scala+GWT project.

This release consists of just samples packaged along with snapshot
of jars needed to build them. Those jars include our own version
of both GWT and Scala.

This release doesn't come with any official artifacts apart from the
tarball you can download from http://github.com/scalagwt/scalagwt-sample.

### What works

Samples show it the best. Here are some highlights:

  * Mixed Scala/Java projects work very well (for GWT-supported Java subset)
  * Most of Scala language constructs are supported
  * Most of Scala library code that makes sense in a browser context is
supported, including Scala collections

It's fair to say that we are not sure how far one can go with this release.
It might be that you can already
build something useful with what we already have. The only way to be sure is
start hacking!

### Known issues

  * Compilation is very, very slow.
  * `scala.immutable.{TreeMap, TreeSet}` are not supported due to various
bugs (thus sorted collections don't work)
  * many patterns in pattern matching logic are not supported (tough issue)
examples include
* pattern alternatives (`|`)
* guard patterns (`if` guard)
  * GWT's development mode is broken
  * We are compiling with all optimizations turned off. This results in a
slow and very large JavaScript code.

### Reporting issues

We appreciate feedback. If you find something that doesn't work (e.g.
crashes either Scala or GWT compiler)
or JavaScript gives you weird results we'd love to hear about it. The most
effective way of reporting issues
is to modify `Hello World` sample to show your problem. Exact steps are:

  1. Fork `scalagwt-sample` repo from here:
http://github.com/scalagwt/scalagwt-sample
  2. Clone it: `git clone git://
github.com/YOUR_USER_NAME/scalagwt-sample.git`http://github.com/YOUR_USER_NAME/scalagwt-sample.git
  3. Modify hello world sample located in
`src/com/google/gwt/sample/jribble/client`
  4. Commit and publish your example.
  5. File a ticket here: http://github.com/scalagwt/scalagwt-sample and
mention your
 fork while explaining your issue.

If you want to discuss your problem before reporting it, join
[scala...@googlegroups.com](http://groups.google.com/group/scalagwt).

### What if I don't know GWT?

That shouldn't be a big problem. You've got Scala source code for samples
that show basic functionality
and provides basic setup. You may want to start with channging hello world
sample, recompiling it and
testing in a browser.

### What if I don't know Scala?

You might still want to check out samples to see how they might look like in
other language than Java.
We'll be cutting a lot more of boilerplate code once GWT libraries and APIs
receive enough of Scala's
[pimp-love](http://www.artima.com/weblogs/viewpost.jsp?thread=179766).

### Need help? Want to discuss something?

Join us here: [scala...@googlegroups.com](
http://groups.google.com/group/scalagwt).


Happy playing!

-- 
Grzegorz Kossakowski

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



Re: Requestfactory : best practice for persisting updates with Locator

2011-09-01 Thread Dominik Steiner
Perhaps a small test case might better explain what problem i'm facing
with the delta's send from request factory to the locator class (the
fire() method is in order to do synchronous testing of the requests
sent)

@Test
public void testPersistAndUpdate() throws Exception {
SomeRequestContext addRequest = requestFactory.someRequest();
FooProxy fooProxyCreated = addRequest.create(FooProxy.class);
fooProxyCreated.setName(fooname);
BarProxy barProxy = addRequest.create(BarProxy.class);
barProxy.setName(barname);
fooProxyCreated.setBars(Arrays.asList(barProxy));

IntegerResponseProxy addResponse =
fire(addRequest.persist(fooProxyCreated));
assertEquals(null, addResponse.getErrormessage());
assertNotNull(addResponse.getValue());
Integer id = addResponse.getValue();

SomeRequestContext findRequest = requestFactory.someRequest();
FooProxy fooProxyFound = fire(findRequest.find(id).with(bars));

SomeRequestContext updateRequest = requestFactory.someRequest();
fooProxyFound = updateRequest.edit(fooProxyFound);
BarProxy bar = fooProxyFound.getBars().get(0);
bar.setName(newname);
IntegerResponseProxy updateResponse =
fire(updateRequest.persist(fooProxyFound));
assertEquals(null, updateResponse.getErrormessage());
assertEquals(id, updateResponse.getValue());
}


So on the server the service method just looks like this

public IntegerResponse persist(Foo foo)

and the
public class Foo{
   Integer id;
   String name;
   ListBar bars;
|

and Bar might have a composite id

public class Bar {
BarPK barPK;
}

public class BarPK{
   Integer fooId;
   String name;
}

When it is created all properties gets sent to the persist() method
and the full object can easily be persisted using hibernate. The
second time an update is occuring on that object the fooId will be
null as no changes have been made to that on the client evidently.
This makes working with the Foo foo object in the persist method quite
manual. And how would i differentiate if some null property is just
not sent because no update has occured or because it has been reset to
null? Is such a use case not supported by RF and i have to stick with
RPC?

Thanks for any hints

Dominik

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



Re: How to mock Listbox when testing the Presenter class?

2011-09-01 Thread Thomas Broyer
I'd highly encourage you to use the pattern from the MVP - part 2 article 
from the GWT doc, where the presenter itself implements an interface that 
the view calls back, rather than exposing the view through HasXxxHandlers 
and the like. It makes mocking so much painful! (having to mock 
HasXxxHandlers is a PITA compared to simply mocking your View interface, and 
capturing the presenter from the setPresenter method so you can call methods 
on it as if the view did it).

To answer your question, your view should expose the methods you use from 
the ListBox (and simply delegate them to the listbox); you shouldn't try to 
expose the listbox as an object from your view (because as you said, 
there's no matching interface). So you'll add those 7 methods to your view 
(possibly using a naming scheme such as getAdmin, setAdmin, etc.).
Also, instead of a ListBox, you could use a ValueListBox so you can directly 
push your model to your view, and get the selected object back from the 
view.

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



Aw: No source code is available for type javax.xml.parsers.DocumentBuilderFactory

2011-09-01 Thread Jens
In general you can only use Java classes on the client side (everything that 
is in your client and shared package) listed 
in: http://code.google.com/intl/de-DE/webtoolkit/doc/latest/RefJreEmulation.html

So you can not use most of the classes in your code on client side. 

You have to:
- use XMLParser 
(http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/xml/client/XMLParser.html)
- write your own client side string parser that converts the xml string to 
something you want to have 
- parse the XML on server side and ask the server for the information you 
need

I haven't used XMLParser yet but it seems to me that the xml string you want 
to parse isn't that long so I think it should work.

-- J.

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



Re: [gwt-contrib] [ANN] Scala+GWT 0.1-M1 released

2011-09-01 Thread Ray Ryan
Woo hoo!

On Thu Sep 01 09:26:47 GMT-700 2011, Grzegorz Kossakowski wrote:

 Hello,

 I'm excited to announce first milestone of Scala+GWT project.

 Download (and then follow README instructions) from here:
 http://goo.gl/Ym3xUhttp://www.google.com/url?sa=Dq=http%3A%2F%2Fgoo.gl%2FYm3xU

 Release notes (included below) can be found here: 
 http://goo.gl/H8sanhttp://www.google.com/url?sa=Dq=http%3A%2F%2Fgoo.gl%2FH8san



 Scala+GWT 0.1-M1
 

 The first official milestone release from the Scala+GWT project.

 This release consists of just samples packaged along with snapshot
 of jars needed to build them. Those jars include our own version
 of both GWT and Scala.

 This release doesn't come with any official artifacts apart from the
 tarball you can download from 
 http://github.com/scalagwt/scalagwt-samplehttp://www.google.com/url?sa=Dq=http%3A%2F%2Fgithub.com%2Fscalagwt%2Fscalagwt-sample
 .

 ### What works

 Samples show it the best. Here are some highlights:

   * Mixed Scala/Java projects work very well (for GWT-supported Java
 subset)
   * Most of Scala language constructs are supported
   * Most of Scala library code that makes sense in a browser context is
 supported, including Scala collections

 It's fair to say that we are not sure how far one can go with this release.
 It might be that you can already
 build something useful with what we already have. The only way to be sure
 is start hacking!

 ### Known issues

   * Compilation is very, very slow.
   * `scala.immutable.{TreeMap, TreeSet}` are not supported due to various
 bugs (thus sorted collections don't work)
   * many patterns in pattern matching logic are not supported (tough issue)
 examples include
 * pattern alternatives (`|`)
 * guard patterns (`if` guard)
   * GWT's development mode is broken
   * We are compiling with all optimizations turned off. This results in a
 slow and very large JavaScript code.

 ### Reporting issues

 We appreciate feedback. If you find something that doesn't work (e.g.
 crashes either Scala or GWT compiler)
 or JavaScript gives you weird results we'd love to hear about it. The most
 effective way of reporting issues
 is to modify `Hello World` sample to show your problem. Exact steps are:

   1. Fork `scalagwt-sample` repo from here:
 http://github.com/scalagwt/scalagwt-samplehttp://www.google.com/url?sa=Dq=http%3A%2F%2Fgithub.com%2Fscalagwt%2Fscalagwt-sample
   2. Clone it: `git clone git://
 github.com/YOUR_USER_NAME/scalagwt-sample.git`http://www.google.com/url?sa=Dq=http%3A%2F%2Fgithub.com%2FYOUR_USER_NAME%2Fscalagwt-sample.git
   3. Modify hello world sample located in
 `src/com/google/gwt/sample/jribble/client`
   4. Commit and publish your example.
   5. File a ticket here: 
 http://github.com/scalagwt/scalagwt-samplehttp://www.google.com/url?sa=Dq=http%3A%2F%2Fgithub.com%2Fscalagwt%2Fscalagwt-sample
  and
 mention your
  fork while explaining your issue.

 If you want to discuss your problem before reporting it, join
 [scala...@googlegroups.comhttp://www.google.com/url?sa=Dq=mailto%3Ascalagwt%40googlegroups.com
 ](http://groups.google.com/group/scalagwt).

 ### What if I don't know GWT?

 That shouldn't be a big problem. You've got Scala source code for samples
 that show basic functionality
 and provides basic setup. You may want to start with channging hello world
 sample, recompiling it and
 testing in a browser.

 ### What if I don't know Scala?

 You might still want to check out samples to see how they might look like
 in other language than Java.
 We'll be cutting a lot more of boilerplate code once GWT libraries and APIs
 receive enough of Scala's
 [pimp-love](http://www.artima.com/weblogs/viewpost.jsp?thread=179766http://www.google.com/url?sa=Dq=http%3A%2F%2Fwww.artima.com%2Fweblogs%2Fviewpost.jsp%3Fthread%3D179766
 ).

 ### Need help? Want to discuss something?

 Join us here: 
 [scala...@googlegroups.comhttp://www.google.com/url?sa=Dq=mailto%3Ascalagwt%40googlegroups.com
 ](http://groups.google.com/group/scalagwt).


 Happy playing!

 --
 Grzegorz Kossakowski

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

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



Re: How to mock Listbox when testing the Presenter class?

2011-09-01 Thread BM
My ListBox is inside a custom composite widget I have created. I am
using this widget in my different views in my application.

Just to elaborate more on this widget which I created, it is a Dialog
Box which has Left ListBox and Right ListBox. There are 4 buttons on
the center which allows to move items from Left to Right or Right to
Left. They can be moved one at a time or all at once. So when I
created this ListBox using GWT Designer as a New-Windows Builder-
UIBinder - DialogBox I don't get any presenter or activity with that.
Plus I don't want an activity simply because I don't want a new place.
I am opening this custom dialog box within my same place and I don't
want to write the processing code of moving items from either side
inside my current activity because then If my two different views want
to use this custom dialog box I have to duplicate the code. The whole
idea of this Widget was to have self-contained code.
The problem I see with GWT designer is all the event handling code
goes inside UIHandler method which is still inside my
CustomWidget.java file.

How do I then test my widget not inside GWTTestcase?

I introduced a presenter to use classic MVP approach and move my
processing logic inside presenter that way I can test my presenter my
mocking GWT widgets as my own custom widgets.

MVP-Part 2 deals with Activities and Places which works fine when you
are using GWT widgets inside a View. But when you have a re-usable
widget you created I don't want to assign new place and activity for
every custom widget I create. Because I really want to test my widget
and not the view here. See the difference here?

Unless I am missing something here..



On Sep 1, 11:40 am, Thomas Broyer t.bro...@gmail.com wrote:
 I'd highly encourage you to use the pattern from the MVP - part 2 article
 from the GWT doc, where the presenter itself implements an interface that
 the view calls back, rather than exposing the view through HasXxxHandlers
 and the like. It makes mocking so much painful! (having to mock
 HasXxxHandlers is a PITA compared to simply mocking your View interface, and
 capturing the presenter from the setPresenter method so you can call methods
 on it as if the view did it).

 To answer your question, your view should expose the methods you use from
 the ListBox (and simply delegate them to the listbox); you shouldn't try to
 expose the listbox as an object from your view (because as you said,
 there's no matching interface). So you'll add those 7 methods to your view
 (possibly using a naming scheme such as getAdmin, setAdmin, etc.).
 Also, instead of a ListBox, you could use a ValueListBox so you can directly
 push your model to your view, and get the selected object back from the
 view.

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



Re: No source code is available for type javax.xml.parsers.DocumentBuilderFactory

2011-09-01 Thread Vrushali Patil
Hi I tried using XMLParser as u suggested. But getting this error.

The code is
public void onModuleLoad() {

xmlstring = callquery.xmlget_capabilities();
System.out.println(xmlstring);
System.out.println(xmlstring.
length());


xmldoc = XMLParser.parse(xmlstring); *\\ Error at this line*
Element root = xmldoc.getDocumentElement();
System.out.println(Element = + root.getNodeName());
}

See Development Mode for details.
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:193)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
at java.lang.Thread.run(Unknown Source)
Caused by: com.google.gwt.xml.client.impl.DOMParseException: Failed to
parse: 1.
at
com.google.gwt.xml.client.impl.XMLParserImpl.parse(XMLParserImpl.java:280)
at com.google.gwt.xml.client.XMLParser.parse(XMLParser.java:47)
at
edu.xml.gwt.ibm.tutorialDemo1.client.TutorialDemo1.onModuleLoad(TutorialDemo1.java:61)
... 9 more
Caused by: com.google.gwt.core.client.JavaScriptException: (Error): line 1,
char 94:The character :GetCapabilities b  more 11 ...
com.google.gwt.xml.client.impl.XMLParserImpl.parse(XMLParserImpl.java:278)
at
com.google.gwt.xml.client.impl.XMLParserImplIE6.parseImpl(XMLParserImplIE6.java)
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:132)
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:237)
value. attribute an in used be cannot 1.
at
com.google.gwt.xml.client.impl.XMLParserImpl.parse(XMLParserImpl.java:280)
at com.google.gwt.xml.client.XMLParser.parse(XMLParser.java:47)
at
edu.xml.gwt.ibm.tutorialDemo1.client.TutorialDemo1.onModuleLoad(TutorialDemo1.java:61)
*


Caused by: com.google.gwt.core.client.JavaScriptException: (Error): line 1,
char 94:The character *
*1. at
com.google.gwt.xml.client.impl.XMLParserImpl.parse(XMLParserImpl.java:280)
at com.google.gwt.xml.client.XMLParser.parse(XMLParser.java:47) at
edu.xml.gwt.ibm.tutorialDemo1.client.TutorialDemo1.onModuleLoad(TutorialDemo1.java:61)
... 9 more Caused by: com.google.gwt.core.client.JavaScriptException:
(Error): line 1, char 94:The character :GetCapabilities

Vrushali
*


On Thu, Sep 1, 2011 at 10:16 PM, Jens jens.nehlme...@gmail.com wrote:

 In general you can only use Java classes on the client side (everything
 that is in your client and shared package) listed in:
 http://code.google.com/intl/de-DE/webtoolkit/doc/latest/RefJreEmulation.html

 So you can not use most of the classes in your code on client side.

 You have to:
 - use XMLParser (
 http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/xml/client/XMLParser.html
 )
 - write your own client side string parser that converts the xml string to
 something you want to have
 - parse the XML on server side and ask the server for the information you
 need

 I haven't used XMLParser yet but it seems to me that the xml string you
 want to parse isn't that long so I think it should work.

 -- J.

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


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



Re: Access static file from onModuleLoad() method

2011-09-01 Thread AThinerCoin
Thank you for your help.  This helped me get my source code to find my 
config.xml file.

For anyone else who has a similar problem, I also had to make a request for 
the file, then use the getText method, then I could read the file.  I 
could not just use the file based on the file's path.  See the example 
below.

try {
String fn = GWT.getModuleBaseURL() + config.xml;
RequestBuilder requestBuilder = new RequestBuilder(
RequestBuilder.GET, fn);
try {
requestBuilder.sendRequest(null, new RequestCallback() {
public void onError(Request request, Throwable 
exception) {
GWT.log(failed file reading, exception);
}

public void onResponseReceived(Request request,
Response response) {
result = response.getText();
Config graphConfig = new Config(result);
callToMethodThatUsesGraphConfig(graphConfig);
}
});
} catch (RequestException e) {
GWT.log(failed file reading, e);
}
} catch (Exception e) {
e.printStackTrace();
}
}

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



Why doesn't HasScrollHandlers extend HasHandlers?

2011-09-01 Thread Jim Douglas
This feels like a dumb question.  Is this an oversight, or is there a
reason why HasScrollHandlers is the only Has.*Handlers interface that
does not extend HasHandlers?

http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/event/dom/client/HasScrollHandlers.html
http://www.google.com/codesearch#A1edwVHBClQ/user/src/com/google/gwt/event/dom/client/HasScrollHandlers.java

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



Re: No source code is available for type javax.xml.parsers.DocumentBuilderFactory

2011-09-01 Thread Vrushali Patil
Hi I tried using XMLParser as u suggested. But getting this error.

The code is 
public void onModuleLoad() {
 
xmlstring = callquery.xmlget_capabilities();
System.out.println(xmlstring);
System.out.println(xmlstring.length());

 
xmldoc = XMLParser.parse(xmlstring); *\\ Error at this line*
Element root = xmldoc.getDocumentElement();
System.out.println(Element = + root.getNodeName());   
}
 
See Development Mode for details.
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
at 
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:193)
at 
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510)
at 
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
at java.lang.Thread.run(Unknown Source)
Caused by: com.google.gwt.xml.client.impl.DOMParseException: Failed to 
parse: 1.
at 
com.google.gwt.xml.client.impl.XMLParserImpl.parse(XMLParserImpl.java:280)
at com.google.gwt.xml.client.XMLParser.parse(XMLParser.java:47)
at 
edu.xml.gwt.ibm.tutorialDemo1.client.TutorialDemo1.onModuleLoad(TutorialDemo1.java:61)
... 9 more
Caused by: com.google.gwt.core.client.JavaScriptException: (Error): line 1, 
char 94:The character :GetCapabilities b  more 11 ... 
com.google.gwt.xml.client.impl.XMLParserImpl.parse(XMLParserImpl.java:278) 
at 
com.google.gwt.xml.client.impl.XMLParserImplIE6.parseImpl(XMLParserImplIE6.java)
 
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
 
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269) 
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) 
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:132) 
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:237)
 
value. attribute an in used be cannot 1.
at 
com.google.gwt.xml.client.impl.XMLParserImpl.parse(XMLParserImpl.java:280)
at com.google.gwt.xml.client.XMLParser.parse(XMLParser.java:47)
at 
edu.xml.gwt.ibm.tutorialDemo1.client.TutorialDemo1.onModuleLoad(TutorialDemo1.java:61)
*


Caused by: com.google.gwt.core.client.JavaScriptException: (Error): line 1, 
char 94:The character *
*1. at 
com.google.gwt.xml.client.impl.XMLParserImpl.parse(XMLParserImpl.java:280) 
at com.google.gwt.xml.client.XMLParser.parse(XMLParser.java:47) at 
edu.xml.gwt.ibm.tutorialDemo1.client.TutorialDemo1.onModuleLoad(TutorialDemo1.java:61)
 
... 9 more Caused by: com.google.gwt.core.client.JavaScriptException: 
(Error): line 1, char 94:The character :GetCapabilities*

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



Re: How to mock Listbox when testing the Presenter class?

2011-09-01 Thread BM
I think I got it what you saying. I got caught up with MVP-Part 2 in
terms of activities and places and kind of lost the major
understanding of what it is ultimately trying to tell you to avoid
HasXxxHandlers.

So I have one question here.. If my presenter implements the interface
which view calls back and how does presenter will get hold of my
listbox defined in the view?

On Sep 1, 11:40 am, Thomas Broyer t.bro...@gmail.com wrote:
 I'd highly encourage you to use the pattern from the MVP - part 2 article
 from the GWT doc, where the presenter itself implements an interface that
 the view calls back, rather than exposing the view through HasXxxHandlers
 and the like. It makes mocking so much painful! (having to mock
 HasXxxHandlers is a PITA compared to simply mocking your View interface, and
 capturing the presenter from the setPresenter method so you can call methods
 on it as if the view did it).

 To answer your question, your view should expose the methods you use from
 the ListBox (and simply delegate them to the listbox); you shouldn't try to
 expose the listbox as an object from your view (because as you said,
 there's no matching interface). So you'll add those 7 methods to your view
 (possibly using a naming scheme such as getAdmin, setAdmin, etc.).
 Also, instead of a ListBox, you could use a ValueListBox so you can directly
 push your model to your view, and get the selected object back from the
 view.

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



Re: How to mock Listbox when testing the Presenter class?

2011-09-01 Thread Thomas Broyer
It won't; it only talks to the view through the Display interface (or 
possibly if it's really complex, through sub-objects, but try as hard as 
possible to keep them seen as interfaces or mockable objects –i.e. objects 
that you can extend to remove all JSNI dependency– or you'll need a, 
sluggish, GWTTestCase).

(to quickly answer your previous message, which I didn't read 'til the end, 
it doesn't really matter how your view is implemented, what matters is how 
your presenter talks to it, the granularity of the protocol/contract 
impacting how much code you can unit-test without a GWTTestCase: the more 
code in the presenter, the more code can be tested without GWTTestCase, but 
also the more complex the presenter, which makes it less readable and 
maintainable)

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



Re: Access static file from onModuleLoad() method

2011-09-01 Thread kim young ill
it's running in browser, so u have to access it via http, the servers
filesystem is not available


On Thu, Sep 1, 2011 at 8:01 PM, AThinerCoin athinerc...@gmail.com wrote:

 Thank you for your help.  This helped me get my source code to find my
 config.xml file.

 For anyone else who has a similar problem, I also had to make a request for
 the file, then use the getText method, then I could read the file.  I
 could not just use the file based on the file's path.  See the example
 below.

 try {
 String fn = GWT.getModuleBaseURL() + config.xml;
 RequestBuilder requestBuilder = new RequestBuilder(
 RequestBuilder.GET, fn);
 try {
 requestBuilder.sendRequest(null, new RequestCallback() {
 public void onError(Request request, Throwable
 exception) {
 GWT.log(failed file reading, exception);
 }

 public void onResponseReceived(Request request,
 Response response) {
 result = response.getText();
 Config graphConfig = new Config(result);
 callToMethodThatUsesGraphConfig(graphConfig);
 }
 });
 } catch (RequestException e) {
 GWT.log(failed file reading, e);
 }
 } catch (Exception e) {
 e.printStackTrace();

 }
 }

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

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


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



mailto: links in Google Chrome

2011-09-01 Thread melody
I am trying to implement mailto: links in my application. When I use
the mailto: link with the target attribute as shown below, the browser
opens the email program fine but closes my GWT program by moving the
browser to about:blank page.

a href='mailto:myem...@mail.com'Send Email/a

The same link works fine in Firefox without closing my GWT application/
page.


If I use the following link with the TARGET attribute, the email
program is opened correctly but Google Chrome annoyingly opens a new
tab with the URL about:blank

a href='mailto:myem...@mail.com' target='_blank'Send Email/a

Again the same links work fine in Firefox.

Is there a way around this Google Chrome problem with email links?

Thanks,

Melody

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



Re: Is it still preferable to have HashMapString, Panel over MapString, Panel in GWT client side code?

2011-09-01 Thread Blackberet
But does the GWT compiler generate extra code to convert from Map to 
HashMap?

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



Re: Is it still preferable to have HashMapString, Panel over MapString, Panel in GWT client side code?

2011-09-01 Thread Colin Alworth
In general the compiler will select the most specific type it can - if you 
write
MapString, Panel map = new HashMapString, Panel();
it will change that to
HashMapString, Panel map = new HashMapString, Panel();
as it is clear that the object can only be a HashMap at that location. In 
other cases it may not be able to make that promotion, but there is no 
'extra code' to convert from one to the other, as HashMap implements Map, 
and Map's methods may then be invoked on HashMap.

The one slight cost that could exist would be when the compiler attempts to 
turn instance methods into static methods, as to avoid the small cost for 
dynamic dispatch. It is worth noting that making this change throughout your 
codebase is unlikely to cause a significant size difference, as Widget has a 
HandlerManager, and HandlerManager has an EventBus, usually of type 
SimpleEventBus, which has a Map in it, where the actual value is a HashMap. 
Thus both classes are necessary (assuming you use any Widget or Widget 
subclass in your app), as is the ability to refer to a HashMap as a Map.

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



Re: Inherited exceptions in GWT-RPC

2011-09-01 Thread Colin Alworth
On Thursday, August 25, 2011 3:09:22 PM UTC-5, Ryan wrote:

 However, if I declare AException in the client, but throw either of 
 the two child classes in the server, GWT wraps it in an 
 InvocationException. 


This is the key to your issue - if the client can't de-serialize it (because 
the code only exists where the server can see it, not the client), it can't 
allow it to be thrown to the client. 

Unless I've misunderstood, and all three are declared in the client package, 
but only AException is declared as part of the RPC method signature. If that 
is the case, this should work as you expect. A few other things could B, C 
from being available to be deserialized, such as being blacklisted in your 
module file, or not having default (i.e. no-arg) constructors, things that 
would affect any other DTO expected to work with RPC. 

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



Locking bottom panel of SplitLayoutPanel to bottom of viewing area

2011-09-01 Thread Rike255
The basic design of the page I'm building is a SplitLayoutPanel with a
north and center panel.  The north panel has the body of the page
(TabLayoutPanel and ScrollPanel) and the center panel holds a
HorizontalPanel with textbox+buttons.

What I'm trying to do is have the page load with the center panel
taking up a certain part of the window (say 40px) every time and if I
resize the browser window the center panel stays the same height so
the north panel either grows or shrinks with the window.  The center
panel will always take up only the bottom 40px of the browser window.

I'm not very strong in css so this is proving way over my head haha.
Any thoughts?

Thanks!
Ryan

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



Re: mailto: links in Google Chrome

2011-09-01 Thread karim duran
Hi Melody,

In my opinion you shouldn't use target attribute with an email link. Target
attribute tells the browser how it should manage the link (e.g in the same
window, in the parent window, in a new window). It's appropriate for Web
browsing, not for email.

When the browser meet a email link mailto, it just asks the system to open
your client mail software as you said.

I agree with you, it's strange that you are redirect to about:blank page. I
can't reproduce this incident in a simple exemple. But my Google Chrome
version is old.

Does this pb happen in dev/test mode ? Or in deploiement mode ?
May be you can try to use a GWT link instead of hard coded HTML mailto link.

I hope it helps.

Regards

Karim Duran

2011/9/1 melody pedzi...@gmail.com

 I am trying to implement mailto: links in my application. When I use
 the mailto: link with the target attribute as shown below, the browser
 opens the email program fine but closes my GWT program by moving the
 browser to about:blank page.

 a href='mailto:myem...@mail.com'Send Email/a

 The same link works fine in Firefox without closing my GWT application/
 page.


 If I use the following link with the TARGET attribute, the email
 program is opened correctly but Google Chrome annoyingly opens a new
 tab with the URL about:blank

 a href='mailto:myem...@mail.com' target='_blank'Send Email/a

 Again the same links work fine in Firefox.

 Is there a way around this Google Chrome problem with email links?

 Thanks,

 Melody

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



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



Re: JFileChooser

2011-09-01 Thread IHateSoda
Thanks.

But with the FileUpload widget, You can just browse a file.

I want to select a folder (no file) and get the full path.




On Aug 31, 5:38 pm, Jim Douglas jdou...@basis.com wrote:
 http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/g...

 On Aug 31, 4:17 pm, IHateSoda mguillaum...@gmail.com wrote:







  Hello,

  I need to browse folder in my GWT application, I tried to implement an
  applet (Gwt-AI, HTML applet = new HTML()applet.setHTML(applet bla
  bla bla) but not success. Neither Gwt-AI (it seems that doesn't
  work with gwt 2.3, I got a deferred binding error) nor the other
  solution (no errors but no results).

  Someone has a solution for browse a folder with any methods.

  Any help would be greatly 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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: JFileChooser

2011-09-01 Thread Jim Douglas
Not possible.

http://www.google.com/search?q=fakepath

On Sep 1, 4:05 pm, IHateSoda mguillaum...@gmail.com wrote:
 Thanks.

 But with the FileUpload widget, You can just browse a file.

 I want to select a folder (no file) and get the full path.

 On Aug 31, 5:38 pm, Jim Douglas jdou...@basis.com wrote:







 http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/g...

  On Aug 31, 4:17 pm, IHateSoda mguillaum...@gmail.com wrote:

   Hello,

   I need to browse folder in my GWT application, I tried to implement an
   applet (Gwt-AI, HTML applet = new HTML()applet.setHTML(applet bla
   bla bla) but not success. Neither Gwt-AI (it seems that doesn't
   work with gwt 2.3, I got a deferred binding error) nor the other
   solution (no errors but no results).

   Someone has a solution for browse a folder with any methods.

   Any help would be greatly 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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: JFileChooser

2011-09-01 Thread IHateSoda
and with flash solution, java applet solution or others ? already
tried with java applet, not successful.

On Sep 1, 4:10 pm, Jim Douglas jdou...@basis.com wrote:
 Not possible.

 http://www.google.com/search?q=fakepath

 On Sep 1, 4:05 pm, IHateSoda mguillaum...@gmail.com wrote:







  Thanks.

  But with the FileUpload widget, You can just browse a file.

  I want to select a folder (no file) and get the full path.

  On Aug 31, 5:38 pm, Jim Douglas jdou...@basis.com wrote:

  http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/g...

   On Aug 31, 4:17 pm, IHateSoda mguillaum...@gmail.com wrote:

Hello,

I need to browse folder in my GWT application, I tried to implement an
applet (Gwt-AI, HTML applet = new HTML()applet.setHTML(applet bla
bla bla) but not success. Neither Gwt-AI (it seems that doesn't
work with gwt 2.3, I got a deferred binding error) nor the other
solution (no errors but no results).

Someone has a solution for browse a folder with any methods.

Any help would be greatly 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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



GDDBR11

2011-09-01 Thread Alisson Prestes
Hi,

Is anybody from this list coming to Google Developer Day Brazil this year?

Alisson Prestes
www.google.com/profiles/javalisson

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



Editor and RequestFactory

2011-09-01 Thread Brian Chapman
I have a question about using the RequestFactoryEditorDriver. I am trying to 
use the editor with request factory on the client side. On the server side I 
am using Objectify which is modeled after the 
listWidgethttp://code.google.com/p/listwidget/example. I have a 
ProjectRequest class (implementing RequestContext) that 
defines a save method. 

My question is how do I invoke the save method from the editor. It appears 
that after a driver.flush() I only have a RequestContext object to work 
with. That object only has the fire method, but I cannot tell it to use my 
save(project) method. When I invoke the requestContext.fire() method after 
doing a .flush(), the request factory appears to contact the server but 
nothing is persisted. Are there implied methods that the editor or 
RequestFactory is expecting to be implemented on the server? Should I be 
using the SimpleBeanEditorDriver instead?

My Editor: 

public class ProjectEditor extends Composite implements EditorProjectProxy 
{
interface Binder extends UiBinderHTMLPanel, ProjectEditor { }
private static Binder uiBinder = GWT.create(Binder.class);
@UiField
TextBox name;
public ProjectEditor() {
  initWidget(uiBinder.createAndBindUi(this));
}
}

 My workflow class:

public class ProjectAddPresenter extends
PresenterProjectAddPresenter.MyView, ProjectAddPresenter.MyProxy {
...
interface Driver extends
SimpleBeanEditorDriverProjectProxy, ProjectEditor {}
@Inject private CommonRequestFactory commonRf;
private Driver driver;
@Inject
public ProjectAddPresenter(final EventBus eventBus,
final MyView view,
final MyProxy proxy) {
super(eventBus, view, proxy);
this.view = view;
view.setPresetner(this);
driver = GWT.create(Driver.class);
}
...
public void edit() {
ProjectRequest request = commonRf.projectRequest();
ProjectProxy project = request.create(ProjectProxy.class);
ProjectEditor pe = view.getProjectEditor();
driver.initialize(pe);
driver.edit(project, request);
}
public void createProject(ProjectEditor projectEditor) {
RequestContext request = driver.flush();
request.fire(new ReceiverVoid() {
...
});
}
...
}

My ProjectRequest class:

@Service(value = ProjectDao.class, locator = DaoServiceLocator.class)
public interface ProjectRequest extends RequestContext {
  ...
  RequestVoid save(ProjectProxy project);
  ...
}

 Thank you.
 

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



Re: GDDBR11

2011-09-01 Thread Magno Machado
I'm likely to go, but not sure yet

On Thu, Sep 1, 2011 at 9:45 PM, Alisson Prestes javalis...@gmail.comwrote:

 Hi,

 Is anybody from this list coming to Google Developer Day Brazil this year?

 Alisson Prestes
 www.google.com/profiles/javalisson

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




-- 
Magno Machado Paulo
http://blog.magnomachado.com.br
http://code.google.com/p/emballo/

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



Re: Conditional CSS Updates

2011-09-01 Thread rth
Submitted as Issue 6754.

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

On Aug 31, 3:21 pm, Rylan ry...@icottrell.com wrote:
 +1

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



Re: Bindery package refactoring?

2011-09-01 Thread Michael Allan
Ed Bras wrote:
  2.3.0 does not have LegacyHandlerWrapper.
 Mine does. In the gwt-user-2.3.0.jar I find:
 com.google.gwt.event.shared.LegacyHandlerWrapper

I guess it's just missing from the API docs, then.

M

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



[gwt-contrib] Re: Scripts and configuration to upload GWT bits to Maven repos (issue1520810)

2011-09-01 Thread t . broyer

This is a big step forward but:

 - none of the GAE POMs have dependencies, which is very strange.

 - many artifacts are already in Central, geronimo-* ones under the
org.apache.geronimo.specs groupId (e.g.
http://search.maven.org/#artifactdetails%7Corg.apache.geronimo.specs%7Cgeronimo-jta_1.1_spec%7C1.1.1%7Cjar
), jdo2-api at javax.jdo
(http://search.maven.org/#artifactdetails%7Cjavax.jdo%7Cjdo2-api%7C2.3-eb%7Cjar
) and datanucleus-* at org.datanucleus; so unless GAE requires modified
artifacts, there's no need to deploy them under com.google.appengine.

 - the push-* scripts call other scripts which are missing from the
review


http://gwt-code-reviews.appspot.com/1520810/diff/1/maven/poms/gwt/gwt-servlet/pom-template.xml
File maven/poms/gwt/gwt-servlet/pom-template.xml (right):

http://gwt-code-reviews.appspot.com/1520810/diff/1/maven/poms/gwt/gwt-servlet/pom-template.xml#newcode15
maven/poms/gwt/gwt-servlet/pom-template.xml:15: /project
Shouldn't there be dependencies on validation-api and org.json? even if
optionaltrue/optional (as they're only needed if you use
RequestFactory)

http://gwt-code-reviews.appspot.com/1520810/diff/1/maven/poms/gwt/gwt-soyc-vis/pom-template.xml
File maven/poms/gwt/gwt-soyc-vis/pom-template.xml (right):

http://gwt-code-reviews.appspot.com/1520810/diff/1/maven/poms/gwt/gwt-soyc-vis/pom-template.xml#newcode12
maven/poms/gwt/gwt-soyc-vis/pom-template.xml:12:
artifactIdgwt-soyc-vis/artifactId
I thought gwt-soyc-vis had disappeared?

http://gwt-code-reviews.appspot.com/1520810/diff/1/maven/poms/gwt/gwt-user/pom-template.xml
File maven/poms/gwt/gwt-user/pom-template.xml (right):

http://gwt-code-reviews.appspot.com/1520810/diff/1/maven/poms/gwt/gwt-user/pom-template.xml#newcode20
maven/poms/gwt/gwt-user/pom-template.xml:20: /dependency
indentation

http://gwt-code-reviews.appspot.com/1520810/diff/1/maven/poms/gwt/gwt-user/pom-template.xml#newcode27
maven/poms/gwt/gwt-user/pom-template.xml:27: /dependencies
org.json is missing (required for RequestFactory in DevMode or VM mode
–for unit tests–)

http://gwt-code-reviews.appspot.com/1520810/diff/1/maven/scripts/push-gae.sh
File maven/scripts/push-gae.sh (right):

http://gwt-code-reviews.appspot.com/1520810/diff/1/maven/scripts/push-gae.sh#newcode9
maven/scripts/push-gae.sh:9: source lib-gae.sh
Those scripts are missing.

http://gwt-code-reviews.appspot.com/1520810/diff/1/maven/scripts/push-gae.sh#newcode23
maven/scripts/push-gae.sh:23: maven-gae gaeVersion \
What is this maven-gae command?

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

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


[gwt-contrib] Re: Scripts and configuration to upload GWT bits to Maven repos (issue1520810)

2011-09-01 Thread t . broyer

Oh, also, how about the requestfactory-* artifacts?


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

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


[gwt-contrib] Re: Fix a bug where header/footer events are not fired with the correct parent. (issue1534808)

2011-09-01 Thread jlabanca

LGTM

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

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


[gwt-contrib] Re: Scripts and configuration to upload GWT bits to Maven repos (issue1520810)

2011-09-01 Thread rchandia

This is certainly WIP and several bits and pieces are still not there.
I'll keep updating as we go.

The scripts are incomplete. We also need to add the new libraries
created in 2.4. finally, I forgot to remove the GAE related files, those
are handled and uploaded by their respective projects.


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

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


[gwt-contrib] Re: Scripts and configuration to upload GWT bits to Maven repos (issue1520810)

2011-09-01 Thread rchandia

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

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


[gwt-contrib] Re: Scripts and configuration to upload GWT bits to Maven repos (issue1520810)

2011-09-01 Thread rchandia

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

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


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

2011-09-01 Thread stephen . haberman

Thinking about it some more; it would be the easiest if GWT just started
serializing final fields across the board, and only skipped them if they
were marked with a GwtTransient.

That is basically what the current patch does (except for ignoring sets
on the client-side).

Anything else requires making the server-side aware of the
rpc.final.serialize value. Maybe that is easier than I'm imagining.

Anyway, it'd be a breaking change, so perhaps it's not an option, but I
just thought I'd mention it.

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

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


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

2011-09-01 Thread John Tamplin
On Thu, Sep 1, 2011 at 11:56 AM, stephen.haber...@gmail.com wrote:

 Thinking about it some more; it would be the easiest if GWT just started
 serializing final fields across the board, and only skipped them if they
 were marked with a GwtTransient.


 That is basically what the current patch does (except for ignoring sets
 on the client-side).


 Anything else requires making the server-side aware of the

rpc.final.serialize value. Maybe that is easier than I'm imagining.



Anyway, it'd be a breaking change, so perhaps it's not an option, but I
 just thought I'd mention it.


There is a risk that existing users were relying on current behavior to not
send sensitive data in final fields across the wire, and changing it without
some form of opt-in seems a security risk.

It could be adding an inherits tag that sets a config property or
annotating service interfaces/etc, but it needs to be opt-in.

If the server needs to behave differently depending on this setting, then
either it should be included in the RPC payload or in some deploy artifact,
such as the serialization policy file.

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

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

[gwt-contrib] Re: Scripts and configuration to upload GWT bits to Maven repos (issue1520810)

2011-09-01 Thread rchandia

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

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


[gwt-contrib] [ANN] Scala+GWT 0.1-M1 released

2011-09-01 Thread Grzegorz Kossakowski
Hello,

I'm excited to announce first milestone of Scala+GWT project.

Download (and then follow README instructions) from here:
http://goo.gl/Ym3xU

Release notes (included below) can be found here: http://goo.gl/H8san



Scala+GWT 0.1-M1


The first official milestone release from the Scala+GWT project.

This release consists of just samples packaged along with snapshot
of jars needed to build them. Those jars include our own version
of both GWT and Scala.

This release doesn't come with any official artifacts apart from the
tarball you can download from http://github.com/scalagwt/scalagwt-sample.

### What works

Samples show it the best. Here are some highlights:

  * Mixed Scala/Java projects work very well (for GWT-supported Java subset)
  * Most of Scala language constructs are supported
  * Most of Scala library code that makes sense in a browser context is
supported, including Scala collections

It's fair to say that we are not sure how far one can go with this release.
It might be that you can already
build something useful with what we already have. The only way to be sure is
start hacking!

### Known issues

  * Compilation is very, very slow.
  * `scala.immutable.{TreeMap, TreeSet}` are not supported due to various
bugs (thus sorted collections don't work)
  * many patterns in pattern matching logic are not supported (tough issue)
examples include
* pattern alternatives (`|`)
* guard patterns (`if` guard)
  * GWT's development mode is broken
  * We are compiling with all optimizations turned off. This results in a
slow and very large JavaScript code.

### Reporting issues

We appreciate feedback. If you find something that doesn't work (e.g.
crashes either Scala or GWT compiler)
or JavaScript gives you weird results we'd love to hear about it. The most
effective way of reporting issues
is to modify `Hello World` sample to show your problem. Exact steps are:

  1. Fork `scalagwt-sample` repo from here:
http://github.com/scalagwt/scalagwt-sample
  2. Clone it: `git clone git://
github.com/YOUR_USER_NAME/scalagwt-sample.git`http://github.com/YOUR_USER_NAME/scalagwt-sample.git
  3. Modify hello world sample located in
`src/com/google/gwt/sample/jribble/client`
  4. Commit and publish your example.
  5. File a ticket here: http://github.com/scalagwt/scalagwt-sample and
mention your
 fork while explaining your issue.

If you want to discuss your problem before reporting it, join
[scala...@googlegroups.com](http://groups.google.com/group/scalagwt).

### What if I don't know GWT?

That shouldn't be a big problem. You've got Scala source code for samples
that show basic functionality
and provides basic setup. You may want to start with channging hello world
sample, recompiling it and
testing in a browser.

### What if I don't know Scala?

You might still want to check out samples to see how they might look like in
other language than Java.
We'll be cutting a lot more of boilerplate code once GWT libraries and APIs
receive enough of Scala's
[pimp-love](http://www.artima.com/weblogs/viewpost.jsp?thread=179766).

### Need help? Want to discuss something?

Join us here: [scala...@googlegroups.com](
http://groups.google.com/group/scalagwt).


Happy playing!

-- 
Grzegorz Kossakowski

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

[gwt-contrib] [google-web-toolkit] r10605 committed - Add GWT favicon.ico to default project...

2011-09-01 Thread codesite-noreply

Revision: 10605
Author:   fre...@google.com
Date: Thu Sep  1 06:57:08 2011
Log:  Add GWT favicon.ico to default project

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

Added:
  
/trunk/user/src/com/google/gwt/user/tools/templates/sample/_warFolder_/favicon.icobin


===
--- /dev/null   
+++  
/trunk/user/src/com/google/gwt/user/tools/templates/sample/_warFolder_/favicon.icobin	 
Thu Sep  1 06:57:08 2011

Binary file, no diff available.

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


Re: [gwt-contrib] [ANN] Scala+GWT 0.1-M1 released

2011-09-01 Thread Ray Ryan
Woo hoo!

On Thu Sep 01 09:26:47 GMT-700 2011, Grzegorz Kossakowski wrote:

 Hello,

 I'm excited to announce first milestone of Scala+GWT project.

 Download (and then follow README instructions) from here:
 http://goo.gl/Ym3xUhttp://www.google.com/url?sa=Dq=http%3A%2F%2Fgoo.gl%2FYm3xU

 Release notes (included below) can be found here: 
 http://goo.gl/H8sanhttp://www.google.com/url?sa=Dq=http%3A%2F%2Fgoo.gl%2FH8san



 Scala+GWT 0.1-M1
 

 The first official milestone release from the Scala+GWT project.

 This release consists of just samples packaged along with snapshot
 of jars needed to build them. Those jars include our own version
 of both GWT and Scala.

 This release doesn't come with any official artifacts apart from the
 tarball you can download from 
 http://github.com/scalagwt/scalagwt-samplehttp://www.google.com/url?sa=Dq=http%3A%2F%2Fgithub.com%2Fscalagwt%2Fscalagwt-sample
 .

 ### What works

 Samples show it the best. Here are some highlights:

   * Mixed Scala/Java projects work very well (for GWT-supported Java
 subset)
   * Most of Scala language constructs are supported
   * Most of Scala library code that makes sense in a browser context is
 supported, including Scala collections

 It's fair to say that we are not sure how far one can go with this release.
 It might be that you can already
 build something useful with what we already have. The only way to be sure
 is start hacking!

 ### Known issues

   * Compilation is very, very slow.
   * `scala.immutable.{TreeMap, TreeSet}` are not supported due to various
 bugs (thus sorted collections don't work)
   * many patterns in pattern matching logic are not supported (tough issue)
 examples include
 * pattern alternatives (`|`)
 * guard patterns (`if` guard)
   * GWT's development mode is broken
   * We are compiling with all optimizations turned off. This results in a
 slow and very large JavaScript code.

 ### Reporting issues

 We appreciate feedback. If you find something that doesn't work (e.g.
 crashes either Scala or GWT compiler)
 or JavaScript gives you weird results we'd love to hear about it. The most
 effective way of reporting issues
 is to modify `Hello World` sample to show your problem. Exact steps are:

   1. Fork `scalagwt-sample` repo from here:
 http://github.com/scalagwt/scalagwt-samplehttp://www.google.com/url?sa=Dq=http%3A%2F%2Fgithub.com%2Fscalagwt%2Fscalagwt-sample
   2. Clone it: `git clone git://
 github.com/YOUR_USER_NAME/scalagwt-sample.git`http://www.google.com/url?sa=Dq=http%3A%2F%2Fgithub.com%2FYOUR_USER_NAME%2Fscalagwt-sample.git
   3. Modify hello world sample located in
 `src/com/google/gwt/sample/jribble/client`
   4. Commit and publish your example.
   5. File a ticket here: 
 http://github.com/scalagwt/scalagwt-samplehttp://www.google.com/url?sa=Dq=http%3A%2F%2Fgithub.com%2Fscalagwt%2Fscalagwt-sample
  and
 mention your
  fork while explaining your issue.

 If you want to discuss your problem before reporting it, join
 [scala...@googlegroups.comhttp://www.google.com/url?sa=Dq=mailto%3Ascalagwt%40googlegroups.com
 ](http://groups.google.com/group/scalagwt).

 ### What if I don't know GWT?

 That shouldn't be a big problem. You've got Scala source code for samples
 that show basic functionality
 and provides basic setup. You may want to start with channging hello world
 sample, recompiling it and
 testing in a browser.

 ### What if I don't know Scala?

 You might still want to check out samples to see how they might look like
 in other language than Java.
 We'll be cutting a lot more of boilerplate code once GWT libraries and APIs
 receive enough of Scala's
 [pimp-love](http://www.artima.com/weblogs/viewpost.jsp?thread=179766http://www.google.com/url?sa=Dq=http%3A%2F%2Fwww.artima.com%2Fweblogs%2Fviewpost.jsp%3Fthread%3D179766
 ).

 ### Need help? Want to discuss something?

 Join us here: 
 [scala...@googlegroups.comhttp://www.google.com/url?sa=Dq=mailto%3Ascalagwt%40googlegroups.com
 ](http://groups.google.com/group/scalagwt).


 Happy playing!

 --
 Grzegorz Kossakowski

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

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

Re: [gwt-contrib] [ANN] Scala+GWT 0.1-M1 released

2011-09-01 Thread Allahbaksh Asadullah
I think this is great. And we all should try using it and contribute back.
Regards,
Allahbaksh

On Thu, Sep 1, 2011 at 11:03 PM, Ray Ryan rj...@google.com wrote:

 Woo hoo!


 On Thu Sep 01 09:26:47 GMT-700 2011, Grzegorz Kossakowski wrote:

 Hello,

 I'm excited to announce first milestone of Scala+GWT project.

 Download (and then follow README instructions) from here:
 http://goo.gl/Ym3xUhttp://www.google.com/url?sa=Dq=http%3A%2F%2Fgoo.gl%2FYm3xU

 Release notes (included below) can be found here: 
 http://goo.gl/H8sanhttp://www.google.com/url?sa=Dq=http%3A%2F%2Fgoo.gl%2FH8san



 Scala+GWT 0.1-M1
 

 The first official milestone release from the Scala+GWT project.

 This release consists of just samples packaged along with snapshot
 of jars needed to build them. Those jars include our own version
 of both GWT and Scala.

 This release doesn't come with any official artifacts apart from the
 tarball you can download from 
 http://github.com/scalagwt/scalagwt-samplehttp://www.google.com/url?sa=Dq=http%3A%2F%2Fgithub.com%2Fscalagwt%2Fscalagwt-sample
 .

 ### What works

 Samples show it the best. Here are some highlights:

   * Mixed Scala/Java projects work very well (for GWT-supported Java
 subset)
   * Most of Scala language constructs are supported
   * Most of Scala library code that makes sense in a browser context is
 supported, including Scala collections

 It's fair to say that we are not sure how far one can go with this
 release. It might be that you can already
 build something useful with what we already have. The only way to be sure
 is start hacking!

 ### Known issues

   * Compilation is very, very slow.
   * `scala.immutable.{TreeMap, TreeSet}` are not supported due to various
 bugs (thus sorted collections don't work)
   * many patterns in pattern matching logic are not supported (tough
 issue) examples include
 * pattern alternatives (`|`)
 * guard patterns (`if` guard)
   * GWT's development mode is broken
   * We are compiling with all optimizations turned off. This results in a
 slow and very large JavaScript code.

 ### Reporting issues

 We appreciate feedback. If you find something that doesn't work (e.g.
 crashes either Scala or GWT compiler)
 or JavaScript gives you weird results we'd love to hear about it. The most
 effective way of reporting issues
 is to modify `Hello World` sample to show your problem. Exact steps are:

   1. Fork `scalagwt-sample` repo from here:
 http://github.com/scalagwt/scalagwt-samplehttp://www.google.com/url?sa=Dq=http%3A%2F%2Fgithub.com%2Fscalagwt%2Fscalagwt-sample
   2. Clone it: `git clone git://
 github.com/YOUR_USER_NAME/scalagwt-sample.git`http://www.google.com/url?sa=Dq=http%3A%2F%2Fgithub.com%2FYOUR_USER_NAME%2Fscalagwt-sample.git
   3. Modify hello world sample located in
 `src/com/google/gwt/sample/jribble/client`
   4. Commit and publish your example.
   5. File a ticket here: 
 http://github.com/scalagwt/scalagwt-samplehttp://www.google.com/url?sa=Dq=http%3A%2F%2Fgithub.com%2Fscalagwt%2Fscalagwt-sample
  and
 mention your
  fork while explaining your issue.

 If you want to discuss your problem before reporting it, join
 [scala...@googlegroups.comhttp://www.google.com/url?sa=Dq=mailto%3Ascalagwt%40googlegroups.com
 ](http://groups.google.com/group/scalagwt).

 ### What if I don't know GWT?

 That shouldn't be a big problem. You've got Scala source code for samples
 that show basic functionality
 and provides basic setup. You may want to start with channging hello world
 sample, recompiling it and
 testing in a browser.

 ### What if I don't know Scala?

 You might still want to check out samples to see how they might look like
 in other language than Java.
 We'll be cutting a lot more of boilerplate code once GWT libraries and
 APIs receive enough of Scala's
 [pimp-love](http://www.artima.com/weblogs/viewpost.jsp?thread=179766http://www.google.com/url?sa=Dq=http%3A%2F%2Fwww.artima.com%2Fweblogs%2Fviewpost.jsp%3Fthread%3D179766
 ).

 ### Need help? Want to discuss something?

 Join us here: 
 [scala...@googlegroups.comhttp://www.google.com/url?sa=Dq=mailto%3Ascalagwt%40googlegroups.com
 ](http://groups.google.com/group/scalagwt).


 Happy playing!

 --
 Grzegorz Kossakowski

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

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


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

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

2011-09-01 Thread Stephen Haberman

 There is a risk that existing users were relying on current behavior
 to not send sensitive data in final fields across the wire

Agreed, that is the worst case scenario.

 such as the serialization policy file.

Yeah, my concern would be that the policy file is still somewhat
optional, right? At least personally I end up occasionally using the
legacy policy because I don't keep policy files across builds.

I suppose we could use the policy file if available, otherwise
default to the existing behavior.

- Stephen

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


Re: [gwt-contrib] [ANN] Scala+GWT 0.1-M1 released

2011-09-01 Thread Stephen Haberman

 Woo hoo!

In that regard, I'd encourage any GWT contributors interested in the
project to come lurk on the scalagwt list.

Greg sits next to the Scala guys at typesafe, but, other than Lex, we
don't have much GWT-side representation.

We could alternatively bring up questions and issues here in
gwt-contrib, but historically have generally kept to ourselves.

- Stephen

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


[gwt-contrib] less name mangling

2011-09-01 Thread Stephen Haberman
Hi,

One of the challenges we hit with scalagwt was source -
internal/binary name conversion being hueristic. Greg started a
prior discussion about this, with the summary basically being yeah,
it's a heuristic, and yeah, it's a problem.

To get scalagwt working in the least-hacky-way possible, I ended up
refactoring a lot of the source/internal name handling. We're concerned
it might be more changes to GWT core than you guys would be willing to
accept, so I'd like to outline my approach and see what you think.

If okay'd, it could potentially even be merged in prior to scalagwt, as
a separate/orthogonal cleanup of GWT. Which would probably make the
review process easier all around.

Anyway, the crux of the issue was BinaryName.toSourceName and friends. I
basically tracked down find-references on those and killed as many
as I could. I was mostly successful, except for deferring bindings,
which is still done by source names that are lossly converted from
internal names.

Per the last discussion, solving this problem really just requires
keeping two maps--one by source, one by internal or binary, and
then being able to look up either as needed.

Serendipitously, having two maps was mostly already being done, in
CompilationStateBuilder and TypeOracle. Only JProgram needed a
new/extra map.

So, the changes are, briefly:

1) Keying CompilationStateBuilder's allValidClasses by internal name
   (that is what most clients had already)

2) Changed CompiledClass.getSourceName to be done deterministically by
   probing instead of name mangling

https://github.com/stephenh/scalagwt-gwt/compare/stephenh:master...stephenh:scalagwt#L9R114

https://github.com/stephenh/scalagwt-gwt/compare/stephenh:master...stephenh:scalagwt#L5R105

It uses the inner class names as reported by ASM, which is stored in
CollectClassData:

https://github.com/stephenh/scalagwt-gwt/compare/stephenh:master...stephenh:scalagwt#L17R158

3) Adding methods to TypeOracle to do lookups by non-source names:

https://github.com/stephenh/scalagwt-gwt/compare/stephenh:master...stephenh:scalagwt#diff-2

This is probably the most controversial change. However, many clients of
TypeOracle were doing:

findType(InternalName.toSourceName(...))

So, TypeOracle was actively being used to do lookups by non-source
names, it was just not explicit in the API and something clients were
doing by hand. Adding the methods that I did allows clients to pass in
the names they have as in (be in internal/whatever) and TypeOracle will
handle the lookup deterministically (it has two (pre-existing) maps, one
by source, and one by internal).

findTypeBySourceOrBinaryName is particularly odd, but that is what
CompilingClassLoader needs:

https://github.com/stephenh/scalagwt-gwt/compare/stephenh:master...stephenh:scalagwt#L42R248

3) TypeOracleMediator lends it by-internal map to TypeOracle (which has
   a by-source map), so that TypeOracle has both maps.

https://github.com/stephenh/scalagwt-gwt/compare/stephenh:master...stephenh:scalagwt#L16R351

4) JProgram gets a new map and requires the TypeOracle to look
up types by binary name to populate this new source name map.

https://github.com/stephenh/scalagwt-gwt/compare/stephenh:master...stephenh:scalagwt#L32R1038

---

So, in summary, yeah, this is a lot of changes. But a lot of name
mangling is gone and we've been using this in scalagwt with more success
than we had before.

I'd be glad to answer any questions, comments, concerns about the
approach. Obviously I'd really like to get it to the point of being
acceptable to GWT upstream (either the name cleanup by itself or
eventually with the rest of scalagwt).

Thanks,
Stephen

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


[gwt-contrib] [google-web-toolkit] r10606 committed - Added POM snippet needed for Eclipse Indigo

2011-09-01 Thread codesite-noreply

Revision: 10606
Author:   drfibona...@google.com
Date: Thu Sep  1 12:19:29 2011
Log:  Added POM snippet needed for Eclipse Indigo
http://code.google.com/p/google-web-toolkit/source/detail?r=10606

Modified:
 /wiki/RequestFactoryInterfaceValidation.wiki

===
--- /wiki/RequestFactoryInterfaceValidation.wikiFri Aug 26 12:09:28 2011
+++ /wiki/RequestFactoryInterfaceValidation.wikiThu Sep  1 12:19:29 2011
@@ -86,3 +86,38 @@
 /executions
   /plugin
 }}}
+
+In Eclipse 3.7 (Indigo), the following additional POM snippet is needed:
+
+{{{
+
+pluginManagement
+  plugins
+!--This plugin's configuration is used to store Eclipse m2e  
settings only. It has no influence on the Maven build itself.--

+plugin
+  groupIdorg.eclipse.m2e/groupId
+  artifactIdlifecycle-mapping/artifactId
+  version1.0.0/version
+  configuration
+lifecycleMappingMetadata
+  pluginExecutions
+pluginExecution
+  pluginExecutionFilter
+groupIdorg.codehaus.mojo/groupId
+artifactIdexec-maven-plugin/artifactId
+versionRange[1.2,)/versionRange
+goals
+  goalexec/goal
+/goals
+  /pluginExecutionFilter
+  action
+execute /
+  /action
+/pluginExecution
+  /pluginExecutions
+/lifecycleMappingMetadata
+  /configuration
+/plugin
+  /plugins
+/pluginManagement
+}}}

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


[gwt-contrib] [google-web-toolkit] r10607 committed - Fix a bug where header/footer events are not fired with the correct pa...

2011-09-01 Thread codesite-noreply

Revision: 10607
Author:   pengzhu...@google.com
Date: Thu Sep  1 10:10:30 2011
Log:  Fix a bug where header/footer events are not fired with the  
correct parent.


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

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

Modified:
 /trunk/user/src/com/google/gwt/user/cellview/client/AbstractCellTable.java

===
---  
/trunk/user/src/com/google/gwt/user/cellview/client/AbstractCellTable.java	 
Wed Aug 31 08:59:55 2011
+++  
/trunk/user/src/com/google/gwt/user/cellview/client/AbstractCellTable.java	 
Thu Sep  1 10:10:30 2011

@@ -1744,7 +1744,7 @@
 .getHeader(footerParent);
 if (header != null  cellConsumesEventType(header.getCell(),  
eventType)) {

   Context context = new Context(0, col, header.getKey());
-  header.onBrowserEvent(context, cellParent, event);
+  header.onBrowserEvent(context, headerParent, event);
 }
   }

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


[gwt-contrib] Convert DynaTableRF to use maven. Clean up the docs in the other two (issue1537803)

2011-09-01 Thread rjrjr

Reviewers: drfibonacci,

Description:
Convert DynaTableRF to use maven. Clean up the docs in the other two
mvn projects a tiny bit.


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

Affected files:
  D eclipse/samples/DynaTableRf/.checkstyle
  D eclipse/samples/DynaTableRf/.classpath
  D eclipse/samples/DynaTableRf/.factorypath
  D eclipse/samples/DynaTableRf/.project
  D eclipse/samples/DynaTableRf/DynaTableRf-gwtc.launch
  D eclipse/samples/DynaTableRf/DynaTableRf.launch
  A samples/dynatablerf/README-MAVEN.txt
  D samples/dynatablerf/build.xml
  A samples/dynatablerf/pom.xml
  D samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/COPYING
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/DynaTableRf.gwt.xml
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/DynaTableRf.java
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/DynaTableRf.ui.xml
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/ErrorDialog.java
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/ErrorDialog.ui.xml
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/FavoritesManager.java
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/PersonEditorWorkflow.java
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/PersonEditorWorkflow.ui.xml
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/common.css
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/events/EditPersonEvent.java
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/events/FilterChangeEvent.java
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/events/MarkFavoriteEvent.java
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/widgets/AddressEditor.java
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/widgets/AddressEditor.ui.xml
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/widgets/CellTablePatch.css
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/widgets/DataGridPatch.css
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/widgets/DayCheckBox.java
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/widgets/DayFilterWidget.java
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/widgets/DayFilterWidget.ui.xml
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/widgets/FavoritesWidget.java
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/widgets/FavoritesWidget.ui.xml
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/widgets/MentorSelector.java
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/widgets/MentorSelector.ui.xml
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/widgets/NameLabel.java
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/widgets/PersonEditor.java
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/widgets/PersonEditor.ui.xml
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/widgets/ScheduleEditor.java
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/widgets/ScheduleEditor.ui.xml
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/widgets/SummaryWidget.java
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/widgets/SummaryWidget.ui.xml
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/widgets/TimeSlotListWidget.java
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/widgets/TimeSlotListWidget.ui.xml
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/widgets/ZipPlusFourBox.java
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/domain/Address.java
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/domain/Person.java
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/domain/Schedule.java
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/domain/TimeSlot.java
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/server/AddressFuzzer.java
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/server/PersonFuzzer.java
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/server/PersonSource.java
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/server/ScheduleFuzzer.java
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/server/ScheduleLocator.java
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/server/ScheduleService.java
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/server/ScheduleServiceLocator.java
  D  
samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/server/ScheduleSource.java
  D  

[gwt-contrib] [google-web-toolkit] r10608 committed - Created wiki page to replace README-MAVEN.txt as well as collect links...

2011-09-01 Thread codesite-noreply

Revision: 10608
Author:   drfibona...@google.com
Date: Thu Sep  1 14:38:04 2011
Log:  Created wiki page to replace README-MAVEN.txt as well as collect  
links to community best practices over time.

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

Added:
 /wiki/WorkingWithMaven.wiki

===
--- /dev/null
+++ /wiki/WorkingWithMaven.wiki Thu Sep  1 14:38:04 2011
@@ -0,0 +1,64 @@
+#summary Notes on working with GWT, Maven, and Google Plugin for Eclipse
+
+This page is intended to serve as the canonical reference for working with  
Maven in the latest GWT and GPE releases. New releases of 3rd-party  
projects like Eclipse don't necessarily correspond to GWT releases, hence  
the need for a place to publish new notes independent of a release.

+
+wiki:toc /
+
+= Maven GWT Plugin =
+In order to include GWT in a Maven POM, you'll want  
[http://mojo.codehaus.org/gwt-maven-plugin/ Maven GWT Plugin], a  
third-party project with its own community support.

+
+= Sample Projects =
+The easiest way to get a GWT POM going is to snag one from of the GWT  
Maven sample projects below. There are currently issues with the  
gwt-maven-plugin archetypes, so a good starter POM is the best way to go  
until those issues are resolved.

+
+The GWT team maintains two sample projects using Maven in GWT trunk. These  
are

+
+ *  
[http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/expenses/  
Expenses sample]
+ *  
[http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/mobilewebapp/  
Mobile Web app sample]

+
+Several other Maven samples are available from the GWT community:
+
+ * [http://code.google.com/p/listwidget/ listwidget (App Engine,  
Objectify)]
+ * [https://bitbucket.org/gardellajuanpablo/gwt-sample/wiki/Home  
gwt-sample (Spring, JPA2)]

+
+= Using Maven with Google Plugin for Eclipse =
+[http://code.google.com/eclipse/index.html Google Plugin for Eclipse]  
(GPE) makes it easy to import Maven projects using GWT and App Engine. To  
get started, first
+[http://code.google.com/eclipse/docs/getting_started.html install GPE] and  
the additional Eclipse plugins required for your version of Eclipse:

+
+== Eclipse 3.5 (Galileo) and 3.6 (Helios) ==
+ # Install m2eclipse from update site  
http://m2eclipse.sonatype.org/sites/m2e
+ # Install m2e-extras from update site  
http://m2eclipse.sonatype.org/sites/m2e-extras

+
+== Eclipse Indigo Java IDE (*not* Java EE) ==
+ # Install m2e-wtp from update site  
http://download.jboss.org/jbosstools/updates/m2eclipse-wtp. Only one  
feature is required:

+ ** Maven Integration for WTP
+
+== Eclipse Indigo Java EE IDE ==
+ # Install m2e-wtp from update site  
http://download.jboss.org/jbosstools/updates/m2eclipse-wtp. The following  
features are required:

+ ** Maven Integration for Eclipse
+ ** Maven Integration for WTP
+
+After installing GPE and the required plugins for your version of Eclipse,  
you're ready to work with a GWT Maven project.

+
+== Configure a Maven project in Eclipse ==
+To configure an existing GWT Maven project, simply choose File | Import |  
Existing Maven project in Eclipse and browse to the project's pom.xml file.  
Google Plugin for Eclipse will automatically configure the project source  
folders and the GWT and App Engine SDKs if present in the POM. You can then  
run the project using Run as | Web application or by running Maven from the  
command line or the project's Maven menu.

+
+== Troubleshooting ==
+If you have problems importing a Maven project with Google Plugin for  
Eclipse, verify the following:
+ * You have installed the correct Maven helper plugins above for your  
version of Eclipse

+ * You have installed the most recent Google Plugin for Eclipse
+
+If a project has been imported correctly, you should see the following:
+ * Under project properties, Google  Web Toolkit, the Use Google Web  
toolkit box should be checked and Use specific SDK should point to GWT  
in your local Maven repository
+ * Under project properties, Google  Web Application, the This project  
has a WAR directory box should be checked and WAR directory should be  
src/main/webapp
+ * src folders should appear as Eclipse source folders in Package Explorer  
(except src/main/webapp, which will show as a normal folder)

+
+If project import fails due to a POM error, fix the error and retry the  
import as follows:

+ # Remove the project in Eclipse (but don't delete source folders)
+ # At the command line in the directory containing the POM, run mvn clean  
eclipse:clean

+ # Try the import again
+
+In most cases, after making a POM change in Eclipse, you should be able to  
right-click on the project, then click Maven  Update project configuration  
and/or Update project dependencies. However, the steps above are the surest  
way to pick up all changes.

+
+= Advanced topics =
+
+== Using a Maven multi-project with GWT ==

--

Re: [gwt-contrib] less name mangling

2011-09-01 Thread Grzegorz Kossakowski
On 1 September 2011 20:52, Stephen Haberman stephen.haber...@gmail.comwrote:

 So, in summary, yeah, this is a lot of changes. But a lot of name
 mangling is gone and we've been using this in scalagwt with more success
 than we had before.

 I'd be glad to answer any questions, comments, concerns about the
 approach. Obviously I'd really like to get it to the point of being
 acceptable to GWT upstream (either the name cleanup by itself or
 eventually with the rest of scalagwt).


I'd prefer this problem to be addressed in separate CL independent from of
our effort.

At the time I was looking into this problem I was coming to similar
conclusions as Stephen did. They never materialized into clean patches,
though. This time it seems like we have a chance to fix it which would be
great.

-- 
Grzegorz Kossakowski

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

[gwt-contrib] [google-web-toolkit] r10609 committed - Edited wiki page WorkingWithMaven through web user interface.

2011-09-01 Thread codesite-noreply

Revision: 10609
Author:   drfibona...@google.com
Date: Thu Sep  1 14:59:35 2011
Log:  Edited wiki page WorkingWithMaven through web user interface.
http://code.google.com/p/google-web-toolkit/source/detail?r=10609

Modified:
 /wiki/WorkingWithMaven.wiki

===
--- /wiki/WorkingWithMaven.wiki Thu Sep  1 14:38:04 2011
+++ /wiki/WorkingWithMaven.wiki Thu Sep  1 14:59:35 2011
@@ -60,5 +60,66 @@
 In most cases, after making a POM change in Eclipse, you should be able to  
right-click on the project, then click Maven  Update project configuration  
and/or Update project dependencies. However, the steps above are the surest  
way to pick up all changes.


 = Advanced topics =
+
+== POM changes needed for Eclipse Indigo ==
+Due to changes in the m2e Eclipse plugin for Indigo (3.7), plugin  
execution no longer happens directly, but rather must be configured through  
m2e's lifecycle-mapping plugin. In order for a plugin to be invoked within  
Eclipse, you must define a pluginExecution in the lifecycle-mapping plugin  
corresponding to the execution tag in the plugin definition itself. To  
achieve this, add a new section within the build section of the POM. The  
sample below shows the definitions needed to support maven-gae-plugin,  
maven-datanucleus-plugin (also for App Engine), and exec-maven-plugin,  
which is used by the new RequestFactoryInterfaceValidator.

+
+{{{
+pluginManagement
+  plugins
+!--This plugin's configuration is used to store Eclipse m2e  
settings only. It has no influence on the Maven build itself.--

+plugin
+  groupIdorg.eclipse.m2e/groupId
+  artifactIdlifecycle-mapping/artifactId
+  version1.0.0/version
+  configuration
+lifecycleMappingMetadata
+  pluginExecutions
+pluginExecution
+  pluginExecutionFilter
+groupIdorg.datanucleus/groupId
+artifactIdmaven-datanucleus-plugin/artifactId
+versionRange[1.1.4,)/versionRange
+goals
+  goalenhance/goal
+/goals
+  /pluginExecutionFilter
+  action
+ignore/ignore
+  /action
+/pluginExecution
+pluginExecution
+  pluginExecutionFilter
+groupIdnet.kindleit/groupId
+artifactIdmaven-gae-plugin/artifactId
+versionRange[0.7.3,)/versionRange
+goals
+  goalunpack/goal
+/goals
+  /pluginExecutionFilter
+  action
+execute /
+  /action
+/pluginExecution
+pluginExecution
+  pluginExecutionFilter
+groupIdorg.codehaus.mojo/groupId
+artifactIdexec-maven-plugin/artifactId
+versionRange[1.2,)/versionRange
+goals
+  goalexec/goal
+/goals
+  /pluginExecutionFilter
+  action
+execute /
+  /action
+/pluginExecution
+  /pluginExecutions
+/lifecycleMappingMetadata
+  /configuration
+/plugin
+  /plugins
+/pluginManagement
+}}}

 == Using a Maven multi-project with GWT ==

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


[gwt-contrib] [google-web-toolkit] r10610 committed - Replaced Expenses sample with Dynatablerf

2011-09-01 Thread codesite-noreply

Revision: 10610
Author:   drfibona...@google.com
Date: Thu Sep  1 15:01:26 2011
Log:  Replaced Expenses sample with Dynatablerf
http://code.google.com/p/google-web-toolkit/source/detail?r=10610

Modified:
 /wiki/WorkingWithMaven.wiki

===
--- /wiki/WorkingWithMaven.wiki Thu Sep  1 14:59:35 2011
+++ /wiki/WorkingWithMaven.wiki Thu Sep  1 15:01:26 2011
@@ -12,8 +12,9 @@

 The GWT team maintains two sample projects using Maven in GWT trunk. These  
are


- *  
[http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/expenses/  
Expenses sample]
  *  
[http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/mobilewebapp/  
Mobile Web app sample]
+ *  
[http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/dynatablerf/  
DynaTable RequestFactory sample]

+

 Several other Maven samples are available from the GWT community:

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


[gwt-contrib] Re: Convert DynaTableRF to use maven. Clean up the docs in the other two (issue1537803)

2011-09-01 Thread rjrjr

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

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


[gwt-contrib] [google-web-toolkit] r10611 committed - Edited wiki page WorkingWithMaven through web user interface.

2011-09-01 Thread codesite-noreply

Revision: 10611
Author:   rj...@google.com
Date: Thu Sep  1 15:02:10 2011
Log:  Edited wiki page WorkingWithMaven through web user interface.
http://code.google.com/p/google-web-toolkit/source/detail?r=10611

Modified:
 /wiki/WorkingWithMaven.wiki

===
--- /wiki/WorkingWithMaven.wiki Thu Sep  1 15:01:26 2011
+++ /wiki/WorkingWithMaven.wiki Thu Sep  1 15:02:10 2011
@@ -22,6 +22,7 @@
  * [https://bitbucket.org/gardellajuanpablo/gwt-sample/wiki/Home  
gwt-sample (Spring, JPA2)]


 = Using Maven with Google Plugin for Eclipse =
+a name=eclipse/
 [http://code.google.com/eclipse/index.html Google Plugin for Eclipse]  
(GPE) makes it easy to import Maven projects using GWT and App Engine. To  
get started, first
 [http://code.google.com/eclipse/docs/getting_started.html install GPE] and  
the additional Eclipse plugins required for your version of Eclipse:


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


[gwt-contrib] [google-web-toolkit] r10612 committed - Added a note about configuration when using Maven with GPE

2011-09-01 Thread codesite-noreply

Revision: 10612
Author:   drfibona...@google.com
Date: Thu Sep  1 15:15:48 2011
Log:  Added a note about configuration when using Maven with GPE
http://code.google.com/p/google-web-toolkit/source/detail?r=10612

Modified:
 /wiki/RequestFactoryInterfaceValidation.wiki

===
--- /wiki/RequestFactoryInterfaceValidation.wikiThu Sep  1 12:19:29 2011
+++ /wiki/RequestFactoryInterfaceValidation.wikiThu Sep  1 15:15:48 2011
@@ -55,9 +55,8 @@

 An optional client-only mode will produce the metadata required by  
`RequestFactorySource` clients using only the shared interfaces.  This mode  
is activated by adding a `-client` flag before the output location.


-== maven builds ==
-
-The following recipe can be used to run the ValidationTool as a  
post-compilation step.

+== Maven builds ==
+Use the following recipe to run the !ValidationTool as a post-compilation  
step. If you are using Maven with Google Plugin for Eclipse (see  
WorkingWithMaven), you do not need to configure Eclipse with the  
requestfactory-apt.jar as described above. The !ValidationTool will be  
invoked via the POM instead.


 {{{
   !-- Run the RequestFactory ValidationTool --

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


[gwt-contrib] Re: Add support for additional header styles for CellTable. (issue1538803)

2011-09-01 Thread jlabanca


http://gwt-code-reviews.appspot.com/1538803/diff/1/user/src/com/google/gwt/user/cellview/client/DefaultHeaderOrFooterBuilder.java
File
user/src/com/google/gwt/user/cellview/client/DefaultHeaderOrFooterBuilder.java
(right):

http://gwt-code-reviews.appspot.com/1538803/diff/1/user/src/com/google/gwt/user/cellview/client/DefaultHeaderOrFooterBuilder.java#newcode107
user/src/com/google/gwt/user/cellview/client/DefaultHeaderOrFooterBuilder.java:107:

remove extra spaces

http://gwt-code-reviews.appspot.com/1538803/diff/1/user/src/com/google/gwt/user/cellview/client/DefaultHeaderOrFooterBuilder.java#newcode150
user/src/com/google/gwt/user/cellview/client/DefaultHeaderOrFooterBuilder.java:150:

remove extra spaces

http://gwt-code-reviews.appspot.com/1538803/diff/1/user/src/com/google/gwt/user/cellview/client/DefaultHeaderOrFooterBuilder.java#newcode170
user/src/com/google/gwt/user/cellview/client/DefaultHeaderOrFooterBuilder.java:170:
private H String getExtraStyles(HeaderH header) {
It might be slightly more efficient to pass the classesBuilder into this
method (rename to appendExtraStyles) and append the styles directly.
That way, you wouldn't have to append the empty string in the case where
there aren't extra styles.

http://gwt-code-reviews.appspot.com/1538803/diff/1/user/src/com/google/gwt/user/cellview/client/Header.java
File user/src/com/google/gwt/user/cellview/client/Header.java (right):

http://gwt-code-reviews.appspot.com/1538803/diff/1/user/src/com/google/gwt/user/cellview/client/Header.java#newcode63
user/src/com/google/gwt/user/cellview/client/Header.java:63: public
String getHeaderStyleNames(H object) {
Do we need object?  You can call getValue() from this method if the
object is needed.

http://gwt-code-reviews.appspot.com/1538803/diff/1/user/src/com/google/gwt/user/cellview/client/Header.java#newcode83
user/src/com/google/gwt/user/cellview/client/Header.java:83:
remove extra spaces

http://gwt-code-reviews.appspot.com/1538803/diff/1/user/src/com/google/gwt/user/cellview/client/Header.java#newcode113
user/src/com/google/gwt/user/cellview/client/Header.java:113: * @param
styleNames the extra style names to applyin a space-separated list,
/s/applyin/apply in

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

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


[gwt-contrib] Re: Event handling support for UiRenderer (issue1534806)

2011-09-01 Thread rjrjr

Nice.


http://gwt-code-reviews.appspot.com/1534806/diff/1/user/src/com/google/gwt/uibinder/client/AbstractUiRenderer.java
File user/src/com/google/gwt/uibinder/client/AbstractUiRenderer.java
(right):

http://gwt-code-reviews.appspot.com/1534806/diff/1/user/src/com/google/gwt/uibinder/client/AbstractUiRenderer.java#newcode27
user/src/com/google/gwt/uibinder/client/AbstractUiRenderer.java:27:
public abstract class AbstractUiRenderer implements UiRenderer {
This should be in an impl package. I've long regretted not doing that
with UiBinderUtil (and bonus points if you move it there too).

http://gwt-code-reviews.appspot.com/1534806/diff/1/user/src/com/google/gwt/uibinder/client/AbstractUiRenderer.java#newcode34
user/src/com/google/gwt/uibinder/client/AbstractUiRenderer.java:34:
public abstract static class UiRendererDispatcherT implements
HasHandlers {
Can this be protected?

http://gwt-code-reviews.appspot.com/1534806/diff/1/user/src/com/google/gwt/uibinder/client/AbstractUiRenderer.java#newcode43
user/src/com/google/gwt/uibinder/client/AbstractUiRenderer.java:43:
private int methodIndex;
Are these going to get clobbered on recursive calls?

http://gwt-code-reviews.appspot.com/1534806/diff/1/user/src/com/google/gwt/uibinder/client/AbstractUiRenderer.java#newcode72
user/src/com/google/gwt/uibinder/client/AbstractUiRenderer.java:72:
table = UiRendererUtilsImpl.buildDispatchMap(keys, values);
Are you rebuilding this table for each event dispatch? If so, sounds
slow. Or does the dom hold on to a pointer to this thing?

http://gwt-code-reviews.appspot.com/1534806/diff/1/user/src/com/google/gwt/uibinder/client/UiRendererUtilsImpl.java
File user/src/com/google/gwt/uibinder/client/UiRendererUtilsImpl.java
(right):

http://gwt-code-reviews.appspot.com/1534806/diff/1/user/src/com/google/gwt/uibinder/client/UiRendererUtilsImpl.java#newcode29
user/src/com/google/gwt/uibinder/client/UiRendererUtilsImpl.java:29:
public class UiRendererUtilsImpl {
Can all these public static things instead be protected members on
AbstractUiRenderer?

http://gwt-code-reviews.appspot.com/1534806/diff/1/user/src/com/google/gwt/uibinder/client/UiRendererUtilsImpl.java#newcode31
user/src/com/google/gwt/uibinder/client/UiRendererUtilsImpl.java:31:
public static final int NO_HANDLER_FOUND = -1;
do these constants really need to be public?

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

http://gwt-code-reviews.appspot.com/1534806/diff/1/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java#newcode192
user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java:192:
ListJMethod methods = new
ArrayListJMethod(Arrays.asList(type.getMethods()));
this won't work with superclasses. use
JClassType.getInheritableMethods(), and should add a unit test for that
case.

http://gwt-code-reviews.appspot.com/1534806/diff/1/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java#newcode244
user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java:244:
JMethod[] allMethods = type.getMethods();
ditto. Should do a general search for getMethods

http://gwt-code-reviews.appspot.com/1534806/diff/1/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java#newcode414
user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java:414: throw
new RuntimeException(UiRenderer is not a parametrizable type in  +
binderType);
parameterizable

http://gwt-code-reviews.appspot.com/1534806/diff/1/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java#newcode1202
user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java:1202: try {
Should use the TypeOracle, not reflection

http://gwt-code-reviews.appspot.com/1534806/diff/1/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java#newcode1465
user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java:1465: *
Validates each {@code eventMethod} (e.g. {@code onBrowserEvent()}).
(e.g. {@code void onBrowserEvent(HandlerType o, NativeEvent e, Element
parent, A a, B b, ...);})

http://gwt-code-reviews.appspot.com/1534806/diff/1/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java#newcode1470
user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java:1470: *
(if it has any methods annotated with {@code @UiHandler})
d/if it has/

http://gwt-code-reviews.appspot.com/1534806/diff/1/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java#newcode1515
user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java:1515: * li
The second parameter must be of type {@link
com.google.gwt.dom.client.Element Element}
What do you think about making the element type optional too? I'd be
okay with requiring it to be in place if they want to use other optional
parameters.

http://gwt-code-reviews.appspot.com/1534806/diff/1/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java#newcode2140
user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java:2140: //
ClickEvent.getType();
Should 

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

2011-09-01 Thread zhuyi

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

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