Re: Autogenerate IDs for eatch widget

2024-02-06 Thread Sebastian Bota
Thank you very much for your response

On Tuesday 6 February 2024 at 12:03:38 UTC+2 Jens wrote:

> Nothing that I am aware of. Also I think you need some naming conventions 
> for your debug ids anyways which makes automatic generation difficult. 
> Otherwise it will be difficult to write and later understand the UI test if 
> debug ids are generic like input-0, input-1, input-2. You also need to 
> verify if any of your widgets might already use an ID because of CSS 
> styling or element selection using document.querySelector(). This would 
> break if you override the ID.
>
> Every widget has onAttach/onDetach/onLoad/onUnload methods you can 
> override. You could copy GWT's Widget class into your own source code (keep 
> the original package) or give all your widgets a common super class and 
> adjust the code to set a debug id. But I think you will quickly realize 
> that generating stable but unique debug IDs on that abstract level will be 
> difficult. Also widgets usually want debug ids on some internal meaningful 
> elements as well, which you do not know at that abstract level.
>
> -- J.
>
>
> Sebastian Bota schrieb am Dienstag, 6. Februar 2024 um 09:15:33 UTC+1:
>
>> Hello everyone. 
>> I have a GWT application and for testing purposes ( using external UI 
>> testing tools ) i need that each widget to have an ID set. i know it is 
>> possible by using ensureDebugID(), but this approach will take forever to 
>> change in my project and is very error prone.
>>
>> So my question, is there any way i can set an ID to each widget 
>> automaticly ?
>> Perhaps some kind of hook, so when a widget is added to DOM i can set the 
>> ID.
>> This id will be only used in test, not in production.
>>
>> Thank you very much for any suggestions.
>> BR,
>> Sebastian
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/3be56119-5c03-44ae-8961-4184d1ae7026n%40googlegroups.com.


Autogenerate IDs for eatch widget

2024-02-06 Thread Sebastian Bota
Hello everyone. 
I have a GWT application and for testing purposes ( using external UI 
testing tools ) i need that each widget to have an ID set. i know it is 
possible by using ensureDebugID(), but this approach will take forever to 
change in my project and is very error prone.

So my question, is there any way i can set an ID to each widget automaticly 
?
Perhaps some kind of hook, so when a widget is added to DOM i can set the 
ID.
This id will be only used in test, not in production.

Thank you very much for any suggestions.
BR,
Sebastian

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/daaabb20-06db-496a-b637-ca7d6272e1e4n%40googlegroups.com.


Re: GWT app gets loaded multiple times in Firefox

2023-02-08 Thread Sebastian
We experienced a similar issue a while ago.

This was related to explicitly submitting a form so that the browser's 
password save dialog can kick in.

In our case we found that the page reload was caused by not explicitly 
cancelling the corresponding SubmitEvent on submit.

Once we added *event.cancel()*, the page did no longer reload.

@Override 
public void onSubmit(SubmitEvent event) { 
// This is very important or we end up at onModuleLoad again and start from 
scratch. 
// We need to submit this form so that the browser's password save dialog 
can kick in. 
* event.cancel();*
 // continue...
} 
}); 

Hope this helps in one way or another.
grue schrieb am Mittwoch, 8. Februar 2023 um 14:21:19 UTC+1:

> I agree. However, if I comment out the script tag that loads the 
> nocache.js the problem is gone. That's why I suspect that GWT is somehow 
> involved.
>
> On Wednesday, 8 February 2023 at 14:04:20 UTC+1 Michael Joyner wrote:
>
>> We see the same behavior here. I'm convinced it is some sort of FF bug. 
>> Why else would a page reload increase the number of times the entry point 
>> is entered? Is not a page reload supposed to be the same as opening it up 
>> in a new tab while discarding all previous JS states?
>>
>>
>> On 2/8/23 07:02, 'grue' via GWT Users wrote:
>>
>> I have deployed the example app here:
>>
>> http://test7.pb3.technology/TestGWT/
>>
>> On Wednesday, 8 February 2023 at 11:47:43 UTC+1 grue wrote:
>>
>>> I have tested it on MacOS 12.6.3 and Ubuntu and Windows 10 and in deploy 
>>> mode but I also see the issue in development mode.
>>>
>>> Michael
>>>
>>>
>>> On Wednesday, 8 February 2023 at 10:32:38 UTC+1 lofid...@gmail.com 
>>> wrote:
>>>
 Following question:
 - What OS?
 - Do you try in development mode or deployment mode?

 Thanks,
 Lofi

 grue schrieb am Dienstag, 7. Februar 2023 um 14:03:25 UTC+1:

> I have observed a weird behaviour when opening a GWT app in Firefox. 
> When I first open the page everything is normal but once I refresh the 
> page 
> all resources including the index.html get fetched twice. If I refresh 
> the 
> page once more everything gets fetched three times and so on... (see 
> screenshot attached)
> I see this behaviour only on FF, even on a freshly installed one and 
> after clearing all the caches and data.
> To reproduce the issue I created a minimalistic GWT app at 
> https://github.com/mgrue/TestGWT
> Reproducing is a bit tricky since sometimes the app behaves normal but 
> once you close the tab and open a new on or restart FF the weird 
> behaviour 
> is back. I tested the app both on Wildfly and Jetty (I have included a 
> Dockerfile) but can't see any difference.
>
> I'd really appreciate if someone could help me figuring out what's 
> going on here.
>
> Thank you very much in advance!
> Michael
>
> [image: Screen Shot 2023-02-07 at 1.40.03 PM.png]
>
 -- 
>> 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-tool...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-web-toolkit/e2a0a891-04e1-4bd8-9e7f-8047fab9ea8en%40googlegroups.com
>>  
>> 
>> .
>>
>>
>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/5b7aaa1d-fdc4-41fd-ab3b-7620a8c0fb4an%40googlegroups.com.


Re: Issues with GWT Eclipse Plugin and Eclise Oxygen 1.a

2017-10-13 Thread Sebastian
I too use the new GWT Plugin, not the deprecated Google one. 
I had to downgrade Eclipse to be able to work and don't remember the exact 
complete stack trace, but the top was certainly something like
org.eclipse.jdt.internal.core.JavaProject.computePackageFragmentRoots([Lorg/eclipse/jdt/core/IClasspathEntry;ZLjava/util/Map;)[Lorg/eclipse/jdt/core/IPackageFragmentRoot;


-- 
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: Issues with GWT Eclipse Plugin and Eclise Oxygen 1.a

2017-10-12 Thread Sebastian
Same here, Oxygen 1a asked to be installed and now the plugin stopped 
working.
I assume many people will have the problem since 1a is actively pushed to 
users now.
Does anybody have an idea how to best work around this?

Regards
Sebastian

Am Donnerstag, 12. Oktober 2017 06:14:52 UTC+2 schrieb Alexander Leshkin:
>
> There is an related issue on github - 
> https://github.com/gwt-plugins/gwt-eclipse-plugin/issues/365. 
> Also, https://github.com/gwt-plugins/gwt-eclipse-plugin/issues/364 
> contains some additional info.
>
> On Thursday, October 12, 2017 at 12:35:29 AM UTC+3, Oleg Cohen wrote:
>>
>> Greetings,
>>
>> I am wondering if anybody else ran into an error like this:
>>
>>
>> *java.lang.NoSuchMethodError: 
>> org.eclipse.jdt.internal.core.JavaProject.computePackageFragmentRoots(Lorg/eclipse/jdt/core/IClasspathEntry;Lorg/eclipse/jdt/internal/compiler/util/ObjectVector;Ljava/util/HashSet;Lorg/eclipse/jdt/core/IClasspathEntry;ZLjava/util/Map;)V*
>> after upgrading to the most recent Eclipse Oxygen 1.a 
>>
>> I am having problems editing GWT properties of a project and also 
>> compiling my GWT application project as the GWT Project Validator fails 
>> with the above error.
>>
>> Thanks!
>> Oleg
>>
>

-- 
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 2.6.0-rc1 Super Dev Mode on Windows 8 and Eclipse

2014-01-17 Thread Sebastian Metzger
Solved the issue.

Besides using the correct gwt-codeserver.jar, I also had to put the 
complete paths to the diffferent projects into the codeserver arguments to 
resolve.

On Tuesday, January 14, 2014 2:46:11 PM UTC+1, Thomas Broyer wrote:

 You're probably using the gwt-codeserver.jar from GWT 2.5.1 against a 
 gwt-dev.jar from GWT 2.6.0-rc1.
 That was one of the change between them: 
 https://gwt.googlesource.com/gwt/+/3e58fbfe033b5040d56bfba0b8cad39c5faba254%5E%21/#F1

 On Tuesday, January 14, 2014 2:07:21 PM UTC+1, Sebastian Metzger wrote:

 Getting this error message, when starting Super Dev Mode with GWT 
 2.6.0-rc1:

 Exception in thread main java.lang.VerifyError: class 
 com.google.gwt.dev.codeserver.Options$NoPrecompileFlag overrides final 
 method getPurpose.()Ljava/lang/String;
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
 at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
 at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
 at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
 at com.google.gwt.dev.codeserver.Options.parseArgs(Options.java:53)
 at com.google.gwt.dev.codeserver.CodeServer.main(CodeServer.java:45)

 When using GWT 2.5.1 I get:

 java.io.IOException: can't create app directory: 
 C:\temp\src\org.jdownloader.gwt.myjdownloader.MyJDownloader
 at com.google.gwt.dev.codeserver.AppSpace.create(AppSpace.java:61)
 at com.google.gwt.dev.codeserver.CodeServer.start(CodeServer.java:83)
 at com.google.gwt.dev.codeserver.CodeServer.main(CodeServer.java:50)


 Beforehand under Windows 7 I had no problem with Super Dev Mode. Under 
 Windows 8 I can't get it to work.

 Any ideas/hints?




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


GWT 2.6.0-rc1 Super Dev Mode on Windows 8 and Eclipse

2014-01-14 Thread Sebastian Metzger
Getting this error message, when starting Super Dev Mode with GWT 2.6.0-rc1:

Exception in thread main java.lang.VerifyError: class 
com.google.gwt.dev.codeserver.Options$NoPrecompileFlag overrides final 
method getPurpose.()Ljava/lang/String;
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at com.google.gwt.dev.codeserver.Options.parseArgs(Options.java:53)
at com.google.gwt.dev.codeserver.CodeServer.main(CodeServer.java:45)

When using GWT 2.5.1 I get:

java.io.IOException: can't create app directory: 
C:\temp\src\org.jdownloader.gwt.myjdownloader.MyJDownloader
at com.google.gwt.dev.codeserver.AppSpace.create(AppSpace.java:61)
at com.google.gwt.dev.codeserver.CodeServer.start(CodeServer.java:83)
at com.google.gwt.dev.codeserver.CodeServer.main(CodeServer.java:50)


Beforehand under Windows 7 I had no problem with Super Dev Mode. Under 
Windows 8 I can't get it to work.

Any ideas/hints?


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


Re: Gray out effect with DialogBox

2013-07-08 Thread Juan Sebastian Marulanda
hola, Debes tener este estilo en tu css, automaticamente gwt lo tomara 
cuando agregas .setGlassEnabled(true); a tu dialogBox!

.gwt-PopupPanelGlass {
  background-color: #000;
  opacity: 0.5;
  filter: alpha(opacity=30);
}

El sábado, 23 de junio de 2007 04:30:41 UTC-5, voodoo escribió:

 How can I create a gray out effect with a DialogBox? I want to achieve
 something like the popup dialog used in Picasa Web Album: when the
 user clicks on edit album, a modal dialog window pops up, and the
 background of the whole page grays out.

 http://picasaweb.google.com/home


 I already know how to create a DialogBox, the question is, how do I
 make the background grays out?



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




Re: Problems with AutoBean Lists

2013-02-05 Thread Sebastian Metzger
Just had the same problem Seems to be a bug in the AutoBean List 
implementation

I solved it by simply:

autoBean.setList(new ArrayListType(autoBean.getList));

On Tuesday, January 31, 2012 10:51:17 PM UTC+1, Cypher wrote:

 I am having problems modifying a list property on an AutoBean 
 deserialized from JSON with AutoBeanCodex.  When I call 
 List.add(position, value) it appears to be overwriting the value at 
 that position instead of shifting values right to make room for the 
 new item. 

 Here's a JUnit test that demonstrates the behavior I'm seeing: 

 public class AutoBeanListTest extends GWTTestCase { 

 @Override 
 public String getModuleName() { 
 return com.xxx.AutoBeanListTest; 
 } 

 @Test 
 public void testDirectInsert() { 
 MyBeanFactory factory = GWT.create(MyBeanFactory.class); 
 MyBean bean = factory.myBean().as(); 
 bean.setValues(new ArrayListString()); 
 bean.getValues().add(A); 
 bean.getValues().add(C); 

 assertEquals(2,bean.getValues().size()); 

 bean.getValues().add(1,B); 

 assertEquals(3,bean.getValues().size()); // this one works 
 assertEquals(A, bean.getValues().get(0)); 
 assertEquals(B, bean.getValues().get(1)); 
 assertEquals(C, bean.getValues().get(2)); 
 } 

 @Test 
 public void testSerializeInsert() { 
 MyBeanFactory factory = GWT.create(MyBeanFactory.class); 
 MyBean bean = factory.myBean().as(); 
 bean.setValues(new ArrayListString()); 
 bean.getValues().add(A); 
 bean.getValues().add(C); 

 assertEquals(2,bean.getValues().size()); 

 String json = 
 AutoBeanCodex.encode(AutoBeanUtils.getAutoBean(bean)).getPayload(); 
 bean = AutoBeanCodex.decode(factory, MyBean.class, 
 json).as(); 

 assertEquals(2,bean.getValues().size()); 

 bean.getValues().add(1,B); 

 assertEquals(3,bean.getValues().size()); // this one FAILS 
 assertEquals(A, bean.getValues().get(0)); 
 assertEquals(B, bean.getValues().get(1)); 
 assertEquals(C, bean.getValues().get(2)); 
 } 

 public interface MyBeanFactory extends AutoBeanFactory { 
 AutoBeanMyBean myBean(); 
 AutoBeanMyBean myBean(MyBean myBean); 
 } 

 public interface MyBean { 
 ListString getValues(); 
 void setValues(ListString values); 
 } 
 } 

 The first test case (which modifies a list that I create and put into 
 the bean) works as I expect, but the second test (which modifies the 
 list returned from deserialization) does not.  After the insert, the 
 list still has only two values in it, and the second one has been 
 replaced by the value I inserted. 

 Am I doing something wrong?  Is this an issue in the underlying code? 

 I can't help but notice that the SplittableList class uses the same 
 implementation for set() and add().  That doesn't seem right to me, 
 but I assume I must be missing something. 

 James

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




Structuring large process.

2012-11-04 Thread Sebastian Coronado A.
Hello I am using GWT with mvp pattern everything works fine, nevertheless I 
have a process that require filling other modules first. For example if I 
want to buy something First I need to select the product, then add 
modification to the product and then provide a payment method. I was doing 
this following the mvp pattern so I have a module for each one. I want that 
when the user finishes the first step, the app will open the second step 
automatically. How can I do that? the mvp pattern is not good when a 
process requires 8 smaller steps.
 Regards

-- 
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/-/3h1ZipzYITUJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: generate and execute javascript at runtime?

2012-11-03 Thread Sebastian Rothbucher
Hi, is it not possible to make a function like eval() (doing just that) 
available via JSNI?

On Friday, November 2, 2012 3:10:23 PM UTC+1, HamsterofDeath wrote:

 i'm trying to integrate jqxgrid and write a gwt wrapper around it. (it's 
 some jquery grid) i know i can write native js methods, but this isn't 
 enough. i need to dynamically build the call and then execute it as if it 
 was sent from the server inside a script tag. how can i do that? 

-- 
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/-/o_U-m97CRW4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: External Server communication with HTTP requests

2012-11-03 Thread Sebastian Rothbucher
Hi, one of the below posts already mentioned the same origin policy which 
is indeed not to be circumvented (except in apps). What you can do is 
create an image URL or IFRAME URL and create the respective image or iframe 
with setUrl(http://someotherserver;) Good luck!

On Monday, October 29, 2012 7:42:20 PM UTC+1, John P wrote:

 Hello,

 I need support for the communication with external services like Google 
 Maps API.
 The following code and websites includes my concerns.

 At first I want to get a google map with a HTTP request.
 The following website shows the information for my intention.
 https://developers.google.com/maps/documentation/staticmaps/?hl=en

 How can I get Google Maps over HTTP requests?

 Another point is the geocoding API from google. 
 https://developers.google.com/maps/documentation/geocoding/
 I want to get information with the geoCodeStr.
 I tried this string with my browser and get information which you can see 
 under the HTTP request code.
 The problem of my project is that I get no response.
 The status code is 0.

 I hope someone can give me some advice?

 Thanks.

 String geoCodeStr= URL.encode(
 http://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CAsensor=false
 );
 requestBuilder = new RequestBuilder(RequestBuilder.GET, geoCodeStr);
  try {
  requestBuilder.sendRequest(null,
 new RequestCallback() {
 public void onError(Request request, Throwable exception) {
 Window.alert(Request timeout or no connection to server: 
 + exception.getMessage());
 }

 public void onResponseReceived(Request request,
 Response response) {
 System.out.println(response.getHeadersAsString());
 System.out.println(response.getText());
 if (200 == response.getStatusCode()) {
 System.out.println(response.getText());
 } else {
 Window.alert(+response.getStatusText());
 }
  System.out.println(Integer.toString(response.getStatusCode()));
  }
 });
 } catch (RequestException e) {
 Window.alert(No connection with server: +e.getMessage());
 }
 }

 {
results : [
   {
  address_components : [
 {
long_name : 1600,
short_name : 1600,
types : [ street_number ]
 },
 {
long_name : Amphitheatre Pkwy,
short_name : Amphitheatre Pkwy,
types : [ route ]
 },

 ...



-- 
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/-/-FkTuiYZPtgJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: Security considerations for GWT applications

2012-11-03 Thread Sebastian Rothbucher
Hi, no offense - but I'd NEVER NEVER EVER send the MD5-ed PW or store an 
MD5 hash in the directory. Rather, I regard it paramount to send the 
password as-is (through an encrypted channel) and have the directory store 
it WITH A SALT value. Furthermore, you should bind against the directory 
instead of comparing the hashes. This way, you're free of bothering about 
the PW and can have the directory folks do it (in fact, Active Directory - 
for instance - does not show the pw(hash) at all... Good luck!   Sebastian

-- 
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/-/vPsNO4E4X6YJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: Security considerations for GWT applications

2012-11-03 Thread Sebastian Rothbucher
Hi, 

there is actually one more aspect: avoid correctly logged-in users (as 
others pointed out before: login on the server with a server session is 
required) can manipulate more data than you want them to. Using tamper data 
and consorts, you can see what goes back and forth via GWT-RPC. 
Consequently, your interfaces should be sufficiently slim to avoid users 
reverse-engineer and manipulate

So you end up with a bunch of things to make information sufficiently 
confidential (login, etc.), ensure sufficient integrity (slim interfaces) 
and infrastructure concerns to ensure availability 

Good luck
   Sebastian

On Wednesday, October 24, 2012 11:41:06 AM UTC+2, Flying-w wrote:

 I am investigating security considerations around the user login for a GWT 
 application in respect of the following strategy:

- User enters their id and password in a dialogue;
- Client transmits the login request with the above details to the 
server using RPC;
- Server returns a token unique to the client.  The client stores this 
in a cookie such that if they press F5 to reload the application, or 
navigate away and come back, they do not need to login again (within a 
timeout period);
- On every request the client sends to the server, the token is 
included in the payload of the request to authenticate the request;

 There are some obvious flaws in this approach:

- The Eve type hacker listening on the network can intercept the 
plain text userid and password and reuse them directly in their client;
- If someone gains physical access to the original users computer, can 
they lift the server token from the cookie and use the token on the their 
computer to impersonate the original user?

 What are the solutions to these security exposures:

- Use SSL.  Any good guides about doing this with GWT?  Does SSL also 
defeat the Mallory attacker that can also modify network data?
- Any non-SSL solutions?

 Perhaps there's a guide about this out there somewhere, but all I can find 
 so far is information relating to javascript security.

 Thanks
 Simon.


-- 
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/-/wgowLKX_zdoJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: RPC call from server to client

2012-11-03 Thread Sebastian Rothbucher
by far and large, you'd have to poll (asynchronously)

-- 
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/-/auWmyRAUf5AJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: Read in binary file into byte[] ?

2012-05-23 Thread Sebastian Gurin
in general you don't use byte[] or the bynary content of a file directly in the 
client side, unless you are making something *really special* like implementing 
image filters using html canvas or somthing like that. What are you trying to 
do or better, why do you have to read a file into a byte[] in the client side? 

On Wed, 23 May 2012 08:30:25 -0700 (PDT)
Carsten carsten.schm...@googlemail.com wrote:

 I think I should have been more clear. I don't want to load a file
 from the users computer. I want to read a file from the directory on
 the server where my GWT app lives. I just want to know the options I
 have to read this binary file into a byte[]. I am very new with GWT :)
 
 On May 23, 4:53 am, Jim Douglas jdou...@basis.com wrote:
  Not in GWT proper, and not reliably in all browsers.  Start your
  reading here:
 
  http://www.google.com/search?q=javascript+file+api
 
  On May 22, 12:42 pm, Carsten carsten.schm...@googlemail.com wrote:
 
 
 
 
 
 
 
   Hi,
 
   is it possible to read in a binary file in my GWT Java-code and
   convert it into a byte[] ?
 
   Thanks!
   Carsten
 
 -- 
 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.
 


-- 
Sebastian Gurin sgu...@softpoint.org

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



Re: Read in binary file into byte[] ?

2012-05-23 Thread Sebastian Gurin
so I guess it is an array of points and you wish to represent them as byte[]. 
In the client side, I think byte[], int[] or double[] are the same internally, 
since javascript only support a single Number type. Most charting / graphics 
libraries will accept a native javascript array of numbers as the input I 
suppose that is your case. Also I suspect you have already the points prepared, 
at the server side in binary format. What I sould do is create a servlet that 
reads those files in the server side and return a JSON array of numbers. Then 
in javascript (client side) you call this servlet with ajax, perform eval() for 
obtaining the javascript array of values, and do the drawing using that 
javsacript array of numbers. Hope that helps.

On Wed, 23 May 2012 09:39:03 -0700 (PDT)
Carsten carsten.schm...@googlemail.com wrote:

 Well, it is a binary file with point/spline-data. I need to construct
 eventually Path objects out of this data and draw it on a canvas. A
 byte[] would be the perfect data structure to hold this data.
 
 On May 23, 3:26 pm, Sebastian Gurin sgu...@softpoint.org wrote:
  in general you don't use byte[] or the bynary content of a file directly in 
  the client side, unless you are making something *really special* like 
  implementing image filters using html canvas or somthing like that. What 
  are you trying to do or better, why do you have to read a file into a 
  byte[] in the client side?
 
  On Wed, 23 May 2012 08:30:25 -0700 (PDT)
 
 
 
 
 
 
 
 
 
  Carsten carsten.schm...@googlemail.com wrote:
   I think I should have been more clear. I don't want to load a file
   from the users computer. I want to read a file from the directory on
   the server where my GWT app lives. I just want to know the options I
   have to read this binary file into a byte[]. I am very new with GWT :)
 
   On May 23, 4:53 am, Jim Douglas jdou...@basis.com wrote:
Not in GWT proper, and not reliably in all browsers.  Start your
reading here:
 
   http://www.google.com/search?q=javascript+file+api
 
On May 22, 12:42 pm, Carsten carsten.schm...@googlemail.com wrote:
 
 Hi,
 
 is it possible to read in a binary file in my GWT Java-code and
 convert it into a byte[] ?
 
 Thanks!
 Carsten
 
   --
   You received this message because you are subscribed to the Google Groups 
   Google Web Toolkit group.
   To post to this group, send email to google-web-toolkit@googlegroups.com.
   To unsubscribe from this group, send email to 
   google-web-toolkit+unsubscr...@googlegroups.com.
   For more options, visit this group 
   athttp://groups.google.com/group/google-web-toolkit?hl=en.
 
  --
  Sebastian Gurin sgu...@softpoint.org
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.
 


-- 
Sebastian Gurin sgu...@softpoint.org

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



Re: Read in binary file into byte[] ?

2012-05-23 Thread Sebastian Gurin
they mention passing the binary data using utf strings. I wonder if in the 
server side we can use TextResource.getText().getBytes(UTF-8) safely for 
that. 

Also it uses JavaScript typed arrays (new FLoat32Array) for accssing the array 
in javascript but I wonder if that is really neccesary. 

Very nice video thanks for sharing.

On Wed, 23 May 2012 10:18:12 -0700 (PDT)
Joseph Lust lifeofl...@gmail.com wrote:

 See the Google IO games lecture @ 33:50, they discuss this issue in GWT 
 with binary data transfers:
 http://www.youtube.com/watch?v=NNmoEOpGJdk 
 
 
 Sincerely,
 Joseph
 
 -- 
 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/-/s-mnpgM9x3MJ.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.
 


-- 
Sebastian Gurin sgu...@softpoint.org

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



java arrays in JSNI

2012-05-15 Thread Sebastian Gurin
Hi all. I'm trying to create a java API for a JavaScript function that can 
accept variable number of parameters, for ex. trigger(eventName, param1, 
param2, ...). 

In java the desired java method signature, do not need to use java varargs, 
could be simple something like this:

public static final native void trigger(String eventName, Object[] params)/*-{
///$wnd.mylib.trigger(eventName, )
}-*/;


The thing is that the params array elements can be of any and mixed types. 
Could be POJOS or JavaScriptObject or java.lang.Integer. 

My problem with this is that I don't know how to create a JsArray or a native 
JavaScript array and put all the elements of parameter object[]params. 

I tried doing this in java using a JsArray and JsArrayMixed but elements must 
be casted to JavaScriptObject, and when doing so I get a java.lang.Object 
cannot cast to com...JavaScriptObject exception. This happens when trying to 
push an element into the jsarray: it need to be casted for java compiler: 
jsArray1.push((JavaScriptObject) myJavaArray[i]);

I also tried doing it in jsni javascript code, but I don't know how to access 
java arrays for obtaining its elements. The documentation says that from 
javascript java arrays are opaque objects. It also says :

Although Java arrays are not directly usable in JavaScript, there are some 
helper classes that efficiently achieve a similar effect: JsArray,. These 
classes are wrappers around a native JavaScript array.

But I think in my case, if I need to access a java array with java objects 
these classes have not use... ?

I think I'm missing something here... IMHO it is a common javascript technic 
defining functions with variable parameters ,and it sould be available to work 
with these from java using GWT JSNI. -

Any suggestion is mmost appreciated. Thanks in advance. 

-- 
Sebastian Gurin sgu...@softpoint.org

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



Re: help : hibernate+gwt

2012-05-03 Thread Sebastian Gurin
Please search in previus threads in this discussion group.

On Thu, 3 May 2012 15:23:00 +
Assiya EL missweb...@gmail.com wrote:

 Hello,
 
 I'm looking for how to integrate with my project with hibernate3 gwt2.4
 
 example of a project or guidance on the project structure
 
 thank you for your reply
 -- 
 
 Assiya EL
 Master Qualité du Logiciel
 
 
 
 Plz consider environment - Only print this if necessary
 
 -- 
 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.
 


-- 
Sebastian Gurin sgu...@softpoint.org

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



Re: Difficulty to run simple GWT application

2012-04-26 Thread Sebastian Gurin
Hi Rahul, this is what I shlud do for getting started.

first of all do not use tomcat yet, first feel confortable with the GWT+eclipse

1) File-New-(Google)New Application proyect - create your gwt web application 
project. Here use Google Web toolkit only, don't use Google App engine yet.

That will create you a new project with some interesting things:

a) your.proj.YourProject.gwt.xml - this file is called a gwt module definition.
b) packages client, shared, server
c) a root folder named war with a html file inside. This war folder is the 
web application folder (what you put inside webapps in tomcat - but not yet.)

