Re: How to save data for both GAE and Tomcat?

2013-04-26 Thread Ashwin Desikan
Gwt and gae are two different entities. Yea they r from Google so you can 
expect them to work well together. 

You can use GWt with any database. 



membersound kodyreco...@gmail.com wrote:

Hi,

I'm in the start of integrating some storage system for my pet project.

During development I'm using GAE. Someday I'm gonna release the app probably 
to a Tomcat server.

Is the GWT Datastore limited to be used with GAE? If so, is there any storage 
technique I can use on both servers?

Thanks

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

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




Re: Gwt facebook wrapper api

2013-04-25 Thread Ashwin Desikan
Spring-social is good. I have used it and works good. 

What api's of Facebook are you trying to integrate ?

Leung leung1_2...@yahoo.com wrote:

Hi


Is there any facebook wrapper api for facebook to recommend? Which one is the 
most convenient?


Thanks

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

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




Re: Gwt facebook wrapper api

2013-04-25 Thread Ashwin Desikan
No. Pretty straight forward. It gives the flexibility to connect with other 
services like twitter as well. 

What features are you trying ? Login/ like etc 

Leung leung1_2...@yahoo.com wrote:

I am trying facebook4gwt. I know nothing about spring. Is it a steep learning 
curve?



From: Ashwin Desikan ashwin.desi...@gmail.com
To: google-web-toolkit@googlegroups.com 
Sent: Thursday, April 25, 2013 2:19 AM
Subject: Re: Gwt facebook wrapper api


Spring-social is good. I have used it and works good. 

What api's of Facebook are you trying to integrate ?

Leung leung1_2...@yahoo.com wrote:

Hi


Is there any facebook wrapper api for facebook to recommend? Which one is the 
most convenient?


Thanks

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



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

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




Re: Gwt facebook wrapper api

2013-04-25 Thread Ashwin Desikan
For login, you can do client side or server side. For client side, just 
Facebook js would suffice. 

In my project, I used client side auth, but subsequent to login I use spring 
social to read uaer profile etc.

Leung leung1_2...@yahoo.com wrote:

Login at this moment, but certainly I need the others later.

It sounds that spring social is the best one.


From: Ashwin Desikan ashwin.desi...@gmail.com
To: google-web-toolkit@googlegroups.com 
Sent: Thursday, April 25, 2013 4:13 AM
Subject: Re: Gwt facebook wrapper api


No. Pretty straight forward. It gives the flexibility to connect with other 
services like twitter as well. 

What features are you trying ? Login/ like etc 

Leung leung1_2...@yahoo.com wrote:

I am trying facebook4gwt. I know nothing about spring. Is it a steep learning 
curve?



From: Ashwin Desikan ashwin.desi...@gmail.com
To: google-web-toolkit@googlegroups.com 
Sent: Thursday, April 25, 2013 2:19 AM
Subject: Re: Gwt facebook wrapper api


Spring-social is good. I have used it and works good. 

What api's of Facebook are you trying to integrate ?

Leung leung1_2...@yahoo.com wrote:

Hi


Is there any facebook wrapper api for facebook to recommend? Which one is the 
most convenient?


Thanks

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



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



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

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




Re: How to show a widget upon a canvas?

2013-02-09 Thread Ashwin Desikan
Why don't you add a text box to the parent widget of the canvas and position 
it. Use z-index to display it above the canvas. 

membersound kodyreco...@gmail.com wrote:

Hi,

how can I show Widgets upon a Canvas?
I want to display a TextBox in a specific position onto a canvas.

I guess the right way is to add the TextBox to the canvas-wrapping Panel?
And is so, how can I align the box then?

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

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




Re: How do I make sure Widgets receive mouse events if placed in front of a Canvas or Vaadin DrawingArea?

2012-07-13 Thread Ashwin Desikan
Use z-index CSS property to set the depth of your widgets. Higher z-index would 
get priority 

Sent from my iPhone

On Jul 13, 2012, at 5:17 PM, Navigateur naveen.c...@gmail.com wrote:

 This used to work on Firefox in GWT 2.3 on Window XP, but now on Chrome and 
 IE with GWT 2.4 and Windows Vista I can't make my Widgets, which are in front 
 of a Canvas (or Vaadin DrawingArea), receive any mouse events at all.
 
 A widget is placed in front of the drawing surface like so:
 
 absolutePanel.add(canvas); //drawing surface, whether it's a Canvas or Vaadin 
 DrawingArea
 absolutePanel.setWidgetPosition(canvas, 0, 0);
 absolutePanel.add(myWidget);
 absolutePanel.setWidgetPosition(myWidget, 0, 0);
 
 If I do not add the canvas, myWidget receives its mouse events fine.
 How do I make sure myWidget can receive all its mouse events properly in 
 this scenario?
 -- 
 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/-/oxkWAvKVuG0J.
 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: Migrating a GWT AppEngine App to a Chrome offline app

2012-07-11 Thread Ashwin Desikan
Vishal,

What options have you considered so far? Check out html5 offline Mode. This 
maybe a good way to store data offline and probably sync to the server if your 
customer wants the data to be available online. 

One issue with offline Mode would the data would be cleared if the user cleans 
up his browser cache/ temp files. 

~Ashwin

Sent from my iPhone

On Jul 12, 2012, at 10:12 AM, Vishal Singh singh.vi...@gmail.com wrote:

 I  have made a enterprise application using GWT and AppEngine. There are some 
 set of customers who want the data to be stored locally only for security 
 reasons.
 
 I am planning to develop an Chrome offline app by using most of the current 
 code. I have to change my current data server layer ( AppEngine) to something 
 locally. There is lot of GWT code written which I would like to reuse in my 
 offline app. The question is can this be all done ?  As I understand the GWT 
 layer should just work in my offline app. I  think the hard problem is the 
 data layer.
 
 Any thoughts on the above problem will be appreciated.
 
 
 Vishal
 -- 
 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/-/G_FefTZQcQoJ.
 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: JAVA Generics with ValueProxy

2012-06-20 Thread Ashwin Desikan
On your value proxy add the following annotation to the interface

 @SuppressWarnings(requestfactory)

Sent from my iPhone

On Jun 21, 2012, at 3:31 AM, tzhotmail mwakat...@gmail.com wrote:

 Thanks Alexandre , but that did not work as well
 
 On Tuesday, 19 June 2012 11:56:18 UTC-4, Alexandre Ardhuin wrote:
 The value attribute in @ProxyForName should be com.vo.GenericTreeNode 
 instead of com.vo.GenericTreeNodeAccount
 
 Alexandre
 
 
 2012/6/19 tzhotmail mwakat...@gmail.com
 Please help on GWT JAVA Generics with ValueProxy
 
 I have the following Domain class
 public class GenericTreeNodeT implements java.io.Serializable{
 
/**
 *
 */
private static final long serialVersionUID = 1L;
private T   data;
private ListGenericTreeNodeTchildren;
private GenericTreeNodeT  parent;
 
public GenericTreeNode() {
super();
children = new ArrayListGenericTreeNodeT();
}
 
public GenericTreeNode( T data ) {
this();
setData( data );
}
 
public GenericTreeNodeT getParent() {
return this.parent;
}
 
public ListGenericTreeNodeT getChildren() {
return this.children;
}
 
 
 
public void removeChildAt( int index ) throws
 IndexOutOfBoundsException {
children.remove( index );
}
 
public GenericTreeNodeT getChildAt( int index ) throws
 IndexOutOfBoundsException {
return children.get( index );
}
 
public T getData() {
return this.data;
}
 
public void setData( T data ) {
this.data = data;
}
 
public String toString() {
return getData().toString();
}
 
@Override
public boolean equals( Object obj ) {
if ( this == obj ) {
return true;
}
if ( obj == null ) {
return false;
}
if ( getClass() != obj.getClass() ) {
return false;
}
GenericTreeNode? other = (GenericTreeNode?) obj;
if ( data == null ) {
if ( other.data != null ) {
return false;
}
} else if ( !data.equals( other.data ) ) {
return false;
}
return true;
}
 
/
 }
 
 then I created the following Client Proxies and Request Factory.
 
 import com.google.web.bindery.requestfactory.shared.ProxyForName;
 import com.google.web.bindery.requestfactory.shared.ValueProxy;
 @ProxyForName( value = com.vo.Account )
 public interface AccountProxy extends ValueProxy {
public Integer getPfId();
 
public void setPfId( Integer pfId );
 
public Integer getPfParentId();
 
public void setPfParentId( Integer pfParentId );
 
public Integer getPfRootId();
 
public void setPfRootId( Integer pfRootId );
 
public String getName();
 
public void setName( String name );
 }
 
 @ProxyForName( value = com.vo.GenericTreeNodeAccount )
 public interface AccountNodeProxyAccountProxy extends ValueProxy{
 
 ListAccountNodeProxyAccountProxy getChildren();
 
 AccountProxy getData();
 
 }
 
 
 @ServiceName( value = com.server.DesktopService, locator =
 com.server.locator.SpringServiceLocator )
 public interface DesktopRequest extends RequestContext {
 
abstract RequestListAccountProxy getAccounts( Integer realm,
 ListInteger relations );
 
abstract RequestListAccountNodeProxyAccountProxy
 getAccountsNodes( Integer realm, ListInteger relations );
 
abstract RequestListAccountProxy getAccounts( String userId,
 ListInteger realms );
 
abstract RequestListApplicationProxy getApplications();
 
abstract RequestListAttributeDefProxy getAttributeDefs( String
 attributeName );
 
 }
 
 
 But I still get the message below on Compiling , where am I doing
 wrong.
 
 warning: Cannot fully validate proxy since type
 com.vo.GenericTreeNodeAccountProxy is not available
 
 Add @SuppressWarnings(requestfactory) to dismiss.
 error: The type AccountProxy cannot be used here
 warning: Cannot validate this method because the domain mapping for
 the return
 type
 (com.client.proxy.AccountNodeProxycom.client.proxy.AccountProxy)
 could not be resolved to a domain type
 
 Add @SuppressWarnings(requestfactory) to dismiss.
 error: Could not load domain mapping for context DesktopRequest.
 Check that both the shared interfaces and server domain types are on
 the classpa
 th.
 2 errors
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 

Re: Firefox 13 DevMode Plugin

2012-06-07 Thread Ashwin Desikan
Alan,

As always, Thanks  How abt 64 bit version?

Regards
Ashwin

Sent from my iPhone

On Jun 7, 2012, at 12:59 PM, Alan Leung acle...@google.com wrote:

 http://acleung.com/ff13-linux32.xpi
 
 Everything seems to work now. Will post the rest tomorrow.
 
 -Alan
 
 On Wed, Jun 6, 2012 at 4:29 PM, Alan Leung acle...@google.com wrote:
 
 
 BTW Alan, would you mind sharing what the issues are?
 
 Ah ah! I think we are safe. The root problem was that they changed the layout 
 of JSClass. At first I though it was something more serious. I feel that most 
 of the SpiderMonkey changes were not documented in this release. :(
 
 Anyways, I should make them available soon.
 
 -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.

-- 
You received 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: Resubmitting RequestFactory request when server side logic requires it

2012-06-05 Thread Ashwin Desikan
Thomas is correct. I had tried the route of creating two separate RF's. But 
that involves more work in comparison to annotations. In fact I changed my 
approach post Thomas suggestion in this forum quite sometime bac 

~Ashwin

Sent from my iPhone

On Jun 5, 2012, at 7:38 PM, Thomas Broyer t.bro...@gmail.com wrote:

 
 
 On Tuesday, June 5, 2012 3:58:22 PM UTC+2, Ryan McFall wrote:
 After I wrote my original follow-up to Thomas' message, I thought of 
 having different services - one for methods that require 
 authentication, and one for those that don't.  Then I can map my 
 ServletFilter to the URL for the service that requires authentication, 
 and not map it to those that don't. 
 
 That seems easier to me than the annotation route.  Anyone have any 
 reasons to think otherwise?
 
 It won't work. RequestFactoryServlet loads from the classpath, so unless you 
 somehow constrain the classpath of each servlet to only contain the classes 
 you want to expose, the unauthenticated servlet would be able to load the 
 services requiring authentication, therefore allowing unauthenticated 
 access to them.
 In other words, that's not how RF has been designed. 
 -- 
 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/-/fl0PLdvGKHUJ.
 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: RequestFactory 2.4: save entities with multiple sub entities, can only get the first one at server side.

2012-05-29 Thread Ashwin Desikan
Additionally, try using List instead of Set. It works for me when I faced 
similar issues. Only problem would be you will have to manage any redundancy 
with List

~Ashwin

Sent from my iPhone

On May 29, 2012, at 11:20 AM, Thomas Broyer t.bro...@gmail.com wrote:

 There are unfortunately many small but annoying issues with RF in 2.4; most 
 of them will be fixed in 2.5, to be released in a month or so.
 Have a look at the issue tracker, I seem to recall having worked on patches 
 for issues with ValueProxies and Sets (assuming TagProxy is a ValueProxy).
 
 On Tuesday, May 29, 2012 7:02:08 AM UTC+2, July wrote:
 I'm using GWT requestFactory to save an entity, the code is rather simple: i 
 want to create a Blog entity with several Tags, here is my code:
 
 client side:
 
  BlogRequest blogRequest = factory.blogRequest();
 BlogProxy  instance  = blogRequest.create(  BlogProxy .class );
 
 instance.setName( blog name);
 instance.setNote( mynote2 );
 instance.setTags( base.createTagProxies( blogRequest, tag ) );
 
 blogRequest.save( instance ).fire(...);
 
 
 public SetTagProxy createTagProxies( BlogRequest request, String... 
 tagNames )
 {
 SetTagProxy tagproxies = new HashSetTagProxy();
 for( String tagName : tagNames )
 {
 TagProxy proxy = request.create( TagProxy.class );
 proxy.setName( tagName );
 tagproxies.add( proxy );
 }
 return  tagproxies  ;
 }
 
 for example i create a blog with Tag1 and Tag2 in a Set, however after 
 the request send to server side, at Blog#setTags(SetTag tags) method there 
 is only one tag in the parameter set, which is Tag1, Tag2 is just missing.
 
 Could anybody help with this issue? Thanks in advance.
 -- 
 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/-/2Nnf11Vk2xQJ.
 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: Starting Jetty on port 8888 [WARN] failed org.mortbay.jetty.nio.SelectChannelConnector.....!!!!!

2012-05-04 Thread Ashwin Desikan
This can happen if u don't have the correct Jdk. Do u have multiple jdk's in 
path? Also check the version being used by jetty

Sent from my iPhone

On May 4, 2012, at 11:20 PM, laxman lingampally lingampall.lax...@gmail.com 
wrote:

 Hi all,
 
 
 please help me out ,
 
 i am trying run my gwt application at that time i got this error,
 
 
 
 Starting Jetty on port 
[WARN] failed org.mortbay.jetty.nio.SelectChannelConnector$1@26b747
 java.lang.NoSuchMethodError: 
 org.mortbay.thread.Timeout.init(Ljava/lang/Object;)V
   at 
 org.mortbay.io.nio.SelectorManager$SelectSet.init(SelectorManager.java:306)
   at org.mortbay.io.nio.SelectorManager.doStart(SelectorManager.java:223)
   at 
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
   at 
 org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:303)
   at 
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
   at org.mortbay.jetty.Server.doStart(Server.java:233)
   at 
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
   at 
 com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:672)
   at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)
   at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1068)
   at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)
   at com.google.gwt.dev.DevMode.main(DevMode.java:311)
