Re: DisclosurePanel + Custom images + XML

2010-07-19 Thread rlebosse
Thanks Thomas!
I tried your solution but I have this error when I try to display the
disclosure panel.

10:05:37.921 [ERROR] [ermin] In g:header
closeImage='{disclosurePanelClosed}'
openImage='{disclosurePanelOpen}' of g:DisclosurePanel
stylePrimaryName='menu' ui:field='sessions', both openImage and
closedImage must be specified, or neither

Do you have any idea of what this problem could be from?
Romain

On Jul 16, 4:49 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 16 juil, 16:30, rlebosse rlebo...@gmail.com wrote:

  Hi everybody,
  I'm trying to change the arrow icons of the GWTdisclosurepanels. I
  made it in a GWT class.

  public interface CustomDisclosurePanelImages extends
  DisclosurePanelImages
    {
      public AbstractImagePrototype disclosurePanelClosed();

      public AbstractImagePrototype disclosurePanelOpen();
    }

    CustomDisclosurePanelImages cdpi = (CustomDisclosurePanelImages) GWT
      .create(CustomDisclosurePanelImages.class);

 Isn't the DisclosurePanelImages ImageBundle @Deprecated?

  However, my DisclosurePanel is created into an XML file. Do you know,
  how, in the XML file, I can say it has to take
  CustomDisclosurePanelImages images.

 DisclosurePanel has a specialized parser in UiBinder, which looks for
 openImage and closeImage attributes on the header child element, that
 matches the same-name ImageResource arguments from the constructor.
 Those ImageResource would have to come from either a ClientBundle
 loaded with ui:with, or the implicit ClientBundle with images linked
 to with ui:image.
 For example (untested):

 ui:image field=disclosurePanelClosed /
 ui:image field=disclosurePanelOpen /

  g:HTMLPanel
   g:DisclosurePanel ui:field=sessions stylePrimaryName='menu'
        g:headerSessions/g:header

 g:header openImage={disclosurePanelOpen}
 closeImage={disclosurePanelClosed}Sessions/g:header

        g:HTMLPanel
          ul class='{eres.menu.menuItems}'
            li
              g:Anchor ui:field=sessionsTotal styleName=''Total/
  g:Anchor
            /li
            li
              g:Anchor ui:field=sessionsByActivity styleName=''by
  Activity/g:Anchor
            /li
          /ul
        /g:HTMLPanel
      /g:DisclosurePanel
  /g:HTMLPanel

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



How to find correctly the client's locale?

2010-07-19 Thread Sorinel C
I have used the following code, trying to detect the client's locale,
but always I get the default one, which is the EN_US, even if I
change the locale of my system to French, for example.

[code]
final LocaleInfo locale = LocaleInfo.getCurrentLocale();
decimalSeparator = 
locale.getNumberConstants().decimalSeparator();
thousandSeparator = 
locale.getNumberConstants().groupingSeparator();
[/code]

So, can anybody advise me what  I miss, please?

Thanks!

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



Re: How to find correctly the client's locale?

2010-07-19 Thread Sorinel C
I have in my module .gwt.xml file definition the following lines:

inherits name=com.google.gwt.core.Core /
inherits name=com.google.gwt.user.User /
inherits name=com.google.gwt.i18n.I18N /
inherits name=com.google.gwt.i18n.CldrLocales /
inherits
name=com.google.gwt.user.theme.standard.StandardResources /

So, maybe something else is wrong, but I don't catch it :(

Thanks!

PS: some other GWT tricks you can find here: http://ui-programming.blogspot.com/
:-))

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



Re: How to find correctly the client's locale?

2010-07-19 Thread olivier nouguier
Hi,
 Don't much about recent GWT version.
 But I the beginning of GWT I18N a simple solution was to use the I18N
resolution ...
 Simply provide in a key locale( ex: locale=en ) with the correct value in
each bundle, then just bind this key like another i18n label and you're done
...

HIH




On Mon, Jul 19, 2010 at 10:24 AM, Sorinel C scristescu...@hotmail.comwrote:

 I have in my module .gwt.xml file definition the following lines:

inherits name=com.google.gwt.core.Core /
inherits name=com.google.gwt.user.User /
inherits name=com.google.gwt.i18n.I18N /
inherits name=com.google.gwt.i18n.CldrLocales /
inherits
 name=com.google.gwt.user.theme.standard.StandardResources /

 So, maybe something else is wrong, but I don't catch it :(

 Thanks!

 PS: some other GWT tricks you can find here:
 http://ui-programming.blogspot.com/
 :-))

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




-- 
Computers are useless. They can only give you answers.
- Pablo Picasso -

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



Re: A couple of (probably) simple questions about using _escaped_fragment_ / ajax crawl-able.

2010-07-19 Thread RPB
I always use the #!meep syntax, which when the google crawler sees
it interprets as ?_escape_fragment. I seem to recall reading in the
google documentation that this is the correct way to do it.

-Rob

On Jul 17, 8:12 pm, darkflame darkfl...@gmail.com wrote:
 Thanks for both your help I'm almost there now.
 The  $param= $_GET['_escaped_fragment_']; worked fine, now the rest of
 my php works.

 One other query, however; What should the links generated by this php
 file return?
 If my normal code set history to something like #meep (which would
 now be #!meep) should the static page have that link set to #meep
 #!meep ?meep or even ?_escape_fragment_

 I assume I could use #! that googles crawler would automatically
 change to ?_escape_fragment_ but wouldn't it be better to give it
 directly? or would that not associate the links correctly? Of course,
 if I stuck to just using ? then it would make the site browsable for
 people with JavaScript turned of too.

 -Thomas

 On Jul 14, 10:05 am, RPB robbol...@gmail.com wrote:



  Hi darkflame,

  Not sure I fully understand your second question, but you should be
  able to just use $param= $_GET['_escaped_fragment_']; and then process
  the code as normal.
  Also, the 'Fetch with googlebot' tool in Webmaster tools is very
  helpful, showing you exactly what google will actually be crawling.

  Cheers,
  Robwww.yournextread.com

  On Jul 11, 12:07 am, darkflame darkfl...@gmail.com wrote:

   a) As my server doesn't support server-side java, I'll be using php to
   generate the static/snapshot pages. How close do they have to be to
   the proper/GWT ones? Is it good enough if the text and links are
   exactly samebut not the images/layout?  I dont want to be accused
   of spoofing, but replicating the layout exact will prove a lot of
   work.

   b) Is there an easy way to parse the new urls? I used to use just GET
   in PHP to retrieve each expected key/value, but this doesnt work now
   that _escaped_fragment_ has been added at the start.  Is there a
   recommended method? or do I just code my own parser?

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



Re: No Class Definition Found Exception : jexcelapi

2010-07-19 Thread rajan kochhar
I have already added jar file in WEB-INF/lib folder.I am using Eclipse
plugin for GWT. Can you clearify what exactly you mean by keeping them
on the server?

On Jul 19, 4:33 am, mdwarne mike.wa...@gmail.com wrote:
 Make sure your jars are in your webapp  WEB-INF/lib folder on the
 server..
 Mike.

 On Jul 16, 12:29 am, rajan kochhar rajan_kochhar2...@yahoo.com
 wrote:



  I want to read the contents of a file a.xls i have kept in war. I am
  creating a servlet as follows:

  import java.io.*;

  import javax.servlet.http.HttpServlet;
  import javax.servlet.http.HttpServletRequest;
  import javax.servlet.http.HttpServletResponse;

  import com.cummins.lms.shared.Streams;

  import jxl.Sheet;
  import jxl.Workbook;
  import jxl.read.biff.BiffException;

  publicclassExcelUtility extends HttpServlet{
          public void doGet(HttpServletRequest request, HttpServletResponse
  response)
          {
                  try {
                          FileInputStream is = new FileInputStream(a.xls);
                          Workbook workBook = Workbook.getWorkbook(is);
                          Sheet sheet = workBook.getSheet(0);
                          System.out.println(workBook.getNumberOfSheets());
                  } catch (Exceptione) {
                          // TODO Auto-generated catch block
                          e.printStackTrace();
                  }

          }

  }

  On calling the servlet,it gives anexception:

   com.google.apphosting.utils.jetty.JettyLogger warn
  WARNING: Error for /excel
  java.lang.NoClassDefFoundError: jxl/Workbook
          at com.cummins.lms.server.ExcelUtility.doGet(ExcelUtility.java:27)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
          at 
  org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
  511)
          at org.mortbay.jetty.servlet.ServletHandler
  $CachedChain.doFilter(ServletHandler.java:1166)
          at
  com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFi 
  lter.java:
  51)
          at org.mortbay.jetty.servlet.ServletHandler
  $CachedChain.doFilter(ServletHandler.java:1157)
          at
  com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(Trans 
  actionCleanupFilter.java:
  43)
          at org.mortbay.jetty.servlet.ServletHandler
  $CachedChain.doFilter(ServletHandler.java:1157)
          at
  com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFile 
  Filter.java:
  122)
          at org.mortbay.jetty.servlet.ServletHandler
  $CachedChain.doFilter(ServletHandler.java:1157)
          at
  org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
  388)
          at
  org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
  216)
          at
  org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
  182)
          at
  org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
  765)
          at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
  418)
          at
  com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEn 
  gineWebAppContext.java:
  70)
          at
  org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
  152)
          at com.google.appengine.tools.development.JettyContainerService
  $ApiProxyHandler.handle(JettyContainerService.java:349)
          at
  org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
  152)
          at org.mortbay.jetty.Server.handle(Server.java:326)
          at 
  org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
  542)
          at org.mortbay.jetty.HttpConnection
  $RequestHandler.headerComplete(HttpConnection.java:923)
          at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
          at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
          at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
          at
  org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
  409)
          at org.mortbay.thread.QueuedThreadPool
  $PoolThread.run(QueuedThreadPool.java:582)

  What am i doing wrong.Any alternative approach for reading an excel
  file or any other help will do.

  Thanks

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



Re: GWT 2.0.4 caused Class Not Found, TransformerFactoryImpl

2010-07-19 Thread Jan
@Shyam Visamsetty: I just tested your solution and it works. So thank
you very much!!!
@emurmur: I already starred this issue and I am also looking forward
to a real fix by google

Best regards
Jan

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



GWT + Arrows + DisclosurePanel #2

2010-07-19 Thread rlebosse
Hi everybody,
I'm trying to change the arrow icons of the GWT disclosure panels. I
made it in a GWT class.

public interface CustomDisclosurePanelImages extends
DisclosurePanelImages
{
public AbstractImagePrototype disclosurePanelClosed();

public AbstractImagePrototype disclosurePanelOpen();
}

CustomDisclosurePanelImages cdpi = (CustomDisclosurePanelImages) GWT
.create(CustomDisclosurePanelImages.class);

However, my DisclosurePanel is created into an XML file. I created it
that way.
ui:image field='disclosurePanelClosed' /
ui:image field='disclosurePanelOpen' /

g:HTMLPanel
g:DisclosurePanel ui:field=sessions stylePrimaryName='menu'
g:header openImage='{disclosurePanelOpen}'
closeImage='{disclosurePanelClosed}'Sessions/g:header
g:HTMLPanel
ul class='{eres.menu.menuItems}'
li
g:Anchor ui:field=sessionsTotal styleName=''Total/
g:Anchor
/li
li
g:Anchor ui:field=sessionsByActivity styleName=''by
Activity/g:Anchor
/li
/ul
/g:HTMLPanel
/g:DisclosurePanel
/g:HTMLPanel

When I try to display my page, I've got the following error. Do you
know what could be the cause of it? And how I can fix it? Thanks in
advance for your help!

10:29:14.633 [ERROR] [ermin] In g:header
closeImage='{disclosurePanelClosed}'
openImage='{disclosurePanelOpen}' of g:DisclosurePanel
stylePrimaryName='menu' ui:field='sessions', both openImage and
closedImage must be specified, or neither

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



Re: DisclosurePanel + Custom images + XML

2010-07-19 Thread rlebosse
I found the solution.
Dont forget the d of closedImage.
closedImage={disclosurePanelClosed}

On Jul 19, 10:13 am, rlebosse rlebo...@gmail.com wrote:
 Thanks Thomas!
 I tried your solution but I have this error when I try to display the
 disclosure panel.

 10:05:37.921 [ERROR] [ermin] In g:header
 closeImage='{disclosurePanelClosed}'
 openImage='{disclosurePanelOpen}' of g:DisclosurePanel
 stylePrimaryName='menu' ui:field='sessions', both openImage and
 closedImage must be specified, or neither

 Do you have any idea of what this problem could be from?
 Romain

 On Jul 16, 4:49 pm, Thomas Broyer t.bro...@gmail.com wrote:

  On 16 juil, 16:30, rlebosse rlebo...@gmail.com wrote:

   Hi everybody,
   I'm trying to change the arrow icons of the GWTdisclosurepanels. I
   made it in a GWT class.

   public interface CustomDisclosurePanelImages extends
   DisclosurePanelImages
     {
       public AbstractImagePrototype disclosurePanelClosed();

       public AbstractImagePrototype disclosurePanelOpen();
     }

     CustomDisclosurePanelImages cdpi = (CustomDisclosurePanelImages) GWT
       .create(CustomDisclosurePanelImages.class);

  Isn't the DisclosurePanelImages ImageBundle @Deprecated?

   However, my DisclosurePanel is created into an XML file. Do you know,
   how, in the XML file, I can say it has to take
   CustomDisclosurePanelImages images.

  DisclosurePanel has a specialized parser in UiBinder, which looks for
  openImage and closeImage attributes on the header child element, that
  matches the same-name ImageResource arguments from the constructor.
  Those ImageResource would have to come from either a ClientBundle
  loaded with ui:with, or the implicit ClientBundle with images linked
  to with ui:image.
  For example (untested):

  ui:image field=disclosurePanelClosed /
  ui:image field=disclosurePanelOpen /

   g:HTMLPanel
    g:DisclosurePanel ui:field=sessions stylePrimaryName='menu'
         g:headerSessions/g:header

  g:header openImage={disclosurePanelOpen}
  closeImage={disclosurePanelClosed}Sessions/g:header

         g:HTMLPanel
           ul class='{eres.menu.menuItems}'
             li
               g:Anchor ui:field=sessionsTotal styleName=''Total/
   g:Anchor
             /li
             li
               g:Anchor ui:field=sessionsByActivity styleName=''by
   Activity/g:Anchor
             /li
           /ul
         /g:HTMLPanel
       /g:DisclosurePanel
   /g:HTMLPanel

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



Re: GWT + Arrows + DisclosurePanel #2

2010-07-19 Thread rlebosse
I found the solution.
Dont forget the d of closedImage.
closedImage={disclosurePanelClosed}

