javascript call

2011-08-16 Thread Navindian
Hi
native void showGeoAddress(String address) /*-{

alert('before call:'+address);
$wnd.codeAddress(address);
alert('not reaching this');
   }
I am trying to call javascript function from a GWT. somehow its not getting
called. Not sure about the problem. any ideas?

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



Scalability problem with Cell widgets and KeyboardPagingPolicy.INCREASE_RANGE

2011-08-16 Thread camerojo
Cell widgets were a great step forward for GWT - enabling efficient
client display of very large amounts of server data by means of
RangeChangeEvents processed by AsyncDataProviders.

However there is a serious problem with keyboard navigation as defined
by KeyboardPagingPolicy.INCREASE_RANGE.

Suppose you are viewing an underlying dataset (eg a database on the
server) which has a million rows. This is normally perfectly practical
using the new cell widget architecture.

However, if you are currently displaying the first page of the data
using KeyboardPagingPolicy.INCREASE_RANGE and your user presses the
End key, the generated RangeChangeEvent that is fired will have a
visible range of 0 to one million! In other words it will request the
loading of the entire data set. Clearly, only the last page or screen
full of data is all that is required to satisfy the user's request.

This makes KeyboardPagingPolicy.INCREASE_RANGE completely unscalable
in its current form.

KeyboardPagingPolicy.CHANGE_PAGE does not have this problem. However
the problem with KeyboardPagingPolicy.CHANGE_PAGE is that it always
changes the visible range by a complete page when you press the up or
down arrow at the edge of the current visible range. Often you just
want the visible range to scroll forward a single row. INCREASE_RANGE
does this but, as described above, is unusable for large datasets
because of its Home/End handling.

I suggest one of the following to make keyboard scrolling more usable:

1. Redefine INCREASE_RANGE behaviour for Home/End keys, so that
generated RangeChangeEvent is limited to what the user actually wants
to see

2. Add a new enum - maybe called SLIDING_RANGE - which processes up/
down arrow by changing the start of the visible range by just 1 when
needed.

3. Allow for pluggable KeyboardPagingPolicy logic
I suggest either redefining, creating a new enum, or allowing
pluggable policies

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



Re: Scalability problem with Cell widgets and KeyboardPagingPolicy.INCREASE_RANGE

2011-08-16 Thread camerojo
Whoops - ignore the last two lines below - they snuck into my posting
by mistake...

 I suggest either redefining, creating a new enum, or allowing
 pluggable policies

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



Re: debugging javascript call.?

2011-08-16 Thread Ivan Pulleyn
address parameter is likely null is this case

On Tue, Aug 16, 2011 at 1:35 PM, Navindian navind...@gmail.com wrote:

 Hi
 native void showGeoAddress(String address) /*-{

 alert('before call:'+address);
  $wnd.codeAddress(address);
 alert('not reaching this');
}
 I am trying to call javascript function from a GWT. somehow its not
 getting called. Not sure about the problem. any ideas. Atleast let me know
 how to debug this case?



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


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



Re: debugging javascript call.?

2011-08-16 Thread Navindian
before call:sanfrancisco is showing up in this alert. But it is not calling
javascript function.

On Tue, Aug 16, 2011 at 12:54 PM, Ivan Pulleyn ivan.pull...@gmail.comwrote:

 address parameter is likely null is this case

 On Tue, Aug 16, 2011 at 1:35 PM, Navindian navind...@gmail.com wrote:

 Hi
 native void showGeoAddress(String address) /*-{

 alert('before call:'+address);
  $wnd.codeAddress(address);
 alert('not reaching this');
}
 I am trying to call javascript function from a GWT. somehow its not
 getting called. Not sure about the problem. any ideas. Atleast let me know
 how to debug this case?



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


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


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



Re: debugging javascript call.?

2011-08-16 Thread Ivan Pulleyn
Then you should check that $wnd.codeAddress exists and is a function

On Tue, Aug 16, 2011 at 2:37 PM, Navindian navind...@gmail.com wrote:

 before call:sanfrancisco is showing up in this alert. But it is not calling
 javascript function.


 On Tue, Aug 16, 2011 at 12:54 PM, Ivan Pulleyn ivan.pull...@gmail.comwrote:

 address parameter is likely null is this case

 On Tue, Aug 16, 2011 at 1:35 PM, Navindian navind...@gmail.com wrote:

 Hi
 native void showGeoAddress(String address) /*-{

 alert('before call:'+address);
  $wnd.codeAddress(address);
 alert('not reaching this');
}
 I am trying to call javascript function from a GWT. somehow its not
 getting called. Not sure about the problem. any ideas. Atleast let me know
 how to debug this case?



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


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


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


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



Re: JUnit test and deferred binding.

2011-08-16 Thread Adolfo Panizo Touzon
Hello community,

Obviously having no opinion or answer, I see that I have not explained well
enough. I'll try XD.

I'm trying to design a basic test for the api I'm developing.

This API is based on that during compile time using deferred binding, uses a
variety of classes, but that such classes can not be called from other
sitesbecause I need references to objects that only I can get the famous
methodgenerate:

At first one of the main method is responsible for creating a tree of
informationand then perform other functions (next method):

public void createTreeNode() throws UnableToCompleteException{
for (Class? gvgClass : this*.gvgAnnotation*.value()){
GvgGeneratorNodeClass nodeClass = new GvgGeneratorNodeClass();
nodeClass.setNameClassSimple(gvgClass.getSimpleName());
nodeClass.setNameClass(gvgClass.getName());
nodeClass.setNameTable(GvgCellWidgetInfo.createNameTable(nodeClass.getNameClassSimple()));
try{
*JClassType* type = *typeOracle*.findType(gvgClass.getName());
ArrayListGvgGeneratorNodeField nodeFields =
GvgGeneratorNodeClass.createNodeFields(type);
 nodeClass.setFields(nodeFields);
this.nodeClasses.add(nodeClass);
}catch(Exception e){
this.logger.log(TreeLogger.ERROR, e.getMessage(), new
UnableToCompleteException());
}
}
}

And, as you can see I need TypeOracle classes, and annotation JClassTypethat
the only way to get them is by deferred binding.

The deduction from this is that if I can do a test of these methods, neither
of which I can do because you can not come after passing the necessary
objects.

Also another problem occurs, if you try to make a GWT.create JUnit fails.

So the question is  How I can make some fairly decent test?

Thanks.

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



A Bug of DatePicker

2011-08-16 Thread yourenzhuce
I use DateBox. I select 2011-8-18 as value, and click DateBox to show
DatePicker again.

When mouse is on td for 2011-08-18,  it will add a class
datePickerDayIsValueAndHighlighted.

But when I click next month, the mouse is on td for 2011-09-22,  the
class datePickerDayIsValueAndHighlighted is added, it's wrong, it
shold be datePickerDayIsHighlighted, since two tds have the same
location.

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



Re: Load Testing Tool for GWT

2011-08-16 Thread Benoit Cantais
Thank you for your answer Jeff

I can quite easily use a regex to parse a string and inject the
content of an csv file. The problem is that i don't know how to find
in the string the parameters i want to replace. I can find it when it
is a string, but not when it is a number. The end of my string is :

|1|2|3|4|1|5|6|7|1|8|9|10|0|7|9|11|0|12|12|11|0|9|9|11|0|13|13|11|0|14|
14|11|0|15|15|11|0|16|16|11|0|17|17|11|0|18|18|11|0|19|19|0|20|21|5|0|
0|1|22|0|23|3|24|

And when i change one parameter and i recapture the request with
JMeter or Grinder, more than one number change.

On Aug 12, 12:34 pm, Jeff Chimene jchim...@gmail.com wrote:
 On 08/12/2011 07:48 AM, Benoit Cantais wrote:









  Hi,

  Is there any easy way to make parameterizable load test for GWT ? I
  tried to use JMeter and Grinder. But when i get the generated script
  of my test, both of these tools gave me an unreadable request. The
  scripts works fine but it doesn't appear to be easily reusable with
  different parameters.

  Result with grinder :

  /* Understandable code */

  result = request101.POST('URL_path',
        '5|0|15|http://URLPATH/|AAE01B9BA413A1202D73415F6358B8FA|
  net.customware.gwt.dispatch.client.service.DispatchService|execute|
  net.customware.gwt.dispatch.shared.Action|...
  962170901|...|2|',
        ( NVPair('Content-Type', 'text/x-gwt-rpc; charset=utf-8'), ))

  /* Understandable code */

  I am not able to find how to put the variables in this result.

 Any language that has a nice regex parser could take this string apart
 and reassemble it with the contents of a .csv

 I'd put my marker on Perl, but when you know that language. every
 problem looks like a nail.









  For example, i am actually trying to test a login page.

  I need two parameters : The login and the password. I would like to
  make load test with login/password coming from a .csv (for example)
  file, to test what happen when 100 people try to login in
  simultaneously.

  Thank you for your help. Sorry for my english.

  Benoit

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



GWT 2.3 + eclipse 3.7 can not generate CompilerMetrics file in compile report

2011-08-16 Thread Alex Luya
For using any one of compiler flag:
Compilation finished successfully without errors ,and two permutations
generated .Many report files were generated under /extras directory.

with option:-XsoycDetailed
No CompilerMetrics-*-index.html files get generated..

with option:-compileReport
CompilerMetrics-0-index.html(responding to permutation 0)
generated,but CompilerMetrics-1-index.html not,it should be generated
for permutation 1. For generated CompilerMetrics-0-index.html,only
follow info is available:
-
Build Time Metrics
Phase
Elapsed Time
Module
Analysis
18922 ms
Precompile (may include Module
Analysis)
73859 ms
Compile
87484 ms


Source/Type Metrics
Description
References
Source
files
2516
Initial Type Oracle
Types
3398
Final Type Oracle
Types
4816
GeneratedTypes
1418
AST Referenced
Types
2331
Unreferenced
Types
3650
--
no other links presented in this file,Is it normal or I missed some
options to set?

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



When does Locator.getDomainType() gets called?

2011-08-16 Thread Jens
Hi,

I want to implement a generic Locator for RequestFactory and I am wondering 
what I should return in getDomainType().

I have a base Entity thats called EntityBase and holds the id and version. 
Any other entity extends from EntityBase. Then I have created an 
EntityLocator extends LocatorEntityBase, Long and getDomainType() now has 
to return ClassEntityBase. I want to use the Locator for every EntityProxy 
and somehow it doesn't feel right to return EntityBase.class when the 
Locator is used for example a PersonProxy.

It works for now but is it correctly implemented? As far as I can see the 
method doesn't get called for now and a quick source code search doesn't 
reveal if the method is ever called.

How have you implemented a generic Locator for JPA entities? Currently 
testing with GWT 2.4 RC1.

-- J.

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



Aw: Generic Entity Locator

2011-08-16 Thread Jens
Just create one Locator for your base entity, e.g. EntityLocator extends 
LocatorEntityBase, Long and use it for all EntityProxies.

I have done that and it works but getDomainType() doesn't feel right to me, 
see: 
https://groups.google.com/forum/#!topic/google-web-toolkit/SGMsIBaJ4hI/discussion

-- J.

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



Aw: When does Locator.getDomainType() gets called?

2011-08-16 Thread Jens
I have just 
seen: 
http://turbomanage.wordpress.com/2011/03/25/using-gwt-requestfactory-with-objectify/

Here getDomainType() just returns null. So can I assume that the method 
never gets used and will never be used by the RequestFactory framework?

-- J.

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



error while calling js

2011-08-16 Thread Navindian
Getting the following exception while calling js function


Message: Exception thrown and not caught
Line: 2082
Char: 65
Code: 0
URI:
http://localhost:8080/Prj/Prj/A3A49305FAE206B242F8F52F89CFBC0A.cache.html


Message: Object doesn't support this property or method
Line: 10
Char: 204
Code: 0
URI: http://maps.gstatic.com/intl/en_ALL/mapfiles/api-3/6/0/main.js