[WARN] failed SelectChannelConnector@127.0.0.1:
 java.lang.NoSuchMethodError: 
 org.mortbay.thread.Timeout.init(Ljava/lang/Object;)V
   at 
 org.mortbay.io.nio.SelectorManager$SelectSet.init(SelectorManager.java:306)
   at org.mortbay.io.nio.SelectorManager.doStart(SelectorManager.java:223)
   at 
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
   at 
 org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:303)
   at 
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
   at org.mortbay.jetty.Server.doStart(Server.java:233)
   at 
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
   at 
 com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:672)
   at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)
   at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1068)
   at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)
   at com.google.gwt.dev.DevMode.main(DevMode.java:311)
[WARN] failed Server@1cac594
 java.lang.NoSuchMethodError: 
 org.mortbay.thread.Timeout.init(Ljava/lang/Object;)V
   at 
 org.mortbay.io.nio.SelectorManager$SelectSet.init(SelectorManager.java:306)
   at org.mortbay.io.nio.SelectorManager.doStart(SelectorManager.java:223)
   at 
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
   at 
 org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:303)
   at 
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
   at org.mortbay.jetty.Server.doStart(Server.java:233)
   at 
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
   at 
 com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:672)
   at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)
   at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1068)
   at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)
   at com.google.gwt.dev.DevMode.main(DevMode.java:311)
 Exception in thread main java.lang.NoSuchMethodError: 
 org.mortbay.thread.Timeout.init(Ljava/lang/Object;)V
   at 
 org.mortbay.io.nio.SelectorManager$SelectSet.init(SelectorManager.java:306)
   at org.mortbay.io.nio.SelectorManager.doStart(SelectorManager.java:223)
   at 
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
   at 
 org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:303)
   at 
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
   at org.mortbay.jetty.Server.doStart(Server.java:233)
   at 
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
   at 
 com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:672)
   at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)
   at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1068)
   at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)
   at com.google.gwt.dev.DevMode.main(DevMode.java:311)
 
 
 thanks 
 Laxman
 -- 
 You received 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 
 

Re: Preventing selection event propagation

2012-04-27 Thread Ashwin Desikan
Do u use activities in your app? If yes do you have an activity mapped to each 
of your tabs? You have a mayStop method in activities which can be used to stop 
the user from navigating from current activity. 

~Ashwin

Sent from my iPhone

On Apr 27, 2012, at 5:15 PM, ALB-PSP-DV1 albpsp...@gmail.com wrote:

 Our application has two tabs. On selecting the tabs we have to display
 a confirmation window(dialog box). Depending on whether user clicks
 Yes or No button in the confirmation window, the tab selection
 event should proceed or stop.
 
 I know we have event.stopPropagation() method for click event. However
 there is no such method for selection event.
 
 Is there any work around to stop the propagation of the selection
 event. Any help is much appreciated.
 
 Thanks in advance.
 
 -- 
 You received 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: How to set a Font for all the compoent in GWT

2012-04-27 Thread Ashwin Desikan
Daya,

Define a font in your CSS or ui:binder  and add it as a style for the widget by 
using any of the styleName or addStyleName properties of the widget

Thanks
Ashwin
Sent from my iPhone

On Apr 27, 2012, at 6:34 PM, Dayananda B V dayanand...@gmail.com wrote:

 Hi All,
 
 I need to set different  font other than default font which will come
 CLEAN Theme. (Arial)
 Is i need to set style property for individual component ?
 
 Appreciate your help.
 
 Thanks
 Daya
 
 -- 
 You received 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: Firefox 12 release

2012-04-25 Thread Ashwin Desikan
Alan,

Receiving 403 (forbidden) error while trying to access the 64 bit xpi file. 
32-bit version has no such issues 


Thanks
Ashwin

Sent from my iPhone

On Apr 26, 2012, at 7:11 AM, Alan Leung acle...@google.com wrote:

 Linux 64 bit: http://acleung.com/ff12-linux64.xpi
 
 Have fun!
 
 -Alan
 
 On Wed, Apr 25, 2012 at 1:20 PM, Alan Leung acle...@google.com wrote:
 Let me know if you see any problems: http://acleung.com/ff12-linux32.xpi
 
 More to come.
 
 -Alan
 
 
 On Wed, Apr 25, 2012 at 1:56 AM, Thomas Broyer t.bro...@gmail.com wrote:
 
 
 On Wednesday, April 25, 2012 8:17:30 AM UTC+2, Olivier Scherler wrote:
 Why don’t people either:
 – Turn off auto-update in Firefox* if they use it to develop in GWT? I
 think it’s been proven that the only major thing these releases have
 is their version number increment, so why the rush to update?
 
 Or install a portable version that you use only for development.
 
  
 – Use Chrome to develop in GWT? I never had a single problem with the
 GWT plugin since I started development.
 
 You're lucky apparently:
 http://code.google.com/p/google-web-toolkit/issues/detail?id=5778
 http://code.google.com/p/google-web-toolkit/issues/detail?id=4582
 http://code.google.com/p/google-web-toolkit/issues/detail?id=7182
 http://code.google.com/p/google-web-toolkit/issues/detail?id=7196
 -- 
 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/-/V-dhlnghUmQJ.
 
 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: how to hide vertical scrollbar of a Frame?

2012-02-24 Thread Ashwin Desikan
did you check using Developer tools on your app to check the CSS 
property for your frame? that would give you indication as to whether 
the property you set to make overflow : hidden is taking effect or 
being over-ridden by another property.


maybe you can post your code, can check and let you know what could be 
wrong.


~Ashwin

On Thursday 23 February 2012 08:18:49 PM IST, bognekadje wrote:

Hi Ashwin, thanks for reply,

i already test that, but it don't work. I also test
Frame.getelement().getStyle().setOverflow().
I don't understand why.




--
You received 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 hide vertical scrollbar of a Frame?

2012-02-23 Thread Ashwin Desikan
Set the overflow CSS property to hidden value. This should disable scrolling. 

~Ashwin

Sent from my iPhone

On Feb 23, 2012, at 1:45 PM, bognekadje bogneka...@gmail.com wrote:

 Hi,
 In my application, i have a Frame which can scroll automatically, So i
 would hide vertical scrollbar to prevent user scroll.How can i do
 this?
 
 Thanks in advance for your help.
 
 Eric.
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to google-web-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: Changing the default behaviour of StacKLayoutPanel.

2012-02-21 Thread Ashwin Desikan
If you want all stack open at the sametime it defeats the purpose of a 
stackpanel. 

You can look at the source for stakpanel and build your own custom widget. 

Alternatively, you can also achieve similar functionality by using disclosure 
panels. Have multiple disc panels inside a vertical panel.  And while loading 
the view, keep the disc panels open. 

Thanks
Ashwin

Sent from my iPhone

On Feb 21, 2012, at 4:13 PM, sivachithambaram rangaraj 
sivachithamba...@gmail.com wrote:

 Is there a way to keep all the stacked layouts expanded while loading
 the StackLayoutPanel.
 
 I tried overriding this class but most of the methods and variables
 are private so not able to do so. Please advise any possible ways..
 
 -- 
 You received 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: Multiple RequestFactory servlets for a single GWT application

2012-02-16 Thread Ashwin Desikan

Gilad,

You can have multiple RequestFactoryServlets. check out the example below.


If you look at it closely, I have a different url mapping. You will have 
to define individual  RequestTransports to be associated with the 
url-mapping in your client.



Also, you will have to controll operations exposed by each of the 
requestFactories in your client. You can always have a base factory 
where you can provide common functions and move only the secured ones to 
SecuredRequestFactory


What I would recommend with this approach is, before using the 
RequestFactories have a check in your code to determine if a user is 
loggedIn. If logged in use the secure servlet for all requests.


example ;

*web.xml *

filter
filter-nameAuthFilter/filter-name
filter-classcom.example.server.gae.GaeAuthFilter/filter-class
/filter

filter-mapping
filter-nameAuthFilter/filter-name
servlet-nameauthRequestFactory/servlet-name
/filter-mapping

servlet
servlet-nameauthRequestFactory/servlet-name
servlet-classcom.google.web.bindery.requestfactory.server.RequestFactoryServlet/servlet-class
/servlet

servlet
servlet-nameunAuthRequestFactory/servlet-name
servlet-classcom.google.web.bindery.requestfactory.server.RequestFactoryServlet/servlet-class
/servlet

servlet-mapping
servlet-nameunAuthRequestFactory/servlet-name
url-pattern/unsignedRequest/url-pattern
/servlet-mapping

servlet-mapping
servlet-nameauthRequestFactory/servlet-name
url-pattern/signedRequest/url-pattern
/servlet-mapping


*client*

*//AuthenticatedRequestTransport*

public class AuthenticatedRequestTransport extends DefaultRequestTransport {

/**
 * default constructor.
 *
 */
public AuthenticatedRequestTransport() {
super();

//set the url
String requestURL = GWT.getHostPageBaseURL() + signedRequest;
setRequestUrl(requestURL);
}
}

*//Un-Authenticated Request*
public class UnAuthenticatedRequestTransport extends 
DefaultRequestTransport {


public UnAuthenticatedRequestTransport() {
super();

//set the url
String requestURL = GWT.getHostPageBaseURL() + unsignedRequest;
setRequestUrl(requestURL);
}
}


regards
Ashwin


On Thursday 16 February 2012 08:29:53 PM IST, Gilad Egozi wrote:


Is it possible to have this? And how can this be achieved?

The motivation - I want one secured (SSL) service for user-
provisioning (passwords...), and one non-secured.

Thanks,
Gilad.




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



Re: Custom TextBox

2012-02-13 Thread Ashwin Desikan
You can use IntergerBox or if using editor framework use 
ValueBoxEdiyorDecoratorInteger

I don't think you can display in the format u want using the above options. 

Have you tried using a regular textbox And converting your integer to a string 
in whatever format before displaying on screen?

~Ashwin

Sent from my iPhone

On Feb 14, 2012, at 12:14 AM, Fabricio Pizzichillo fpizzichi...@gmail.com 
wrote:

 Hello friends.
 I need to implement a TextBox that can be assigned an Integer and it shows in 
 this format 7732137/6
 
 Can you help?
 
 regards
 
 Fabricio
 -- 
 You received 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: Using EntityProxyId as service method parameter

2012-01-25 Thread Ashwin Desikan
Returning or passing the entity Id to the service method makes sense. 

Proxies are going to exist in the client, why do you want to send their Ids to 
the server?

Thanks
Ashwin
Sent from my iPhone

