Re: Cannot display Facebook Like or Send button in GWT

2011-08-09 Thread dreamer
Integrating GWT and Closure makes lot of sense.
GWT is lacking on the server side template-ing.
Closure needs cross compiler like GWT.

On Aug 8, 11:27 am, simplyi  wrote:
> Hello!
>
> I am having hard time getting Facebook Like or Send button to display
> on GWT popup panel. Both buttons display and work well outside of GWT.
> But do not get displayed on GWT panels.
>
> To display Facebook button I use HTML panel:
>
>  HTML sendButton = new HTML();
>            sendButton.setHTML(" \""+linkToPhoto+"\" font=\"arial\">");
>            right_side_flowPanel.add(sendButton);
>
> Facebook JavaScript and Meta tags are included above on page withing
>  tag.
>
> Please advise me how to get it fixed.
>
> Thank you very much.

-- 
You received 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: JDO, RequestFactory, String and PrimaryKey

2011-08-09 Thread Micah Caldwell
I guess the question I have is really more a JDO/GAE question than a GWT 
question as I need to know how to convert the StreamingQueryResult into a 
regular collection.  However, if there is a way to work around marshaling 
the StringIdentity to the client that would work too.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/wyT11sMQBugJ.
To post to this group, send email to google-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.



JDO, RequestFactory, String and PrimaryKey

2011-08-09 Thread Micah Caldwell
@PersistenceCapable
public class MyEntity extends EntityBase
{
@PrimaryKey
@Persistent
private String mPrimaryKey;
}

com.google.web.bindery.requestfactory.server.UnexpectedException: The domain 
type javax.jdo.identity.StringIdentity cannot be sent to the client

Is there a known workaround for this?

The problem is that JDO stores the identifier as a StringIdentity rather 
than a String and when it comes time to transmit the object to the client 
via GWT RequestFactory it's the JDO version of the object that is being 
transmitted (so it appears) rather than the MyEntity that I defined.

This only occurs when I fetch the object from the datastore.  If I 
instantiate it on the server (new MyEntity() ...) it can be sent to the 
client and if I instantiate it on the client it can be sent to the server.

When I look at the results in a debugger immediately after:
List lMyEntities = (List) lQuery.execute();

I get the following for: 
StreamingQueryResult.lazyResult.entityTransformer.val$acmd.managedMembers
[
  
]

Which is all fine but when I look at: 
StreamingQueryResult.lazyResult.entityTransformer.val$acmd.objectidClass
javax.jdo.identity.StringIdentity

Apparently when I return from the the server request and the collection of 
objects is marshaled back to the client, that objectidClass gets marshaled 
along with it and the exception is thrown.

-- 
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/-/tAPRxDMx-1kJ.
To post to this group, send email to google-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.



Programmatic SelectionModel.setSelected() doesn't update keyboard selection when KeyboardSelectionPolicy is BOUND_TO_SELECTION

2011-08-09 Thread Jim Douglas
Has anyone found a workaround for this bug?

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

The bug report was entered against the CellTable; I'm tripping over
the same issue with a CellList.

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



redraw() seems not to work as it used to

2011-08-09 Thread Steve Fisher
Hi,

Redraw seems not to work correctly with the current GWT. I have
noticed that in the demo page:

http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellSampler

the "Redraw Table" button has no effect - which is what I see in my
own code when I want to discard changes made to a CellTable.

Steve

-- 
You received 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: Can't refresh CellTable

2011-08-09 Thread jchimene
I found this post today. After implementing the suggestion, I found that 
just delaying the rest of the update works as expected, viz:

selectionModel.addSelectionChangeHandler(new 
SelectionChangeEvent.Handler() {
@Override
public void onSelectionChange(SelectionChangeEvent event) {
com.google.gwt.core.client.Scheduler.get().scheduleDeferred(new 
ScheduledCommand() {
@Override
public void execute() {

getUiHandlers().onActivityDelete(selectionModel.getSelectedObject());
}
});
}
});
given
final SingleSelectionModel selectionModel
and
uiHandlers
is from gwt-presenter framework.

-- 
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/-/5hRxjxzr1a8J.
To post to this group, send email to google-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.



UniversalBrowserRead privilege doesn`t work in hosted mode

2011-08-09 Thread Дмитрий
I try to enable UniversalBrowserRead privilege for crossdomain iframe
content access in Firefox.

This method works successfully:

public native void enablePrivilege() /*-{
 
$wnd.netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
 
$wnd.document.getElementById('iframe').contentDocument.getElementsByTagName("DIV").length
}-*/;

But this one doesn`t work:

public native void enablePrivilege() /*-{
 
$wnd.netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
}-*/;

IFrameElement iframe = ...;
iframe.getContentDocument().getElementsByTagName("DIV").getLength()


ERROR: Uncaught exception escaped.
com.google.gwt.core.client.JavaScriptException: (Error): Permission
denied for  to get property Window.document
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
237)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
132)
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:214)
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:
167)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
281)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
531)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)
at java.lang.Thread.run(Thread.java:662)

-- 
You received 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: why does DockLayoutPanel care about the order of its elements?

2011-08-09 Thread Michael Allan
Ivan Pulleyn wrote:
> DockLayoutPanel assumes that "center" is all the space that wasn't taken up
> by a component that was added to the north, east, etc. There's a built in
> assumption that when you call add() you have finished adding any components
> that will be docked to an edge.

The "add" methods for the edges (west, north etc.) seem to mix two
concerns that might better be kept separate: 1) specifying the size
constraint for each edge, and 2) adding the edge child.  (Maybe that's
a bug in itself.)

As a workaround: first add a panel to each of the edges you need.
This sets the size of the edge.  Later you can use the panels to add
and remove the edge children, at any time.

-- 
Michael Allan

Toronto, +1 416-699-9528
http://zelea.com/


> On Wed, Aug 10, 2011 at 3:09 AM, frische  wrote:
> 
> > Hi,
> > why does DockLayoutPanel need its Center Element last? 

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



Running RemoteLoggingService in Hosted Mode

2011-08-09 Thread Jeremy
I am having a problem running RemoteLoggingService in Hosted Mode.
When I run locally with a tomcat server, there is no error.

I used in my web.xml:


remoteLoggingServlet
com.google.gwt.logging.server.RemoteLoggingServiceImpl



remoteLoggingServlet
/myApp/remote_logging


Here is the error I get when using RemoteLoggingService

Tue Aug 09 16:45:35 EDT 2011 WireActivityLogger
   SEVERE: Remote logging failed:
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
This application is out of date, please click the refresh button on
your browser. ( Could not locate requested method
'logOnServer(java.util.logging.LogRecord)' in interface
'com.google.gwt.logging.shared.RemoteLoggingService' )
at
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException_FieldSerializer.instantiate(IncompatibleRemoteServiceException_FieldSerializer.java:
30)
at
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException_FieldSerializer
$Handler.instantiate(IncompatibleRemoteServiceException_FieldSerializer.java:
14)
at
com.google.gwt.user.client.rpc.impl.SerializerBase.instantiate(SerializerBase.java:
111)
at
com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deserialize(ClientSerializationStreamReader.java:
106)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject(AbstractSerializationStreamReader.java:
119)
at
com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:
199)
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(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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:
157)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:
326)
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
207)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
126)
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:214)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.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:
157)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
281)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
531)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)
at java.lang.Thread.run(Unknown Source)

-- 
You received 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: EditorDriver.flush() returns duplicated editor errors on the first call

2011-08-09 Thread Sam J.
oh and I forgot to mention, I think this problem started to appear
after I upgraded to gwt 2.3 from 2.2. I'm positive, but not 100% sure

On Aug 9, 4:58 pm, "Sam J."  wrote:
> I'm seeing EditorDriver.flush() returns duplicated editor errors on
> the first call, and I'm not sure what's causing it. I need some help
>
> >_<
>
> I'm doing:
> driver.initialize( my view );
> driver.edit( my data );
>
> in my view, I have a sub editor that implements HasEditorDelegate, and
> does:
> public MyObject getValue() {
>       // some checkings and delegate.recordError(...)
>
> }
>
> and the view itself, it implements HasEditorErrors and
> public void showErrors(...) {
>       // update view to reflect editor errors
>
> }
>
> everything works as expected up to driver.edit. I can see my widgets
> displaying the object being edited
>
> some time later, upon a button click, I call
> modifiedObject = driver.flush()
>
> in the UI, there are two identical copies of each error. e.g.
> showErrors is invoked with arg [error1, error1, error2, error2, etc].
> The duplicates have identical values as their originals, except they
> are different objects
>
> but if I call
> modifiedObject = driver.flush()
> modifiedObject = driver.flush()
> twice, then the second flush properly generates errors without
> duplicates.
>
> any help is appreciated. 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.



EditorDriver.flush() returns duplicated editor errors on the first call

2011-08-09 Thread Sam J.
I'm seeing EditorDriver.flush() returns duplicated editor errors on
the first call, and I'm not sure what's causing it. I need some help
>_<

I'm doing:
driver.initialize( my view );
driver.edit( my data );

in my view, I have a sub editor that implements HasEditorDelegate, and
does:
public MyObject getValue() {
  // some checkings and delegate.recordError(...)
}

and the view itself, it implements HasEditorErrors and
public void showErrors(...) {
  // update view to reflect editor errors
}


everything works as expected up to driver.edit. I can see my widgets
displaying the object being edited

some time later, upon a button click, I call
modifiedObject = driver.flush()

in the UI, there are two identical copies of each error. e.g.
showErrors is invoked with arg [error1, error1, error2, error2, etc].
The duplicates have identical values as their originals, except they
are different objects

but if I call
modifiedObject = driver.flush()
modifiedObject = driver.flush()
twice, then the second flush properly generates errors without
duplicates.

any help is appreciated. thanks

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



Re: Cannot deserialized ArrayList object in GWT 2.3

2011-08-09 Thread Ivan Pulleyn
Is you object a plain-old Java object? Are you using any persistence engine
on the server like Hibernate? Sometimes that can cause serialization issues,
especially when something like Javassist manipulates byte code on the
server.

Ivan...

On Wed, Aug 10, 2011 at 3:35 AM, BM  wrote:

> I am getting this weird error "The response could not be deserialized"
> during RPC call using GWT 2.3. I looked for similar threads on this
> forum but their problem seems to be different than mine. Here is the
> complete stack trace.
>
> Also my ArrayList contains an Object which implements Serializable and
> has properties with data types as String, Boolean and Date. All the
> data types seems to have implemented Serializable interface. Please
> help.
>
>
> com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: The
> response could not be deserialized
>at
>
> com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:
> 221)
>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:
> 167)
>at
>
> com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:
> 326)
>at
>
> com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
> 207)
>at
> com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
> 132)
>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:214)
>at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
>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:
> 167)
>at
>
> com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
> 281)
>at
>
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
> 531)
>at
>
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
> 352)
>at java.lang.Thread.run(Thread.java:619)
> Caused by: com.google.gwt.user.client.rpc.SerializationException:
> java.util.ArrayList/3821976829
>at
>
> com.google.gwt.user.client.rpc.impl.SerializerBase.getTypeHandler(SerializerBase.java:
> 153)
>at
>
> com.google.gwt.user.client.rpc.impl.SerializerBase.instantiate(SerializerBase.java:
> 114)
>at
>
> com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deserialize(ClientSerializationStreamReader.java:
> 111)
>at
>
> com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject(AbstractSerializationStreamReader.java:
> 119)
>at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter
> $ResponseReader$8.read(RequestCallbackAdapter.java:106)
>at
>
> com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:
> 214)
>... 27 more
>
> --
> You received 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.

Cannot deserialized ArrayList object in GWT 2.3

2011-08-09 Thread BM
I am getting this weird error "The response could not be deserialized"
during RPC call using GWT 2.3. I looked for similar threads on this
forum but their problem seems to be different than mine. Here is the
complete stack trace.

Also my ArrayList contains an Object which implements Serializable and
has properties with data types as String, Boolean and Date. All the
data types seems to have implemented Serializable interface. Please
help.


com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: The
response could not be deserialized
at
com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:
221)
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:
167)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:
326)
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
207)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
132)
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:214)
at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
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:
167)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
281)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
531)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)
at java.lang.Thread.run(Thread.java:619)
Caused by: com.google.gwt.user.client.rpc.SerializationException:
java.util.ArrayList/3821976829
at
com.google.gwt.user.client.rpc.impl.SerializerBase.getTypeHandler(SerializerBase.java:
153)
at
com.google.gwt.user.client.rpc.impl.SerializerBase.instantiate(SerializerBase.java:
114)
at
com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deserialize(ClientSerializationStreamReader.java:
111)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject(AbstractSerializationStreamReader.java:
119)
at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter
$ResponseReader$8.read(RequestCallbackAdapter.java:106)
at
com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:
214)
... 27 more

-- 
You received 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: why does DockLayoutPanel care about the order of its elements?

2011-08-09 Thread Ivan Pulleyn
DockLayoutPanel assumes that "center" is all the space that wasn't taken up
by a component that was added to the north, east, etc. There's a built in
assumption that when you call add() you have finished adding any components
that will be docked to an edge.

Ivan...

On Wed, Aug 10, 2011 at 3:09 AM, frische  wrote:

> Hi,
> why does DockLayoutPanel need its Center Element last? Also, why does
> GWT Designer allow that? Should I file a bug?
>
> The error thrown if you add an element after the center is:
> "
> dockLayoutPanel.addEast(stackLayoutPanel, 12.0)
>
> Exception during method invocation evaluation
> An exception happened during evaluation of
>
> dockLayoutPanel.addEast(stackLayoutPanel, 12.0)
>
> Method public void
>
> com.google.gwt.user.client.ui.DockLayoutPanel.addEast(com.google.gwt.user.client.ui.Widget,double)
> was used with the parameters { class="gwt-StackLayoutPanel">  style="position: absolute; overflow-x: hidden; overflow-y: hidden;
> ">Empty
> StackLayoutPanel.Header,12.0}.
>  "
>
>
> GWT 2.3 , gwt designer core 2.3.2.r37x201107161253
>
> --
> You received 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.



why does DockLayoutPanel care about the order of its elements?

2011-08-09 Thread frische
Hi,
why does DockLayoutPanel need its Center Element last? Also, why does
GWT Designer allow that? Should I file a bug?

The error thrown if you add an element after the center is:
"
dockLayoutPanel.addEast(stackLayoutPanel, 12.0)

Exception during method invocation evaluation
An exception happened during evaluation of

dockLayoutPanel.addEast(stackLayoutPanel, 12.0)

Method public void
com.google.gwt.user.client.ui.DockLayoutPanel.addEast(com.google.gwt.user.client.ui.Widget,double)
was used with the parameters { Empty
StackLayoutPanel.Header,12.0}.
 "


GWT 2.3 , gwt designer core 2.3.2.r37x201107161253

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



CellTable custom footer

2011-08-09 Thread Mark Wengranowski
Hi Everyone,

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

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

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

Thats not what want though.

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

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

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

Thanks,
-Mark

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



Re: Need help for storing Sessions

2011-08-09 Thread Juan Pablo Gardella
2011/8/4 Foermchen82 

> Hi,
>
> i actual do my first steps with GWT.
> Now I want to secure my web application. It is no problem, to build a
> login dialog with username and password.
> On several websites i have read, that I have to build a secure token
> ant store it in a cookie to track the validility of the session.
>
> For this, I have several questions:
>
> 1. What, if i can't use cookies. How can I remember, that the user is
> still logged in?
>

>> If you can't use cookies you can:
 1) Tell to the user enable cookies (as many web mail clients)
 2) Use a token.


> 2. If I refresh the page, the login dialog will be shown. How I can
> display the last state of the website?
>

>> You can use place/activities 
>> system
.


> 3. If I close the browser an open it again, and if I store the token
> in a cookie, does the laste state of the session will be restored? I
> hope not! If I close the browser, the session should not be reusable
>

>> The site don't do magic. You can store same information in a cookie and
then restore using this information.


> 4. I have read, that cookies can possible be a security problem. How
> can I prevent this?
>

>> 1) Don't use cookies
 2) Tell me the problems and then I tell how solve.

>
> Can comebody help me?
>
> 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: GWT Validation framework

2011-08-09 Thread Juan Pablo Gardella
In editor I don't know, but with MVP yes. You can define in presenter objets
the validators.

2011/8/9 nacho 

> Any of those validation options can be easily used with MVP & Editor fw?
>
> --
> 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/-/Tnuj01pYZZsJ.
> To post to this group, send email to google-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 Validation framework

2011-08-09 Thread nacho
Any of those validation options can be easily used with MVP & Editor fw?

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



Problem with setTabIndex()

2011-08-09 Thread am81
Hi! I want to set the TAB orden in several Windows and Dialog
(SmartGWT, but the components are traditional GWT ones) by using the
setTabIndex method, but this only works in some windows. Does someone
know any bug with this method? I cant see what is the problem..

-- 
You received 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: CellList Style

2011-08-09 Thread Jeff Larsen
GWT Classes

Style extends CSSRource{
   

/* List of methods */

}

GwtBundle extends ClientBundle{
  
  @Source("someStyleSheet.css")
  Style getStyle();
}

All you need to do now is extend GwtBundle and override the method that 
creates the style and point it at your new StyleSheet. 
MyBundle extends GwtBundle{

@Source("myCustomeStyleSheet")
 Style getStyle();

}

Don't forget to do MyBundle.getStyle().ensureInjected();

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



CellList Style

2011-08-09 Thread joel
I'm wanting to add a separator line between elements in my CellList.
How do I do that.

More generally, I'd like to see example of how to properly override
styles in GWT. I have a CellTable, that I pass in custom Resources,
however, it doesn't work if there is _any_ tables that don't use the
customized resource... Seems problematic.

TIA,
J

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



Aw: Question about google +

2011-08-09 Thread Jens
They use Closure http://code.google.com/closure/ for Google+. 

Also take a look at: 
http://anyasq.com/79-im-a-technical-lead-on-the-google+-team

-- 
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/-/ykNw8Snvk7cJ.
To post to this group, send email to google-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: Question about google +

2011-08-09 Thread Alain Ekambi
Google Closure was used for G+. Why  i cant tell i dont work @Google :)
But i think David Chandler answred that in one of the topic here in the
group

2011/8/9 István Szoboszlai 

> Hello,
>
> Just out of curiosity, the question is: was GWT used to develop Google+? If
> so, is that some branched edition? Things are not very familiar in the html
> source.
> If GWT was *not* used, why is that?
>
> Üdvözlettel / Best Regards
> - István Szoboszlai
> istvan.szobosz...@inepex.com | inepex.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.
>



-- 

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

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



Re: Calling a Java Method from Handwritten JavaScript

2011-08-09 Thread Alain Ekambi
Oh yeah dont forget to actually export your class
by calling ExportUtil.exportAll();

2011/8/9 Alain Ekambi 

> Yeah maybe you cant export the entry point class
> i never tried that.
>
>
> 2011/8/9 ASlak 
>
>> It still cannot find OnModuleLoad. I will try moving the method to a
>> different class(without onModuleLoad) to see if I can get it to work
>> from there.
>>
>> On Aug 9, 11:02 am, Alain Ekambi  wrote:
>> > I think you need to add
>> >
>> > @Export
>> > on the class itself
>> >
>> > Note that the method you want to export needs to be public
>> >
>> > Try this :
>> >
>> > @ExportPackage("test")
>> > @Export
>> > public class myClass implements EntryPoint, Exportable{
>> >
>> >  @Export("sendRequest")
>> >  public void sendRequest(...){
>> >
>> > in the js you will need something like
>> >
>> > var v  = new test.MyClass();
>> > t.sendRequest();
>> >
>> > This should work
>> >
>> > Best,
>> >
>> > Alain
>> >
>> > 2011/8/9 ASlak 
>> >
>> >
>> >
>> > > Hi Alain,
>> >
>> > > So I tried using GwtExporter.  I edited my *.get.xml to include what
>> > > they had on their "getting started" guide. I also added their library
>> > > to the project.
>> >
>> > > Then I changed my class to look like:
>> > >  public class myClass implements EntryPoint, Exportable{
>> >
>> > > And my method to look like this:
>> > >  @Export("sendRequest")
>> > >  private void sendRequest(...){
>> >
>> > > The problem is that when I try to compile i get this error:
>> > > "Could not find entry method 'onModuleLoad()' method in entry point
>> > > class"
>> >
>> > > The onModuleLoad() is right where it should be and was working before
>> > > I made the changes to include the GwtExporter.
>> >
>> > > Any idea how to fix this? I obviously can't use GwtExporter if my
>> > > project won't even compile with it.
>> >
>> > > On Aug 9, 10:31 am, Alain Ekambi  wrote:
>> > > > You r welcome.
>> > > > GwtExporter is a good solution  for the type of things you are
>> trying to
>> > > > do.
>> > > > Why going through all the pain when somebody allready did it for u.
>> > > > Or maybe i m just lazy ? :)
>> >
>> > > > And dont forget this is GWT. You dont use a module it wont end up in
>> the
>> > > > generated code. So i dont see the problem by adding it to your
>> project.
>> >
>> > > > 2011/8/9 ASlak 
>> >
>> > > > > Thanks Alain,
>> >
>> > > > > I would prefer to avoid adding extra dependencies to my
>> application,
>> > > > > but I will look into this if I cannot find another way to resolve
>> this
>> > > > > issue.
>> >
>> > > > > On Aug 9, 10:06 am, Alain Ekambi 
>> wrote:
>> > > > > > Maybe you want to check  http://code.google.com/p/gwt-exporter/
>> > > > > > it will take care of the exporting for you.
>> >
>> > > > > > 2011/8/9 ASlak 
>> >
>> > > > > > > Thanks karim! Firebug is a great tool.
>> >
>> > > > > > > I have learned from it that my method is accessible from the
>> html
>> > > > > > > where I am calling it from and the variable that I want
>> included in
>> > > > > > > the call is being included, however there is still a problem.
>> >
>> > > > > > > According to firebug it looks like everything should be
>> working
>> > > fine,
>> > > > > > > but my java method is still not actually being executed.  To
>> me
>> > > this
>> > > > > > > indicates a problem with the path provided by the
>> exportMethod()
>> > > > > > > perhaps, but I have checked this many times and it seems to be
>> > > > > > > correct.
>> >
>> > > > > > > My methods are not static.  I would prefer to leave them that
>> way,
>> > > but
>> > > > > > > I could possibly change them (the java method I need to call
>> is
>> > > > > > > dependent on many other methods and variables that I would
>> also
>> > > need
>> > > > > > > to make static in order to use).  I feel like this should work
>> > > > > > > regardless of whether or not the methods are static, but if
>> someone
>> > > > > > > else can confirm what Paul said about the methods having to be
>> > > static
>> > > > > > > I can try that.
>> >
>> > > > > > > Thanks everyone.
>> >
>> > > > > > > On Aug 9, 5:20 am, karim duran  wrote:
>> > > > > > > > Hi ASlak,
>> >
>> > > > > > > > It should work. I already  did that.
>> >
>> > > > > > > > Don't forget that, finally, all your java code will be
>> translated
>> > > in
>> > > > > > > > optimized javascript.
>> > > > > > > > I haven't enough element about your problem to really help
>> you.
>> >
>> > > > > > > > So, here's my proposition.
>> >
>> > > > > > > > 1) build your application as you usually do
>> > > > > > > > 2) run it in firefox
>> > > > > > > > 3) install firebug, a firefox extension wich provide a
>> javascript
>> > > > > debuger
>> > > > > > > > with breakpoint management and step debuging
>> > > > > > > > 4) open tab "javascript" in firebug and set a breakpoint
>> where
>> > > your
>> > > > > > > > javascipt method is called
>> > > > > > > > 5) watch your variables, fields...etc...and try  to analyse
>> what
>> > > is
>> > > > > > > > happening.
>> >
>> 