On Jul 19, 11:43 am, rlebosse rlebo...@gmail.com wrote:
 Hi everybody,
 I'm trying to change the arrow icons of the GWT disclosure panels. I
 made it in a GWT class.

 public interface CustomDisclosurePanelImages extends
 DisclosurePanelImages
 {
 public AbstractImagePrototype disclosurePanelClosed();

 public AbstractImagePrototype disclosurePanelOpen();

 }

 CustomDisclosurePanelImages cdpi = (CustomDisclosurePanelImages) GWT
 .create(CustomDisclosurePanelImages.class);

 However, my DisclosurePanel is created into an XML file. I created it
 that way.
 ui:image field='disclosurePanelClosed' /
 ui:image field='disclosurePanelOpen' /

 g:HTMLPanel
 g:DisclosurePanel ui:field=sessions stylePrimaryName='menu'
 g:header openImage='{disclosurePanelOpen}'
 closeImage='{disclosurePanelClosed}'Sessions/g:header
 g:HTMLPanel
 ul class='{eres.menu.menuItems}'
 li
 g:Anchor ui:field=sessionsTotal styleName=''Total/
 g:Anchor
 /li
 li
 g:Anchor ui:field=sessionsByActivity styleName=''by
 Activity/g:Anchor
 /li
 /ul
 /g:HTMLPanel
 /g:DisclosurePanel
 /g:HTMLPanel

 When I try to display my page, I've got the following error. Do you
 know what could be the cause of it? And how I can fix it? Thanks in
 advance for your help!

 10:29:14.633 [ERROR] [ermin] In g:header
 closeImage='{disclosurePanelClosed}'
 openImage='{disclosurePanelOpen}' of g:DisclosurePanel
 stylePrimaryName='menu' ui:field='sessions', both openImage and
 closedImage must be specified, or neither

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



Re: menu got hanged

2010-07-19 Thread rajendra dasari
Hi all,

I am also facing with the same issue, but which is working in FireFox, but
in IE8 it is hanged, when i  open a Window,
or when i clearing and adding Panels to RootPanel.
If u found any solutions please help me how to resolve.

Thanks,

Raj.

On Sun, Jul 18, 2010 at 8:38 PM, Paachu binu...@gmail.com wrote:

 Hi all,
 I have found the problem.thisis because of RPC call..  but how to
 solve this issue?

 On Jul 16, 7:12 pm, Paachu binu...@gmail.com wrote:
  Hi all,
 
  I am new to GWT.  We have a menu called users in our application. When
  I click the users menu,
  one panel is drawing the with user values. It is perfectly drawing
  without anyproblem. Second time
  again when I click the same menu users its got hanged the application.
  I am rendering the application in the following way.
 
  RootPanel.get().clear();
  RootPanel.get().add(userPanel);
 
  Application is not throwing any exception.. what will be the root
  cause? any idea?
 
  Thanks
  Pacchu..

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



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



Setting jsessionid client side

2010-07-19 Thread Sudheer
Hello there!

Our development environment has client code and server code. Client
side we are using GWT(GXT) and server side we are using RESTFul
(Apache CXF) services. And the communication between client and server
is via JSON. Also we need to maintain token for login user. Everything
runs fine is run time environment as a single deployment. But in debug
(development) we have to simulate the client side and server side.
While invoking the RESTFul URL, we need to pass jsessionid along with
request to bind this request to existing user session. I have tried
two options but both are not working

1) Placing jsessionid in url
 url.append('?');
 url.append(JSESSIONID=40E882AB5352F4607115027F2CDDB8C1);

2) Setting cookie using Cookie api.
RequestBuilder requestBuilder = new RequestBuilder(method,
getURL(method, getUIServiceEndPoint() + resource, pageConfig));
requestBuilder.setHeader(Content-Type, application/json;
charset=utf-8);
requestBuilder.setHeader(Accept, application/json;
charset=utf-8);
Date now = new Date();
long nowLong = now.getTime();
nowLong = nowLong + (1000 * 60 * 60 * 24 * 7);//seven days
now.setTime(nowLong);
Cookies.setCookie(JSESSIONID,
5C05A78C5DC2AE6C891A0338F33F90ED, now);

Server log does not show anything related to jsessionid when these two
approaches are used.

ID: 2
Address: /abc/REST/services/xyz
Encoding: UTF-8
Content-Type:
Headers: {accept-encoding=[gzip,deflate], connection=[keep-alive],
accept-language=[en-us,en;q=0.5], host=[localhost:8084], accept-
charset=[ISO-8859-1,utf-8;q=0.7,*;q=0.7], user-agent=[Mozilla/5.0
(Windows; U; Windows NT 5.1; en-US; rv:1.9.1.10) Gecko/20100504
Firefox/3.5.10], Content-Type=[null], Accept=[text/html,application/
xhtml+xml,application/xml;q=0.9,*/*;q=0.8], keep-alive=[300]}
Payload:

But in run time I can see jsessionid present in request.
ID: 2
Address:  /abc/REST/services/xyz
Encoding: UTF-8
Content-Type:
Headers: {accept-encoding=[gzip,deflate], connection=[keep-alive],
accept-language=[en-us,en;q=0.5], host=[localhost:8084], accept-
charset=[ISO-8859-1,utf-8;q=0.7,*;q=0.7], user-agent=[Mozilla/5.0
(Windows; U; Windows NT 5.1; en-US; rv:1.9.1.10) Gecko/20100504
Firefox/3.5.10], Content-Type=[null],
cookie=[JSESSIONID=DDB46103078A31847CA615E593B84869;
chkcookie=1279110426293], Accept=[text/html,application/xhtml
+xml,application/xml;q=0.9,*/*;q=0.8], keep-alive=[300]}
Payload:

Is there anything I am missing or doing something wrong? Suggestions
are welcome :)

Thank you
Sudheer

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



Re: Client-server synchronizing problems

2010-07-19 Thread rajendra dasari
Hi Gustavo,

I want to know the server side how you are adding data to JSONArray and
sending this JSONArray as response.
using Java GWT we are adding like this form.
1) we have to add JSONArray to ArrayList.
For Example:
 in server side resonse
I am adding
String name = Ram;
ArrayList alList = new ArrayList();
aList.add(name);
JSONObject jsonDataToReturn = new JSONObject();
 JSONArray jsonResult = new JSONArray(alList);
 response.getWriter().print(jsonDataToReturn);

In Client side u have to create class like
public class JsName extends JavaScriptObject{

protected JsName (){}
public final native int getName() /*-{ return this.name; }-*/;

}
}

in the client response
 you have to add like

JsArrayJsName  jsCatgAttr = asArrayOfName(strResponse);
String name = jsCatgAttr.getName();//this is
getting from JsName Object

private final native JsArrayJsName  asArrayOfName(String json) /*-{
return eval(json);
  }-*/;


you try this way you definitely get better solution .

If you have any Idea on hanging problem on IE8 please provide me a solution.

Bey..

Thanks,

Raj.

On Sun, Jul 18, 2010 at 4:27 PM, Gustavo lgbpi...@gmail.com wrote:

 Hello everyone, I have a little problem. My code sends a request to
 the server and onResponseReceived a certain ArrayListString will
 receive elements from a JSONArray. After the ArrayListstring gets
 its elements and after the request is complete I want to read the
 ArrayListString, but it is now empty and I don't know why.

 Here I reproduce the same situation:

 package requestTest.client;

 import java.util.ArrayList;



 import com.google.gwt.core.client.EntryPoint;

 import com.google.gwt.http.client.Request;
 import com.google.gwt.http.client.RequestBuilder;
 import com.google.gwt.http.client.RequestCallback;
 import com.google.gwt.http.client.RequestException;
 import com.google.gwt.http.client.Response;
 import com.google.gwt.http.client.URL;
 import com.google.gwt.json.client.JSONArray;

 import com.google.gwt.json.client.JSONParser;
 import com.google.gwt.json.client.JSONValue;
 import com.google.gwt.user.client.Window;
 import com.google.gwt.user.client.ui.Label;
 import com.google.gwt.user.client.ui.RootPanel;

 /**
  * Entry point classes define codeonModuleLoad()/code.
  */
 public class RequestTeste implements EntryPoint {
/**
 * The message displayed to the user when the server cannot be
 reached or
 * returns an error.
 */


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

final ArrayListString list = new ArrayListString();
final ArrayListInteger trick = new ArrayListInteger();

String url = requestTeste.php;
RequestBuilder builder = new
 RequestBuilder(RequestBuilder.GET,
 URL.encode(url));
builder.setHeader(Content-type, text/plain);
builder.setCallback(new RequestCallback(){

public void onResponseReceived(Request request,
 Response response)
 {
if (200 == response.getStatusCode()) {
  // parse the response text into
 JSON
JSONValue jsonObject =
 JSONParser.parse(response.getText());
JSONArray jsonArray =
 (JSONArray)jsonObject;

if (jsonArray != null) {
  for (int
 i=0;ijsonArray.size();i++){

  list.add(jsonArray.get(i).toString());
  }

 RootPanel.get().add(new Label(Here is the first try));
  RootPanel.get().add(new
 Label(list.toString()));
  RootPanel.get().add(new
 Label(Integer.toString(trick.get(0;
} else {
 //TODO
}
} else {
  Window.alert(Couldn't retrieve
 JSON ( +
 response.getStatusText() + ));
}
}

public void onError(Request request, Throwable
 exception) {
// TODO Auto-generated method stub

}

});
try {
builder.send();
} catch (RequestException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
RootPanel.get().add(new Label(Here is the second
 try));
RootPanel.get().add(new Label(list.toString()));
}

Re: DeferredCommand. When should an RPC use it?

2010-07-19 Thread Brian Reilly
I don't know about addPause, but I think that DeferredCommand is
primarily for cases where you need to do something with the DOM before
it's actually available. For example, you can put a setFocus call in a
DeferredCommand block before the element that's receiving focus has
been added to the DOM (assuming that the element will be added to the
DOM before the JavaScript thread yields). The code will go on a queue
of tasks to perform as soon as the JavaScript thread finishes what
it's already doing. I bet the javadocs describe this better.

-Brian

On Jul 16, 2:33 pm, alan alan.sny...@gmail.com wrote:
 I'm trying to understand when an RPC call should use a
 DeferredCommand, when is should include an addPause and when an RPC
 call should not use a DeferredCommand.

 I'm working on a case when I've got a widget that needs to load a
 dozen or so ListBoxes. Because of the service layer each one is a
 different RPC call, so when this widget is loaded a dozen RPC calls
 will occur at once. Since this widget doesn't need to be fully loaded
 instantaneously slowing down the rate of calls and even making them
 serial would be fine.

 So, I put all of the calls to load this widget into a DeferredCommand
 and also added a addPause to each. My observation on FireBug is the
 call are all still nearly fired off simultaneously although not as
 quickly. It wasn't quite what I expected.

 I've got other calls that happen as part of a user pressing a button,
 or on a timer that currently are not using the DeferredCommand, but
 I'm wondering if they should.

 Any comments on guidelines for using DeferredCommand and addPause are
 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: New Java Documentation Tool from Sencha

2010-07-19 Thread Brian Reilly
It looks like some doc content isn't being displayed. I happened to go
to com.extjs.gxt.ui.client.widget.Label and viewed the source and say
a dl block. However it's not showing up in the app anywhere that I
could see.

-Brian

On Jul 16, 3:17 am, Abraham Elias abraham.el...@gmail.com wrote:
 We're very excited to share the release of Sencha Docs built using GWT
 and Sencha.

 http://www.sencha.com/blog/2010/07/15/sencha-docs-gives-javadoc-a-fac...

 For the last 15 years, java developers have have used JavaDoc to
 create API documentation.  We're all familiar with JavaDoc's dated
 interface, but we're giving it a major face lift and hope you like the
 results.

 We'd love to know what the GWT community thinks and what other
 javadocs you'd like to see in this format.  (hint:  GWT docs coming
 soon!)

 Abe

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



Re: New Java Documentation Tool from Sencha

2010-07-19 Thread Peter Simun
Are there any plans when will sencha use standard GWT APIs ?

Like HasText, HasValue, HasWidgets interfaces?

For example,
TextArea does not implements any of interfaces above but the widgets
itself should hasve such an implementations.

Thanks,
Peter

On 19. Júl, 14:17 h., Brian Reilly brian.irei...@gmail.com wrote:
 It looks like some doc content isn't being displayed. I happened to go
 to com.extjs.gxt.ui.client.widget.Label and viewed the source and say
 a dl block. However it's not showing up in the app anywhere that I
 could see.

 -Brian

 On Jul 16, 3:17 am, Abraham Elias abraham.el...@gmail.com wrote:

  We're very excited to share the release of Sencha Docs built using GWT
  and Sencha.

 http://www.sencha.com/blog/2010/07/15/sencha-docs-gives-javadoc-a-fac...

  For the last 15 years, java developers have have used JavaDoc to
  create API documentation.  We're all familiar with JavaDoc's dated
  interface, but we're giving it a major face lift and hope you like the
  results.

  We'd love to know what the GWT community thinks and what other
  javadocs you'd like to see in this format.  (hint:  GWT docs coming
  soon!)

  Abe

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



Re: A couple of (probably) simple questions about using _escaped_fragment_ / ajax crawl-able.

2010-07-19 Thread Katharina Probst
That's right - you'll want #!.

You don't want to use _escaped_fragment_ because that's just meant as a
temporary URL between the crawler and your site, not for the user (remember
that if your user would click on _escaped_fragment_, they'll get a rendered
snapshot, not a functioning JavaScript page, so none of the buttons etc
would be enabled).

If you use ?, you'll always have to do a full reload of the page, rather
than with # or #!, in which case you can use XHRs (maybe GWT RPC in your
case) to reload only part of the page, which can make for a much better user
experience.

If you use #, then the crawler won't interpret is as a JavaScript URL in the
scheme, which means it won't ask you for the _escaped_fragment_ version and
thus won't index your content.  (all it'll see is some script src ... tag,
not very useful). You also don't want # and #! versions of the same URL with
the same content floating around - unless you make sure the crawler knows
they're the same, the crawler could treat them as separate, which can't be
good for your search results.

kathrin





On Mon, Jul 19, 2010 at 4:55 AM, RPB robbol...@gmail.com wrote:

 I always use the #!meep syntax, which when the google crawler sees
 it interprets as ?_escape_fragment. I seem to recall reading in the
 google documentation that this is the correct way to do it.

 -Rob

 On Jul 17, 8:12 pm, darkflame darkfl...@gmail.com wrote:
  Thanks for both your help I'm almost there now.
  The  $param= $_GET['_escaped_fragment_']; worked fine, now the rest of
  my php works.
 
  One other query, however; What should the links generated by this php
  file return?
  If my normal code set history to something like #meep (which would
  now be #!meep) should the static page have that link set to #meep
  #!meep ?meep or even ?_escape_fragment_
 
  I assume I could use #! that googles crawler would automatically
  change to ?_escape_fragment_ but wouldn't it be better to give it
  directly? or would that not associate the links correctly? Of course,
  if I stuck to just using ? then it would make the site browsable for
  people with JavaScript turned of too.
 
  -Thomas
 
  On Jul 14, 10:05 am, RPB robbol...@gmail.com wrote:
 
 
 
   Hi darkflame,
 
   Not sure I fully understand your second question, but you should be
   able to just use $param= $_GET['_escaped_fragment_']; and then process
   the code as normal.
   Also, the 'Fetch with googlebot' tool in Webmaster tools is very
   helpful, showing you exactly what google will actually be crawling.
 
   Cheers,
   Robwww.yournextread.com
 
   On Jul 11, 12:07 am, darkflame darkfl...@gmail.com wrote:
 
a) As my server doesn't support server-side java, I'll be using php
 to
