Re: Need Help Packaging a GWT Library Module into a JAR

2011-12-23 Thread Ed
If you want help you need to include enough info like error message details.

-- 
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/-/uHhIfKhlDHcJ.
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: compiler.useSourceMap

2011-12-23 Thread Ed
Use this syntax:
set-configuration-property name=compiler.useSourceMaps value=true/ 
See doc for details

-- 
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/-/XRRPBE2uN4QJ.
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.



Code for Cache

2011-12-23 Thread HARISH SAHARAN
can any one give me the source code for use :---
1. Ehcache with java1.6 and Hibernate3.0 and GWT2.0  and
2. Implement GZIP with gwt2.0 and java1.6 and
3  HTTP cache with java1.6 and gwt2.0

-- 
You received 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: Caused by: java.lang.IllegalArgumentException: Cannot fetch unpersisted entity

2011-12-23 Thread tzhotmail
Hi ,

The AbstractRequestFactory in the client throws this exception, method

public P extends EntityProxy RequestP find(EntityProxyIdP
proxyId) {
if (((SimpleEntityProxyIdP) proxyId).isEphemeral()) {
  throw new IllegalArgumentException(Cannot fetch unpersisted
entity);
}

but the weird issue is that the data is persisted to the database.
RuleProxy is a new entity with no persistent id, but
ActionProxy,ResourceProxy and Subject all have a persistent id.

The entities/proxy  are as follows
public interface RuleProxy extends EntityProxy {
...

 abstract ResourceProxy getResource();

abstract void setResource(ResourceProxy resource);

abstract ActionProxy getAction();

abstract void setAction(ActionProxy action);

abstract Setcom.citi.gpf.cues.client.proxy.SubjectProxy
getSubjects();



the call to persist:
request.persist(RuleProxy).fire() ; I am doing something wrong
here ???

then I call a finder method as follows
requests.find(proxyId).with(resource, action,
subjects).fire(callback);
 I am just wondering whether I am calling the finder method before the
persist request has been returned.


thanks,



On Dec 20, 9:48 am, Thomas Broyer t.bro...@gmail.com wrote:
 On Monday, December 19, 2011 10:59:16 PM UTC+1, tzhotmail wrote:

  Hi,

  I have a base Entity class  with subclasses as shown below.  I can
  view and update my entities but I get the exception
  java.lang.IllegalArgumentException: Cannot fetch unpersisted entity
  whenever I try to save /persist a new entity.

 What does throw this exception? (I suppose Hibernate, Datanucleus or
 whichever JPA implementation you're using)
 And when? (which method, and what's the stack-trace?)

  Does request factory support inheritance ?

 Yes.









-- 
You received 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.



CellTable CheckboxCell setTitle()

2011-12-23 Thread Vivek Dudani
Hi,

I need to set tooltip for CheckboxCell which i'm adding in a
cellTable.
created a new CheckboxCell and then added it to CellTable header.

cannot find any setTitle or anything else.
Even tried with below code :

public void setTitle(String title){
if (title == null || title.length() == 0) {
  DOM.removeElementAttribute(getElement(), title);
} else {
  DOM.setElementAttribute(getElement(), title, title);
}
}

 private Element element;

 public com.google.gwt.user.client.Element getElement() {
return (com.google.gwt.user.client.Element) element;
  }

This too didn't worked.
Can somebody please help me out on this.

Best Regards,
Vivek Dudani

-- 
You received 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: CellTable CheckboxCell setTitle()

2011-12-23 Thread Ed
Override the method CheckboxCell.render(..) and add the title attribute as 
a string (see source of CheckboxCell).

CheckboxCell is part of the CellWidget family and don't extend from Widget, 
which make them fast and lightweight.
See: http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellWidgets.html

Because they don't extend from Widget that don't have methods like 
setTitle. 
If you want to use a setTitle() method, then use the CheckBox widget.



-- 
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/-/sxmfR0lWZsIJ.
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: firing httprequest multiple times

2011-12-23 Thread karun
Hi Ed,

as per your suggestion, i replaced the hyperlink with button. i
disabled it in onclick() and enabled it in OnResponseReceived().

but still the problem persists.

one more thing

there is timer with in the OnResponseReceived() as shown below. which
executes every minutes and calls one more method.
is the timer culprit over here

public void onResponseReceived(Request request, Response response){

Window.alert(Request Builder
succeeded);
t = new Timer(){
public void run()
{
 
pollBuilder(data,url);
}
};
t.schedule(1000);
}

Thanks
karun

On Dec 23, 5:10 am, Ed post2edb...@gmail.com wrote:
  how to over come step 2 behaviour and send only one http request

 for every click.
 Disable the widget during processing (which sinks/unsinks the click event).
 Hyperlink doesn't have this functionality per default, but you can use an
 other widget like a button that does have this.
 You could extend the HyperLink widget and add a enabled property.
 Almost all my widgets implement a HasEnabled interface that have this
 enabled property per default.

 In the OnClick you will call widget.setEnabled(false)
 In the OnResponseReceived call you will call setEnabled(true).

-- 
You received 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: Code for Cache

2011-12-23 Thread Ed
Your questions are difficult to understand: missing details.

2):
http://code.google.com/p/google-web-toolkit/wiki/PrecompressLinker

3):
# http://www.infoq.com/articles/gwt-high-ajax
# 
http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html
# 
http://www.samaxes.com/2008/04/htaccess-gzip-and-cache-your-site-for-faster-loading-and-bandwidth-saving/
# 
http://betterexplained.com/articles/how-to-optimize-your-site-with-gzip-compression/
# http://code.google.com/p/doctype/wiki/ArticleHttpCaching

Google and you find your answers.

-- 
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/-/GR1t6GzEbK0J.
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: firing httprequest multiple times

2011-12-23 Thread Ed Bras
Put some breakpoints and you find out where the double action behavior
comes from.

On Fri, Dec 23, 2011 at 1:37 PM, karun karunkuma...@gmail.com wrote:

 Hi Ed,

 as per your suggestion, i replaced the hyperlink with button. i
 disabled it in onclick() and enabled it in OnResponseReceived().

 but still the problem persists.

 one more thing

 there is timer with in the OnResponseReceived() as shown below. which
 executes every minutes and calls one more method.
 is the timer culprit over here

 public void onResponseReceived(Request request, Response response){

Window.alert(Request Builder
 succeeded);
t = new
 Timer(){
public void
 run()
{

 pollBuilder(data,url);
}
};

  t.schedule(1000);
}

 Thanks
 karun

 On Dec 23, 5:10 am, Ed post2edb...@gmail.com wrote:
   how to over come step 2 behaviour and send only one http request
 
  for every click.
  Disable the widget during processing (which sinks/unsinks the click
 event).
  Hyperlink doesn't have this functionality per default, but you can use an
  other widget like a button that does have this.
  You could extend the HyperLink widget and add a enabled property.
  Almost all my widgets implement a HasEnabled interface that have this
  enabled property per default.
 
  In the OnClick you will call widget.setEnabled(false)
  In the OnResponseReceived call you will call setEnabled(true).

 --
 You received 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: firing httprequest multiple times

2011-12-23 Thread karun
Hi Ed,

as per your suggestion, i replaced the hyperlink with button. i
disabled it in onclick() and enabled it in OnResponseReceived().

but still the problem persists.

one more thing

there is timer with in the OnResponseReceived() as shown below. which
executes every minutes and calls one more method.
is the timer culprit over here

public void onResponseReceived(Request request, Response response){

Window.alert(Request Builder
succeeded);
t = new Timer(){
public void run()
{
 
pollBuilder(data,url);
}
};
t.schedule(1000);
}

Thanks
karun

On Dec 23, 5:10 am, Ed post2edb...@gmail.com wrote:
  how to over come step 2 behaviour and send only one http request

 for every click.
 Disable the widget during processing (which sinks/unsinks the click event).
 Hyperlink doesn't have this functionality per default, but you can use an
 other widget like a button that does have this.
 You could extend the HyperLink widget and add a enabled property.
 Almost all my widgets implement a HasEnabled interface that have this
 enabled property per default.

 In the OnClick you will call widget.setEnabled(false)
 In the OnResponseReceived call you will call setEnabled(true).

-- 
You received 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: Wait dialog on rpc interaction

2011-12-23 Thread Stefanos Antaris
Great. I have modified a little bit the idea and it worked fine.
Thanks to all.

On Fri, Dec 23, 2011 at 2:13 AM, Ed post2edb...@gmail.com wrote:

 See: 
 rpcHyperlinkhttps://groups.google.com/forum/#!topic/google-web-toolkit/lm_1v7Mmb5M

 --
 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/-/fK8Bj9QZqqYJ.

 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: Abridged summary of google-web-toolkit@googlegroups.com - 43 Messages in 20 Topics

2011-12-23 Thread Fabien Renaud
On Fri, Dec 23, 2011 at 2:13 PM, google-web-toolkit@googlegroups.comwrote:

   Today's Topic Summary

 Group: http://groups.google.com/group/google-web-toolkit/topics

- firing httprequest multiple times #1346b0e753ba8aeb_group_thread_0[7 
 Updates]
- Code for Cache #1346b0e753ba8aeb_group_thread_1 [2 Updates]
- CellTable CheckboxCell setTitle() #1346b0e753ba8aeb_group_thread_2[2 
 Updates]