in client package that is where your java that will be translated to javascript 
by gwt are, there is two Greeting* classes (dont worry about these yet) and a 
third class named YourProject.java (or whatever name you give to your new 
project). thi s class is your entry point. 

the project has a sample applicatoin ready to be executed, right click on 
your.proj.YourProject.gwt.xml and run as Web application. The Developer mode 
view will be shows and after the app is loaded, it will show you an url like 
http://127.0.0.1:/Test12.html?gwt.codesvr=127.0.0.1:9997. Open this url 
with firefox (version =10) or with chrome. It will ask you to install a 
browser plugin, do it. When the plugin is installed reopen that url and you 
will be executing your sample webapp using the GWT hosted-mode. You can make 
changes in the java sources, save then and reoloading the page will reflect the 
changes. Try to change something...

Now what about putting all this on a tomcat? its easy, first compile your 
project like this: ijn package explorer view, right click your new project - 
Google - GWT Compile... - compile. When this is finish, GWT will put in war 
the entinre webapp. just copy or link the war folder to your tomcat's webapps 
folder and rename it acordingly, for example, yourproject. Start tomcat and 
go to http://localhost:8080/yourProject/yourProject.html.

I have ant scripts for doing all this with ant if you want I can share. 

hope this can help you ...


On Thu, 26 Apr 2012 07:06:04 -0700 (PDT)
Rahul Sharma rahul.sharma1...@gmail.com wrote:

 I am making gwt application as following step: 1. Firstly i install
 gwt plugin in my eclipse(Helios). 2. now i am creating dynamic
 project. 3. now i am adding gwt plugin through goto to property page
 of the project, select google-webtoolkit, check use GWT, then go to
 google-web application, the directory name to web-content. 4.now i
 am creating gwt module in my project then create entry point class
 then html. 5.now i am creating a button in onModule method of entry
 point class.
 
 and then i am running application in tomcat server just right click on
 project and select run as web application(run with tomcat server). As
 result of this I am getting a blank page on browser? There is no
 excption in server log. I am not able to debug where i am doing wrong?
 Please help me to sort out this problem.
 
 I am not using google web application because i was getting difficulty
 to create war file. As i solution of this I got the above process to
 develop GWT application.
 
 Thanks Rahul
 
 -- 
 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.
 


-- 
Sebastian Gurin sgu...@softpoint.org

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



Re: Difficulty to run simple GWT application

2012-04-26 Thread Sebastian Gurin
This is my build.xml for one of my projects (Raphael4gwt - a vector drawing and 
charting library): 

build.xml
http://code.google.com/p/raphael4gwt/source/browse/trunk/raphael4gwt/build.xml

build.properties
http://code.google.com/p/raphael4gwt/source/browse/trunk/raphael4gwt/build.properties

in build.properties, you have to edit gwt.sdk variable to point to your gwt sdk.

warning, my project contains 4 different modules so you should edit build.xml 
to this:

target name=compile depends=clean
antcall target=javac
/antcall
antcall target=gwtc
param name=moduleName value=your.project.ModuleName/
/antcall
/target   

ther is no deploy to tomcat, only compilation. After it compiles you can safely 
deploy the war dir to your servlet container.

Hope it helps


On Thu, 26 Apr 2012 14:42:17 +
Assiya EL missweb...@gmail.com wrote:

 Hi Sebastien ,
 
 i have the same problem , thank you for your response
 
 you can shared with me a ant script ??
 
 2012/4/26 Sebastian Gurin sgu...@softpoint.org
 
  Hi Rahul, this is what I shlud do for getting started.
 
  first of all do not use tomcat yet, first feel confortable with the
  GWT+eclipse
 
  1) File-New-(Google)New Application proyect - create your gwt web
  application project. Here use Google Web toolkit only, don't use Google App
  engine yet.
 
  That will create you a new project with some interesting things:
 
  a) your.proj.YourProject.gwt.xml - this file is called a gwt module
  definition.
  b) packages client, shared, server
  c) a root folder named war with a html file inside. This war folder is
  the web application folder (what you put inside webapps in tomcat - but not
  yet.)
 
  in client package that is where your java that will be translated to
  javascript by gwt are, there is two Greeting* classes (dont worry about
  these yet) and a third class named YourProject.java (or whatever name you
  give to your new project). thi s class is your entry point.
 
  the project has a sample applicatoin ready to be executed, right click on
  your.proj.YourProject.gwt.xml and run as Web application. The Developer
  mode view will be shows and after the app is loaded, it will show you an
  url like http://127.0.0.1:/Test12.html?gwt.codesvr=127.0.0.1:9997.
  Open this url with firefox (version =10) or with chrome. It will ask you
  to install a browser plugin, do it. When the plugin is installed reopen
  that url and you will be executing your sample webapp using the GWT
  hosted-mode. You can make changes in the java sources, save then and
  reoloading the page will reflect the changes. Try to change something...
 
  Now what about putting all this on a tomcat? its easy, first compile your
  project like this: ijn package explorer view, right click your new
  project - Google - GWT Compile... - compile. When this is finish, GWT
  will put in war the entinre webapp. just copy or link the war folder to
  your tomcat's webapps folder and rename it acordingly, for example,
  yourproject. Start tomcat and go to
  http://localhost:8080/yourProject/yourProject.html.
 
  I have ant scripts for doing all this with ant if you want I can share.
 
  hope this can help you ...
 
 
  On Thu, 26 Apr 2012 07:06:04 -0700 (PDT)
  Rahul Sharma rahul.sharma1...@gmail.com wrote:
 
   I am making gwt application as following step: 1. Firstly i install
   gwt plugin in my eclipse(Helios). 2. now i am creating dynamic
   project. 3. now i am adding gwt plugin through goto to property page
   of the project, select google-webtoolkit, check use GWT, then go to
   google-web application, the directory name to web-content. 4.now i
   am creating gwt module in my project then create entry point class
   then html. 5.now i am creating a button in onModule method of entry
   point class.
  
   and then i am running application in tomcat server just right click on
   project and select run as web application(run with tomcat server). As
   result of this I am getting a blank page on browser? There is no
   excption in server log. I am not able to debug where i am doing wrong?
   Please help me to sort out this problem.
  
   I am not using google web application because i was getting difficulty
   to create war file. As i solution of this I got the above process to
   develop GWT application.
  
   Thanks Rahul
  
   --
   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.
  
 
 
  --
  Sebastian Gurin sgu...@softpoint.org
 
  --
  You received this message because you are subscribed to the Google Groups
  Google Web Toolkit group.
  To post to this group, send email to google-web-toolkit@googlegroups.com.
  To unsubscribe from this group, send