On Jan 25, 2012, at 2:37 PM, strcin str...@gmail.com wrote:

 Is there any hope we can have the answer to this question?
 
 On 19 sij, 16:23, strcin str...@gmail.com wrote:
 Hello,
 
 What is the correct way of usingEntityProxyIdProxyType as a service
 method 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.
 

-- 
You received 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: Help with resizing

2012-01-19 Thread Ashwin Desikan
Mike, 
In your ui:binder you are using a SplitlayoutPanel. You have to use the same 
for the variable definition in your view as well. At runtime assign qn instance 
of your custom SplitPanel to the declared variable


Example:

@UiField
SplitLayoutPanel splitPanel = MySplitLayoutPanel();

You need to add a cast anywhere you are using methods which are not part if the 
base class

Thanks
Ashwin

Sent from my iPhone

On Jan 20, 2012, at 12:18 AM, Mike Dee mdichiapp...@gmail.com wrote:

 That gives a runtime error when the view calls initWidget() in its
 constructor.
 
 Here is a summary of the code.  Note it uses Activities and Places.
 
 // The view
 public class MyViewImpl extends Composite implements MyView,
 RequiresResize, ProvidesResize
 {
interface Binder extends UiBinderWidget, MyViewImpl
{
}
 
private static final Binder binder = GWT.create( Binder.class );
 
@UiField(provided=true) MySplitLayoutPanel splitPanel;
 
...
public MyViewImpl()
{
initWidget( binder.createAndBindUi( this ) );   // === Exception
 thrown here
}
 
 }
 
 // MyView.ui.xml
 ?xml version=1.0 encoding=UTF-8?
 !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent;
 ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
 xmlns:g='urn:import:com.google.gwt.user.client.ui'
xmlns:p1=urn:import:com.google.gwt.user.cellview.client
 
g:SplitLayoutPanel width=100% height=100% ui:field=splitPanel
...
/g:SplitLayoutPanel
 /ui:UiBinder
 
 // MySplitLayoutPanel.java
 public class MySplitLayoutPanel extends SplitLayoutPanel
 {
private static MySplitLayoutPanellUiBinder uiBinder =
 GWT.create( MySplitLayoutPanel.class );
 
interface MySplitLayoutPanelUiBinder extends UiBinderWidget,
 MySplitLayoutPanel
{
}
 
@UiField SplitLayoutPanel main;
 
// Just want to be able to override onResize.
@Override
public void onResize()
{
System.out.println( *** ONRESIZE *** );
}
 }
 
 // MySplitLayoutPanel.ui.xml
 !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent;
 ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder
 xmlns:g=urn:import:com.google.gwt.user.client.ui
g:SplitLayoutPanel ui:field=main/
 /ui:UiBinder
 
 
 On Jan 18, 5:57 am, Patrick Tucker patrick.tuc...@macefusion.com
 wrote:
 Define the element as a SplitLayoutPanel in the uibinder and provide
 it with an instance of your class in the java code.
 
 @UiField(provided=true)
 
 On Jan 17, 7:37 pm,MikeDeemdichiapp...@gmail.com wrote:
 
 
 
 
 
 
 
 Just getting back to this.  Was working on something else.
 
 I did as describe below, by Ashwin.
 
 However, when I switch to design mode in GWTDesigner, the following
 error occurs:
 
 [ERROR] No class matching west in
 urn:import:com.google.gwt.user.client.ui Element g:west size='150.0'
 
 I assume that something else must be done so that GWTDesigner knows
 either: 1) my class is based on SplitLayoutPanel and thus the same XML
 is used to define it, 2) I have to some how tell GWTDesigner about all
 the options supported by MySplitLayoutPanel so that it knows how to
 interpret the uibinder code.
 
 It seems like this would be a common practice - to extend GWT widgets
 - and so I assume it isn't too difficult.  Any pointers?
 
 Mike
 
 On Dec 28 2011, 8:53 pm, Ashwin Desikan ashwin.desi...@gmail.com
 wrote:
 
 Mike,
 
 As long as you have a default constrictor in your derivedayout panel, you 
 should be able to use it in ui:binder like below.
 
 ui:binder
 m:MySplitLayoutPanel/
 /ui:binder
 
 Above m is the namespace identifier for your package.
 
 Did u try something like above?
 
 Thanks
 Ashwin
 Sent from my iPhone
 
 On Dec 28, 2011, at 10:53 PM,MikeDeemdichiapp...@gmail.com wrote:
 
 Hi Ashwin,
 
 The SplitLayoutPanel is inside a DockLayoutPanel (in the center).  I
 can see the DockLayoutPanel-onResize() calling SplitLayoutPanel-
 onResize().  However, it isn't calling the onResize() I added with
 addHandler().  I assume addHandler() has no effect since
 SplitLayoutPanel implements ResizeRequired.  So, now I am figuring out
 how to get a hold of SplitLayoutPanel's onResize() to override.
 
 I've created a derived panel, called MySplitLayoutPanel.  Currently
 trying to figure out how to make this work with uibinder.
 
 Mike
 
 On Dec 28, 1:16 am, Ashwin Desikan ashwin.desi...@gmail.com wrote:
 All layout panels implement the onResize method. So you don't Have to 
 extend the widget unless you are doing a custom Splitlayout panel.
 
 Do you use the Splitlayout panel inside other panels? Also, i trust you 
 are using rootlayout panel instead of rootpanel in the onModule method 
 of your entrypoint
 
 Since, I can't Access the entire thread over email I am assuming you are 
 having Splitlayout panel inside another layout like a htmlpanel etc and 
 expect it to resize on the change of view dimensions?
 
 If thats the case on way to fire the onResize automatically is to use a 
 place the splitlayoutpanel inside

Re: Activities and Place design wizard

2012-01-11 Thread Ashwin Desikan
whether you cache or not cache should be based on the user experience 
you want to provide.


Are there objects which needs to be re-initialized when you move from 
one activity to other? if yes, don't cache or atleast have some sort of 
intialization method in the startActivity.


In typical Wizards, the state is maintained between screens. If you 
want it behave similar to that including state maintenance, cache the 
activities.


CheckOut the CachingActivityMapper. You may probably have to expand it 
in your case to cache all the activities which form the various screens 
of your wiazard.


Regards
Ashwin


On Thursday 12 January 2012 07:05:03 AM IST, Cristian Rinaldi wrote:

Any idea for this problems?
A.U.S Cristian Rinaldi

Teléfono Móvil: (0342) 155 238 083

www.logikas.com http://www.logikas.com/

Lisandro de la Torre 2643 Of 5 - 3000 - Santa Fe

Teléfono Fijo: (0342) 483 5138








2012/1/10 Cristian Rinaldi csrina...@gmail.com 
mailto:csrina...@gmail.com


Hello:

I have a question about the design using Activities and Places.
I have a set of activities that render their views in a section.
The behavior I want is that each activity, after an event (by
example: click in next button, click in activity represented in
breadcrumbs)  go to the next activity, hiding the previous view.
Top of the section, I have a breadcrumbs with the activities that
happened.
Now, if I click on one of the parts of the breadcrumbs, must be
return to the activity related and show the view with all his state.
The question is:  I make a map of activities that are cached? or
do not use cache, and management behavior in the start method of
activity, starting all over again.
The view is singleton, and managed by GIN.
The general behavior is like the behavior of a wizard.

Any ideas?

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


--
You received this message because you are subscribed to the Google 
Groups Google Web Toolkit group.

To post to this group, send email to google-web-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: Handling styles application wide?

2012-01-11 Thread Ashwin Desikan

Mike,

you can combine all the CSS into a single CSS file. For example in your 
CellTable case, try changing the source to myapp.css and move the 
contents of MyViewTable.css into it.


if you want to have different styles for your tables, then append the 
table styles in your CSS with specific names and use the 
DependentStyleName method of a Widget, to notify gwt which style has to 
be applied at runtime.


I am not very sure about WindowBuilder, as I have not used it. Maybe, 
will give it a try and revert.


~Ashwin

On Thursday 12 January 2012 12:25:46 AM IST, Mike Dee wrote:

Ashwin,

Thanks for the reply. We were doing this, to an extent.  I just didn't
think about putting the celltable style class in the ClientBundle.  It
works, BUT, is it possible to put the CSS for the entire app in one
CSS (not sure if this is entirely desirable right now).

For example, here is what the ClientBundle now looks like.

public interface MyAppResources extends ClientBundle
{
public static final MyAppResources INSTANCE =
GWT.create( MyAppResources.class );

@Source( com/myapp/home.png )
public ImageResource home();

@Source( com/myapp/myapp.css )
@CssResource.NotStrict
public MyAppStyles css();

public interface MyViewTableCss extends CellTable.Resources
{
@Source({CellTable.Style.DEFAULT_CSS, com/myapp/resources/
MyViewTable.css})
TableStyle cellTableStyle();

interface TableStyle extends CellTable.Style {}
}
}

As we create more CellTable with different styles, we will end up with
a CSS file for each.  It would be nice if they could be combined into
one.

Also, can WindowBuilder be integrated with ClientBundle so that styles
from the ClientBundle would appear as selectable in WindowBuilder?

On Jan 10, 11:21 pm, Ashwin Desikanashwin.desi...@gmail.com  wrote:

The best approach would be to use ClientBundle

http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html

This would allow you to combine all your resources including
TableResources, Application Images, Custom Styles etc.

Make it a practise to use the styles defined in your external
stylesheets across the application and your maintenance would become
relatively easier.

~Ashwin

On Wednesday 11 January 2012 09:53:38 AM IST, Mike Dee wrote:








What is a good ways to consistently handle styles application side?
I'm working on an app that has CellTables and widgets and HTML.  For
CellTables we use CellTable.Resources to store CSS.  For widgets, we
use uibinder withui:stylefor HTML we use external stylesheets.  Is
there a good strategy for putting all style info in one place?





--
You received 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: Handling styles application wide?

2012-01-10 Thread Ashwin Desikan

The best approach would be to use ClientBundle

http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html

This would allow you to combine all your resources including 
TableResources, Application Images, Custom Styles etc.


Make it a practise to use the styles defined in your external 
stylesheets across the application and your maintenance would become 
relatively easier.


~Ashwin


On Wednesday 11 January 2012 09:53:38 AM IST, Mike Dee wrote:

What is a good ways to consistently handle styles application side?
I'm working on an app that has CellTables and widgets and HTML.  For
CellTables we use CellTable.Resources to store CSS.  For widgets, we
use uibinder withui:style  for HTML we use external stylesheets.  Is
there a good strategy for putting all style info in one place?




--
You received 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: Image border

2011-12-31 Thread Ashwin Desikan
How are you adding the image? Using the URL property or as background image via 
CSS property? 

If u load it using URL property it does not show the border. 

~Ashwin

Sent from my iPhone

On Jan 1, 2012, at 8:38 AM, Pavel Byles pavelby...@gmail.com wrote:

 Is there a way to remove the default border from a gwt image widget?
 
 in my css I have: 
 img {  
 
 border: none;
 
 } 
 
 
 Yet nothing changes.
 
 -- 
 You received 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: Help with resizing

2011-12-28 Thread Ashwin Desikan
All layout panels implement the onResize method. So you don't Have to extend 
the widget unless you are doing a custom Splitlayout panel. 

Do you use the Splitlayout panel inside other panels? Also, i trust you are 
using rootlayout panel instead of rootpanel in the onModule method of your 
entrypoint

Since, I can't Access the entire thread over email I am assuming you are having 
Splitlayout panel inside another layout like a htmlpanel etc and expect it to 
resize on the change of view dimensions?

If thats the case on way to fire the onResize automatically is to use a place 
the splitlayoutpanel inside a ResizeLayoutPanel or for that matter any layout 
panels

~Ashwin


Sent from my iPhone

On Dec 28, 2011, at 1:08 PM, Mike Dee mdichiapp...@gmail.com wrote:

 Played around with this a little more and came to a few conclusions.
 I am guessing that adding a ResizeHandler to SplitLayoutPanel has no
 effect because SplitLayoutPanel already implements onResize() - due to
 its implementing RequiresResize.  I can see SplitLayoutPanel's
 onResize() being called by stepping through the code.  The
 ResizeHandler I added is no where to be found.
 
 That leaves the option of deriving my own subclass of SplitLayoutPanel
 and then overriding onResize().  Easy enough EXCEPT how does one get
 such a class to work with uibinder?
 
 -- 
 You received 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: Help with resizing

2011-12-28 Thread Ashwin Desikan
Mike,

As long as you have a default constrictor in your derivedayout panel, you 
should be able to use it in ui:binder like below. 

ui:binder
m:MySplitLayoutPanel/
/ui:binder

Above m is the namespace identifier for your package. 


Did u try something like above?

Thanks
Ashwin
Sent from my iPhone