generate the static/snapshot pages. How close do they have to be to
the proper/GWT ones? Is it good enough if the text and links are
exactly samebut not the images/layout?  I dont want to be accused
of spoofing, but replicating the layout exact will prove a lot of
work.
 
b) Is there an easy way to parse the new urls? I used to use just GET
in PHP to retrieve each expected key/value, but this doesnt work now
that _escaped_fragment_ has been added at the start.  Is there a
recommended method? or do I just code my own parser?

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



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



Re: GeoMap alternative?

2010-07-19 Thread Akshay Kumar
Once again, thanks for the tips Mikael. I shall give it a try..

On 19 July 2010 00:27, Mikael Couzic mikaelcou...@gmail.com wrote:

 Well, I know exactly how to do that with GWT-OpenLayers, but except
 GeoMap I'm not familiar with the alternatives so I can't compare.
 Anyway if you want to implement these features in a GWT application, I
 highly recommend using a GWT-integrated API if you want to avoid the
 overhead and maintenance issues.


 On 17 juil, 20:47, Akshay Kumar kumar.aks...@gmail.com wrote:
  Thanks Mikael,
  Looks pretty neat, in fact much more than I need.
  As my requirement is pretty simple:
  world_map to start with, be able to zoom to (and back to world_map) some
  regions - asia/pacific, africa, south_america, north-america, europe,
 middle
  east.
  gviz-IntensityMap fits in well until this point.
 
  However I need a bit more of functionality. Which is, to be able to
  highlight certain cities (hollow circle) on region maps and then be able
 to
  select/de-select them ( selected city = filled circle ). and a tooltip
 for
  city markers with some info.
  Which is kind of like markers on GeoMap, however, even in GeoMap the
  Markers do not throw any event and GeoMap is flash-based :(
 
  For others' reference, closest I have found till yet is:
 http://www.gethifi.com/blog/a-jquery-plugin-for-zoomable-interactive-...
 
  Especially - this implementation of above:
 http://www.sici.org/about/members/
 
  -akshay
 
  On 17 July 2010 19:34, Mikael Couzic mikaelcou...@gmail.com wrote:
 
 
 
   Hi,
 
   I'm not a flash expert but It's pretty obvious that the GeoMap
   visualization involves some flash.
   If you're looking for a non-flash and GWT compatible solution, take a
   look at GWT-OpenLayers :
  http://sourceforge.net/projects/gwt-openlayers/
   OpenLayers is a JavaScript library for displaying maps, and GWT-
   OpenLayers provides the wrapping with JSNI.
   I currently work on a similar project, you can contact me if you need
   guidance.
 
   Mikael Couzic
 
   On 14 juil, 17:59, Akshay Kumar kumar.aks...@gmail.com wrote:
perhaps I am wrong in my interpretation that geomap is a flash based
   widget.
When I view this document, I get a 'block' prompt from firefox's
 flash
blocker.
  http://code.google.com/apis/visualization/documentation/gallery/geoma.
 ..
 
Can someone confirm whether Geomap is plugin free or not?
-akshay
 
On 14 July 2010 21:11, Akshay Kumar kumar.aks...@gmail.com wrote:
 
 Hi,
 I am planning to use GeoMap (google visualization  widget) as a
 widget
 to select regions in my GWT based application.
 However, I realized that GeoMap is a flash  based widget. I want my
 web-app to be completely free of plugins. Which was one of the
 reasons
 to choose GWT.
 So, any pure HTML (or Javascript) alternative to GeoMap?
 
 Thanks,
 Akshay
 
 --
 You received this message because you are subscribed to the Google
   Groups
 Google Web Toolkit group.
 To post to this group, send email to
   google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
 cr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
   cr...@googlegroups.com
 .
 For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-tool...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
 cr...@googlegroups.com
   .
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.

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



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



Re: $_POST is empty when request made using RequestBuilder

2010-07-19 Thread RPB
Apologies if this is a double-post, the thread didn't seem to update
the first time.

I don't see anything in particular that is wrong with your code, but
the following works for me if you want to give it a try:

public void postPHPRequest(String url, String postData){
url = URL.encode(url);
RequestBuilder builder = new RequestBuilder(RequestBuilder.POST,
url);

try {
  builder.setHeader(Content-Type, application/x-www-form-
urlencoded);
  @SuppressWarnings(unused)
  Request req = builder.sendRequest(postData, new
RequestCallback() {

public void onError(Request request, Throwable exception) {
fireErrorEvent(Failed to send the request:  +
exception.getMessage());
}

public void onResponseReceived(Request request, Response
response) {
  String output = response.getText();

}
  });
} catch (RequestException e) {
fireErrorEvent(Failed to send the request:  + e.getMessage());
}
}

You can look at 'output' which should display any echos you have in
your PHP. Hopefully this will help you debug out what is happening.
If this doesn't work check that you are not violating the SOP (same
origin policy). There are other threads on this forum with more info
on this.

Good luck,
Rob

On Jul 18, 1:44 pm, malrawi musab.alr...@gmail.com wrote:
 Hi,
 I am really new to GWT, I tried searching the net for hours to get an
 answer to my problem with no luck. Here is what I am doing:
 I am creating a simple EntryPoint which shows some text fields, when
 the user clicks on a button I want to send a POST request to a php
 page. The PHP page says that my request parameters are not set.
 Right before I send the request I display the request data and they
 look right. As the code shows, I am setting the content type, I am
 appending the parameters properly, I don't know what is wrong.

 I didn't want to use FormPanel because it seemed like I wouldn't be
 able to send a request asynchronously (correct me if I am wrong, my
 conclusion was based on Javadoc's examples also some examples on the
 net)

 Here is the code:

 RequestBuilder builder = new RequestBuilder(RequestBuilder.POST, url);
 builder.setHeader(Content-type, application/x-www-form-
 urlencoded);
 StringBuffer requestData = new StringBuffer();

 // parameters is a HashMap
 if (parameters != null ){
         requestData.append(?);
         SetString keys = parameters.keySet();
         for (String key : keys ){
                 requestData.append(URL.encode(key));
                 requestData.append(=);
                 requestData.append(URL.encode(parameters.get(key)));
                 requestData.append();
         }

 }

 try {
         Window.alert(requestData.toString());
         builder.sendRequest(requestData.toString(), handler);} catch ( 
 Exception e){

         Window.alert(e.getMessage());

 }

 Please help.

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



Error while running my web app....

2010-07-19 Thread rohit kumra
GWT module abc may need to be (re)compiled.
can anybody plz tel me the solution to this prob...?

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



Re: $_POST is empty when request made using RequestBuilder

2010-07-19 Thread Thomas Broyer


On 18 juil, 14:44, malrawi musab.alr...@gmail.com wrote:
 Hi,
 I am really new to GWT, I tried searching the net for hours to get an
 answer to my problem with no luck. Here is what I am doing:
 I am creating a simple EntryPoint which shows some text fields, when
 the user clicks on a button I want to send a POST request to a php
 page. The PHP page says that my request parameters are not set.
 Right before I send the request I display the request data and they
 look right. As the code shows, I am setting the content type, I am
 appending the parameters properly, I don't know what is wrong.

 I didn't want to use FormPanel because it seemed like I wouldn't be
 able to send a request asynchronously (correct me if I am wrong, my
 conclusion was based on Javadoc's examples also some examples on the
 net)

 Here is the code:

 RequestBuilder builder = new RequestBuilder(RequestBuilder.POST, url);
 builder.setHeader(Content-type, application/x-www-form-
 urlencoded);
 StringBuffer requestData = new StringBuffer();

 // parameters is a HashMap
 if (parameters != null ){
         requestData.append(?);

What's this last line for?

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



Sending byte[] to Server

2010-07-19 Thread pk
HI,

I am trying to send a byte[] to server (which is a file stream read
thrugh a trusted applet and converted to byte[] and returned to the
gwt client using gwtai). I am not getting any exception either in
client side or in the server side, but the RPC call is not able to
reach the server. Your valuable suggestions are appreciated in
advance.

Thanks,
Sree-

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



Re: $_POST is empty when request made using RequestBuilder

2010-07-19 Thread RPB
Although I can't see anything obviously incorrect with your code, the
following code snippet successfully sends a POST request in my code:

public void postPHPRequest(String url, String postData){
url = URL.encode(url);
RequestBuilder builder = new RequestBuilder(RequestBuilder.POST,
url);

try {
  builder.setHeader(Content-Type, application/x-www-form-
urlencoded);

  @SuppressWarnings(unused)
  Request req = builder.sendRequest(postData, new
RequestCallback() {

public void onError(Request request, Throwable exception) {
fireErrorEvent(Failed to send the request:  +
exception.getMessage());
}

public void onResponseReceived(Request request, Response
response) {
  String output = response.getText();

}
  });
} catch (RequestException e) {
fireErrorEvent(Failed to send the request:  + e.getMessage());
}
}

You can look at the content of 'output', which should display any
echo's in your php code.

If you still have no luck, check that you are not violating the rules
of the SOP.

Good luck,
Rob

On Jul 18, 1:44 pm, malrawi musab.alr...@gmail.com wrote:
 Hi,
 I am really new to GWT, I tried searching the net for hours to get an
 answer to my problem with no luck. Here is what I am doing:
 I am creating a simple EntryPoint which shows some text fields, when
 the user clicks on a button I want to send a POST request to a php
 page. The PHP page says that my request parameters are not set.
 Right before I send the request I display the request data and they
 look right. As the code shows, I am setting the content type, I am
 appending the parameters properly, I don't know what is wrong.

 I didn't want to use FormPanel because it seemed like I wouldn't be
 able to send a request asynchronously (correct me if I am wrong, my
 conclusion was based on Javadoc's examples also some examples on the
 net)

 Here is the code:

 RequestBuilder builder = new RequestBuilder(RequestBuilder.POST, url);
 builder.setHeader(Content-type, application/x-www-form-
 urlencoded);
 StringBuffer requestData = new StringBuffer();

 // parameters is a HashMap
 if (parameters != null ){
         requestData.append(?);
         SetString keys = parameters.keySet();
         for (String key : keys ){
                 requestData.append(URL.encode(key));
                 requestData.append(=);
                 requestData.append(URL.encode(parameters.get(key)));
                 requestData.append();
         }

 }

 try {
         Window.alert(requestData.toString());
         builder.sendRequest(requestData.toString(), handler);} catch ( 
 Exception e){

         Window.alert(e.getMessage());

 }

 Please help.

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



need best GWT book for a begginner to start career

2010-07-19 Thread Santosh kumar
hi,

this is santosh,
i got a job on java platform, so here im working on eclipse environment
also im using GOOFLE WEB TOOLKIT ..

but im facing difficulty in understanding the concept of GWT
so please will u suggest me the best GWT book

or  send me the link where i can download book for free of cost !!




-- 
Thanks  Regards

S a n t o s h  k u m a r . k

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



Can we go project like www.blockbuster.com using GWT ?

2010-07-19 Thread mrjayarajj
I am doing a RD on choosing the technology,framework etc..

I understand some benefits of gwt but still my client expect to do
project simillar to www.blockbuster.com

please some one tell me can we do project like www.blockbuster.com
using gwt with same look and feel .. i hope that is very very
difficult with gwt

I believe choosing frameworks like struts,spring,hibernate, dojo/yui/
jquery/prototype will solve this.

please help us

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



Re: Sending byte[] to Server

2010-07-19 Thread Lothar Kimmeringer
pk schrieb:

 I am trying to send a byte[] to server (which is a file stream read
 thrugh a trusted applet and converted to byte[] and returned to the
 gwt client using gwtai). I am not getting any exception either in
 client side or in the server side, but the RPC call is not able to
 reach the server. Your valuable suggestions are appreciated in
 advance.

Without sources (applet- and server-side), it's hard to tell.
To find out more, what happens under the hood, start Wire-
shark and check what happening on the wire, i.e. does the
request reach the server, is the data transfered in the way
you intend it to be, etc.


Regards, Lothar

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



Re: Can we go project like www.blockbuster.com using GWT ?

2010-07-19 Thread Stefan Bachert
Hi,

Anything I have seen on this site could be done with GWT.
I would expect a GWT approach to have a better startup time, maybe the
half.
On my slow line blockbuster take up to 60 seconds. 1.4 MByte size

GWT is mostly GUI/client so you are free to choose the technology on
server side.
SPring, JPA, hibernate what you like

Stefan Bachert
http://gwtworld.de


On 18 Jul., 19:18, mrjayarajj mrjayar...@gmail.com wrote:
 I am doing a RD on choosing the technology,framework etc..

 I understand some benefits of gwt but still my client expect to do
 project simillar towww.blockbuster.com

 please some one tell me can we do project likewww.blockbuster.com
 using gwt with same look and feel .. i hope that is very very
 difficult with gwt

 I believe choosing frameworks like struts,spring,hibernate, dojo/yui/
 jquery/prototype will solve this.

 please help us

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



Re: How to find correctly the client's locale?

2010-07-19 Thread Glimpse
I've renamed my index.html to index.jsp and I've added the
following line in the head/ section:

meta name=gwt:property content=locale=%=request.getLocale()%

My application now uses the preferred language defined in the
browser's settings.
This works fine!


On 19 juil, 10:24, Sorinel C scristescu...@hotmail.com wrote:
 I have in my module .gwt.xml file definition the following lines:

         inherits name=com.google.gwt.core.Core /
         inherits name=com.google.gwt.user.User /
         inherits name=com.google.gwt.i18n.I18N /
         inherits name=com.google.gwt.i18n.CldrLocales /
         inherits
 name=com.google.gwt.user.theme.standard.StandardResources /

 So, maybe something else is wrong, but I don't catch it :(

 Thanks!

 PS: some other GWT tricks you can find 
 here:http://ui-programming.blogspot.com/
 :-))

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



Re: How do I make alternative style sheets for IE7 etc. in GWT?