Question about google +

2011-08-09 Thread István Szoboszlai
Hello,

Just out of curiosity, the question is: was GWT used to develop Google+? If
so, is that some branched edition? Things are not very familiar in the html
source.
If GWT was *not* used, why is that?

Üdvözlettel / Best Regards
- István Szoboszlai
istvan.szobosz...@inepex.com | inepex.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: Calling a Java Method from Handwritten JavaScript

2011-08-09 Thread Alain Ekambi
Yeah maybe you cant export the entry point class
i never tried that.


2011/8/9 ASlak 

> It still cannot find OnModuleLoad. I will try moving the method to a
> different class(without onModuleLoad) to see if I can get it to work
> from there.
>
> On Aug 9, 11:02 am, Alain Ekambi  wrote:
> > I think you need to add
> >
> > @Export
> > on the class itself
> >
> > Note that the method you want to export needs to be public
> >
> > Try this :
> >
> > @ExportPackage("test")
> > @Export
> > public class myClass implements EntryPoint, Exportable{
> >
> >  @Export("sendRequest")
> >  public void sendRequest(...){
> >
> > in the js you will need something like
> >
> > var v  = new test.MyClass();
> > t.sendRequest();
> >
> > This should work
> >
> > Best,
> >
> > Alain
> >
> > 2011/8/9 ASlak 
> >
> >
> >
> > > Hi Alain,
> >
> > > So I tried using GwtExporter.  I edited my *.get.xml to include what
> > > they had on their "getting started" guide. I also added their library
> > > to the project.
> >
> > > Then I changed my class to look like:
> > >  public class myClass implements EntryPoint, Exportable{
> >
> > > And my method to look like this:
> > >  @Export("sendRequest")
> > >  private void sendRequest(...){
> >
> > > The problem is that when I try to compile i get this error:
> > > "Could not find entry method 'onModuleLoad()' method in entry point
> > > class"
> >
> > > The onModuleLoad() is right where it should be and was working before
> > > I made the changes to include the GwtExporter.
> >
> > > Any idea how to fix this? I obviously can't use GwtExporter if my
> > > project won't even compile with it.
> >
> > > On Aug 9, 10:31 am, Alain Ekambi  wrote:
> > > > You r welcome.
> > > > GwtExporter is a good solution  for the type of things you are trying
> to
> > > > do.
> > > > Why going through all the pain when somebody allready did it for u.
> > > > Or maybe i m just lazy ? :)
> >
> > > > And dont forget this is GWT. You dont use a module it wont end up in
> the
> > > > generated code. So i dont see the problem by adding it to your
> project.
> >
> > > > 2011/8/9 ASlak 
> >
> > > > > Thanks Alain,
> >
> > > > > I would prefer to avoid adding extra dependencies to my
> application,
> > > > > but I will look into this if I cannot find another way to resolve
> this
> > > > > issue.
> >
> > > > > On Aug 9, 10:06 am, Alain Ekambi 
> wrote:
> > > > > > Maybe you want to check  http://code.google.com/p/gwt-exporter/
> > > > > > it will take care of the exporting for you.
> >
> > > > > > 2011/8/9 ASlak 
> >
> > > > > > > Thanks karim! Firebug is a great tool.
> >
> > > > > > > I have learned from it that my method is accessible from the
> html
> > > > > > > where I am calling it from and the variable that I want
> included in
> > > > > > > the call is being included, however there is still a problem.
> >
> > > > > > > According to firebug it looks like everything should be working
> > > fine,
> > > > > > > but my java method is still not actually being executed.  To me
> > > this
> > > > > > > indicates a problem with the path provided by the
> exportMethod()
> > > > > > > perhaps, but I have checked this many times and it seems to be
> > > > > > > correct.
> >
> > > > > > > My methods are not static.  I would prefer to leave them that
> way,
> > > but
> > > > > > > I could possibly change them (the java method I need to call is
> > > > > > > dependent on many other methods and variables that I would also
> > > need
> > > > > > > to make static in order to use).  I feel like this should work
> > > > > > > regardless of whether or not the methods are static, but if
> someone
> > > > > > > else can confirm what Paul said about the methods having to be
> > > static
> > > > > > > I can try that.
> >
> > > > > > > Thanks everyone.
> >
> > > > > > > On Aug 9, 5:20 am, karim duran  wrote:
> > > > > > > > Hi ASlak,
> >
> > > > > > > > It should work. I already  did that.
> >
> > > > > > > > Don't forget that, finally, all your java code will be
> translated
> > > in
> > > > > > > > optimized javascript.
> > > > > > > > I haven't enough element about your problem to really help
> you.
> >
> > > > > > > > So, here's my proposition.
> >
> > > > > > > > 1) build your application as you usually do
> > > > > > > > 2) run it in firefox
> > > > > > > > 3) install firebug, a firefox extension wich provide a
> javascript
> > > > > debuger
> > > > > > > > with breakpoint management and step debuging
> > > > > > > > 4) open tab "javascript" in firebug and set a breakpoint
> where
> > > your
> > > > > > > > javascipt method is called
> > > > > > > > 5) watch your variables, fields...etc...and try  to analyse
> what
> > > is
> > > > > > > > happening.
> >
> > > > > > > > I used this methodology to track some jsni method behaviour,
> > > > > difficult to
> > > > > > > > debug, from the point of view of java.
> >
> > > > > > > > I hope it helps.
> >
> > > > > > > > Regards.
> >
> > > > > > > > Karim Duran
> >
> > > > > > > > 2011/8/8 AS

Re: Calling a Java Method from Handwritten JavaScript

2011-08-09 Thread ASlak
It still cannot find OnModuleLoad. I will try moving the method to a
different class(without onModuleLoad) to see if I can get it to work
from there.

On Aug 9, 11:02 am, Alain Ekambi  wrote:
> I think you need to add
>
> @Export
> on the class itself
>
> Note that the method you want to export needs to be public
>
> Try this :
>
> @ExportPackage("test")
> @Export
> public class myClass implements EntryPoint, Exportable{
>
>  @Export("sendRequest")
>  public void sendRequest(...){
>
> in the js you will need something like
>
> var v  = new test.MyClass();
> t.sendRequest();
>
> This should work
>
> Best,
>
> Alain
>
> 2011/8/9 ASlak 
>
>
>
> > Hi Alain,
>
> > So I tried using GwtExporter.  I edited my *.get.xml to include what
> > they had on their "getting started" guide. I also added their library
> > to the project.
>
> > Then I changed my class to look like:
> >  public class myClass implements EntryPoint, Exportable{
>
> > And my method to look like this:
> >  @Export("sendRequest")
> >  private void sendRequest(...){
>
> > The problem is that when I try to compile i get this error:
> > "Could not find entry method 'onModuleLoad()' method in entry point
> > class"
>
> > The onModuleLoad() is right where it should be and was working before
> > I made the changes to include the GwtExporter.
>
> > Any idea how to fix this? I obviously can't use GwtExporter if my
> > project won't even compile with it.
>
> > On Aug 9, 10:31 am, Alain Ekambi  wrote:
> > > You r welcome.
> > > GwtExporter is a good solution  for the type of things you are trying to
> > > do.
> > > Why going through all the pain when somebody allready did it for u.
> > > Or maybe i m just lazy ? :)
>
> > > And dont forget this is GWT. You dont use a module it wont end up in the
> > > generated code. So i dont see the problem by adding it to your project.
>
> > > 2011/8/9 ASlak 
>
> > > > Thanks Alain,
>
> > > > I would prefer to avoid adding extra dependencies to my application,
> > > > but I will look into this if I cannot find another way to resolve this
> > > > issue.
>
> > > > On Aug 9, 10:06 am, Alain Ekambi  wrote:
> > > > > Maybe you want to check  http://code.google.com/p/gwt-exporter/
> > > > > it will take care of the exporting for you.
>
> > > > > 2011/8/9 ASlak 
>
> > > > > > Thanks karim! Firebug is a great tool.
>
> > > > > > I have learned from it that my method is accessible from the html
> > > > > > where I am calling it from and the variable that I want included in
> > > > > > the call is being included, however there is still a problem.
>
> > > > > > According to firebug it looks like everything should be working
> > fine,
> > > > > > but my java method is still not actually being executed.  To me
> > this
> > > > > > indicates a problem with the path provided by the exportMethod()
> > > > > > perhaps, but I have checked this many times and it seems to be
> > > > > > correct.
>
> > > > > > My methods are not static.  I would prefer to leave them that way,
> > but
> > > > > > I could possibly change them (the java method I need to call is
> > > > > > dependent on many other methods and variables that I would also
> > need
> > > > > > to make static in order to use).  I feel like this should work
> > > > > > regardless of whether or not the methods are static, but if someone
> > > > > > else can confirm what Paul said about the methods having to be
> > static
> > > > > > I can try that.
>
> > > > > > Thanks everyone.
>
> > > > > > On Aug 9, 5:20 am, karim duran  wrote:
> > > > > > > Hi ASlak,
>
> > > > > > > It should work. I already  did that.
>
> > > > > > > Don't forget that, finally, all your java code will be translated
> > in
> > > > > > > optimized javascript.
> > > > > > > I haven't enough element about your problem to really help you.
>
> > > > > > > So, here's my proposition.
>
> > > > > > > 1) build your application as you usually do
> > > > > > > 2) run it in firefox
> > > > > > > 3) install firebug, a firefox extension wich provide a javascript
> > > > debuger
> > > > > > > with breakpoint management and step debuging
> > > > > > > 4) open tab "javascript" in firebug and set a breakpoint where
> > your
> > > > > > > javascipt method is called
> > > > > > > 5) watch your variables, fields...etc...and try  to analyse what
> > is
> > > > > > > happening.
>
> > > > > > > I used this methodology to track some jsni method behaviour,
> > > > difficult to
> > > > > > > debug, from the point of view of java.
>
> > > > > > > I hope it helps.
>
> > > > > > > Regards.
>
> > > > > > > Karim Duran
>
> > > > > > > 2011/8/8 ASlak 
>
> > > > > > > > I have some code in my host html page that I would like to call
> > one
> > > > of
> > > > > > > > my java methods from.
>
> > > > > > > > The relevant part of the html looks like:
> > > > > > > > 
> > > > > > > > if(myCondition){
> > > > > > > > sendRequest(myVar);
> > > > > > > > }
> > > > > > > > 
>
> > > > > > > > I have a method in my java code for my gwt project that is
> > cal