On Dec 28, 2011, at 10:53 PM, Mike Dee mdichiapp...@gmail.com wrote:

 Hi Ashwin,
 
 The SplitLayoutPanel is inside a DockLayoutPanel (in the center).  I
 can see the DockLayoutPanel-onResize() calling SplitLayoutPanel-
 onResize().  However, it isn't calling the onResize() I added with
 addHandler().  I assume addHandler() has no effect since
 SplitLayoutPanel implements ResizeRequired.  So, now I am figuring out
 how to get a hold of SplitLayoutPanel's onResize() to override.
 
 I've created a derived panel, called MySplitLayoutPanel.  Currently
 trying to figure out how to make this work with uibinder.
 
 Mike
 
 On Dec 28, 1:16 am, Ashwin Desikan ashwin.desi...@gmail.com wrote:
 All layout panels implement the onResize method. So you don't Have to extend 
 the widget unless you are doing a custom Splitlayout panel.
 
 Do you use the Splitlayout panel inside other panels? Also, i trust you are 
 using rootlayout panel instead of rootpanel in the onModule method of your 
 entrypoint
 
 Since, I can't Access the entire thread over email I am assuming you are 
 having Splitlayout panel inside another layout like a htmlpanel etc and 
 expect it to resize on the change of view dimensions?
 
 If thats the case on way to fire the onResize automatically is to use a 
 place the splitlayoutpanel inside a ResizeLayoutPanel or for that matter any 
 layout panels
 
 ~Ashwin
 
 Sent from my iPhone
 
 On Dec 28, 2011, at 1:08 PM, Mike Dee mdichiapp...@gmail.com wrote:
 
 
 
 
 
 
 
 Played around with this a little more and came to a few conclusions.
 I am guessing that adding a ResizeHandler to SplitLayoutPanel has no
 effect because SplitLayoutPanel already implements onResize() - due to
 its implementing RequiresResize.  I can see SplitLayoutPanel's
 onResize() being called by stepping through the code.  The
 ResizeHandler I added is no where to be found.
 
 That leaves the option of deriving my own subclass of SplitLayoutPanel
 and then overriding onResize().  Easy enough EXCEPT how does one get
 such a class to work with uibinder?
 
 --
 You received 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 
 athttp://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: I made Selenium + GWT setup instructions

2011-12-26 Thread Ashwin Desikan

Brandon,

Great Work!

Cheers
Ashwin

On Sunday 25 December 2011 05:10 AM, Brandon Donnelson wrote:
Here are some selenium setup instructions on my site using the 
ChromeDriver. You could easily use Firefox WebDriver too.


http://c.gwt-examples.com/home/testing/selenium-testing

Brandon Donnelson
http://c.gwt-examples.com
http://gwt-examples.googlecode.com

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

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: scrollpanel get event when scroll is visible

2011-12-07 Thread Ashwin Desikan
You can check for the presence of scrollbar / scroll event inside the 
OnResize method of your Panel. When the layout is resized OnResize 
method is called.


~Ashwin

On Wednesday 07 December 2011 03:38:13 PM IST, Ed wrote:

I don't think this is possible.
See the Event class for all events.
Maybe the Event.ONSCROLL event is also thrown when the scroll bar is
hidden/shown. Test it.

You could do it yourself: a timers that will check every X ms if the
scrollbar is shown and throw an event if it changed.

- Ed

On Dec 7, 10:21 am, Genesis Simplemanonent...@gmail.com  wrote:

Hi,
I need some how to know when the scrollbar is visible or not in the
scroll panel.
I need to get an event when scrollbar is visible or hidden (so i wont
need to check it in several places).
Is there a way to do it ?





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



Re: Server side gwt-validation doesn't work (?)

2011-12-07 Thread Ashwin Desikan
It may be the version of hibernate validator you are using. 


I have the following def in my project POM and it works fine

dependency
   groupIdorg.hibernate/groupId
   artifactIdhibernate-validator/artifactId
   version4.1.0.Final/version
   exclusions
   exclusion
   groupIdjavax.xml.bind/groupId
   artifactIdjaxb-api/artifactId
   /exclusion
   exclusion
   groupIdcom.sun.xml.bind/groupId
   artifactIdjaxb-impl/artifactId
   /exclusion
   /exclusions
   /dependency
   dependency
   groupIdjavax.validation/groupId
   artifactIdvalidation-api/artifactId
   version1.0.0.GA/version
   /dependency


Thanks
Ashwin

On Wednesday 07 December 2011 02:31:40 PM IST, Nicolas.Rocca wrote:

Hi Nick,

unfortunately, this doesn't work. With both jars, I get the same
error.
I also wonder why the dependencies-list (http://code.google.com/p/gwt-
validation/wiki/Dependencies) of gwt-validation doesn't mention any
validation framework like hibernate if it is really necessary. Doesn't
gwt-validation provide own client AND server side validators?




--
You received 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: where can i get the results of RequestContext's fire method?

2011-11-30 Thread Ashwin Desikan
Yes, you can control. In your RequestFactory fire operation, override 
the OnConstraintViolation method in the receiver, like below.



  @Override
public void onConstraintViolation(
SetConstraintViolation? 
violations) {
IteratorConstraintViolation? itr = 
violations
.iterator();
while (itr.hasNext()) {
ConstraintViolation? viola = 
itr.next();
log.log(Level.WARNING,
Violation : [  + 
viola.getMessage() + : 
+ 
viola.getPropertyPath() +  : 
+ 
viola.getInvalidValue() +  ]);
}

// set the contraints in the editor

view.getEditor().setConstraintViolations(violations);
}


Now the violations are passed onto the editor. In the editor you can 
use wrap the controls which needs to display the violation messages 
using the ValueBoxEditorDecorator


example :

 e:ValueBoxEditorDecorator  ui:field=titleDecorator 
addStyleNames={style.common.separator10}  {style.common.txtClrRed}  
{style.common.separatorT}

e:valuebox  
g:TextBox ui:field=title 
addStyleNames={style.common.textHldr}/

/e:valuebox
/e:ValueBoxEditorDecorator

Thanks
Ashwin


On Wednesday 30 November 2011 04:22:51 PM IST, Elhanan Maayan wrote:
ok let's assume i'm using the server side validation ,is there any 
easy to get the control which has the wrong value (i'm assuming the 
use of path is needed) from the editorError?


On Wed, Nov 30, 2011 at 12:38 PM, Thomas Broyer t.bro...@gmail.com 
mailto:t.bro...@gmail.com wrote:


RequestFactoryEditorDriver#flush simply copies the data from the
widgets to the EntityProxy, so either you validate data in your
widgets (calling EditorDelegate#recordError; see the
ValueBoxEditor for an example) or you validate your proxy, but
you'd have to flush() first so the proxy is updated.
And if you need a reference to your EntityProxy, well, just keep
it one in a field of your class (this is how you'd do it anyway if
you didn't use the Editors framework; what this one does is for
the most part generating code for put this object's data into the
widgets and put the widgets' value into the object; see
https://gist.github.com/780560, compare the two commits for a
without the Editor framework and with the Editor framework).

Now, about JSR303 on the client-side, then yes, you'll have to put
annotations on your proxies. You can see it as duplication, or as
a feature in that it allows you to validate differently on the
client-side and the server-side (because you don't have the same
capabilities).
I believe the idea was that proxies would be generated somehow,
rather than maintained by hand; and also that JSR303 support on
the client-side was done without thinking particularly about
RequestFactory.

-- 
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/-/9dgB5t-XJIwJ.

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


--
You received this message because you are subscribed to the Google 
Groups Google Web Toolkit group.

To post to this group, send email to google-web-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: Regarding Hosting GWT applications

2011-11-28 Thread Ashwin Desikan
you can choose any provider who supports a java stack. tomcat stack 
would work perfectly fine.


the choice of provided depends on the nature of your application and 
what sort of scale you are expecting to achieve and the level of 
flexibility you need.


rackspace, amazon web services are good examples of hosting providers. 
They host many large scale apps. There are also many smaller providers.


~Ashwin

On Monday 28 November 2011 01:45:56 PM IST, sachin sreenivasan wrote:

Hello everyone,

I am planning to host my gwt application and I am trying to find
the right hosting provider. Many people are not able to clearly tell
me if they support the hosting of GWT based applications. They say
that they offer a JVM with tomcat and mysql for db, but when I ask
them about the support of GWT applications, they are not able to
clarify. Can someone tell me if having JVM with tomcat and mysql
enough for hosting the gwt application? Or do I need to ask for
something specific while hosting the GWT application?

Also can someone please recommend some hosting provider? and also
some particular plan for the GWT applications? I am looking at
mochahost which almost seems promising but just wanted to get this
clarification from the GWT forum.

Regards,
Sachin




--
You received 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: Login Page Options/Opinions

2011-11-22 Thread Ashwin Desikan

Mark,

There are many ways in which login can be implemented but it purely 
depends on your requirement.


You can always build your own authentication/ authorization mechanism 
in your application but then you should also question the need for 
another authentication system against using the likes of open-id, oauth 
based authentication providers like google/ twitter/ facebook/ msn/ 
yahoo etc.


Answer to the above question would change how you build the 
authentication (login). Either case you would have to define the 
authorization (page control based on roles etc).


for example, I implemented facebook login for one of my apps. I used 
the approach #3 where in I placed the facebook connect button in a jsp, 
wrote minor javascript (generated most of it from facebook apps) and 
forwarded the response to my gwt-app which had filters defined to check 
for the presence of oauth tokens. if a valid token is present i create 
a session, if not I allow my user to continue as an unauthenticated 
user.


I have also implemented the above facebook auth using ouath2 module for 
gwt. This can be found in google code. In this case the gwt plugin can 
be directly used your application.



There have been a ton of prior discussions in this forum about Login/ 
Security. Search for that topic and you would see many threads which 
provide valuable information.


~Ashwin

On Wednesday 23 November 2011 05:15:46 AM IST, Mark Wengranowski wrote:

Hi Everyone,

Im finishing my first GWT app and am about to implement the login
page. I've been doing a lot of reading and wanted to get some opinions
on different ways to go about doing it.

The options I have found are the following:

1. Implement the login page into the main application and allow the
user into the next section once they successfully login.

2. Have a separate GWT program for the login that redirects to the
main program once the user successfully logs in

3. Modify the GWT main HTML page to a .jsp and use jsp to set the
session variables and authenticate the user. After successfully
logging in, the page will refresh and the line for the my programs
GWT .js file is written to the page causing it to load.

4. Same as #3 but create a new jsp ad the default page and redirect to
the normal GWT .html page for the program.

Ideally i would like to have my GWT app loading in the background
while the user is typing in their username and password. That way they
won't have to wait for the program to load once they submit their
credentials. Will any of these methods allow me to do this?

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.



Re: TabLayoutPanel Dynamic Resizing

2011-11-20 Thread Ashwin Desikan

can you provide a screen shot? would give a clear picture of the issue.

~Ashwin

On Saturday 19 November 2011 12:35 PM, Ashwani Gupta wrote:

Finally got a chance to work on this.
I tried inspecting the Element using IE 9 (using F12 Developer Tools). 
Almost all my elements have position = absolute. I tried setting the 
TabLayoutPanelContent height to 100% but nothing happend.
Its not that nothing is visible I have been seeing textarea vertically 
aligned but then I can only see the first 12 of them and no way to see 
the rest of them, so what I am expecting is that if TabLayoutPanel 
resizes the scroll bar should appear so I can scroll down to all my 
text areas.


On Tue, Nov 15, 2011 at 11:58 PM, Ashwin Desikan 
ashwin.desi...@gmail.com mailto:ashwin.desi...@gmail.com wrote:


try setting absolute height and check if the position shows as
absolute using Inspect Element or firebug. You can use them also
to change the height of the TabLayoutPanelContent Style, see if
that makes your panel to appear.

I think its mostly due to your vertical panel, its not getting
resized most probably. try the above option and see if the panel
appears. Then we can try out other options

~Ashwin


On Wednesday 16 November 2011 01:22:09 PM IST, Ash wrote:

i tried setting the height of verticalpanel to 100% and also
in px but
both didn't work.
Could be something  wrong with my code.


On Nov 15, 11:18 pm, Ashwin Desikanashwin.desi...@gmail.com
mailto:ashwin.desi...@gmail.com  wrote:

you can override the height of the content panel in CSS.
if you are not
using styles, you have to additionally set the height of
the Vertical
Panel you are adding inside your TabLayoutPanel.

~Ashwin

On Wednesday 16 November 2011 12:45:46 PM IST, Ash wrote:



p.setHeight(100%);


Setting the height of TabLayoutPanel to 100% as above
doesn't work
either.


Ash


On Nov 15, 10:57 pm, Ashwin
Desikanashwin.desi...@gmail.com
mailto:ashwin.desi...@gmail.comwrote:

you have only provided the height of the tab bar
which is 30 px. You
also have to set the height of the tabpael
content. Set it to 100%


~Ashwin


On Wednesday 16 November 2011 12:01:48 PM IST, Ash
wrote:


Can some one tell me why the TabLayoutPanel
won't resize in the
following code.


TabLayoutPanel p = new
TabLayoutPanel(30, Unit.PX);


VerticalPanel vp = new
VerticalPanel();


// int array[] = new int [100];
for (int i = 0; i  100; i++) {
TextArea ta = new TextArea();
   
ta.setText(Integer.toString(i));

vp.add(ta);


}


p.add(vp, New Tab);