Re: how to get information from a database with Eclipse ,and after that to display the result with Gooogle Web toolkit

2012-04-26 Thread Sebastian Gurin
eclipse is an IDE for writing programs, not a database application. You obtain 
databse data using some java framework (jdbc, hibernate). Is your program who 
will retrive data from a database, not eclipse... Then yes, you can show or 
whatver you like to do with the retrieved data in your program using GWT. Hope 
that helps

On Thu, 26 Apr 2012 05:42:37 -0700 (PDT)
alaa aadil aadila...@gmail.com wrote:

 hi,
 
 how to get information from a database with Eclipse ,and  after that
 to display the result with Gooogle Web toolkit
 
 please is this possible or not ???
 
 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.
 


-- 
Sebastian Gurin sgu...@softpoint.org

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



Re: Connexion Google Web Toolkit to DataBase

2012-04-26 Thread Sebastian Gurin
some tips for getting started. 

Install gwt and google eclipse plugins. Create a sample project as I explained 
in thread named Difficulty to run simple GWT application. Now a note: GWT 
apps are divided in client and server parts. Client part is translated to 
javascript and executed in the browser. server part is java code that runs on 
the server (see client and server packages).

In the exmaple generated GWT RPC is used as the mechanism for client-server 
comunication.

You must retrieve the data from data base using some tool, for example [1] in 
the server side. In the generated example this is at class named 
org.test12.server.GreetingServiceImpl, method greetServer. Then when you have 
successfully retrieved the data from the database. you have to return it (in a 
type supported by gwt) to the client side, so your client GWT code can for 
example, print a table with results.

hope this help

p/d - you have lots of choices for accessing a database - here is an example of 
conecting w postgresql
[1] 
http://www.mkyong.com/jdbc/how-do-connect-to-postgresql-with-jdbc-driver-java/

Then in 
On Thu, 26 Apr 2012 00:56:53 -0700 (PDT)
alaa aadil aadila...@gmail.com wrote:

 hello
 
 i'm new to google web toolkit , and i want to connect my database that
 i create it with PostgreSql to my application GWT , in order to
 display some information of my database .
 
 please if some one have an idea or an project exemple , please reply
 to my question .
 
 thanks
 
 best regards
 
 Aadil
 
 -- 
 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.
 


-- 
Sebastian Gurin sgu...@softpoint.org

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



Re: Avoiding DTOs in RPC

2012-04-19 Thread Sebastian Gurin
In a project of mine I successfully use THE SAME classes both as hibernate 
model and as GWT client model class using simple GWT RPC for client-server 
comunication: A couple of things I remember are: 

1) I needed to put my DAO model classes in gwt client package because I work 
directly with this in GWT client mode (they need to be translated to 
javscript).

2) use lazy=true in collection attribute definitions. If not, the 
getCollection() will return a Collection implementation not supported by GWT 
RPC.

3) (obvius) be careful your pojos will support RPC valid types. careful while 
using other framework that enrich  your model POJOS like hibernate does for 
collection attributes. 

I don't know if this will be of use for you...

On Thu, 19 Apr 2012 08:46:07 -0700 (PDT)
Thomas Lefort lefortho...@gmail.com wrote:

 I want to avoid having to use DTOs for transferring my Users with RPC.
 Basically I have a number of rpc calls for my users, and based on the 
 configuration and the user rights, etc... there is a number of fields I 
 want to hide. My approach has been to create DTOs for each case. I was now 
 thinking of using the JPA relationships and lazy loading instead. For 
 instance I store additional information (bio, etc...) in an Additional 
 object, with a onetoone relationship and lazy loading. So I guess based on 
 the call I just need to load the field or not, instead of filling up a 
 dedicated DTO each time I send a User with holes.
 
 Does that make sense? any one has cons on this idea? will RPC send empty 
 fields or will it be more clever and just not add the fields that are null?
 
 Thanks,
 
 Thomas
 
 
 -- 
 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/-/iLFbBNp8rLAJ.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.
 


-- 
Sebastian Gurin sgu...@softpoint.org

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



Re: GWT + Vector Drawing Tools

2012-03-22 Thread Sebastian Gurin
Hi I'm the author of raphael4gwt/http://code.google.com/p/raphael4gwt/ (a 
project different than raphaelgwt). My response between lines

On Thu, 22 Mar 2012 07:51:07 -0700 (PDT)
SigmaBlu sigmabl...@gmail.com wrote:

 I have the following questions:
 
 1) I was wondering if there were any examples out there that displayed
 vector objects models in a table/list type of format and also the
 vector images themselves? I know there is Raphael, but i dont see any
 examples that match my criteria.  Raphael objects dont like being put
 inside of other panels beside a RootPanel.

I don't understand displayed vector objects models in a table/list type of 
format and also the vector images themselves. Do you mean put raphael shapes 
in a html table or gwt table/list widget? in the case of raphael4gwt, you 
always create a Paper object for drawing in it and you put the raphael paper in 
any html element. It comes with an PaperWidget (GWT Widget) that you can add 
your GWT GUI.

 
 2) Can I have 3 RootPanels.  1 that holds the list i spoke about above
 and 1 that holds the Raphael objects and 1 that holds both and have
 all three 'speak' to one another?

in raphael4gwt you can have as many papers as you want, and you can perfectly 
register event listeners in one raphael shape1 in a paper1 and in the handler 
modify a shape2 in a paper2. 

Regards

 
 3)  Are there other vector drawing tools out there that will
 accomplish what i am seeking to do?
 
 Thanks,
 
 Sigma
 
 -- 
 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.
 


-- 
Sebastian Gurin sgu...@softpoint.org

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



Re: Total Newbie

2012-03-20 Thread Sebastian Gurin
If you have zero experience with programming, and want to build your game in a 
web page, I recomend you other technologies than GWT. I would start with html, 
CSS and javascript here: http://www.w3schools.com/js/, 
http://www.w3schools.com/html and http://www.w3schools.com/css

Also I recommend you to use raphaeljs.com, a javascript library for easily 
drawing and animation.

If you still want to do it in GWT, then I recommend you to start learning java. 
Also you can use raphael4gwt http://code.google.com/p/raphael4gwt/, a GWT 
library that allows you to draw shapes and text and animate them easily in GWT, 
usin raphaeljs. a demo with examples available at 
http://cancerbero.vacau.com/gwt/raphael4gwtGallery/


On Mon, 19 Mar 2012 15:27:14 -0700 (PDT)
dkattenb...@gov.nu.ca dkattenb...@gov.nu.ca wrote:

 Greetings ...
 
 I'm interested in creating simple but engaging word/sentence/paragraph
 games for a communications/English course I'm developing for online
 delivery. Someone pointed me in the direction of GWT. I have zero
 programming experience (other than radio programming). I'm thinking
 GWT Developer may be for me, but can't get beyond the gobbledy-gook
 (e.g. Eclipse, GUI, etc.). I'd like to see some examples of
 applications that have been created in GWT Developer. Can someone
 point me to a few? Is there a developers' library out there, that
 illustrates what's been created?
 
 A few concepts of what I'd like to create: Mix  match sentences; drag-
 drop words into proper sequence; tossing word balls into basketball
 hoops (or shooting word pucks into nets).
 
 The more I see in the way of simple animations, the better.
 
 Thanks!
 
 Dave
 Cambridge Bay
 Nunavut
 
 -- 
 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.
 


-- 
Sebastian Gurin sgu...@softpoint.org

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



Re: Playing video with Gwt

2012-03-15 Thread Sebastian Gurin
tipically flash based video players will only support the flv and mp3 (audio) 
formats, regards

On Thu, 15 Mar 2012 18:40:00 +0200
Ahmet Dakoglu ahmetdako...@gmail.com wrote:

 Hi All,
 
I am trying to play video files and i decided to use bst player, it is
 ok with YouTubePlayer with given url but i can not play such as, .avi ,
 .mpeg ,mpg files which are on my local drive. I serve them in a servlet to
 VLCPlayer and FlashMediaPlayer of bst player but it does not work too.
 
 What am missing here and what can else be used for playing video files in
 gwt ?
 
 
 -- 
 *Ahmet DAKOĞLU*
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.
 


-- 
Sebastian Gurin sgu...@softpoint.org

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



Re: GWT+ hibernate

2012-03-13 Thread Sebastian Gurin
About GWT and hibernate, you have a lot of post explaining what needs to be 
done for getting GWT and hibernate work toghether. About 
GWT+hibernate+appengine, I don't think it is possible to use hibernate on 
appengine based projects. 

Regards

On Tue, 13 Mar 2012 09:36:57 +0100
Akram Moncer akram.mon...@gmail.com wrote:

 hello all
 can someone tell me how can create a webapp with GWT 2.4 and hibernate and
 how can i deploy it to google app engine
 thinks;
 
 -- 
 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.
 


-- 
Sebastian Gurin sgu...@softpoint.org

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



Re: GWT PORTLET

2012-03-12 Thread Sebastian Gurin
I have done GWT portlets successfully for liferay. You can use some liferay 
specific options for including your portlet javascript. But basically, I would 
start with the following. 

1) create a sample GWT application and compile it. You should have a index.html 
page that loads your GWT javascript
2) create a sample portlet (using technologies of your choise, could be jsp for 
example). 
3) in your portlet's markup, copy your GWT sample project's files. 
4) in your view.jsp (or whatever main portlet VIEW page), include the GWT 
script and neccesary markup.

P/d: searching in google GWT portlet there are some suggestions about calling 
the gwt compiler inside your portlet's project, for example with eclipse or 
ant. For example liferay gwt portlet will give you a lot of specific step by 
step tutorials

regards

On Fri, 9 Mar 2012 23:43:19 -0800 (PST)
Nitheesh Chandran nithe...@dotentreprise.com wrote:

 Can you tell me more specifically ? I want to create a portlet then
 integrate that with GWT app. How to create portlet ,then how to
 integrate it with gwt app ?
 
 On Mar 9, 3:26 pm, Nitheesh Chandran nithe...@dotentreprise.com
 wrote:
  Sorry gwt-portlet.jar
 
  On Mar 9, 3:20 pm, Nitheesh Chandran nithe...@dotentreprise.com
  wrote:
 
 
 
 
 
 
 
   Hello ,
   I want to create portlet using GWT. I searched in the Internet and
   downloaded get-portlet.jar. But the hello world app failed. Is there
   any other way for creating portlet in GWT. ? Helps will be
   appreciated. Thanks in advance.
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.
 


-- 
Sebastian Gurin sgu...@softpoint.org

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



Re: raphael4gwt - a new porting to raphaeljs vector graphics library to GWT

2012-02-10 Thread Sebastian Gurin
On Tue, 7 Feb 2012 10:08:00 -0800 (PST)
saurabh saurabh saurabh.bl...@gmail.com wrote:

 looks great!! Good work. :)
 I liked it because of 'no overhead'. If I am getting it right, we
 don't have to include 'raphael.js' file as we do in raphaelgwt. 

That's right, raphael.js (latest version - not modified) is automatically 
included by raphael4gwt. I think the API is finnished. Now I'm working on java 
helpers for path drawing, so we can use java objects for drawing complex path 
instead raphael strings. Also some 3rd party raphael high level utilities are 
being added, like the FreeTransform tool from 
http://elbertf.com/raphael/free_transform/ and others.

 I hope
 I could use it in project 'gwt-rcharts'.

Interesting project. I hope raphael4gwt helps 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.
 


-- 
Sebastian Gurin sgu...@softpoint.org

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



Re: RaphaelGWT

2012-02-09 Thread Sebastian Gurin
you have all information bout how to get started using raphaelgwt in its wiki: 
http://code.google.com/p/raphaelgwt/wiki/GettingStarted

Also, if you are just getting started with your project, check out my new 
project raphael4gwt, that I think it supports 100% of the raphaeljs API in 
java. 

Homepage: 
http://code.google.com/p/raphael4gwt/, 

gallery with specific examples and java sources: 
http://cancerbero.vacau.com/gwt/raphael4gwtGallery/

On Wed, 8 Feb 2012 22:48:23 -0800 (PST)
Sandip Chauhan sandipchauhan@gmail.com wrote:

 Hi
 
 Can someone please tell me a link to the complete setup sample example
 on raphaelGWT? Also how to compile the code and testing it on the
 browser?
 
 -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.
 


-- 
Sebastian Gurin sgu...@softpoint.org

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



Re: GWT, JQuery, Tipsy

2012-02-08 Thread Sebastian Gurin
I don't see why not. This is what I would do:

1) create a folder named public at the same level of your project's *.gwt.xml 
file

2) In your project's *.gwt.xml file include the required javascripts, 
In your case jquery.js and tipsy.js or whatever, like this:

inherits name=com.google.gwt.user.User /
...
script src='jquery.js' /
script src='tipsy.js' /

3) create a method for invoking tipsy natively:

public static native void tipsy(String id)/*-{
$wnd.$('#'+id).tipsy();
}-*/;


A tip, you can use GWT dom classes for accessing the DOM elements directly and 
safely.

Good look, tell us about your results!




