Re: KeyboardSelectionPolicy BOUND_TO_SELECTION vs ENABLED

2016-09-02 Thread mohit
I have the very same question. Can somebody please explain this please?

On Monday, November 14, 2011 at 11:40:01 PM UTC+5:30, Raziel wrote:
>
> Hi, could somebody provide a simple but complete explanation, and 
> perhaps a use case, for the usage of 
> KeyboardSelectionPolicy.BOUND_TO_SELECTION and 
> KeyboardSelectionPolicy.ENABLED? 
>
> I've looked at the code, and see a number of tickets being resolved 
> around this concept, but I'm still not clear of the intention and thus 
> usage of this concept (specially when the enumeration names seem 
> orthogonal: ENABLED/DISABLED vs BOUND_TO_SELECTION). 
>
> Thanks a lot 
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Where can I find the source for GWT-user's javax.servlet.Filter class?

2016-08-03 Thread mohit
There is also a file with same name in servlet-api-2.5-sources.jar, not 
sure if I must use it and why the source file is missing from the 
GWT-users.jar (sources).


On Thursday, August 4, 2016 at 10:07:29 AM UTC+5:30, mohit wrote:
>
> I have tried downloading the sources jar for this and find the source file 
> but it seems missing. Is there some other jar where I must be looking?
>
> So, far I've only found https://github.com/gwtproject/gwt/issues/3444 
> which suggests that the Filter class was deliberately removed from the 
> sources or something.
>
> Thanks,
> Mohit
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Where can I find the source for GWT-user's javax.servlet.Filter class?

2016-08-03 Thread mohit
I have tried downloading the sources jar for this and find the source file 
but it seems missing. Is there some other jar where I must be looking?

So, far I've only found https://github.com/gwtproject/gwt/issues/3444 which 
suggests that the Filter class was deliberately removed from the sources or 
something.

Thanks,
Mohit

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Updating CellTable row style

2016-03-19 Thread mohit
Thanks for the reply Jens!

I tried adding  

mappings.getRowElement(event.getValue().getExecutionOrder()).getStyle().
setBorderStyle(BorderStyle.SOLID);

 But it didn't work :(


mappings.getRowElement(event.getValue().getExecutionOrder() ).getStyle().
setBackgroundColor("Red");

did change the background colour of rows, though.


I don't understand why one style gets applied and other doesn't. 

On Saturday, March 19, 2016 at 6:07:10 PM UTC+5:30, Jens wrote:
>
> I guess your border-style is still set to "none" (the default value) 
> because you have not set any. You need to set it to "solid" for example.
>
> -- J.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Updating CellTable row style

2016-03-19 Thread mohit
Hi,

I am trying to update a row style for on mouse hover.

mappings.addCellPreviewHandler(new Handler() {

  @Override 
  public void onCellPreview(CellPreviewEvent event
) { 
if (BrowserEvents.MOUSEOVER.equals(event.getNativeEvent().getType
())) { 
   mappings.getRowElement(event.getValue().getExecutionOrder()).
getStyle().setBorderColor("Red"); 
  } 
});




Any idea why 
mappings.getRowElement(event.getValue().getExecutionOrder()).getStyle().
setBorderColor("Red"); 

has no effect?


Thanks

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Reading a local KML file in GWT?

2015-04-15 Thread mohit
I am trying to render KML layers on a google map in GWT. I have set up the 
geoxml.js file in my host html as : 



public final native JavaScriptObject createKmlParser(JavaScriptObject 
mapId) /*-{
var myParser = new $wnd.geoXML3.parser({
map : mapId
});
return myParser;
}-*/;

public final native void showKml(JavaScriptObject parser, String kml) /*-{
parser.parseKmlString(kml);
}-*/;

public final native void hideKml(JavaScriptObject parser) /*-{
parser.hideDocument();
}-*/;

public void setupKmlLayer(final MapWidget mapWidget) {
final JavaScriptObject jsoParser = createKmlParser(mapWidget.getJso());
try {
showKml(jsoParser, "cta.kml");
} catch (final JavaScriptException jse) {
Window.alert("javascript exception");
}
 }

But I am always getting : javascript exception, the last line above.

Where should I put this cta.kml so that it gets picked up correctly??

Is there a better way to apply layers using local KML files.

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.
For more options, visit https://groups.google.com/d/optout.


Adding a local javascript to GWT

2015-04-13 Thread mohit
Hi I am trying to add a .js file 
https://code.google.com/p/geoxml3/#Basic_Usage to my GWT project.

I have made the entry in my host HTML:



I pasted the .js file in /src/main/resources/ and added it to my build path.

I am getting Error:
Failed to load resource: the server responded with a status of 404 (Not 
Found)  * http://localhost:8080/src/main/resources/geoxml3.js*

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Custom coloring of countries in Google Maps using Fusion Table

2015-04-11 Thread mohit

http://stackoverflow.com/questions/29577659/custom-coloring-of-countries-in-google-maps-gwt

-- 
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.
For more options, visit https://groups.google.com/d/optout.


How to remove markers from google maps v3 MapWidget in GWT?

2015-04-08 Thread mohit


I am adding markers to my MapWidget using following code snippet:

private void updateCenter(LatLng center) {
MarkerOptions options = MarkerOptions.newInstance();
options.setPosition(center);
Marker markerBasic = Marker.newInstance(options);
markerBasic.setMap(mapWidget);
}

But I am not sure how to remove a marker without redrawing/re-instantiating 
the Map.

Please provide GWT specific answers only.

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.
For more options, visit https://groups.google.com/d/optout.


World map implementation in GWT

2015-04-02 Thread mohit
Hi All,

I am trying to implement a world map in GWT using Maps API  ver. 3 where I 
can do:

1) Click a country/region and related info. be popped up.
2) Color a country/region based on let's say, population density.
3) Zoom in/out.