// Attach the LayoutPanel to the
RootLayoutPanel. The latter will
listen for
// resize events on the window to
ensure that its children are
informed of
// possible size changes.


RootLayoutPanel rp =
RootLayoutPanel.get();
rp.add(p);- Hide quoted text -


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


--
You received this message because you are subscribed to the Google 
Groups Google Web Toolkit group.

To post to this group, send email to google-web-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

Re: TabLayoutPanel Dynamic Resizing

2011-11-15 Thread Ashwin Desikan
you have only provided the height of the tab bar which is 30 px. You 
also have to set the height of the tabpael content. Set it to 100%


~Ashwin


On Wednesday 16 November 2011 12:01:48 PM IST, Ash wrote:

Can some one tell me why the TabLayoutPanel won't resize in the
following code.

TabLayoutPanel p = new TabLayoutPanel(30, Unit.PX);

VerticalPanel vp = new VerticalPanel();

// int array[] = new int [100];
for (int i = 0; i  100; i++) {
TextArea ta = new TextArea();
ta.setText(Integer.toString(i));
vp.add(ta);

}

p.add(vp, New Tab);

// Attach the LayoutPanel to the RootLayoutPanel. The latter 
will
listen for
// resize events on the window to ensure that its children are
informed of
// possible size changes.

RootLayoutPanel rp = RootLayoutPanel.get();
rp.add(p);




--
You received 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: TabLayoutPanel Dynamic Resizing

2011-11-15 Thread Ashwin Desikan
you can override the height of the content panel in CSS. if you are not 
using styles, you have to additionally set the height of the Vertical 
Panel you are adding inside your TabLayoutPanel.


~Ashwin

On Wednesday 16 November 2011 12:45:46 PM IST, Ash wrote:

p.setHeight(100%);

Setting the height of TabLayoutPanel to 100% as above doesn't work
either.

Ash

On Nov 15, 10:57 pm, Ashwin Desikanashwin.desi...@gmail.com  wrote:

you have only provided the height of the tab bar which is 30 px. You
also have to set the height of the tabpael content. Set it to 100%

~Ashwin

On Wednesday 16 November 2011 12:01:48 PM IST, Ash wrote:




Can some one tell me why the TabLayoutPanel won't resize in the
following code.



TabLayoutPanel p = new TabLayoutPanel(30, Unit.PX);



VerticalPanel vp = new VerticalPanel();



// int array[] = new int [100];
for (int i = 0; i100; i++) {
TextArea ta = new TextArea();
ta.setText(Integer.toString(i));
vp.add(ta);



}



p.add(vp, New Tab);



// Attach the LayoutPanel to the RootLayoutPanel. The latter will
listen for
// resize events on the window to ensure that its children are
informed of
// possible size changes.



RootLayoutPanel rp = RootLayoutPanel.get();
rp.add(p);- 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: TabLayoutPanel Dynamic Resizing

2011-11-15 Thread Ashwin Desikan
try setting absolute height and check if the position shows as absolute 
using Inspect Element or firebug. You can use them also to change the 
height of the TabLayoutPanelContent Style, see if that makes your panel 
to appear.


I think its mostly due to your vertical panel, its not getting resized 
most probably. try the above option and see if the panel appears. Then 
we can try out other options


~Ashwin

On Wednesday 16 November 2011 01:22:09 PM IST, Ash wrote:

i tried setting the height of verticalpanel to 100% and also in px but
both didn't work.
Could be something  wrong with my code.


On Nov 15, 11:18 pm, Ashwin Desikanashwin.desi...@gmail.com  wrote:

you can override the height of the content panel in CSS. if you are not
using styles, you have to additionally set the height of the Vertical
Panel you are adding inside your TabLayoutPanel.

~Ashwin

On Wednesday 16 November 2011 12:45:46 PM IST, Ash wrote:




p.setHeight(100%);



Setting the height of TabLayoutPanel to 100% as above doesn't work
either.



Ash



On Nov 15, 10:57 pm, Ashwin Desikanashwin.desi...@gmail.comwrote:

you have only provided the height of the tab bar which is 30 px. You
also have to set the height of the tabpael content. Set it to 100%



~Ashwin



On Wednesday 16 November 2011 12:01:48 PM IST, Ash wrote:



Can some one tell me why the TabLayoutPanel won't resize in the
following code.



 TabLayoutPanel p = new TabLayoutPanel(30, Unit.PX);



 VerticalPanel vp = new VerticalPanel();



 // int array[] = new int [100];
 for (int i = 0; i  100; i++) {
 TextArea ta = new TextArea();
 ta.setText(Integer.toString(i));
 vp.add(ta);



 }



 p.add(vp, New Tab);



 // Attach the LayoutPanel to the RootLayoutPanel. The latter will
listen for
 // resize events on the window to ensure that its children are
informed of
 // possible size changes.



 RootLayoutPanel rp = RootLayoutPanel.get();
 rp.add(p);- Hide quoted text -



- Show quoted text -- 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 with RequestFactory

2011-11-08 Thread Ashwin Desikan

have you checked out the sample in the following location.

http://jectbd.com/?p=45

the example uses an RPC connection, but that can be easily replaced 
with RF. This has example of how to implement filtering and restrict 
the number of results from server.


one option for you would be to use a range query on the server. 

I implemented a dynamic version based on the above sample code. i 
currently restrict my results to 75 currently and I perform a query 
only after the user has typed in 3 characters to reduce the number of 
calls to server, but would soon be changing to a range query. If you 
are interested can share my work.


thanks
Ashwin

On Wednesday 09 November 2011 05:14:41 AM IST, Mark Wengranowski wrote:

Hi Everyone,

I was wondering if anyone knows of a source code example that uses
requestfactory, a suggestbox and a dynamic suggest oracle?

I already have suggestboxes that i populate with a list of strings
from a RF call but  need a more dynamic approach for a search tool.
The list is way too long to load all of the answers so i need to
create a suggest oracle that makes an RF call after each key is typed.

All i can find is examples for RPC.

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.



Re: GWT Celltable How to make Non-Editable cell in Editable column

2011-10-31 Thread Ashwin Desikan
you mean 1st column of row to be non-editable or readonly. Use a 
TextColumn or use TextCell instead of EditTextCell


Thanks
Ashwin

On Monday 31 October 2011 04:08:25 PM IST, vaibhav bhalke wrote:

Hi,

I added EditTextCell(stringTestEditTextCell) to Column(testColumn).

 EditTextCell editTextCell = new EditTextCell();
   ColumnRecord, String stringColumn = new ColumnRecord, String(
editTextCell) {
@Override
public String getValue(Record object) {

return object.getValue();
}
};

All cells in testColumn are editable.

 I want 1st cell of column such way that  1st cell of column should be 
Non-Editable.


--
Best Regards,
Vaibhav

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.



--
You received 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 Celltable: How to apply mouse enter event in celltable's cell

2011-10-31 Thread Ashwin Desikan
Capture the click event/ change events. You will have to override the 
EditableCell and write your own OnBrowseEvent Handler.


For reference, check the code for EditableTextCell. it actually would 
give you hints on how to check for old values as it already does, you 
can extend it to perform your record modify operation


Thanks
Ashwin

On Monday 31 October 2011 01:58:40 PM IST, vaibhav bhalke wrote:

Hi,
How to apply mouse enter event in celltables cell.

If Mouse enter in cell for record edition then I want to set string to 
Record State column that record is edited Record modify
On Mouse enter I will check cellvalaue is not equal old value then I 
will set Record modify value to related record for State column 
other wise empty.


Is it possible to apply Mouse enter event in setFieldUpdater() of column?
Or How to apply OnBrowseEvent on cell ?

regards,
Vaibhav

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.



--
You received 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: TabLayoutPanel,how to catch the mouse click event on tab

2011-10-31 Thread Ashwin Desikan
You can use either of the BeforeSelectionHandler or SelectionHandler 
for the TabLayoutPanel.  If you want to perform your operation after 
the tab is clicked use the latter


example:

@UiHanlder(myTabPanel)
public void onMyTabClick(SelectionEventInteger event) {

int item =   event.getSelectedItem();

//note item holds the tab id. now compare this against the tab's you 
have, index starts from zero.


switch(item) {
case tab1 :
break;
case tab2:
break;
}

}


Thanks
Ashwin

On Monday 31 October 2011 12:03:13 PM IST, wahaha wrote:

there is a TabLayoutPanel instance,i want to alert something while i
clicked on the tab button.

how to implement this?




--
You received 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: 10 MB increase of the size of the web app directory with the generated JS files

2011-10-12 Thread Ashwin Desikan
Don't worry. It's because of the additional jars. 

Thanks
Ashwin

Sent from my iPhone

On Oct 12, 2011, at 5:26 PM, haluk halu...@gmail.com wrote:

 The size of my web app directory under the war file that contains
 the generated JavaScript files was 2 MB when I was using the GWT
 version 2.0, but recently increased to 12 MB when I switched to GWT
 version 2.4.
 
 The only external module that I included is local storage library (gwt-
 html5-storage.jar) that was necessary in order to get the Local
 Storage working with ie8. The rest is the standard GWT 2.4 stuff.
 
 Am I doing something wrong, or is it normal with GWT 2.4?
 
 Is there any way of reducing the size of this web app directory as I
 am not using any of the remote RPC or serialization modules?
 
 -- 
 You received 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: ScrollPanel

2011-10-01 Thread Ashwin Desikan
you can change the style of the scrollbar, for all web-kit based 
browsers (chrome) you can use the following style.


for example, I have a scrollable content with style as defined below. 
you can customize the scrollbar using ::-webkit-scrollbar



.scrollableContent {
overflow-x: auto;
overflow-y: auto;
}

.scrollableContent ::-webkit-scrollbar {
width: 10px;
}

.scrollableContent ::-webkit-scrollbar-thumb {
border-radius: 10px;
background: #DDD;
}

Thanks
Ashwin

On Friday 30 September 2011 09:31:06 PM IST, ELkeke wrote:

Hi,

I should like to customize a ScrollPanel, and particulary the
scrollbar in order to have a beautiful scollbar.
For example: remove the 2 buttons for the vertical scrollbar(top and
bottom)
or
change the background color of the scrollbar





--
You received 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 create image sprits

2011-09-20 Thread Ashwin Desikan
you are correct, gwt would automatically create a sprite from the 
images defined in the bundle


--
You received 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 add general Button or Label widget into CellTable ?

2011-09-15 Thread Ashwin Desikan
Why do u want 2 use a label  button inplae of TextCell /ButtonCell?

You can always create your custom cell by extending one of the abstract cell 
classes 

Thanks
Ashwin

Sent from my iPhone

On Sep 15, 2011, at 12:31 PM, suresh babu sureshgbab...@gmail.com wrote:

 Hi,
 
 I would like to use general Button, and Label widget inside the CellTable 
 column instead of Cell Type like
 
 Text
 TextCell - A non-editable cell that displays text
 ClickableTextCell - A text field; clicking on the cell causes its 
 ValueUpdater to be called
 EditTextCell - A cell that initially displays text; when clicked, the text 
 becomes editable
 TextInputCell - A field for entering text
 Buttons, Checkboxes and Menus
 ActionCellC - A button that takes a delegate to perform actions on mouseUp
 ButtonCell - A button whose text is the data value
 CheckboxCell - A checkbox that can be checked or unchecked
 SelectionCell - A drop-down menu for selecting one of many choices
 Dates
 DateCell - A date that conforms to a specified date format
 DatePickerCell - A date picker that displays a month calendar in which the 
 user can select a date
 Images
 ImageCell - A cell used to render an image URL
 ImageResourceCell - A cell used to render an ImageResource
 ImageLoadingCell - A cell used to render an image URL. A loading indicator is 
 initially displayed
 Numbers
 NumberCell - A number that conforms to a specified number format
 Compositions
 CompositeCellC - A composition of multiple Cells.
 Decorators
 IconCellDecoratorC - A decorator that adds an icon to another Cell
 
 
  Can somebody throw some light on this, Any help would be greatly 
 appreciated. 
 
 Regards
 Suresh Babu G
 
 
 -- 
 You received 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 2.4 RequestFactory Exception when receiving data from BackEnd

2011-09-15 Thread Ashwin Desikan
Have u tried to override the onFailure and onviolation methods in ur Receiver? 
They give you better clarity on the error? 

Do u any constraints/ validation on the entity? If they are not met your 
request would fail

Thanks
Ashwin

Sent from my iPhone

On Sep 15, 2011, at 1:24 PM, POODevelopper imra...@gmail.com wrote:

 Finally RequestFactory work with Spring back end, but I have another
 issue : Is that i receive an exception on client when he process the
 data, the server service is call but I get this exception on client.
 
 Everything is set up correctly the Proxy Value Object, the Request
 Object and the RequestFactory. I just can't determine the cause for
 this exception it is making me crazy !!!
 
 I tired to create a method on the service which return a simple String
 and it work but for the complex type GxpensesTransaction no chance.
 Below the exception I'm getting  :
 
 SEVERE: One or more exceptions caught, see full set in
 UmbrellaException#getCauses
 com.google.web.bindery.event.shared.UmbrellaException: One or more
 exceptions caught, see full set in UmbrellaException#getCauses