On Wed, 8 Feb 2012 02:27:28 -0800 (PST)
kellizer kelli...@gmail.com wrote:

 Hi All,
 
 I need to get tipsy ( http://onehackoranother.com/projects/jquery/tipsy/ ) 
 working with GWT as the designers have introduced this in along with GWT 
 and I can't face to telling them tipsy can't be supported!
 
 From analysis - it it works with JQUERY to traverse through the DOM and 
 looks for the title attribute on an element and if it finds this 
 attribute it adds a mouse over/mouse out to that element. I can get this 
 working without GWT and in the host page (by importing the js files 
 required) but when I bring back in the GWT js bootstrap it stops working? 
 
 I need to populate the tipsy tooltips for both elements in the host page  
 also elements that are defined in the ui.xml files  what I have been 
 thinking/researching is that if it would be feasible to call the tipsy JS 
 traverse command directly from GWT via the JSNI when the DOM has been built 
 in GWT? Does that sound feasible? anyone got any suggestions/advice on how 
 to crack this one?
 
 
 Thanks in advance..
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To view this discussion on the web visit 
 https://groups.google.com/d/msg/google-web-toolkit/-/mBJME9gMRS4J.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.
 


-- 
Sebastian Gurin sgu...@softpoint.org

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



Re: GWT, JQuery, Tipsy

2012-02-08 Thread Sebastian Gurin
Glad to help. That is one side of developing a porting of an existing 
javascript toolkit to GWT. The other side of the work 
is to let the user to manipulate javascript native objects in your java code. 
You can use gwt overlay types for that. Explanation, for example, consider this 
tipsy javascript code:

$('#foo').tipsy({gravity: 'n'})

you can present the argument object {gravity: 'n'} using gwt overlay types like 
this:

public class TipsyConfig extends JavaScriptObject {
public final native String getGravity()/*-{
this.gravity;
}-*/;
public final native void setGravity(String g)/*-{
this[gravity]=g;
}-*/;
}


public class TipsyUtil {

//tipsy main method
public static native void tipsy(String id, TipsyConfig cfg) /*-{
$wnd.$('#'+id).tipsy(cfg);
}-*/;

//and create the native TipsyConfig in some method:
public static native TipsyConfig createConfig() /*-{
return {};
}-*/;
}

So now in your java client programs you can do all the job 100% in java like 
this:

TipsyConfig cfg = createConfig();
cfg.setGravity(w);
TipsyUtil.tipsy(div1, cfg);
TipsyUtil.tipsy(div2, cfg2);
etc

hope that helps too


On Wed, 8 Feb 2012 11:21:22 -0800 (PST)
kellizer kelli...@gmail.com wrote:

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


-- 
Sebastian Gurin sgu...@softpoint.org

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



Re: eval -Funktion Problem with JSNI

2012-02-07 Thread Sebastian Gurin
your code is wrong, getElementsByTagName returns an array. this works: 

private  native void n1()/*-{
$wnd.alert(eval(document.getElementsByTagName('div')));
}-*/;

I do not recommend to use eval. For accessing html DOM I recomment google dom 
java api, for example in your case:

private  void n2(String s1, String s2) {
NodeListElement els = Document.get().getElementsByTagName(s1);
for (int i = 0; i  els.getLength(); i++) {
Element d1 = els.getItem(i);
d1.getStyle().setBorderColor(red);
}
}

regards


On Tue, 7 Feb 2012 04:42:41 -0800 (PST)
Jany malink...@web.de wrote:

 Hey,
 
 the following code:
 
 public void onModuleLoad() {
   Element e = DOM.createElement(form);
   e = RootPanel.getBodyElement().appendChild(e);
   evalString(e.getNodeName().toLowerCase(), item);
   }
 
 native void evalString (String s1, String s2)/*-{
 a =  $wnd.document.getElementsByTagName(s1);
 
   $wnd.alert(a.item(0)); // I receive the correct value as result
   $wnd.alert(eval('var t = a.' + item + '(0);' )); //here i receive
 undefined as result
 }-*/;
 
 what do I wrong that the eval function do not return the correct
 value? Please 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.
 


-- 
Sebastian Gurin sgu...@softpoint.org

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



Re: implementing Java's URI in GWT

2012-02-07 Thread Sebastian Gurin
On Tue, 7 Feb 2012 13:39:32 -0800 (PST)
Thomas Broyer t.bro...@gmail.com wrote:

 AIUI,MIT license allows you to re-license the code under Apache (sublicense). 
 But I wonder why you simply don't use the regex from the RFC?

For a java programmer it is nicer to use the java API if possible, I think...

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


-- 
Sebastian Gurin sgu...@softpoint.org

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



Re: New to GWT: Need Help

2012-02-05 Thread Sebastian Gurin
;
 import com.google.gwt.user.client.ui.Panel;
 import com.google.gwt.user.client.ui.Widget;
 
 import ch.asolution.pikett.client.presenter.TopPanelPresenter;
 import com.google.gwt.uibinder.client.UiField;
 
 public class TopPanel extends Composite implements
 TopPanelPresenter.Display {
 
   private static TopPanelUiBinder uiBinder = GWT
   .create(TopPanelUiBinder.class);
   @UiField
   HasText welcome;
   @UiField
   HasClickHandlers logout;
   @UiField
   HasClickHandlers about;
 
   interface TopPanelUiBinder extends UiBinderHTMLPanel, TopPanel {
   }
 
   public TopPanel() {
   HTMLPanel panel = uiBinder.createAndBindUi(this);
   about.addClickHandler(new ClickHandler() {
 
   @Override
   public void onClick(ClickEvent event) {
   Window.alert(Copyrigth a-solution.ch);
 
   }
   });
   initWidget(panel);
   }
 
   @Override
   public HasText getWelcome() {
   return welcome;
   }
 
   @Override
   public HasClickHandlers getLogout() {
   return logout;
   }
 
   public Widget asWidget() {
   return 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.
 


-- 
Sebastian Gurin sgu...@softpoint.org

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



raphael4gwt - a new porting to raphaeljs vector graphics library to GWT

2012-02-03 Thread Sebastian Gurin
Hi all

I would like to present you my new GWT library, raphael4gwt : 

http://code.google.com/p/raphael4gwt/. 

Raphaeljs is an easy to use api for vector drawing that support all browsers, 
inclusive old versions of internet explorer

Unlike the project raphaelgwt, raphael4gwt implements 100% of raphaeljs drawing 
API natively for zero overhead and it is only based on gwt.dom.client for 
relating it with the DOM. 

Examples of current progress (almos all raphaeljs API is dome) can be found 
with java source code at raphael4gwt gallery demo, I hope example java source 
can help new users to start using it: 

http://cancerbero.vacau.com/gwt/raphael4gwtGallery/

Thanks to this list users for guide me on learning best practices on porting 
javascript toolkits using GWT overlay types and jsni. 

Any suggestion or comment is appreciated. 

Regards
-- 
Sebastian Gurin sgu...@softpoint.org

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



Re: [WARN] Injected scripts no longer use an associated JavaScript block; ignoring

2012-02-02 Thread Sebastian Gurin
I think that warning means that gwt no longer support content inside script 
elements in gwt.xml files. For preventing the warning to appear, I think you 
should use

script src=http://apis.google.com/js/plusone.js;/script

On Thu, 2 Feb 2012 07:01:11 -0800 (PST)
Luke travalle...@gmail.com wrote:

 i put
 
 script src=http://apis.google.com/js/plusone.js;
 {parsetags: explicit}
 /script
 
 
 in gwt.xml file , and i get above warning.   any advice? i'm not
 warning can safely ignore. but will future GWT support syntax like
 above?
 
 -- 
 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.
 


-- 
Sebastian Gurin sgu...@softpoint.org

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



Re: native javascript functions manipulation in java - overlay types

2012-01-31 Thread Sebastian Gurin
Thomas Thank you very much for your answers. You helped me al lot with my first 
porting of a javascript toolkit to GWT: my own version of raphaeljs.com (a cool 
javascript library for doing vector graphics) to gwt: 

project page
http://code.google.com/p/raphael4gwt/

demo with java sources available:
http://cancerbero.vacau.com/gwt/raphael4gwtGallery/

This library was written by me in few days and from scratch.

Initially I wanted to create a layer for doing javascript in java, so I can 
write javascript in java without jsni (but paying a little overhead price), 
like something like this:

JavaScriptObject o1 = getNativeObject();
JsUtils.put(o1, property1, value1);
JsUtils.put(o1, onclick, JsUtils.FUNC(new Runnable1(){
public JavaScriptObject run1(NativeEvent e) {
...
}
});

JsUtil.put performs obj[1]=b, jsUtil.FUNC converts a Runnable in a javascript 
function, etc

But this seems to be impossiblein gwt. More, looking at generated sources, I 
see gwt compiler do a beautifull job optimizing jsni based code. Also I'm 
feeling very confortably programing overlay types in eclipse with gwt eclipse 
plugin. So I discarded my initial idea of doing javascript in java, and I'm 
working with normal overlay types.

Thanks again, I will notify the group when my gwt4raphael library supports 100% 
of the raphaeljs api (neverthelessm,it is very usable right now)

Regards, and thank you again.

On Sun, 29 Jan 2012 03:23:33 -0800 (PST)
Thomas Broyer t.bro...@gmail.com wrote:

 
 
 On Friday, January 27, 2012 5:27:10 PM UTC+1, Sebastian Gurin wrote:
 
  Ok I found more or less how to do what I want, the following registers a 
  click handler in a native DOM object:
 
  public class DomEventTest1 {
  
  public static interface ClickHandler {
  void notifyClick(Element source);
  }
 
  /** call this directly from your Entry point class */
  public static void test(RootPanel rootPanel) {
  
  //create a button using gwt DOM
  ButtonElement button1 = Document.get().createPushButtonElement();
  button1.setInnerHTML(clickme);
  Document.get().getBody().appendChild(button1);
  
  addClickHandler(button1, new ClickHandler() {
  @Override
  public void notifyClick(Element source) {
  System.out.println(CLICKED);
  }
  });
  }
  public static native void addClickHandler(Element e, ClickHandler 
  handler)/*-{
  //dirty click handler registration, only for testing
  e.onclick=function() {
 
  handl...@org.sgx.gwtraphaljstest.client.js.test.DomEventTest1.ClickHandler::notifyClick(Lcom/google/gwt/dom/client/Element;)(this);
  }
  }-*/;
 
 
 You should wrap your function in $entry() so that a) exceptions are routed 
 to the GWT.UncaughtExceptionHandler and b) Scheduler.scheduleEntry and 
 Scheduler.scheduleFinally run appropriately. Also, note that you could pass 
 the event to your Java code as a NativeEvent:
 
 e.onclick = $entry(function(e) {
handl...@org.sgx.gwtraphaljstest.client.js.test.DomEventTest1.
 ClickHandler::notifyClick(Lcom/google/gwt/dom/client/NativeEvent;)(e);
 }
 
 (you might have to tweak the code for IE, which doesn't pass the event as 
 an argument but uses window.event (or should it be $wnd.event?))
 
 }
 
 
  Now two quiestion about jsni. 
 
  The first question is: the statement
 
  handl...@org.sgx.gwtraphaljstest.client.js.test.DomEventTest1.ClickHandler::notifyClick(Lcom/google/gwt/dom/client/Element;)(this);
  is a valid javascript statement? or is it some internal gwt compiler 
  language that is translated to javascript?
 
 
 No, it's a special syntax for JSNI. It's not valid JavaScript.
  
 
  What I would like is to be able of represent any javascript function using 
  java objects, like Runnable or other. The main problem for this is be able 
  to call a java instance method from javascript having the java class name, 
  method name and signature in strings. I would like something like:
 
  public static native void callJavaInstMethod(Object javaThisEl, String 
  className, String methodName, String methodSignature, Object[]params)/*-{
  //and here do something like:
 
  
  javaThisEl.@${className}::${methodName}(${methodSignature})(${params})
  }-*/;
 
  I tried to archieve something like this unssuccessfully with eval and 
  other hacks. A method like this, will allow me to represent any javascript 
  function using java objects. For example, instead of writing methods like 
  addClickHandler by hand, I could use an Artificial AbstractRunnable class 
  for represent javascript functions as java objects and do:
 
  button1.addClickHandler(new AbstractRunnable1Element(){
  public void run(Element e) {
  System.out.println(CLICKED);
  }
  });
 
  Any ideas on how to call a java instance method from native

Re: native javascript functions manipulation in java - overlay types

2012-01-31 Thread Sebastian Gurin
Yes there are some differences:

* raphaelgwt is based in raphaeljs 1.0 and mine in raphael2.0.

* raphaelgwt has limited support for doing native stuff it is base on gwt 
widgets for solving some problems. Specially there are no native event support 
(events are managed at gwt widget level). My library, raphael4gwt is not based 
on gwt widgets at all and support 100% of raphaeljs api with overlay types for 
zero overhead. You can put a raphael canvas object inside a widget, but 
contrary to raphaelgwt, the java api is only for the raphael canvas and shapes, 
not widgets. 

last section of the wiki explains my motivations a little more: 
http://code.google.com/p/raphael4gwt/wiki/MainDocumentation

Nevertheless, I'm thinking on contributing some things to raphaelgwt, specially 
native support for event handling.

I will anounce raphael4gwt in this group once I get a more polished version. 

Regards.

On Tue, 31 Jan 2012 14:25:17 +0100
Alain Ekambi jazzmatad...@googlemail.com wrote:

 Any difference between your library and
 http://code.google.com/p/raphaelgwt/  ?
 
 2012/1/31 Sebastian Gurin sgu...@softpoint.org
 
  Thomas Thank you very much for your answers. You helped me al lot with my
  first porting of a javascript toolkit to GWT: my own version of
  raphaeljs.com (a cool javascript library for doing vector graphics) to
  gwt:
 
  project page
  http://code.google.com/p/raphael4gwt/
 
  demo with java sources available:
  http://cancerbero.vacau.com/gwt/raphael4gwtGallery/
 
  This library was written by me in few days and from scratch.
 
  Initially I wanted to create a layer for doing javascript in java, so I
  can write javascript in java without jsni (but paying a little overhead
  price), like something like this:
 
  JavaScriptObject o1 = getNativeObject();
  JsUtils.put(o1, property1, value1);
  JsUtils.put(o1, onclick, JsUtils.FUNC(new Runnable1(){
 public JavaScriptObject run1(NativeEvent e) {
 ...
 }
  });
 
  JsUtil.put performs obj[1]=b, jsUtil.FUNC converts a Runnable in a
  javascript function, etc
 
  But this seems to be impossiblein gwt. More, looking at generated sources,
  I see gwt compiler do a beautifull job optimizing jsni based code. Also I'm
  feeling very confortably programing overlay types in eclipse with gwt
  eclipse plugin. So I discarded my initial idea of doing javascript in
  java, and I'm working with normal overlay types.
 
  Thanks again, I will notify the group when my gwt4raphael library supports
  100% of the raphaeljs api (neverthelessm,it is very usable right now)
 
  Regards, and thank you again.
 
  On Sun, 29 Jan 2012 03:23:33 -0800 (PST)
  Thomas Broyer t.bro...@gmail.com wrote:
 
  
  
   On Friday, January 27, 2012 5:27:10 PM UTC+1, Sebastian Gurin wrote:
   
Ok I found more or less how to do what I want, the following registers
  a
click handler in a native DOM object:
   
public class DomEventTest1 {
   
public static interface ClickHandler {
void notifyClick(Element source);
}
   
/** call this directly from your Entry point class */
public static void test(RootPanel rootPanel) {
   
//create a button using gwt DOM
ButtonElement button1 =
  Document.get().createPushButtonElement();
button1.setInnerHTML(clickme);
Document.get().getBody().appendChild(button1);
   
addClickHandler(button1, new ClickHandler() {
@Override
public void notifyClick(Element source) {
System.out.println(CLICKED);
}
});
}
public static native void addClickHandler(Element e, ClickHandler
handler)/*-{
//dirty click handler registration, only for testing
e.onclick=function() {
   
   
  handl...@org.sgx.gwtraphaljstest.client.js.test.DomEventTest1.ClickHandler
  ::notifyClick(Lcom/google/gwt/dom/client/Element;)(this);
}
}-*/;
   
  
   You should wrap your function in $entry() so that a) exceptions are
  routed
   to the GWT.UncaughtExceptionHandler and b) Scheduler.scheduleEntry and
   Scheduler.scheduleFinally run appropriately. Also, note that you could
  pass
   the event to your Java code as a NativeEvent:
  
   e.onclick = $entry(function(e) {
  handl...@org.sgx.gwtraphaljstest.client.js.test.DomEventTest1.
   ClickHandler::notifyClick(Lcom/google/gwt/dom/client/NativeEvent;)(e);
   }
  
   (you might have to tweak the code for IE, which doesn't pass the event as
   an argument but uses window.event (or should it be $wnd.event?))
  
   }
   
   
Now two quiestion about jsni.
   
The first question is: the statement
   
   
  handl...@org.sgx.gwtraphaljstest.client.js.test.DomEventTest1.ClickHandler
  ::notifyClick(Lcom/google/gwt/dom/client/Element;)(this);
is a valid javascript statement? or is it some internal gwt compiler
language that is translated to javascript

Re: does CSS Sprite is default ?

2012-01-31 Thread Sebastian Gurin
If you use gwt client bundle for referencing your images in your gwt app, gwt 
compiler will decide how is best way of storing the images. 

By default, it stores small images in with the content embedded in the urls, 
like: img src=data:101010010100110. For bigger images, it store them as 
regular files and regular urls, like src=afile1.png

In client bundles you can force the gwt compiler to a technic. For example, if 
I don't want the compiler to inline the data image in urls I annotate the 
ImageResource with  @ImageOptions(preventInlining=true) as the following code 
shows.

import com.google.gwt.core.client.GWT;
import com.google.gwt.resources.client.ClientBundle;
import com.google.gwt.resources.client.ImageResource;
import com.google.gwt.resources.client.ImageResource.ImageOptions;

public interface TestImageResources extends ClientBundle {
  TestImageResources INSTANCE = GWT.create(TestImageResources.class);

  @ImageOptions(preventInlining=true)
  @Source(smallLion.png)
  ImageResource smallLion();

}

regards, 


On Mon, 30 Jan 2012 18:56:10 -0800 (PST)
wahaha il...@yahoo.com.cn wrote:

 there has many small pictures in a page,does GWT will merge them by
 default?
 
 -- 
 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.
 


-- 
Sebastian Gurin sgu...@softpoint.org

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



Re: native javascript functions manipulation in java - overlay types

2012-01-27 Thread Sebastian Gurin
Ok I found more or less how to do what I want, the following registers a click 
handler in a native DOM object:

public class DomEventTest1 {

public static interface ClickHandler {
void notifyClick(Element source);
}

/** call this directly from your Entry point class */
public static void test(RootPanel rootPanel) {

//create a button using gwt DOM
ButtonElement button1 = Document.get().createPushButtonElement();
button1.setInnerHTML(clickme);
Document.get().getBody().appendChild(button1);

addClickHandler(button1, new ClickHandler() {   
@Override
public void notifyClick(Element source) {
System.out.println(CLICKED);
}
});
}
public static native void addClickHandler(Element e, ClickHandler handler)/*-{
//dirty click handler registration, only for testing
e.onclick=function() {  
handl...@org.sgx.gwtraphaljstest.client.js.test.DomEventTest1.ClickHandler::notifyClick(Lcom/google/gwt/dom/client/Element;)(this);
}
}-*/;

}


Now two quiestion about jsni. 

The first question is: the statement
handl...@org.sgx.gwtraphaljstest.client.js.test.DomEventTest1.ClickHandler::notifyClick(Lcom/google/gwt/dom/client/Element;)(this);
is a valid javascript statement? or is it some internal gwt compiler language 
that is translated to javascript?

What I would like is to be able of represent any javascript function using java 
objects, like Runnable or other. The main problem for this is be able to call a 
java instance method from javascript having the java class name, method name 
and signature in strings. I would like something like:

public static native void callJavaInstMethod(Object javaThisEl, String 
className, String methodName, String methodSignature, Object[]params)/*-{
//and here do something like:
javaThisEl.@${className}::${methodName}(${methodSignature})(${params})
}-*/;

I tried to archieve something like this unssuccessfully with eval and other 
hacks. A method like this, will allow me to represent any javascript function 
using java objects. For example, instead of writing methods like 
addClickHandler by hand, I could use an Artificial AbstractRunnable class for 
represent javascript functions as java objects and do:

button1.addClickHandler(new AbstractRunnable1Element(){
public void run(Element e) {
System.out.println(CLICKED);
}
});

Any ideas on how to call a java instance method from native javascript having 
all the necesary information in Strings ?

Regards, and thanks in advance.

On Thu, 26 Jan 2012 15:42:27 -0200
Sebastian Gurin sgu...@softpoint.org wrote:

 Hello all. 
 
 I'm trying my first javascript toolkit porting to java in gwt. I think 
 JavaScript Overlay Types is exactly what I need. Everithing seems to be well 
 supported with the exception of javascript functions... 
 
 Explanation. The objective behind Overlay Types as I understand is to easily 
 and safely present a javascript object in java language. But javascript 
 objects often require the pass of a function as function parameter, for 
 example, subscribing to an event with a javascript function handler:
 
 jQuery(el).click(function(){..});
 
 My question is, can I represent a javascript function in java? for example 
 with a java.lang.Runnable?
 
 My intention is:
 
 public class MyWrapp extends JavaScriptObject {
 public void click(Runnable listener) {
   and here handle somehow the function listener::run
   as a java object functionObject and pass it via jsni like:
   this.click(functionObject);
 }
 }
 
 
 and then in my java code use the wrapper:
 
 MyWrap wrapper = ...;
 wrapper.click(new Runnable(){
   Window.alert(clicked!);
 });
 
 
 
 Note: 
 In java2script (a java to javascript compiler similar to GWT), it was not so 
 hard to do this because method functions are implemented inside context 
 objects natively. i.e. In Runnable r, r.run is a javascript function 
 natively, s onatively I can simply perform r.run(), taking care of pointing 
 javascript context object to 'r'. 
 
 In GWT this is different, calling r.run() natively must be done with 
 something like:
 
 r...@org.my.Runnable::run()();
 
 I'm still investigating possible sollutions to this problem. Also, I found 
 that the new GWT DOM API 
 (http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/dom/client/package-tree.html),
  that I think it is based on Overlay Types doesn't seem to have support for 
 event registration or any task implying javascript function 
 manipulation/presentation in java.
 
 Well, any idea is most welcome. Regards
 
 
 -- 
 Sebastian Gurin sgu...@softpoint.org
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to google-web-toolkit@googlegroups.com

Re: save data to database with hibernate and rpc

2012-01-27 Thread Sebastian Gurin
I agree with you about gilead intrusiveness. Also I see the project is not 
mantained any more. In my case I didn't get it to work, but google's 
using_gwt_with_hibernate.html document refer to it as a sollution. That is why 
I recommended it. 

I will keep investigating Hibernate filter for future gwt+hibernate projects. 
Thanks for the info.

Regards.

On Fri, 27 Jan 2012 00:03:06 -0300
Juan Pablo Gardella gardellajuanpa...@gmail.com wrote:

 Instead of use gilead (to me intrusive), you can use Hibernate filter. See
 http://groups.google.com/group/google-web-toolkit/browse_thread/thread/7e46e8c33e7ee5da
 
 El 26 de enero de 2012 20:56, Sebastian Gurin sgu...@softpoint.orgescribió:
 
  Hi I developed my web apps gwt and persist the model with hibernate. You
  have lot of articles about it
 
 
  http://code.google.com/intl/es-ES/webtoolkit/articles/using_gwt_with_hibernate.html
 
  my advice:
  The main problem you will encounter is compatibility issues between model
  object managed by hibernate and gwt rpc java object serialization.
 
  Hibernate poblate your bean classes using datatypes unsupported by gwt
  rpc. Gwt rpc only understand common java type implementations ( like
  HashMap, HashSet ) . In particular, in many-relationships, if you configure
  hibernate with lazy=false for automatically loading collection
  properties, hibernate will use java.lang.Set implementation unsupported by
  gwt rpc serialization.
 
  I recommend you tu use data transfer objects (DTO) object to wrap your
  real model classes.
 
  If you really wnt to use your existing java model directly with hibernate
  and gwt rpc, you have choices:
 
  1) use a library like http://noon.gilead.free.fr/gilead/.
  2) do not let hibernate manage collections:
 - Use lazy=true in hiberate
 - Make your DAO or BL classes API to provide with methods for
  retrieving many-relations - like ListApple getApples(long treeId); make
  sure those methods return objects compatible with gwt rpc (like LinkedList,
  HashSet, etc)
 
  good look
 
  On Thu, 26 Jan 2012 11:32:54 -0800 (PST)
  odon odon.d@gmail.com wrote:
 
   hii...
   i need help ...
   i get problem with save data to database with hibernate.
   when i executed the event, i always get on failure
   this is the code...
  
   Button btn= new Button(create);
   btn.addClickHandler(new ClickHandler() {
 public void onClick(ClickEvent event) {
 Info info= new Info();
 info.setId(null);
 info.setUsername(txtbxUsername.getText());
  
  info.setPassword(passwordTextBox.getText());
 infoService.saveInfo(info, new
  AsyncCallbackString() {
  
 @Override
 public void onSuccess(String
  result) {
 // TODO Auto-generated
  method stub
 Window.alert(success);
  
 }
  
 @Override
 public void onFailure(Throwable
  caught) {
 // TODO Auto-generated
  method stub
 Window.alert(fail+
  caught.getMessage());
 }
 });
 }
 });
  
   how to make it on success?
   please your 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.
  
 
 
  --
  Sebastian Gurin sgu...@softpoint.org
 
  --
  You received this message because you are subscribed to the Google Groups
  Google Web Toolkit group.
  To post to this group, send email to google-web-toolkit@googlegroups.com.
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.com.
  For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.
 
 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.
 


-- 
Sebastian Gurin sgu...@softpoint.org

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

Re: save data to database with hibernate and rpc

2012-01-27 Thread Sebastian Gurin
thanks I'm also considering that for future projects. I'm new and the first 
thing I learn for client-server comunication was rpc. I'm trying to learn 
RequestFactory and see how to integrate with hibernate. I (mm.. my boss) want 
to handle the data with hibernate based DAOs and Busniss Logic classes. 

My GWT client code should only call methods on BL classes : 

hibernate  --   DAO   --  BL   --  GWT RPC servlet  -- GWT client

In my gwt rpc based app I was able to use THE SAME model classes in all the 
layers, even in gwt. It can be dirty because model classes has to be putted 
inside gwtpackage.client.model so gwt client can translate it to javascript. 

Also as I said must be careful with hibernate or other toolkits contaminating 
model classes. In the case of hibernate, lazy=true do the job because this 
obligates that collection attributes must be returned by the DAOs API (and be 
carefull, in the DAO, to use suported java collections supported by gwt rpc 
serialization). 

But for small / investigation projects this gives a lot of simplicity, having 
no DTOs or (Request factory) Proxies. 

that's my little experience so far.

regards

On Fri, 27 Jan 2012 11:30:30 -0600
Daniel Mauricio Patino León ceo.lion@gmail.com wrote:

 I think the best way is use RequestFactory. Forguet DTO's or third party
 librarys
 
 2012/1/27 Sebastian Gurin sgu...@softpoint.org
 
  I agree with you about gilead intrusiveness. Also I see the project is not
  mantained any more. In my case I didn't get it to work, but google's
  using_gwt_with_hibernate.html document refer to it as a sollution. That is
  why I recommended it.
 
  I will keep investigating Hibernate filter for future gwt+hibernate
  projects. Thanks for the info.
 
  Regards.
 
  On Fri, 27 Jan 2012 00:03:06 -0300
  Juan Pablo Gardella gardellajuanpa...@gmail.com wrote:
 
   Instead of use gilead (to me intrusive), you can use Hibernate filter.
  See
  
  http://groups.google.com/group/google-web-toolkit/browse_thread/thread/7e46e8c33e7ee5da
  
   El 26 de enero de 2012 20:56, Sebastian Gurin sgu...@softpoint.org
  escribió:
  
Hi I developed my web apps gwt and persist the model with hibernate.
  You
have lot of articles about it
   
   
   
  http://code.google.com/intl/es-ES/webtoolkit/articles/using_gwt_with_hibernate.html
   
my advice:
The main problem you will encounter is compatibility issues between
  model
object managed by hibernate and gwt rpc java object serialization.
   
Hibernate poblate your bean classes using datatypes unsupported by gwt
rpc. Gwt rpc only understand common java type implementations ( like
HashMap, HashSet ) . In particular, in many-relationships, if you
  configure
hibernate with lazy=false for automatically loading collection
properties, hibernate will use java.lang.Set implementation
  unsupported by
gwt rpc serialization.
   
I recommend you tu use data transfer objects (DTO) object to wrap your
real model classes.
   
If you really wnt to use your existing java model directly with
  hibernate
and gwt rpc, you have choices:
   
1) use a library like http://noon.gilead.free.fr/gilead/.
2) do not let hibernate manage collections:
   - Use lazy=true in hiberate
   - Make your DAO or BL classes API to provide with methods for