So, far I have managed to implement the world map with zoom functionality 
but I am not sure how to achieve the first two features listed above.

Currently I am also looking into Google's GeoChart API to achieve this and 
I just wanted to know if I am on right track or
there are some better options available that I should look into.

I'd highly appreciate if anyone of you guys share the code.

Best Regards,
Mohit 

-- 
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.
For more options, visit https://groups.google.com/d/optout.


World map in Google Maps API V3 in GWT

2015-04-02 Thread mohit
Hi All,

I am trying to implement a world map in GWT using Maps API where I can do:

1) Click a country/region and related info. be popped up.
2) Color a country/region based on let's say, population density.


So, far I have managed to implement the world map but I am not sure how to 
achieve the two features listed above.

Currently I am looking into Google's GeoChart API to achieve this and I 
just wanted to know if I am on right track or
there are some better options available that I should look into.

I'd highly appreciate if anyone of you guys share the code.

Best Regards,
Mohit 

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: JS Error after compiling, runs great in dev mode

2014-04-17 Thread Mohit Garg
Thanks Thomas. That worked as you suggested!  I was almost sure it was a 
compiler / dev library issue since it worked in dev mode.

Just curious, what could be the reason that GWT would ignore serialization 
of the runtimeexception type from the source folders?

Now, the custom AccessDeniedException is purely cosmetic on the service 
interface as it is always thrown outside the method by Spring Security.

Thanks again for your help!