2010-07-19 Thread Stefan Bachert
Hi,

 Supported values are:
 ie6,ie8,gecko,gecko1_8,safari,opera

 You'll notice particularly vexingly there is no good way to specify an
 IE7 specific style rule.

 You'll find a justification for that decision 
 here:http://code.google.com/p/google-web-toolkit/wiki/IE8Support

When there is the need to extent the list of browser, you can do so.
However, you have to supply a javaSCript code to detect the browser
and more browsers means more compilation time.
It is up to your needs which efforts makes sense.

Stefan Bachert
http://gwtworld.de

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



Re: How to find correctly the client's locale?

2010-07-19 Thread Stefan Bachert
Hi,

the startup code detects the locale.
As documented in stockwatcher demo, you could either supply a locale
in the url (query parameter) or put it into host page as a fixed value


Stefan Bachert
http://gwtworld.de

On 19 Jul., 10:19, Sorinel C scristescu...@hotmail.com wrote:
 I have used the following code, trying to detect the client's locale,
 but always I get the default one, which is the EN_US, even if I
 change the locale of my system to French, for example.

 [code]
                 final LocaleInfo locale = LocaleInfo.getCurrentLocale();
                 decimalSeparator = 
 locale.getNumberConstants().decimalSeparator();
                 thousandSeparator = 
 locale.getNumberConstants().groupingSeparator();
 [/code]

 So, can anybody advise me what  I miss, please?

 Thanks!

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



Re: need best GWT book for a begginner to start career

2010-07-19 Thread Akshay Kumar
I suggest - start with the
http://code.google.com/webtoolkit/doc/latest/tutorial/
Follow its all the steps, get your hands dirty and dirtier.
And then if you still need to learn from examples, then I liked the contents
of this book:
1. Google Web Toolkit - Applications by Ryan dewsbury (
http://www.gwtapps.com/)
2. Google Web Toolkit Solutions - David Geary

I am sure there must be more books, but gwt tutorial + 1-2 books is more
than enough and then just get working.

Just now saw your requirement - free of cost - in that case, just keep
searching.
-akshay
P.S. even if you have to pay for the top rated books, its well worth it.

On 19 July 2010 18:13, Santosh kumar kopp@gmail.com wrote:



 hi,

 this is santosh,
 i got a job on java platform, so here im working on eclipse environment
 also im using GOOFLE WEB TOOLKIT ..

 but im facing difficulty in understanding the concept of GWT
 so please will u suggest me the best GWT book

 or  send me the link where i can download book for free of cost !!




 --
 Thanks  Regards

 S a n t o s h  k u m a r . k




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


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



Re: DeferredCommand. When should an RPC use it?

2010-07-19 Thread Stefan Bachert
Hi,

I do not see a specific relationship between RPC and deferred command.

You could you deferred command to have a easy trigger after all
done.
For example:

Assume you are using method chaining / fluent interfaces or similar
techniques.
With a deferred command you could solve the finishing problem.
The first call to a method chaining command is also scheduling the
finishing method.

Stefan Bachert
http://gwtworld.de


On 16 Jul., 20:33, alan alan.sny...@gmail.com wrote:
 I'm trying to understand when an RPC call should use a
 DeferredCommand, when is should include an addPause and when an RPC
 call should not use a DeferredCommand.

 I'm working on a case when I've got a widget that needs to load a
 dozen or so ListBoxes. Because of the service layer each one is a
 different RPC call, so when this widget is loaded a dozen RPC calls
 will occur at once. Since this widget doesn't need to be fully loaded
 instantaneously slowing down the rate of calls and even making them
 serial would be fine.

 So, I put all of the calls to load this widget into a DeferredCommand
 and also added a addPause to each. My observation on FireBug is the
 call are all still nearly fired off simultaneously although not as
 quickly. It wasn't quite what I expected.

 I've got other calls that happen as part of a user pressing a button,
 or on a timer that currently are not using the DeferredCommand, but
 I'm wondering if they should.

 Any comments on guidelines for using DeferredCommand and addPause are
 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Eclipse - Google Addons are gone after update

2010-07-19 Thread Magnus
Hi Jec!

On Jul 18, 5:53 am, Jeff Chimene jchim...@gmail.com wrote:
  drwxr-sr-x  3 rootroot  4096 2010-07-18 05:07 .
  drwxr-sr-x 12 rootroot  4096 2010-07-12 19:10 ..
  drwxrwsr-x  9 Debian-exim users 4096 2010-06-17 17:15 eclipse

 Well, it's pretty clear that you're not root when the files were
 extracted.

I told that I extracted the files as root.

 Somehow your UID is Debian-exim:users. That's not good.

Maybe, but the explanation cannot be that the file was not extracted
as root.

  Do you mean that during the upgrade files are downloaded and stored
  under the eclipse directory folder, which is owned by root and that
  the files cannot be written?

 Running as a regular user, I *think* eclipse writes plugins into your
 local directory.

Do you mean in my home directory, ~? Instead of a subdirectory of /usr/
local/eclipse? That does not sound good...

 What other plugins do you use? Are there issues w/ those?

I never had such issues, and I installed a lot of plugins (web tools
and so on).

Magnus

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



Re: Eclipse - Google Addons are gone after update

2010-07-19 Thread Magnus
Well, I just found that tar tvfz eclipse-archive shows tomcat/
users as the owner of the files.

I think that this UID corresponds to my Debian-exim id.

However, I extract the tar files with tar xvfz.

Magnus

On Jul 18, 7:12 am, Jeff Chimene jchim...@gmail.com wrote:
 On Sat, Jul 17, 2010 at 8:53 PM, Jeff Chimene jchim...@gmail.com wrote:
  On 07/17/2010 08:23 PM, Magnus wrote:
   Hi Rajeev!

   I always installed eclipse as root, i. e. extracting the tar archive
   as root into /usr/local/eclipse and changing the ownership of all
   files and folders to root.

   You shouldn't need to change the ownership. If you're really extracting
  the
   files as root, then they are already owned by root.

   No:
   drwxr-sr-x  3 rootroot  4096 2010-07-18 05:07 .
   drwxr-sr-x 12 rootroot  4096 2010-07-12 19:10 ..
   drwxrwsr-x  9 Debian-exim users 4096 2010-06-17 17:15 eclipse

 Do you remember the tar command you use to extract the files? I'm wondering
 if you're preserving the owner  specified in the ** archive.

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



Re: A couple of (probably) simple questions about using _escaped_fragment_ / ajax crawl-able.

2010-07-19 Thread darkflame
Thanks that clears things up a lot.
I'll change them all to #!.

I knew that if I used ? the user would need page refreshes, but this
would only have been seen if the user has javascript disabled. I
figured I could possibly use the search-engine crawlable version also
has a javascriptless version of the site.
I guess I can still do that..maybe if I use #! for the links when
_escaped_fragment_  is in the url, and ? if it isn't, but
javascript is disabled.
(If JavaScript is enabled, ?'s can be changed to #s as long as
_escaped_fragment_ isn't there).
I think that will work.

I certainly dont want any crawlers treating the site as separate, as
page-for-page the content will be the same.


On Jul 19, 2:51 pm, Katharina Probst kpro...@google.com wrote:
 That's right - you'll want #!.

 You don't want to use _escaped_fragment_ because that's just meant as a
 temporary URL between the crawler and your site, not for the user (remember
 that if your user would click on _escaped_fragment_, they'll get a rendered
 snapshot, not a functioning JavaScript page, so none of the buttons etc
 would be enabled).

 If you use ?, you'll always have to do a full reload of the page, rather
 than with # or #!, in which case you can use XHRs (maybe GWT RPC in your
 case) to reload only part of the page, which can make for a much better user
 experience.

 If you use #, then the crawler won't interpret is as a JavaScript URL in the
 scheme, which means it won't ask you for the _escaped_fragment_ version and
 thus won't index your content.  (all it'll see is some script src ... tag,
 not very useful). You also don't want # and #! versions of the same URL with
 the same content floating around - unless you make sure the crawler knows
 they're the same, the crawler could treat them as separate, which can't be
 good for your search results.

 kathrin



 On Mon, Jul 19, 2010 at 4:55 AM, RPB robbol...@gmail.com wrote:
  I always use the #!meep syntax, which when the google crawler sees
  it interprets as ?_escape_fragment. I seem to recall reading in the
  google documentation that this is the correct way to do it.

  -Rob

  On Jul 17, 8:12 pm, darkflame darkfl...@gmail.com wrote:
   Thanks for both your help I'm almost there now.
   The  $param= $_GET['_escaped_fragment_']; worked fine, now the rest of
   my php works.

   One other query, however; What should the links generated by this php
   file return?
   If my normal code set history to something like #meep (which would
   now be #!meep) should the static page have that link set to #meep
   #!meep ?meep or even ?_escape_fragment_

   I assume I could use #! that googles crawler would automatically
   change to ?_escape_fragment_ but wouldn't it be better to give it
   directly? or would that not associate the links correctly? Of course,
   if I stuck to just using ? then it would make the site browsable for
   people with JavaScript turned of too.

   -Thomas

   On Jul 14, 10:05 am, RPB robbol...@gmail.com wrote:

Hi darkflame,

Not sure I fully understand your second question, but you should be
able to just use $param= $_GET['_escaped_fragment_']; and then process
the code as normal.
Also, the 'Fetch with googlebot' tool in Webmaster tools is very
helpful, showing you exactly what google will actually be crawling.

Cheers,
Robwww.yournextread.com

On Jul 11, 12:07 am, darkflame darkfl...@gmail.com wrote:

 a) As my server doesn't support server-side java, I'll be using php
  to
 generate the static/snapshot pages. How close do they have to be to
 the proper/GWT ones? Is it good enough if the text and links are
 exactly samebut not the images/layout?  I dont want to be accused
 of spoofing, but replicating the layout exact will prove a lot of
 work.

 b) Is there an easy way to parse the new urls? I used to use just GET
 in PHP to retrieve each expected key/value, but this doesnt work now
 that _escaped_fragment_ has been added at the start.  Is there a
 recommended method? or do I just code my own parser?

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

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



Adding Log4J to GWT?

2010-07-19 Thread AthlonRob
Is there a simple way to add Log4J ability to GWT?

I am using GWT with MyBatis (formerly iBatis) and am having a
problem.  If I drop log4j-1.2.16.jar in to my classpath, as soon as I
obtain a MyBatis connection, it starts throwing exceptions:

   [WARN] Exception while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract project.shared.beans.AARBean
project.client.services.AARService.getAARFromServer(long) throws
java.lang.IllegalArgumentException' threw an unexpected exception:
java.lang.ExceptionInInitializerError
at
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
378)
at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
581)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
188)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
224)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
362)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
181)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
729)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at
org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:
49)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
505)
at org.mortbay.jetty.HttpConnection
$RequestHandler.content(HttpConnection.java:843)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
395)
at org.mortbay.thread.QueuedThreadPool
$PoolThread.run(QueuedThreadPool.java:488)
Caused by: java.lang.ExceptionInInitializerError
at
org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:
44)
at
project.server.data.ConnectionFactory.init(ConnectionFactory.java:
59)
at
project.server.data.ConnectionFactory.getTheConnectionFactory(ConnectionFactory.java:
86)
at project.server.data.AARDAO.clinit(AARDAO.java:13)
at
project.handlers.AARServiceImpl.getAARFromServer(AARServiceImpl.java:
21)
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.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
562)
... 22 more
Caused by: org.apache.ibatis.logging.LogException: Error creating
logger for class interface java.sql.Connection.  Cause:
java.lang.reflect.InvocationTargetException
at org.apache.ibatis.logging.LogFactory.getLog(LogFactory.java:43)
at
org.apache.ibatis.session.defaults.DefaultSqlSessionFactory.clinit(DefaultSqlSessionFactory.java:
21)
... 32 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.apache.ibatis.logging.LogFactory.getLog(LogFactory.java:41)
... 33 more
Caused by: org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: No suitable Log
constructor [Ljava.lang.Class;@10f5104 for
org.apache.commons.logging.impl.Log4JLogger (Caused by
java.lang.NoClassDefFoundError: org/apache/log4j/Category) (Caused by
org.apache.commons.logging.LogConfigurationException: No suitable Log
constructor [Ljava.lang.Class;@10f5104 for
org.apache.commons.logging.impl.Log4JLogger (Caused by
java.lang.NoClassDefFoundError: org/apache/log4j/Category))
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:
543)
at

Re: GinInjection

2010-07-19 Thread Eric


On Jul 18, 10:48 am, Thomas Broyer t.bro...@gmail.com wrote:
 GIN and UiBinder don't know of each other. If you want your instances
 injected by GIN, then you should provide them to UiBinder so it
 doesn't instantiate them by itself. This is generally done using
 @UiField(provided=true), and initializing the field (view GIN)
 *before* calling createAndBindUi.

One example in my code was that I needed to create
a SuggestBox with a custom SuggestOracle. The oracle
can be set only in the box's constructor, and so I injected
the oracle into the class and used @UiField(provided=true)
to allow my version to be used.

Eric

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



Java 7 And Closures

2010-07-19 Thread Daniel Simons
Hey Guys,

I was wondering if there have been plans centered around including Java 7
features such as closures to future versions of GWT.

Thanks,
Daniel

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



Re: Java 7 And Closures

2010-07-19 Thread Nabeel Ali Memon
I guess GWT has been in great need of Closures. Just look at all the async
callbacks. So i think we'll see a quick adoption of Closures, at least.

Nabeel

On Mon, Jul 19, 2010 at 10:48 PM, Daniel Simons daniel.simo...@gmail.comwrote:

 Hey Guys,

 I was wondering if there have been plans centered around including Java 7
 features such as closures to future versions of GWT.

 Thanks,
 Daniel

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


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



Re: Java 7 And Closures

2010-07-19 Thread dolcra...@gmail.com
I think GWT should refrain from including Java 7 features until it is
released at least...

On Jul 19, 1:48 pm, Daniel Simons daniel.simo...@gmail.com wrote:
 Hey Guys,

 I was wondering if there have been plans centered around including Java 7
 features such as closures to future versions of GWT.

 Thanks,
 Daniel

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



Re: Software testing

2010-07-19 Thread Peter Simun
Don't forget to have a look on GWT testing best practices presented on
Google I/O 2010:

http://www.youtube.com/watch?v=T_CLzgEL7FA

Peter

On 15. Júl, 00:39 h., Thomas Broyer t.bro...@gmail.com wrote:
 On 13 juil, 00:17, anabillo bilal.all...@gmail.com wrote:

  Hello Guys ,

  I start writing a blog about software testing and I really need a hand
  in that, I will write a different chapters of testing the software , I
  will start with the concept of design for testability which means
  how to build a software that can be tested in the future , if any one
  know where I can find  more resources about this topic or would like
  to participate , please reply to this message even with links,
  thoughts, ideas or any thing that you see useful.

 I'd start there for anything 
 testing-related:http://googletesting.blogspot.com/

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



Re: Client-server synchronizing problems

2010-07-19 Thread Gustavo
Hi Raj,

Thank you for your suggesion, i will try it as soon as i can
understand it correctly, my skills are really not good, so i have to
struggle a little.

Btw, i don't know about this hanging problem on IE8, what causes it?
can you reproduce it?

Thanks again,
Gustavo

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



Share user input data from + MVP + Lady_Gaga

2010-07-19 Thread mk
Following is one of MVP sequence for TWO widgets

1) 1st VIEW has a simple textbox and submit button, wherein use enters
her name Lady_Gaga and click submit.
2) 1st PRESENTER fires an event on submit_button_click.
3) 2nd PRESENTER catches that event and displays 2nd VIEW as dialog
box with user entered name Lady_Gaga