Re: Calling a Java Method from Handwritten JavaScript

2011-08-09 Thread Alain Ekambi
I think you need to add

@Export
on the class itself

Note that the method you want to export needs to be public




Try this :


@ExportPackage("test")
@Export
public class myClass implements EntryPoint, Exportable{


 @Export("sendRequest")
 public void sendRequest(...){


in the js you will need something like

var v  = new test.MyClass();
t.sendRequest();


This should work

Best,

Alain


2011/8/9 ASlak 

> Hi Alain,
>
> So I tried using GwtExporter.  I edited my *.get.xml to include what
> they had on their "getting started" guide. I also added their library
> to the project.
>
> Then I changed my class to look like:
>  public class myClass implements EntryPoint, Exportable{
>
> And my method to look like this:
>  @Export("sendRequest")
>  private void sendRequest(...){
>
> The problem is that when I try to compile i get this error:
> "Could not find entry method 'onModuleLoad()' method in entry point
> class"
>
> The onModuleLoad() is right where it should be and was working before
> I made the changes to include the GwtExporter.
>
> Any idea how to fix this? I obviously can't use GwtExporter if my
> project won't even compile with it.
>
> On Aug 9, 10:31 am, Alain Ekambi  wrote:
> > You r welcome.
> > GwtExporter is a good solution  for the type of things you are trying to
> > do.
> > Why going through all the pain when somebody allready did it for u.
> > Or maybe i m just lazy ? :)
> >
> > And dont forget this is GWT. You dont use a module it wont end up in the
> > generated code. So i dont see the problem by adding it to your project.
> >
> > 2011/8/9 ASlak 
> >
> >
> >
> > > Thanks Alain,
> >
> > > I would prefer to avoid adding extra dependencies to my application,
> > > but I will look into this if I cannot find another way to resolve this
> > > issue.
> >
> > > On Aug 9, 10:06 am, Alain Ekambi  wrote:
> > > > Maybe you want to check  http://code.google.com/p/gwt-exporter/
> > > > it will take care of the exporting for you.
> >
> > > > 2011/8/9 ASlak 
> >
> > > > > Thanks karim! Firebug is a great tool.
> >
> > > > > I have learned from it that my method is accessible from the html
> > > > > where I am calling it from and the variable that I want included in
> > > > > the call is being included, however there is still a problem.
> >
> > > > > According to firebug it looks like everything should be working
> fine,
> > > > > but my java method is still not actually being executed.  To me
> this
> > > > > indicates a problem with the path provided by the exportMethod()
> > > > > perhaps, but I have checked this many times and it seems to be
> > > > > correct.
> >
> > > > > My methods are not static.  I would prefer to leave them that way,
> but
> > > > > I could possibly change them (the java method I need to call is
> > > > > dependent on many other methods and variables that I would also
> need
> > > > > to make static in order to use).  I feel like this should work
> > > > > regardless of whether or not the methods are static, but if someone
> > > > > else can confirm what Paul said about the methods having to be
> static
> > > > > I can try that.
> >
> > > > > Thanks everyone.
> >
> > > > > On Aug 9, 5:20 am, karim duran  wrote:
> > > > > > Hi ASlak,
> >
> > > > > > It should work. I already  did that.
> >
> > > > > > Don't forget that, finally, all your java code will be translated
> in
> > > > > > optimized javascript.
> > > > > > I haven't enough element about your problem to really help you.
> >
> > > > > > So, here's my proposition.
> >
> > > > > > 1) build your application as you usually do
> > > > > > 2) run it in firefox
> > > > > > 3) install firebug, a firefox extension wich provide a javascript
> > > debuger
> > > > > > with breakpoint management and step debuging
> > > > > > 4) open tab "javascript" in firebug and set a breakpoint where
> your
> > > > > > javascipt method is called
> > > > > > 5) watch your variables, fields...etc...and try  to analyse what
> is
> > > > > > happening.
> >
> > > > > > I used this methodology to track some jsni method behaviour,
> > > difficult to
> > > > > > debug, from the point of view of java.
> >
> > > > > > I hope it helps.
> >
> > > > > > Regards.
> >
> > > > > > Karim Duran
> >
> > > > > > 2011/8/8 ASlak 
> >
> > > > > > > I have some code in my host html page that I would like to call
> one
> > > of
> > > > > > > my java methods from.
> >
> > > > > > > The relevant part of the html looks like:
> > > > > > > 
> > > > > > > if(myCondition){
> > > > > > > sendRequest(myVar);
> > > > > > > }
> > > > > > > 
> >
> > > > > > > I have a method in my java code for my gwt project that is
> called
> > > > > > > sendRequest.
> >
> > > > > > > I am also using a method that looks like:
> > > > > > > public native void exportMethod(myApp app)/*-{
> > > > > > > $wnd.sendRequest =
> > > > > > > $entry(a...@com.myCompany.myProject.client.myClass
> > > ::sendRequest(Ljava/
> > > > > > > lang/String;));
> > > > > > > }-*/;
> >
> > > > > > > This is based off o

Re: Calling a Java Method from Handwritten JavaScript

2011-08-09 Thread ASlak
Hi Alain,

So I tried using GwtExporter.  I edited my *.get.xml to include what
they had on their "getting started" guide. I also added their library
to the project.

Then I changed my class to look like:
  public class myClass implements EntryPoint, Exportable{

And my method to look like this:
  @Export("sendRequest")
  private void sendRequest(...){

The problem is that when I try to compile i get this error:
"Could not find entry method 'onModuleLoad()' method in entry point
class"

The onModuleLoad() is right where it should be and was working before
I made the changes to include the GwtExporter.

Any idea how to fix this? I obviously can't use GwtExporter if my
project won't even compile with it.

On Aug 9, 10:31 am, Alain Ekambi  wrote:
> You r welcome.
> GwtExporter is a good solution  for the type of things you are trying to
> do.
> Why going through all the pain when somebody allready did it for u.
> Or maybe i m just lazy ? :)
>
> And dont forget this is GWT. You dont use a module it wont end up in the
> generated code. So i dont see the problem by adding it to your project.
>
> 2011/8/9 ASlak 
>
>
>
> > Thanks Alain,
>
> > I would prefer to avoid adding extra dependencies to my application,
> > but I will look into this if I cannot find another way to resolve this
> > issue.
>
> > On Aug 9, 10:06 am, Alain Ekambi  wrote:
> > > Maybe you want to check  http://code.google.com/p/gwt-exporter/
> > > it will take care of the exporting for you.
>
> > > 2011/8/9 ASlak 
>
> > > > Thanks karim! Firebug is a great tool.
>
> > > > I have learned from it that my method is accessible from the html
> > > > where I am calling it from and the variable that I want included in
> > > > the call is being included, however there is still a problem.
>
> > > > According to firebug it looks like everything should be working fine,
> > > > but my java method is still not actually being executed.  To me this
> > > > indicates a problem with the path provided by the exportMethod()
> > > > perhaps, but I have checked this many times and it seems to be
> > > > correct.
>
> > > > My methods are not static.  I would prefer to leave them that way, but
> > > > I could possibly change them (the java method I need to call is
> > > > dependent on many other methods and variables that I would also need
> > > > to make static in order to use).  I feel like this should work
> > > > regardless of whether or not the methods are static, but if someone
> > > > else can confirm what Paul said about the methods having to be static
> > > > I can try that.
>
> > > > Thanks everyone.
>
> > > > On Aug 9, 5:20 am, karim duran  wrote:
> > > > > Hi ASlak,
>
> > > > > It should work. I already  did that.
>
> > > > > Don't forget that, finally, all your java code will be translated in
> > > > > optimized javascript.
> > > > > I haven't enough element about your problem to really help you.
>
> > > > > So, here's my proposition.
>
> > > > > 1) build your application as you usually do
> > > > > 2) run it in firefox
> > > > > 3) install firebug, a firefox extension wich provide a javascript
> > debuger
> > > > > with breakpoint management and step debuging
> > > > > 4) open tab "javascript" in firebug and set a breakpoint where your
> > > > > javascipt method is called
> > > > > 5) watch your variables, fields...etc...and try  to analyse what is
> > > > > happening.
>
> > > > > I used this methodology to track some jsni method behaviour,
> > difficult to
> > > > > debug, from the point of view of java.
>
> > > > > I hope it helps.
>
> > > > > Regards.
>
> > > > > Karim Duran
>
> > > > > 2011/8/8 ASlak 
>
> > > > > > I have some code in my host html page that I would like to call one
> > of
> > > > > > my java methods from.
>
> > > > > > The relevant part of the html looks like:
> > > > > > 
> > > > > > if(myCondition){
> > > > > > sendRequest(myVar);
> > > > > > }
> > > > > > 
>
> > > > > > I have a method in my java code for my gwt project that is called
> > > > > > sendRequest.
>
> > > > > > I am also using a method that looks like:
> > > > > > public native void exportMethod(myApp app)/*-{
> > > > > > $wnd.sendRequest =
> > > > > > $entry(a...@com.myCompany.myProject.client.myClass
> > ::sendRequest(Ljava/
> > > > > > lang/String;));
> > > > > > }-*/;
>
> > > > > > This is based off of what I found in the gwt documentation
> > here:http://
>
> > code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI.html
>
> > > > > > The problem is that this is not working, and I am not sure why.
>
> > > > > > I would appreciate it if anyone could give me a hint.
>
> > > > > > 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 