- Caused by: java.lang.IllegalArgumentException: Cannot fetch
unpersisted entity #1346b0e753ba8aeb_group_thread_3 [1 Update]
- compiler.useSourceMap #1346b0e753ba8aeb_group_thread_4 [2 Updates]
- Need Help Packaging a GWT Library Module into a 
 JAR#1346b0e753ba8aeb_group_thread_5[2 Updates]
- beans validation other other then hibernate-validator for 
 gwt?#1346b0e753ba8aeb_group_thread_6[3 Updates]
- Adsense with GWT #1346b0e753ba8aeb_group_thread_7 [1 Update]
- GWT-RCharts Released (An interactive client side Charting Library
with 3D CHARTS) #1346b0e753ba8aeb_group_thread_8 [1 Update]
- Wait dialog on rpc interaction #1346b0e753ba8aeb_group_thread_9 [3
Updates]
- App with hundreds of code splits won't finish 
 compiling#1346b0e753ba8aeb_group_thread_10[3 Updates]
- Closure compiler integration #1346b0e753ba8aeb_group_thread_11 [2
Updates]
- Remote Logging #1346b0e753ba8aeb_group_thread_12 [3 Updates]
- How to get hold of the instance in an 
 InstanceRequest#1346b0e753ba8aeb_group_thread_13[2 Updates]