Question) How user entered name Lady_Gaga be passed from 1st VIEW to
2nd 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Adding Log4J to GWT?

2010-07-19 Thread Freller

Try http://code.google.com/p/gwt-log/ very good integration with log4j

Regards,
Freller


On Jul 19, 1:15 pm, AthlonRob athlon...@gmail.com wrote:
 Is there a simple way to add Log4J ability to GWT?

 I am using GWT with MyBatis (formerly iBatis) and am having a
 problem.  If I drop log4j-1.2.16.jar in to my classpath, as soon as I
 obtain a MyBatis connection, it starts throwing exceptions:

    [WARN] Exception while dispatching incoming RPC call
 com.google.gwt.user.server.rpc.UnexpectedException: Service method
 'public abstract project.shared.beans.AARBean
 project.client.services.AARService.getAARFromServer(long) throws
 java.lang.IllegalArgumentException' threw an unexpected exception:
 java.lang.ExceptionInInitializerError
         at
 com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
 378)
         at
 com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
 581)
         at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServi 
 ceServlet.java:
 188)
         at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServi 
 ceServlet.java:
 224)
         at
 com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(Abstract 
 RemoteServiceServlet.java:
 62)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
 487)
         at
 org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
 362)
         at
 org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
 216)
         at
 org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
 181)
         at
 org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
 729)
         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
 405)
         at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
 152)
         at
 org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:
 49)
         at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
 152)
         at org.mortbay.jetty.Server.handle(Server.java:324)
         at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
 505)
         at org.mortbay.jetty.HttpConnection
 $RequestHandler.content(HttpConnection.java:843)
         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
         at
 org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
 395)
         at org.mortbay.thread.QueuedThreadPool
 $PoolThread.run(QueuedThreadPool.java:488)
 Caused by: java.lang.ExceptionInInitializerError
         at
 org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryB 
 uilder.java:
 44)
         at
 project.server.data.ConnectionFactory.init(ConnectionFactory.java:
 59)
         at
 project.server.data.ConnectionFactory.getTheConnectionFactory(ConnectionFac 
 tory.java:
 86)
         at project.server.data.AARDAO.clinit(AARDAO.java:13)
         at
 project.handlers.AARServiceImpl.getAARFromServer(AARServiceImpl.java:
 21)
         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.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
 562)
         ... 22 more
 Caused by: org.apache.ibatis.logging.LogException: Error creating
 logger for class interface java.sql.Connection.  Cause:
 java.lang.reflect.InvocationTargetException
         at org.apache.ibatis.logging.LogFactory.getLog(LogFactory.java:43)
         at
 org.apache.ibatis.session.defaults.DefaultSqlSessionFactory.clinit(Defaul 
 tSqlSessionFactory.java:
 21)
         ... 32 more
 Caused by: java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
 Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
 Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at org.apache.ibatis.logging.LogFactory.getLog(LogFactory.java:41)
         ... 33 more
 Caused by: org.apache.commons.logging.LogConfigurationException:
 org.apache.commons.logging.LogConfigurationException: No suitable Log
 constructor [Ljava.lang.Class;@10f5104 for
 org.apache.commons.logging.impl.Log4JLogger (Caused by
 java.lang.NoClassDefFoundError: org/apache/log4j/Category) (Caused by
 org.apache.commons.logging.LogConfigurationException: No suitable Log
 

Need strategy to implement window layout

2010-07-19 Thread David Vree
Brand new GWT developer here -- tasked with implementing a thin client
that will replace a rich client .NET program that used to make use of
this dockable window library:

http://www.divelements.com/net/controls/sanddock/screenshots.aspx

I'm currently struggling with the layout of the main window.  It is
fairly standard with a nearly static header at the top, fixed height
status pane at the bottom, hideable navigation window to the left
(west) and a master/detail form in the middle, and hideable help pane
to the right (east).  After some investigation and coding, it looks
like SplitLayoutPanel may be what I need, but I have questions:

1) How do I make it so that it properly reacts to window resize
events?  Do I have to code this myself? Is there a better way?

2) Can I get rid of the splitters below the header and above the
status bar.  If this is not possible, should I just use a
VerticlePanel and put the SplitLayoutPanel in the middle?

3) How do I make it so that the master pane can be dragged and
dropped below the navigation pane.  This is an important capability
for users because it allows them to maximize the detail area while
keeping the master items visible.

4) What kind of pane should I use for the hidable panes?  How do I
animate the showing/hiding?


Sorry for all the newbie questions.  Thanks for any help!

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



Re: Remove event handlers or not?

2010-07-19 Thread jay
Where do you see the automatic removal of handlers? There's nothing
when a widget is unloaded, and I can't find anything that would do any
cleanup.  Maybe there's some code somewhere to do cleanup as the app
is shutting down?

I'm *really* interested in this because I'm in the process of tracking
down what appear to be some memory leaks as I navigate between
screens in my app.

thanks,

jay

On Jul 14, 4:34 am, Paul Stockley pstockl...@gmail.com wrote:
 You don't need to. I traced the code a while back and it takes care of
 it.

 On Jul 13, 5:50 pm, Gal Dolber gal.dol...@gmail.com wrote:



  Anyone??

  2010/7/13 Gal Dolber gal.dol...@gmail.com

   Hi, someone knows for sure if its necessary toremoveevent handlers when
   weremovea widget? will I get memory leaks if I don't?

   i.e:
   HandlerRegistration registration = button.addClickHandler(myHandler);
   ...
   // IS THIS NECESSARY?
   public void fakeCleanerMethodBeforeIRemoveTheWidget() {
       registration.removeHandler();
   }

   I thought that answer was YES, but then I notice that @UiHandlers in
   uibinder have no way toremovethehandler.

   I don't think the gwt's team will make that mistake.

   Can someone confirm? Thanks

   --
  http://gwtupdates.blogspot.com/

  --http://gwtupdates.blogspot.com/

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



Share user input data within MVP + Lady_Gaga

2010-07-19 Thread mk
How to share user input data within MVP.

Following is one of MVP sequence for TWO widgets

1) 1st VIEW has a simple textbox and submit button, wherein use
enters
her name Lady_Gaga and click submit.
2) 1st PRESENTER fires an event ( cuz of button click).
3) 2nd PRESENTER catches that event and displays 2nd VIEW as dialog
box with user entered name Lady_Gaga

Question) How user entered name Lady_Gaga be passed from 1st VIEW
to
2nd 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Eclipse - Google Addons are gone after update

2010-07-19 Thread Jeff Chimene
On 07/19/2010 07:44 AM, Magnus wrote:
 Well, I just found that tar tvfz eclipse-archive shows tomcat/
 users as the owner of the files.
 
 I think that this UID corresponds to my Debian-exim id.
 
 However, I extract the tar files with tar xvfz.
 
 Magnus

OK. I can reproduce what you're seeing.

I cannot explain, even when you install the GPE into the archive, it
doesn't work. When you install as root, it does (did I get that right?)

One further question (I think the answer to this is yes) do you delete
the eclipse directory before installing? That's one of the reasons I use
update-alternatives. After extracting the archive, I move the directory
to the specific version: mv eclipse eclipse-3.6 and use
update-alternatives to point to that directory. In this way, I can be
sure of a clean installation, and I also have a backup version in case
things go sideways.

Anyway, after extracting the archive as tar xvzf archive the
directory is owned by root:root, but the ownership of files in that
hasn't changed (still tomcat/users).

So, I used the following tar command
tar --owner=root --no-same-owner -vxzf
/tmp/eclipse-jee-helios-linux-gtk.tar.gz

 
 On Jul 18, 7:12 am, Jeff Chimene jchim...@gmail.com wrote:
 On Sat, Jul 17, 2010 at 8:53 PM, Jeff Chimene jchim...@gmail.com wrote:
 On 07/17/2010 08:23 PM, Magnus wrote:
 Hi Rajeev!

 I always installed eclipse as root, i. e. extracting the tar archive
 as root into /usr/local/eclipse and changing the ownership of all
 files and folders to root.

 You shouldn't need to change the ownership. If you're really extracting
 the
 files as root, then they are already owned by root.

 No:
 drwxr-sr-x  3 rootroot  4096 2010-07-18 05:07 .
 drwxr-sr-x 12 rootroot  4096 2010-07-12 19:10 ..
 drwxrwsr-x  9 Debian-exim users 4096 2010-06-17 17:15 eclipse

 Do you remember the tar command you use to extract the files? I'm wondering
 if you're preserving the owner  specified in the ** archive.
 

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



Re: Share user input data within MVP + Lady_Gaga

2010-07-19 Thread Arthur Kalmenson
Isn't the second presenter setting the value in the second view based
on the event it just caught? You're describing the interaction right
there.

--
Arthur Kalmenson



On Mon, Jul 19, 2010 at 5:54 PM, mk munna.kaka.ch...@gmail.com wrote:
 How to share user input data within MVP.

 Following is one of MVP sequence for TWO widgets

 1) 1st VIEW has a simple textbox and submit button, wherein use
 enters
 her name Lady_Gaga and click submit.
 2) 1st PRESENTER fires an event ( cuz of button click).
 3) 2nd PRESENTER catches that event and displays 2nd VIEW as dialog
 box with user entered name Lady_Gaga

 Question) How user entered name Lady_Gaga be passed from 1st VIEW
 to
 2nd 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-tool...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.



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



Re: Need strategy to implement window layout

2010-07-19 Thread Thomas Broyer


On 19 juil, 23:01, David Vree david.h.v...@gmail.com wrote:
 Brand new GWT developer here -- tasked with implementing a thin client
 that will replace a rich client .NET program that used to make use of
 this dockable window library:

 http://www.divelements.com/net/controls/sanddock/screenshots.aspx

 I'm currently struggling with the layout of the main window.  It is
 fairly standard with a nearly static header at the top, fixed height
 status pane at the bottom, hideable navigation window to the left
 (west) and a master/detail form in the middle, and hideable help pane
 to the right (east).  After some investigation and coding, it looks
 like SplitLayoutPanel may be what I need, but I have questions:

Because not all panels should be resizable, I'd rather go with a
DockLayoutPanel; eventually mixing it with a SplitLayoutPanel:
DockLayoutPanel for north+south, SplitLayoutPanel in the center with
resizable east and west regions.

 1) How do I make it so that it properly reacts to window resize
 events?  Do I have to code this myself? Is there a better way?

Layout panels should handle it automatically, provided you add them to
the RootLayoutPanel.

 2) Can I get rid of the splitters below the header and above the
 status bar.  If this is not possible, should I just use a
 VerticlePanel and put the SplitLayoutPanel in the middle?

See above: DockLayoutPanel w/ nested SplitLayoutPanel.

 3) How do I make it so that the master pane can be dragged and
 dropped below the navigation pane.  This is an important capability
 for users because it allows them to maximize the detail area while
 keeping the master items visible.

GWT doesn't provide anything for drag'n'drop, though there are 3rd-
party libs, such as gwt-dnd. But, honestly, it'd probably be a big
amount of work to plug this into a LayoutPanel...
If you can, replace DnD with some other interaction: for instance,
some kind of maximize button to move the master to the west in one
click.

 4) What kind of pane should I use for the hidable panes?

If you really want click to hide (or the reverse, click to pin),
you'd probably rather use a LayoutPanel which has a setWidgetVisible
method, than a DockLayoutPanel or SplitLayoutPanel (but of course
you'd lose the splitters). It might be possible to extend
SplitLayoutPanel though and play directly with the LayoutData
associated with widgets.

 How do I animate the showing/hiding?

AnimatedLayout (LayoutPanel, DockLayoutPanel, SplitLayoutPanel) panels
have an animate(int) method.

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



Re: Remove event handlers or not?

2010-07-19 Thread Thomas Broyer


On 19 juil, 23:15, jay jay.gin...@gmail.com wrote:
 Where do you see the automatic removal of handlers? There's nothing
 when a widget is unloaded, and I can't find anything that would do any
 cleanup.  Maybe there's some code somewhere to do cleanup as the app
 is shutting down?

onDetach calls setEventListener(getElement(), null) which is enough to
mitigate memory leaks:
http://code.google.com/p/google-web-toolkit/wiki/DomEventsAndMemoryLeaks
And on window.onunload, all RootPanels and wrap()ed widgets are
detached, so their onDetach method is called (which recursively detach
their children).

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



Re: Eclipse - Google Addons are gone after update

2010-07-19 Thread Rajeev Dayal
As an FYI, this issue is being tracked here:

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

On Mon, Jul 19, 2010 at 5:57 PM, Jeff Chimene jchim...@gmail.com wrote:

 On 07/19/2010 07:44 AM, Magnus wrote:
  Well, I just found that tar tvfz eclipse-archive shows tomcat/
  users as the owner of the files.
 
  I think that this UID corresponds to my Debian-exim id.
 
  However, I extract the tar files with tar xvfz.
 
  Magnus

 OK. I can reproduce what you're seeing.

 I cannot explain, even when you install the GPE into the archive, it
 doesn't work. When you install as root, it does (did I get that right?)

 One further question (I think the answer to this is yes) do you delete
 the eclipse directory before installing? That's one of the reasons I use
 update-alternatives. After extracting the archive, I move the directory
 to the specific version: mv eclipse eclipse-3.6 and use
 update-alternatives to point to that directory. In this way, I can be
 sure of a clean installation, and I also have a backup version in case
 things go sideways.

 Anyway, after extracting the archive as tar xvzf archive the
 directory is owned by root:root, but the ownership of files in that
 hasn't changed (still tomcat/users).

 So, I used the following tar command
 tar --owner=root --no-same-owner -vxzf
 /tmp/eclipse-jee-helios-linux-gtk.tar.gz

 
  On Jul 18, 7:12 am, Jeff Chimene jchim...@gmail.com wrote:
  On Sat, Jul 17, 2010 at 8:53 PM, Jeff Chimene jchim...@gmail.com
 wrote:
  On 07/17/2010 08:23 PM, Magnus wrote:
  Hi Rajeev!
 
  I always installed eclipse as root, i. e. extracting the tar archive
  as root into /usr/local/eclipse and changing the ownership of all
  files and folders to root.
 
  You shouldn't need to change the ownership. If you're really
 extracting
  the
  files as root, then they are already owned by root.
 
  No:
  drwxr-sr-x  3 rootroot  4096 2010-07-18 05:07 .
  drwxr-sr-x 12 rootroot  4096 2010-07-12 19:10 ..
  drwxrwsr-x  9 Debian-exim users 4096 2010-06-17 17:15 eclipse
 
  Do you remember the tar command you use to extract the files? I'm
 wondering
  if you're preserving the owner  specified in the ** archive.
 

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



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



Re: Remove event handlers or not?

2010-07-19 Thread Blagoja Chavkoski
Hi,

I have some small question related to events..but other way around:
How can we fire a native(browser) event in gwt 2.xx ?!  On 1.6 there was a
method.Document.fireXXXEvent
but not in the newer relies.

tnx!

On Tue, Jul 20, 2010 at 12:23 AM, Thomas Broyer t.bro...@gmail.com wrote:



 On 19 juil, 23:15, jay jay.gin...@gmail.com wrote:
  Where do you see the automatic removal of handlers? There's nothing
  when a widget is unloaded, and I can't find anything that would do any
  cleanup.  Maybe there's some code somewhere to do cleanup as the app
  is shutting down?

 onDetach calls setEventListener(getElement(), null) which is enough to
 mitigate memory leaks:
 http://code.google.com/p/google-web-toolkit/wiki/DomEventsAndMemoryLeaks
 And on window.onunload, all RootPanels and wrap()ed widgets are
 detached, so their onDetach method is called (which recursively detach
 their children).

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



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



Re: Remove event handlers or not?

2010-07-19 Thread jay
Ah, so that's good for handlers of *DOM* events [e.g., using
addDomHandler()]. For logical events [those added via addHandler()],
however, it seems like you may still need to manually remove
listeners.