On Tue, Aug 16, 2011 at 1:09 PM, Ivan Pulleyn ivan.pull...@gmail.comwrote:

 Then you should check that $wnd.codeAddress exists and is a function


 On Tue, Aug 16, 2011 at 2:37 PM, Navindian navind...@gmail.com wrote:

 before call:sanfrancisco is showing up in this alert. But it is not
 calling javascript function.


 On Tue, Aug 16, 2011 at 12:54 PM, Ivan Pulleyn ivan.pull...@gmail.comwrote:

 address parameter is likely null is this case

 On Tue, Aug 16, 2011 at 1:35 PM, Navindian navind...@gmail.com wrote:

 Hi
 native void showGeoAddress(String address) /*-{

 alert('before call:'+address);
  $wnd.codeAddress(address);
 alert('not reaching this');
}
 I am trying to call javascript function from a GWT. somehow its not
 getting called. Not sure about the problem. any ideas. Atleast let me know
 how to debug this case?



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


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


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


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


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



Re: Embed pdf into gwt app

2011-08-16 Thread Papick G. Taboada
Hi Karim,

You are right, I know that. But in fact that is exactly what I want: the
browser to use whatever plugin to show the PDF, my app to define a little
place where this happens.

I have several problems actually:

Whatever I use, the PDF gets downloaded. In my case it is the tool folx,
without it is acrobat or preview that gets fired. Yes, in ffox I can
configure the behavior. I would like to force to be embedded and provide a
link for download. This makes more sense and in my case leads to a better
user experience when searching for a specific document.

When I use the object tag (uibinder, objectelement) and set the data URL
from my presenter, the app jumps back in history and the PDF gets
downloaded.

Brgds

Papick G. Taboada
+++
   pgt technology scouting GmbH
   http://pgt.de


Am 15.08.2011 um 23:39 schrieb karim duran karim.du...@gmail.com:

Hi Papick,

In my opinion, the problem is not about your iframe or any GWT container.
Concerning object or embed, i think you should use the standard way
provided by W3C specifications e.g object.

GWT provides cross-browser support for rendering. But don't process
media-type rendering.

Remember that if your browser can find a plugin to display a media-type (PDF
in your case), the media-type will display in your browser as you expect.

If your browser can't find a plugin, it calls the system default application
for this media-type ( Adobe Reader for exemple in your case with PDF ).

But, from the point of view of the user of your application, *you don't have
any control on how his browser will behave*. I mean that when the user
browser meet the object tag, it can display the PDF as you expect because
the Adobe Reader plugin is on the user system; Or it can call the Adobe
Reader desktop application because the plugin is not available for his
browser.

In firefox, you can force the behavior for a media-type. Go to - preference
- application, and search PDF document. You can see many actions the
browser can provide. You can choose the one interesting you.

to know about installed plugins for your browser, just type url
about:plugins.

Regards.

Karim Duran


2011/8/15 P.G.Taboada pgtabo...@googlemail.com

 hello,

 I am tryring to display PDF files in my app. Unfortunately, Firefox
 and Safari are downloading the PDF instead of showing them embedded.

 I tried object and embed and an iframe element, the PDF always
 gets downloaded. When using embed or object it even messes with the
 history, the app get thrown back in history (I am using Places/MVP).

 Did anyone succeed in showing a PDF?

 Brgds,

 Papick

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


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

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



Custom Handlers for CellTable

2011-08-16 Thread BST
Can I handle the event when the Cell Table completes displaying the changes 
on the ListDataProvider on the screen? Maybe after setRowData is called?

Assume that the RowCount does not change and that the Visible Range also 
stays the same.

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



Re: Getting Height of cell table

2011-08-16 Thread BST
Any Solutions for this problem?

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



MenuBar working well in hosted page but not in the others

2011-08-16 Thread Marko
Hi everyone.

I have my algorithm for menu after requesting their information in
database and it works well in hosted page.

But in the others my first items of a menu is not clickable :( and
even doesnt appear to be selected.

Can anyone help me on this. May be basic but i cant understand this.

Thankfully,
Mark

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



Re: MenuBar working well in hosted page but not in the others

2011-08-16 Thread BST
Could you elaborate, maybe provide code snippet ? 

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



Obtaining the click position of the underlying widget from an overlay widget

2011-08-16 Thread Alexander Orlov
I have something like

g:ScrollPanel
/g:FocusPanel
!-- a few FocusPanels --
/g:ScrollPanel

The FocusPanel is attached to a random place within the ScrollPanel. Now I 
want to get the position of the place where the user places his click. I've 
tried the following 

focusPanel.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
  System.out.println(event.getClientX());
System.out.println(event.getX());

System.out.println(event.getRelativeX(event.getRelativeElement().getOffsetLeft()));

System.out.println(event.getRelativeElement().getOffsetLeft());

System.out.println(event.getRelativeElement().getOffsetWidth());

System.out.println(event.getRelativeElement().getOffsetHeight());

System.out.println(event.getRelativeElement().getOffsetTop());
System.out.println(event.getScreenX());
}
}

...but I always get the same values, no matter where I place my click on the 
focusPanel.

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



Re: Obtaining the click position of the underlying widget from an overlay widget

2011-08-16 Thread Ivan Pulleyn
I believe you want this:

int x = event.getRelativeX(event.getRelativeElement());
int y = event.getRelativeY(event.getRelativeElement());


On Tue, Aug 16, 2011 at 7:26 PM, Alexander Orlov
alexander.or...@loxal.netwrote:

 I have something like

 g:ScrollPanel
 /g:FocusPanel
 !-- a few FocusPanels --
 /g:ScrollPanel

 The FocusPanel is attached to a random place within the ScrollPanel. Now I
 want to get the position of the place where the user places his click. I've
 tried the following

 focusPanel.addClickHandler(new ClickHandler() {
 @Override
 public void onClick(ClickEvent event) {
   System.out.println(event.getClientX());
 System.out.println(event.getX());

 System.out.println(event.getRelativeX(event.getRelativeElement().getOffsetLeft()));

 System.out.println(event.getRelativeElement().getOffsetLeft());

 System.out.println(event.getRelativeElement().getOffsetWidth());

 System.out.println(event.getRelativeElement().getOffsetHeight());

 System.out.println(event.getRelativeElement().getOffsetTop());
 System.out.println(event.getScreenX());
 }
 }

 ...but I always get the same values, no matter where I place my click on
 the focusPanel.

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


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



Re: MenuBar working well in hosted page but not in the others

2011-08-16 Thread Marko Borges
what i do is create my menu and in items and menu without items I add
Command to go to a certain page.

this happens ok with the hosted page. but in another page the first item of
each menu doesnt let execute Command and neither let select that item when
mouse is over.

Here is the code:

code
for (int i = 0; i  result.size(); i++) {
final PageDTO page = result.get(i);
if (page.getParentid() == 1) {
mb.add(page);
}
}
boolean[] bools = new boolean[mb.size()];

MenuBar menu = new MenuBar();
menu.setAutoOpen(true);
menu.setHeight(25px);
menu.setAnimationEnabled(true);

for (int i = 0; i  result.size(); i++) {
final PageDTO page = result.get(i);
if (page.getParentid() != 1) {
for (int j = 0; j  mb.size(); j++) {
PageDTO parent = mb.get(j);
if (page.getParentid() == parent.getPageid()) {
bools[j] = true;
if (last == parent.getPageid()) {
lastName = parent.getPagename();
items.add(page.getPagename());
}
if (last == 0) {
items.add(page.getPagename());
last = parent.getPageid();
lastName = parent.getPagename();
}
if (i == result.size() - 1
|| last != parent.getPageid()) {
MenuBar menuButton = new MenuBar(true);
menuButton.addStyleName(demo-MenuItem);
menu.addSeparator();
MenuItem mi = new MenuItem(lastName,
menuButton);
mi.setHeight(20px);
menu.addItem(mi);
for (int x = 0; x  items.size(); x++) {
MenuItem mi2 = new MenuItem(items
.get(x), new Command() {

@Override
public void execute() {
ActivityDTO act = page
.getActivity();
boolean found = false;
if (act != null) {
Iterator itr = act
.getActivityPaths()
.iterator();
while (!found) {
ActivityPathDTO ap = (ActivityPathDTO) itr
.next();
found = true;
redirect(http://127.0.0.1:/;
+ ap.getFolder()
+ .htm);
}
}
}

});
menuButton.addItem(mi2);
}

items = new ArrayListString();
last = parent.getPageid();
lastName = parent.getPagename();
items.add(page.getPagename());

// break;
}
 } else {
if (page.getParentid()  mb.get(j).getPageid()
 !bools[j]) {
final PageDTO actual = mb.get(j);
bools[j] = true;
MenuItem mib = new MenuItem(mb.get(j)
.getPagename(), new Command() {

@Override
public void execute() {
ActivityDTO act = actual
.getActivity();
boolean found = false;
if (act != null) {
Iterator itr = act
.getActivityPaths()
.iterator();
while (!found) {
ActivityPathDTO ap = (ActivityPathDTO) itr
.next();
found = true;
redirect(http://127.0.0.1:/;
+ ap.getFolder()
+ .htm);
}
}
}

});
menu.addItem(mib);
}
}
}
}
}
RootPanel.get(navmenu).add(menu, 50, 50);
/code

2011/8/16 BST babusri...@gmail.com

 Could you elaborate, maybe provide code snippet ?

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

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


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



Re: Obtaining the click position of the underlying widget from an overlay widget

2011-08-16 Thread Alexander Orlov
On Tue, Aug 16, 2011 at 2:38 PM, Ivan Pulleyn ivan.pull...@gmail.comwrote:


 I believe you want this:

 int x = event.getRelativeX(event.getRelativeElement());
 int y = event.getRelativeY(event.getRelativeElement());


Unfortunately not, I always get:

event.x = -266
 event.y = -133


...no matter where on the FocusPanel I click, the value remain static. When
I click on another FocusPanel the values change but reamin static within the
same FocusPanel.




 On Tue, Aug 16, 2011 at 7:26 PM, Alexander Orlov 
 alexander.or...@loxal.net wrote:

 I have something like

 g:ScrollPanel
 /g:FocusPanel
 !-- a few FocusPanels --
 /g:ScrollPanel

 The FocusPanel is attached to a random place within the ScrollPanel. Now I
 want to get the position of the place where the user places his click. I've
 tried the following

 focusPanel.addClickHandler(new ClickHandler() {
 @Override
 public void onClick(ClickEvent event) {
   System.out.println(event.getClientX());
 System.out.println(event.getX());

 System.out.println(event.getRelativeX(event.getRelativeElement().getOffsetLeft()));

 System.out.println(event.getRelativeElement().getOffsetLeft());

 System.out.println(event.getRelativeElement().getOffsetWidth());

 System.out.println(event.getRelativeElement().getOffsetHeight());

 System.out.println(event.getRelativeElement().getOffsetTop());
 System.out.println(event.getScreenX());
 }
 }

 ...but I always get the same values, no matter where I place my click on
 the focusPanel.

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


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




-- 
www.loxal.net
Mobile: +49 176 4440-3969
Rablstr. 12 • 81669 Munich • Germany

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



Re: RequestBuilder Question

2011-08-16 Thread skippy
Just to let anyone interested to know.

Just do a Window.open(URL, _blank, );

This will first open a new browser.


On Aug 11, 3:33 pm, skippy al.leh...@fisglobal.com wrote:
 Or, when I return from the requestbuilder call, I want to do something
 like a
 Window.opent(ReturnedHTML,_blank)
 .

 On Aug 11, 3:28 pm, skippy al.leh...@fisglobal.com wrote:



  I need to try to make a requestbuilder post to a servlet, but open a
  new browser first.

  I am creating a single singon to a different application.  Link and
  launch like.

  Thanks- Hide quoted text -

 - Show quoted text -

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



Re: SuggestBox popup Z-Index issue (appears behind everything)

2011-08-16 Thread Thomas Wrobel
Yes, CSS seemed the best option and worked. Cheers.

Still, its a strange issue to still be hanging around.

~~
Reviews of anything, by anyone;
www.rateoholic.co.uk
Please try out my new site and give feedback :)



On 15 August 2011 23:51, Ben Imp benlee...@gmail.com wrote:
 I suppose you could also use CSS, too.  That would seem to be a bit less
 hacky.

 -Ben

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


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



FlexTable RowSpan problem

2011-08-16 Thread md
Hi!

I'm developing an application using GWT 2.3.3
In this application I have a FlexTable which includes (as a widget)
another FlexTable in many cells (some cells are empty, as for the
reason that i want to set a colSpan so that the flexTable in Cell
(1,0) combines (2,0).

So the Problem:
If setting the colSpan (0,0,2)  it should combine cell (0,0) and cell
(1,0). Unfortunately cell (1,0) moves to another empty cell on the
next column - so the whole structrue of the FlexTable is corrupt.

__
|0,0 | 0,1 | 0,2|
|1,0 | 1,1 | 1,2|
|2,0 | 2,1 | 2,2|
|3,0 | 3,1 | 3,2|
|4,0 | 4,1 | 4,2|


with rowSpan(0,0,2)


|0,0 | 0,1 | 0,2|
|0,0 | 1,0 | 1,1 | 1,2|
|2,0 | 2,1 | 2,2 |
|3,0 | 3,1 | 3,2 |
|4,0 | 4,1 | 4,2 |





Is there any solution for this problem?
I've tried (as mentioned here on the mailing list) to give each row a
 (empty String) but unfortunately this didn't work.




//here is how i set the widgets for the flexTable:

flexTable_6.setWidget(1,0,newTable(komponenten.get(1));

//This is the rowSpan
flexTable_6.getFlexCellFormatter().setRowSpan(1,0,2);


As a matter of fact I am setting the widgets dynamic out of an array
(each widget/flextable representates an object) and the table contains
about 140 widgets - if a widget needs a colSpan of e.g. 3, the
following 2 cells are empty.


I'm not sure if i explained the problem intelligible, caused by the
reason that this is my first post ever on such issues, if there is a
need for more informations please ask.

I hope somebody can help?-Thanks alot!

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



Datagrid with ScrollPanel

2011-08-16 Thread Nicolas Antoniazzi
I would like to implement a Custom Pager for datagrid wich has quite the
same behaviour as PageSizePager (show more button), but triggered by the
scrollbar (show more called every time that the scrollbar reach the bottom
of the table).
I would like to add a new ScrollHandler on DataGrid, but the ScrollPanel
widget is not accessible.

Is there a way to get an accessor to this widget? Or does someone know
another way to implement such widget ?

Thanks,

Nicolas.

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



Re: Datagrid with ScrollPanel

2011-08-16 Thread Jeff Larsen
Poking in the code of DataGrid, it looks like you could get access to it 
this way. 

HeaderPanel panel = (HeaderPanel) dataGrid.getWidget();
CustomScrollPanel scrollPanel = (CustomScrollPanel) 
panel.getContentWidget();

Admittedly, this isn't very clean, but it looks like it should work. 

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



Re: Datagrid with ScrollPanel

2011-08-16 Thread Nicolas Antoniazzi
Thanks jeff !
I'm going to try this :)

2011/8/16 Jeff Larsen larse...@gmail.com

 HeaderPanel panel = (HeaderPanel) dataGrid.getWidget();
 CustomScrollPanel scrollPanel = (CustomScrollPanel)
 panel.getContentWidget();


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



Re: UI Binder Button Problem

2011-08-16 Thread Alex Dobjanschi
What are you trying to do exactly? Setting the upFace of a PushButton?

Then go with
{{{
   g:PushButton ui:field=button
  upFace={img.button} /
}}}

(not sure highlight will work)

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



Re: MenuBar working well in hosted page but not in the others

2011-08-16 Thread Marko Borges
http://www.java2s.com/Code/Java/GWT/Menuwithstyle.htm

I tried this example and it happens the same =(
Is it a bug of gwt or something its missing on my project?

the first item of each menu cant be selected :( whyy?

2011/8/16 Marko Borges markoborge...@gmail.com

 what i do is create my menu and in items and menu without items I add
 Command to go to a certain page.

 this happens ok with the hosted page. but in another page the first item of
 each menu doesnt let execute Command and neither let select that item when
 mouse is over.

 Here is the code:

 code
 for (int i = 0; i  result.size(); i++) {
 final PageDTO page = result.get(i);
  if (page.getParentid() == 1) {
 mb.add(page);
 }
  }
 boolean[] bools = new boolean[mb.size()];

 MenuBar menu = new MenuBar();
  menu.setAutoOpen(true);
 menu.setHeight(25px);
 menu.setAnimationEnabled(true);

 for (int i = 0; i  result.size(); i++) {
 final PageDTO page = result.get(i);
  if (page.getParentid() != 1) {
 for (int j = 0; j  mb.size(); j++) {
  PageDTO parent = mb.get(j);
 if (page.getParentid() == parent.getPageid()) {
  bools[j] = true;
 if (last == parent.getPageid()) {
 lastName = parent.getPagename();
  items.add(page.getPagename());
 }
 if (last == 0) {
  items.add(page.getPagename());
 last = parent.getPageid();
  lastName = parent.getPagename();
 }
 if (i == result.size() - 1
  || last != parent.getPageid()) {
 MenuBar menuButton = new MenuBar(true);
  menuButton.addStyleName(demo-MenuItem);
 menu.addSeparator();
  MenuItem mi = new MenuItem(lastName,
 menuButton);
 mi.setHeight(20px);
  menu.addItem(mi);
 for (int x = 0; x  items.size(); x++) {
  MenuItem mi2 = new MenuItem(items
 .get(x), new Command() {

 @Override
 public void execute() {
 ActivityDTO act = page
  .getActivity();
 boolean found = false;
 if (act != null) {
  Iterator itr = act
 .getActivityPaths()
 .iterator();
  while (!found) {
 ActivityPathDTO ap = (ActivityPathDTO) itr
  .next();
 found = true;
 redirect(http://127.0.0.1:/;
  + ap.getFolder()
 + .htm);
 }
  }
 }

 });
  menuButton.addItem(mi2);
 }

 items = new ArrayListString();
  last = parent.getPageid();
 lastName = parent.getPagename();
  items.add(page.getPagename());

 // break;
 }
  } else {
 if (page.getParentid()  mb.get(j).getPageid()
   !bools[j]) {
 final PageDTO actual = mb.get(j);
  bools[j] = true;
 MenuItem mib = new MenuItem(mb.get(j)
 .getPagename(), new Command() {

 @Override
 public void execute() {
 ActivityDTO act = actual
  .getActivity();
 boolean found = false;
 if (act != null) {
  Iterator itr = act
 .getActivityPaths()
 .iterator();
  while (!found) {
 ActivityPathDTO ap = (ActivityPathDTO) itr
  .next();
 found = true;
 redirect(http://127.0.0.1:/;
  + ap.getFolder()
 + .htm);
 }
  }
 }

 });
  menu.addItem(mib);
 }
 }
  }
 }
 }
  RootPanel.get(navmenu).add(menu, 50, 50);
 /code


 2011/8/16 BST babusri...@gmail.com

 Could you elaborate, maybe provide code snippet ?

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

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




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



Re: event.getKeyCode not returning correct for key up event

2011-08-16 Thread Alex Dobjanschi
If you're using a KeyUp/Down/Press/Handler, are you getting this too?

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



Active GWT websites/blogs/tutorials

2011-08-16 Thread Drew Spencer
Hey all,

I was thinking it would be good if we created a post with any useful 
resources all in one place.

I keep finding little titbits online but the sites rarely seem to be active. 
If people could post any useful stuff here we can build it into a useful 
resource.

Here are a few to start us off:

   - http://google.wikia.com/wiki/Google_Web_Toolkit
   - http://turbomanage.wordpress.com/
   - http://www.fishbonecloud.com/
   - http://borglin.net/gwt-project/
   - http://www.bright-creations.com/category/blog/
   - http://tbroyer.posterous.com/
   
For me, a good rule is do I want to add this to my RSS reader? - If the 
last post was in 2010 then probably not.

Cheers all,

Drew

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



Re: Active GWT websites/blogs/tutorials

2011-08-16 Thread Juan Pablo Gardella
Thanks for share!

2011/8/16 Drew Spencer slugmand...@gmail.com

 Hey all,

 I was thinking it would be good if we created a post with any useful
 resources all in one place.

 I keep finding little titbits online but the sites rarely seem to be
 active. If people could post any useful stuff here we can build it into a
 useful resource.

 Here are a few to start us off:

- http://google.wikia.com/wiki/Google_Web_Toolkit
- http://turbomanage.wordpress.com/
- http://www.fishbonecloud.com/
- http://borglin.net/gwt-project/
- http://www.bright-creations.com/category/blog/
- http://tbroyer.posterous.com/

 For me, a good rule is do I want to add this to my RSS reader? - If the
 last post was in 2010 then probably not.

 Cheers all,

 Drew

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


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



Re: GWT Compiler Hanging

2011-08-16 Thread otth2oskier
I am now getting the issue with the DevMode as well, and it has no
flag to override the update check.

On Aug 15, 3:29 pm, Stijn Bienkens stijn.bienk...@k2-solutions.eu
wrote:
 I have exactly the same issue at work.

 Using Windows 7 64bit, jdk 6 update 26,gwt2.3 and eclipse indigo
 3.7.
 Same deadlock happens when using different versions of java jdk,gwt
 and eclipse.

 On 15 aug, 20:02, otth2oskier wippel.rol...@gmail.com wrote:







  Added -XdisableUpdateCheck to command line and it no longerhangs.

  On Aug 15, 1:53 pm, otth2oskier wippel.rol...@gmail.com wrote:

   There appears to be a deadlock:

   Microsoft Windows XP [Version 5.1.2600]
   (C) Copyright 1985-2001 Microsoft Corp.

   C:\Documents and Settings\xxjstack 1220
   2011-08-15 13:50:55
   Full thread dump Java HotSpot(TM) Client VM (17.1-b03 mixed mode,
   sharing):

   GWTUpdate Checker daemon prio=6 tid=0x03131400 nid=0x15e0 waiting
   for monitor entry [0x0327d000]
      java.lang.Thread.State: BLOCKED (on object monitor)
           at
   sun.security.jca.ProviderConfig.getProvider(ProviderConfig.java:188)
           - waiting to lock 0x1d434438 (a sun.misc.Launcher
   $AppClassLoader)
           at sun.security.jca.ProviderList.getProvider(ProviderList.java:
   215)
           at sun.security.jca.ProviderList.getService(ProviderList.java:
   313)
           at sun.security.jca.GetInstance.getInstance(GetInstance.java:
   140)
           at
   java.security.cert.CertificateFactory.getInstance(CertificateFactory.java:
   148)
           at sun.security.pkcs.PKCS7.parseSignedData(PKCS7.java:244)
           at sun.security.pkcs.PKCS7.parse(PKCS7.java:141)
           at sun.security.pkcs.PKCS7.parse(PKCS7.java:110)
           at sun.security.pkcs.PKCS7.init(PKCS7.java:92)
           at
   sun.security.util.SignatureFileVerifier.init(SignatureFileVerifier.java:
   80)
           at java.util.jar.JarVerifier.processEntry(JarVerifier.java:
   267)
           at java.util.jar.JarVerifier.update(JarVerifier.java:199)
           at java.util.jar.JarFile.initializeVerifier(JarFile.java:323)
           at java.util.jar.JarFile.getInputStream(JarFile.java:388)
           - locked 0x12c07c58 (a java.util.jar.JarFile)
           at sun.misc.JarIndex.getJarIndex(JarIndex.java:120)
           at sun.misc.URLClassPath$JarLoader$1.run(URLClassPath.java:
   608)
           at java.security.AccessController.doPrivileged(Native Method)
           at sun.misc.URLClassPath
   $JarLoader.ensureOpen(URLClassPath.java:599)
           at sun.misc.URLClassPath$JarLoader.init(URLClassPath.java:
   583)
           at sun.misc.URLClassPath$3.run(URLClassPath.java:333)
           at java.security.AccessController.doPrivileged(Native Method)
           at sun.misc.URLClassPath.getLoader(URLClassPath.java:322)
           at sun.misc.URLClassPath.getLoader(URLClassPath.java:299)
           - locked 0x1d434500 (a sun.misc.URLClassPath)
           at sun.misc.URLClassPath.access$000(URLClassPath.java:60)
           at sun.misc.URLClassPath$1.next(URLClassPath.java:195)
           at sun.misc.URLClassPath$1.hasMoreElements(URLClassPath.java:
   206)
           at java.net.URLClassLoader$3$1.run(URLClassLoader.java:416)
           at java.security.AccessController.doPrivileged(Native Method)
           at java.net.URLClassLoader$3.next(URLClassLoader.java:413)
           at java.net.URLClassLoader
   $3.hasMoreElements(URLClassLoader.java:438)
           at sun.misc.CompoundEnumeration.next(CompoundEnumeration.java:
   27)
           at
   sun.misc.CompoundEnumeration.hasMoreElements(CompoundEnumeration.java:
   36)
           at sun.misc.Service$LazyIterator.hasNext(Service.java:255)
           at java.util.prefs.Preferences.factory1(Preferences.java:263)
           at java.util.prefs.Preferences.access$000(Preferences.java:
   208)
           at java.util.prefs.Preferences$2.run(Preferences.java:255)
           at java.util.prefs.Preferences$2.run(Preferences.java:253)
           at java.security.AccessController.doPrivileged(Native Method)
           at java.util.prefs.Preferences.factory(Preferences.java:252)
           at java.util.prefs.Preferences.clinit(Preferences.java:210)
           at
   com.google.gwt.dev.shell.CheckForUpdates.check(CheckForUpdates.java:
   263)
           at com.google.gwt.dev.shell.CheckForUpdates
   $1.call(CheckForUpdates.java:124)
           at com.google.gwt.dev.shell.CheckForUpdates
   $1.call(CheckForUpdates.java:120)
           at java.util.concurrent.FutureTask
   $Sync.innerRun(FutureTask.java:303)
           at java.util.concurrent.FutureTask.run(FutureTask.java:138)
           at java.lang.Thread.run(Thread.java:662)

   Low Memory Detector daemon prio=6 tid=0x00a4bc00 nid=0x16c0 runnable
   [0x]
      java.lang.Thread.State: RUNNABLE

   CompilerThread0 daemon prio=10 tid=0x00a49000 nid=0x79c waiting on
   condition [0x]
      java.lang.Thread.State: RUNNABLE

   Attach Listener daemon prio=10 tid=0x00a44400 

Re: CellTable custom footer

2011-08-16 Thread Mark Wengranowski
Awsome! That was exactly what i was looking for.

Cheers,
-Mark

On Aug 15, 11:39 am, John LaBanca jlaba...@google.com wrote:
 There is an example in the DataGrid example of 
 Showcase:http://code.google.com/p/google-web-toolkit/source/browse/trunk/sampl...

 Within the footer getValue() mathod, you can get all of the row data and
 extract values and do some math.
 John LaBanca | GWT Software Engineer | jlaba...@google.com

 On Mon, Aug 15, 2011 at 2:30 PM, Mark Wengranowski
 m...@greatlittlebox.comwrote:



  Thanks John!

  Do you have an example of how i would total all of the cells in a
  particular column and set the footer (Header instance)?

  On Aug 15, 11:19 am, John LaBanca jlaba...@google.com wrote:
   If you pass a Header instance as the footer, it will be updated every
  time
   you push new row data.  You can also refresh footers manually using
   CellTable#redrawFooters().

   There is also a pending change that allows you to fully customize headers
   and footers:http://gwt-code-reviews.appspot.com/1499808/
   John LaBanca | GWT Software Engineer | jlaba...@google.com

   On Mon, Aug 15, 2011 at 12:10 PM, Mark Wengranowski 
  m...@greatlittlebox.com

wrote:
Anyone?

On Aug 9, 1:05 pm, Mark Wengranowski m...@greatlittlebox.com wrote:
 Hi Everyone,

 I'm trying to add a footer to my CellTable and am having a hard time
 finding information on creating a footer that would update
  dynamically
 based on the cells in that column.

 i.e. I want the last row in my cell table to have a total footer.

 Adding static text is easy as you just pass an extra argument to the
 constructor:
        cellTable.addColumn(qty, Qty,Integer.toString(totalQty));

 Thats not what want though.

 If i don't set totalQty to a value before adding the column to the
 CellTable then it shows up as 0. If i try using the funtion
 CellTable.redrawFooters() it does not update the footer with the
 updated variable value for totalQty.

 I see in the documentation that footers are supposed to update
 automatically when set up as a type Header.

 I can' t find any source examples so if anyone could point me in the
 right direction or post an example that would be great.

 Thanks,
 -Mark

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

   - Show quoted text -

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

 - Show quoted text -

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



Re: GWT Designer Issues

2011-08-16 Thread Nuno R
1. Has suggested, opened an issue describing the problem (sample
project attached).
http://code.google.com/p/google-web-toolkit/issues/detail?id=6693

2. I assumed GWT Designer would setup a Dev Mode environment, i.e.
UiBinder code is already generated and permutation done.
I will look into *.wbp-component.xml files and see if i can figure it
out.

Thanks,
Nuno R.

On 5 Ago, 21:49, Konstantin Scheglov scheg...@google.com wrote:
 Official way for handling exception in GWT Designer is creating error report
 (as suggested by error page) and creating new issue, with report attached.
 In other case this will lead to discussions give us this file, show log,
 etc.
 Be wise and attach enough information, which may be useful, such as
 module.gwt.xml files.

 2. Yes, GWT Designer supports @UiField(provided=true). But as you
 understand, there are no magic. GWT Designer can not know that this
 interface should be replaced with that class.
 So, you should help it, by writing script to create instance.
 See for example CellList.wbp-component.xml in GWT Designer plugin (in
 wbp-meta folder).

      parameter name=UiBinder.createInstance![CDATA[
     import com.google.gwt.cell.client.TextCell;
     import com.google.gwt.user.cellview.client.*;
     list = new CellList(new TextCell());
     list.setRowData(0, {'1. Item', '2. Long item', '3. Even longer item',
 '4. Item', '5. Long item'});
     list.setRowCount(5);
     return list;
     ]]/parameter

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



Re: Support for Tablets

2011-08-16 Thread skippy
So, an addtional question.

When GWT starts up, it looks at the User Agent so see what compiled JS
to send the browser.
What is the answer when its a tablet?

Our initial testing shows that the iPad2 works pretty good.  A few
differences/problems with popup windows.
The Motorola xoom is in bad shape.  It is the first generation of the
Android tablet however.

Links dont click, drop downs dont open, the Tabs dont click.  We are
going to see if there are some browser settings that may help.

Does GWT 2.4 hold any added support for the tablets like SmartGWT?

Thanks


On Aug 11, 8:20 am, skippy al.leh...@fisglobal.com wrote:
 We have an browser based application build using gwt 2.3 (IE9
 compatible).

 We are going to try to test the application on some newtabletslike
 the iPad2, xoom, and the BlackBerry Playbook.

 Is there any informaiton on the compatibility of the GWT 2.3 on these
 devices?

 Thanks

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



Spanish documentation is obsolete

2011-08-16 Thread Juan Pablo Gardella
At now, in home page of spanish gwt home said:

Google Web Toolkit 1.7 ya está disponible¡Nuevo!
*
*
Any news about update this page?

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



How to draw horizontal line (equivalent HR tag) in GWT 2.3 ?

2011-08-16 Thread BM
I want to have equivalent HR HTML tag in resulting HTML using GWT.
Basically to draw a horizontal line.

How do I do that?

The one way I did using UIBinder was:

g:HorizontalPanel styleName={style.demo-hr}  height=0px
width=100%
/g:HorizontalPanel

where:
ui:style
.demo-hr {
border: 1px solid #9A9A9A;
}
/ui:style

Using firebug the resultant HTML is actually a table with 0px height
and not a HR tag. Is there any better way to achieve this?
Please advise.

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



Re: Support for Tablets

2011-08-16 Thread Jim Douglas
Al --

If you're testing on Android devices, you might want to note several
serious Android bugs that can affect the usability of GWT apps:

http://code.google.com/p/android/issues/detail?id=6721
http://code.google.com/p/android/issues/detail?id=3422
http://code.google.com/p/android/issues/detail?id=7901
http://stackoverflow.com/questions/4321856/touchable-area-of-html-buttons-is-too-large-in-android-browser

On Aug 16, 8:21 am, skippy al.leh...@fisglobal.com wrote:
 So, an addtional question.

 When GWT starts up, it looks at the User Agent so see what compiled JS
 to send the browser.
 What is the answer when its a tablet?

 Our initial testing shows that the iPad2 works pretty good.  A few
 differences/problems with popup windows.
 The Motorola xoom is in bad shape.  It is the first generation of the
 Android tablet however.

 Links dont click, drop downs dont open, the Tabs dont click.  We are
 going to see if there are some browser settings that may help.

 Does GWT 2.4 hold any added support for the tablets like SmartGWT?

 Thanks

 On Aug 11, 8:20 am, skippy al.leh...@fisglobal.com wrote:







  We have an browser based application build using gwt 2.3 (IE9
  compatible).

  We are going to try to test the application on some newtabletslike
  the iPad2, xoom, and the BlackBerry Playbook.

  Is there any informaiton on the compatibility of the GWT 2.3 on these
  devices?

  Thanks

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



Re: Support for Tablets

2011-08-16 Thread Jim Douglas
One more:

http://code.google.com/p/android/issues/detail?id=2118

On Aug 16, 8:57 am, Jim Douglas jdou...@basis.com wrote:
 Al --

 If you're testing on Android devices, you might want to note several
 serious Android bugs that can affect the usability of GWT apps:

 http://code.google.com/p/android/issues/detail?id=6721http://code.google.com/p/android/issues/detail?id=3422http://code.google.com/p/android/issues/detail?id=7901http://stackoverflow.com/questions/4321856/touchable-area-of-html-but...

 On Aug 16, 8:21 am, skippy al.leh...@fisglobal.com wrote:







  So, an addtional question.

  When GWT starts up, it looks at the User Agent so see what compiled JS
  to send the browser.
  What is the answer when its a tablet?

  Our initial testing shows that the iPad2 works pretty good.  A few
  differences/problems with popup windows.
  The Motorola xoom is in bad shape.  It is the first generation of the
  Android tablet however.

  Links dont click, drop downs dont open, the Tabs dont click.  We are
  going to see if there are some browser settings that may help.

  Does GWT 2.4 hold any added support for the tablets like SmartGWT?

  Thanks

  On Aug 11, 8:20 am, skippy al.leh...@fisglobal.com wrote:

   We have an browser based application build using gwt 2.3 (IE9
   compatible).

   We are going to try to test the application on some newtabletslike
   the iPad2, xoom, and the BlackBerry Playbook.

   Is there any informaiton on the compatibility of the GWT 2.3 on these
   devices?

   Thanks

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



EntityProxy, AutoBeanVisitor and Hibernate lazy properties.

2011-08-16 Thread Tiago Rinck Caveden
Hello all,

Sorry if this has been answered somewhere - it probably has, since I doubt
I'm the fist one to have the issue - but I couldn't find it.

I have an EntityProxy for a Hibernate entity which contains a lazy
collection. In a particular use case I need this collection, so I have the
getter defined in the EntityProxy interface. In another use case, I have no
use for it, so it should not be loaded. But the AutoBeanVisitor tries to
visit every element of the said collection, what raises a runtime error
since at this stage there's no Hibernate session open.

How can I prevent this visitor from accessing this unloaded hibernate proxy?

Thank you.

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



Re: Datagrid with ScrollPanel

2011-08-16 Thread ciosbel
CellTable, DataGrid and in general all widgets that implements 
HasKeyboardPagingPolicy, have a KeyboardPagingPolicy field that can be set 
to INCREASE_RANGE in order to append the next page instead switching to it. 
Showcase shows this functionality with CellList, using a ShowMorePagerPanel 
(that extends AbstractPager) that uses an inner ScrollPanel to update the 
current range once the scrollbar reaches the end. But for the DataGrid 
should be the same: define the pager, add it to the DataGrid and set the 
KeyboardPagingPolicy.

Live example: 
http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellList
The widget panel: 
http://www.google.com/codesearch#A1edwVHBClQ/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/ShowMorePagerPanel.javaq=ShowMorePagerPanel%20%20package:http://google-web-toolkit\.googlecode\.comtype=cs

This is a somewhat unknown feature.

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



Re: Support for Tablets

2011-08-16 Thread Alain Ekambi
I d simply recommand something lil Sencha Touch. It s better for  mobile
devices.

2011/8/16 Jim Douglas jdou...@basis.com

 One more:

 http://code.google.com/p/android/issues/detail?id=2118

 On Aug 16, 8:57 am, Jim Douglas jdou...@basis.com wrote:
  Al --
 
  If you're testing on Android devices, you might want to note several
  serious Android bugs that can affect the usability of GWT apps:
 
 
 http://code.google.com/p/android/issues/detail?id=6721http://code.google.com/p/android/issues/detail?id=3422http://code.google.com/p/android/issues/detail?id=7901http://stackoverflow.com/questions/4321856/touchable-area-of-html-but.
 ..
 
  On Aug 16, 8:21 am, skippy al.leh...@fisglobal.com wrote:
 
 
 
 
 
 
 
   So, an addtional question.
 
   When GWT starts up, it looks at the User Agent so see what compiled JS
   to send the browser.
   What is the answer when its a tablet?
 
   Our initial testing shows that the iPad2 works pretty good.  A few
   differences/problems with popup windows.
   The Motorola xoom is in bad shape.  It is the first generation of the
   Android tablet however.
 
   Links dont click, drop downs dont open, the Tabs dont click.  We are
   going to see if there are some browser settings that may help.
 
   Does GWT 2.4 hold any added support for the tablets like SmartGWT?
 
   Thanks
 
   On Aug 11, 8:20 am, skippy al.leh...@fisglobal.com wrote:
 
We have an browser based application build using gwt 2.3 (IE9
compatible).
 
We are going to try to test the application on some newtabletslike
the iPad2, xoom, and the BlackBerry Playbook.
 
Is there any informaiton on the compatibility of the GWT 2.3 on these
devices?
 
Thanks

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




-- 

GWT API for  non Java based platforms
http://code.google.com/p/gwt4air/
http://www.gwt4air.appspot.com/

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



Re: Support for Tablets

2011-08-16 Thread Jim Douglas
I must have been unclear.  Android has various low level HTML/DOM/
JavaScript bugs.  The specific development toolkit is irrelevant.


On Aug 16, 9:10 am, Alain Ekambi jazzmatad...@googlemail.com wrote:
 I d simply recommand something lil Sencha Touch. It s better for  mobile
 devices.

 2011/8/16 Jim Douglas jdou...@basis.com









  One more:

 http://code.google.com/p/android/issues/detail?id=2118

  On Aug 16, 8:57 am, Jim Douglas jdou...@basis.com wrote:
   Al --

   If you're testing on Android devices, you might want to note several
   serious Android bugs that can affect the usability of GWT apps:

 http://code.google.com/p/android/issues/detail?id=6721http://code.goo
  ..

   On Aug 16, 8:21 am, skippy al.leh...@fisglobal.com wrote:

So, an addtional question.

When GWT starts up, it looks at the User Agent so see what compiled JS
to send the browser.
What is the answer when its a tablet?

Our initial testing shows that the iPad2 works pretty good.  A few
differences/problems with popup windows.
The Motorola xoom is in bad shape.  It is the first generation of the
Android tablet however.

Links dont click, drop downs dont open, the Tabs dont click.  We are
going to see if there are some browser settings that may help.

Does GWT 2.4 hold any added support for the tablets like SmartGWT?

Thanks

On Aug 11, 8:20 am, skippy al.leh...@fisglobal.com wrote:

 We have an browser based application build using gwt 2.3 (IE9
 compatible).

 We are going to try to test the application on some newtabletslike
 the iPad2, xoom, and the BlackBerry Playbook.

 Is there any informaiton on the compatibility of the GWT 2.3 on these
 devices?

 Thanks

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

 --

 GWT API for  non Java based 
 platformshttp://code.google.com/p/gwt4air/http://www.gwt4air.appspot.com/

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



Simple JSNI code snippet: Not able to invoke a method on a static variable ......

2011-08-16 Thread Karthik Reddy

public native void myJSNITest()  /*-{

var stringLength =@mypkg.MyClass::myStaticStringVariable.length()();
alert(stringLength);

}-*/;