retrieving many-relations - like ListApple getApples(long treeId);
  make
sure those methods return objects compatible with gwt rpc (like
  LinkedList,
HashSet, etc)
   
good look
   
On Thu, 26 Jan 2012 11:32:54 -0800 (PST)
odon odon.d@gmail.com wrote:
   
 hii...
 i need help ...
 i get problem with save data to database with hibernate.
 when i executed the event, i always get on failure
 this is the code...

 Button btn= new Button(create);
 btn.addClickHandler(new ClickHandler() {
   public void onClick(ClickEvent event) {
   Info info= new Info();
   info.setId(null);

  info.setUsername(txtbxUsername.getText());

info.setPassword(passwordTextBox.getText());
   infoService.saveInfo(info, new
AsyncCallbackString() {

   @Override
   public void onSuccess(String
result) {
   // TODO Auto-generated
method stub

  Window.alert(success);

   }

   @Override
   public void onFailure(Throwable
caught) {
   // TODO Auto-generated
method stub
   Window.alert(fail+
caught.getMessage

native javascript functions manipulation in java - overlay types

2012-01-26 Thread Sebastian Gurin
Hello all. 

I'm trying my first javascript toolkit porting to java in gwt. I think 
JavaScript Overlay Types is exactly what I need. Everithing seems to be well 
supported with the exception of javascript functions... 

Explanation. The objective behind Overlay Types as I understand is to easily 
and safely present a javascript object in java language. But javascript 
objects often require the pass of a function as function parameter, for 
example, subscribing to an event with a javascript function handler:

jQuery(el).click(function(){..});

My question is, can I represent a javascript function in java? for example with 
a java.lang.Runnable?

My intention is:

public class MyWrapp extends JavaScriptObject {
public void click(Runnable listener) {
and here handle somehow the function listener::run
as a java object functionObject and pass it via jsni like:
this.click(functionObject);
}
}


and then in my java code use the wrapper:

MyWrap wrapper = ...;
wrapper.click(new Runnable(){
Window.alert(clicked!);
});



Note: 
In java2script (a java to javascript compiler similar to GWT), it was not so 
hard to do this because method functions are implemented inside context objects 
natively. i.e. In Runnable r, r.run is a javascript function natively, s 
onatively I can simply perform r.run(), taking care of pointing javascript 
context object to 'r'. 

In GWT this is different, calling r.run() natively must be done with something 
like:

r...@org.my.Runnable::run()();

I'm still investigating possible sollutions to this problem. Also, I found that 
the new GWT DOM API 
(http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/dom/client/package-tree.html),
 that I think it is based on Overlay Types doesn't seem to have support for 
event registration or any task implying javascript function 
manipulation/presentation in java.

Well, any idea is most welcome. Regards


-- 
Sebastian Gurin sgu...@softpoint.org

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



Re: save data to database with hibernate and rpc

2012-01-26 Thread Sebastian Gurin
Hi I developed my web apps gwt and persist the model with hibernate. You have 
lot of articles about it

http://code.google.com/intl/es-ES/webtoolkit/articles/using_gwt_with_hibernate.html

my advice:
The main problem you will encounter is compatibility issues between model 
object managed by hibernate and gwt rpc java object serialization.

Hibernate poblate your bean classes using datatypes unsupported by gwt rpc. Gwt 
rpc only understand common java type implementations ( like HashMap, HashSet ) 
. In particular, in many-relationships, if you configure hibernate with 
lazy=false for automatically loading collection properties, hibernate will 
use java.lang.Set implementation unsupported by gwt rpc serialization. 

I recommend you tu use data transfer objects (DTO) object to wrap your real 
model classes.

If you really wnt to use your existing java model directly with hibernate and 
gwt rpc, you have choices:

1) use a library like http://noon.gilead.free.fr/gilead/.
2) do not let hibernate manage collections:
- Use lazy=true in hiberate 
- Make your DAO or BL classes API to provide with methods for 
retrieving many-relations - like ListApple getApples(long treeId); make sure 
those methods return objects compatible with gwt rpc (like LinkedList, HashSet, 
etc)

good look

On Thu, 26 Jan 2012 11:32:54 -0800 (PST)
odon odon.d@gmail.com wrote:

 hii...
 i need help ...
 i get problem with save data to database with hibernate.
 when i executed the event, i always get on failure
 this is the code...
 
 Button btn= new Button(create);
 btn.addClickHandler(new ClickHandler() {
   public void onClick(ClickEvent event) {
   Info info= new Info();
   info.setId(null);
   info.setUsername(txtbxUsername.getText());
   info.setPassword(passwordTextBox.getText());
   infoService.saveInfo(info, new 
 AsyncCallbackString() {
 
   @Override
   public void onSuccess(String result) {
   // TODO Auto-generated method 
 stub
   Window.alert(success);
 
   }
 
   @Override
   public void onFailure(Throwable caught) 
 {
   // TODO Auto-generated method 
 stub
   Window.alert(fail+ 
 caught.getMessage());
   }
   });
   }
   });
 
 how to make it on success?
 please your 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.
 


-- 
Sebastian Gurin sgu...@softpoint.org

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



Re: gwt gui with no servlet container

2012-01-05 Thread Sebastian Gurin
thank you for the fast responses. Regards

On Thu, 5 Jan 2012 07:13:18 -0800 (PST)
Steve Moyer smoye...@gmail.com wrote:

 Yes ... my application is being served from CouchDB and there is no
 back-end code (since I make XMLHttpRequests directly to CouchDB using
 JSON).  I've got another small application that works off-line (using
 HTML5 Application Caching) and stores all it's data on the user's
 computer using LocalStorage (and a bit of SessionStorage for maps that
 are built when the application loads).
 
 Welcome to the group and good luck!
 
 On Jan 5, 9:18 am, Jens jens.nehlme...@gmail.com wrote:
  Just compile your app and deploy its host html page + compiled
  javascript/images to any web server you want.
 
  Thats not a problem at all.
 
 -- 
 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.
 


-- 
Sebastian Gurin sgu...@softpoint.org

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



gwt gui with no servlet container

2012-01-04 Thread Sebastian Gurin
Hi all. This is my first message to the group. I'm a contributor on a similar 
project at j2s.sf.net. Tried GWT some years ago and didn't like it, but now, it 
has improved a lot. My congrats to the authors! keep the good work.

Now my question, I would like create a simple html site, with no server stuff 
at all, only text, images and css, in gwt. Is it possible to deploy a gwt app 
(with no rpc/requestfractory/server at all) as static content in a non servlet 
support like plain apache?

The gwt app will not use rpc or any server comunication at all, only gwt 
widgets and themes. So I suppose there is a way of deploying 
javascript+html+css gwt generated files as static content? Any suggestions?

Thanks in advance.


-- 
Sebastian Gurin sgu...@softpoint.org

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



gwt gui with no servlet container

2012-01-04 Thread Sebastian Gurin
Hi all. This is my first message to the group. I'm a contributor on a similar 
project at j2s.sf.net. Tried GWT some years ago and didn't like it, but now, it 
has improved a lot. My congrats to the authors! keep the good work.

Now my question, I would like create a simple html site, with no server stuff 
at all, only text, images and css, in gwt. Is it possible to deploy a gwt app 
(with no rpc/requestfractory/server at all) as static content in a non servlet 
support like plain apache?

The gwt app will not use rpc or any server comunication at all, only gwt 
widgets and themes. So I suppose there is a way of deploying 
javascript+html+css gwt generated files as static content? Any suggestions?

Thanks in advance.


-- 
Sebastian Gurin sgu...@softpoint.org

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



Re: Doubt about using ValueListBox + UIBinder + Editors Framework

2011-08-11 Thread Sebastian Carrizo
Hi, i have the same problem, do you have a class documentation link or some 
kind of documentation about LeafValueEditor? i only could get a description.


Thanks

-- 
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/-/5pZJIpnKztQJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: Google plugin for Eclipse withou WindowBuilder (GWT Designer)

2011-07-08 Thread Sebastian
Forget about it, the new update on the Designers beta Version fixed the
problem. It now runs like a charm

2011/7/6 Sebastian open.sebast...@gmail.com

 Hello Vrto,

 may I ask which Ubuntu Version do you use? Is it 32 or 64 Bit? I am
 using 11.04 with AMD64 and can´t get the Designer running at all
 (Eclipse Indigo). I ask beacause it is a clean Installation and I
 supposed that the failure was on the Ubuntu side.

 2011/6/16 Vrto michal.vrt...@gmail.com

 BTW, I've seen your Google IO 2011 presentation (n1) and I was
 surprised how fast GWT designer worked on your Windows machine (and it
 looked virtualized from Mac OS X if I remember correctly!). Is it
 possible that it's slower on Linux? With Eclipse on Sun's JRE? I guess
 I will try it with fresh install of Indigio, where my Eclipse
 installation will not be huge monster with billion of plugins if
 that's any better.

 On Jun 16, 10:41 pm, Eric Clayberg clayb...@google.com wrote:
  I would be curious as to how the latest GWT Designer build feels to
  you...
 
  http://code.google.com/webtoolkit/tools/download-gwtdesigner-beta.html
 
  On Jun 16, 1:08 pm, Vrto michal.vrt...@gmail.com wrote:
 
 
 
 
 
 
 
   I disabled that of course, but when Eclipse stars it does always stuff
   like updatinggwtdesignerpaletten, building somegwtdesigner
   stuff and I am minimalist I just dont want that heh :)
 
   On Jun 16, 7:02 pm, Renato Beserra renatobese...@gmail.com wrote:
 
I don't like theGWTDesignereither, but how does it cause you
 problems?
 
Is it opening your classes by default or something?
 
2011/6/16 Vrto michal.vrt...@gmail.com
 
 Hello, I like Google Plugin for Eclipse, but I don't likeGWT
Designer. It's slow, buggy, keeps updating itself, loads terribly
 load
 and so on. Is there any chance of releasing google plugin
 withoutGWT
Designer?
 
 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.
 
--
Renato Beserra Sousa

 --
 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 Designer Eclipse Problem

2011-07-08 Thread Sebastian
The same here with Ubuntu 11.04 x64 and Eclipse Indigo. My installed
libWebKit Versions are libwebkitgtk-1.0.so.0.6.0  and
libwebkitgtk-3.0.so.0.6.0.
Tried the workaround but had no luck with it.

2011/7/7 Alexander Mitin alexander.mi...@gmail.com

 Try this workaround:
 1. Open terminal and change dir to /usr/lib
 2. Do sudo ln -s libwebkitgtk-1.0.so.0.6.0 libwebkit-1.0.so.2 command,
 where libwebkitgtk-1.0.so.0.6.0 is the webkit lib file, it's name
 could be different in version numbers.
 3. Restart Eclipse.

 --
 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: Google plugin for Eclipse withou WindowBuilder (GWT Designer)

2011-07-06 Thread Sebastian
Hello Vrto,

may I ask which Ubuntu Version do you use? Is it 32 or 64 Bit? I am
using 11.04 with AMD64 and can´t get the Designer running at all
(Eclipse Indigo). I ask beacause it is a clean Installation and I
supposed that the failure was on the Ubuntu side.

2011/6/16 Vrto michal.vrt...@gmail.com

 BTW, I've seen your Google IO 2011 presentation (n1) and I was
 surprised how fast GWT designer worked on your Windows machine (and it
 looked virtualized from Mac OS X if I remember correctly!). Is it
 possible that it's slower on Linux? With Eclipse on Sun's JRE? I guess
 I will try it with fresh install of Indigio, where my Eclipse
 installation will not be huge monster with billion of plugins if
 that's any better.

 On Jun 16, 10:41 pm, Eric Clayberg clayb...@google.com wrote:
  I would be curious as to how the latest GWT Designer build feels to
  you...
 
  http://code.google.com/webtoolkit/tools/download-gwtdesigner-beta.html
 
  On Jun 16, 1:08 pm, Vrto michal.vrt...@gmail.com wrote:
 
 
 
 
 
 
 
   I disabled that of course, but when Eclipse stars it does always stuff
   like updatinggwtdesignerpaletten, building somegwtdesigner
   stuff and I am minimalist I just dont want that heh :)
 
   On Jun 16, 7:02 pm, Renato Beserra renatobese...@gmail.com wrote:
 
I don't like theGWTDesignereither, but how does it cause you
 problems?
 
Is it opening your classes by default or something?
 
2011/6/16 Vrto michal.vrt...@gmail.com
 
 Hello, I like Google Plugin for Eclipse, but I don't likeGWT
Designer. It's slow, buggy, keeps updating itself, loads terribly
 load
 and so on. Is there any chance of releasing google plugin
 withoutGWT
Designer?
 
 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.
 
--
Renato Beserra Sousa

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



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



Re: GWT 2.3 composite editor // setValue called twice

2011-05-31 Thread Sebastian Beigel
Hi Patrick,

that's true, but it was an example only. You surely should do what you
said but it's still unnecessary (and potentially harmful for the
performance) to do this call twice (by the framework!), so I think
it's a bug in GWT's editor code that should be fixed there and not be
worked around by (application) developers.

Sebastian


On Tue, May 31, 2011 at 3:30 AM, Patrick Tucker tucker...@gmail.com wrote:
 I didn't look at the code, so this may not be feasible, but shouldn't
 you be doing this heavy stuff only when the value changes?  It's
 pretty easy to check the current vale prior to doing any work, or
 implement via handling valuechangeevents.

 On May 27, 8:27 am, Sebastian Beigel sebast...@beigel.de wrote:
 Hi,

 unfortunately there seems to be no love for the issue I reported a
 while ago concerning the revamped editor code (starting w/ GWT 2.3)
 using Refresher  Initializer.

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

 Sub-editors' setValue() methods get called twice, which can be a very
 bad thing if you do something fancy/heavy in you setValue() method.
 But even for non-visible use-cases (like my trivial example w/
 TextBoxes) it's unnecessary and a can harm performance.

 Sebastian

 --
 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 2.3 composite editor // setValue called twice

2011-05-27 Thread Sebastian Beigel
Hi,

unfortunately there seems to be no love for the issue I reported a
while ago concerning the revamped editor code (starting w/ GWT 2.3)
using Refresher  Initializer.

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

Sub-editors' setValue() methods get called twice, which can be a very
bad thing if you do something fancy/heavy in you setValue() method.
But even for non-visible use-cases (like my trivial example w/
TextBoxes) it's unnecessary and a can harm performance.

Sebastian

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



ListBox

2011-03-11 Thread Sebastian Coronado A.
Hello I was checking ListBox's methods and I found this one:

addItem(java.lang.String item, java.lang.String value)
  Adds an item to the list box, specifying an initial value
for the item.

I dont get how to use the value parameter with a FormPanel. I wanted
to store ids from database in that parameter, Can I use it for that
purpose?.

regards

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



Re: Eclipse plugin problem with OSX Java update 4?

2011-03-10 Thread Sebastian Beigel
Maybe you have to install the latest Java developer package from Apple
(Java for Mac OS X 10.6 Update 4 Developer Package) -- I did this
and pointed my JDK 1.6 home to the (new) location:
/Library/Java/JavaVirtualMachines/1.6.0_24-b07-334.jdk/Contents/Home.
Everything works as before.

Sebastian

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



CSS @font-face rules

2011-03-04 Thread Sebastian Beigel
Hi,

I'm playing around with CSS3's @font-face. It doesn't work with GWT
2.2's CssResource unfortunately. I found this patch:

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

but it isn't applied to the 2.2 source code (though it seems to
originate from pre-2.2 or event pre-2.1 times...)