Re: GWT : Best practice to send huge amount of data from server to client

2011-08-09 Thread Alain Ekambi
Would not be JSON here better ?
What about turning that xml into JSON ?

2011/8/9 Srinivasan Raghavan 

> Hi
>
> Try lazy loading instead of sending the XML all to together
>
> Regards
> R.Srinivasan
>
>
> On Tue, Aug 9, 2011 at 4:33 AM, 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
> >
> >
> >
> >
> >
> >
> > --
> > You received 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.
>
>


-- 

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

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



Re: GWT : Best practice to send huge amount of data from server to client

2011-08-09 Thread Srinivasan Raghavan
Hi

Try lazy loading instead of sending the XML all to together

Regards
R.Srinivasan


On Tue, Aug 9, 2011 at 4:33 AM, 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
>
>
>
>
>
>
> --
> You received 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.



Cannot display Facebook Like or Send button in GWT

2011-08-09 Thread simplyi
Hello!

I am having hard time getting Facebook Like or Send button to display
on GWT popup panel. Both buttons display and work well outside of GWT.
But do not get displayed on GWT panels.

To display Facebook button I use HTML panel:

 HTML sendButton = new HTML();
   sendButton.setHTML("");
   right_side_flowPanel.add(sendButton);

Facebook JavaScript and Meta tags are included above on page withing
 tag.

Please advise me how to get it fixed.

Thank you very much.

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

2011-08-09 Thread Living_Legend
I am new to GWT Please Help me on this
I have a combo box .On typing in the combo box I will get a filtered
combo list based on the letters I enter.
my requirement is " On entering the filter criteria the criteriafield
should display capital letters even if the caps lock is not on" .so
how can I format the criteria field of a combo box so that the
criteria field display only capital letters.

Please help me with a solution

-- 
You received 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 + Guice + Shiro

2011-08-09 Thread Les
Hi folks,

I also wanted to mention the Shiro development team will support Guice
in Shiro 1.2 and later as an officially supported integration module.

Shiro's reference manual is here: http://shiro.apache.org/reference.html
Shiro's Guice-specific documentation is here: http://shiro.apache.org/guice.html

1.2 is not yet released, but you'll be able to use what we have if you
use Shiro's development snapshot releases.

Also, Objectuser's blog article has been a great help and is still
quite useful - both resources should get you off the ground nicely.
Also, Objectuser (or anyone else for that matter!), if you'd like to
help join the Shiro dev list discussion around Guice support so you
can influence the direction of the integration, please feel free to do
so.

HTH!

Cheers,

Les Hazlewood
Apache Shiro team

-- 
You received 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: Type cast in Ext-GWT

2011-08-09 Thread Kevin Jordan
Is it giving you a ClassCastException or something?  Make sure you're
getting the right index and what's in that index is actually a
LayoutContainer.  Other than that, it looks fine.  LayoutContainer
extends GWT's Widget in GXT so that's a valid downward cast.

On Aug 9, 7:55 am, Nandha Griantek  wrote:
> Hi  have a problem while type cast
>
> see this code
>
> LayoutContainer chcontainer =
> (LayoutContainer)containerAll.getWidget(index);
>
> here container returns the Widget

-- 
You received 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: Calling a Java Method from Handwritten JavaScript

2011-08-09 Thread Alain Ekambi
You r welcome.
GwtExporter is a good solution  for the type of things you are trying to
do.
Why going through all the pain when somebody allready did it for u.
Or maybe i m just lazy ? :)

And dont forget this is GWT. You dont use a module it wont end up in the
generated code. So i dont see the problem by adding it to your project.

2011/8/9 ASlak 

> Thanks Alain,
>
> I would prefer to avoid adding extra dependencies to my application,
> but I will look into this if I cannot find another way to resolve this
> issue.
>
> On Aug 9, 10:06 am, Alain Ekambi  wrote:
> > Maybe you want to check  http://code.google.com/p/gwt-exporter/
> > it will take care of the exporting for you.
> >
> > 2011/8/9 ASlak 
> >
> >
> >
> > > Thanks karim! Firebug is a great tool.
> >
> > > I have learned from it that my method is accessible from the html
> > > where I am calling it from and the variable that I want included in
> > > the call is being included, however there is still a problem.
> >
> > > According to firebug it looks like everything should be working fine,
> > > but my java method is still not actually being executed.  To me this
> > > indicates a problem with the path provided by the exportMethod()
> > > perhaps, but I have checked this many times and it seems to be
> > > correct.
> >
> > > My methods are not static.  I would prefer to leave them that way, but
> > > I could possibly change them (the java method I need to call is
> > > dependent on many other methods and variables that I would also need
> > > to make static in order to use).  I feel like this should work
> > > regardless of whether or not the methods are static, but if someone
> > > else can confirm what Paul said about the methods having to be static
> > > I can try that.
> >
> > > Thanks everyone.
> >
> > > On Aug 9, 5:20 am, karim duran  wrote:
> > > > Hi ASlak,
> >
> > > > It should work. I already  did that.
> >
> > > > Don't forget that, finally, all your java code will be translated in
> > > > optimized javascript.
> > > > I haven't enough element about your problem to really help you.
> >
> > > > So, here's my proposition.
> >
> > > > 1) build your application as you usually do
> > > > 2) run it in firefox
> > > > 3) install firebug, a firefox extension wich provide a javascript
> debuger
> > > > with breakpoint management and step debuging
> > > > 4) open tab "javascript" in firebug and set a breakpoint where your
> > > > javascipt method is called
> > > > 5) watch your variables, fields...etc...and try  to analyse what is
> > > > happening.
> >
> > > > I used this methodology to track some jsni method behaviour,
> difficult to
> > > > debug, from the point of view of java.
> >
> > > > I hope it helps.
> >
> > > > Regards.
> >
> > > > Karim Duran
> >
> > > > 2011/8/8 ASlak 
> >
> > > > > I have some code in my host html page that I would like to call one
> of
> > > > > my java methods from.
> >
> > > > > The relevant part of the html looks like:
> > > > > 
> > > > > if(myCondition){
> > > > > sendRequest(myVar);
> > > > > }
> > > > > 
> >
> > > > > I have a method in my java code for my gwt project that is called
> > > > > sendRequest.
> >
> > > > > I am also using a method that looks like:
> > > > > public native void exportMethod(myApp app)/*-{
> > > > > $wnd.sendRequest =
> > > > > $entry(a...@com.myCompany.myProject.client.myClass
> ::sendRequest(Ljava/
> > > > > lang/String;));
> > > > > }-*/;
> >
> > > > > This is based off of what I found in the gwt documentation
> here:http://
> > > > >
> code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI.html
> >
> > > > > The problem is that this is not working, and I am not sure why.
> >
> > > > > I would appreciate it if anyone could give me a hint.
> >
> > > > > Thanks
> >
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> > > Groups
> > > > > "Google Web Toolkit" group.
> > > > > To post to this group, send email to
> > > google-web-toolkit@googlegroups.com.
> > > > > To unsubscribe from this group, send email to
> > > > > google-web-toolkit+unsubscr...@googlegroups.com.
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/google-web-toolkit?hl=en.
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to
> google-web-toolkit@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com.
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
> >
> > --
> >
> > GWT API for  non Java based platformshttp://
> code.google.com/p/gwt4air/http://www.gwt4air.appspot.com/
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, se

Re: Calling a Java Method from Handwritten JavaScript

2011-08-09 Thread ASlak
Thanks Alain,

I would prefer to avoid adding extra dependencies to my application,
but I will look into this if I cannot find another way to resolve this
issue.

On Aug 9, 10:06 am, Alain Ekambi  wrote:
> Maybe you want to check  http://code.google.com/p/gwt-exporter/
> it will take care of the exporting for you.
>
> 2011/8/9 ASlak 
>
>
>
> > Thanks karim! Firebug is a great tool.
>
> > I have learned from it that my method is accessible from the html
> > where I am calling it from and the variable that I want included in
> > the call is being included, however there is still a problem.
>
> > According to firebug it looks like everything should be working fine,
> > but my java method is still not actually being executed.  To me this
> > indicates a problem with the path provided by the exportMethod()
> > perhaps, but I have checked this many times and it seems to be
> > correct.
>
> > My methods are not static.  I would prefer to leave them that way, but
> > I could possibly change them (the java method I need to call is
> > dependent on many other methods and variables that I would also need
> > to make static in order to use).  I feel like this should work
> > regardless of whether or not the methods are static, but if someone
> > else can confirm what Paul said about the methods having to be static
> > I can try that.
>
> > Thanks everyone.
>
> > On Aug 9, 5:20 am, karim duran  wrote:
> > > Hi ASlak,
>
> > > It should work. I already  did that.
>
> > > Don't forget that, finally, all your java code will be translated in
> > > optimized javascript.
> > > I haven't enough element about your problem to really help you.
>
> > > So, here's my proposition.
>
> > > 1) build your application as you usually do
> > > 2) run it in firefox
> > > 3) install firebug, a firefox extension wich provide a javascript debuger
> > > with breakpoint management and step debuging
> > > 4) open tab "javascript" in firebug and set a breakpoint where your
> > > javascipt method is called
> > > 5) watch your variables, fields...etc...and try  to analyse what is
> > > happening.
>
> > > I used this methodology to track some jsni method behaviour, difficult to
> > > debug, from the point of view of java.
>
> > > I hope it helps.
>
> > > Regards.
>
> > > Karim Duran
>
> > > 2011/8/8 ASlak 
>
> > > > I have some code in my host html page that I would like to call one of
> > > > my java methods from.
>
> > > > The relevant part of the html looks like:
> > > > 
> > > > if(myCondition){
> > > > sendRequest(myVar);
> > > > }
> > > > 
>
> > > > I have a method in my java code for my gwt project that is called
> > > > sendRequest.
>
> > > > I am also using a method that looks like:
> > > > public native void exportMethod(myApp app)/*-{
> > > > $wnd.sendRequest =
> > > > $entry(a...@com.myCompany.myProject.client.myClass::sendRequest(Ljava/
> > > > lang/String;));
> > > > }-*/;
>
> > > > This is based off of what I found in the gwt documentation here:http://
> > > > code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI.html
>
> > > > The problem is that this is not working, and I am not sure why.
>
> > > > I would appreciate it if anyone could give me a hint.
>
> > > > Thanks
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Google Web Toolkit" group.
> > > > To post to this group, send email to
> > google-web-toolkit@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > google-web-toolkit+unsubscr...@googlegroups.com.
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-toolkit@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
>
> GWT API for  non Java based 
> platformshttp://code.google.com/p/gwt4air/http://www.gwt4air.appspot.com/

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