As I run the above code, I get the following error:

* com.google.gwt.core.client.JavaScriptException: (TypeError): 
__static[1310776].length is not a function*


I would appreciate any help in pointing out what could be going on here.

thanks a lot.for your time.

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



Re: How to draw horizontal line (equivalent HR tag) in GWT 2.3 ?

2011-08-16 Thread BM
You are awesome! Thank you very much!

On Aug 16, 11:17 am, Jens jens.nehlme...@gmail.com wrote:
 You can use g:HTMLPanel or g:HTML in your UiBinder xml and put the
 hr tag directly into it, e.g.:

 g:HTMLPanel
   h1Title/h1
   g:FlowPanel ui:field=container/
   hr style=width:100%; /
   g:FlowPanel ui:field=container/
 /g:HTMLPanel

 -- J.

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



Re: Datagrid with ScrollPanel

2011-08-16 Thread Jeff Larsen
Oh cool, I never had need for CellList so I never really played with that 
example. 

Thanks!

KeyboardPaging seems like the wrong name if it can be used this way. 

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



Extend GWT-RPC protocol to support AMF3 protocol

2011-08-16 Thread Don Rudo
Hello I'm looking for a way to extend the GWT-RPC protocol in order to
make the RPC service able to be used from more products (more specific
flex and flash products).