What's the current status wrt @font-face support in GWT?

As a workaround, I can put @font-face rules in a style section in my
host HTML page or link to a external stylesheet. But I would prefer to
include them in my CssResources.

Thanks,
Sebastian

-- 
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: IE problems

2011-02-14 Thread Sebastian Rothbucher
Hi SVR,

that's indeed a challenge - if nothing else does help any more, try
pinning down the problem by inserting debug statements (e.g. alerts)
closely (and even more closely as you move along) around the spot
where you fail. Maybe it helps to look into the source but most
probably you won't see so much - probably you recognize the problem...

Hope this helps a little - good luck!

   Sebastian Rothbucher

On 14 Feb., 19:34, SVR svr...@gmail.com wrote:
 Hi
 I have my GWT module working in FF, I am trying to launch the same in IE and
 get the following error:
 In general, I would like to know how to approach/debug problems of this
 nature in IE?
 Thanks

 Webpage error details

 User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0;
 GTB6.6; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET
 CLR 3.5.30729)
 Timestamp:

 Message: Object doesn't support this property or method
 Line: 714
 Char: 3
 Code: 0
 URI:http://localhost:9080/DashboardWeb/gwt/51F5EB69C1BCD1B2A8D104D2BCD28C...

-- 
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: SerializationException problem, please advice!

2011-02-14 Thread Sebastian Rothbucher
Hi,
this is a mean exception - as it seems to happen irregularly. In case
you have the same problems I also had already: take the outermost
object (the one you directly pass into the service or return from the
service) and create private local variables for ALL types that have
ever caused problems. You don't have to assign the variable ever (just
type private SomeType var1;).
The background on this is that GWT seems to examine the classpath for
all possible subclasses and fails if it can not guess all of them.
Creating the variable reminds GWT and you should be save. Of course,
this won't work for many variables as you blow up the size of each RPC
request, but for a handful of objects (and I did never have more) this
works more than well...

Hope this helps - best regards
Sebastian Rothbucher

On 14 Feb., 15:05, Ice13ill andrei.fifi...@gmail.com wrote:
 I use GWT to develop my app, deploying it to GAE. Sometimes, (more
 often when switching between different versions) i get this exception:
 javax.servlet.ServletContext log: Exception while dispatching incoming
 RPC call
 com.google.gwt.user.client.rpc.SerializationException: Type
 'ro.expert.evt.shared.entities.UserProfile' was not assignable to
 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a
 custom field serializer.For security purposes, this type will not be
 serialized.

 My entities classes (like UserProfile above) extends an EObject class
 that also extends EEntity (which is the only class that implements
 java.io.Serializable).

 I cannot reproduce it exactly, but i found some posts on the web
 saying that adding a default empty constructor to all entities will
 resolve the problem. I'm not sure about that so i would like some
 advice on implementing IsSerializable (GWT) or Serializable
 (java.io).
 Can I use both GWT's IsSerializable AND java.io.Serializable to be
 implemented by the top level class ? (EEntity in my case) so that my
 entities can also be passed through a wire or GWT RPC. Or does the
 GWT IsSerializable needs to be implemented by every entity class ?
 (like UserProfile)

-- 
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 an Image from received bytes on client side - possible?

2011-02-14 Thread Sebastian Rothbucher
Hi, you might try using a base 64 string as source. So when you have a
base 64 string, you might try:
Image myimage=new Image();
myimage.setUrl(data:image/jpeg;base64,+picdata.getText());
Maybe this works; to be honest, I'm not 100% sure but GWT seems to do
this for some image coming with the framework...

Best regards
Sebastian Rothbucher

On 14 Feb., 10:16, MJ zuti...@gmail.com wrote:
 Hey guys.

 I did some researching on this matter but besides ClientBundle I
 failed to find something that would help me here. ClientBundle would
 work OK in case I would have the images as static references, but what
 I am trying to do (just playing around, getting to know this GWT) is
 similar to file explorer. A tree on the left side of my workspace
 shows folders with files inside them. For my purposes, picture files.
 And these folders can be anywhere on the HDD. Now, how would I go
 about sending selected image (or complete folder content) to client
 side?

 What I had in mind is that I would create a widget that would hold an
 Image object on it + perhaps a label or two. Nothing fancy. This
 widget would call a asnyc service to get the picture data from the
 server. Bytes. But, once I would get the data to the client side, how
 can I create an Image object out of it? I did not find a way.

 Alternative I could probably make browsing only possible on such
 folders that are accessible over the internet (virtual folders I think
 is the correct term) and just send over appropriate URLs, since Image
 does accept such parameter. But I would really like to know if
 original idea is feasible. ImageResource from received bytes?

 Thank you all.

-- 
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 disable the context menu

2011-02-14 Thread Sebastian Rothbucher
Hi Koen,

you could use the oncontextmenu event handler and return false to hide
the menu. IE seems to require this be in the body but at least Firefox
is quite straightforward...
There is also a quite good blog post on the web on that:
http://whatwouldnickdo.com/wordpress/370/gwt-right-click-context-menu/

Hope this helps - best regards
Sebastian Rothbucher

On 13 Feb., 10:29, KoenP koen.pil...@gmail.com wrote:
 Hi,

 I would like to disable the rightclick context menu on pictures in my
 Googlewebs website. Any idea where I should implent which code?

 KoenP

-- 
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: Exposing only the interfaces of the Data Entities to GWT

2011-02-14 Thread Sebastian Rothbucher
Hi Nitiraj,

I guess in that case you have to chance but create another (entirely
dumb) implementation of IUser, etc. that does nothing but store the
properties - and to copy over into these objects before performing the
actual service / before returning. As you'd still be on the server you
can probably make use of reflection (or reflection-based stuff such as
beanutils) to realize that...

Hope this helps - best regards
Sebastian Rothbucher

On 11 Feb., 06:25, Nitiraj crazy.na...@gmail.com wrote:
 Hi,

 I have a architecture where one jar contains the interfaces of
 Entities used in the project. Say, IUser, IGroup etc.
 Other jar contains the implementation (concrete classes) of these
 Entities, say User.java, Group.java etc ..

 I only want to expose the interface jar to the GWT front end UI
 project and hide all the implementation object.
 But I want to pass these objects directly into the client code.
 I have seen Objectify (http://code.google.com/p/objectify-appengine/
 ) but this will also need me to expose the User.java and Group.java
 implementations.

 How should I go about it.
 Any help is deeply appreciated. !

-- 
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: Frame not refreshing when call setURL

2011-02-14 Thread Sebastian Rothbucher
Hi Greg,
which part of the URL do you customize? Is there probably a # before
that (accidentially)? (all after the hash won't work, at least not in
IE)...
IN case you really can't find any solution, could you completely
randomize the filename and use a rewrite rule on the server
(mod_rewrite) to compensate?

Hope this helps - best regards
   Sebastian Rothbucher

On 10 Feb., 18:45, Greg Dougherty dougherty.greg...@mayo.edu wrote:
 So, I have a hidden frame, and I set its URL to download a file from
 my server.  The first time I do this, it works like a charm.

 Any subsequent times I do it, my server never gets the call.  I am
 changing at least one of the parameters of the URL each time, so I
 don't believe that Firefox would be caching the call (and, even if it
 was, shouldn't it give me the file to save again?).

 Firefox 3.6.13, on Windows XP.

-- 
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: Parsing objects of persistent classes from server side code to client side.

2011-02-14 Thread Sebastian Rothbucher
Hi Ambegbodas,

there was a quite similar post on the same forum:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/f55bda67f02fbb67
I guess you really have to copy into simple objects as the most
simplistic solution...

Best regards
Sebastian Rothbucher

On 10 Feb., 19:11, Ambegodas ambego...@gmail.com wrote:
 I working on project where i have a class called Product in server
 side. Since i need to use JDO  to store product objects in data store
 i must include the product class in server side. But the problem i
 have is that i cant pass the retrieved product objects from data store
 to client side. As i figured out, the problem is being unable to
 import server side classes to client side code. I would be glad if any
 body has a proper solution for this problem.
  Thanks.
 Ambegodas.

-- 
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 webapp into an IFRAME

2011-02-14 Thread Sebastian Rothbucher
Hi,
I can also confirm this works quite smoothly: embed into an Iframe and
redirect to the own URL or a #marker URL with target=top to prevent
that.

Best Regards
   Sebastian Rothbucher

On 2 Feb., 17:02, aditya sanas 007aditya.b...@gmail.com wrote:
 hi,
 yeah ofcourse it will work
 i have implemented it in my projects but you might require to check browser
 compatibility for frame size and some minor changes
 but this works for sure.
 --
 Aditya







 On Wed, Feb 2, 2011 at 9:20 PM, obesga obe...@gmail.com wrote:
  Hello

  I've done a GWT app which is running on it's own page; but I've a
  request to embed the page into a portal.
  As I need to get the job done ASAP; I'm thinking about embedding the
  GWT weapp into a iframe, as

  iframe src=app/myapp.html/iframe

  Would it work ?
  Can a GWT app detect when it's running on a top page or on a iframe ?

  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.comgoogle-web-toolkit%2Bunsubs 
  cr...@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: Load Testing GWT applications

2011-02-14 Thread Sebastian Rothbucher
Hi Chandrasekar,