Re: Calling a Java Method from Handwritten JavaScript

2011-08-09 Thread ASlak


I think I have found the problem. After setting up a breakpoint with
firebug and using the "step into" ability I found a piece of code that
is generating an exception.

in *.cache.html:

_.sendRequest_0 = function sendRequest(id, pw){
$sendRequest(this, id, pw);
}

The problem is that _.sendRequest_0 is undefined. The exception is
Java.util.NoSuchElementException {castable TypeMap = $object}

This part of the code is automatically generated, so I must be making
a mistake somewhere else that is causing this.

Any ideas?

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



Re: Calling a Java Method from Handwritten JavaScript

2011-08-09 Thread Alain Ekambi
Maybe you want to check  http://code.google.com/p/gwt-exporter/
it will take care of the exporting for you.

2011/8/9 ASlak 

> Thanks karim! Firebug is a great tool.
>
> I have learned from it that my method is accessible from the html
> where I am calling it from and the variable that I want included in
> the call is being included, however there is still a problem.
>
> According to firebug it looks like everything should be working fine,
> but my java method is still not actually being executed.  To me this
> indicates a problem with the path provided by the exportMethod()
> perhaps, but I have checked this many times and it seems to be
> correct.
>
> My methods are not static.  I would prefer to leave them that way, but
> I could possibly change them (the java method I need to call is
> dependent on many other methods and variables that I would also need
> to make static in order to use).  I feel like this should work
> regardless of whether or not the methods are static, but if someone
> else can confirm what Paul said about the methods having to be static
> I can try that.
>
> Thanks everyone.
>
> On Aug 9, 5:20 am, karim duran  wrote:
> > Hi ASlak,
> >
> > It should work. I already  did that.
> >
> > Don't forget that, finally, all your java code will be translated in
> > optimized javascript.
> > I haven't enough element about your problem to really help you.
> >
> > So, here's my proposition.
> >
> > 1) build your application as you usually do
> > 2) run it in firefox
> > 3) install firebug, a firefox extension wich provide a javascript debuger
> > with breakpoint management and step debuging
> > 4) open tab "javascript" in firebug and set a breakpoint where your
> > javascipt method is called
> > 5) watch your variables, fields...etc...and try  to analyse what is
> > happening.
> >
> > I used this methodology to track some jsni method behaviour, difficult to
> > debug, from the point of view of java.
> >
> > I hope it helps.
> >
> > Regards.
> >
> > Karim Duran
> >
> > 2011/8/8 ASlak 
> >
> > > I have some code in my host html page that I would like to call one of
> > > my java methods from.
> >
> > > The relevant part of the html looks like:
> > > 
> > > if(myCondition){
> > > sendRequest(myVar);
> > > }
> > > 
> >
> > > I have a method in my java code for my gwt project that is called
> > > sendRequest.
> >
> > > I am also using a method that looks like:
> > > public native void exportMethod(myApp app)/*-{
> > > $wnd.sendRequest =
> > > $entry(a...@com.myCompany.myProject.client.myClass::sendRequest(Ljava/
> > > lang/String;));
> > > }-*/;
> >
> > > This is based off of what I found in the gwt documentation here:http://
> > > code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI.html
> >
> > > The problem is that this is not working, and I am not sure why.
> >
> > > I would appreciate it if anyone could give me a hint.
> >
> > > Thanks
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to
> google-web-toolkit@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com.
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 

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

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



Re: Calling a Java Method from Handwritten JavaScript

2011-08-09 Thread ASlak
Thanks karim! Firebug is a great tool.

I have learned from it that my method is accessible from the html
where I am calling it from and the variable that I want included in
the call is being included, however there is still a problem.

According to firebug it looks like everything should be working fine,
but my java method is still not actually being executed.  To me this
indicates a problem with the path provided by the exportMethod()
perhaps, but I have checked this many times and it seems to be
correct.

My methods are not static.  I would prefer to leave them that way, but
I could possibly change them (the java method I need to call is
dependent on many other methods and variables that I would also need
to make static in order to use).  I feel like this should work
regardless of whether or not the methods are static, but if someone
else can confirm what Paul said about the methods having to be static
I can try that.

Thanks everyone.

On Aug 9, 5:20 am, karim duran  wrote:
> Hi ASlak,
>
> It should work. I already  did that.
>
> Don't forget that, finally, all your java code will be translated in
> optimized javascript.
> I haven't enough element about your problem to really help you.
>
> So, here's my proposition.
>
> 1) build your application as you usually do
> 2) run it in firefox
> 3) install firebug, a firefox extension wich provide a javascript debuger
> with breakpoint management and step debuging
> 4) open tab "javascript" in firebug and set a breakpoint where your
> javascipt method is called
> 5) watch your variables, fields...etc...and try  to analyse what is
> happening.
>
> I used this methodology to track some jsni method behaviour, difficult to
> debug, from the point of view of java.
>
> I hope it helps.
>
> Regards.
>
> Karim Duran
>
> 2011/8/8 ASlak 
>
> > I have some code in my host html page that I would like to call one of
> > my java methods from.
>
> > The relevant part of the html looks like:
> > 
> > if(myCondition){
> > sendRequest(myVar);
> > }
> > 
>
> > I have a method in my java code for my gwt project that is called
> > sendRequest.
>
> > I am also using a method that looks like:
> > public native void exportMethod(myApp app)/*-{
> > $wnd.sendRequest =
> > $entry(a...@com.myCompany.myProject.client.myClass::sendRequest(Ljava/
> > lang/String;));
> > }-*/;
>
> > This is based off of what I found in the gwt documentation here:http://
> > code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI.html
>
> > The problem is that this is not working, and I am not sure why.
>
> > I would appreciate it if anyone could give me a hint.
>
> > Thanks
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-toolkit@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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



Odp: Re: GWT : Best practice to send huge amount of data from server to client

2011-08-09 Thread PiotrN
Transmitting that much data will be problematic. I would first seek a way to 
avoid such transmissions to the client.

But if has to be done this way and all the data should be displayed in 
single "page", they still should be transmitted in chunks,
in size of about what one real client screen would show. When one page is 
parsed, go fetch next one.
If you need it all to make the processing, then you really should do the 
work on the server.

If the parsing of xml can be done with xslt, check that, it might be faster, 
as browsers do include xslt parsers.
Also, if you can target modern browsers, try using workers to do you work on 
the data.

Have You tested how will the browsers behave when feed 1GB xml ?
I would prep such file and such big table before going for the actual 
code...

There was a project done in GWT, i believe it's somewhere noted on the 
webtoolkit homepage, that dealt with huge data sets.
It draw a graph of statistical data. Might be useful to see how they handled 
it.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/5bQZlOxrkoMJ.
To post to this group, send email to google-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 George Agiasoglou
Have a look at AsyncDataProvider + SimplePager.

-George

-- 
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/-/d2h6B2Ei-MYJ.
To post to this group, send email to google-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: Always get Web Application Starter Project

2011-08-09 Thread AlexG
Hi Russ,

the warning, of the missing favicon is shown up in Chrome, as long as
you
don´t have a favicon specified for your application.

A favicon is the small icon on your browsers tab for example. You can
define one
for your app too, and this is the favicon ;).

Greets Alex


On 8 Aug., 00:10, Russ Abbott  wrote:
> I downloaded and installed the newest eclipse (3.7) and the newest GWT
> plugin (2.3). No matter what I do to try to run one of the sample projects,
> all I ever get is the Web Application Starter Project page.  Can you tell me
> what's going on?
>
> Also, I when I run in Chrome, I keep getting [WARN] No file found for:
> /favicon.ico. This doesn't happen in Firefox or IE.  Can you tell me what
> can I do to fix that?
>
> 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.



Type cast in Ext-GWT

2011-08-09 Thread Nandha Griantek
Hi  have a problem while type cast

see this code

LayoutContainer chcontainer =
(LayoutContainer)containerAll.getWidget(index);

here container returns the Widget

-- 
You received 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: Spring Security with GWT

2011-08-09 Thread Mattias
Hi,

last year I did some digging around on how to integrate GWT and Spring
Security - see if my write-up at 
http://technowobble.blogspot.com/2010/05/gwt-and-spring-security.html
and 
http://technowobble.blogspot.com/2010/07/gwt-and-open-id-using-spring-security.html
can help you find a good solution.

/Mattias

On Jul 10, 6:32 am, Kevin Jordan  wrote:
> This is because GWT uses an IFRAME to submit by default.  There's no
> reason it has to be a form to submit to your logout URL, so I'd just
> do an anchor link as kellizer suggests or just do a
> Window.Location.replace("/j_spring_security_logout") when your button
> is pressed.  That will redirect the whole application to your logout
> URL.
>
> On Jul 8, 4:27 pm, Sven  wrote:
>
>
>
>
>
>
>
> > Hi people,
>
> > I am using GWT 2.3 and SpringSecurity3. To explain my application
> > structure a little bit. My WebContent folder contains:
>
> > WebContent/
> > -WEB-INF/
> > -login.html
> > -logout.html
> > -secure/
> > ---index.html
>
> > Starting my application and trying to 
> > accesshttp://127.0.0.1.:/secure/index.html
> > redirects me tohttp://127.0.0.1.:/login.html... That's the way it
> > should be. After entering my credentials I get taken to my secured
> > index.html. There I have a navigation bar containing a FormPanel which
> > fires a POST j_spring_security_logout.
>
> > My configuration says that in this case I should get taken 
> > tohttp://127.0.0.1.:/logout.html.
> > Thesecuritylog shows that thesecuritychain is processing a
> > redirect to this page. But the strange behaviour I stay on the secured
> > index page in FF or IE.
>
> > Obviously something blocks the redirect or do I have a general
> > missunderstanding?

-- 
You received 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 Sean
Can you do the parsing on the Server Side, and only send what needs to be 
displayed? Have the cell table say, we need records 0-500, send those. Then 
when they hit next page, have it ask for 501-1000 and etc.,etc.,

This way you're never sending that much data over the wire, it should be 
much quicker and more responsive. 