Is that correct?

thanks!

jay

On Jul 19, 3:23 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 19 juil, 23:15, jay jay.gin...@gmail.com wrote:

  Where do you see the automatic removal of handlers? There's nothing
  when a widget is unloaded, and I can't find anything that would do any
  cleanup.  Maybe there's some code somewhere to do cleanup as the app
  is shutting down?

 onDetach calls setEventListener(getElement(), null) which is enough to
 mitigate memory 
 leaks:http://code.google.com/p/google-web-toolkit/wiki/DomEventsAndMemoryLeaks
 And on window.onunload, all RootPanels and wrap()ed widgets are
 detached, so their onDetach method is called (which recursively detach
 their children).

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



Re: Error while running my web app....

2010-07-19 Thread Blagoja Chavkoski
Compile the application...u made a big changes probably (I would say u
implement locale or something like that )
so the app dose not have all needed permutations for the pages.

Just compile, if using gwt plugin for eclipse the red icon..if using stand
alone with ant build then call compile target from the build file



On Mon, Jul 19, 2010 at 1:32 PM, rohit kumra rohit.kumra...@gmail.comwrote:

 GWT module abc may need to be (re)compiled.
 can anybody plz tel me the solution to this prob...?

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



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



Re: Share user input data within MVP + Lady_Gaga

2010-07-19 Thread mk
Thanks a lot.

Now if there are three DIFFERENT presenters (say 2a,2b,2c) listening
event from 1st presenter.
Than do 1st presenter has to create event with all the appro. values
required by 2a,2b,2c presenters?

Plz respond.


On Jul 19, 3:59 pm, Arthur Kalmenson arthur.k...@gmail.com wrote:
 Isn't the second presenter setting the value in the second view based
 on the event it just caught? You're describing the interaction right
 there.

 --
 Arthur Kalmenson



 On Mon, Jul 19, 2010 at 5:54 PM, mk munna.kaka.ch...@gmail.com wrote:
  How to share user input data within MVP.

  Following is one of MVP sequence for TWO widgets

  1) 1st VIEW has a simple textbox and submit button, wherein use
  enters
  her name Lady_Gaga and click submit.
  2) 1st PRESENTER fires an event ( cuz of button click).
  3) 2nd PRESENTER catches that event and displays 2nd VIEW as dialog
  box with user entered name Lady_Gaga

  Question) How user entered name Lady_Gaga be passed from 1st VIEW
  to
  2nd 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-tool...@googlegroups.com.
  To unsubscribe from this group, send email to 
  google-web-toolkit+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://groups.google.com/group/google-web-toolkit?hl=en.- Hide quoted 
  text -

 - Show quoted text -

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



GWT UI spacing issue

2010-07-19 Thread vbhansaly
Hi,
I have designed a GWT based form in my webapp.
It looks fine in firefox at normal zoom level (ctrl + 0).
However with each zoom in (ctrl + -)  the spacing between the form
fields tends to decrease.

Which layout should be layout used to prevent the above issue.

Thanks,

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



Re: Need strategy to implement window layout

2010-07-19 Thread David Vree
Thank you very much for the big help.

To take advantage of window resizing, should I be setting the size of
the panes as a percentage (of total window size)?


On Jul 19, 6:19 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 19 juil, 23:01, David Vree david.h.v...@gmail.com wrote:

  Brand new GWT developer here -- tasked with implementing a thin client
  that will replace a rich client .NET program that used to make use of
  this dockable window library:

 http://www.divelements.com/net/controls/sanddock/screenshots.aspx

  I'm currently struggling with the layout of the main window.  It is
  fairly standard with a nearly static header at the top, fixed height
  status pane at the bottom, hideable navigation window to the left
  (west) and a master/detail form in the middle, and hideable help pane
  to the right (east).  After some investigation and coding, it looks
  like SplitLayoutPanel may be what I need, but I have questions:

 Because not all panels should be resizable, I'd rather go with a
 DockLayoutPanel; eventually mixing it with a SplitLayoutPanel:
 DockLayoutPanel for north+south, SplitLayoutPanel in the center with
 resizable east and west regions.

  1) How do I make it so that it properly reacts to window resize
  events?  Do I have to code this myself? Is there a better way?

 Layout panels should handle it automatically, provided you add them to
 the RootLayoutPanel.

  2) Can I get rid of the splitters below the header and above the
  status bar.  If this is not possible, should I just use a
  VerticlePanel and put the SplitLayoutPanel in the middle?

 See above: DockLayoutPanel w/ nested SplitLayoutPanel.

  3) How do I make it so that the master pane can be dragged and
  dropped below the navigation pane.  This is an important capability
  for users because it allows them to maximize the detail area while
  keeping the master items visible.

 GWT doesn't provide anything for drag'n'drop, though there are 3rd-
 party libs, such as gwt-dnd. But, honestly, it'd probably be a big
 amount of work to plug this into a LayoutPanel...
 If you can, replace DnD with some other interaction: for instance,
 some kind of maximize button to move the master to the west in one
 click.

  4) What kind of pane should I use for the hidable panes?

 If you really want click to hide (or the reverse, click to pin),
 you'd probably rather use a LayoutPanel which has a setWidgetVisible
 method, than a DockLayoutPanel or SplitLayoutPanel (but of course
 you'd lose the splitters). It might be possible to extend
 SplitLayoutPanel though and play directly with the LayoutData
 associated with widgets.

  How do I animate the showing/hiding?

 AnimatedLayout (LayoutPanel, DockLayoutPanel, SplitLayoutPanel) panels
 have an animate(int) method.

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



Cache static data?

2010-07-19 Thread mk
How to cache data in browser.

I want to cache data which changes infrequently (thus static common
data changing bi-weekly and NOT html, js, css etc).


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



GWT response is allowing only boolean value in IE

2010-07-19 Thread raj
Hi All,

I am new to GWT, when i am passing GWT response from server as String
value,
it is going to infinite state in IE. But in Mozilla String response
is getting well with
html tag pSuccess/p .
Here is the code what i am doing is
At client request:
save.addListener(new ButtonListenerAdapter() {
@Override
public void onClick(com.gwtext.client.widgets.Button 
button,
EventObject e) {
String strLoadMsg = Saving...;
strURL = strSericeURL + 
method=saveCameraSession;
formPanelList.getForm().submit(strURL, 
null,
Connection.POST,strLoadMsg, true);
formPanelList.getForm().addListener(new 
FormListener() {
@Override
public void onActionFailed(Form 
form, int httpStatus,
String 
responseText) {

}

@Override
public void 
onActionComplete(Form form, int httpStatus,
String 
responseText) {
Window.alert(responseText);  
//here is the response Success
should come

}

@Override
public boolean 
doBeforeAction(Form form) {
// TODO Auto-generated 
method stub
return true;
}
});
}
});




At server response:
String resp = Success;
response.getWriter().print(resp);

After completion of request, the response is going to infinite loop in
IE.

If you found any solution  please share it.


Thanks in Advance,

Raj.


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



Re: The new shiny GwtRpcCommLayer

2010-07-19 Thread monkeyboy
Jeff kindly answered here:
http://groups.google.com/group/gwtrpccommlayer/browse_thread/thread/8ab1139854ef8858

On Jul 15, 4:19 pm, monkeyboy dilbert.elbo...@gmail.com wrote:
 This is great news for 
 me:http://googlewebtoolkit.blogspot.com/2010/07/gwtrpccommlayer-extendin...

 It is about a GWT RPC library that works on any Java client. I would
 like to give some suggestions to the developer(s) of the library.

 1. The server side should work on GAE.
 2. The developers should be able to access the RPC client somehow to
 be able to handle Cookies or other http headers.
 3. The client side should work on Android.

 I would like to hear from the developers if they read this. Have they
 or will they implement any or all of this features?

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



[gwt-contrib] Re: ActivityManager support for RunAsync

2010-07-19 Thread Ben Harris
GIN trunk has AsyncProviders which are a nicer solution.

On Jul 19, 9:40 am, jarrod jarrod.carl...@gmail.com wrote:
 I thought it might be helpful if, in the upcoming 2.1 release,
 ActivityManager and ActivityMapper could easily accommodate the use of
 RunAsync for code splitting. To make this happen, a slight change in
 the contracts between the two has to occur.

 Anyway, I filed an issue with a suggested 
 patch.http://code.google.com/p/google-web-toolkit/issues/detail?id=5129

 Thoughts?

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


[gwt-contrib] Re: Adds Java classes for JSON serialization/deserialization to complement (issue696801)

2010-07-19 Thread zundel

Thanks for all the feedback.  My responses to the comments from the
Rays, Thomas, John and Scott:

- We need functionality in the compiler to create JSON output to create
a performance analysis tool.  We are just using JSON as an exported data
format, so being able to serialize a POJO isn't a big win for this
application.

- This library is very lightweight, that's another reason we chose it.

- We can also import it directly into GWT instead of pulling in another
third party dependency into the compiler.

- Currently it is possible, yet awkward to share code between the dev
library (compiler) and the user library.

- It might be a good model for sharing across client and server, but
there are some interesting design considerations.  It will take care and
thorough review to get that right if we are going to promote this as a
replacement for the existing JSON API.

-Eric.

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

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


[gwt-contrib] Add first-class support for [array].length in the compiler. (issue702801)

2010-07-19 Thread tobyr

Reviewers: scottb,

Description:
Add first-class support for [array].length in the compiler.

Review by: sco...@google.com

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

Affected files:
  M dev/core/src/com/google/gwt/dev/jjs/ast/JVisitor.java
  M dev/core/src/com/google/gwt/dev/jjs/impl/CloneExpressionVisitor.java
  M  
dev/core/src/com/google/gwt/dev/jjs/impl/CompoundAssignmentNormalizer.java

  M dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java
  M dev/core/src/com/google/gwt/dev/jjs/impl/ExpressionAnalyzer.java
  M dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaAST.java
  M dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java
  M dev/core/src/com/google/gwt/dev/jjs/impl/JavaPrecedenceVisitor.java


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


[gwt-contrib] Re: Add first-class support for [array].length in the compiler. (issue702801)

2010-07-19 Thread tobyr

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

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


[gwt-contrib] Re: Add first-class support for [array].length in the compiler. (issue702801)

2010-07-19 Thread tobyr

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

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


[gwt-contrib] Re: Revert Revert Adds UiBinder support for Grid, (issue703801)

2010-07-19 Thread rjrjr

Bob, you might want to use git magic to diff this directly against 8387.
The delta from there is quite small.

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

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


[gwt-contrib] Re: Revert Revert Adds UiBinder support for Grid, (issue703801)

2010-07-19 Thread rjrjr

Bob, you might want to use git magic to diff this directly against 8387.
The delta from there is q

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

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


[gwt-contrib] Re: Revert Revert Adds UiBinder support for Grid, (issue703801)

2010-07-19 Thread bobv

LGTM, with nits.


http://gwt-code-reviews.appspot.com/703801/diff/1/2
File user/src/com/google/gwt/uibinder/elementparsers/GridParser.java
(right):

http://gwt-code-reviews.appspot.com/703801/diff/1/2#newcode2
user/src/com/google/gwt/uibinder/elementparsers/GridParser.java:2: *
Copyright 2009 Google Inc.
Has this code been released before?

http://gwt-code-reviews.appspot.com/703801/diff/1/2#newcode84
user/src/com/google/gwt/uibinder/elementparsers/GridParser.java:84:
VectorVectorCellContent matrix = new VectorVectorCellContent();
Vector and not ArrayList?

http://gwt-code-reviews.appspot.com/703801/diff/1/6
File
user/test/com/google/gwt/uibinder/elementparsers/GridParserTest.java
(right):

http://gwt-code-reviews.appspot.com/703801/diff/1/6#newcode52
user/test/com/google/gwt/uibinder/elementparsers/GridParserTest.java:52:
} catch (UnableToCompleteException e) {
Scott says rename e - expected for clarity when checking for thrown
exceptions.

http://gwt-code-reviews.appspot.com/703801/diff/1/7
File user/test/com/google/gwt/uibinder/test/UiJavaResources.java
(right):

http://gwt-code-reviews.appspot.com/703801/diff/1/7#newcode108
user/test/com/google/gwt/uibinder/test/UiJavaResources.java:108: };
Needs an empty line.

http://gwt-code-reviews.appspot.com/703801/diff/1/10
File
user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.java.rej
(right):

http://gwt-code-reviews.appspot.com/703801/diff/1/10#newcode1
user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.java.rej:1:
***
Don't commit this file.

http://gwt-code-reviews.appspot.com/703801/diff/1/11
File user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.ui.xml
(right):

http://gwt-code-reviews.appspot.com/703801/diff/1/11#newcode614
user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.ui.xml:614:
/gwt:customCell
Indentation weirdness.

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

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