you could of course simulate 20 users via Selenium - but that rather
load-tests the browser and not the application. From my point of view,
the server-side code is the one to be load tested.
What I did was: get myself tamper data for firefox (check out
https://addons.mozilla.org/en-us/firefox/addon/tamper-data/) and use
the application while recording the server interaction. With good test
data, you can quickly reverse-engineer the protocol and derive
(random / listed) parameters. Then, you can use a quite normal load
test tool like Jakarta JMeter to do a simulation...

Hope this helps!  Best regards
Sebastian Rothbucher

On 10 Feb., 09:02, Chandrasekar Venkatraman s.its.chan...@gmail.com
wrote:
 Hello,

 I need to implement Load Testing(say for some 20 users) on my GWT
 application running in tomcat server on my machine.
 I am working on Ubuntu OS.

 On googling, I find NeoTys that satisfies my requirement, but the
 trial version has few conditions:

 1. It supports only Windows Users
 2. the server shouldn't be localhost.

 Can anyone provide some light on the possible tools out in the market
 that would meet my expectations?

 Regards,
 Chandrasekar V.

-- 
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: Best Design Pattern for widgets

2011-01-08 Thread Sebastian Coronado A.
Composite is nice but my widget has like 5 widgets, it looks messy.

@Thomas
thanks I will take a look


On 8 ene, 06:09, Thomas Broyer t.bro...@gmail.com wrote:
 In addition to what others already said, you can use MVP *inside* your
 widget, so that you can easily unit-test your logic. Have a look at
 com.google.gwt.user.cellview.client.AbstractHasData (the base class for
 CellList and the like) which uses this 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: I need your help error: An IncompatibleRemoteServiceException was thrown while processing this call

2011-01-08 Thread Sebastian Coronado A.
Clean your cache and recompile.
regards

On 8 ene, 12:52, nacho vela.igna...@gmail.com wrote:
 Try to recompile your gwt code.

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



Re: I can't call a RPC in a FlexTable

2011-01-08 Thread Sebastian Coronado A.
Can you post your error message, it should work...
regards

On 8 ene, 11:14, Sebe sebethebes...@hotmail.it wrote:
 Hello there,
 I have this event in a FlexTable..
 flextTable.addClickHandler(new ClickHandler(){
                         public void onClick(ClickEvent event) {
                 int cellIndex =
 flexTable.getCellForEvent(event).getCellIndex();
                 int rowIndex =
 flexTable.getCellForEvent(event).getRowIndex();

                 if ((rowIndex==0)||(rowIndex==2)){//se clicco sul
 primo risultato...

 rpc.setWeb(flexTable.getText(0,0),flexTable.getText(1,0),callback);

           .

 (I define rpc in the main class...)

 If I launch this method in another part of the code, it work fine.
 There is a solution??

 Thank for reply and good week,

 Sebe

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



Best Design Pattern for widgets

2011-01-07 Thread Sebastian Coronado A.
Hello I was checking MVP explanation, it works for the whole
application but what if I want to create a single widget that does not
need transitions from one view to another. For example what design
pattern would you use to create a rich text editor.
regards

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



Re: REST + Spring Security 3.0

2011-01-06 Thread Sebastian Hoß
Well you could use basic authentication by setting username and
password inside the header for every request you make. If you want to
have a login page you can either redirect to the spring security page
(which should redirect you right back) or you can create your own
login page/dialog. The relevant code I've used for that looks like
this:

// POST credentials
final StringBuilder content = new StringBuilder();
content.append(j_username= + URL.encode(this.username.getText()));
content.append(j_password= + URL.encode(this.password.getText()));

final RequestBuilder builder = new
RequestBuilder(RequestBuilder.POST,
URL.encode(/server/j_spring_security_check));
builder.setHeader(Content-Type, application/x-www-form-urlencoded);

try {
builder.sendRequest(content.toString(), Callbacks.login());
} catch (final RequestException e) {
Window.alert(e.getLocalizedMessage());
}

The nice thing about that is, that you'll recieve a cookie from spring
security so you don't have to specify username and password in all
your requests. The only coupling you have with this approach is the
server URI (in this case /server) but this could be moved to a
shared properties file or something similar.

Greets


On Thu, Jan 6, 2011 at 3:04 PM, julio antongiuli...@gmail.com wrote:
 Hi,

 I need to use Spring Security 3 in my application which is composed by
 Spring 3 for the server side and GWT 2.1 for the client side.

 Client side and server side are totally decoupled, I mean they
 don't belong to the same project in the eclipse workspace (server side
 is managed by maven and client side uses prebuilt ant files) and till
 now they communicate each other using Rest/Json.

 Googling I found some tutorials and tips about integration with Spring
 Security but all of them suppose that client side knows spring-
 server-side classes, and so using @Controller @Autowired etc under the
 gwt.server package. In my case this is not possible (or not clean to
 do).

 Is there a way to use Spring Security and keeping the code
 decoupled? Maybe for every (rest) client request I should use basic
 authentication? And what about a normal login page authentication?

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



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



Re: Dev plugin for firefox 3.7

2010-12-29 Thread Sebastian

yes, I've experienced the api switches from beta to beta in FF4 by
myself. But due to the fact, the final is on the way, things should
get sorted in the next couple of months :)

Keep up the good work and thanks for giving some informations to us!

Seb

On Dec 6, 5:57 pm, Chris Conroy con...@google.com wrote:
 The big hold up has been the fact that Firefox kept making breaking API  
 changes from beta release to beta release. We're chasing a moving target  
 here. I don't have a date to give you, but know that we haven't forgotten  
 about it. We'll be sure to announce when it's ready.

 On Dec 5, 10:09 am, Sebastian sebast...@buntin.de wrote:







  Any news on this Topic? A possible release-time would be enough ^^
  just a sign of life.

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



Re: GWT 2.1.1 and DAOs

2010-12-21 Thread Sebastian
Further investigation has revealed that SimpleRequestProcessor call's
ServiceLayer#isLive() for every non-null domain object to check if
it's still there. Otherwise the write operation is set to DELETE.
IMO that's terrible: I don't want to do two entity manager/db lookups
for every find (even if it's aggressively cached). Using DAOs, I
don't even call remove() on my entities but on the DAO (and I call
removeById() -- I don't have a domain object in these situations!)

So providing a ServiceLayerDecorator with an overridden isLive()
method (returning always true) solves this part. But I still need the
findXxx method because of the check Henrik mentions (even if it's
never called).

I really appreciate the possibility to use DAOs and service locators
in 2.1.1 -- but unfortunately it's still not usable (for me). I don't
want data access methods in my domain models and I don't want
unnecessary db operations! And I don't want to provide a totally
redundant Locator for *every* domain model either...

Is there any way to avoid the check for the findXxx methods?

Sebastian

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



Re: Dev plugin for firefox 3.7

2010-12-06 Thread Sebastian

Any news on this Topic? A possible release-time would be enough ^^
just a sign of life.

On 11 Nov., 16:07, skrat dusan.malia...@gmail.com wrote:
 There is a big demand for this plugin. And unsatisfied :(

 On Nov 9, 11:34 am, csillag csillag.kris...@gmail.com wrote:

  On okt. 26, 00:54, slowpoison slowpoi...@slowpoison.net wrote:

   On Sep 14, 8:21 am, John Tamplin j...@google.com wrote:

I am working on it right now.  I have it working on FF40, but I am
still trying to get it where one XPI will work on both FF3 and FF4.

   Any update about this, John?

  Hi,

  I am still waiting for this.
  Could you please at least give us some info about what's happening?

  Thank you:

      Kristof

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



Problem with Google App Engine

2010-11-15 Thread Sebastian Hob
Dear fellow GWT programmers,

I would like to make a call to a java class that utilizes
javax.swing.event.EventlistenerList as a private member. The call
should be made from within the greetServer method in the
GreetingServiceImpl class.

Unfortunately, I get an error on the line of the
javax.swing.event.EventlistenerList with the added information that
this class is not supported by Google App Engine's Java Runtime
Environment.

Is it possible to replace the Google App Engine JRE with a full JRE
when deploying to Tomcat?

Thanks so much in advance!

Sebastian

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



Class not supported by Google App Engine's Java Runtime Environment

2010-11-12 Thread Sebastian Hoberg
Hello,

trying to execute Java code in the greetServer Method of the
GreetingServiceImpl class on the server side I got the above mentioned
warning. This would mean that some of the classes used in the code are
not supported by GWT? Wht can I do? Choose another Webframework like
Struts?

Thanks for comments and hints!

Sebastian

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



Re: Testing GWT?

2010-11-04 Thread Sebastian Rothbucher
Hi Guy,

there are - in general - several strategies: when you do model-view-
presenter, you are quite well prepared for normal JUnit tests.
Otherwise (and that's what I do), you could use Selenium. BUT: be
aware of async operations (wait loops). To not enter XPath hell in
selenium, you should apply an identifying style class to all panels
you create.

Hope this helps - best regards
Sebastian Rothbucher

On 4 Nov., 15:06, g_korland gkorl...@gmail.com wrote:
 Can you recommend a testing tool for testing GWT web app?

 Thanks,
 Guy

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



Re: Does the new Editor support data type convert?

2010-10-29 Thread Sebastian Beigel
Use IntegerBox instead of TextBox (and see ValueBoxBaseT and its
subclasses for other types).

Sebastian


On Fri, Oct 29, 2010 at 4:03 AM, wangzx wangzaixi...@gmail.com wrote:
 class Person {
   int age;
 }

 class PersonEditor {

  TextBox ageEditor;

 }

 The GWT Compiler report: Found unexpected type int while evauating
 path age using getter expression 

 So my question is: how to using different type other than String in
 the editor framework?

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



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



Re: Is Cell Table in 2.1 supports sorting of column ?

2010-10-28 Thread Sebastian Beigel
Hi,

CellTable doesn't support this out of the box. Have a look at the
Expenses example for a SortableHeader implementation (and how it's
used).

Sebastian


On Thu, Oct 28, 2010 at 8:33 AM, rajakumar Iyyemperumal
vasel.rajaku...@gmail.com wrote:
 Hi All,
  I am trying to work on GWT 2.1 and I want to know that the new Cell
 Table in 2.1 supports column sorting or not ?

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



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



Re: How to get list of objects from JSON ??

2010-10-27 Thread Sebastian Beigel
 You can very well subclass JSOs [...] What you cannot do is virtual 
 dispatching (i.e. overring methods:
 methods must be final, but not necessarily classes).

Of course you are right -- I wasn't precise (and thus wrong :) What I
meant (and hate :) is that you're not allowed to override methods
and that there is a one interface to one JSO constraint (since GWT
2.0). I like to have my domain models implement something like
EntityModel (a custom interface declaring Integer getId() and String
getrLabel() for example). That way, I can really simple build/populate
things like ListBoxes etc. GWT 2.1's ProvidesKey et al. gives us
another (and more flexible) solution for these problems though.

 That's why I created JsCollections a while ago with a set of
 JsArrays.toArray() methods that copies the JsArray into an array in
 DevMode but just casts it in prod mode (i.e. no single overhead once
 compiled to JS).

I used to do something similar. For dates and date-times as well (as
these types are Strings in the JSON requests -- this works best for me
at least). But I must admit, I'm lazy and I just (would) prefer to not
think about these conversions and just use Lists, Dates etc. as I do
on the server side.

Did you do any comparison in size and performance for the JSO vs.
native beans approach?

Sebastian

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



Re: GWT 2.1 and Place with token

2010-10-27 Thread Sebastian Beigel
Hi Nicolas,

often your places are parameterized, think of a detail/edit screen
for example that needs the model's id. The token is a generic way to
provide additional information (via the URL) to the place (i.e. the
activity/-ies), i.e. #editFoo:42.

You can of course re-use one place to dispatch to several activities
based on the token. See the (currently not used) for ProxyPlace and
ProxyListPlace in the Expenses sample for an example.

Sebastian


On Wed, Oct 27, 2010 at 9:36 AM, Nicolas ANTONIAZZI
nicolas.antonia...@gmail.com wrote:
 Hello,
 I converted all my project to GWT 2.1 Activity/Place following the concept
 described
 on http://code.google.com/intl/fr/webtoolkit/doc/trunk/DevGuideMvpActivitiesAndPlaces.html
 But, doing this work, I came to a question : Why do we have to set a name in
 the place constructor ?
 A place generate a #ClassName:Token in the url. Would not be easier to just
 generate a #Token ?
 In my opinion it seems a bit complicated to manager class instead of an enum
 or string constant for each place.
 A simplification would be to only have 1 place class with a new token
 (string) for each place, or severals class but with an empty constructor
 that initializes its name with a constant.
 But I may have not really understood the real advantage of the
 #PlaceClass:Token, so maybe someone could help me ?
 Thanks,
 Nicolas

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


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



Flashing/collapsing CellTable

2010-10-26 Thread Sebastian Beigel
Hi,

I'm looking at the new data presentation widgets in GWT 2.1 and I
mostly like what I see :)

I have one problem with the workflow updating/paging a cell table though.

I'm using a (heavily) customized version of AbstractProxyListActivity
from the Expenses example and I just don't understand why
HasDataPresenter is clearing the table content while loading the
next/previous page.

Instead of the current rows, a loading indicator is displayed (with
different a height resulting in a collapsing/expanding table). I
already filed a bug (5487) to make this customizable (at least via
sub-classing).

For the moment, I deactivated this loading indicator (I show a
application-wide indicator in my app and don't want to show inline
indicators). This deactivation makes the flashing even more obvious.

I want my old rows to be there until they are replaced by the new
ones, maybe overlayed by some glass and a loading indicator -- but
not replaced! That way the table doesn't collapse and no flashing is
visible in the ui.

What's the reason for HasDataPresenter to clear the row data in
setVisibleRange? I try very hard to not show flashing and resizing
elements my apps' UIs but set up everything correctly *before* adding
it to the display list.

Sebastian

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



GWT 2.1 cell table paging bug?

2010-10-26 Thread Sebastian Beigel
AbstractPager uses HasRows#getVisibleRange()#getLength() to obtain the
page size. This doesn't seem to be a good idea as you can see in the
Showcase exmpale (Cell Widgets/Cell Table [1]).

This table gets populated with 250 entries and shows 15 per page. Now
click on the next page button. You go (correctly) all the way to
showing 226 - 240. But the next click switches to 236 - 250. I
expect the table to go to 241 - 250 (and thus showing only 10 rows).
But it gets worse: If you now start to navigate back, the display
range is moved by this offset. So you reach 11 - 25 and then 1 -
15?!

I don't think this behaviour is intentional. At least the go to last
page and go to first page buttons work properly (showing 1 - 15
and 241 - 250).

Bug?

Sebastian

[1] http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTable

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



Re: How to get list of objects from JSON ??

2010-10-26 Thread Sebastian Beigel
Hi Thomas,

 Of course, if your really want Product as a real bean, and a List?
 instead of a JsArray?, you can copy things around (see below); but
 really I believe overlay types are much more readable than anything
 using com.google.gwt.json.* classes.

I used to use overlay type heavily (returning JSON from a Spring
MVC/Jackson backend) and it worked quite well. Although I found it
quite limiting to be unable to model real class hierarchies (JSOs
must not be subclassed). I really do this a lot on the server side. I
also really like to use the enhanced for loop for Lists and just do a
new Foo() instead of some tedious Foo.create(). Last but not least I
don't have a Generate getters/setters in Eclipse for my JSOs :)

All this led me to write a Generator which inspects my models (real
beans) and emits JSON mapping code handling simple properties, object
graphs and collections. That way I can work with real beans and
collections of beans in my (business) code and do the mapping from/to
JSON in my service/DAO layer (still sending/retrieving JSON to/from my
backend).

Sebastian

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



[gwt-contrib] Re: RPC using getCause instead of getTarget

2010-10-26 Thread Sebastian
I am sorry. I have been staring at my debugger which showed the
internal values of the InvocationTarget exception. Therfore the field
cause was indicated with null. But the getCause method points to the
target field instead. So everything is fine.

Thank you for your feedback Scott.

Best Regards / Viele Grüße

Sebastian

On Oct 22, 11:50 pm, Scott Blum sco...@google.com wrote:
 My JDK says:

 *Throwable java.lang.reflect.InvocationTargetException.getTargetException()*

 Get the thrown target exception.

 This method predates the general-purpose exception chaining facility. The
 Throwable.getCause() method is now the preferred means of obtaining this
 information.

 Returns:
      the thrown target exception (cause of this exception).

 On Fri, Oct 22, 2010 at 3:48 PM, Sebastian use...@laliluna.de wrote:
  Hi,

  the RPC.java has a method   public static String
  invokeAndEncodeResponse which does catch an InvocationTargetException
  and tries to encode the error.

  Here a snippet:

  catch (InvocationTargetException e) {
       // Try to encode the caught exception
       //
       Throwable cause = e.getCause();
       responsePayload = encodeResponseForFailure(serviceMethod, cause,
           serializationPolicy, flags);
     }
     return responsePayload;

  The disadvantage is that the information about the exception is
  actually in e.getTarget. As a consequence no detailed are carried to
  the server. It indicates the normal error on server message.
  e.getCause is null.

  Is there any motivation behind using the e.getCause or is this
  actually a bug.

  Best Regards

  Sebastian Hennebrueder

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



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


[gwt-contrib] RPC using getCause instead of getTarget

2010-10-22 Thread Sebastian
Hi,

the RPC.java has a method   public static String
invokeAndEncodeResponse which does catch an InvocationTargetException
and tries to encode the error.

Here a snippet:

catch (InvocationTargetException e) {
  // Try to encode the caught exception
  //
  Throwable cause = e.getCause();
  responsePayload = encodeResponseForFailure(serviceMethod, cause,
  serializationPolicy, flags);
}
return responsePayload;

The disadvantage is that the information about the exception is
actually in e.getTarget. As a consequence no detailed are carried to
the server. It indicates the normal error on server message.
e.getCause is null.

Is there any motivation behind using the e.getCause or is this
actually a bug.

Best Regards

Sebastian Hennebrueder

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


Re: GWT 2.1 hellomvp using GIN

2010-10-21 Thread Sebastian Beigel
Thank you Thomas,

that's what I was thinking -- and I'm playing with a custom code
generator already :)

Just wondering what they mean with the GIN comments in the doc/code...

In my pre-2.1 homegrown framework I use a code-generated presenter
config based on a Ginjector (declaring all the getFooPresenter()
methods annotated with location (place) and security informations). My
presenters were singletons and were started with the actual Place.
That way I could use GIN to (constructor) inject all my dependencies.
I'm not sure if I like this 2.1-design (constructing activities with
the actual place) which means I cannot use GIN to construct them.
Maybe I make my activities extends some AbstractBaseActivity
containing a setPlace(P place) method which is called in the
ActivityMapper...

Sebastian


On Wed, Oct 20, 2010 at 11:22 PM, Thomas Broyer t.bro...@gmail.com wrote:

 On 20 oct, 11:42, Sebastian Beigel sebast...@beigel.de wrote:
 Hi,

 I'm looking at 2.1 (RC1) for the first time right now and I try to
 refactor the hellomvp sample to use GIN.

 Unfortunately, I have some problems with the places - activities
 mapping. The doc says A better way to implement the chain of nested
 ifs would be with a GIN module. and the code is commented Map each
 Place to its corresponding Activity. This would be a great use for
 GIN..

 I agree, but I don't really know how to do this mapping :) Has anyone
 refactored this code to use GIN?

 You just can't actually. What could work is using a Ginjector as the
 factory of a PlaceHistoryMapperWithFactory, but for ActivityMapper
 this is not possible (it could be by adding a code generator using a
 factory of activity factories, similar to the factory of place
 tokenizers (which are kind of factories for places) for
 PlaceHistoryMapperWithFactory).
 I wrote an code generator for ActivityMapper some time ago http://gwt-
 code-reviews.appspot.com/845802/show it won't do what you're asking
 for but could probably be used as a basis for it. But you'd first have
 to decide how to model a factory of activities that would be
 returned by your Ginjector as a factory for
 ActivityMapperWithFactory.

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



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



GWT 2.1 hellomvp using GIN

2010-10-20 Thread Sebastian Beigel
Hi,

I'm looking at 2.1 (RC1) for the first time right now and I try to
refactor the hellomvp sample to use GIN.

Unfortunately, I have some problems with the places - activities
mapping. The doc says A better way to implement the chain of nested
ifs would be with a GIN module. and the code is commented Map each
Place to its corresponding Activity. This would be a great use for
GIN..

I agree, but I don't really know how to do this mapping :) Has anyone
refactored this code to use GIN?

Thank you,
Sebastian

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



Re: Load Test GWT application using JMeter

2010-10-15 Thread Sebastian Rothbucher
Hi,

there's several challenges coming with it - but it's solveable: I used
Tamper Data to get the requests going back and forth in a manual
request. I then used the plain TCP connector to build the overall
request. You have to extract at least the session ID to keep session
over requests:

RegexExtractor guiclass=RegexExtractorGui
testclass=RegexExtractor testname=Regular Expression Extractor
enabled=true
stringProp name=RegexExtractor.useHeadersfalse/
stringProp
stringProp name=RegexExtractor.refnameSESSIONCOOKIE/
stringProp
stringProp name=RegexExtractor.regexSet-Cookie:
(JSESSIONID=[0-9A-F]*).*/stringProp
stringProp name=RegexExtractor.template$1$/
stringProp
stringProp name=RegexExtractor.default/stringProp
stringProp name=RegexExtractor.match_number0/
stringProp
  /RegexExtractor


You can then insert it into a TCP-Statement like (in the TCP body):

Cookie: ${SESSIONCOOKIE}

You can do the same with values - BUT: you have to adjust the content
length for the right number of bytes...

Hope this helps
   Sebastian Rothbucher


On 15 Okt., 09:25, aiya123 lawrencem...@gmail.com wrote:
 Hi,

 Does anyone done load test successfully on a GWT developed system ?
 I am studying ehow to achieve this, but got stucked on how to
 parameterizes the requests.

 Any sample JMeter test plan here ?

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



Re: calling GWT Javascript compiler from ant

2010-10-04 Thread Sebastian Rothbucher
Hi, you can invoke it e.g. with the following script:

  target name=gwtc depends=libs description=GWT compile to
JavaScript
java failonerror=true fork=true
classname=com.google.gwt.dev.Compiler
  classpath
pathelement location=src/
!-- this is gwt-dev.jar gwt-user.jar all JARs you have
yourself --
path refid=project.class.path/
  /classpath
  !-- add jvmarg -Xss16M or similar if you see a
StackOverflowError --
  jvmarg value=-Xmx256M/
  !-- Additional arguments like -style PRETTY or -logLevel DEBUG
--
  arg value=org.whatever.yourapphere/
/java
  /target

Basically, the GWT compiler is just a java program you can invoke via
the java command...

Hope this helps - best regards
 Sebastian Rothbucher


On 4 Okt., 12:13, 3p1...@googlemail.com 3p1...@googlemail.com
wrote:
 Hi everyone

 How can i call the gwt Javascript compiler from an Ant build script?
 I am using eclipse 3.5 with GWT plugin 2.0

 best regards

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



Re: Help: Development of large App with GWT

2010-10-04 Thread Sebastian Rothbucher
Hi noor,

actually we're using GWT to develop business applications and that
works extremely well. Maybe defining a scenario /process and building
an application for this is helpful.

Best Regards
 Sebastian Rothbucher

On 3 Okt., 18:10, Noor baken...@gmail.com wrote:
 Hi to all, I want some help from u. Many times, I have posted this
 topic on google discussion and many have helped me. Thanks for this.

 The fact is that I got a dissertation in which I have to demonstrate
 the power of GWT. To demonstrate this, I must create an application.
 So the question, which part of GWT should I exploit the most to show
 this?? Because on the market, there are many other frameworks for
 developing rich internet application. How can I make GWT standout of
 these existing frameworks.

 Please, if u've got any idea, just place it on the discussion, this
 would greatly help me

 Regards to all
 Noor

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



Re: Reverse proxy problem once again

2010-09-25 Thread Sebastian Rothbucher
Hi pete,

I got along quite well with mapping localhost:80/bla/ to localhost:
8080/bla in the httpd.conf - i.e. keeping the context path as it is.
No more action is necessary then. (you could set up a redirect rewrite
rule for path / so the user gets forwarded). This is the most simple
solution I know. Maybe (I'm not sure now), you could rewrite the
context path as well with mod_rewrite but that's no more than a vague
guess. Otherwise, you'd indeed have to overwrite
doGetSerializationPolicy on the servlet which is just what you don't
want.

So, I'd try the redirect rewrite rule (check out
http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html and search for
force redirect on the page)...

Hope this helps - best regards
Sebastian Rothbucher


On 17 Sep., 20:46, pete superp...@geekcity.de wrote:
 Hallo,

 I've looked around several hours to solve this problem, but I just
 can't figure it out (even though I find many similar posts and tips
 about it). The set up is quite simple, I have my GWT-Module running 
 athttp://localhost:8080/blaand if I address it like this, everything
 runs fine.
 I furthermore have an Apache2 set up, with the following rule

 VirtualHost *:80
         ServerAdmin webmas...@localhost
         ServerName localhost:80
         ProxyPass /http://localhost:8080/bla/
         ProxyPassReverse /http://localhost:8080/bla/
 /VirtualHost

 (mod_proxy, etc. is loaded, proxy is configured in httpd.conf)
 So I just want to forward from localhost:80 to localhost:8080/bla,
 which shouldn't be such a pain in the a** as one should thing. But the
 SOP prevents the RPC mapping, failing to retrieve the
 SerializationPolicy. I can load the page, but the first RPC fails with
 the usual exception so often explained in various posts.

 My question is just, isn't there a way, to fix this simple case
 without overriding RemoteServiceServlet? I would really wanna avoid
 messing with that, and prefer some other way, maybe via proxy
 configuration? Or web.xml? Or module.gwt.xml?
 I also found this:http://code.google.com/p/acris/wiki/SeparateClientAndServer
 Would it be worth it to adapt my project with acris to achieve what I
 want?
 The paths basically need to be as in my setup above...

 About any help I would be glad :-)

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



Re: My kingdom for a cache

2010-09-16 Thread Sebastian Hoß
Well there is a browser cache already. Once you've configured your
server to send out some cache related headers you get a client-side
cache with no further additional work.

On Thu, Sep 16, 2010 at 2:36 PM, Marcin Zawadzki
marcin.zawad...@gmail.com wrote:
 Take a look at this, might help

 http://turbomanage.wordpress.com/2010/07/12/caching-batching-dispatcher-for-gwt-dispatch/


 On Thu, Sep 16, 2010 at 2:15 PM, David Pinn dp...@byandlarge.net wrote:

 I'm looking for a Java class or Java library that will help me
 implement a client-side cache for data fetched from the server. I'm
 thinking of a Map-like structure the contents of which are evicted on
 a least-recently-used basis, or after some predefined duration.

 Since it will be embedded in a GWT app (in the client), it doesn't
 have to be thread-safe. Yay! The rub is, of course, that it needs to
 use only those Java classes supported by GWT's JRE Emulation.

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




 --
 Greetings,
 Marcin

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


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



[gwt-contrib] JsArray enhancement

2010-09-09 Thread Sebastian
I wanted to provide a patch for JsArray* to support common methods
like sort and reverse. I found the issue
http://code.google.com/p/google-web-toolkit/issues/detail?id=2793
which is not completed and wants to provide all ECMA methods.

I had a look at the existing patch and found code that I didn't
understand and which indicates that I miss some knowledge before being
able to write a proper patch. Why is the following code checking for
script/binary mode and calling different methods?

Best Regards

Sebastian

+  public final native int push(T item) /*-{
+return this.push(items);
+  }-*/;
+
+  public final int push(T... items) {
+if (GWT.isScript()) {
+  return push0(items);
+} else {
+  for (T item : items) {
+push(item);
+  }
+  return length();
+}
+  };
+
+  private native int push0(T[] items) /*-{
+return this.push.apply(this, items);
+  }-*/;

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


Re: What are some of the most valuable frameworks in your project?

2010-08-29 Thread Sebastian Rothbucher
Jeff,

we're getting along quite well with GWT on the client side and Spring
on the server side: Data definitions (POJOs) are shared. Plus: Using
the GWT Service servlet to do nothing but call a spring service (which
can then do everything spring is capable of) has proven a quite stable
solution..

Best Regards
Sebastian

On 27 Aug., 23:53, Jeff Larsen larse...@gmail.com wrote:
 I'm about to embark on a new GWT app and am curious what you all think
 about some of the following utilities.

 I don't think I will be able to use Roo, but I am looking into 2.1. I
 must admit that I do not fully understand how all the new MVP pieces
 fit together or the new dispatching mechanism. So, if you were
 starting a project from scratch today, what would you pick for
 libraries?

 Thanks,
 Jeff

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



Re: Help With Eclipse Development ??

2010-08-29 Thread Sebastian Rothbucher
Hi Jalu,

what I'd try is a.) put all required libs in WEB-INF/lib and then b.)
add all of WEB-INF/lib to the java build path of the eclipse
project...

Hope this helps!

Best Regards
Sebastian

P.S.: You can safely ignore the WARN] Server class
'net.sf.gilead.gwt.PersistentRemoteService' could
not be found in the web app, but was found on the system classpath