-- 
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/-/rKQhj7O734UJ.
To post to this group, send email to google-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 Desikan  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
Receiver() {

  @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: GWT with Oracle

2011-08-09 Thread Isaac Truett
What have you tried so far?


On Tue, Aug 9, 2011 at 3:49 AM, Gema matesanz wrote:

>
> .
> Hello, yes I've read the GAE Developer's Guide a few times and have not
> found solution to my problem, say it's library but I make the
> corresponding changes but still not working, you are kind enough to help
>
>
>
> Un saludo
> -
> Gema Matesanz
>
>  --
> You received 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
>
>
> 
>
>
>
>  --
> You received 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.



GWT : Best practice to send huge amount of data from server to client

2011-08-09 Thread vaibhav bhalke
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




-- 
You received 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 with Oracle

2011-08-09 Thread Adolfo Panizo Touzon
Gema, que haces por estos lares? No sabia que trabajases con GWT.

Jaja, you are welcome!.

Did you solved the problem?


2011/8/9 Gema matesanz 

>
> .
> Hello, yes I've read the GAE Developer's Guide a few times and have not
> found solution to my problem, say it's library but I make the
> corresponding changes but still not working, you are kind enough to help
>
>
>
> Un saludo
> -
> Gema Matesanz
>
>  --
> You received 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.
>



-- 
El precio es lo que pagas. El valor es lo que recibes.
Warren Buffet

-- 
You received 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 Mark
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 Desikan  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
> Receiver() {
>
>              @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: Calling a Java Method from Handwritten JavaScript

2011-08-09 Thread Paul Stockley
I've done what you did with  static methods. However,  I don't think you can 
call a non-static method in the way you are proposing.

-- 
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/-/yB-CMEe9raMJ.
To post to this group, send email to google-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: Emulating Java Reflection with deferred binding

2011-08-09 Thread fabio.bozzo
Jens... you probably saved my life!!! ^__^ Huge 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.



Aw: Re: Emulating Java Reflection with deferred binding

2011-08-09 Thread Jens
Ah its also missing a default return value in your generated method:

public  T instantiate (String className) {
  if("MyPanel".equals(className)) {
 return (T) new MyPanel();
  }
  .
  if("MyPanel2".equals(className)) {
 return (T) new MyPanel2();
  }
  

  *return null; // no matches*
}


You can also always add the "-gen " option to your 
compiler args / run configuration. That way GWT will save all generated 
sources in your specified folder and you can actually see what has been 
generated.


-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/zK0WXAYW76YJ.
To post to this group, send email to google-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: Emulating Java Reflection with deferred binding

2011-08-09 Thread fabio.bozzo
it has changed from:

Type mismatch: cannot convert from MyPanel to T

to:

This method must return a result of type T

but... I AM returning T via cast... what??

-- 
You received 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: Emulating Java Reflection with deferred binding

2011-08-09 Thread fabio.bozzo
Nice idea, thank you but the error is still here:

[DEBUG] [main] - Rebinding com.bilancio.client.Reflection
[DEBUG] [main] - Adding '1' new generated units
[DEBUG] [main] - Validating newly compiled units
[ERROR] [main] - Errors in 'generated://
670356D9DA0D417BB8171499B4C4D57B/com/bilancio/client/
ReflectionImpl.java'
[ERROR] [main] - Line 9: This method must 
return a result of type
T
[INFO] [main] - See snapshot: /tmp/
com.bilancio.client.ReflectionImpl6488844579312624283.java

I added sourceWriter.println( "return (T) new " +
classType.getQualifiedSourceName( ) + "();" );

and modified the interface and implementation as you said :-(((

-- 
You received 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 karim duran
Hi Ashwin,

1) You can store user id in session ( http session ), this is very secure
way and a good practice.
2) you can store user id in crypted cookie ( less secure )
3) you can store user id in javascipt varaible ( more less secure, for
intranet only in my opinion)

These solutions (1 & 2)  are independant from GWT, it's HTTP protocol
specification.

See the J2EE API documentation (HttpSession, HttpServletResponse)

I hope it helps.

regards.

Karim Duran

2011/8/9 Ashwin Desikan 

> **
> 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 Receiver()
> {
>
> @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.
>

-- 
You received 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: Отг: Re: Отг: Handling next and prev buttons of SimplePager ??

2011-08-09 Thread Santu
My direct question is, when i click on the prev arrow button previous page 
is not displayed, instead progress bar is being
displayed ?? (here i am assume that pager holds the previous data so no need 
of call to the server, and itself displays the data).

is my assumption is correct ?? or is their any other way ??

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/zNb4q5s0cI8J.
To post to this group, send email to google-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: Calling a Java Method from Handwritten JavaScript

2011-08-09 Thread karim duran
Hi ASlak,

It should work. I already  did that.

Don't forget that, finally, all your java code will be translated in
optimized javascript.
I haven't enough element about your problem to really help you.

So, here's my proposition.

1) build your application as you usually do
2) run it in firefox
3) install firebug, a firefox extension wich provide a javascript debuger
with breakpoint management and step debuging
4) open tab "javascript" in firebug and set a breakpoint where your
javascipt method is called
5) watch your variables, fields...etc...and try  to analyse what is
happening.

I used this methodology to track some jsni method behaviour, difficult to
debug, from the point of view of java.

I hope it helps.

Regards.

Karim Duran

2011/8/8 ASlak 

> I have some code in my host html page that I would like to call one of
> my java methods from.
>
> The relevant part of the html looks like:
> 
> if(myCondition){
> sendRequest(myVar);
> }
> 
>
> I have a method in my java code for my gwt project that is called
> sendRequest.
>
> I am also using a method that looks like:
> public native void exportMethod(myApp app)/*-{
> $wnd.sendRequest =
> $entry(app.@com.myCompany.myProject.client.myClass::sendRequest(Ljava/
> lang/String;));
> }-*/;
>
>
> This is based off of what I found in the gwt documentation here:http://
> code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI.html
>
> The problem is that this is not working, and I am not sure why.
>
> I would appreciate it if anyone could give me a hint.
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Aw: Emulating Java Reflection with deferred binding

2011-08-09 Thread Jens
I think in your generated method you have to do an unchecked cast into T and 
its also nice if you let T extend Constructable to get at least some error 
when you try to assign the returned object to a type that does not implement 
Constructable, e.g.:

public  T instantiate (String className) {
  .
  .
  if("MyPanel".equals(className)) {
 return (T) new MyPanel();
  }
  
}



-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/4Xjf_KBbObcJ.
To post to this group, send email to google-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 next and prev buttons of SimplePager ??

2011-08-09 Thread Miroslav Genov
*If i am keeping track of cursors, and what if i click last page arrow 
button, then how do i get the last 20(assume) values ??*

   - If we are talking in GAE context, in order to do that, you have to have 
   a reference to the last cursor. I don't think that there is a way on GAE to 
   retrieve the last cursor, so you can create a work-around over this by using 
   a background task which iterates over list of entities and store the first 
   and the last cursor values when new entity is added or existing is updated. 
   I don't think that this is a good idea, because if you have a millions of 
   rows then you have to use tons of CPU time to end this job, and the data 
   that user sees will be in inconsistent state.

Why the people that are using your app are going to use that functionality ? 
I think that simple text search could help them to lookup for the thing that 
they are looking or maybe some kind of filter to filter data rows. 


   - If are talking about SQL database, then I'm not sure why you ever have 
   to use cursors at all. 

*if i click prev arrow button then how do i display the last page(here i am 
understanding that pager holds the previous data so no need of call to the 
server).*

   - You can keep a reference to the last cursor position. 

To be honest, I'm not sure that GWT page functionality is made for GAE or 
any other datastore that is using cursors. Just pagination and cursors don't 
fit well together. 

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



Emulating Java Reflection with deferred binding

2011-08-09 Thread fabio.bozzo
Here's some of my code:

My module contains:






public interface Constructable {}



public interface Reflection {
public  T instantiate( String className );
}

public class ReflectionGenerator extends Generator
{
@Override
public String generate( TreeLogger logger, GeneratorContext
context, String typeName ) throws UnableToCompleteException
{
TypeOracle oracle = context.getTypeOracle( );

JClassType markerInterface =
oracle.findType( Constructable.class.getName( ) );

List clazzes = new ArrayList( );

PropertyOracle propertyOracle = context.getPropertyOracle( );

for ( JClassType classType : oracle.getTypes( ) )
{
if ( !classType.equals( markerInterface ) &&
classType.isAssignableTo( markerInterface ) )
clazzes.add( classType );
}

final String genPackageName = "com.bilancio.client";
final String genClassName = "ReflectionImpl";

ClassSourceFileComposerFactory composer = new
ClassSourceFileComposerFactory( genPackageName, genClassName );
 
composer.addImplementedInterface( Reflection.class.getCanonicalName( ) );

composer.addImport( "com.bilancio.client.*" );

PrintWriter printWriter = context.tryCreate( logger,
genPackageName, genClassName );

if ( printWriter != null )
{
SourceWriter sourceWriter =
composer.createSourceWriter( context, printWriter );
sourceWriter.println( "ReflectionImpl( ) {" );
sourceWriter.println( "}" );

printFactoryMethod( clazzes, sourceWriter );

sourceWriter.commit( logger );
}
return composer.getCreatedClassName( );
}

private void printFactoryMethod( List clazzes,
SourceWriter sourceWriter )
{
sourceWriter.println( );

sourceWriter.println( "public  T instantiate( String
className ) {" );

for ( JClassType classType : clazzes )
{
if ( classType.isAbstract( ) )
continue;

sourceWriter.println( );
sourceWriter.indent( );
sourceWriter.println( "if( className.equals(\"" +
classType.getName( ) + "\")) {" );
sourceWriter.indent( );
sourceWriter.println( "return new " +
classType.getQualifiedSourceName( ) + "();" );
sourceWriter.outdent( );
sourceWriter.println( "}" );
sourceWriter.outdent( );
sourceWriter.println( );
}
sourceWriter.println( );
sourceWriter.outdent( );
sourceWriter.println( "}" );
sourceWriter.outdent( );
sourceWriter.println( );
}
}


I want to use it like that:
GWT.create(Reflection.class)).instantiate("MyPanel")

MyPanel class obviously implement 'Constructable' interface.
I keep getting:
Type mismatch: cannot convert from MyPanel to T

What do you think?

-- 
You received 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-09 Thread vaibhav gwt
Thanks for your reply.

I set fieldUpdaters for each of cell so any changed in cell reflected
to dataProviderList :)

**.getDataProvider().getList() returns updated List