The intention is to be able to use GWT RPC for applications using the
Action Message Format (AMF 3) which specification is open source and
according to this benchmarks ( 
http://www.jamesward.com/2007/04/30/ajax-and-flex-data-loading-benchmarks/
)  it's a very efficient RPC protocol.

Best regards,

Carlos.

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



How to do user simple user authentication and provide a different module for different user types?

2011-08-16 Thread Sérgio Miguel Neves Lopes
Hi,

I'm  struggling with a way to provide authentication in an application I'm 
developing. I've been trying to get basic user authentication in place but I'm 
having doubts on how to properly show the users a login page, how to pass 
around an authorization token (sessions?) or how to give my users the correct 
module based on their role.

I have two user roles, this is a simple application that will manage some car 
information that a mechanic will fill and that the car's owner can check 
online. The bulk of the application is of interest only to the mechanic, the 
owner just checks a few listing screens. After reading this page: 
htp://code.google.com/webtoolkit/articles/dynamic_host_page.html, I though 
about creating a servlet that logs the user in and shows the correct module 
(car owner/car mechanic) based on the user's credentials (username/password). 
But I'm completely at loss on how to do this.

How can I make the servlet for authentication be the default servlet, confirm 
that the user is authenticated or needs to login and than send that information 
to be used by GWT? I've mapped my authentication servlet to respond to the url 
'/', it also writes the HTML with the correct js files for the modules I need 
but I'm not seeing a way to send the login info to GWT.

Any docs on how to achieve this?

Regards,

Sérgio Lopes

--
https://www.plesform.com - Gestão de formação simples e eficaz.




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



Re: How to do user simple user authentication and provide a different module for different user types?

2011-08-16 Thread Juan Pablo Gardella
You can see Spring Security or Apache Shiro. This frameworks are easy and
mature.

2011/8/16 Sérgio Miguel Neves Lopes knitter...@gmail.com

 Hi,

 I'm  struggling with a way to provide authentication in an application I'm
 developing. I've been trying to get basic user authentication in place but
 I'm having doubts on how to properly show the users a login page, how to
 pass around an authorization token (sessions?) or how to give my users the
 correct module based on their role.

 I have two user roles, this is a simple application that will manage some
 car information that a mechanic will fill and that the car's owner can check
 online. The bulk of the application is of interest only to the mechanic, the
 owner just checks a few listing screens. After reading this page: htp://
 code.google.com/webtoolkit/articles/dynamic_host_page.html, I though about
 creating a servlet that logs the user in and shows the correct module (car
 owner/car mechanic) based on the user's credentials (username/password). But
 I'm completely at loss on how to do this.

 How can I make the servlet for authentication be the default servlet,
 confirm that the user is authenticated or needs to login and than send that
 information to be used by GWT? I've mapped my authentication servlet to
 respond to the url '/', it also writes the HTML with the correct js files
 for the modules I need but I'm not seeing a way to send the login info to
 GWT.

 Any docs on how to achieve this?

 Regards,

 Sérgio Lopes

 --
 https://www.plesform.com - Gestão de formação simples e eficaz.




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



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



Re: Extend GWT-RPC protocol to support AMF3 protocol

2011-08-16 Thread Juan Pablo Gardella
Are you look gwt4air?