- ListEditor with inheritance #1346b0e753ba8aeb_group_thread_14 [4
Updates]
- HasCell interface and setFieldUpdater(FieldUpdaterT, 
 C)#1346b0e753ba8aeb_group_thread_15[1 Update]
- How to set a Presenter in a composite 
 Widget?#1346b0e753ba8aeb_group_thread_16[1 Update]
- Help! com.google.gwt.user.client.rpc.StatusCodeException: 500 The
call failed on the server; see server log for 
 details#1346b0e753ba8aeb_group_thread_17[1 Update]
- GWT Developer Plugin for Firefox 9#1346b0e753ba8aeb_group_thread_18[1 
 Update]
- IE 8 and status code error 12030 - 12152 Options IE 8 and status
code error 12030 - 12152 Options IE 8 and status code error 12030 - 12152
Options #1346b0e753ba8aeb_group_thread_19 [1 Update]

   firing httprequest multiple 
 timeshttp://groups.google.com/group/google-web-toolkit/t/966ff5bfb3266f93

karun karunkuma...@gmail.com Dec 22 03:04PM -0800

Hi

I have popup panel and it contains 1 hyper link, clicking on hyperlink
i am sending http post request to jsp / servlet in the handler
function of hyperlink.

the problem i am facing is ...more


Ed post2edb...@gmail.com Dec 22 04:10PM -0800

 how to over come step 2 behaviour and send only one http request
for every click.
Disable the widget during processing (which sinks/unsinks the click
event).
Hyperlink doesn't have this ...more


Jens jens.nehlme...@gmail.com Dec 22 05:26PM -0800

If you only click once but your code gets executed twice, then you
have
added two ClickHandler accidently. Probably the method that contains
hyperlink.addClickHandler() gets called twice. ...more


karun karunkuma...@gmail.com Dec 22 11:02PM -0800

Hi Jens,

i have veryfied your suggestion, the logging statement, which is there
in onResponseReceived() gets logged multiple times but the statement
in addClickHandler() gets logged only once.
...more


karun karunkuma...@gmail.com Dec 23 04:37AM -0800

Hi Ed,

as per your suggestion, i replaced the hyperlink with button. i
disabled it in onclick() and enabled it in OnResponseReceived().

but still the problem persists.

one more thing
...more