at
 com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.fail(AbstractRequestContext.java:
 727)
at
 com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext
 $StandardPayloadDialect.processPayload(AbstractRequestContext.java:
 331)
at
 com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext
 $5.onTransportSuccess(AbstractRequestContext.java:1108)
at
 com.google.web.bindery.requestfactory.gwt.client.DefaultRequestTransport
 $1.onResponseReceived(DefaultRequestTransport.java:136)
at
 com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:
 287)
at com.google.gwt.http.client.RequestBuilder
 $1.onReadyStateChange(RequestBuilder.java:395)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
 39)
at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
 25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
 103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
 71)
at
 com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
 172)
at
 com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:
 337)
at
 com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
 218)
at
 com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
 136)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
 561)
at
 com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
 269)
at
 com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
 91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
 39)
at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
 25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
 103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
 71)
at
 com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
 172)
at
 com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
 292)
at
 com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
 546)
at
 com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
 363)
at java.lang.Thread.run(Thread.java:680)
 Caused by: java.lang.RuntimeException: Server Error: null
at
 com.google.web.bindery.requestfactory.shared.Receiver.onFailure(Receiver.java:
 44)
at org.gxpenses.client.activity.AccountActivity
 $1.onFailure(AccountActivity.java:81)
at
 com.google.web.bindery.requestfactory.shared.impl.AbstractRequest.onFail(AbstractRequest.java:
 118)
at
 com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.fail(AbstractRequestContext.java:
 707)
at
 com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext
 $StandardPayloadDialect.processPayload(AbstractRequestContext.java:
 331)
at
 com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext
 $5.onTransportSuccess(AbstractRequestContext.java:1108)
at
 com.google.web.bindery.requestfactory.gwt.client.DefaultRequestTransport
 $1.onResponseReceived(DefaultRequestTransport.java:136)
at
 com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:
 

Re: How do I add general Button or Label widget into CellTable ?

2011-09-15 Thread Ashwin Desikan

On Thursday 15 September 2011 01:43:02 PM IST, suresh babu wrote:
I have ImageButton which is extend by Button widget, so I want to use 
this ImageButton into my CellTable.


 Any way I can do this ?.




On Thu, Sep 15, 2011 at 1:17 PM, Ashwin Desikan 
ashwin.desi...@gmail.com mailto:ashwin.desi...@gmail.com wrote:


Why do u want 2 use a label  button inplae of TextCell /ButtonCell?

You can always create your custom cell by extending one of the
abstract cell classes

Thanks
Ashwin

Sent from my iPhone

On Sep 15, 2011, at 12:31 PM, suresh babu sureshgbab...@gmail.com
mailto:sureshgbab...@gmail.com wrote:


Hi,

I would like to use general Button, and Label widget inside the
CellTable column instead of Cell Type like

Text
TextCell

http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/cell/client/TextCell.html
 -
A non-editable cell that displays text
ClickableTextCell

http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/cell/client/ClickableTextCell.html
 -
A text field; clicking on the cell causes its ValueUpdater to
be called
EditTextCell

http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/cell/client/EditTextCell.html
 -
A cell that initially displays text; when clicked, the text
becomes editable
TextInputCell

http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/cell/client/TextInputCell.html
 -
A field for entering text
Buttons, Checkboxes and Menus
ActionCellC

http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/cell/client/ActionCell.html
 -
A button that takes a delegate to perform actions on mouseUp
ButtonCell

http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/cell/client/ButtonCell.html
 -
A button whose text is the data value
CheckboxCell

http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/cell/client/CheckboxCell.html
 -
A checkbox that can be checked or unchecked
SelectionCell

http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/cell/client/SelectionCell.html
 -
A drop-down menu for selecting one of many choices
Dates
DateCell

http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/cell/client/DateCell.html
 -
A date that conforms to a specified date format
DatePickerCell

http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/cell/client/DatePickerCell.html
 -
A date picker that displays a month calendar in which the
user can select a date
Images
ImageCell

http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/cell/client/ImageCell.html
 -
A cell used to render an image URL
ImageResourceCell

http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/cell/client/ImageResourceCell.html
 -
A cell used to render an ImageResource
ImageLoadingCell

http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/cell/client/ImageLoadingCell.html
 -
A cell used to render an image URL. A loading indicator is
initially displayed
Numbers
NumberCell

http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/cell/client/NumberCell.html
 -
A number that conforms to a specified number format
Compositions
CompositeCellC

http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/cell/client/CompositeCell.html
 -
A composition of multiple Cells.
Decorators
IconCellDecoratorC

http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/cell/client/IconCellDecorator.html
 -
A decorator that adds an icon to another Cell


 Can somebody throw some light on this, Any help would be greatly
appreciated.

Regards
Suresh Babu G

http://www.accountingguru.in/

-- 
You received 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
mailto:google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.com
mailto: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
mailto:google-web-toolkit

Re: Problem to migrate requestfactory 2.3 to 2.4

2011-09-14 Thread Ashwin Desikan

On Wednesday 14 September 2011 01:57 PM, Geoffray wrote:

Good morning everyone,

i'm trying to figure out how to migrate requestfactory 2.3 to 2.4 but
I still have the same problem : java.lang.RuntimeException: The
RequestFactory ValidationTool must be run for the
com.airfrance.cappla.client.service.factory.AppRequestFactory
RequestFactory type

Actually, in order to solve my problem I tried to do what was
explained in this tutorial : 
http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterfaceValidation,
but it still doesn't work :(

Does anyone have the same problem ??
Does anyone have solve it ??

Thank you for your help.

Geoffray.

I had the same error as you had, but was able to fix the issue following 
the instructions provided in wiki.  I use and eclipse based 
configuration. Post recompiling my project and ensuring my project 
refers to the correct version of gwt 2.4.0, i was able to successfully 
load my app


~Ashwin

--
You received 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 center a DockLayoutPanel in the page

2011-09-14 Thread Ashwin Desikan
Add additional CSS styling to the panel 

.center {
  Margin-left : auto;
  Margin-right : auto;
}

.width {
 Width: 1000px;
}

DockLayoutPanel addStyleNames={style.center} {style.width }
/DockLayoutPanel


Thanks
Ashwin
Sent from my iPhone

On Sep 14, 2011, at 11:11 PM, Sanjay skpate...@gmail.com wrote:

 Hi All,
 
 I want to have my DockLayoutPanel of width 1000px to get centered in
 the page in stead of left aligned. Using UiBinder. Tried a lot but not
 able to know how to have this. Need some help. Thanks.
 
 - Sanjay
 
 -- 
 You received 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: format dates in specific timezone

2011-08-25 Thread Ashwin Desikan
You can use the DateTimeFormat function defined in the  
com.google.gwt.i18n.client.DateTimeFormat to specify the format.


check out the 
http://gwt.google.com/samples/Showcase/Showcase.html#!CwDateTimeFormat 
http://gwt.google.com/samples/Showcase/Showcase.html#%21CwDateTimeFormat 
example in showcase on how to set the various formats


regards
Ashwin

On Thursday 25 August 2011 06:22 PM, mariyan nenchev wrote:

Hi,

How can i format dates in gwt for specific time zone like GMT+2 for 
example.


Regards.
--
You received this message because you are subscribed to the Google 
Groups Google Web Toolkit group.

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


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



Re: Doubt about MVP multiple areas.

2011-08-20 Thread Ashwin Desikan
With regards to enabling your add button, throw a custom event on the click of 
cancel, listen for this event in the activity which manages the view containing 
the add button. 

~Ashwin
Sent from my iPhone

On Aug 21, 2011, at 8:06 AM, vehdra music veh...@gmail.com wrote:

 I need to have a layout like this.
 
 +--+
 ||
 +--+
 | Users |   Name[] |
 | Pages|Lastname [] |
 |   ||
 |   |[Save][Cancel] |
 |   ||
 |   |-|
 |   | [Add]   |
 |   |-|
 |   |  Id | Name | Lastname|
 |   ||
 |   ||
 |   ||
 +--+
 
 In the lateral panel (Users / Pages) I have my main menu. When a user 
 clicks on the Users menu item, in the gray area I have to display an Add 
 button and a table of users.
 
 When the user clicks in the Add button, I have to show a form over the 
 Users table and hide the Add button.
 
 What I did is the following:
 
 I created two ACP (Activity / View / Place):
 
 1. UsersEditPlace, UsersEditView (here I have the form), UsersEditActivity
 2. UsersListPlace, UsersListView (here I have the table, and the Add button), 
 UsersListActivity
 
 And, I also created two ActivityMappers: 
 
 1. TopActivityMapper for the green area.
 2. MainActivityMapper for the grey area.
 
 The only trouble that I have is: how can I set visible 'Add' button when the 
 user clicks in the Cancel button of the form (UserEditView) ?
 
 Because, the Cancel button is in my UsersEditView, and the Add button is 
 in my UsersListView, I don't have any reference to that button.
 
 I thought maybe, to implement PlaceHandler on my UsersListView, and if the 
 Place is instance of UsersListPlace setVisible(true) to the button, but I 
 don't like this idea so much.
 
 On the other side, where is placed the Add button, I have to put a menu for 
 almost every item in my main menu (lateral menu) should I have another 
 ActivityMapper where is my Add button, and create a View / Activity for every 
 menu that I have to create?
 -- 
 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/-/Rek2bC4ulqwJ.
 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: getting error - upgrade to gwt sdk 2.3

2011-08-11 Thread Ashwin Desikan

maybe uncheck the gae sdk 1.5.2 and only install gwt

On Thursday 11 August 2011 10:48 PM, Meena wrote:

Hi,

When I tried to upgrade to gwt sdk 2.3.0 thru eclise (helios 3.6) help-

install new software, i am getting the following error

Cannot complete the install because of a conflicting dependency.
   Software being installed: Google App Engine Java SDK 1.5.2
1.5.2.r36v201107211953
(com.google.appengine.eclipse.sdkbundle.e36.feature.feature.group
1.5.2.r36v201107211953)
   Software currently installed: Google Plugin for Eclipse 3.6
2.2.0.v201102111811
(com.google.gdt.eclipse.suite.e36.feature.feature.group
2.2.0.v201102111811)
   Only one of the following can be installed at once:
 Google Web Toolkit Plugin 2.3.3.r36v201107211953
(com.google.gwt.eclipse.core 2.3.3.r36v201107211953)
 Google Web Toolkit Plugin 2.2.0.v201102111811
(com.google.gwt.eclipse.core 2.2.0.v201102111811)
   Cannot satisfy dependency:
 From: Google App Engine Java SDK 1.5.2 1.5.2.r36v201107211953
(com.google.appengine.eclipse.sdkbundle.e36.feature.feature.group
1.5.2.r36v201107211953)
 To: com.google.gdt.eclipse.suite.e36.feature.feature.group 2.3.3
   Cannot satisfy dependency:
 From: Google Plugin for Eclipse 3.6 2.2.0.v201102111811
(com.google.gdt.eclipse.suite.e36.feature.feature.group
2.2.0.v201102111811)
 To: com.google.gwt.eclipse.core [2.2.0.v201102111811]
   Cannot satisfy dependency:
 From: Google Plugin for Eclipse 3.6 2.3.3.r36v201107211953
(com.google.gdt.eclipse.suite.e36.feature.feature.group
2.3.3.r36v201107211953)
 To: com.google.gwt.eclipse.core [2.3.3.r36v201107211953]

What is it I am missing here. I am new to gwt. Can somebody help me
with this.

Many thanks
meena



--
You received 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: Storing User-Information in client

2011-08-09 Thread Ashwin Desikan
i will probably do that. i was contemplating between that approach and 
sending the data from the client.


Thanks.

regards
Ashwin

On Tuesday 09 August 2011 04:12 PM, Mark wrote:

If you're authenticated then can't you just send your query and let
the server-side code figure out who is making the call?

On Aug 9, 1:35 am, Ashwin Desikanashwin.desi...@gmail.com  wrote:

Folks,

What is the best way to store user information ( i require only the
user-id) in the client? I have to pass user-id along with my queries to
the server to filter responses for the logged-in user. I fetch
user-information using the UserServiceLocator as part of the application
login. I am currently making a gwt-request every time to fetch the
currentUser in the following manner

requests.userServiceRequest().getCurrentUser().fire(new
ReceiverGaeUser() {

  @Override
  public void onSuccess(GaeUser user) {
  userId = user.getEmail();
  userName = user.getNickname();
  }

  });

With the above approach, I have to run my subsequent queries to fetch
user-related data onSuccess of the above operation. Is there a better
approach to store the logged-in user-id on the client, instead of making
a server call every time?

Any suggestions?

regards
Ashwin


--
You received 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.ClassNotFoundException: org.apache.http.HttpEntity

2011-08-08 Thread Ashwin Desikan
what version of gwt are you running? Also is this error in your local 
dev mode?


~Ashwin
On Monday 08 August 2011 01:58 PM, Vik wrote:

Hie