2011/8/16 Don Rudo carlosalbert...@gmail.com

 Hello I'm looking for a way to extend the GWT-RPC protocol in order to
 make the RPC service able to be used from more products (more specific
 flex and flash products).

 The intention is to be able to use GWT RPC for applications using the
 Action Message Format (AMF 3) which specification is open source and
 according to this benchmarks (
 http://www.jamesward.com/2007/04/30/ajax-and-flex-data-loading-benchmarks/
 )  it's a very efficient RPC protocol.

 Best regards,

 Carlos.

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



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



How do I load test data into my Widget

2011-08-16 Thread DemiSheep
I am using the Google Toolkit and I have created a widget with a
listbox, vertical split panel and a couple of buttons. What I am
trying to do is have a list of files in a local directory listed in
the listbox and I want to be able to click on a file and have it
displayed in the top part of the split panel. I found out the hard way
about browsers and file IO and not being able to use java.io.File.

What are my options? Can I put the data files inside a jar or
something and have the widget read it in that way? I need to do this
as a test run, to implement an new feature with working with the data.
It's not going to be any kind of final server hosted application, I am
not concerned about how the actual files will be loaded in the future.

Any suggestions would be greatly appreciated.

Respectfully,
DemiSheep

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



Re: How do I load test data into my Widget

2011-08-16 Thread Jim Douglas
Set aside implementation details for a second; what are you actually
trying to accomplish?

The short answer, to respond to the question as you've phrased it
here, is that it's impossible(*) to write a browser-based application
(with GWT, hand-crafted JavaScript, or any toolkit) that will
programmatically retrieve a list of files on the client.  Browser
security rules forbid anything like that (for obvious reasons -- it
would be Very Not Good if any random web page had the ability to go
snooping around in your filesystem).

(*) In this context, impossible disregards messing around with local
security policy files and/or using browser-specific hacks.

On Aug 16, 12:14 pm, DemiSheep andre.fl...@gmail.com wrote:
 I am using the Google Toolkit and I have created a widget with a
 listbox, vertical split panel and a couple of buttons. What I am
 trying to do is have a list of files in a local directory listed in
 the listbox and I want to be able to click on a file and have it
 displayed in the top part of the split panel. I found out the hard way
 about browsers and file IO and not being able to use java.io.File.

 What are my options? Can I put the data files inside a jar or
 something and have the widget read it in that way? I need to do this
 as a test run, to implement an new feature with working with the data.
 It's not going to be any kind of final server hosted application, I am
 not concerned about how the actual files will be loaded in the future.

 Any suggestions would be greatly appreciated.

 Respectfully,
 DemiSheep

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



Re: java.lang.IllegalArgumentException: Unknown proxy type

2011-08-16 Thread Y2i
filed an issue: 
http://code.google.com/p/google-web-toolkit/issues/detail?id=6699

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



GWT Developer Plugin for Firefox 6

2011-08-16 Thread Jason Yin
Hi

just upgraded to firefox 6 today.. and realized GWT Developer plugin
isn't compatible with it.
any ETA on when this will be available?

Thanks

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



Re: FlexTable RowSpan problem

2011-08-16 Thread Ivan Pulleyn
Hi,

I've recently experienced similar bugs in FlexTable and had to work around
it by next my tables and never using colSpan. I'm curious if GWT 2.4 will
fix this but I haven't had the chance to look into it.

Ivan...

On Tue, Aug 16, 2011 at 1:37 PM, md matthias_deh...@gmx.de wrote:

 Hi!

 I'm developing an application using GWT 2.3.3
 In this application I have a FlexTable which includes (as a widget)
 another FlexTable in many cells (some cells are empty, as for the
 reason that i want to set a colSpan so that the flexTable in Cell
 (1,0) combines (2,0).

 So the Problem:
 If setting the colSpan (0,0,2)  it should combine cell (0,0) and cell
 (1,0). Unfortunately cell (1,0) moves to another empty cell on the
 next column - so the whole structrue of the FlexTable is corrupt.

 __
 |0,0 | 0,1 | 0,2|
 |1,0 | 1,1 | 1,2|
 |2,0 | 2,1 | 2,2|
 |3,0 | 3,1 | 3,2|
 |4,0 | 4,1 | 4,2|


 with rowSpan(0,0,2)

 
 |0,0 | 0,1 | 0,2|
 |0,0 | 1,0 | 1,1 | 1,2|
 |2,0 | 2,1 | 2,2 |
 |3,0 | 3,1 | 3,2 |
 |4,0 | 4,1 | 4,2 |





 Is there any solution for this problem?
 I've tried (as mentioned here on the mailing list) to give each row a
  (empty String) but unfortunately this didn't work.




 //here is how i set the widgets for the flexTable:

 flexTable_6.setWidget(1,0,newTable(komponenten.get(1));

 //This is the rowSpan
 flexTable_6.getFlexCellFormatter().setRowSpan(1,0,2);


 As a matter of fact I am setting the widgets dynamic out of an array
 (each widget/flextable representates an object) and the table contains
 about 140 widgets - if a widget needs a colSpan of e.g. 3, the
 following 2 cells are empty.


 I'm not sure if i explained the problem intelligible, caused by the
 reason that this is my first post ever on such issues, if there is a
 need for more informations please ask.

 I hope somebody can help?-Thanks alot!

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



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



Re: GWT Developer Plugin for Firefox 6

2011-08-16 Thread Chris Conroy
Jason,

Unfortunately, for the time being we're unable to keep pace with Mozilla's
new release schedule since the plugin update process is quite manual. We'll
be sure to announce to the list when FF6 support is ready. In the meantime,
you'll just have to fall back to =FF5 for DevMode.

On Tue, Aug 16, 2011 at 3:51 PM, Jason Yin mypurchaseord...@gmail.comwrote:

 Hi

 just upgraded to firefox 6 today.. and realized GWT Developer plugin
 isn't compatible with it.
 any ETA on when this will be available?

 Thanks

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



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



Re: Simple JSNI code snippet: Not able to invoke a method on a static variable ......

2011-08-16 Thread Karthik Reddy
This has been bugging me for a while now. Any thoughts or pointers would be 
much appreciated.

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



Aw: polymorphism is still broken in 2.4 RC1

2011-08-16 Thread Jens
Just tried it and it works for me in 2.4 RC 1.

Make sure you have @ProxyFor annotations on all proxy interfaces or use 
@ExtraType annotation.

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



GWT 2.3 XSRF working project example

2011-08-16 Thread Alexey Zaryaev
Can somebody have GWT 2.3 XSRF working eclipse project example?

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



Re: GWT Developer Plugin for Firefox 6

2011-08-16 Thread Jim Douglas
Bit of a firestorm over there...a proposal to hide the version number
from the user:

http://arstechnica.com/web/news/2011/08/firefox-6-ships-but-we-shouldnt-really-pay-attention.ars
https://bugzilla.mozilla.org/show_bug.cgi?id=678775

On Aug 16, 2:03 pm, Chris Conroy con...@google.com wrote:
 Jason,

 Unfortunately, for the time being we're unable to keep pace with Mozilla's
 new release schedule since the plugin update process is quite manual. We'll
 be sure to announce to the list when FF6 support is ready. In the meantime,
 you'll just have to fall back to =FF5 for DevMode.

 On Tue, Aug 16, 2011 at 3:51 PM, Jason Yin mypurchaseord...@gmail.comwrote:







  Hi

  just upgraded to firefox 6 today.. and realized GWT Developer plugin
  isn't compatible with it.
  any ETA on when this will be available?

  Thanks

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

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



Using AbstractImagePrototype

2011-08-16 Thread bryanb
In this snippet of code:

AbstractImagePrototype blah =
AbstractImagePrototype.create(Resources.INSTANCE.blah_image());
Button button = new Button(blah.getHTML() + nbsp;Blah);

I'd like to be able to make the image vertically aligned bottom,  but
can't figure out how to do it.

I tried:

ImagePrototypeElement element = blah.createElement();
element.getStyle().setVerticalAlign(VerticalAlign.BOTTOM);

but couldn't get that to work. Ideally, it would be nice to use a CSS
class, something like:

blah.addStyleName(Resources.INSTANCE.css().alignBottom()); // won't
compile !

Thanks.

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



Re: Aw: polymorphism is still broken in 2.4 RC1

2011-08-16 Thread Y2i
Thanks so much, I really appreciate you pointing out @ExtraType attribute. 
 It solved all my migration problems.

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



GWT CELLTABLE :How to avoid RPC call in AsycDataProvider when I click on prev button.

2011-08-16 Thread vaibhav bhalke
Hi,

GWT CELLTABLE :How to avoid RPC call in AsycDataProvider when I click on
prev button.

I am using AsyncDataProvider to fetch data from server to celltable page.

 Each time when i click next button i am getting next 100 records from the
server. And it is displaying the data fine. No issues with next button.

When i click prev button, i am assuming that cellTable had stored the
previously displayed data, and just want to display that existing data.

How to handle this case without making RPC ?

ListDataProvider storing previously displayed data(previously added data in
dataProviderList )

Same way How we can handle in AsyncDataProvider ?


-- 
Best Regards,
Vaibhav Bhalke


http://about.me/vaibhavbhalke

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



[gwt-contrib] How to build large apps with GWT/GAE?

2011-08-16 Thread dflorey
Are there any plans to provide tools to support large apps with GWT / GAE?
If an app supports multiple locales, browsers, gears etc. you can easily end 
up with many dozens of permutations. 
As the total application size is currently limited to 150 MB on the GAE this 
causes problems for larger applications.
I've been thinking of a solution where different permutations or modules 
would be served from the blobstore instead of static file space but I have 
no idea how to implement such a GAE linker or which classes have to be 
adjusted.
In an ideal world the Google plugin would take care of uploading the 
fragments to the blobstore when deploying the app :-)
Any ideas?

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

Re: [gwt-contrib] How to build large apps with GWT/GAE?

2011-08-16 Thread Daniel Bell
Could you serve the static content (including GWT permutations) from a
different web server (could be one of those free PHP web servers), and still
host the Java code in App Engine?

On 16 August 2011 20:20, dflorey daniel.flo...@gmail.com wrote:

 Are there any plans to provide tools to support large apps with GWT / GAE?
 If an app supports multiple locales, browsers, gears etc. you can easily
 end up with many dozens of permutations.
 As the total application size is currently limited to 150 MB on the GAE
 this causes problems for larger applications.
 I've been thinking of a solution where different permutations or modules
 would be served from the blobstore instead of static file space but I have
 no idea how to implement such a GAE linker or which classes have to be
 adjusted.
 In an ideal world the Google plugin would take care of uploading the
 fragments to the blobstore when deploying the app :-)
 Any ideas?

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

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

[gwt-contrib] Re: Fix TreeMap.Node.equals() to allow nodes to be equal to other types of Map.Entry. (issue1523804)

2011-08-16 Thread rchandia

On 2011/08/15 18:10:27, cpovirk wrote:

LGTM

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

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


[gwt-contrib] Collapse deferred-binding property values that depend on collapsed property values. (issue1525804)

2011-08-16 Thread bobv%google . com

Reviewers: rjrjr, jlabanca,

Message:
Actual changes marked in the review, the rest is autoformatting.

The basis for this change is to prevent properties that depend on other
collapsed properties from ballooning the number of hard (emitted)
permutations.  For example, the html5-related deferred binding
properties prevent a simple collapse-property name=user.agent / from
actually reducing the number of permutations emitted.

The rule:
  A dependency on a collapsed property forms an equivalence set for the
dependent value.  In other words, Collapsing is contagious.


http://gwt-code-reviews.appspot.com/1525804/diff/1/dev/core/src/com/google/gwt/dev/cfg/BindingProperty.java
File dev/core/src/com/google/gwt/dev/cfg/BindingProperty.java (right):