On Thursday, 17 April 2014 17:27:44 UTC+5:30, Thomas Broyer wrote:
>
> Is the AccessDeniedException declared in a throws clause in any 
> RemoteService interface?
> IIRC you have to declare exceptions explicitly for them to be included in 
> the serialization policies. I can't tell why it works in DevMode but not in 
> prod mode though.
>
> On Thursday, April 17, 2014 1:32:47 PM UTC+2, Mohit Garg wrote:
>>
>> Hi, I have spent almost a couple of days trying to resolve this issue to 
>> no avail, so any help would be much appreciated. 
>>
>> I am intercepting GWT calls using Spring MVC through a custom 
>> GwtRpcController class. The method of interest is as follows:
>>
>>  @Override
>> public String processCall(String payload) throws 
>> SerializationException {
>> try {
>> RPCRequest rpcRequest = RPC.decodeRequest(payload, 
>> this.remoteServiceClass);
>> // delegate work to the spring injected service
>> return RPC.invokeAndEncodeResponse(this.remoteService, 
>> rpcRequest.getMethod(), rpcRequest.getParameters() );
>> } catch (IncompatibleRemoteServiceException ex) {
>> getServletContext().log("An 
>> IncompatibleRemoteServiceException was thrown while processing this call.", 
>> ex);
>> return RPC.encodeResponseForFailure(null, ex);
>> } catch (UnexpectedException ex) {
>> if (ex.getCause() instanceof 
>> org.springframework.security.access.AccessDeniedException) {
>> AccessDeniedException clientEx = new 
>> AccessDeniedException();
>> getServletContext().log("A Spring AccessDeniedException 
>> was thrown while processing this call.", clientEx);
>> return RPC.encodeResponseForFailure(null, clientEx);
>> } else {
>> throw ex;
>> }
>> } 
>> }
>>
>> As you can see, I am catching the Spring Access Denied Exception which 
>> comes from the @PreAuthorize annotation in my methods, and using 
>> RPC.encodeResponseForFailure to pass my custom Exception (extends 
>> RuntimeException(as does GWT's own InvocationException), implements 
>> IsSerializable, and has a zero argument constructor). Here's the code if 
>> you want to refer:
>>
>> package com.fundwave.fundadmin.shared;
>>
>> import com.google.gwt.user.client.rpc.IsSerializable;
>>
>> public class AccessDeniedException extends java.lang.RuntimeException 
>> implements IsSerializable {
>>
>> private static String AUTHORIZATION_ERROR = "Authorization Error: ";
>> 
>> private String message;
>> 
>> public AccessDeniedException() {
>> super(AUTHORIZATION_ERROR+"Your account does not have the rights 
>> to perform this action.");
>> this.message = AUTHORIZATION_ERROR+"Your account does not have 
>> the rights to perform this action.";
>> }
>> 
>> public AccessDeniedException(String msg) {
>> super(AUTHORIZATION_ERROR+msg);
>> this.message = AUTHORIZATION_ERROR+msg;
>> }
>> 
>> public AccessDeniedException(Throwable t) {
>> super(t);
>> }
>>
>> public AccessDeniedException(String msg, Throwable t) {
>> super(AUTHORIZATION_ERROR+msg, t);
>> this.message = AUTHORIZATION_ERROR+msg;
>> }
>> 
>> public String getMessage() {
>> return message;
>> }
>> 
>> public void setMessage(String message) {
>> this.message = message;
>> }
>>
>> }
>>
>>
>> On the client side, my code painlessly catches my custom exception in the 
>> development mode:
>>
>> caught.printStackTrace();
>> if (caught instanceof AccessDeniedException) {
>> serverResponseLabel.setText("Error: " + caught.getMessage());
>> }
>>
>> Surprisingly, after compiling, I get the foll

JS Error after compiling, runs great in dev mode

2014-04-17 Thread Mohit Garg
Hi, I have spent almost a couple of days trying to resolve this issue to no 
avail, so any help would be much appreciated. 

I am intercepting GWT calls using Spring MVC through a custom 
GwtRpcController class. The method of interest is as follows:

 @Override
public String processCall(String payload) throws SerializationException 
{
try {
RPCRequest rpcRequest = RPC.decodeRequest(payload, 
this.remoteServiceClass);
// delegate work to the spring injected service
return RPC.invokeAndEncodeResponse(this.remoteService, 
rpcRequest.getMethod(), rpcRequest.getParameters() );
} catch (IncompatibleRemoteServiceException ex) {
getServletContext().log("An IncompatibleRemoteServiceException 
was thrown while processing this call.", ex);
return RPC.encodeResponseForFailure(null, ex);
} catch (UnexpectedException ex) {
if (ex.getCause() instanceof 
org.springframework.security.access.AccessDeniedException) {
AccessDeniedException clientEx = new 
AccessDeniedException();
getServletContext().log("A Spring AccessDeniedException was 
thrown while processing this call.", clientEx);
return RPC.encodeResponseForFailure(null, clientEx);
} else {
throw ex;
}
} 
}

As you can see, I am catching the Spring Access Denied Exception which 
comes from the @PreAuthorize annotation in my methods, and using 
RPC.encodeResponseForFailure to pass my custom Exception (extends 
RuntimeException(as does GWT's own InvocationException), implements 
IsSerializable, and has a zero argument constructor). Here's the code if 
you want to refer:

package com.fundwave.fundadmin.shared;

import com.google.gwt.user.client.rpc.IsSerializable;

public class AccessDeniedException extends java.lang.RuntimeException 
implements IsSerializable {

private static String AUTHORIZATION_ERROR = "Authorization Error: ";

private String message;

public AccessDeniedException() {
super(AUTHORIZATION_ERROR+"Your account does not have the rights to 
perform this action.");
this.message = AUTHORIZATION_ERROR+"Your account does not have the 
rights to perform this action.";
}

public AccessDeniedException(String msg) {
super(AUTHORIZATION_ERROR+msg);
this.message = AUTHORIZATION_ERROR+msg;
}

public AccessDeniedException(Throwable t) {
super(t);
}

public AccessDeniedException(String msg, Throwable t) {
super(AUTHORIZATION_ERROR+msg, t);
this.message = AUTHORIZATION_ERROR+msg;
}

public String getMessage() {
return message;
}

public void setMessage(String message) {
this.message = message;
}

}


On the client side, my code painlessly catches my custom exception in the 
development mode:

caught.printStackTrace();
if (caught instanceof AccessDeniedException) {
serverResponseLabel.setText("Error: " + caught.getMessage());
}

Surprisingly, after compiling, I get the following error:

Error: (TypeError) stack: 
com_google_gwt_user_client_rpc_impl_SerializerBase$MethodMap_$instantiate__Lcom_google_gwt_user_client_rpc_impl_SerializerBase$MethodMap_2Lcom_google_gwt_user_client_rpc_SerializationStreamReader_2Ljava_lang_String_2Ljava_lang_Object_2@http://127.0.0.1:/fundwave/3214F6C013E9480AD0BA8FA2C08F3CF9.cache.html:36006
 
com_google_gwt_user_client_rpc_impl_SerializerBase_$instantiate__Lcom_google_gwt_user_client_rpc_impl_SerializerBase_2Lcom_google_gwt_user_client_rpc_SerializationStreamReader_2Ljava_lang_String_2Ljava_lang_Object_2@http://127.0.0.1:/fundwave/3214F6C013E9480AD0BA8FA2C08F3CF9.cache.html:14354
 
com_google_gwt_user_client_rpc_impl_AbstractSerializationStreamReader_$readObject__Lcom_google_gwt_user_client_rpc_impl_AbstractSerializationStreamReader_2Ljava_lang_Object_2@http://127.0.0.1:/fundwave/3214F6C013E9480AD0BA8FA2C08F3CF9.cache.html:35554
 
com_google_gwt_user_client_rpc_impl_RequestCallbackAdapter_onResponseReceived__Lcom_google_gwt_http_client_Request_2Lcom_google_gwt_http_client_Response_2V@http://127.0.0.1:/fundwave/3214F6C013E9480AD0BA8FA2C08F3CF9.cache.html:35810
 
com_google_gwt_http_client_Request_$fireOnResponseReceived__Lcom_google_gwt_http_client_Request_2Lcom_google_gwt_http_client_RequestCallback_2V@http://127.0.0.1:/fundwave/3214F6C013E9480AD0BA8FA2C08F3CF9.cache.html:27307
 
com_google_gwt_http_client_RequestBuilder$1_onReadyStateChange__Lcom_google_gwt_xhr_client_XMLHttpRequest_2V@http://127.0.0.1:/fundwave/3214F6C013E9480AD0BA8FA2C08F3CF9.cache.html:27464
 
com_google_gwt_xhr_client_XMLHttpRequest_$setOnReadyStateChange__Lcom_google_gwt_xhr_client_XMLHttpRequest_2Lcom_google_gwt_xhr_client_ReadyStateChangeHandler_2V/this$static.onreadystatechange<@http://127.0.0.1:/fundwave/3214F6C013E9480AD0BA8FA2C08F3CF9.cache.html:41345
 
c

Re: widget celltable how clear before re-populate

2012-11-02 Thread Mohit Chilkoti
Hi John,
Is this applicable for DataGrid too?

Please see here 
<http://stackoverflow.com/questions/13151108/datagrid-in-gwt-cant-clear-it#comment17894401_13151108>for
 
details.

Thanks,
Mohit

On Tuesday, 9 November 2010 01:11:35 UTC+5:30, Jeff Schwartz wrote:
>
> Using one of the concrete classes AsyncDataProvider or ListDataProvider 
> whose base class is AbstractDataProvider provides a very efficient 
> mechanism for accessing your widget's underlying data source as well as for 
> manipulating the display of the data itself.
>
> Once a ListDataProvider is setup you can do similar to below:
>
> dataProvider.getList().add(someObjectsList); // add a new SomeObject to 
> the list
> sortSomeObjectsList(dataProvider.getList()); // call a method to sort the 
> list
> dataProvider.refresh(); // tell all widgets using the data provider to 
> refresh themselves because the data has changed
>
> You can also add & replace lists in a ListDataProvider with:
>
> dataProvider.setList(someObjectsList);
>
> To set up a ListDataProvider:
>
> ListDataProvider dataProvider = new 
> ListDataProvider(); // strongly typed declaration - notice the 
> use of type T in the declaration which is the type specifier for the type 
> of objects in the list
> dataProvider.setList(someObjectsList); // the list of objects to be 
> provided by the ListDataProvider
> dataProvider.addDataDisplay(myCellWidget); // the widget the 
> ListDataProvider is providing the data to
>
> Jeff
>
> On Mon, Nov 8, 2010 at 1:22 PM, John LaBanca 
> > wrote:
>
>> You can push new data into the widget using CellTable#setRowData() in 
>> conjunction with CellTable#setRowCount().  If you want to clear the data 
>> first, do the following:
>> myCellTable.setRowCount(0); // Clears all data
>> myCellTable.setRowCount(20, true); // Set the size of the new data
>> myCellTable.setRowData(0, myData); // Set the new data
>>
>> In GWT 2.1.1, there is a new method CellTable#setRowData(List) that 
>> clears all existing data and replaces it with the specified list.
>>
>> Thanks,
>> John LaBanca
>> jlab...@google.com 
>>
>>
>>
>> On Mon, Nov 8, 2010 at 5:13 AM, alf >wrote:
>>
>>> we are render a celltable widget nice when i push a boton. the
>>> problems is when i will push the botton again i create other widget
>>> and adding. How can clear all item adn populate the sam widget with
>>> new datas.
>>>
>>> thanks and excuse for by bad english ans newbie question i have spent
>>> hours fiding examples in doc
>>>
>>> al
>>>
>>> --
>>> You received this message because you are subscribed to the Google 
>>> Groups "Google Web Toolkit" group.
>>> To post to this group, send email to 
>>> google-we...@googlegroups.com
>>> .
>>> To unsubscribe from this group, send email 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-we...@googlegroups.com
>> .
>> To unsubscribe from this group, send email to 
>> google-web-toolkit+unsubscr...@googlegroups.com .
>> For more options, visit this group at 
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>
>
>
> -- 
> Jeff
>

-- 
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/-/sTCRIE4aJz4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: querySelectorAll IE8

2012-07-31 Thread Mohit


> There is a typo in GWT native code in my earlier post. Please refer the 
> method below:


*GWT Native Code:
*private static native NodeList nativeQuery(Element root, String 
query)/*-{
   return root.querySelectorAll(query);
}-*/ 

I am using GWT 2.3

Thanks,
Mohit

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



querySelectorAll IE8

2012-07-31 Thread Mohit
Hey guys,

I am facing a strange problem related to CSS query selector in IE8. I am 
using standard HTML Doctype.

*Sample HTML:*



The container div is a HTMLPanel.

*GWT Native Code:
*private static native NodeList nativeQuery(Element root, String 
query)/*-{
var root = obj || $doc;
return root.querySelectorAll(query);
}-*/

If I use this code like nativeQuery(getElement(), "#field") where 
getElement() is the root element of HTMLPanel, it complains in IE8 saying 
object doesn't support this property.

*Plain Javascript Code:
*var list = document.getElementById('container').querySelectorAll('#field');
alert(list);

This code runs fine in IE8 and returns me a nodelist containing 1 element.

Can anybody suggest what is the problem with my GWT native method?

Thanks,
Mohit



-- 
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/-/GhY-a_P2pnAJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: HandlerManager for Cells

2012-06-29 Thread Mohit
Thanks guys. The fix worked for me.

Cheers,
Mohit

-- 
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/-/VWvM4vMkTPkJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: HandlerManager for Cells

2012-06-28 Thread Mohit
What I want to do is fire an event from a cell so that some other widget 
can listen to it? For example, I have a text input cell in a table to which 
I want to attach a focus handler. 

Like:

column.getCell().addFocusHandler(new SomeFocusHandler(){
  public void onFocus(SomeFocusEvent sfe){
Window.alert(sfe.getValue()); //Alert the cell value
  }
});


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



HandlerManager for Cells

2012-06-27 Thread Mohit
Hello everybody,

I have a requirement in my project to have event handlers to cells. For 
example, there is a TextInputCell to which I want to attach a handler to 
focus event. But AbstractCell doesn't provide any HandlerManager 
functionality to which I can add a handler.

Does anybody has suggestions on how to implement this? Shall I extend 
TextInputCell and add HandlerManager to it?

Thanks
Mohit

-- 
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/-/qS4n1cyZBJYJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: Fwd: help me please

2012-03-30 Thread mohit
the best way to start is 
https://developers.google.com/web-toolkit/doc/latest/tutorial/

Thanks

On Mar 28, 12:00 am, Vaibhav Kale  wrote:
> i am student of m tech. i want do my project in gwt, GWT is new for me. so
> i want your valuable guidance.
> i am not understanding how can i start, i don't know anything about that, i
> am beginner in GWT,
> please suggest me some books or pdf to read, by reading these material i
> can start development on my project.
> my mobile no-  +91-8087712078
>
> thank you 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.



Re: GWT Plugin does not work in Chrome 16.0.912.63 m on Windows 2008 64bit

2011-12-26 Thread Mohit
Hi,

I faced a similar problem. But when I started the app next time, the
browser start complaining that plugin is missing. I then install the
missing plugin. After that, its working fine.
May be try removing the plugin (if already installed) and install it
again.

Cheers,
Mohit

On Dec 26, 5:23 pm, mkn  wrote:
> Hi all
>
> When I run the GWT application in Eclipse and I open the link in
> Chrome it says I have to install the GWT plugin. So I did it and after
> the installation when I start the application again, the same message
> appears again even with the installed plugin. The plugin is listed in
> the Extensions list of chrome and the box for activated is also
> checked.
>
> Does anyone know how to solve this problem?
>
> Cheers, Khoa

-- 
You received 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: When will you launch the GWT plugin for Firefox 8?

2011-11-25 Thread Mohit
It doesn't seems to work on Windows 64 bit.

Mohit

On Nov 25, 12:18 pm, Ahmet Dakoglu  wrote:
> http://www.sendspace.com/file/h8wgmn
>
> On Thu, Nov 24, 2011 at 7:15 PM, jabal  wrote:
> > hi, we are starting a new project and are very excited about the
> > release of the gwt plugin for firefox 8. are there any plan dates
> > around? i haven't found anything about this on the gwt site.
>
> > --
> > You received 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.
>
> --
> *Ahmet DAKOĞLU*

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



XPath based Document search

2011-09-28 Thread Mohit
Hey all,

Does GWT provide XPath notation based searches in DOM like GXT does?
My requirement actually is to look out for a node under a given parent
node with a given css class name.

In GXT, there is a API like DomQuery.selectNode(String selector,
Element root). I can provide selector like "div.error" and it will
search all the  elements under the root element which has css
class 'error'.

Thanks in advance.

Mohit

-- 
You received 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: Tracking multiple steps in a RPC request on the client

2011-09-06 Thread mohit ranjan
Make an async RPC call and update UI on OnSuccess/OnFailure()

Mohit


On Wed, Sep 7, 2011 at 1:13 AM, Nestor  wrote:

> I'm trying to find out how to implement the following functionality.
> Any help would be appreciated.
>
> The client sends a RPC request to the server for a set of data. The
> server has to query the data, then perform some additional processinf
> (e.g., filter, sort) before sending it back to the client. While this
> processing is going on, a progess bar is displayed to the user,
> indicating what step is being performed ("Retrieving", "Filtering",
> etc.)
>
> I've been looking at Server Push as a potential solution, but I'm not
> sure how to implement it for this situation. I suppose the server
> could send status messages indicating completion of each step in the
> process before sending the final result set. Am I on the right track?
>
> Thank you.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received 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: Setting default value for DateItem()

2011-08-29 Thread mohit ranjan
Thanks Tom.
It's working.

Mohit


On Mon, Aug 29, 2011 at 9:10 PM, Tom Carchrae  wrote:

>
> dateItem.setDefaultValue(new Date(System.currentTimeMillis() + (24L * 60L *
> 60L * 1000L)));
>
>
> On Mon, Aug 29, 2011 at 8:26 AM, mohit ranjan wrote:
>
>> Using Smart GWT
>>
>> I am having a DynamicForm with
>>  Code:
>>
>> final DateItem dateFromFormItem = new DateItem();
>> {
>> dateFromFormItem.setTitle("Date from");
>> dateFromFormItem.setName("dateFrom");
>> }
>>
>> final DateItem dateToFormItem = new DateItem();
>> {
>> dateToFormItem.setTitle("Date to");
>> dateToFormItem.setName("dateTo");
>> }
>>
>>
>> I want default value of dateToFormItem to be 24 hr from now (next day),
>> but could not find any related method.
>> dateToFormItem default value is current time only as required.
>>
>> Any hint/help for this will be highly appreciated.
>>
>> Mohit Ranjan
>> http://www.flipkart.com
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>
>  --
> You received 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.



Setting default value for DateItem()

2011-08-29 Thread mohit ranjan
Using Smart GWT

I am having a DynamicForm with
 Code:

final DateItem dateFromFormItem = new DateItem();
{
dateFromFormItem.setTitle("Date from");
dateFromFormItem.setName("dateFrom");
}

final DateItem dateToFormItem = new DateItem();
{
dateToFormItem.setTitle("Date to");
dateToFormItem.setName("dateTo");
}


I want default value of dateToFormItem to be 24 hr from now (next day), but
could not find any related method.
dateToFormItem default value is current time only as required.

Any hint/help for this will be highly appreciated.

Mohit Ranjan
http://www.flipkart.com

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



Re: Firefox 6 breaks GWT ?

2011-08-23 Thread mohit ranjan
Also, any idea about dev mode @ FF 6 ?
Last I tried, it was not done


Mohit

On Wed, Aug 24, 2011 at 1:12 AM, Roustalski  wrote:

> Has anyone else noticed that text boxes do not show the focus ring
> when the element has focus, and that a KeyPressEvent looking for the
> charCode KeyCodes.KEY_ENTER doesn't actually work?
>
> Why would upgrading Firefox break this functionality?
>
> My app works on all other browsers and platforms, but upgrading FF to
> version 6 breaks things? I don't understand.
>
> --
> You received 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 : Best practice to send huge amount of data from server to client

2011-08-09 Thread mohit ranjan
Somewhere I read this

binary serialization + compression -> send it to client
Mohit

On Tue, Aug 9, 2011 at 5:03 PM, vaibhav bhalke wrote:

> Hi folks,
>
> Which are the Best practices to send huge amount of data from  server to
> client in GWT?
>
> Right now we are facing performance issue in GWT code.
>
> Our server side is sending huge xml (Size in MB/GB) to client side, our
> client side parses that xml and using parsed data, beans are formed for
> populating data in Celltable grid.
> We are filling 1k + / 10k+ records in CellTable grid.
>
> Is there any effective way/ Best practices followed while dealing with such
> a huge data?
> If we parse the data at server side and formed the beans at server side, Is
> this good? or any alternative way..
>
> Any help or guidance in this matter would be appreciated.
>
>
> --
> Best Regards,
> Vaibhav Bhalke
>
>
> <http://about.me/vaibhavbhalke>
>
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

-- 
You received 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: List> support by RequestFactorty.

2011-08-08 Thread mohit ranjan
Out of this topic

Curious to know, what's advantage of using List> over List when
doing any client/server interaction ?


- Mohit

On Mon, Aug 8, 2011 at 6:33 PM, br22  wrote:

> Is it supported? If not, are there planes to support in in the future?
> Thank you for your help.
>
> On Aug 6, 6:08 pm, br22  wrote:
> > It is documented that  List or Set are supported, is
> > List> supported as well?
> > Thank You.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received 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: Contents of *gwt.rpc flie

2011-07-28 Thread mohit ranjan
No response :(

-Shoonya

On Thu, Jul 28, 2011 at 1:19 AM, Shoonya  wrote:

> Hi,
>
> Can anybody  explain me what's the exact format of *.gwt.rpc file? I
> know that this contains all the whitelisted classes.
>
> In my project *gwt.rpc file, there are 2 lines for each class like
> this
>
> com.xxx.yyy.FooData, true, true, true, true, com.xxx.yyy.FooData/
> 856412979, 856412979
> [Lcom.xxx.yyy.FooData;, true, true, false, false,
> [Lcom.xxx.yyy.FooData;/1961829462, 1961829462
>
> 1. What does true/false means ?
> 2. What are the numbers in the last ?
> 3. What does "L" stand for in 2nd line ?
>
> -Shoonya

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



GWT 2.2.0 required

2011-06-22 Thread mohit
Hi,

Can anybody please tell me where to find GWT 2.2.0 plugins for
eclipse.
I am using :

Eclipse Java EE IDE for Web Developers.
Version: Helios Service Release 2
Build id: 20110218-0911

Thanks

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



Post upgrade problems with GWT 2.3.0

2011-06-21 Thread mohit
Hi all,

I have just update my GWT 2.1.1 to GWT 2.3.0
Initially I was having problems with smartGWT which I resolved by
replacing old SmartGWT
jar with the latest nightly build of SmartGwt.
I had to add two more jars namely,

validation-api-1.0.0.GA.jar
&
validation-api-1.0.0.GA-sources.jar

Now my application compiles perfectly, at least I am not getting any
compilation errors.

My Application displays a Table similar to JTable.

But the problem is that it is not displaying any data.

When I ran the exact same application using GWT 2.1.1 it worked just
fine as always.

I am using ANT 1.7, GWT 2.3.0, JBoss 4.0.5.GA & Eclipse Java EE IDE
for Web Developers.

Version: Helios Service Release 2
Build id: 20110218-0911

Guys please help,

Thanks a lot,
Mohit

-- 
You received 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: Fail upgrade to GWT 2.3

2011-06-19 Thread mohit
Hi,
just did exactly the same and all my errors are gone.
But my application is not working properly.
By properly I mean, my data table is being displayed but the data is
missing.
When I compile and run the same application using SmartGwt 2.1 and GWT
2.1.1 it runs
just fine.
It is not showing any errors.

Please Help.

On May 18, 7:36 pm, Sanjiv Jivan  wrote:
> Hi,
> You can work around this by placing the GWT 2.3 jars before the Smart GWT
> jars in your classpath. This has been resolved in SVN and will be reflected
> in the next nightly build and the upcoming Smart GWT 2.5 release.
>
> Let me know if you still have any problems.
>
> Thanks,
> Sanjiv
>
>
>
>
>
>
>
> On Mon, May 9, 2011 at 8:30 AM, Ron  wrote:
> > Just add  to your main
> > .gwt.xml - but you will still get Cannot cast from GwtEvent.Type
> > to Event.Type from SmartGWT. Seems like its not compatible with GWT 2.3
> > yet - I also tested SmartGWT 2.5 latest nightly - still get the cast error.
>
> > --
> > You received 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: Is it required to update Eclipse to update GWT ??

2011-06-12 Thread mohit
Well I think it is.

http://code.google.com/webtoolkit/usingeclipse.html

"If you are using an earlier version of Eclipse, replace the 3.6
version number with your version (3.3, 3.4 or 3.5)."

On Jun 13, 9:15 am, mohit  wrote:
> Hi all,
>
> I need to upgate GWT.
> Currently I am using GWT 2.1.1 and I want to go for GWT 2.3.0.
>
> I am using Eclipse 3.3.2.
>
> Every time I try to update GWT plugins from Eclipse-->Help-->Find and
> Install
> It fails saying :
>                        No features found on selected site(s).Choose a
> different site or site category.
>
> I have set the following link as my remote site :
>                      http://dl.google.com/eclipse/plugin/3.3
>
> Do I need to use higher version of eclipse like Eclipse 3.6
> (Helios) ???
>
> Thanks

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



Is it required to update Eclipse to update GWT ??

2011-06-12 Thread mohit
Hi all,

I need to upgate GWT.
Currently I am using GWT 2.1.1 and I want to go for GWT 2.3.0.

I am using Eclipse 3.3.2.

Every time I try to update GWT plugins from Eclipse-->Help-->Find and
Install
It fails saying :
   No features found on selected site(s).Choose a
different site or site category.

I have set the following link as my remote site :
  http://dl.google.com/eclipse/plugin/3.3

Do I need to use higher version of eclipse like Eclipse 3.6
(Helios) ???

Thanks

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



onHover text on Tab

2011-01-10 Thread mohit
How can we show Help Text on hover of Tab element of GWT ?

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