In my gwt+gae  app when running i am seeing below exception. the class 
in question is a part of gwt-dev.jar which is included in classpath 
(otherwise i think there will be many issues even before this).
Any advise why I am getting the error on runtime even when the jar is 
a part of class path?


Vik

[ERROR] javax.servlet.ServletContext log: Exception while dispatching 
incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method 
'public abstract java.lang.String 
vik.sakshum.sakshumweb.client.service.BloodDonorRegisterService.registerDonor(vik.sakshum.sakshumweb.client.bean.BloodDonorProfileBean) 
throws java.lang.Exception' threw an unexpected exception: 
java.lang.NoClassDefFoundError: org/apache/http/HttpEntity
at 
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:385)
at 
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:588)
at 
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
at 
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
at 
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
at 
com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:35)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:58)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:97)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at 
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)

at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
at 
com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
at 
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at 
com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:351)
at 
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)

at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at 
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938)

at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at 
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at 
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)

Caused by: java.lang.NoClassDefFoundError: org/apache/http/HttpEntity
at 
vik.sakshum.sakshumweb.server.BloodDonorRegisterServiceImpl.registerDonor(BloodDonorRegisterServiceImpl.java:255)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)
at 
com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:100)
at 
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569)

... 34 more
Caused by: java.lang.ClassNotFoundException: org.apache.http.HttpEntity
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at 

Re: For CellTable,is it possible to register MouseOut or MouseOver events to row?

2011-08-08 Thread Ashwin Desikan

do you want the popup to appear anywhere on the row or on specific columns?

On Monday 08 August 2011 05:23 PM, Alex Luya wrote:

At every beginning,I want to use a editor to replace a row when mouse
hover on it.It seems be impossible.Now,I want to show popup over
it.But How can I get the row on that mouse is hovering?



--
You received 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: Using widgets in CellTable

2011-08-08 Thread Ashwin Desikan

Ryan,

Check out the ImageCell and ActionCell. You can use either of those to 
implement the functionality you are looking for.


~Ashwin
On Monday 08 August 2011 09:44 PM, Ryan McFall wrote:

Thanks for the reply Jeff.  I'm just getting started using Cells and
the corresponding CellWidgets, so hopefully my questions aren't too
uninformed.

The widget in question basically wraps a panel of PushButtons that
perform an action based on which row of a table they are contained
in.

So to make my Widget into a cell, would it extend CompositeCell, and
then in its constructor pass an appropriate List of other Cells?
Right now the PushButtons have only an icon; what is the best option
to emulate this using the Cell framework?

Thanks,
Ryan

On Aug 8, 9:57 am, Jeff Larsenlarse...@gmail.com  wrote:

I'm not sure that what you're trying to do will work. I suspect it won't
with one big reason being Columns don't implemenet the same onBrowserEvent
that Widgets do.

What you probably need to do is redesign your widget as a Cell. Then when
you need to use it as a widget, push that cell into CellWidget.

I'm fully aware of how complicated this could become, but I think this will
be your best option.

For more details on what is probably your best solution, check out this:

https://groups.google.com/forum/#!topic/google-web-toolkit-contributo...


--
You received 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 CELLTABLE:How to get Updated DataProviderList after changes in any cell value ?

2011-08-07 Thread Ashwin Desikan
you have to define fieldUpdaters for each of your cell. You can do this 
as part of initializing the CellTable. So as an when you update a cell, 
it would automatically update the corresponding record in the backinglist


~Ashwin

On Monday 08 August 2011 11:18 AM, vaibhav bhalke wrote:

  Hi,

GWT CELLTABLE:How to get Updated DataProviderList after changes in any 
cell value ?



Class RecordInfo{
boolean isCellUpdated;
String oldValue;
String newValue;

// getters and setters ...

}

/**
   * The provider that holds the list of RecordInfo .
   */
  private ListDataProviderRecordInfo dataProvider = new 
ListDataProviderRecordInfo();


private void generateRecords( ) {
 ListRecordInfo recordList = dataProvider.getList();
 recordList =  XmlDemo.parseXML(originalRecordList);
 }

After generation of recordList / DataProviderList. I am putting my  
recordList in celltable.


If I changes any value in cell then How to get my updated _RecordList 
/ DataProviderList_ .
I want updated RecordList / DataProviderList  because I want to 
generate xml from updated List.


--
Best Regards,
Vaibhav Bhalke
About me : 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.


--
You received 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: DialogBox and DocLayoutPanel CENTER content not showing

2011-08-04 Thread Ashwin Desikan

Mark,

did you try to set the width and height of the dialog box? If you 
haven't I would suggest try to set the width and height. That might 
display the content area of your dock layout panel


regards
Ashwin
On Thursday 04 August 2011 11:25 PM, Mark Wengranowski wrote:

Hi Everyone,

I'm running into a weird issue with creating a Dialog box. When i add
a widget that contains a doclayoutpanel to a dialog box, the CENTER
area of the doclayoutpanel is not visible. The north and south areas
seem to show just fine. I inspected this with firebug and the content
was there, it just wasn't visible.

Anyone have an idea what might be happeniing here?

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.



Re: DialogBox and DocLayoutPanel CENTER content not showing

2011-08-04 Thread Ashwin Desikan
additionally, try using a ResizeLayoutPanel. and place your 
docklayoutpanel inside it. This would ensure the docklayout panel 
automatically re-sizes based on the toppanel's width and height


On Friday 05 August 2011 12:40 AM, Mark Wengranowski wrote:

Ha, ok, i figured it out. I had to set the size of the widget i was
passing into the dialog box. I set it on everything else but
thisDoh! widget.setSize(width, height); does the trick.



On Aug 4, 11:38 am, Mark Wengranowskim...@greatlittlebox.com  wrote:

I tried and that did not work either. I specifying sizes on everything
just eliminate that issue.

On Aug 4, 11:30 am, Ashwin Desikanashwin.desi...@gmail.com  wrote:




Mark,
did you try to set the width and height of the dialog box? If you
haven't I would suggest try to set the width and height. That might
display the content area of your dock layout panel
regards
Ashwin
On Thursday 04 August 2011 11:25 PM, Mark Wengranowski wrote:

Hi Everyone,
I'm running into a weird issue with creating a Dialog box. When i add
a widget that contains a doclayoutpanel to a dialog box, the CENTER
area of the doclayoutpanel is not visible. The north and south areas
seem to show just fine. I inspected this with firebug and the content
was there, it just wasn't visible.
Anyone have an idea what might be happeniing here?
Thanks,
-Mark- Hide quoted text -

- Show quoted text -- 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: DockPanels TabLayoutPanel and missing elements

2011-08-04 Thread Ashwin Desikan
when using layout panels its recommended to place layoutPanels inside 
other layoutPanels. This would ensure the panels automatically resize.


In your case try to set the width  height of your tabLayoutPanel and 
its contents area.


thanks
Ashwin


On Friday 05 August 2011 10:40 AM, Dave Potts wrote:

Hi
I trying to construct a dialog with a base of a dockpanel with a
tablayoutpnael in the 'south' area.  An attempt to add an element to any
off the tab panel results in a display that only shows the tab header.

Looking a html/dom tree/display with firebug does not show anything
useful, is this type off thing a known problem.

I construct my tablayout panel and add several panels constructed from
FLOWPanels, I add elements to the FLOWPanels,  I expected something to be
shown or something to hidden in the firebug window.

my code reads as follows