Ed Bras post2edb...@gmail.com Dec 23 01:39PM +0100

Put some breakpoints and you find out where the double action behavior
comes from.

...more


karun karunkuma...@gmail.com Dec 23 04:42AM -0800

Hi Ed,

as per your suggestion, i replaced the hyperlink with button. i
disabled it in onclick() and enabled it in OnResponseReceived().

but still the problem persists.

one more thing
...more

   Code for 
 Cachehttp://groups.google.com/group/google-web-toolkit/t/e0415cbf05b87867

HARISH SAHARAN harish.saha...@moruba.com Dec 23 01:54AM -0800

can any one give me the source code for use :---
1. Ehcache with java1.6 and Hibernate3.0 and GWT2.0 and
2. Implement GZIP with gwt2.0 and java1.6 and
3 HTTP cache with java1.6 and gwt2.0
...more


Ed post2edb...@gmail.com Dec 23 04:37AM -0800

Your questions are difficult to understand: missing details.

2):
http://code.google.com/p/google-web-toolkit/wiki/PrecompressLinker

3):
# http://www.infoq.com/articles/gwt-high-ajax
# ...more

   CellTable CheckboxCell 
 setTitle()http://groups.google.com/group/google-web-toolkit/t/73818e966f2d838f

Vivek Dudani vaxy.d...@gmail.com Dec 23 04:02AM -0800

Hi,

I need to set tooltip 

Re: App with hundreds of code splits won't finish compiling

2011-12-23 Thread Deepak Singh
So how long will it take for the new code splitting algorithm to be checked
in ?

On Fri, Dec 23, 2011 at 4:47 AM, Alan Leung acle...@google.com wrote:


   I guess I could move the splits to the package level
 As you might have notices you have to choose your split points with care
 as otherwise you shoot yourself in the foot.
 Having more split points doesn't necessary means a better app.


 Adding crazy amount of split points will make your initial download
 smaller. But because of how the code splitter works, you'll end up with
 bigger and bigger leftover fragments. At least until I check in and enable
 the new code splitting algorithm.



 A few rules of thumbs for adding split points:
 - A split point contains a considerable amount of the total app size. For
 example: 10%.


 While I've seen well structured apps with 50 split points or so, like Ed
 Bras suggested, they took lots of caution in where they are inserting them,
 checking the SOYC every once a while.

 -Alan


 - The split point contains code that corresponds to an isolated
 functionality chunk.

 Uses the generated soyc report for split point optimization.


 On Thu, Dec 22, 2011 at 4:04 PM, Eric Andresen ericandre...@gmail.comwrote:

 Granted, it is a pretty big project, it has about 800 activities, 150
 EntityProxy types, 100 Request objects, and uses all the goodness of the
 RequestFactory and UiBinder for all of it.  (There is a ton of inheritance
 so most of those activities are only 50-100 lines of code.  Only the
 object-specific code in each remains, at least until
 http://code.google.com/p/google-web-toolkit/issues/detail?id=6794 is
 fixed)

 The current split points are on each top-level domain object, each of
 which contain about 5-10 activities.  Each generates about 50-150kb of JS
 when they work.  The idea was that the user would have a small initial
 download, and then a slight delay each time they hit a new object type they
 hadn't used before.

 I guess I could move the splits to the package level in the object
 hierarchy and only have about 8 split points, each with about 100
 activities.  That should leave the initial download the same, but have a
 bigger run-time hit when the user crosses that boundary.


 --
 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/-/FKtXxh5GrC0J.
 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.




-- 
Deepak Singh

-- 
You received 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: beans validation other other then hibernate-validator for gwt?

2011-12-23 Thread Patrick Julien
I use a SEPARATE validation framework.  OpenJPA implements javax.validation 
too.  Did you want them to change their name because they added an 
implementation of javax.validation?

but if you're using EclipseLink, what's the problem with using 
hibernate-validator?  Hibernate-validator doesn't contain the JPA 
implementation of hibernate

-- 
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/-/b63j1rStY6kJ.
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 9

2011-12-23 Thread jscheller
On Dec 22, 5:29 am, Alan Leung acle...@google.com wrote:
 Alright, FF9 tested on all OS. Let me know if you run into any problems.


Well, that was the Christmas present I was hoping for... Thanks Alan!

-- 
You received 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 9