[gwt-contrib] Re: Revert Revert Adds UiBinder support for Grid, (issue703801)

2010-07-19 Thread markovuksanovic

Some comments.


http://gwt-code-reviews.appspot.com/703801/diff/1/2
File user/src/com/google/gwt/uibinder/elementparsers/GridParser.java
(right):

http://gwt-code-reviews.appspot.com/703801/diff/1/2#newcode2
user/src/com/google/gwt/uibinder/elementparsers/GridParser.java:2: *
Copyright 2009 Google Inc.
It might have been 2009 when this patch was first written, if I remember
correctly... :)

http://gwt-code-reviews.appspot.com/703801/diff/1/2#newcode84
user/src/com/google/gwt/uibinder/elementparsers/GridParser.java:84:
VectorVectorCellContent matrix = new VectorVectorCellContent();
This really should be changed. I just had a look about the differences
and it seems that ArrayList might even be faster then vector. I used
this just out of habit. I should have changed that in the first place
but wasn't aware of the speed difference, I thought it's pretty much the
same.

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

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


[gwt-contrib] Re: Revert Revert Adds UiBinder support for Grid, (issue703801)

2010-07-19 Thread rjrjr

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

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


[gwt-contrib] Re: Revert Revert Adds UiBinder support for Grid, (issue703801)

2010-07-19 Thread rjrjr


http://gwt-code-reviews.appspot.com/703801/diff/1/2
File user/src/com/google/gwt/uibinder/elementparsers/GridParser.java
(right):

http://gwt-code-reviews.appspot.com/703801/diff/1/2#newcode2
user/src/com/google/gwt/uibinder/elementparsers/GridParser.java:2: *
Copyright 2009 Google Inc.
On 2010/07/19 17:14:24, bobv wrote:

Has this code been released before?


Done.

http://gwt-code-reviews.appspot.com/703801/diff/1/2#newcode84
user/src/com/google/gwt/uibinder/elementparsers/GridParser.java:84:
VectorVectorCellContent matrix = new VectorVectorCellContent();
On 2010/07/19 17:14:24, bobv wrote:

Vector and not ArrayList?


Done.

http://gwt-code-reviews.appspot.com/703801/diff/1/6
File
user/test/com/google/gwt/uibinder/elementparsers/GridParserTest.java
(right):

http://gwt-code-reviews.appspot.com/703801/diff/1/6#newcode52
user/test/com/google/gwt/uibinder/elementparsers/GridParserTest.java:52:
} catch (UnableToCompleteException e) {
On 2010/07/19 17:14:24, bobv wrote:

Scott says rename e - expected for clarity when checking for thrown

exceptions.

Done. http://www.bartleby.com/100/420.47.html

http://gwt-code-reviews.appspot.com/703801/diff/1/7
File user/test/com/google/gwt/uibinder/test/UiJavaResources.java
(right):

http://gwt-code-reviews.appspot.com/703801/diff/1/7#newcode108
user/test/com/google/gwt/uibinder/test/UiJavaResources.java:108: };
Nothing else in this class has one.

http://gwt-code-reviews.appspot.com/703801/diff/1/10
File
user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.java.rej
(right):

http://gwt-code-reviews.appspot.com/703801/diff/1/10#newcode1
user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.java.rej:1:
***
On 2010/07/19 17:14:24, bobv wrote:

Don't commit this file.


Eeep! Thanks. I don't know how these things keep getting into the
patches.

http://gwt-code-reviews.appspot.com/703801/diff/1/11
File user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.ui.xml
(right):

http://gwt-code-reviews.appspot.com/703801/diff/1/11#newcode614
user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.ui.xml:614:
/gwt:customCell
On 2010/07/19 17:14:24, bobv wrote:

Indentation weirdness.


Done.

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

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


[gwt-contrib] Moving the Cookbook examples into Showcase. Also updates a few examples in Showcase that used de... (issue704801)

2010-07-19 Thread jlabanca

Reviewers: Dan Rice,

Description:
Moving the Cookbook examples into Showcase. Also updates a few examples
in Showcase that used deprecated code. The process for including raw
source code in an example is now much easier thanks to
ContentWidget#registerSource().  Examples that were using custom code to
include source have been fixed to use the common code in ContentWidvget.
 Most of the code in the Cookbook MailRecipe sample will be moved into
the Mail sample, so I didn't delete it yet. I did remove all of the
Cookbook infrastructure.


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

Affected files:
  D  
bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/BasicTableRecipe.java
  D  
bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/Category.java
  D  
bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/CellBrowserRecipe.java
  D  
bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/CellListRecipe.java
  D  
bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/CellSamplerRecipe.java
  D  
bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/CellTreeRecipe.java
  M  
bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/Cookbook.java
  D  
bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/Cookbook.ui.xml
  D  
bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/EditableTableRecipe.java
  M  
bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/MailRecipe.java
  D  
bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/MyTreeViewModel.java

  D bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/Recipe.java
  D  
bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/SimplePager.java
  D  
bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/TreeService.java
  D  
bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/TreeServiceAsync.java
  D  
bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/ValidatableField.java
  D  
bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/ValidatableInputCell.java
  D  
bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/ValidationRecipe.java
  D  
bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/server/Dictionary.java
  D  
bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/server/TreeServiceImpl.java

  M bikeshed/war/WEB-INF/web.xml
  A  
samples/showcase/src/com/google/gwt/i18n/client/LocalizableResource.properties
  A  
samples/showcase/src/com/google/gwt/i18n/client/LocalizableResource_ar.properties
  A  
samples/showcase/src/com/google/gwt/i18n/client/LocalizableResource_fr.properties
  A  
samples/showcase/src/com/google/gwt/i18n/client/LocalizableResource_zh.properties
  M  
samples/showcase/src/com/google/gwt/sample/showcase/client/ContentWidget.java

  M samples/showcase/src/com/google/gwt/sample/showcase/client/Showcase.java
  M  
samples/showcase/src/com/google/gwt/sample/showcase/client/ShowcaseConstants.java
  M  
samples/showcase/src/com/google/gwt/sample/showcase/client/ShowcaseConstants.properties
  M  
samples/showcase/src/com/google/gwt/sample/showcase/client/ShowcaseConstants_ar.properties
  M  
samples/showcase/src/com/google/gwt/sample/showcase/client/ShowcaseConstants_fr.properties
  M  
samples/showcase/src/com/google/gwt/sample/showcase/client/ShowcaseConstants_zh.properties
  A  
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/ContactDatabase.java
  A  
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/ContactInfoForm.java
  A  
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/ContactInfoForm.ui.xml
  A  
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/ContactTreeViewModel.java
  A  
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCellBrowser.java
  A  
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCellBrowser.ui.xml
  A  
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCellList.java
  A  
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCellList.ui.xml
  A  
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCellSampler.java
  A  
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCellSampler.ui.xml
  A  
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCellTable.java
  A  
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCellTable.ui.xml
  A  
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCellTree.java
  A  
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCellTree.ui.xml
  A  
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCellValidation.java
  A  
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/ShowMorePagerPanel.java
  M  

[gwt-contrib] [google-web-toolkit] r8390 committed - Adds Java classes for JSON serialization/deserialization to complement...

2010-07-19 Thread codesite-noreply

Revision: 8390
Author: zun...@google.com
Date: Mon Jul 19 11:45:38 2010
Log: Adds Java classes for JSON serialization/deserialization to complement
com.google.gwt.json.client classes for the client side API.

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

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

Added:
 /trunk/dev/core/src/com/google/gwt/dev/json
 /trunk/dev/core/src/com/google/gwt/dev/json/JsonArray.java
 /trunk/dev/core/src/com/google/gwt/dev/json/JsonBoolean.java
 /trunk/dev/core/src/com/google/gwt/dev/json/JsonException.java
 /trunk/dev/core/src/com/google/gwt/dev/json/JsonNumber.java
 /trunk/dev/core/src/com/google/gwt/dev/json/JsonObject.java
 /trunk/dev/core/src/com/google/gwt/dev/json/JsonString.java
 /trunk/dev/core/src/com/google/gwt/dev/json/JsonValue.java
 /trunk/dev/core/src/com/google/gwt/dev/json/Pair.java
 /trunk/dev/core/src/com/google/gwt/dev/json/Tokenizer.java
 /trunk/dev/core/test/com/google/gwt/dev/json
 /trunk/dev/core/test/com/google/gwt/dev/json/JsonTest.java
 /trunk/dev/core/test/com/google/gwt/dev/json/TokenizerTest.java

===
--- /dev/null
+++ /trunk/dev/core/src/com/google/gwt/dev/json/JsonArray.java	Mon Jul 19  
11:45:38 2010

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

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

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

+ * the License.
+ */
+package com.google.gwt.dev.json;
+
+import java.io.IOException;
+import java.io.Reader;
+import java.io.Writer;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * A JSON Array.
+ */
+public class JsonArray implements JsonValue {
+  public static JsonArray create() {
+return new JsonArray();
+  }
+
+  public static JsonArray parse(Reader reader) throws IOException,
+  JsonException {
+final JsonArray arr = new Tokenizer(reader).nextValue().asArray();
+if (arr == null) {
+  throw new JsonException(Object is not a JSON array.);
+}
+return arr;
+  }
+
+  static JsonArray parse(Tokenizer tokenizer) throws IOException,  
JsonException {

+final JsonArray array = new JsonArray();
+int c = tokenizer.nextNonWhitespace();
+assert c == '[';
+while (true) {
+  c = tokenizer.nextNonWhitespace();
+  switch (c) {
+case ']':
+  return array;
+default:
+  tokenizer.back(c);
+  array.add(tokenizer.nextValue());
+  final int d = tokenizer.nextNonWhitespace();
+  switch (d) {
+case ']':
+  return array;
+case ',':
+  break;
+default:
+  throw new JsonException(Invalid array: expected , or ]);
+  }
+  }
+}
+  }
+
+  private final ListJsonValue values = new ArrayListJsonValue();
+
+  public JsonArray() {
+  }
+
+  public void add(boolean value) {
+add(JsonBoolean.create(value));
+  }
+
+  public void add(double value) {
+add(JsonNumber.create(value));
+  }
+
+  public void add(JsonValue value) {
+values.add(value);
+  }
+
+  public void add(long value) {
+add(JsonNumber.create(value));
+  }
+
+  public void add(String value) {
+add(JsonString.create(value));
+  }
+
+  public JsonArray asArray() {
+return this;
+  }
+
+  public JsonBoolean asBoolean() {
+return null;
+  }
+
+  public JsonNumber asNumber() {
+return null;
+  }
+
+  public JsonObject asObject() {
+return null;
+  }
+
+  public JsonString asString() {
+return null;
+  }
+
+  public JsonArray copyDeeply() {
+final JsonArray copy = new JsonArray();
+for (JsonValue value : values) {
+  copy.values.add(value == null ? null : value.copyDeeply());
+}
+return copy;
+  }
+
+  public JsonValue get(int index) {
+final JsonValue value = values.get(index);
+return (value == null) ? JsonValue.NULL : value;
+  }
+
+  public int getLength() {
+return values.size();
+  }
+
+  public boolean isArray() {
+return true;
+  }
+
+  public boolean isBoolean() {
+return false;
+  }
+
+  public boolean isNumber() {
+return false;
+  }
+
+  public boolean isObject() {
+return false;
+  }
+
+  public boolean isString() {
+return false;
+  }
+
+  public void write(Writer writer) throws IOException {
+writer.write('[');
+for (int i = 0, n = values.size(); i  n; ++i) {
+  if (i != 0) {
+writer.write(',');
+  }
+  values.get(i).write(writer);
+}
+writer.write(']');
+  }
+}
===
--- /dev/null

[gwt-contrib] [google-web-toolkit] r8391 committed - Revert Revert Adds UiBinder support for Grid,...

2010-07-19 Thread codesite-noreply

Revision: 8391
Author: rj...@google.com
Date: Mon Jul 19 12:11:32 2010
Log: Revert Revert Adds UiBinder support for Grid,
fixes bug that broke having subclasses of
Grid in ui.xml files.

Restores r8387

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

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

Added:
 /trunk/user/src/com/google/gwt/uibinder/elementparsers/GridParser.java
 /trunk/user/test/com/google/gwt/uibinder/elementparsers/GridParserTest.java
Modified:
 /trunk/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java
 /trunk/user/src/com/google/gwt/user/client/ui/Grid.java
 /trunk/user/test/com/google/gwt/uibinder/UiBinderJreSuite.java
 /trunk/user/test/com/google/gwt/uibinder/test/UiJavaResources.java
 /trunk/user/test/com/google/gwt/uibinder/test/client/UiBinderTest.java
 /trunk/user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.java
 /trunk/user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.ui.xml

===
--- /dev/null
+++ /trunk/user/src/com/google/gwt/uibinder/elementparsers/GridParser.java	 
Mon Jul 19 12:11:32 2010

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

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

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