On 26 Aug., 18:36, chalu chal...@gmail.com wrote:
 Hello folks, I am moving my GWT/GXT development from Netbeans to
 Eclipse (Helios), but I am still struggling to find my way around. I
 have read some tutorials and watched some videos on eclipse but I
 still have issues in some areas, for example the SLF4J docs says we
 have to add an implementation binding e.g Log4J, this however does not
 stop the java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
 from been thrown. After some fiddling, I made the SLF4J library a
 system library (it will be added to the boot path ... , see the
 attached thumbnail) and that solved it for org.slf4j.LoggerFactory,
 but now I have others, coming out one after the other, first it was
 Log4J, and now this from the Gilead library I am using :

 java.lang.NoClassDefFoundError: net/sf/cglib/proxy/Enhancer
 .
 Caused by: java.lang.ClassNotFoundException:
 net.sf.cglib.proxy.Enhancer

 Do I have to make all my user libraries be a system library ?? Also,
 looking at my eclipse console view, I see stuff like this :

 WARN] Server class 'net.sf.gilead.gwt.PersistentRemoteService' could
 not be found in the web app, but was found on the system classpath
    [WARN] Adding classpath entry 'file:/C:/Java/javalibs/gilead/
 gilead4gwt-1.3.0.1169.jar' to the web app classpath for this session
    For additional info see: file:/C:/eclipse/plugins/
 com.google.gwt.eclipse.sdkbundle.2.0.4_2.0.4.v201006301309/gwt-2.0.4/
 doc/helpInfo/webAppClassPath.html

 The page indicated by /webAppClassPath.html just simply says it is
 recommended I put libraries into WEB-INF/lib folder and gives the
 following tip :

 The most common reason to encounter this problem with a new project
 is using RPC, which tries to load
 com.google.gwt.user.client.rpc.RemoteService. The solution to is copy
 gwt-servlet.jar from the GWT install directory into your web app's war/
 WEB-INF/lib/ directory.
 Fortunately, my app's war/WEB-INF/lib/ folder already has the said gwt-
 servlet.jar file.

 One would expect that after adding a library to a project, the
 library's jars should be in the project's path.
 In an attempt to force the libraries jars into the project's lib/
 folder I decided to compile the app, but nothing changed within the
 lib/ folder, it still only contained gwt-servlet.jar.

 Now I am stuck, I am trying to run it in the default hosted mode
 (after compiling it) and nothing works from the browser anymore,
 instead I get a page sating thus :

 HTTP ERROR: 404

 NOT_FOUND

 RequestURI=/DiSCS.html

 How do I handle these please ?

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



Re: Custom Visulization

2010-08-29 Thread Sebastian Rothbucher
Hi Raju,

alteratively you could use JFreeChart and embed it as an image (i.e.
create a chart on the server as temporary file); return a link for the
one user to get that file and render it as an image...

Hope this helps - best regards
Sebastian

On 24 Aug., 16:44, Raju raj.no...@gmail.com wrote:
 Hi Experts,

  I need to create Custom Visulization i.e a new chart (like piechart)
 xy chart.

 I also followe custom visulization in tutorials. i understood about
 flex table. now i need to know about charts.Is there any example for
 custom charts.

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



Re: Integration of GWT in Spring

2010-08-29 Thread Sebastian Rothbucher
Hi,

I guess it is a little more difficult than that as you have to
integrate two paradigms here: one is request-response (classic
webapp style of spring web mvc), the other is requesting on demand by
google web toolkit. Possibly the easiest way would be rendering a gwt
carrier page via spring - or embedding GWT via an invisible IFrame; I
don't think it is that easy to just submit the contents of a GWT app
along with other classic form fields...

Hope this helps - good luck and best regards
Sebastian

On 21 Aug., 00:24, la-praline benmahidd...@gmail.com wrote:
 Hello everyone,

 First of all sorry for my mistakes i'm french. I'm making a web
 application with Spring and i need gwt for a text editor so i'm trying
 to integrate GWT in Spring. I used the webAppCreator to make an
 example. I use the same architecture. When i go to the page the
 browser return that

 HTTP method GET is not supported by this URL

 there is my web.xml

 ?xml version=1.0 encoding=UTF-8?
 web-app ...
         
         !-- Spring Entry point --
         listener
           listener-
 classorg.springframework.web.context.ContextLoaderListener/listener-
 class
         /listener
         servlet
                 servlet-namedispatcher/servlet-name
                 
 servlet-classorg.springframework.web.servlet.DispatcherServlet/
 servlet-class
                 init-param
                         param-namecontextConfigLocation/param-name
                         
 param-value/WEB-INF/applicationContext.xml,/WEB-INF/dispatcher-
 servlet.xml/param-value
                 /init-param
         /servlet
         servlet-mapping
                 servlet-namedispatcher/servlet-name
                 url-pattern*.do/url-pattern
         /servlet-mapping

         !-- GWT --
         servlet
                 servlet-namemyService/servlet-name
                 
 servlet-classorg.nomadphp.gwt.server.MyServiceImpl/servlet-class
         /servlet
         servlet-mapping
                 servlet-namemyService/servlet-name
                 url-pattern*.gwt/url-pattern
         /servlet-mapping
        ...
 /web-app

 There is my dispatcher-servlet.xml

 beans ...
         ...
         !-- urlMapping Configuration --

         bean id=urlMapping
 class=org.springframework.web.servlet.handler.SimpleUrlHandlerMapping
                 property name=urlMap
                         map
                                 ...
                                 entry key=/projectEditor.gwt
                                         ref bean=myService /
                                 /entry
                         /map
                 /property
         /bean

         !-- Gwt Controller --

         bean id=myService class=org.nomadphp.gwt.server.MyServiceImpl /
 /beans

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



  1   2   >