2011-12-23 Thread Samyem Tuladhar
Now it'd be very nice if all these firefox plugins were hosted within the 
GWT project. Can the official plugin not be updated with this version? We 
know the FX will release new version every 6 weeks, so this part could 
potentially automated, isn't it? 

-- 
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/-/KDg6gDaYtW8J.
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.



Get widget size minus decorations

2011-12-23 Thread Zakaluka
Hello,

I know this question has been asked before, but the replies are all
from 2006/2007, so I wanted to see if things have changed.

Is there any way to get a Widget's width or height minus decorations?
getOffsetWidth() and getOffsetHeight() only return their respective
totals (including margin, padding and border).

Is there some DOM attribute that might be holding this information?

Thank you,

z.

-- 
You received 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.



Cocoa like UI API for GWT

2011-12-23 Thread Chris Bruno
I am currently building a clean room implementation of the Cappuccino widgets 
(cappuccino.org)  in GWT. The widgets are view based utilizing absolute 
positioning and autoresizing masks for layouts. Aristo is the default theme.

 My ultimate goal is to release an interface builder like tool, similar to the 
tool Atlas that was being made for Cappuccino (now defunct)

I will be placing greater emphasis on  wai-aria markup and accessibility 
(Including keyboard  touch) than cappuccino currently supports. 

What do you all think? Given the existence of gxt and smartgwt, do you think 
there is room for another widget library?

Chris

Sent from my iPhone

On Dec 22, 2011, at 10:45 PM, Elhanan Maayan elh.maa...@gmail.com wrote:

 i mean a SEPARATE validation framework, if i use eclipseLINK for example 
 
 On Thu, Dec 22, 2011 at 10:31 PM, Patrick Julien pjul...@gmail.com wrote:
 I use OpenJPA and I know it works, it's able to validate them.
 -- 
 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/-/oGiIbdflCW8J.
 
 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.



How to wrap a event parameter in JSNI

2011-12-23 Thread Lonewolf
I am porting same very handy Canvas and Animation libraries to GWT
using the JSNI feature. Being the first library I am wrapping I could
use a little assistance with this particular constructor:



/**
* This is passed as the parameter to onPress, onMouseMove, onMouseUp,
onMouseDown, and onClick handlers on
* DisplayObject instances.
* By default, mouse events are disabled for performance reasons. In
order to enabled them for a specified stage
* set mouseEventsEnabled to true on your stage instance.
* @class MouseEvent
* @constructor
* @param {String} type The event type.
* @param {Number} stageX The mouseX position relative to the stage.
* @param {Number} stageY The mouseY position relative to the stage.
* @param {DisplayObject} target The display object this event relates
to.
* @param {MouseEvent} nativeEvent The native DOM event related to this
mouse event.
**/
var MouseEvent = function(type, stageX, stageY, target, nativeEvent) {
  this.initialize(type, stageX, stageY, target, nativeEvent);
}
var p = MouseEvent.prototype;



You can view the entire class here: http://easeljs.com/docs/MouseEvent.js.html

My question is, how do I go about passing the event from GWT and
successfully feed it to the JSNI constructor for this class?

FYI: I have forked Timknip's GWT port of Easeljs (0.2.1) and i'm
updating it to include the latest Easel features (0.4.0).
https://github.com/timknip/easel-gwt

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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.



element zindex in element tree?

2011-12-23 Thread autohandle
i need to show a popup on top of a popup(dialog). my popup is showing but 
it is behind the dialog and can't be seen. i thought i would walk up the 
element tree using:
o Element element = theWidget.getElement();
o element=DOM.getParent(element)
and for each element, i could ask:
o element.getStyle().getZIndex()
but this is only reporting the z-index for inline style attached to the 
element and not the styles from css. i can get a space separated list of 
css style names with: element.getClassName() - but i don't know how to ask 
for the style sheet so i can get the z-index from each of the style sheets 
on the way up the tree.

how do you determine your current z-index for a element?

-- 
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/-/X849d0oR-v4J.
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.



Cocoa like UI API for GW

2011-12-23 Thread cbruno
I am currently building a clean room implementation of the Cappuccino
widgets (cappuccino.org)  in GWT. Instead of using layout classes the
widgets utilize absolute positioning and autoresizing masks for
layouts. The event system is based on a Responder class which
implements mouseDown, mouseUp, KeyDown, etc.. methods to handle
events. Aristo is the default theme.

 My ultimate goal is to release an interface builder like tool,