http://gwt-code-reviews.appspot.com/1525804/diff/1/dev/core/src/com/google/gwt/dev/cfg/BindingProperty.java#newcode313
dev/core/src/com/google/gwt/dev/cfg/BindingProperty.java:313: void
normalizeCollapsedValues() {
Actual change is here.

http://gwt-code-reviews.appspot.com/1525804/diff/1/dev/core/src/com/google/gwt/dev/cfg/PropertyPermutations.java
File dev/core/src/com/google/gwt/dev/cfg/PropertyPermutations.java
(right):

http://gwt-code-reviews.appspot.com/1525804/diff/1/dev/core/src/com/google/gwt/dev/cfg/PropertyPermutations.java#newcode230
dev/core/src/com/google/gwt/dev/cfg/PropertyPermutations.java:230:
public String toString() {
Actual change here.

Description:
Collapse deferred-binding property values that depend on collapsed
property values.
Patch by: bobv
Review by: rjrjr


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

Affected files:
  M dev/core/src/com/google/gwt/dev/cfg/BindingProperty.java
  M dev/core/src/com/google/gwt/dev/cfg/PropertyPermutations.java
  M dev/core/test/com/google/gwt/dev/cfg/ModuleDefTest.java


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


[gwt-contrib] Re: Collapse deferred-binding property values that depend on collapsed property values. (issue1525804)

2011-08-16 Thread jlabanca

LGTM


http://gwt-code-reviews.appspot.com/1525804/diff/1/dev/core/test/com/google/gwt/dev/cfg/ModuleDefTest.java
File dev/core/test/com/google/gwt/dev/cfg/ModuleDefTest.java (right):

http://gwt-code-reviews.appspot.com/1525804/diff/1/dev/core/test/com/google/gwt/dev/cfg/ModuleDefTest.java#newcode158
dev/core/test/com/google/gwt/dev/cfg/ModuleDefTest.java:158: /*-
extra dash

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

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


[gwt-contrib] [google-web-toolkit] r10527 committed - Fix TreeMap.Node.equals() to allow nodes to be equal to other types of...

2011-08-16 Thread codesite-noreply

Revision: 10527
Author:   cpov...@google.com
Date: Tue Aug 16 03:35:30 2011
Log:  Fix TreeMap.Node.equals() to allow nodes to be equal to other  
types of Map.Entry.

While there, eliminate an unnecessary unchecked cast.

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

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

Modified:
 /trunk/user/super/com/google/gwt/emul/java/util/TreeMap.java
 /trunk/user/test/com/google/gwt/emultest/java/util/TreeMapTest.java

===
--- /trunk/user/super/com/google/gwt/emul/java/util/TreeMap.java	Fri Oct  8  
06:15:38 2010
+++ /trunk/user/super/com/google/gwt/emul/java/util/TreeMap.java	Tue Aug 16  
03:35:30 2011

@@ -199,16 +199,14 @@
   this.isRed = isRed;
 }

-@SuppressWarnings(unchecked)
-// generic cast
 @Override
 public boolean equals(Object o) {
-  if (!(o instanceof Node)) {
+  if (!(o instanceof Map.Entry)) {
 return false;
   }
-  NodeK, V other = (NodeK, V) o; // suppress unchecked
-  return Utility.equalsWithNullCheck(key, other.key)
-   Utility.equalsWithNullCheck(value, other.value);
+  Map.Entry?, ? other = (Map.Entry?, ?) o;
+  return Utility.equalsWithNullCheck(key, other.getKey())
+   Utility.equalsWithNullCheck(value, other.getValue());
 }

 public K getKey() {
===
--- /trunk/user/test/com/google/gwt/emultest/java/util/TreeMapTest.java	Thu  
Dec 16 11:33:51 2010
+++ /trunk/user/test/com/google/gwt/emultest/java/util/TreeMapTest.java	Tue  
Aug 16 03:35:30 2011

@@ -46,6 +46,50 @@
  * work.
  */
 public abstract class TreeMapTestK extends ComparableK, V extends  
TestMap {

+  private static final class SimpleEntryK, V implements EntryK, V {
+private static boolean equal(Object a, Object b) {
+  return (a == null) ? (b == null) : a.equals(b);
+}
+
+private final K key;
+private final V value;
+
+private SimpleEntry(K key, V value) {
+  this.key = key;
+  this.value = value;
+}
+
+@Override
+public boolean equals(Object object) {
+  if (object instanceof Entry) {
+Entry?, ? other = (Entry?, ?) object;
+return equal(key, other.getKey())  equal(value,  
other.getValue());

+  }
+  return false;
+}
+
+@Override
+public K getKey() {
+  return key;
+}
+
+@Override
+public V getValue() {
+  return value;
+}
+
+@Override
+public int hashCode() {
+  return ((key == null) ? 0 : key.hashCode())
+  ^ ((value == null) ? 0 : value.hashCode());
+}
+
+@Override
+public final V setValue(V value) {
+  throw new UnsupportedOperationException();
+}
+  }
+
   /**
* Verify a Collection is explicitly and implicitly empty.
*
@@ -515,6 +559,10 @@

 assertEquals(entry.getKey(), getKeys()[0]);
 assertEquals(entry.getValue(), getValues()[0]);
+// Don't use assertEquals; we want to be clear about which object's  
equals()

+// method to test.
+assertTrue(
+entry.equals(new SimpleEntryK, V(getKeys()[0], getValues()[0])));
   }

   /**

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


[gwt-contrib] Re: Fixes problem with datanucleus enhancement and Appengine deployment (issue1521803)

2011-08-16 Thread rjrjr

Nice, thanks. This really doesn't feel so bad to me. Just some notes
below about comments to add.


http://gwt-code-reviews.appspot.com/1521803/diff/1/samples/mobilewebapp/pom.xml
File samples/mobilewebapp/pom.xml (right):

http://gwt-code-reviews.appspot.com/1521803/diff/1/samples/mobilewebapp/pom.xml#newcode73
samples/mobilewebapp/pom.xml:73: /dependency
Could you add a comment to this effect?

On 2011/08/15 22:04:18, rchandia wrote:

On 2011/08/12 22:38:29, rjrjr wrote:
 Are user and dev really provided? I thought GPE backs off and relies

on maven

to
 download them.
GPE does defer to the GWT maven plugin to silently get gwt-dev.jar,

but in this

case we want it available to javac to compile the AppCacheLinker. Of

course we

do not want it available ar runtime nor to gwtc (because gwtc gets it

in its own

way), but Maven is designed to be coarse grained in this regard. GWTC

complains,

but this still works.



The scope provided means get it, use it to compile (javac), but not

when

packaging nor testing. It should prevent gwt-dev.jar from reaching the

war; but

a bug in the maven plugin makes it reach the war nevertheless so we

forcibly

delete it later.


http://gwt-code-reviews.appspot.com/1521803/diff/1/samples/mobilewebapp/pom.xml#newcode182
samples/mobilewebapp/pom.xml:182: !-- TODO: Who is using this? Just
GAE? Is anyone, really? --
It would be good to add a comment saying so. Seems odd that the mvn gae
plugin doesn't handle this for you.

On 2011/08/15 22:04:18, rchandia wrote:

On 2011/08/12 22:38:29, rjrjr wrote:
 etc.
Yes, this one is used by App Engine


http://gwt-code-reviews.appspot.com/1521803/diff/1/samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/server/domain/Task.java
File
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/server/domain/Task.java
(right):

http://gwt-code-reviews.appspot.com/1521803/diff/1/samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/server/domain/Task.java#newcode50
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/server/domain/Task.java:50:
populateDatastore();
Could you add a TODO? Maybe even a pointer to David's sample.

On 2011/08/15 22:04:18, rchandia wrote:

On 2011/08/12 22:38:29, rjrjr wrote:
 populateDatastore uses its own emf. Does the one in findAllTasks

actually see

 the changes populateDatastore makes -- did you actually see the

samples show

up?
Done. EMF is now used as a singleton.



The next step will be to use Locators and ServiceLocators to provide a

more

entrerprisey sample. In a future patch, though.



http://gwt-code-reviews.appspot.com/1521803/diff/5002/samples/mobilewebapp/pom.xml
File samples/mobilewebapp/pom.xml (right):

http://gwt-code-reviews.appspot.com/1521803/diff/5002/samples/mobilewebapp/pom.xml#newcode308
samples/mobilewebapp/pom.xml:308: !-- Don't deploy gwt-user jar to GAE
--
Another good spot for a comment explaining why we have to do this, and
musing on what we might do instead in future. Also, it looks like you're
stripping gwt-dev as well, no?

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

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


[gwt-contrib] Re: Adding benchmarks to measure the performance of updating na existing tables. Also refactored Wid... (issue1419801)

2011-08-16 Thread rjrjr

LGTM

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

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


[gwt-contrib] Re: Adding benchmarks to measure the performance of updating na existing tables. Also refactored Wid... (issue1419801)

2011-08-16 Thread jlabanca

committed as r10528

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

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


[gwt-contrib] [google-web-toolkit] r10529 committed - Warn that UiRenderer is subject to change.

2011-08-16 Thread codesite-noreply

Revision: 10529
Author:   gwt.mirror...@gmail.com
Date: Tue Aug 16 11:32:33 2011
Log:  Warn that UiRenderer is subject to change.

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

Modified:
 /trunk/user/src/com/google/gwt/uibinder/client/UiRenderer.java

===
--- /trunk/user/src/com/google/gwt/uibinder/client/UiRenderer.java	Fri Jul   
8 11:19:37 2011
+++ /trunk/user/src/com/google/gwt/uibinder/client/UiRenderer.java	Tue Aug  
16 11:32:33 2011

@@ -21,7 +21,10 @@
 /**
  * Marker interface for classes whose implementation is to be provided via  
UiBinder code

  * generation for SafeHtml rendering.
- *
+ * p
+ * span style='color: red'This is experimental code in active
+ * developement. It is unsupported, and its api is subject to
+ * change./span
  * @param T the type to render
  */
 public interface UiRendererT {

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


[gwt-contrib] Re: Fixes problem with datanucleus enhancement and Appengine deployment (issue1521803)

2011-08-16 Thread rchandia

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

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


[gwt-contrib] Re: Fixes problem with datanucleus enhancement and Appengine deployment (issue1521803)

2011-08-16 Thread rchandia


http://gwt-code-reviews.appspot.com/1521803/diff/1/samples/mobilewebapp/pom.xml
File samples/mobilewebapp/pom.xml (right):

http://gwt-code-reviews.appspot.com/1521803/diff/1/samples/mobilewebapp/pom.xml#newcode73
samples/mobilewebapp/pom.xml:73: /dependency
On 2011/08/16 16:49:52, rjrjr wrote:

Could you add a comment to this effect?



On 2011/08/15 22:04:18, rchandia wrote:
 On 2011/08/12 22:38:29, rjrjr wrote:
  Are user and dev really provided? I thought GPE backs off and

relies on

maven
 to
  download them.
 GPE does defer to the GWT maven plugin to silently get gwt-dev.jar,

but in

this
 case we want it available to javac to compile the AppCacheLinker. Of

course we

 do not want it available ar runtime nor to gwtc (because gwtc gets

it in its

own
 way), but Maven is designed to be coarse grained in this regard.

GWTC

complains,
 but this still works.

 The scope provided means get it, use it to compile (javac), but

not when

 packaging nor testing. It should prevent gwt-dev.jar from reaching

the war;

but
 a bug in the maven plugin makes it reach the war nevertheless so we

forcibly

 delete it later.



Done.

http://gwt-code-reviews.appspot.com/1521803/diff/1/samples/mobilewebapp/pom.xml#newcode182
samples/mobilewebapp/pom.xml:182: !-- TODO: Who is using this? Just
GAE? Is anyone, really? --
On 2011/08/16 16:49:52, rjrjr wrote:

It would be good to add a comment saying so. Seems odd that the mvn

gae plugin

doesn't handle this for you.



On 2011/08/15 22:04:18, rchandia wrote:
 On 2011/08/12 22:38:29, rjrjr wrote:
  etc.
 Yes, this one is used by App Engine



Done.

http://gwt-code-reviews.appspot.com/1521803/diff/1/samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/server/domain/Task.java
File
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/server/domain/Task.java
(right):

http://gwt-code-reviews.appspot.com/1521803/diff/1/samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/server/domain/Task.java#newcode50
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/server/domain/Task.java:50:
populateDatastore();
On 2011/08/16 16:49:52, rjrjr wrote:

Could you add a TODO? Maybe even a pointer to David's sample.



On 2011/08/15 22:04:18, rchandia wrote:
 On 2011/08/12 22:38:29, rjrjr wrote:
  populateDatastore uses its own emf. Does the one in findAllTasks

actually

see
  the changes populateDatastore makes -- did you actually see the

samples show

 up?
 Done. EMF is now used as a singleton.

 The next step will be to use Locators and ServiceLocators to provide

a more

 entrerprisey sample. In a future patch, though.




Done.

http://gwt-code-reviews.appspot.com/1521803/diff/5002/samples/mobilewebapp/pom.xml
File samples/mobilewebapp/pom.xml (right):

http://gwt-code-reviews.appspot.com/1521803/diff/5002/samples/mobilewebapp/pom.xml#newcode308
samples/mobilewebapp/pom.xml:308: !-- Don't deploy gwt-user jar to GAE
--
On 2011/08/16 16:49:52, rjrjr wrote:

Another good spot for a comment explaining why we have to do this, and

musing on

what we might do instead in future. Also, it looks like you're

stripping gwt-dev

as well, no?


Done.

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

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


[gwt-contrib] Re: Pretty massive refactoring of FieldManager and HtmlTemplates to make (issue1522803)

2011-08-16 Thread hermes

Overall looks pretty good. Still trying to digest this first round. I'll
take another pass tomorrow. For now, just silly style suggestions.


http://gwt-code-reviews.appspot.com/1522803/diff/3001/user/src/com/google/gwt/uibinder/attributeparsers/FieldReferenceConverter.java
File
user/src/com/google/gwt/uibinder/attributeparsers/FieldReferenceConverter.java
(right):

http://gwt-code-reviews.appspot.com/1522803/diff/3001/user/src/com/google/gwt/uibinder/attributeparsers/FieldReferenceConverter.java#newcode94
user/src/com/google/gwt/uibinder/attributeparsers/FieldReferenceConverter.java:94:
int computedCount;
Can you comment on the purpose of this var?

http://gwt-code-reviews.appspot.com/1522803/diff/3001/user/src/com/google/gwt/uibinder/rebind/FieldManager.java
File user/src/com/google/gwt/uibinder/rebind/FieldManager.java (right):

http://gwt-code-reviews.appspot.com/1522803/diff/3001/user/src/com/google/gwt/uibinder/rebind/FieldManager.java#newcode75
user/src/com/google/gwt/uibinder/rebind/FieldManager.java:75: if
(fieldName.startsWith(get_)) {
What if you move get_ and build_ to consts?

http://gwt-code-reviews.appspot.com/1522803/diff/3001/user/src/com/google/gwt/uibinder/rebind/FieldManager.java#newcode301
user/src/com/google/gwt/uibinder/rebind/FieldManager.java:301: source,
this, typeOracle);
move to previous line

http://gwt-code-reviews.appspot.com/1522803/diff/3001/user/src/com/google/gwt/uibinder/rebind/FieldReference.java
File user/src/com/google/gwt/uibinder/rebind/FieldReference.java
(right):

http://gwt-code-reviews.appspot.com/1522803/diff/3001/user/src/com/google/gwt/uibinder/rebind/FieldReference.java#newcode87
user/src/com/google/gwt/uibinder/rebind/FieldReference.java:87: if
(logger != null) {
Seems bad, in which situation logger is null?

http://gwt-code-reviews.appspot.com/1522803/diff/3001/user/src/com/google/gwt/uibinder/rebind/FieldReference.java#newcode163
user/src/com/google/gwt/uibinder/rebind/FieldReference.java:163: for
(int i = 0; i  left.types.length; i++) {
I'm seeing this again. Do you think it's worth moving this to a static
method in some helper class?

http://gwt-code-reviews.appspot.com/1522803/diff/3001/user/src/com/google/gwt/uibinder/rebind/FieldReference.java#newcode222
user/src/com/google/gwt/uibinder/rebind/FieldReference.java:222: if
(isNumber(leftHandType)  isNumber(rightHandType) 
(rightHandType.isPrimitive() != null)) {
ughh, exploding 100 cols.

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

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


[gwt-contrib] Re: Fixes problem with datanucleus enhancement and Appengine deployment (issue1521803)

2011-08-16 Thread rjrjr

LGTM

Great, thanks.

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

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


[gwt-contrib] Don't generate bad code for bad field names (issue1528803)

2011-08-16 Thread rjrjr

Reviewers: rchandia,

Description:
Don't generate bad code for bad field names


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

Affected files:
  M user/src/com/google/gwt/uibinder/rebind/FieldManager.java


Index: user/src/com/google/gwt/uibinder/rebind/FieldManager.java
===
--- user/src/com/google/gwt/uibinder/rebind/FieldManager.java	(revision  
10529)

+++ user/src/com/google/gwt/uibinder/rebind/FieldManager.java   (working copy)
@@ -21,8 +21,8 @@
 import com.google.gwt.core.ext.typeinfo.JType;
 import com.google.gwt.core.ext.typeinfo.TypeOracle;
 import com.google.gwt.uibinder.rebind.model.ImplicitCssResource;
+import com.google.gwt.uibinder.rebind.model.OwnerClass;
 import com.google.gwt.uibinder.rebind.model.OwnerField;
-import com.google.gwt.uibinder.rebind.model.OwnerClass;

 import java.util.Arrays;
 import java.util.Collection;
@@ -31,6 +31,7 @@
 import java.util.LinkedHashMap;
 import java.util.LinkedList;
 import java.util.Map;
+import java.util.regex.Pattern;

 /**
  * This class handles all {@link FieldWriter} instances created for the  
current

@@ -53,6 +54,9 @@
 }
   };

+  private static final Pattern JAVA_IDENTIFIER =
+  Pattern.compile([\\p{L}_$][\\p{L}\\p{N}_$]*);
+
   public static String getFieldBuilder(String fieldName) {
 return String.format(build_%s(), fieldName);
   }
@@ -60,8 +64,8 @@
   public static String getFieldGetter(String fieldName) {
 return String.format(get_%s(), fieldName);
   }
-
   private final TypeOracle types;
+
   private final MortalLogger logger;

   /**
@@ -343,6 +347,12 @@
 }
   }

+  private void ensureValidity(String fieldName) throws  
UnableToCompleteException {

+if (!JAVA_IDENTIFIER.matcher(fieldName).matches()) {
+  logger.die(Illegal field name \%s\, fieldName);
+}
+  }
+
   /**
* Gets the number of times a getter for the given field is called.
*/
@@ -357,6 +367,7 @@

   private FieldWriter registerField(String fieldName, FieldWriter field)
   throws UnableToCompleteException {
+ensureValidity(fieldName);
 requireUnique(fieldName);
 fieldsMap.put(fieldName, field);

@@ -368,7 +379,7 @@

 return field;
   }
-
+
   private void requireUnique(String fieldName) throws  
UnableToCompleteException {

 if (fieldsMap.containsKey(fieldName)) {
   logger.die(DUPLICATE_FIELD_ERROR, fieldName);


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


[gwt-contrib] Re: Don't generate bad code for bad field names (issue1528803)

2011-08-16 Thread rchandia

LGTM

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

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


[gwt-contrib] [google-web-toolkit] r10530 committed - Edited wiki page RequestFactoryInterfaceValidation through web user in...

2011-08-16 Thread codesite-noreply

Revision: 10530
Author:   bobv%google@gtempaccount.com
Date: Tue Aug 16 12:44:31 2011
Log:  Edited wiki page RequestFactoryInterfaceValidation through web  
user interface.

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

Modified:
 /wiki/RequestFactoryInterfaceValidation.wiki

===
--- /wiki/RequestFactoryInterfaceValidation.wikiTue Aug  2 17:49:09 2011
+++ /wiki/RequestFactoryInterfaceValidation.wikiTue Aug 16 12:44:31 2011
@@ -8,18 +8,44 @@

 The RequestFactory annotation processor will validate the RequestFactory  
interface declarations and ensure that the mapping of proxy properties and  
context methods to their domain types is valid.  The manner in which the  
errors are reported depends on the method by which the annotation processor  
is invoked.


-In addition to validating the interfaces, the annotation processor also  
generates addition Java types which embed pre-computed metadata that is  
required by the RequestFactory server components.  Users of  
`RequestFactorySource` must also run the annotation processor in order to  
provide the client code with obfuscated type token mappings.  In the  
client-only case, the server domain types are not required.

-
-It is necessary for both the shared RequestFactory interfaces and their  
server domain counterparts to be available on the classpath.  In order to  
accomodate different build processes, the va
+In addition to validating the interfaces, the annotation processor also  
generates addition Java types which embed pre-computed metadata that is  
required by the RequestFactory server components.  Users of  
`RequestFactorySource` must also run the annotation processor in order to  
provide the client code with obfuscated type token mappings.  In the  
client-only case, the server domain types are not required.


 = Annotation Processor =

+It is necessary for both the shared RequestFactory interfaces and their  
server domain counterparts to be available on the sourcepath or classpath  
during the compilation process.  If this is not convenient, see the  
`ValidationTool` section for information on post-processing pre-compiled  
shared interfaces and domain types as part of a deployment process.

+
 == javac builds==

-Users using javac 1.6 or later to compile their server projects need only  
to include the `requestfactory-client.jar` on the build classpath.  The  
compiler will automatically load the annotation processor from the JAR file.
+Users using javac 1.6 or later to compile their server projects need only  
to include the `requestfactory-apt.jar` on the build classpath.  The  
compiler will automatically load the annotation processor from the JAR file.


 == IDE configuration ==

-* TODO * add screenshots for how to configure Eclipse.
+=== Eclipse ===
+Open the project properties dialog and navigate to `Java Compiler -  
Annotation Processing`.  Ensure that annotation processing is enabled.

+
+img src=http://i.imgur.com/7upSN.png; /
+
+Add the `requestfactory-apt.jar` to the factory path.
+
+img src=http://i.imgur.com/lMw0T.png; /
+
+The project will need to be rebuilt, but once this is done, any  
RequestFactory validation errors or warnings will be displayed in the  
editor upon saving:

+
+img src=http://i.imgur.com/QQGHU.png; /

 = !ValidationTool =
+
+Not all build processes are amenable to compiling the shared proxy  
interfaces and the domain types at the same time.  Cases where the  
`ProxyForName` and `ServiceName` annotation are used are typical of this  
build configuration.  In these cases, it is possible to post-process  
pre-compiled shared and domain types using the RequestFactory  
`ValidationTool`.

+
+To run the `ValidationTool` it is necessary to have the shared interfaces  
and domain types available on the classpath.  The binary names of the  
RequestFactory interfaces are provided to the tool as well as an output  
location, which may be a directory or a jar file.  The tool will produce  
one or more class files that contain precomputed metadata that will be used  
by the RequestFactory server code.

+{{{
+#!/bin/sh
+java \
+  -cp  
requestfactory-apt.jar:requestfactory-server.jar:your-shared-classes.jar:your-server-classes.jar  
\

+  com.google.web.bindery.requestfactory.apt.ValidationTool \
+  /path/to/output.jar \
+  com.example.shared.MyRequestFactory \
+  com.example.shared.AnotherRequestFactory
+}}}
+
+An optional client-only mode will produce the metadata required by  
JVM-based RequestFactory clients using only the shared interfaces.  This  
mode is activated by adding a `-client` flag before the output location.


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


[gwt-contrib] [google-web-toolkit] r10531 committed - Edited wiki page RequestFactoryInterfaceValidation through web user in...

2011-08-16 Thread codesite-noreply

Revision: 10531
Author:   bobv%google@gtempaccount.com
Date: Tue Aug 16 12:46:45 2011
Log:  Edited wiki page RequestFactoryInterfaceValidation through web  
user interface.

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

Modified:
 /wiki/RequestFactoryInterfaceValidation.wiki

===
--- /wiki/RequestFactoryInterfaceValidation.wikiTue Aug 16 12:44:31 2011
+++ /wiki/RequestFactoryInterfaceValidation.wikiTue Aug 16 12:46:45 2011
@@ -10,6 +10,9 @@

 In addition to validating the interfaces, the annotation processor also  
generates addition Java types which embed pre-computed metadata that is  
required by the RequestFactory server components.  Users of  
`RequestFactorySource` must also run the annotation processor in order to  
provide the client code with obfuscated type token mappings.  In the  
client-only case, the server domain types are not required.


+If the validation process is not completed, a runtime error message will  
be generated:
+ The RequestFactory ValidationTool must be run for the  
com.example.shared.MyRequestFactory RequestFactory type

+
 = Annotation Processor =

 It is necessary for both the shared RequestFactory interfaces and their  
server domain counterparts to be available on the sourcepath or classpath  
during the compilation process.  If this is not convenient, see the  
`ValidationTool` section for information on post-processing pre-compiled  
shared interfaces and domain types as part of a deployment process.


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


[gwt-contrib] [google-web-toolkit] r10532 committed - Fixes problem with datanucleus enhancement and Appengine deployment...

2011-08-16 Thread codesite-noreply

Revision: 10532
Author:   rchan...@google.com
Date: Tue Aug 16 09:17:24 2011
Log:  Fixes problem with datanucleus enhancement and Appengine  
deployment

- Migrated to Objectify
- Prevents gwt-dev.jar and gwt-user.jar from being deployed
- Prevents soycReport files from ending in the App Cache manifest
- Removed unused ant script file

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

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

Deleted:
  
/trunk/samples/mobilewebapp/src/main/java/com/google/gwt/sample/core/Core.gwt.xml

 /trunk/samples/mobilewebapp/user-build.xml
Modified:
 /trunk/samples/mobilewebapp/pom.xml
  
/trunk/samples/mobilewebapp/src/main/java/com/google/gwt/sample/core/linker/SimpleAppCacheLinker.java
  
/trunk/samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/MobileWebApp.gwt.xml
  
/trunk/samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/server/domain/EMF.java
  
/trunk/samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/server/domain/Task.java
  
/trunk/samples/mobilewebapp/src/test/java/com/google/gwt/sample/core/linker/SimpleAppCacheLinkerTest.java


===
---  
/trunk/samples/mobilewebapp/src/main/java/com/google/gwt/sample/core/Core.gwt.xml	 
Wed Jun  1 09:26:16 2011

+++ /dev/null
@@ -1,22 +0,0 @@
-!-- 
--
-!-- Copyright 2011 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   --
-!-- 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. License for the specific language governing permissions  
and   --
-!-- limitations under the  
License. --

-
-!-- Types and resources required to support primitive system  
operation.--
-!-- 
--
-!-- Types from this module are visible to and imported into user  
code. --
-!-- Every module should directly or indirectly inherit this  
module.--
-!-- 
--

-module
-  inherits name=com.google.gwt.core.Core /
-/module
===
--- /trunk/samples/mobilewebapp/user-build.xml  Fri May  6 08:20:47 2011
+++ /dev/null
@@ -1,149 +0,0 @@
-?xml version=1.0 encoding=utf-8 ?
-project name=MobileWebApp default=build basedir=.
-  property file=local.properties /
-  !-- Arguments to gwtc and devmode targets --
-  property name=gwt.args value= /
-  property name=src.dir value=src/main /
-  property name=src.dev.dir value=src/dev /
-  property name=war.dir value=war /
-  property name=gwt.sdk value=../.. /
-
-  fail unless=appengine.sdkMissing property:
-The property 'appengine.sdk' is not set.
-Either specity the property by passing an argument
-
--Dappengine.sdk=path-to-your-appengine-sdk
-
-or create a 'local.properties' file containing the
-location of the App Engine SDK. i.e. the line:
-
-appengine.sdk=path-to-your-appengine-sdk
-  /fail
-
-  !-- Configure AppEngine macros --
-  import file=${appengine.sdk}/config/user/ant-macros.xml /
-
-  path id=project.class.path
-pathelement location=${war.dir}/WEB-INF/classes/
-pathelement location=${gwt.sdk}/gwt-user.jar/
-fileset dir=${gwt.sdk} includes=gwt-dev*.jar/
-fileset dir=${gwt.sdk}  
includes=validation-api-1.0.0.GA-sources.jar/

-fileset dir=${gwt.sdk} includes=validation-api-1.0.0.GA.jar/
-!-- Add any additional non-server libs (such as JUnit) --
-fileset dir=${war.dir}/WEB-INF/lib includes=**/*.jar/
-  /path
-
-  path id=tools.class.path
-path refid=project.class.path/
-pathelement location=${appengine.sdk}/lib/appengine-tools-api.jar/
-fileset dir=${appengine.sdk}/lib/tools
-  include name=**/asm-*.jar/
-  include name=**/datanucleus-enhancer-*.jar/
-/fileset
-  /path
-
-  target name=appengine-copyjars
-  description=Copies the App Engine JARs to the WAR.
-copy
-todir=${war.dir}/WEB-INF/lib
-flatten=true
-  fileset dir=${appengine.sdk}/lib/user
-include name=**/*.jar /
-  /fileset
-/copy
-  /target
-
-  target name=libs description=Copy libs to WEB-INF/lib
-mkdir dir=${war.dir}/WEB-INF/lib /
-  

[gwt-contrib] Re: Fixes problem with datanucleus enhancement and Appengine deployment (issue1521803)

2011-08-16 Thread rchandia

Submitted as r10532

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

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


[gwt-contrib] [google-web-toolkit] r10533 committed - Don't generate bad code for bad field names...

2011-08-16 Thread codesite-noreply

Revision: 10533
Author:   gwt.mirror...@gmail.com
Date: Tue Aug 16 10:08:37 2011
Log:  Don't generate bad code for bad field names

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

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

Modified:
 /trunk/user/src/com/google/gwt/uibinder/rebind/FieldManager.java

===
--- /trunk/user/src/com/google/gwt/uibinder/rebind/FieldManager.java	Mon  
Aug  1 13:27:49 2011
+++ /trunk/user/src/com/google/gwt/uibinder/rebind/FieldManager.java	Tue  
Aug 16 10:08:37 2011

@@ -21,8 +21,8 @@
 import com.google.gwt.core.ext.typeinfo.JType;
 import com.google.gwt.core.ext.typeinfo.TypeOracle;
 import com.google.gwt.uibinder.rebind.model.ImplicitCssResource;
-import com.google.gwt.uibinder.rebind.model.OwnerField;
 import com.google.gwt.uibinder.rebind.model.OwnerClass;
+import com.google.gwt.uibinder.rebind.model.OwnerField;

 import java.util.Arrays;
 import java.util.Collection;
@@ -31,6 +31,7 @@
 import java.util.LinkedHashMap;
 import java.util.LinkedList;
 import java.util.Map;
+import java.util.regex.Pattern;

 /**
  * This class handles all {@link FieldWriter} instances created for the  
current

@@ -53,6 +54,9 @@
 }
   };

+  private static final Pattern JAVA_IDENTIFIER =
+  Pattern.compile([\\p{L}_$][\\p{L}\\p{N}_$]*);
+
   public static String getFieldBuilder(String fieldName) {
 return String.format(build_%s(), fieldName);
   }
@@ -60,8 +64,8 @@
   public static String getFieldGetter(String fieldName) {
 return String.format(get_%s(), fieldName);
   }
-
   private final TypeOracle types;
+
   private final MortalLogger logger;

   /**
@@ -342,6 +346,12 @@
   field.write(writer);
 }
   }
+
+  private void ensureValidity(String fieldName) throws  
UnableToCompleteException {

+if (!JAVA_IDENTIFIER.matcher(fieldName).matches()) {
+  logger.die(Illegal field name \%s\, fieldName);
+}
+  }

   /**
* Gets the number of times a getter for the given field is called.
@@ -357,6 +367,7 @@

   private FieldWriter registerField(String fieldName, FieldWriter field)
   throws UnableToCompleteException {
+ensureValidity(fieldName);
 requireUnique(fieldName);
 fieldsMap.put(fieldName, field);

@@ -368,7 +379,7 @@

 return field;
   }
-
+
   private void requireUnique(String fieldName) throws  
UnableToCompleteException {

 if (fieldsMap.containsKey(fieldName)) {
   logger.die(DUPLICATE_FIELD_ERROR, fieldName);

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


[gwt-contrib] [google-web-toolkit] r10534 committed - Cherry picking r10532 into releases/2.4

2011-08-16 Thread codesite-noreply

Revision: 10534
Author:   rchan...@google.com
Date: Tue Aug 16 10:34:01 2011
Log:  Cherry picking r10532 into releases/2.4

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

Deleted:
  
/releases/2.4/samples/mobilewebapp/src/main/java/com/google/gwt/sample/core/Core.gwt.xml

 /releases/2.4/samples/mobilewebapp/user-build.xml
Modified:
 /releases/2.4/samples/mobilewebapp/pom.xml
  
/releases/2.4/samples/mobilewebapp/src/main/java/com/google/gwt/sample/core/linker/SimpleAppCacheLinker.java
  
/releases/2.4/samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/MobileWebApp.gwt.xml
  
/releases/2.4/samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/server/domain/EMF.java
  
/releases/2.4/samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/server/domain/Task.java
  
/releases/2.4/samples/mobilewebapp/src/test/java/com/google/gwt/sample/core/linker/SimpleAppCacheLinkerTest.java


===
---  
/releases/2.4/samples/mobilewebapp/src/main/java/com/google/gwt/sample/core/Core.gwt.xml	 
Wed Jun  1 09:26:16 2011

+++ /dev/null
@@ -1,22 +0,0 @@
-!-- 
--
-!-- Copyright 2011 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   --
-!-- 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. License for the specific language governing permissions  
and   --
-!-- limitations under the  
License. --

-
-!-- Types and resources required to support primitive system  
operation.--
-!-- 
--
-!-- Types from this module are visible to and imported into user  
code. --
-!-- Every module should directly or indirectly inherit this  
module.--
-!-- 
--

-module
-  inherits name=com.google.gwt.core.Core /
-/module
===
--- /releases/2.4/samples/mobilewebapp/user-build.xml	Fri May  6 08:20:47  
2011

+++ /dev/null
@@ -1,149 +0,0 @@
-?xml version=1.0 encoding=utf-8 ?
-project name=MobileWebApp default=build basedir=.
-  property file=local.properties /
-  !-- Arguments to gwtc and devmode targets --
-  property name=gwt.args value= /
-  property name=src.dir value=src/main /
-  property name=src.dev.dir value=src/dev /
-  property name=war.dir value=war /
-  property name=gwt.sdk value=../.. /
-
-  fail unless=appengine.sdkMissing property:
-The property 'appengine.sdk' is not set.
-Either specity the property by passing an argument
-
--Dappengine.sdk=path-to-your-appengine-sdk
-
-or create a 'local.properties' file containing the
-location of the App Engine SDK. i.e. the line:
-
-appengine.sdk=path-to-your-appengine-sdk
-  /fail
-
-  !-- Configure AppEngine macros --
-  import file=${appengine.sdk}/config/user/ant-macros.xml /
-
-  path id=project.class.path
-pathelement location=${war.dir}/WEB-INF/classes/
-pathelement location=${gwt.sdk}/gwt-user.jar/
-fileset dir=${gwt.sdk} includes=gwt-dev*.jar/
-fileset dir=${gwt.sdk}  
includes=validation-api-1.0.0.GA-sources.jar/

-fileset dir=${gwt.sdk} includes=validation-api-1.0.0.GA.jar/
-!-- Add any additional non-server libs (such as JUnit) --
-fileset dir=${war.dir}/WEB-INF/lib includes=**/*.jar/
-  /path
-
-  path id=tools.class.path
-path refid=project.class.path/
-pathelement location=${appengine.sdk}/lib/appengine-tools-api.jar/
-fileset dir=${appengine.sdk}/lib/tools
-  include name=**/asm-*.jar/
-  include name=**/datanucleus-enhancer-*.jar/
-/fileset
-  /path
-
-  target name=appengine-copyjars
-  description=Copies the App Engine JARs to the WAR.
-copy
-todir=${war.dir}/WEB-INF/lib
-flatten=true
-  fileset dir=${appengine.sdk}/lib/user
-include name=**/*.jar /
-  /fileset
-/copy
-  /target
-
-  target name=libs description=Copy libs to WEB-INF/lib
-mkdir dir=${war.dir}/WEB-INF/lib /
-copy todir=${war.dir}/WEB-INF/lib file=${gwt.sdk}/gwt-servlet.jar  
/
-copy todir=${war.dir}/WEB-INF/lib  
file=${gwt.sdk}/gwt-servlet-deps.jar /
-copy todir=${war.dir}/WEB-INF/lib  

[gwt-contrib] [google-web-toolkit] r10535 committed - Edited wiki page RequestFactoryInterfaceValidation through web user in...

2011-08-16 Thread codesite-noreply

Revision: 10535
Author:   bobv%google@gtempaccount.com
Date: Tue Aug 16 13:53:38 2011
Log:  Edited wiki page RequestFactoryInterfaceValidation through web  
user interface.

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

Modified:
 /wiki/RequestFactoryInterfaceValidation.wiki

===
--- /wiki/RequestFactoryInterfaceValidation.wikiTue Aug 16 12:46:45 2011
+++ /wiki/RequestFactoryInterfaceValidation.wikiTue Aug 16 13:53:38 2011
@@ -8,18 +8,18 @@

 The RequestFactory annotation processor will validate the RequestFactory  
interface declarations and ensure that the mapping of proxy properties and  
context methods to their domain types is valid.  The manner in which the  
errors are reported depends on the method by which the annotation processor  
is invoked.


-In addition to validating the interfaces, the annotation processor also  
generates addition Java types which embed pre-computed metadata that is  
required by the RequestFactory server components.  Users of  
`RequestFactorySource` must also run the annotation processor in order to  
provide the client code with obfuscated type token mappings.  In the  
client-only case, the server domain types are not required.
+In addition to validating the interfaces, the annotation processor also  
generates additional Java types which embed pre-computed metadata that is  
required by the RequestFactory server components.  Users of  
`RequestFactorySource` must also run the annotation processor in order to  
provide the client code with obfuscated type token mappings.  In the  
client-only case, the server domain types are not required.


 If the validation process is not completed, a runtime error message will  
be generated:
  The RequestFactory ValidationTool must be run for the  
com.example.shared.MyRequestFactory RequestFactory type


 = Annotation Processor =

-It is necessary for both the shared RequestFactory interfaces and their  
server domain counterparts to be available on the sourcepath or classpath  
during the compilation process.  If this is not convenient, see the  
`ValidationTool` section for information on post-processing pre-compiled  
shared interfaces and domain types as part of a deployment process.
+It most convenient for both the shared RequestFactory interfaces and their  
server domain counterparts to be available on the sourcepath or classpath  
during the compilation process.  If this is not practical, see the  
`ValidationTool` section for information on post-processing pre-compiled  
shared interfaces and domain types as part of a deployment process.


 == javac builds==

-Users using javac 1.6 or later to compile their server projects need only  
to include the `requestfactory-apt.jar` on the build classpath.  The  
compiler will automatically load the annotation processor from the JAR file.
+Users using javac to compile their entire project at once need only to  
include the `requestfactory-apt.jar` on the build classpath.  The compiler  
will automatically load the annotation processor from the JAR file.  The  
shared proxy interfaces must be included in the list of java files being  
compiled.


 == IDE configuration ==

@@ -51,4 +51,4 @@
   com.example.shared.AnotherRequestFactory
 }}}

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


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


[gwt-contrib] Tweak to allow parent ClassLoader at design time. (issue1529803)

2011-08-16 Thread scheglov

Reviewers: tobyr,

Description:
Tweak to allow parent ClassLoader at design time.


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

Affected files:
  M dev/core/src/com/google/gwt/dev/shell/CompilingClassLoader.java


Index: dev/core/src/com/google/gwt/dev/shell/CompilingClassLoader.java
===
--- dev/core/src/com/google/gwt/dev/shell/CompilingClassLoader.java	 
(revision 10533)
+++ dev/core/src/com/google/gwt/dev/shell/CompilingClassLoader.java	 
(working copy)

@@ -51,6 +51,7 @@
 import org.apache.commons.collections.map.ReferenceIdentityMap;
 import org.apache.commons.collections.map.ReferenceMap;

+import java.beans.Beans;
 import java.io.File;
 import java.io.FileOutputStream;
 import java.io.IOException;
@@ -1179,6 +1180,11 @@
*/
   @Override
   protected Class? loadClass(String name, boolean resolve) throws  
ClassNotFoundException {
+// at design time we want to provide parent ClassLoader, so keep  
default implementation

+if (Beans.isDesignTime()) {
+  return super.loadClass(name, resolve);
+}
+
 Class c = findLoadedClass(name);
 if (c != null) {
   if (resolve) {


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


[gwt-contrib] Re: Tweak to allow parent ClassLoader at design time. (issue1529803)

2011-08-16 Thread tobyr

LGTM

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

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


[gwt-contrib] [google-web-toolkit] r10536 committed - Edited wiki page RequestFactoryInterfaceValidation through web user in...

2011-08-16 Thread codesite-noreply

Revision: 10536
Author:   bobv%google@gtempaccount.com
Date: Tue Aug 16 15:28:34 2011
Log:  Edited wiki page RequestFactoryInterfaceValidation through web  
user interface.

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

Modified:
 /wiki/RequestFactoryInterfaceValidation.wiki

===
--- /wiki/RequestFactoryInterfaceValidation.wikiTue Aug 16 13:53:38 2011
+++ /wiki/RequestFactoryInterfaceValidation.wikiTue Aug 16 15:28:34 2011
@@ -52,3 +52,35 @@
 }}}

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

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

+
+{{{
+  !-- Run the RequestFactory ValidationTool --
+  plugin
+groupIdorg.codehaus.mojo/groupId
+artifactIdexec-maven-plugin/artifactId
+version1.2/version
+executions
+  execution
+phaseprocess-classes/phase
+configuration
+  idVerifyRequestFactoryInterfaces/id
+  executablejava/executable
+  arguments
+argument-cp/argument
+classpath /
+ 
argumentcom.google.web.bindery.requestfactory.apt.ValidationTool/argument

+argument${project.build.outputDirectory}/argument
+ 
argumentcom.google.gwt.sample.mobilewebapp.shared.MobileWebAppRequestFactory/argument

+  /arguments
+/configuration
+goals
+  goalexec/goal
+/goals
+  /execution
+/executions
+  /plugin
+}}}

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


[gwt-contrib] Provides an integration test for IsRenderable (issue1527804)

2011-08-16 Thread rjrjr

Reviewers: rdcastro, rchandia,

Description:
Provides an integration test for IsRenderable


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

Affected files:
  M user/src/com/google/gwt/user/client/ui/IsRenderable.java
  M user/src/com/google/gwt/user/client/ui/RenderableStamper.java
  M user/src/com/google/gwt/user/client/ui/UIObject.java
  M user/test/com/google/gwt/uibinder/LazyWidgetBuilderSuite.java
  A  
user/test/com/google/gwt/uibinder/test/client/IsRenderableIntegrationTest.Deep.ui.xml
  A  
user/test/com/google/gwt/uibinder/test/client/IsRenderableIntegrationTest.Shallow.ui.xml
  A  
user/test/com/google/gwt/uibinder/test/client/IsRenderableIntegrationTest.java

  A user/test/com/google/gwt/uibinder/test/client/SimpleRenderable.java


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


[gwt-contrib] Re: Provides an integration test for IsRenderable (issue1527804)

2011-08-16 Thread rjrjr

On 2011/08/17 00:12:24, rjrjr wrote:

Ready for review.

Rafa, this turned up one issue that concerns me: most @UiField fields
are not filled in until the widget is attached to the dom, but we're not
consistent about it. See the big comment in testDeep.

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

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


[gwt-contrib] Re: Provides an integration test for IsRenderable (issue1527804)

2011-08-16 Thread rjrjr

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

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


[gwt-contrib] Re: Provides an integration test for IsRenderable (issue1527804)

2011-08-16 Thread Rafael Castro
+hermes

Good point, this is really tricky. The problem here is that we don't
actually have the DOM element until the widget is attached. I see 2 options:
1-) We force the UiField to be a LazyDomElement, so this is explicit.
2-) We use PotentialElement with a resolver that throws an Exception (i.e.,
it's only really resolved when it's attached).

what do you think?

ps.: really nice tests, thanks for putting them together!

On Tue, Aug 16, 2011 at 5:13 PM, rj...@google.com wrote:

 On 2011/08/17 00:12:24, rjrjr wrote:

 Ready for review.

 Rafa, this turned up one issue that concerns me: most @UiField fields
 are not filled in until the widget is attached to the dom, but we're not
 consistent about it. See the big comment in testDeep.


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


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