+ * the License.
+ */
+package com.google.gwt.uibinder.elementparsers;
+
+import com.google.gwt.core.ext.UnableToCompleteException;
+import com.google.gwt.core.ext.typeinfo.JClassType;
+import com.google.gwt.uibinder.rebind.UiBinderWriter;
+import com.google.gwt.uibinder.rebind.XMLElement;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * A parser for Grid rows and cells.
+ */
+public class GridParser implements ElementParser {
+
+  private static class CellContent {
+private String tagName;
+private String content;
+
+public CellContent(String tagName, String content) {
+  this.tagName = tagName;
+  this.content = content;
+}
+
+public String getConent() {
+  return this.content;
+}
+
+public String getTagName() {
+  return this.tagName;
+}
+  }
+
+  private static class Size {
+private int rows;
+private int columns;
+
+public Size() {
+  this.rows = 0;
+  this.columns = 0;
+}
+
+public int getColumns() {
+  return this.columns;
+}
+
+public int getRows() {
+  return this.rows;
+}
+
+public void setColumns(int cols) {
+  this.columns = cols;
+}
+
+public void setRows(int rows) {
+  this.rows = rows;
+}
+  }
+
+  private static final String ROW_TAG = row;
+
+  private static final String CELL_TAG = cell;
+
+  private static final String CUSTOMCELL_TAG = customCell;
+
+  public void parse(XMLElement elem, String fieldName, JClassType type,
+  UiBinderWriter writer) throws UnableToCompleteException {
+
+ListListCellContent matrix = new ArrayListListCellContent();
+
+parseRows(elem, fieldName, writer, matrix);
+
+Size size = getMatrixSize(matrix);
+
+writer.addStatement(%s.resize(%s, %s);, fieldName,
+Integer.toString(size.getRows()),  
Integer.toString(size.getColumns()));

+for (ListCellContent row : matrix) {
+  for (CellContent column : row) {
+if (column.getTagName().equals(CELL_TAG)) {
+  writer.addStatement(%s.setHTML(%s, %s, \%s\);, fieldName,
+  Integer.toString(matrix.indexOf(row)),
+  Integer.toString(row.indexOf(column)), column.getConent());
+}
+if (column.getTagName().equals(CUSTOMCELL_TAG)) {
+  writer.addStatement(%s.setWidget(%s, %s, %s);, fieldName,
+  Integer.toString(matrix.indexOf(row)),
+  Integer.toString(row.indexOf(column)), column.getConent());
+}
+  }
+}
+  }
+
+  private Size getMatrixSize(ListListCellContent matrix) {
+Size size = new Size();
+
+size.setRows(matrix.size());
+
+int maxColumns = 0;
+for (ListCellContent column : matrix) {
+  maxColumns = (column.size()  maxColumns) ? column.size() :  
maxColumns;

+}
+size.setColumns(maxColumns);
+
+return size;
+  }
+
+  private void parseColumns(String fieldName, UiBinderWriter writer,
+  ListListCellContent matrix, XMLElement child)
+  throws UnableToCompleteException {
+
+String tagName;
+for (XMLElement cell : child.consumeChildElements()) {
+  tagName = cell.getLocalName();
+  if (!tagName.equals(CELL_TAG)  !tagName.equals(CUSTOMCELL_TAG)
+  || 

[gwt-contrib] [google-web-toolkit] r8392 committed - Stop including backtraces whenever an annotation class is either...

2010-07-19 Thread codesite-noreply

Revision: 8392
Author: bowdi...@google.com
Date: Mon Jul 19 12:48:16 2010
Log: Stop including backtraces whenever an annotation class is either
undefined or not really an annotation.  The backtrace doesn't help
the end user, and it feels more like a compiler exception than a
user code / configuration problem.

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

Modified:
 /trunk/dev/core/src/com/google/gwt/dev/javac/TypeOracleMediator.java

===
--- /trunk/dev/core/src/com/google/gwt/dev/javac/TypeOracleMediator.java	 
Mon Jan 11 17:58:07 2010
+++ /trunk/dev/core/src/com/google/gwt/dev/javac/TypeOracleMediator.java	 
Mon Jul 19 12:48:16 2010

@@ -489,7 +489,7 @@
   return clazz.asSubclass(Annotation.class);
 } catch (ClassNotFoundException e) {
   logger.log(TreeLogger.WARN, Ignoring unresolvable annotation type 
-  + type.getClassName(), e);
+  + type.getClassName());
   return null;
 }
   }

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


[gwt-contrib] Re: Add first-class support for [array].length in the compiler. (issue702801)

2010-07-19 Thread scottb

@spoon: question for you embedded in comments.

@tobyr: mostly LG, just a few things.


http://gwt-code-reviews.appspot.com/702801/diff/7001/8001
File dev/core/src/com/google/gwt/dev/jjs/ast/JArrayLength.java (right):

http://gwt-code-reviews.appspot.com/702801/diff/7001/8001#newcode26
dev/core/src/com/google/gwt/dev/jjs/ast/JArrayLength.java:26: * This can
only be null if the referenced field is static.
Remove stale copied comment.

http://gwt-code-reviews.appspot.com/702801/diff/7001/8001#newcode40
dev/core/src/com/google/gwt/dev/jjs/ast/JArrayLength.java:40: @Override
@Override illegal in 1.5 for interface method.

http://gwt-code-reviews.appspot.com/702801/diff/7001/8001#newcode52
dev/core/src/com/google/gwt/dev/jjs/ast/JArrayLength.java:52: if
(instance != null) {
Should never be null.

http://gwt-code-reviews.appspot.com/702801/diff/7001/8004
File
dev/core/src/com/google/gwt/dev/jjs/impl/CompoundAssignmentNormalizer.java
(right):

http://gwt-code-reviews.appspot.com/702801/diff/7001/8004#newcode88
dev/core/src/com/google/gwt/dev/jjs/impl/CompoundAssignmentNormalizer.java:88:
public boolean visit(JArrayLength x, Context ctx) {
This isn't necessary...  this visitor is only ever run on LVALUE
expressions, and array.length can never be an LVALUE.

http://gwt-code-reviews.appspot.com/702801/diff/7001/8005
File dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java
(right):

http://gwt-code-reviews.appspot.com/702801/diff/7001/8005#newcode457
dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java:457: }
else if (x instanceof JArrayLength) {
I don't understand this change.  This is another context where array
length should never be encountered because we're in an LVALUE context
here.

http://gwt-code-reviews.appspot.com/702801/diff/7001/8006
File dev/core/src/com/google/gwt/dev/jjs/impl/ExpressionAnalyzer.java
(right):

http://gwt-code-reviews.appspot.com/702801/diff/7001/8006#newcode99
dev/core/src/com/google/gwt/dev/jjs/impl/ExpressionAnalyzer.java:99:
accessesFieldNonFinal = true;
Definitely remove this line, array.length is immutable.

We also need canThrowException = true in case the instance happens to be
null.

http://gwt-code-reviews.appspot.com/702801/diff/7001/8006#newcode163
dev/core/src/com/google/gwt/dev/jjs/impl/ExpressionAnalyzer.java:163:
canThrowException = true;
@spoon: speaking of canThrowException, we can now make this slightly
better by checking for a JNonNullType instance?

http://gwt-code-reviews.appspot.com/702801/diff/7001/8008
File dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java
(right):

http://gwt-code-reviews.appspot.com/702801/diff/7001/8008#newcode257
dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java:257:
arrayLengthField.setObfuscatable(false);
On review, I think I gave you bad advice to make it a sibling of
nullMethodName.  Making it a sibling of
GenerateJavaScriptVisitor.prototype looks better.  Also suggest just
shorten it to arrayLength since field is not really a term used in
JS.

http://gwt-code-reviews.appspot.com/702801/diff/7001/8008#newcode540
dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java:540:
JsNameRef ref = new JsNameRef(x.getSourceInfo(), arrayLengthField);
JsNameRef ref = arrayLengthField.makeRef(x.getSourceInfo());

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

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


[gwt-contrib] [google-web-toolkit] r8393 committed - Once again rolls back GridParser, due to an as yet...

2010-07-19 Thread codesite-noreply

Revision: 8393
Author: rj...@google.com
Date: Mon Jul 19 13:29:17 2010
Log: Once again rolls back GridParser, due to an as yet
undiagnosed backward incompatibility.

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

Deleted:
 /trunk/user/src/com/google/gwt/uibinder/elementparsers/GridParser.java
 /trunk/user/test/com/google/gwt/uibinder/elementparsers/GridParserTest.java
Modified:
 /trunk/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java
 /trunk/user/src/com/google/gwt/user/client/ui/Grid.java
 /trunk/user/test/com/google/gwt/uibinder/UiBinderJreSuite.java
 /trunk/user/test/com/google/gwt/uibinder/test/UiJavaResources.java
 /trunk/user/test/com/google/gwt/uibinder/test/client/UiBinderTest.java
 /trunk/user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.java
 /trunk/user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.ui.xml

===
--- /trunk/user/src/com/google/gwt/uibinder/elementparsers/GridParser.java	 
Mon Jul 19 12:11:32 2010

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

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

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

- * the License.
- */
-package com.google.gwt.uibinder.elementparsers;
-
-import com.google.gwt.core.ext.UnableToCompleteException;
-import com.google.gwt.core.ext.typeinfo.JClassType;
-import com.google.gwt.uibinder.rebind.UiBinderWriter;
-import com.google.gwt.uibinder.rebind.XMLElement;
-
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * A parser for Grid rows and cells.
- */
-public class GridParser implements ElementParser {
-
-  private static class CellContent {
-private String tagName;
-private String content;
-
-public CellContent(String tagName, String content) {
-  this.tagName = tagName;
-  this.content = content;
-}
-
-public String getConent() {
-  return this.content;
-}
-
-public String getTagName() {
-  return this.tagName;
-}
-  }
-
-  private static class Size {
-private int rows;
-private int columns;
-
-public Size() {
-  this.rows = 0;
-  this.columns = 0;
-}
-
-public int getColumns() {
-  return this.columns;
-}
-
-public int getRows() {
-  return this.rows;
-}
-
-public void setColumns(int cols) {
-  this.columns = cols;
-}
-
-public void setRows(int rows) {
-  this.rows = rows;
-}
-  }
-
-  private static final String ROW_TAG = row;
-
-  private static final String CELL_TAG = cell;
-
-  private static final String CUSTOMCELL_TAG = customCell;
-
-  public void parse(XMLElement elem, String fieldName, JClassType type,
-  UiBinderWriter writer) throws UnableToCompleteException {
-
-ListListCellContent matrix = new ArrayListListCellContent();
-
-parseRows(elem, fieldName, writer, matrix);
-
-Size size = getMatrixSize(matrix);
-
-writer.addStatement(%s.resize(%s, %s);, fieldName,
-Integer.toString(size.getRows()),  
Integer.toString(size.getColumns()));

-for (ListCellContent row : matrix) {
-  for (CellContent column : row) {
-if (column.getTagName().equals(CELL_TAG)) {
-  writer.addStatement(%s.setHTML(%s, %s, \%s\);, fieldName,
-  Integer.toString(matrix.indexOf(row)),
-  Integer.toString(row.indexOf(column)), column.getConent());
-}
-if (column.getTagName().equals(CUSTOMCELL_TAG)) {
-  writer.addStatement(%s.setWidget(%s, %s, %s);, fieldName,
-  Integer.toString(matrix.indexOf(row)),
-  Integer.toString(row.indexOf(column)), column.getConent());
-}
-  }
-}
-  }
-
-  private Size getMatrixSize(ListListCellContent matrix) {
-Size size = new Size();
-
-size.setRows(matrix.size());
-
-int maxColumns = 0;
-for (ListCellContent column : matrix) {
-  maxColumns = (column.size()  maxColumns) ? column.size() :  
maxColumns;

-}
-size.setColumns(maxColumns);
-
-return size;
-  }
-
-  private void parseColumns(String fieldName, UiBinderWriter writer,
-  ListListCellContent matrix, XMLElement child)
-  throws UnableToCompleteException {
-
-String tagName;
-for (XMLElement cell : child.consumeChildElements()) {
-  tagName = cell.getLocalName();
-  if (!tagName.equals(CELL_TAG)  !tagName.equals(CUSTOMCELL_TAG)
-  || !cell.getPrefix().equals(child.getPrefix())) {
-writer.die(Grid's row tag in %s may only contain %s or %s  
element.,

- 

[gwt-contrib] Re: Add first-class support for [array].length in the compiler. (issue702801)

2010-07-19 Thread spoon


http://gwt-code-reviews.appspot.com/702801/diff/7001/8006
File dev/core/src/com/google/gwt/dev/jjs/impl/ExpressionAnalyzer.java
(right):

http://gwt-code-reviews.appspot.com/702801/diff/7001/8006#newcode163
dev/core/src/com/google/gwt/dev/jjs/impl/ExpressionAnalyzer.java:163:
canThrowException = true;
Sounds good to me.

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

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


[gwt-contrib] Re: Revert Revert Adds UiBinder support for Grid, (issue703801)

2010-07-19 Thread rjrjr

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

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


[gwt-contrib] Re: Revert Revert Adds UiBinder support for Grid, (issue703801)

2010-07-19 Thread rjrjr

Ignore this, please. Rietveld appears to be confused by the latest
patch. I'll start a new issue.

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

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


[gwt-contrib] Re-re-reintroduces GridParser. Now we are careful not to emit a call (issue697802)

2010-07-19 Thread rjrjr

Reviewers: robertvawter,

Description:
Re-re-reintroduces GridParser. Now we are careful not to emit a call
to resize(int, int) unless there is an actual reason to, thus
minimizing the chance that we'll break a custom Grid subclass, and
eliminating any change to the code generated by a simple g:Grid/
element.

Restores r8391, which was rolled back by r8393

Review by: robertvaw...@google.com

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

Affected files:
  A user/src/com/google/gwt/uibinder/elementparsers/GridParser.java
  M user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java
  M user/src/com/google/gwt/user/client/ui/Grid.java
  M user/test/com/google/gwt/uibinder/UiBinderJreSuite.java
  A user/test/com/google/gwt/uibinder/elementparsers/GridParserTest.java
  M user/test/com/google/gwt/uibinder/test/UiJavaResources.java
  M user/test/com/google/gwt/uibinder/test/client/UiBinderTest.java
  M user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.java
  M user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.ui.xml


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


[gwt-contrib] Re: Re-re-reintroduces GridParser. Now we are careful not to emit a call (issue697802)

2010-07-19 Thread rjrjr

Hey, Bob. Third time's the charm. This should be a very small delta if
you compare it directly against r8391.

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

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


[gwt-contrib] Using ValueStore without RequestFactory

2010-07-19 Thread jarrod
I've spent some time looking through the new RequestFactory and
ValueStore packages in GWT 2.1-M2. I am excited to see data binding
and validation creeping into the core GWT code. However, I have a bit
of a concern that the current implementation is too specific to JPA-
based applications.

Will it be possible to take advantage of the upcoming data-aware
widgets without using RequestFactory?

My application today is using a REST-based JSON back-end with GWT as
the UI. Thus far, I've been able to implement Records for some of my
domain classes (which up to now have been JavaScriptObjects, so the
fit seems somewhat natural). I can even set Property values against
the Records in my ValueStore.

But two things are missing. First, I need a way to create a Record
instance in the ValueStore based on an existing JavaScriptObject
(retrieved from the server using my existing services). Second, I need
a way to get the Record back to the server, formatted as JSON and
keeping my current JSON structure intact (that is, not using the
property-based serialization in the ValueStore).

Any thoughts on this?

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


[gwt-contrib] Fix garbage collection issue with logging in Dev Mode (issue667802)

2010-07-19 Thread unnurg

Reviewers: Ray Ryan,

Description:
Fix garbage collection issue with logging in Dev Mode


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

Affected files:
  M user/src/com/google/gwt/logging/client/LogConfiguration.java


Index: user/src/com/google/gwt/logging/client/LogConfiguration.java
===
--- user/src/com/google/gwt/logging/client/LogConfiguration.java	(revision  
8393)
+++ user/src/com/google/gwt/logging/client/LogConfiguration.java	(working  
copy)

@@ -52,9 +52,10 @@
*/
   private static class LogConfigurationImplRegular
   implements LogConfigurationImpl {
-
+Logger root;
+
 public void configureClientSideLogging() {
-  Logger root = Logger.getLogger();
+  root = Logger.getLogger();
   setLevels(root);
   setDefaultHandlers(root);
 }


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


[gwt-contrib] Re: Fix garbage collection issue with logging in Dev Mode (issue667802)

2010-07-19 Thread unnurg

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

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