similar to the tool Atlas that was being made for Cappuccino (now
defunct)

I will be placing greater emphasis on  wai-aria markup and
accessibility (Including keyboard  touch) than cappuccino currently
supports.

What do you all think? Given the existence of gxt and smartgwt, do you
think there is room for another widget library?

Chris

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
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 tell what the Client is running on

2011-12-23 Thread GregD
Is there a Client side call to tell the client which OS it's running
under?

TIA,

Greg

-- 
You received 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 tell what the Client is running on

2011-12-23 Thread cbruno
write a function to inspect the user agent string?

On Dec 23, 3:28 pm, GregD gre...@gmail.com wrote:
 Is there a Client side call to tell the client which OS it's running
 under?

 TIA,

 Greg

-- 
You received 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 tell what the Client is running on

2011-12-23 Thread GregD
Turns out my co-worker Asif had the answer:

String platform =
com.google.gwt.user.client.Window.Navigator.getPlatform ();

On Dec 23, 2:23 pm, cbruno cbruno.li...@gmail.com wrote:
 write a function to inspect the user agent string?

 On Dec 23, 3:28 pm, GregD gre...@gmail.com wrote:







  Is there a Client side call to tell the client which OS it's running
  under?

  TIA,

  Greg

-- 
You received 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.



Ehcache with java1.6 and Hibernate3.0 and GWT2.0

2011-12-23 Thread HARISH SAHARAN
Dear all,
 I am using Ehcache with my (java1.6 and hibernate3.0 and
gwt2.0) project . When i run my application it start running and after
that it gives me StackOutOfMemoryError .
I am using some Blob object in my project and it gives the error when
it fetch the blob object .
for handle the blob data i just make a class called
BinaryBlobType.java and this class implements the UserType and it
gives the error of :

public Serializable disassemble(Object arg0) throws HibernateException
{
return disassemble(arg0);
}

this method .
What can i do to resolve it

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



GWT loding project take time

2011-12-23 Thread HARISH SAHARAN
I am using gwt2.0 and java1.6 and hibernate3.0 with my big
project .But my project take more time to lode for the first time .
What can i do for reduce the first loding time for my project

-- 
You received 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] Fix initialization of non-final fields (issue1618807)

2011-12-23 Thread stephen . haberman

Reviewers: cromwellian,



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

Affected files:
  M dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java


Index: dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java
diff --git  
a/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java  
b/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java
index  
b059bd8440f05e2c8193124d6a5565ff7e3ef192..91e991c77b1d725348d6d951eef448647692f4ce  
100644

--- a/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java
+++ b/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java
@@ -829,10 +829,13 @@ public class GenerateJavaScriptAST {
   JsNameRef localRef = (JsNameRef) pop(); // localRef

   JVariable target = x.getVariableRef().getTarget();
-  if (target instanceof JField  ((JField)  
target).getLiteralInitializer() != null) {

-// Will initialize at top scope; no need to double-initialize.
-push(null);
-return;
+  if (target instanceof JField) {
+JField field = (JField) target;
+if (field.isFinal()  field.getLiteralInitializer() != null) {
+  // Will initialize at top scope; no need to double-initialize.
+  push(null);
+  return;
+}
   }

   JsBinaryOperation binOp =
@@ -863,8 +866,13 @@ public class GenerateJavaScriptAST {
 public void endVisit(JField x, Context ctx) {
   // if we need an initial value, create an assignment
   if (x.getLiteralInitializer() != null) {
-// setup the constant value
-accept(x.getLiteralInitializer());
+if (x.isFinal()) {
+  // setup the constant value
+  accept(x.getLiteralInitializer());
+} else {
+  // setup the default value, see Issue 380
+  accept(x.getType().getDefaultValue());
+}
   } else if (!x.hasInitializer()  x.getEnclosingType() !=  
program.getTypeJavaLangObject()) {

 // setup a default value
 accept(x.getType().getDefaultValue());


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


[gwt-contrib] Re: Fix initialization of non-final fields (issue1618807)

2011-12-23 Thread cromwellian


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

http://gwt-code-reviews.appspot.com/1618807/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java#newcode873
dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java:873:
// setup the default value, see Issue 380
LGTM. One TODO for future reference: I wonder if we could actually
tighten this up a bit, that is, if every possible constructor writes to
this field, then the default value isn't needed, since it will always be
written. This may be moot if the Closure Compiler handles it.

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

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