On Aug 8, 10:52 am, Ashwin Desikan  wrote:
> 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 ListDataProvider dataProvider = new
> > ListDataProvider();
>
> > private void generateRecords( ) {
> >  List 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: Отг: Handling next and prev buttons of SimplePager ??

2011-08-09 Thread Santosh kumar
Hi Miroslav,

I have two questions:


   1. If i am keeping track of cursors, and what if i click *last page arrow
   button*, then how do i get the last 20(assume) values ??
   2. if i click *prev arrow button* then how do i display the last
   page(here i am understanding that pager holds the previous data so no need
   of call to the server).



On Tue, Aug 9, 2011 at 1:24 PM, Santosh kumar  wrote:

> Hi All,,
>
> Because of some reason, Discussion subject changed to "*Отг:* Handling
> next and prev buttons of SimplePager ??" for a reply.
> And here in gmail i got that reply as a new thread. So only i am replying
> from that new thread...
>
> *But my thread was:*
> Hi,
>
> I am using GWT 2.3 cellTable to display the data using SimplePager.
>
> And i am following the example *AsyncDataProvider* as it is...
>
> http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellWidgets.html
>
>
> AsyncDataProvider provider = new AsyncDataProvider() {
>   @Override
>   protected void onRangeChanged(HasData display) {
>
> // Here i am doing rpc call to get the data *using cursors*... and
> its working fine.
>
> updateRowData(start, data);
>   }
> };
>
> But each time when i click *next button* i am getting next 20 values from
> the data store using cursor. And it is displaying the data fine. No issues
> with next button.
>
> But when i click *prev button*, i am assuming that cellTable had stored
> the previously displayed data, and just want to display that existing data,
> and
> handle this case without making RPC ?? but here when i click on prev
> button, progress bar is being displayed... what is that wrong here ??
>
> (*DOUBT*: *on click of prev button*: what is the need of call to the
> server to get the duplicate data again ??)
>
> is their any other way to handle this case ?? Please any suggestions ??
>
>
> Thanks in advance
>
> --
> *S*antosh *K*umar *K
> ***
> *www.AccountingGuru.in *
>
>
>
> On Tue, Aug 9, 2011 at 11:51 AM, Miroslav Genov  wrote:
>
>> If you are using GAE cursors, then I'm mostly sure that they are forward
>> only cursors. So if you want to make your pager working, you had to keep all
>> received cursors in a list, to move back.
>>
>> So
>>
>> [page-1] - > cursor null
>> hit next
>> [page-2] -> cursor 1
>> hit previous
>> [page-1] -> cursor null
>>
>>
>> [page-1] - > cursor null
>> hit next
>> [page-2] -> cursor 1
>> hit next
>> [page-3] -> cursor 2
>> hit previous
>> [page-2] -> cursor 1 (so when cursor2 is returned, you know how to move to
>> page - 4, but don't know how to move to page 2.
>>
>> --
>> 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/-/5trJtiumaH8J.
>> To post to this group, send email to google-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 next and prev buttons of SimplePager ??

2011-08-09 Thread Santosh kumar
Hi All,,

Because of some reason, Discussion subject changed to "*Отг:* Handling next
and prev buttons of SimplePager ??" for a reply.
And here in gmail i got that reply as a new thread. So only i am replying
from that new thread...

*But my thread was:*
Hi,

I am using GWT 2.3 cellTable to display the data using SimplePager.

And i am following the example *AsyncDataProvider* as it is...

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


AsyncDataProvider provider = new AsyncDataProvider() {
  @Override
  protected void onRangeChanged(HasData display) {

// Here i am doing rpc call to get the data *using cursors*... and
its working fine.

updateRowData(start, data);
  }
};

But each time when i click *next button* i am getting next 20 values from
the data store using cursor. And it is displaying the data fine. No issues
with next button.

But when i click *prev button*, i am assuming that cellTable had stored the
previously displayed data, and just want to display that existing data, and
handle this case without making RPC ?? but here when i click on prev button,
progress bar is being displayed... what is that wrong here ??

(*DOUBT*: *on click of prev button*: what is the need of call to the server
to get the duplicate data again ??)

is their any other way to handle this case ?? Please any suggestions ??


Thanks in advance

-- 
*S*antosh *K*umar *K
***
*www.AccountingGuru.in *



On Tue, Aug 9, 2011 at 11:51 AM, Miroslav Genov  wrote:

> If you are using GAE cursors, then I'm mostly sure that they are forward
> only cursors. So if you want to make your pager working, you had to keep all
> received cursors in a list, to move back.
>
> So
>
> [page-1] - > cursor null
> hit next
> [page-2] -> cursor 1
> hit previous
> [page-1] -> cursor null
>
>
> [page-1] - > cursor null
> hit next
> [page-2] -> cursor 1
> hit next
> [page-3] -> cursor 2
> hit previous
> [page-2] -> cursor 1 (so when cursor2 is returned, you know how to move to
> page - 4, but don't know how to move to page 2.
>
> --
> 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/-/5trJtiumaH8J.
> To post to this group, send email to google-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 with Oracle

2011-08-09 Thread Gema matesanz
.
Hello, yes I've read the GAE Developer's Guide a few times and have not
found solution to my problem, say it's library but I make the corresponding
changes but still not working, you are kind enough to help


Un saludo
-
Gema Matesanz

-- 
You received 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 restore old value in cell if validation fails

2011-08-09 Thread vaibhav gwt
Hi Loan,

Thanks for your solution. It works but  Performance is too bad.
i.e clearing incorrect values for the whole row (say 5) takes too much
time(clearViewData+ redraw table)

Reverting N records will take too much time :(

Is there any fast way to update old row/object in celltable ?




 // when setting up table columns add the edit cells to this list
 List editCells = new ArrayList();
 

 // clear incorrect values for the whole row
 for (EditTextCell editCell : editCells)
 {
  editCell.clearViewData(KEY_PROVIDER.getKey(object));

 }
cellTable.redraw();
On Aug 3, 5:44 pm, Ioan Agopian  wrote:
> No, I don't think that's possible.
>
> But you can store all your edit cells in a list and clear them all at
> once, like this:
>
> // when setting up table columns add the edit cells to this list
> List editCells = new ArrayList();
> 
>
> // clear incorrect values for the whole row
> for (EditTextCell editCell : editCells)
> {
>      editCell.clearViewData(KEY_PROVIDER.getKey(object));
>
> }
>
> cellTable.redraw();
>
> Regards,
> Ioan
>
> On Aug 3, 12:25 pm, vaibhav gwt  wrote:
>
>
>
>
>
>
>
> > Thanks Loan :)
> > Icanrestoreoldvalueinspecificcellifvalidationfails.
>
> > Is it possible that all column values from particular rowrestoretooldvalue?
> > || ID || Dept || Code || RNO || RCode
> > || .||ZCode ||
> > || 1  ||  CS   || 001  ||  3      ||  030
> > || .||Q1||
> > || 2 ||  DS   || 001  ||  5      ||   040
> > || .||S1 ||
>
> > Suppose In above editable grid I changed 1st record i.e
> > || 1  ||  CS   || 001  ||  3      ||  030
> > || .||Q1||
> > changed to
> > || 1  ||  BP   || 010  ||  3      ||  003
> > ||.||Q1||
>
> > Is there any way torestoreoldobject(row) values instead to clearingcellview 
> > data for each column and redraw editable grid.
>
> > In Short revert record tooldvaluewhich is selected by our checkbox
> > (All or selected chkbox only i.e selectionModel.isSelected(object) )
>
> > My Grid contain (2-N) column so I am asking this question ?
>
> > On Aug 2, 5:42 pm, Ioan Agopian  wrote:
>
> > > Hi Vaibhav,
>
> > > Youcando it like this:
> > > // clear incorrect data
> > >cell.clearViewData(KEY_PROVIDER.getKey(object));
> > > cellTable.redraw();
>
> > > Wherecellis the TextEditCell that you're using for that column.
>
> > > Regards,
> > > Ioan
>
> > > On Aug 2, 12:59 pm, vaibhav bhalke  wrote:
>
> > > > Hi all,
>
> > > > PFA WebEx recording for Issue.
>
> > > > I want to used editableNumbercell like intger,decimal etc.. But there 
> > > > is no
> > > > such gwt widget present so I am using editable textcelland using
> > > >validationfor numbers when user updatevalueincell.
>
> > > > How to avoidcellediting whenvalidationfails.
>
> > > >ifvalidationfail then editable-textcellvaluerestored tooldvalue.How
> > > > to do that?
>
> > > > intgerColumn.setFieldUpdater(new FieldUpdater() {
> > > >         public void update(int index, RecordInfo object, Stringvalue) {
> > > >             // Called when the user changes thevalue.
> > > >            if(value.matches("(-)?(\\d){1,8}")){
> > > >                 object.setColumnInRecordEdited(true);
> > > >                 object.setValue(value);
> > > >                 RecordData.get().refreshDisplays();
> > > >             }else{
> > > >                 Window.alert("Specify valid integervaluefor parameter");
> > > >                 // How to restoldvaluehere? currently updatevalue
> > > > set tocell
>
> > > >             }
>
> > > >         }
> > > >     });
>
> > > > Any help or guidance in this matter would be appreciated.
>
> > > > --
> > > > Best Regards,
> > > > Vaibhav Bhalke
> > > > About me :http://about.me/vaibhavbhalke
>
> > > > 
>
> > > >  Issue1-How torestoreoldvalueincell(ifvalidationfails).wrf
> > > > 203KViewDownload

-- 
You received 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 port used by the Development engine

2011-08-09 Thread Ionuț G. Stan

On Aug/09/2011 02:52, Russ Abbott wrote:

Is it possible to change the port from 8084 to something else? I am
running another server on the same computer that uses that port.



There's a -port argument that does that.

http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#What_options_can_be_passed_to_development_mode

--
Ionuț G. Stan  |  http://igstan.ro

--
You received 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: For CellTable,is it possible to register MouseOut or MouseOver events to row?

2011-08-09 Thread Ionuț G. Stan

On Aug/08/2011 14:53, 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?



Maybe CellTable.addCellPreviewHandler will help you.

The event passed to the handler will contain the column index 
(CellPreviewEvent.getColumn), as well as the context 
(CellPreviewEvent.getContext). From the context you can extract the key 
that identifies the row (Context.getKey).


To restrict the event just to mouseover events, do a check inside the 
handler for:


  event.getNativeEvent().getType().equals("mouseover");


References:

http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/cellview/client/AbstractHasData.html#addCellPreviewHandler%28com.google.gwt.view.client.CellPreviewEvent.Handler%29

http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/view/client/CellPreviewEvent.html

http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/cell/client/Cell.Context.html

--
Ionuț G. Stan  |  http://igstan.ro

--
You received 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.2 in Eclipse Indigo??

2011-08-09 Thread Ionuț G. Stan

On Aug/09/2011 09:36, Rajesh Prabhu. R wrote:

Guys,

Any Idea on this??

On Aug 6, 4:03 pm, "Rajesh Prabhu. R"
wrote:

Hello All,

Is it possible to install GWT 2.2 in Eclopse Indigo 64 bit version?

If it is possible please let me know how to install that?

Thanking You.




Download the 2.2 version from here[1], extract it somewhere then go to 
Eclipse Preferences -> Google -> Web Toolkit, and add a new SDK using 
the path where you extract the 2.2 version. You can make it the default 
for every project by ticking that checkbox in the preferences pane or 
set it on a per project basis from the project properties pane.


[1]: http://code.google.com/webtoolkit/versions.html

--
Ionuț G. Stan  |  http://igstan.ro

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