NoSuchMethodError: com.google.gwt.util.tools.shared.Md5Utils.getMd5Digest

2016-08-16 Thread xybrek

When trying to run or compile this GWT error is thrown:

NoSuchMethodError: com.google.gwt.util.tools.shared.Md5Utils.getMd5Digest

Here is the properties file for our GWT app:

  
4.0.0.Beta2
2.8.0-beta1
1.5.11
UTF-8
1.0.2.Final
${project.artifactId}
8.1.0.Final

${project.build.directory}/wildfly-${as.version}
  

What could be wrong that prevents the app from running with 'mvn gwt:run 
-Pjboss7'?



--
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: how to transfer binary file from gwt java and external js ? how to save existed memory file to server from gwt java ?

2015-12-26 Thread xybrek

On 12/26/2015 3:13 PM, Lean Fu wrote:

I'm newbie to gwt, there're two questions needs community help, one is
how to transfer a binary file  between gwt java and external js ? how to
organize the parameters format in respective side ?
another question is how to upload a memory file to server , I don't
means that  FileUpload widget, in my case, I need to save a xml file
created by java to server , and server don't use GWT.

thanks in advance !

--
You received this message because you are subscribed to the Google
Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to
google-web-toolkit+unsubscr...@googlegroups.com
.
To post to this group, send email to
google-web-toolkit@googlegroups.com
.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


If your main concern is to send XML file to Server, and by not using GWT 
you mean not GWT-RPC then you could simply send the XML as plain text to 
the server using REST for example.


--
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: (GWT + GAE) vs. (GWT + Java + MySQL)

2015-10-11 Thread xybrek

On Saturday, 23 August, 2008 04:08 PM, jeya.balaji wrote:


relevant info:
sql2java has provision to generate gwt rpc code.


On Aug 22, 11:34 pm, Tee  wrote:

GWT + JAVA
- 100% Java
- Easy with RPC (grails plugin)
- Good document

GWT + GAE
- You must learn python (Django?)
- JSON + REST?
- Free hosting
- GAE API

I plan to use GAE with python on server side (Django)

On Aug 22, 10:51 pm, "yfa...@gmail.com"  wrote:


Hi All,



I would like to develop a web application related to news feeds. While
I sure that I will be using GWT for the client side, I am still unsure
about what to use on the server side:



1 - Pithon + JSON to interface with GWT and host the application on
GAE



2 - 100% Java and use MySQL and host the application somewhere else
(amazon??), and hope that GAE will support Java in the near future.



Thanks for sharing with me your thoughts and highlight pros and cons.



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
-~--~~~~--~~--~--~---




If you want to use 100% Java you can try GWT + GAE using Restlet 
Framework (http://restlet.com/) to provide Restful resource to the GWT 
client side. In fact, using Restlet you not only code 100% Java but also 
able to take advantage of Restlet libraries for seamless GWT and GAE 
integration, see 
http://restlet.com/technical-resources/restlet-framework/guide/2.3/extensions/gwt




--
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


GWTTestCase - HTMLUnit - No permitted Access-Control-Allow-Origin

2015-01-05 Thread Xybrek
When running `GWTTestCase` that call an external Restful service with 
GWT (Using Restlet-GWT) the app throws the error below.


**Error:**

Jan 05, 2015 1:24:41 PM 
com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl 
runSingleJob
SEVERE: Job run failed with unexpected RuntimeException: Wrapped 
java.lang.RuntimeException: No permitted Access-Control-Allow-Origin 
header.
net.sourceforge.htmlunit.corejs.javascript.WrappedException: 
Wrapped java.lang.RuntimeException: No permitted 
Access-Control-Allow-Origin header.
	at 
net.sourceforge.htmlunit.corejs.javascript.Context.throwAsScriptRuntimeEx(Context.java:1889)
	at 
com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.doSend(XMLHttpRequest.java:681)
	at 
com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.access$000(XMLHttpRequest.java:94)
	at 
com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest$1.run(XMLHttpRequest.java:603)
	at 
net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:602)
	at 
net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:507)
	at 
com.gargoylesoftware.htmlunit.javascript.background.JavascriptXMLHttpRequestJob.run(JavascriptXMLHttpRequestJob.java:36)
	at 
com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl.runSingleJob(JavaScriptJobManagerImpl.java:328)
	at 
com.gargoylesoftware.htmlunit.javascript.background.DefaultJavaScriptExecutor.run(DefaultJavaScriptExecutor.java:162)

at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.RuntimeException: No permitted 
Access-Control-Allow-Origin header.

... 9 more

From my research this seems to be an issue that HTMLUnit would not 
allow to access Cross-domain, is there a work around with this?


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


Running GWT in SuperDevMode (Maven)

2013-09-20 Thread Xybrek
Running $`mvn gwt:run-codeserver` throws this error:

[INFO] Webapp assembled in [1255 msecs]
[INFO] 
[INFO] --- maven-datanucleus-plugin:1.1.4:enhance (default) @ web ---
[WARNING] Could not transfer metadata asm:asm/maven-metadata.xml 
from/to local.repository (file:../../local.repository/trunk): No connector 
available to access repository local.repository 
(file:../../local.repository/trunk) of type legacy using the available 
factories AsyncRepositoryConnectorFactory, WagonRepositoryConnectorFactory
[WARNING] No files to run DataNucleus tool 
'org.datanucleus.enhancer.DataNucleusEnhancer'
[INFO] 
[INFO]  gwt-maven-plugin:2.5.1:run-codeserver (default-cli) @ web 
[INFO] 
[INFO] --- gwt-maven-plugin:2.5.1:run-codeserver (default-cli) @ web ---
[ERROR] java.lang.NoClassDefFoundError: 
com/google/gwt/core/ext/TreeLogger
[ERROR] at java.lang.Class.getDeclaredMethods0(Native Method)
[ERROR] at java.lang.Class.privateGetDeclaredMethods(Class.java:2442)
[ERROR] at java.lang.Class.getMethod0(Class.java:2685)
[ERROR] at java.lang.Class.getMethod(Class.java:1620)
[ERROR] at 
sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:488)
[ERROR] at 
sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:480)
[ERROR] Caused by: java.lang.ClassNotFoundException: 
com.google.gwt.core.ext.TreeLogger
[ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
[ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
[ERROR] at java.security.AccessController.doPrivileged(Native Method)
[ERROR] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
[ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
[ERROR] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
[ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
[ERROR] ... 6 more
[ERROR] Exception in thread main 
[INFO] 

[INFO] BUILD FAILURE
[INFO] 

[INFO] Total time: 22.901s 
[INFO] Finished at: Fri Sep 20 15:33:27 CST 2013
[INFO] Final Memory: 46M/356M

What could be the problem with this? The GWT version my app uses is `2.5.1` 
and also with the GWT Maven plugin.

I'm not sure if my app is missing something. 

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


Download data from URL with GWT

2013-09-08 Thread Xybrek
This is a typical img with src having a blob:

img class=gwt-Image src=blob:a7cb8111-cf35-4c3a-8295-bdda0ff66caf

Is there a way for my GWT app to download get his blob data for client side 
manipulation?

I've tried this: 

private native String blobToBase64(String source)/*-{
var xhr = new XMLHttpRequest();
xhr.open('GET', source, true);
xhr.responseType = 'blob';
xhr.onload = function(e) {
  if (this.status == 200) {
var myBlob = this.response;
alert(Converted to Blob);
  }
};
xhr.send();
}-*/;

However, alert box does not show up when passed the blob source, so it does 
not work. And the `this.status` response is `0`

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


Upload blob: image from GWT

2013-09-05 Thread Xybrek
I managed to get a blob and create a URL for it which I put in a img tag 
src attribute to show the image like this:

img class=gwt-Image data-field=image 
src=blob:http%3A//127.0.0.1%3A/757c3c87-de5c-4c54-897e-9d043bc2895c

My question would be how would I upload this blob via GWT FileUpload with 
com.google.gwt.user.client.ui.FormPanel? 

Also the com.google.gwt.user.client.ui.FileUpload does not have a 
setFilename method to programatically set the filename as oppose to 
selecting via File/Window box. 

So, it seems its like impossible to do this with GWT, I've seen pure 
Javascript solution. 

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


Testing GWT + GAE app locally (not DevMode)

2013-04-30 Thread Xybrek
`DevMode` works just fine when testing a GWT + GAE application. However the 
problem arises when we try to deploy our app in GAE cloud, and suddenly we 
get:


GWT module 'app' need to be recompiled

After a long update/upload time. The issue now is how can we test locally 
and be sure at least that we won't suddenly get this error. In a typical 
GWT (non-GAE) its very easy to do, just deploy it to a local Tomcat of 
JBoss AS server. 

However we can't do this for a GAE app. So what are the options to achieve 
this?

 - Where to deploy a GWT+GAE app to be able to see if the GWT needs to be 
recompiled or what, before we even try to upload it.
 - Or are there any better way? `SuperDevMode` perhaps? 

-Xybrek

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




Make GWT app run side by side with a Rest API

2013-04-06 Thread Xybrek

When using GWT we use this URL forms:

Debug:

http://127.0.0.1:/index.html?gwt.codesvr=127.0.0.1:9997#hash

Compiled:

http://127.0.0.1:/index.html#hash

I need to be able to access the underlying Rest API.

Which I need to map within the root

http://127.0.0.1:/{contentId}

However this will sure break the GWT application access, and that it 
will not be accessible anymore.


How can I make this work together, considering the main requirement to 
have the Rest API in the root?



**web.xml**



?xml version=1.0 encoding=UTF-8?
   web-app version=3.0 xmlns=http://java.sun.com/xml/ns/javaee;
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd;



context-param
param-nameresteasy.guice.modules/param-name

param-valueorg.jboss.errai.ui.demo.server.MyModule/param-value
/context-param

listener
listener-class

org.jboss.resteasy.plugins.guice.GuiceResteasyBootstrapServletContextListener
/listener-class
/listener

servlet
servlet-nameResteasy/servlet-name
servlet-class

org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher
/servlet-class
/servlet

servlet-mapping
servlet-nameResteasy/servlet-name
url-pattern/*/url-pattern
/servlet-mapping

/web-app


--

Anyone can share some ideas?

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




Help needed for building a GWT Waveform library

2012-10-28 Thread Xybrek
I'm trying to build a open source GWT audio recorder waveform library, this 
is the showcase site:

http://recorderwave.appspot.com/Showcase.html

*Run Demo Wave:*

Works just fine.

*Recording: *

The waveform rendering out of real time data from the flash interface is 
not really good, the performance is not really good, and it is really not 
working properly. 
Also, I am not sure if my sampling strategy is correct. And if you look at 
the Chrome/Firefox console there are many errors although it renders 
somehow. And most 
importantly the recording takes place within 10 seconds but the waveform 
renders goes beyond that time.

If you are interested with having this library with GWT, maybe you can 
check out the code:

http://bit.ly/PehghO

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



Generating waveform with GWT

2012-10-26 Thread Xybrek
Hello this is a showcase of a generating Waveforms with GWT:

http://wavegwt.appspot.com/Showcase.html

The source is still under development, the showcase runs with desktop 
browsers but doesn't work with mobile browsers.

Anyway, this is just a test.

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



Unrecognized image file format - UiBinder

2012-10-13 Thread Xybrek
I'm getting this error when I put

ui:with field='res' type='com.mycomp.mygwt.client.Resources'/

In my UiBinder file where the error is:

[DEBUG] [MyGWT] - Rebinding com.mycomp.mygwt.client.Resources
[DEBUG] [MyGWT] - Invoking generator 
com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
[DEBUG] [MyGWT] - Preparing method logo
[TRACE] [MyGWT] - Adding image 'com.mycomp.mygwt.client.Resources.logo'
[ERROR] [MyGWT] - Unrecognized image file format
[ERROR] [MyGWT] - Generator 
'com.google.gwt.resources.rebind.context.InlineClientBundleGenerator' threw 
an exception while rebinding 'com.mycomp.mygwt.client.Resources'

The image file in the path is a PNG file which I use in my previous GWT 
application. I really don't know why GWT is throwing the error.

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



Inserting a DIV in a GWT Panel

2012-05-06 Thread Xybrek
I have this DIV on my application jsp page which I need to inject in 
to a GWT VerticalPanel. Coded on top of the iframe tag which contains 
__gwt_historyFrame :


**index.jsp**

div class=footer id=footer style=display:none
pCopyright Š 2012 MyCompany. All Rights Reserved./p
a href=#FAQ/a
a href=#Privacy/a
a href=#API/a
a href=#Contact Us/a
/div

I am inserting the DIV to the view with this code:

DivElement footer = (DivElement) document.getElementById(footer);
verticalPanel.getElement().appendChild(footer);

However it does not show up, although the `getElementById` does not 
return `null`


What is the correct way to do this?

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



Injecting dependencies with GIN/Guice

2012-05-01 Thread Xybrek

I typically have this kind of code pattern in my GWT project:

Menu errorMenu = new Menu(user, userController, -1);
Menu  searchMenu = new Menu(user, userController, 0);

errorView.setMenu(errorMenu);
searchView.setMenu(searchMenu);
How do I inject a Menu instance in the ErrorView and other views using 
Gin/Guice:


public ErrorView implements View {
 // Inject menu instance here
 private Menu menu;
}
Such that, I don't have to manually create and set objects?

Also for the Menu class, how can I inject the user and 
userController objects so I don't have to pass it on each Menu 
instance every time it is instantiated.



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

2012-03-08 Thread Xybrek

On 3/8/2012 11:33 PM, Akram Moncer wrote:

hello everybody;

can some one help me and give me how can i create webapp with spring
framwork on back-end and GWT on front-end ?

--
Akram MONCER
Personne

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


In most cases, Spring code is in the GWT RPC (server-side code). Best 
approach would be through maven, also you might want to use Spring STS 
Plugin if you are using Eclipse.


If you are able to have your GWT project a Spring nature then on your 
GWT RPC code, you can apply the standard Spring codes, i.e

in your ServiceImpl code you can override:

@Override
public void init() ...
{
 super.init();
 WebApplicationContext ctx = 
WebApplicationContextUtils.getWebApplicationContext(getServletContext());

 // Beans
 dao = (MyDao)ctx.getBean(myDao);
}

@Override
public void doSomething() {
 String something = dao.getSomething(...);
}

From here, you can use the beans to do something your app need to 
accomplish.


Of course you should fix your applicationContext.xml and web.xml which 
you can easily search the web on how to do this.


This is just the basic way to integrate GWT and Spring, as the topic is 
very broad, you can integrate other complex things like Spring 
authentication etc.


Hope this helps.

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



Re: How to wrap a “submit button” with GWT?

2012-01-30 Thread Xybrek

On 1/30/2012 4:33 PM, Thomas Broyer wrote:



On Monday, January 30, 2012 8:51:51 AM UTC+1, Xybrek wrote:

I am getting an error when I try to wrap a submit button with GWT:

Caused by: java.lang.AssertionError: Child cannot be null
at com.google.gwt.dom.client.Node$.isOrHasChild$(Node.java:278)
at com.google.gwt.user.client.ui.Button.wrap(Button.java:55)


That means the argument to Button.wrap() is 'null' (debug 101: step into
the code; it's open source, so read the source!), i.e. in your case
Document.get().getElementById(submit) returns 'null'.

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


Yes I debug it. And yes, I see that 
Document.get().getElementById(submit) returns null. However, it should 
not be null since there is a button in the HTML file that has that id.


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



How to wrap a “submit button” with GWT?

2012-01-29 Thread Xybrek

I am getting an error when I try to wrap a submit button with GWT:

Caused by: java.lang.AssertionError: Child cannot be null
at com.google.gwt.dom.client.Node$.isOrHasChild$(Node.java:278)
at com.google.gwt.user.client.ui.Button.wrap(Button.java:55)
HTML Code:

div style=display:none
form id=login_form action=javascript:;
input id=username type=text
input id=password type=password
button type=button id=submit name=submit value=Submit
/form
/div
Java Code (GWT):

loginButton = Button.wrap(Document.get().getElementById(submit));
Is there any way to wrap a submit button?

--
You received this message because you are subscribed to the Google Groups Google 
Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: MVC and Code Splitting

2012-01-15 Thread Xybrek

On 1/15/2012 4:12 AM, Thomas Broyer wrote:



On Saturday, January 14, 2012 8:12:44 PM UTC+1, Xybrek wrote:

In my application there are many views and controllers, however not all
are needed at once, mostly the view that is loaded depends on the URL
fragment(s).

In what way or pattern a Controller and View be wrapped in a
GWT.runAsync so that only controllers and views needed are loaded?

I just need to get some ideas on how I will implement this.

In my case, I have a home-grown MVC. My application parse the Url
fragment and then show() the appropriate view. In which the
parameter of
the show() function is a key String that will then be used to get the
views that are stored in a HashMap.

Everything, the Controllers, Models and Views are instantiated during
onModuleLoad()

Any ideas?


Start by lazy instantiating your components, then throwing runAsync in
will become much easier.

If you have interfaces, you could try AsyncProxy instead; but if you
want lazy-loading, start by architecturing your app around that pattern.

Before:
// in onModuleLoad
map.put(foo, createFoo());
map.put(bar, createBar());
// then retrieving the objects:
return map.get(key);

After:
//when retrieving the objects
Object o = map.get(key);
if (o == null) {
if (foo.equals(key)) {
o = createFoo();
} else if (bar.equals(key)) {
o = createBar();
}
map.put(key, o);
}
return o;

Adding runAsync would mean changing the getViewFromToken from
synchronous to asynchronous, with a RunAsyncCallback as an additional
argument.

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



That's a nice pattern. I did applied this approach and works. However, 
my problem is not solved yet, because the GWT-Recaptcha is still causing 
request to a external site even if I have used that approach.


I am yet to understand how to fix this thing.

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



Activity Feed widget

2012-01-15 Thread Xybrek
Hi is there any Activity feed widget (much like those found with Social 
Network sites) that is for GWT. I'm not looking for full-featured 
widget, but just something to start with.


Cheers.

--
You received this message because you are subscribed to the Google Groups Google 
Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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 GWT Window Builder plugin (Eclipse)

2012-01-14 Thread Xybrek

Hi,

I have some problem with GWT WindowBuilder that I have published the 
details through Stackoverflow:


http://stackoverflow.com/q/8836214/785349

Cheers.

--
You received this message because you are subscribed to the Google Groups Google 
Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: Create local application?

2012-01-14 Thread Xybrek

On 1/14/2012 10:52 PM, Jan wrote:

Hi,

is it possible to create a local application which does not need any
server or anything, so i have just a simple javascript/html/file
combination that i can give to someboy and it works?

I tried to compile the gwt sample application and tried to just open
the .html file in the war folder, but the button is not shown.

Thank you very much!



Hi, you should load the war folder into a servlet container like Tomcat 
for it to work. If you just need to create something stand-alone you 
better use JQuery instead.


Cheers.

--
You received this message because you are subscribed to the Google Groups Google 
Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: History onValueChange() not called when application is loaded?

2012-01-14 Thread Xybrek

On 1/13/2012 8:48 PM, hbf wrote:

Dear all,

I am following the instructions for History management
http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsHistory.html
but even though I register my history handler in onModuleLoad(), it
does not fire when I load my application with a fragment in the URL.

It does fire, however, when I manually change the fragment in the
browser URL field.

Does anybody have any idea what I might be doing wrong?

Thanks,
Kaspar



This happened to my application before, maybe you can try implementing 
the interface instead of History.addValueChangeHandler


Like this:

public class MainEntryPoint implements EntryPoint, ValueChangeHandler {
// stuff
@Override
public void onValueChange(ValueChangeEvent event) {
// do your stuff
}
}

Cheers.

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



MVC and Code Splitting

2012-01-14 Thread Xybrek
In my application there are many views and controllers, however not all 
are needed at once, mostly the view that is loaded depends on the URL 
fragment(s).


In what way or pattern a Controller and View be wrapped in a 
GWT.runAsync so that only controllers and views needed are loaded?


I just need to get some ideas on how I will implement this.

In my case, I have a home-grown MVC. My application parse the Url 
fragment and then show() the appropriate view. In which the parameter of 
the show() function is a key String that will then be used to get the 
views that are stored in a HashMap.


Everything, the Controllers, Models and Views are instantiated during 
onModuleLoad()


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.



Cannot apply CSS through GWT WindowBuilder editor for a multiple modules/Entrypoint application

2012-01-12 Thread Xybrek
I usually use GWT WindowBuilder editor to design my GWT application UI, 
however I refactored my application to implement multiple 
modules/EntryPoint as described in my other post: 
http://stackoverflow.com/questions/8834946/dealing-with-rpc-when-doing-multiple-gwt-modules


Now I am getting this error There are no CSS files referenced from 
modules HTML. when I click the CSS button from the Property Editor of 
the WindowBuilder editor.


Is there any way to fix this error.

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



Re: Anyone knows GWT Multipage Framework?

2011-12-10 Thread Xybrek

On 12/10/2011 4:09 AM, Jens wrote:

A first simple solution would be to configure your web server to
redirect requests from http://mysite.com/ to http://mysite.com/index.html.

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


Yes, that's what I did. Using url rewrite filter.

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



Anyone knows GWT Multipage Framework?

2011-12-09 Thread Xybrek

Hi, anyone here knows http://code.google.com/p/gwt-multipage/ ?

I have some specific problems with the framework, is there any other GWT 
framework that allows multipage function, like gwt-multipage? It can map 
EntryPoints and load it based on the html request.


Like: mysite.com/index.html or mysite.com/somethingelse.html will load 
two separate entry ponts for each.


Problem with gwt-multipage is that if the access is coming from 
mysite.com/ (without specifying the html to load) it breaks and 
sometimes loads random entry points if I am not mistaken.


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.



Deploy GWT app in Tomcat as ROOT

2011-12-07 Thread Xybrek

Hi,

I've been trying to deploy my gwt app in Tomcat server but I am having 
problem running the application rpc in the ROOT, I mean, if the app is 
deployed like:


webapps/mygwapp

I works, if the servlet defined in the web.xml is like this:

  servlet-mapping
servlet-namegreetServlet/servlet-name
url-pattern/mygwtapp/greet/url-pattern
  /servlet-mapping

In this case: http://localhost:8080/mygwtapp/greet works just fine.

However if I move the app inside the ROOT, that is renamed the folder 
mygwtapp to ROOT


The applications RPC fails. If I change the the url mapping to just 
url-pattern/greet/url-pattern


It still wont work. Any ideas?

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: Deploy GWT app in Tomcat as ROOT

2011-12-07 Thread Xybrek

On Thursday, 08 December, 2011 01:45 PM, Kanagaraj M wrote:

The problem is in your @RemoteServiceRelativePath(greet)
The above always append(as prefix) your app name with 'greet', so it
would expect a servlet mapping /mygwtapp/greet
Try using ServiceDefTarget

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


I see, then I can then rename the url-pattern into just 
url-pattern/greet/url-pattern?


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



Re: Deploy GWT app in Tomcat as ROOT

2011-12-07 Thread Xybrek

On Thursday, 08 December, 2011 01:45 PM, Kanagaraj M wrote:

The problem is in your @RemoteServiceRelativePath(greet)
The above always append(as prefix) your app name with 'greet', so it
would expect a servlet mapping /mygwtapp/greet
Try using ServiceDefTarget

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


How to map the client-side service to match the servlet mapping '/greet'?

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



Re: Deploy GWT app in Tomcat as ROOT

2011-12-07 Thread Xybrek

On Thursday, 08 December, 2011 02:01 PM, Kanagaraj M wrote:

GreetingServiceAsync serviceAsync=  
(GreetingServiceAsync)GWT.create(GreetingService.class);
ServiceDefTarget  endpoint=  (ServiceDefTarget)  serviceAsync;
String  moduleRelativeURL=http://localhost:8080/  
http://localhost:8080/mygwtapp/greet+  greet;

endpoint.setServiceEntryPoint(moduleRelativeURL);

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


Hi I see thanks, however I am still trying to remember how I did it 
before. I am not sure I used that kind of approach you suggested.


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

2011-09-14 Thread Xybrek
Has anyone here have worked with GWT Multipage 
(http://code.google.com/p/gwt-multipage/) ?


There are scenarios when accessing the GWT app, that the gwt-multipage 
Entrypoint selection shows up, I need to prevent this event.



--
You received this message because you are subscribed to the Google Groups Google 
Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: Error while compiling gwt module ?.

2011-08-23 Thread Xybrek

Looks like you have forgotten to inherit a required module?

Skimming to the error I can see: No source code is available for type 
ValidatorFactory; did you forget to inherit a required module?




On Tuesday, 23 August, 2011 01:28 PM, suresh babu wrote:

Hi,

I am using *Gwt 2.3.0* and Eclipse Version: 3.6.1 IDE, when I try to
compile my module I am getting following error:

Compiling module com.veersoft.gwt.AgeingReport
Validating newly compiled units
   [ERROR] Errors in
'jar:file:/D:/suresh/gwt-2.3.0/gwt-user.jar!/com/google/gwt/editor/client/EditorDriver.java'
  [ERROR] Line 20: The import
javax.validation.ConstraintViolation cannot be resolved
  [ERROR] Line 97: ConstraintViolation cannot be resolved to a type
   [ERROR] Errors in
'jar:file:/D:/suresh/gwt-2.3.0/gwt-user.jar!/com/google/gwt/editor/client/impl/AbstractSimpleBeanEditorDriver.java'
  [ERROR] Line 28: Name clash: The method
setConstraintViolations(IterableConstraintViolation?) of type
BaseEditorDriverT,E has the same erasure as
setConstraintViolations(IterableConstraintViolation?) of type
EditorDriverT but does not override it
   [ERROR] Errors in
'jar:file:/D:/suresh/gwt-2.3.0/gwt-user.jar!/com/google/gwt/editor/client/impl/BaseEditorDriver.java'
  [ERROR] Line 31: The import
javax.validation.ConstraintViolation cannot be resolved
  [ERROR] Line 67: ConstraintViolation cannot be resolved to a type
   [ERROR] Errors in
'jar:file:/D:/suresh/gwt-2.3.0/gwt-user.jar!/com/google/gwt/editor/client/impl/SimpleViolation.java'
  [ERROR] Line 25: The import
javax.validation.ConstraintViolation cannot be resolved
  [ERROR] Line 40: ConstraintViolation cannot be resolved to a type
  [ERROR] Line 43: ConstraintViolation cannot be resolved to a type
  [ERROR] Line 44: Missing code implementation in the compiler
  [ERROR] Line 49: ConstraintViolation cannot be resolved to a type
  [ERROR] Line 49: Missing code implementation in the compiler
  [ERROR] Line 70: ConstraintViolation cannot be resolved to a type
  [ERROR] Line 72: ConstraintViolation cannot be resolved to a type
  [ERROR] Line 73: ConstraintViolation? cannot be resolved to
a type
  [ERROR] Line 77: ConstraintViolationcapture#2-of ? cannot be
resolved to a type
  [ERROR] Line 81: ConstraintViolationcapture#3-of ? cannot be
resolved to a type
  [ERROR] Line 89: ConstraintViolationcapture#4-of ? cannot be
resolved to a type
  [ERROR] Line 93: ConstraintViolationcapture#5-of ? cannot be
resolved to a type
  [ERROR] Line 98: ConstraintViolation cannot be resolved to a type
   [ERROR] Errors in
'jar:file:/D:/suresh/gwt-2.3.0/gwt-user.jar!/com/google/gwt/editor/client/testing/MockSimpleBeanEditorDriver.java'
  [ERROR] Line 26: The import
javax.validation.ConstraintViolation cannot be resolved
  [ERROR] Line 35: The type MockSimpleBeanEditorDriverT,E must
implement the inherited abstract method
EditorDriverT.setConstraintViolations(IterableConstraintViolation?)
  [ERROR] Line 107: Name clash: The method
setConstraintViolations(IterableConstraintViolation?) of type
MockSimpleBeanEditorDriverT,E has the same erasure as
setConstraintViolations(IterableConstraintViolation?) of type
EditorDriverT but does not override it
  [ERROR] Line 108: ConstraintViolation cannot be resolved to a type
   [ERROR] Errors in
'jar:file:/D:/suresh/gwt-2.3.0/gwt-user.jar!/javax/validation/super/javax/validation/Configuration.java'
  [ERROR] Line 93: TraversableResolver cannot be resolved to a type
  [ERROR] Line 105: ConstraintValidatorFactory cannot be
resolved to a type
  [ERROR] Line 182: TraversableResolver cannot be resolved to a type
  [ERROR] Line 182: No source code is available for type
TraversableResolver; did you forget to inherit a required module?
  [ERROR] Line 194: ConstraintValidatorFactory cannot be
resolved to a type
  [ERROR] Line 194: No source code is available for type
ConstraintValidatorFactory; did you forget to inherit a required module?
  [ERROR] Line 202: ValidatorFactory cannot be resolved to a type
  [ERROR] Line 202: No source code is available for type
ValidatorFactory; did you forget to inherit a required module?
   [ERROR] Errors in
'jar:file:/D:/suresh/gwt-2.3.0/gwt-user.jar!/javax/validation/ConstraintViolationException_CustomFieldSerializer.java'
  [ERROR] Line 30: ConstraintViolationException cannot be
resolved to a type
  [ERROR] Line 34: ConstraintViolationException cannot be
resolved to a type
  [ERROR] Line 34: No source code is available for type
ConstraintViolationException; did you forget to inherit a required module?
  [ERROR] Line 39: ConstraintViolation cannot be resolved to a type
  [ERROR] Line 39: ConstraintViolation cannot be resolved to a type
  

How to show a User view in GWT app by typing in browser address bar

2011-08-22 Thread Xybrek
I have this gwt app which say, runs on http://mygwtapp.com/ (which is 
actually: http://mygwtapp.com/index.html)


The application host a database of users, queried by searching usernames 
using the search view and results are shown in the user results view. 
Pretty useful enough. However I need to bb add a way that user view can 
be viewed by just typing http://myapp.com/user123


I am thinking that the question I have here, the answer is a server side 
solution. However if there's a client side solution, please let me know.


One fellow here in StackOVerflow suggested that the format would be like 
this: mygwtapp.com/index.html#user123 however the format is important to 
be like: http://myapp.com/user123


I have tried using GWT Fragment Identifier approach well and works well 
when the app is in debug mode and when deployed in Tomcat it works when 
the main page has loaded already. This approach though it works the page 
is not bookmark-able, i.e. when users type 
http://myapp.com/index.html#user123 in the browser I get a blank page.


Is there any way to achieve this kind of feature?

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



Re: Aw: How to show a User view in GWT app by typing in browser address bar

2011-08-22 Thread Xybrek

On Tuesday, 23 August, 2011 01:08 AM, Jens wrote:

You have to use redirect rules on your web server, e.g. nginx, apache,
tomcat, etc. That way you can deliver your app's index.html for
different URLs based on regular expressions. Once your server delivers
your index.html you can do Window.Location.getPath() in your EntryPoint
and then do whatever you have to do.

The only downside is, that if your user names doesn't follow a specific
pattern then you have to redirect nearly every request to your
index.html (you would exclude your GWT-RPC/RequestFactory servlet URLs
and in general all URLs that point to a file that really exists on your
server). So you loose HTTP 404 errors on your web server because you can
not decide if the request, that will point to a folder/file that does
not exist on your server, e.g. /user123, is wrong and you should do a
404 or if its wrong but you have to redirect to index.html. If you want
to keep 404's I think you have to change your desired URL to something like:
http://app.com/u/username. That way you could redirect only if you
receive a request that starts with /u/.

A nice way to make your GWT pages bookmarkable is to use GWT's places
framework. GWT Places uses the hash fragment of the URL to store
information about the place (what place is active and what application
state belongs to that place).

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



So you mean with gwt places when user type in the browser url like 
http://mygwtapp.com/user456 it will show the view for the user? Even if 
user page has not been browsed in the browser used? I am really 
unfamiliar with gwt places.


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

2011-06-30 Thread Xybrek
Hi, I need to get the underlying object of a GWT frame, for reason that 
I need to modify the html content of the Frame. Any ideas on how to 
achieve it? 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: Very confusing aspect of MVP documentation!

2011-06-30 Thread Xybrek

On Friday, 01 July, 2011 04:13 AM, cri wrote:

If you go to 
http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html,
you'll see the note:

**
Strictly speaking, MVP architecture is not concerned with browser
history management, but Activities and Places may be used with MVP
development as shown in this article. If you're not familiar with MVP,
you may want to read these articles first:

 Large scale application development and MVP, Part I
 Large scale application development and MVP, Part II
**

This has sent two of our development teams off in the wrong direction.
I would be willing to venture that it has confused others as well.

The problem is that folks go into the Part I and II articles and
assume that GWT's MVP framework is being described and they go off and
duplicate it. But these articles don't describe GWT's *current* MVP
framework. Instead, the articles describe an approach to MVP that
preceded GWT official support.

Personally, I think that the reference to these articles should be
removed from the MVP documentation pages so folks won't go merrily
down the wrong path as others have.



What is the best MVP we can use with GWT? I am currently looking for 
some lightweight MVP framework with some samples that will give me the 
scaffoldings. With the connection to a database, through the RPC. I am 
also trying to understand how login-logout fits the MVP scenario and how 
when user is logged in the view is updated as data is modified in the 
database. I cannot see any example having a RPC service which connects 
to database, say through hibernate. - Xybrek


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

2011-06-30 Thread Xybrek

On Friday, 01 July, 2011 04:03 AM, isern wrote:

Hello! I have a question to you guys:

What would you say it is the best way to lay out a form in GWT?

I read somewhere in the group Grid and FlexTable approaches. Grid
seems to be not very flexible and FlexTable doesn't look UIBinder
friendly

So I'm thinking about using pure CSS and divs.

What approach looks better to you?


Thanks a lot in advance.

J.



HI, I use FlexTable or Grid with GWT Designer. Cheers.

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



Re: How to open a new EntryPoint file from other EntryPoint file

2011-06-30 Thread Xybrek

On Friday, 01 July, 2011 12:59 AM, Ashish wrote:

Hi

I need your help.

In my GWT project I have two module files  like below..


First File
public class GTDWeb1 implements EntryPoint{

 public void onModuleLoad() {
 --
 -

--- here is onClick event
   }

}


Second File
public class GTDWeb2 implements EntryPoint{

 public void onModuleLoad() {
 --
 -
   }

}


In the first file GTDWeb1 there is one onClick event from that event
when it will run I need to open a new window which contain second file
out GTDWeb2.

Coukd you please help me on this...

thanks in advance



I am not sure why you need to create two EntryPoint, anyway, in case you 
need to fire an event without parent-child relationship in the classes, 
you can always use the Delegator pattern. Which I have used in many 
cases of my gwt applications. If you can elaborate maybe I can help.


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

2011-06-29 Thread Xybrek
Hi, is there a way to disable GWT Frame to redirect and change the 
browser address? Problem is that its causing the browser to replace the 
URL and load a page which closes the Hosted GWT app in the same browser. 
Thanks in advance.


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



Re: Detect when IFrame URL changes?

2011-06-05 Thread Xybrek

On Tuesday, 23 March, 2010 02:48 AM, Skyfort wrote:

Well, I discovered that GWT handles the whole invisible-IFrame thing
for posts, itself. So that's good news :-)

But I still don't see the onSubmitComplete handler ever getting
accessed. :(

On Mar 22, 11:33 am, Skyfortskyf...@gmail.com  wrote:

Here's a tricky thing (for me, at least ;)...I need to submit a Form
and load the results into a NamedFrame. So the URL of the NamedFrame
will either be redirected to a Success page or a Failure page.

My problem is that I do not know how to detect when the IFrame has
loaded. I thought OnSubmitComplete might be the answer, but it doesn't
seem to be firing. Anyone know how to tell when a NamedFrame's URL has
been changed, or when the response from a form submit has been
completely returned?

Thanks!




Hi Skyfort, it's been a year since this post. Have you solved this 
issue, I'm quite having the same problem.


Thanks,
Xybrek

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

2011-06-03 Thread Xybrek

On Friday, 03 June, 2011 04:30 AM, khiem nguyen wrote:

404 means not found

try to print out your request-url first to see if it matches
host:port/mycompany/sayHello or not.
i think it will not match, your request url will also include your
gwt-module-name in the path



On Thu, Jun 2, 2011 at 8:15 PM, Ybrek
xyb...@gmail.com
mailto:xyb...@gmail.com wrote:

Hi i'm trying to access a simple servlet from within GWT (dev mode):

The basic idea is to get the simple response from the servlet and then
show it to GWT client side.

I think I'm missing something here or have misconfigured the code, I
presume in the RequestBuilder part or in the url-pattern. I'm always
getting 404 response.

Can anyone help? Cheers, Ybrek



SayHelloServlet.java

package com.mycompany.server;

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class SayHelloServlet extends HttpServlet {
  public void doGet(HttpServletRequest request,
HttpServletResponse response)
  throws ServletException, IOException {
PrintWriter out = response.getWriter();
out.println(Hello!!!);
  }
}


ServletDemo.java

package com.mycompany.client

public class ServletDemo implements EntryPoint {
..
public void onModuleLoad() {
...
makeServletCall();
...

}
..
   public void makeServletCall() {
String url = GWT.getHostPageBaseURL() + sayHello;;
RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,
URL.encode(url));

try {

builder.sendRequest(null, new RequestCallback(){

public void onError(Request request,
Throwable exception) {
Window.alert(Error (+
exception +));
}

public void
onResponseReceived(Request request,
Response response) {
if (200 ==
response.getStatusCode()) {
Window.alert(the
string: + response.getText());
}
else {
// Handle the error. Can get
the status text from
response.getStatusText()
Window.alert( Connected
with error(maybe):  +
response.getText());
}

}});

} catch (Exception e) {
GWT.log(e.toString());
Window.alert(Whoosps  + e.toString());
}
}
...
}

Here's the web.xml in the war folder:

web.xml

web-app
...
servlet
servlet-namesayHelloServlet/servlet-name
servlet-classcom.mycompany.server.SayHelloServlet/servlet-
class
/servlet

servlet-mapping
servlet-namesayHelloServlet/servlet-name
url-pattern/mycompany/sayHello/url-pattern
/servlet-mapping
...
/web-app

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


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


Hi thanks, the problem is with the url-pattern and how I call it with 
the RequestBuilder. Works now. -Xybrek


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



Catch Frame widget GET Method

2011-06-03 Thread Xybrek

Hi,

When I load a URL into a 'Frame' widget and from there click some web 
links I can see 'GET' Method showing in Eclipse' console window. So with 
this I have place GWT.log to see if I can catch it from here:


Frame myframe = new Frame(some_url_here);

myframe.addLoadHandler(new LoadHandler(){
@Override
public void onLoad(LoadEvent event) {
GWT.log(@myframe onLoad event:  + event.toString());
}});

What I was hoping is to catch the GET method / event from that 'click' 
on the Frame widget?
Any ideas where to catch these events? Well, to modify it before it goes 
out.


Thanks,
Xybrek

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



Catch Frame widget GET event

2011-06-03 Thread Xybrek

Hi,

When I load a URL into a 'Frame' widget and from there click some web 
links I can see 'GET' Method showing in Eclipse' console window. So with 
this I have place GWT.log to see if I can catch it from here:


Frame myframe = new Frame(some_url_here);

myframe.addLoadHandler(new LoadHandler(){
@Override
public void onLoad(LoadEvent event) {
GWT.log(@myframe onLoad event:  + event.toString());
}});

What I was hoping is to catch the GET method / event from that 'click' 
on the Frame widget?
Any ideas where to catch these events? Well, to modify it before it goes 
out.


Thanks,
Xybrek

--
You received this message because you are subscribed to the Google Groups Google 
Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: Catch Frame widget GET Method

2011-06-03 Thread Xybrek

On Friday, 03 June, 2011 10:42 PM, Xybrek wrote:

Hi,

When I load a URL into a 'Frame' widget and from there click some web
links I can see 'GET' Method showing in Eclipse' console window. So with
this I have place GWT.log to see if I can catch it from here:

Frame myframe = new Frame(some_url_here);

myframe.addLoadHandler(new LoadHandler(){
@Override
public void onLoad(LoadEvent event) {
GWT.log(@myframe onLoad event:  + event.toString());
}});

What I was hoping is to catch the GET method / event from that 'click'
on the Frame widget?
Any ideas where to catch these events? Well, to modify it before it goes
out.

Thanks,
Xybrek



sorry for the duplicate post, thunderbird issue. x_x

--
You received this message because you are subscribed to the Google Groups Google 
Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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 Servlet access (dev mode)

2011-06-02 Thread Xybrek

Hi i'm trying to access a simple servlet from within GWT (dev mode):

The basic idea is to get the simple response from the servlet and then 
show it to GWT client side.


I think I'm missing something here or have misconfigured the code, I 
presume in the RequestBuilder part or in the url-pattern. I'm always 
getting 404 response.


Can anyone help? Cheers, Xybrek



SayHelloServlet.java

package com.mycompany.server;

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class SayHelloServlet extends HttpServlet {
  public void doGet(HttpServletRequest request,
HttpServletResponse response)
  throws ServletException, IOException {
PrintWriter out = response.getWriter();
out.println(Hello!!!);
  }
}


ServletDemo.java

package com.mycompany.client

public class ServletDemo implements EntryPoint {
..
public void onModuleLoad() {
...
makeServletCall();
...

}
..
   public void makeServletCall() {
String url = GWT.getHostPageBaseURL() + sayHello;;
RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,
URL.encode(url));

try {

builder.sendRequest(null, new RequestCallback(){

public void onError(Request request, Throwable 
exception) {
Window.alert(Error (+ exception +));
}

public void onResponseReceived(Request request,
Response response) {
if (200 == response.getStatusCode()) {
Window.alert(the string: + 
response.getText());
}
else {
	// Handle the error. Can get the status text from 
response.getStatusText()
	Window.alert( Connected with error(maybe):  + 
response.getText());

}

}});

} catch (Exception e) {
GWT.log(e.toString());
Window.alert(Whoosps  + e.toString());
}
}
...
}

Here's the web.xml in the war folder:

web.xml

web-app
...
  servlet
  servlet-namesayHelloServlet/servlet-name
  servlet-classcom.mycompany.server.SayHelloServlet/servlet-class
  /servlet

  servlet-mapping
  servlet-namesayHelloServlet/servlet-name
  url-pattern/mycompany/sayHello/url-pattern
  /servlet-mapping
...
/web-app

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