public final  class MkMainDisplay extends TabLayoutPanel {


public MkMainDisplay(MkLayers theLayers) {
super(1.5, Unit.EM);
this.theLayers=theLayers;
BaseTabPanel tabPan,routePan,portPan;
tabPan=new InfoPanel(Info);
 addPan(tabPan);
 BLAH BLAH

 private void addPan(BaseTabPanel pan){
add(pan,pan.getName());
BLAH BLAH

in the class InfoPanel

public class InfoPanel extends BaseTabPanel
 public InfoPanel(String name) {
super(name);
add(new HTML(Hello world I am panel));
}
  BLAH BLAH
In the class BaseTabPanel

public class BaseTabPanel extends FlowPanel {

private String name;
public BaseTabPanel(String name) {
super();
this.name=name;
}
 BLAH BLAH

Am I doing something wrong or have I forgotten to do something important?

Dave











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



Re: Battery Percentage

2011-07-25 Thread Ashwin Desikan
have two images one for battery red and battery green. you can define 
them as sprites in your CSS under different style names like batteryRed, 
BatteryGreen. Your logic can fire an event when the battery% has reached 
above or below 40% and accordingly change the image by applying the 
appropriate style (Red or green)


~Ashwin

On Sunday 24 July 2011 03:44 PM, sanjay kanwar wrote:

Hi There,

I have an battery image where i hav to show green line inside tht 
battery when the battery power is more than 40% and red if its less 
than 40%. Thx in Advance



Regards
Sam
--
You received 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: Table

2011-07-21 Thread Ashwin Desikan
you can change the color of a button using the CSS background-color 
property. If you want to change the color of all your buttons use 
.gwt-Button and overide it style. If you are using different button of 
varied color/ sizes then change the property of the individual button


.gwt-Button {

}

.button1 {

}

if you are using a custom style you need to associate the style to the 
button


button.setStyleName(button1);

Also, check out custom  buttons under widgets. This would tell you how 
to associate different images with a button especially if you want to 
show different styles/gradients on mouse over/ disabled etc.


regards
Ashwin



On Thursday 21 July 2011 01:49 AM, Robert Lockwood wrote:
I started working with GWT some months ago but stopped because of 
computer availability.  I've just installed Tomcat in an old computer 
of mine and have been able to deploy an example program on it.  I 
don't know much HTML, CSS, and am still learning Java (which I've been 
learning just for this project).


I'm attempting to change some things in the MyWebApp project that uses 
asynch.


I've been able to modify the code, html, and css to move the title, 
table, and popup box to the left side and have attempted to position 
them 10px from the left using css margin.  It doesnt' work for the 
table - how do I do that?
I thought of creating the table in the Java file but it's not clear 
how to do that.



css Margin doesn't work to position the popup from the table, just 
from the top.  I'd like to be able to position it down from the table.


And last and least: how does one change the color of a button on 
display and after some event?


TIA

--
When I was 12 I thought I would live forever.
So far, so good.

--
You received 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: tab layout suggestions needed

2011-07-12 Thread Ashwin Desikan
What do you mean dynamically? Say on click of a new tab button? Yes that can be 
done. Refer to tablayout showcase and documentation. It show how to add tabs 
using code. 

Thanks
Ashwin

Sent from my iPhone

On Jul 12, 2011, at 5:29 PM, Vik vik@gmail.com wrote:

 anyone on this please?
 
 Thankx and Regards
 
 Vik
 Founder
 http://www.sakshum.org
 http://blog.sakshum.org
 
 
 On Sat, Jul 9, 2011 at 5:57 PM, Vik vik@gmail.com wrote:
 Hie
 
 Is it possible to open tabs dynamically and close them like we do for 
 browsers using gwt ?
 
 Thankx and Regards
 
 Vik
 Founder
 http://www.sakshum.org
 http://blog.sakshum.org
 
 -- 
 You received 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 2.1+ Compiler issues

2011-07-12 Thread Ashwin Desikan
I have a quad core as well and have experienced slowness. I think it more so to 
do with validating XML files. I don't believe it has anything to do with 
requestfactory. 

Both validation and context assist are painfully slow. 

Thanks
Ashwin

Sent from my iPhone

On Jul 12, 2011, at 3:41 PM, Brian bboyl...@gmail.com wrote:

 Thats interesting. I also have a quad core AMD with 8GB of RAM. Its 64
 bit windows running on a Dell Studio XPS 7100.
 I wonder if anyone else has experienced this. It just seems really
 strange that moving from one version to another would have such an
 impact on compilation time.
 
 On Jul 11, 6:22 pm, Kevin Jordan ke...@kjordan.net wrote:
 I've noticed that with GWT 2.3 and RequestFactory stuff added it takes
 2x as long to compile now on a quad core AMD machine with 8GB of RAM.
 
 On Jul 11, 10:00 am, Brian bboyl...@gmail.com wrote:
 
 
 
 
 
 
 
 Hi
 
 I am upgrading my GWT app from 2.0 to 2.3. When I'm compiling with
 2.1, 2.2 or 2.3 I am seeing a huge increase in the memory usage. I'm
 giving it 3Gb and its maxing this out. Any less than this and I am
 getting OutOfMemoryExceptions. I'm also noticing that its writing
 massive amounts of data to disk. It is writing gwt88282368723byte-
 cache to this directory C:\Users\MyName\AppData\Local\Temp\ . I can
 see previous files like this from 2.0 builds that range from 3MB -
 10MB in size, but with GWT 2.3 the size of the byte-cache file is now
 22GB! This is making my PC really sluggish and its pretty much
 unusable while I'm compiling.
 
 I'm wondering of anyone else has come across this with GWT 2.3?
 
 Thanks
 
 Brian
 
 -- 
 You received 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: ActionCells within a CompositeCell not receiving onBrowserEvent()

2011-06-28 Thread Ashwin Desikan
Daniel,

Check your import statement for the Element class. Thus should be using the 
.dom.Element package and not .client

Most probably that would be the issue for onbrowserEvent not getting invoked

Thanks
Ashwin

Sent from my iPhone

On Jun 28, 2011, at 10:46 PM, Daniel Johnston affablebl...@gmail.com wrote:

 The ActionCell's onBrowserEvent() methods are not called.  Is there something 
 I need to override in the CompositeCell or ConsumedEvents to make this work?
 
 Below my example code, based on the Sample 
 http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTree  
 
 
 // Construct a composite cell for actions
   ListHasCellItem, ? hasCells = new ArrayListHasCellItem, 
 ?();
   hasCells.add(new HasCellItem, Item() {
 
   private ActionCellItem cell = new ActionCellItem(
   SafeHtmlUtils
   
 .fromTrustedString(Utils.makeImage(deleteIcon)),
   new ActionCell.DelegateItem() {
 
   @Override
   public void execute(Item item) {
   
 listener.onDeleteClicked(item);
 
   }
   });
 
   public CellItem getCell() {
   return cell;
   }
 
   public FieldUpdaterItem, Item getFieldUpdater() {
   return null;
   }
 
   public Item getValue(Item item) {
   return item;
   }
   });
 
   hasCells.add(new HasCellItem, Item() {
 
   private ActionCellItem cell = new ActionCellItem(
   
 SafeHtmlUtils.fromTrustedString(Utils.makeImage(editIcon)),
   new ActionCell.DelegateItem() {
 
   @Override
   public void execute(Item item) {
   
 listener.onEditClicked(item);
 
   }
   });
 
   public CellItem getCell() {
   return cell;
   }
 
   public FieldUpdaterItem, Item getFieldUpdater() {
   return null;
   }
 
   public Item getValue(Item item) {
   return item;
   }
   });
 
   CompositeCellItem actionsCell = new CompositeCellItem(
   hasCells) {
   @Override
   public void render(Context context, Item value,
   SafeHtmlBuilder sb) {
   sb.appendHtmlConstant(tabletbodytr);
   super.render(context, value, sb);
   sb.appendHtmlConstant(/tr/tbody/table);
   }
 
   @Override
   protected Element getContainerElement(Element parent) {
   // Return the first TR element in the table.
   return 
 parent.getFirstChildElement().getFirstChildElement()
   .getFirstChildElement();
   }
 
   @Override
   protected X void render(Context context, Item value,
   SafeHtmlBuilder sb, HasCellItem, X 
 hasCell) {
   CellX cell = hasCell.getCell();
   sb.appendHtmlConstant(td);
   cell.render(context, hasCell.getValue(value), 
 sb);
   sb.appendHtmlConstant(/td);
   }
   };
 
 
 Thanks in advance
 
 ---
 -Daniel Johnston
 -- 
 You received 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 

Re: DateBox and TimeZone

2011-06-28 Thread Ashwin Desikan
Eric,

I had a similar requirement for one of my projects, so i did the
following. I used the following format to part date/ time in my
DateBox

DateTimeFormat.getFormat(MMM dd  H:mm)

Now, with the above format, the local timezone is automatically picked
up by the DatePicker. But since DatePicker does not allow you to
select time, the time defaults to 00:00:00. I placed a drop list in my
view where the user could choose the time. On value change on the drop
list, update the date retunred by the datebox by replacing the time
with the one picked from list box.

Regards
Ashwin

On Jun 24, 4:44 pm, Eric edimickeast...@gmail.com wrote:
 Hello All,

 How can I force a GWT DateBox to choose dates in a particular time
 zone?  Users off this application might be in many time zones, but,
 for this purpose, any date entered should be in America/Denver.
 Since one of the people who enter this information works in eastern
 time the dates he enters appear a day before the date he enters. I've
 searched this list and googled in general, but I can't find how to
 override the default time zone for a DateBox.

 Code:

 Some constants universally available:

   public static final TimeZoneConstants timeZoneConstants =
 GWT.create(TimeZoneConstants.class);
   public static final TimeZone usMountain =
 TimeZone.createTimeZone(timeZoneConstants
       .americaDenver());
   public static final DateTimeFormat dateDtf =
 DateTimeFormat.getFormat(MM/dd/);

 Code that displays the date:
   String displayDate = Constants.dateDtf.format(d, usMountain)

 The DateBox where the date is entered:
   DateBox.DefaultFormat pickerFormat = new
 DateBox.DefaultFormat(Constants.dateDtf);
   DateBox myDb = new DateBox(new DatePicker(), null, pickerFormat);

 There are many places I could expect to be able to set the Time Zone:
 on the DateTimeFormat, on the DateBox.DefaultFormat, on the DateBox,
 in DateBox.getCalendarModel() . . .  Any I blind? I can't see the
 method anywhere.

 Thanks,
 Eric

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



Re: custom event + event bubbling

2011-06-27 Thread Ashwin Desikan
You should be able to bubble custom events using the attachHandler and 
fireEvents method on a widget. 

I am still trying to conceive an example where you would need a custom event. 
Most of the widely used events for all widgets have handlers defined. 

I have not personally tried attaching a custom handlers to a widget but have 
created custom widgets by extending existing widgets like Cell where you can 
specify the events you want to listen on. 

~ashwin  

Sent from my iPhone

On Jun 27, 2011, at 3:47 AM, isern juanis...@gmail.com wrote:

 In the @UIHandler example, you have a direct reference to the button
 and you register a handler directly on the event source.
 
 I was wondering if there's the possibility that some custom event goes
 up in the UI hierarchy.
 
 To illustrate, in this situation I could perfectly bind a handler to
 the widget that contains those buttons, and I still catch the click
 event because of the principle of event bubbling, that's the default
 behavior in JS DOM events.
 
 Now my question was if I can use event bubbling with custom events
 created by me.
 
 
 On Jun 26, 2:40 am, ashwin.desi...@gmail.com
 ashwin.desi...@gmail.com wrote:
 for listening on events on your widget you can define UiHandler or Attach /
 Add handlers
 
 for example, if you have a button defined in your UIBinder
 
 g:Button ui:field = 'button1'Hello/g:Button
 
 now if you want to listen on click event of this button, you can do either
 of these two operations
 
 @UiHandler(button1)
 public void OnButton1Click(ClickEvent event) {
  ///do what ever you want on button click
 
 }
 
 when you are not using a UiBinder you can define
 
 button1.addClickHandler(new ClickHandler() {
  @Override
 public void onClick(ClickEvent arg0) {
 //do your opertaions
 
 }
 })
 
 hope this is clear.
 
 Thanks
 Ashwin
 
 On Sun, Jun 26, 2011 at 4:40 AM, isern juanis...@gmail.com wrote:
 I come from the Flex/JS/Tapestry worlds and a technique commonly used
 is to attach listeners to certain events expecting they'll will go up
 like a bubble through the component hierarchy. Actually if I'm not
 wrong this kind of behavior also occurs with native hardware events in
 GWT.
 
 A typical example is the Accept/Cancel widget. It's a widget because
 it's repeated all over the application.
 
 To reduce coupling to a minimum, I'd like to listen to the events
 accept and cancel on the current widget (that contains accept/
 cancel directly or indirectly), being aware that if users click
 accept the event will be caught and what you do depends on that
 context (UI structure)
 
 The EventBus is okay, but it doesn't seem to take into account this
 component hierarchy, all the event handlers are notified without
 discrimination.
 
 I've managed, however, to create a BubbledEvent/BubbledEventHandler
 that only is dispatched if the current listener (a visual widget) is a
 parent of that which triggered it.
 
 I hope I was clear,
 
 Best regards, Juan
 
 On Jun 25, 3:34 am, Ashwin Desikan ashwin.desi...@gmail.com wrote:
 what sort of events are you looking to capture? You can create custom
 events
 and register those events with the eventBus. When ever that event occurs
 all
 handlers would receive a notification and you can take necessary action.
 
 Thanks
 Ashwin
 
 --
 You received 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: How to use RequestFactory .with for self referencing entities.

2011-06-27 Thread Ashwin Desikan
Try .with(parentVersion,parentVersion.parentVersion)

Thanks
Ashwin

Sent from my iPhone

On Jun 28, 2011, at 5:45 AM, Kathiravan Tamilvanan kat...@gmail.com wrote:

 All,
  I am trying to retrieve an entity graph using request factory using .with 
 and the entities are self referencing. For example, I have got Version entity 
 and each version has a parent version.  I am trying to do the following to 
 get the parentVersion .with(parentVersion). The issue i get here is if i 
 want to get the parentVersion's parent, i get a NullPointerException.
 
 Any ideas?
 -- 
 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/-/02x-Fn_alZIJ.
 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: font-size: does not work for GWT button and flextable

2011-06-25 Thread Ashwin Desikan
if you are using UI-Binder , you can either your the styleName or 
addStyleNames property. for example

UiBinder

/UiBinder


-- 
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/-/mAz1msIE_QEJ.
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: font-size: does not work for GWT button and flextable

2011-06-25 Thread Ashwin Desikan
Sorry, hit enter too fast. 

here is the example for a custom button with specific font and colors

UiBinder
style
.btn {
  color: #FF0080;
padding-left: 10px;
padding-right: 10px;
padding-top: 5px;
padding-bottom: 5px;
font-size: 12px;
font-family: Gothic,sans-serif;
font-weight: bold;
text-align: left;
text-shadow: aqua;
background: none;
border : 1px solid #dbe9fb;
cursor: pointer;
}
/style
g:Button styleName={style.btn} ui:field=testTest/g:Button
/UiBinder

one disadvantage with this approach would your button would appear the same 
when its enabled or disabled. If you have a need to display differently then 
you would have to update your CSS for those properties. Check out the GWT 
Button class and it would you the details about the CSS properties you can 
override

Thanks
Ashwin

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



Re: custom event + event bubbling

2011-06-25 Thread Ashwin Desikan
what sort of events are you looking to capture? You can create custom events 
and register those events with the eventBus. When ever that event occurs all 
handlers would receive a notification and you can take necessary action.

Thanks
Ashwin

-- 
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/-/caEzUtD8HKsJ.
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: Deploy on App Engine, too many files problem

2011-06-23 Thread Ashwin Desikan
Ale,

zip/ jar the additional files which would be used by your application at 
runtime. You can also look at zip/ jar images etc, this would considerably 
reduce the number of files.

Thanks
Ashwin

-- 
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/-/oArf2kK-NOsJ.
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.



Issues with SelectionCell - Does not fire ChangeEvent on selecting the first item in the list

2011-06-23 Thread Ashwin Desikan
I am using SelectionCell in a CellTable as part of my project.
Whenever I choose the first item in the SelectionCell, I notice during
debug that Change Event is not getting fired, because of which the
viewdata is never getting updated.

I also tried creating my own selection cell which can support dynamic
addition of data, I have the exact same problem where-in the change
event does not get fired on selection of the first item. Now if
dynamically change the data by removing one of the entries in my list,
then the change event gets fired on selection of the first item.

What could be the potential reason for this? Could this be browser
dependent. I am currently testing my app on Chrome (14.0.797.0 dev). I
have the same issue with Firefox 4.x as well.

Has anyone else noticed this behavior before.

Let me know if you need additional details.

Thanks
Ashwin

-- 
You received 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: Issues with SelectionCell - Does not fire ChangeEvent on selecting the first item in the list

2011-06-23 Thread Ashwin Desikan
BTW, I am using GWT 2.3.1r36v201105

On Jun 23, 10:19 am, Ashwin Desikan ashwin.desi...@gmail.com wrote:
 I am using SelectionCell in a CellTable as part of my project.
 Whenever I choose the first item in the SelectionCell, I notice during
 debug that Change Event is not getting fired, because of which the
 viewdata is never getting updated.

 I also tried creating my own selection cell which can support dynamic
 addition of data, I have the exact same problem where-in the change
 event does not get fired on selection of the first item. Now if
 dynamically change the data by removing one of the entries in my list,
 then the change event gets fired on selection of the first item.

 What could be the potential reason for this? Could this be browser
 dependent. I am currently testing my app on Chrome (14.0.797.0 dev). I
 have the same issue with Firefox 4.x as well.

 Has anyone else noticed this behavior before.

 Let me know if you need additional details.

 Thanks
 Ashwin

-- 
You received 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: Minimizing functionality in GWT

2011-06-23 Thread Ashwin Desikan
i don't understand why you want to minimize/ maximize a tab. But if
its something like you want to hide/ show the contents of a tab say on
click of a button, you can modify the style by using the display
property. Setting display : none would not display the contents. And
to show the controls buttons, you can add custom widgets to the TabSet
header

Thanks
Ashwin

On Jun 23, 10:03 am, Sridhar PV sridharpv@gmail.com wrote:
 Hi,

 Can any one help me to implement 'Minimizinging' and 'Maximizing'
 functionality in GWT or Smart GWT other than Window widget.

 In my case, we are adding Tabs to Tabset. But for tabs we donot have
 minimizing option. Is there any other approach to implement the above
 functionality?

 Thanks In Advance.

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