Re: GWT sound handling issue

2012-03-13 Thread kiran reddy
As per my knowledge, its better if you go with bst-player.

http://code.google.com/p/bst-player/


Regards,
Kiran

On Wed, Mar 14, 2012 at 12:04 PM, Edwardxiong wrote:

> My site is a pure GWT online training site. I record the training in mp3
> style, so the cutomers can listen in my site. I use gwt-voice currently.
> But the issue is that gwt-voice does not support pause function. Many of my
> customers complains that they need the pause function. Is ther any solution
> here?
>
> --
> 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/-/0YimFVoLRd4J.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email 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 sound handling issue

2012-03-13 Thread Edwardxiong
My site is a pure GWT online training site. I record the training in mp3 
style, so the cutomers can listen in my site. I use gwt-voice currently. 
But the issue is that gwt-voice does not support pause function. Many of my 
customers complains that they need the pause function. Is ther any solution 
here? 

-- 
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/-/0YimFVoLRd4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: about css style in gwt

2012-03-13 Thread Joseph Lust
tong,

The parent element must have the first class in the CSS selector and the 
element (child of parent) must have the second CSS selector class.

i.e.







Note also that you don't want to use the '.' character that was in the 
selector in the actual CSS class name in HTML.

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/-/Ka7BBc8TzhoJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: Interacting with servlet containers

2012-03-13 Thread Joseph Lust
Howard,

You can write your front in GWT via Java, and then interact with any 
backend you fancy. There are plenty of these tutorials out there to 
interact with other languages like PHP 
backendsusing
 a JSON calls. See the 
docs .

It sounds like you are deadset on C++, which you could do with a JSON 
service and RequestBuilder. However, you might want to consider using a 
Java backend still. This works for Google and their properties on 
AppEngine, which scales well. You can even deploy with one click from 
Eclipse. Sticking with a Java backend will allow you to automate all of the 
boilerplate plumbing using RPC, which is also far more efficient (size 
wise) than JSON REST.

Hope that helps. Good luck with your project.

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/-/-70V_Jte4bwJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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 add JARS

2012-03-13 Thread Vincenz Mössenböck
Hello, 
I'm a student at the HTL Wels and I'm trying to learn myself some GWT. I 
brought everything running, but there is still st what really annoyes me. I 
always have to copy all the jars like hibernate jars and postgresql jars to 
the Webinf .lib folder. Is there a way where I can add these jars to a 
server or st i just can t find where to put them.
Can somebody pls help me?
 

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



Re: Using CssResource @def inside some css property with parenthesis not working

2012-03-13 Thread Joseph Lust
Shaun,

I had issues with these @def's last fall. Here is what I learned:

1) Make sure the @def's are placed at the very top of the CSS file, 
anywhere else and they'll be trouble (this face is not 
documented
).
2) Use the 
@literal()tag
 to wrap non-CSS2 props. i.e. 
background-image: *@literal( *linear-gradient(top, 
HEADER_ROW_BACKGROUND_COLOR literal(" 0%"), HEADER_ROW_BACKGROUND_COLOR 
literal(" 
97%"), #7a808a literal(" 100%")) *);*

The GWT team does not want to write a pure Java CSS3 parser, so you need to 
do this until they do, or someone else writes one for them to implement.

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/-/7hYSYRBLKvkJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: Creating different frontends in one application

2012-03-13 Thread Joseph Lust
While I am a fan of the decoupling pointed out by Thomas Broyer with 
RequestFactory, you can still do the same thing with RPC rather easily, and 
skip the need for RequestFactory.

In the projects at my office, we use Maven and the following project 
structure:

   - MainProject.pom
  - Client-Interfaces.pom
  - Client-GWT.pom (uses Interfaces)
  - Server.pom (uses Interfaces)
  - Web.pom 
   
So just running the main pom will build the interfaces that are then used 
by the server side code and the client side GWT. The *Web* project contains 
Tomcat specific items and dictates how the *war* is packed up.

Perhaps this will work for you Mark and you can just have two client side 
GWT packages.

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/-/tr13Sa--nhIJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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 test GWT app through a proxy

2012-03-13 Thread Jens
MyDataService_Proxy is generated by GWT and you can see the generated files 
by adding "-gen " to your app's Eclipse run configuration.

The exception you see is thrown in RemoteServiceProxy.doInvoke(...) and 
simply wraps a possible RequestException. These RequestExceptions can be 
thrown by RequestBuilder.doSend(..) and are wrappers for 
JavaScriptExceptions that can be thrown by the browser if it can not do an 
ajax request using XMLHttpRequest.

All these exceptions are chained together so you should log the whole stack 
trace to get some more information.

I don't think its an issue in GWT-RPC. Its just that your customer's 
browser sometimes can't establish a connection to your server through a 
proxy. Maybe you can ask them to look through their proxy log files to see 
if something went wrong.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/9AbTrnVRz4IJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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 test GWT app through a proxy

2012-03-13 Thread John Malpas
The problem is getting worse, Now several users have sent me
similar errors, all on the new version of an app that has been
running (I thought reliably) for 1 1/2 years.

The error is like
Class$yE: Unable to initiate the asynchronous service invocation 
(MyDataService_Proxy.readRecords) -- check the network connection

And the same apps continue to work fine for me
on my internet connection.

So somehow GWT RPC is failing for some class of users out
there. Very confusing. I look at tomcat logs and apache
logs and I see no activity corresponding to the time when
the failure happened.


On Monday, February 27, 2012 11:43:05 AM UTC-8, JoseM wrote:
>
> I don't think it's directly related to the proxy pattern that Dan 
> mentioned.  It seems to be that your user doesn't have great internet 
> access, or there is some issue in the connection between that user and your 
> web server.  It seems that the error message happens when the browser is 
> not able to communicate (reliably) with the web server.
>
> Here is a related link that could help you out:  
> http://stackoverflow.com/questions/5258434/unable-to-initiate-the-asynchronous-service-invocation
>  
>
> On Monday, February 27, 2012 1:56:32 PM UTC-5, John Malpas wrote:
>>
>> Thanks that is interesting. What I know is, 
>> I am writing the "MyDataService" part, and somehow 
>> GWT must be writing the "MyDataService_Proxy" part. 
>>
>> And then there is this one (thankfully) very vocal 
>> user, whose access to the RPC needed by the application 
>> goes through the "MyDataService_Proxy" part, 
>> and it works for him only occasionally. 
>>
>> I would like to be able to test the "MyDataService_Proxy" 
>> part from where I am developing, or at least from 
>> somewhere nearby. 
>>
>> On Feb 26, 7:20 am, Dan  wrote: 
>> > That error message suggests a different kind of proxy,
>> http://en.wikipedia.org/wiki/Proxy_pattern. 
>> > 
>> > On Feb 25, 8:40 pm, John Malpas  wrote: 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > > I have several GWT (2.4) applications out there. 
>> > 
>> > > One in a while, a user writes in with a problem, 
>> > > where it is clear the RPC is not working, and it 
>> > > is clear there is some proxy involved in their access 
>> > > to the application. 
>> > 
>> > > (Most recent: "Unable to initiate the asynchronous service invocation 
>> > > (MyDataService_Proxy.login)") 
>> > 
>> > > I need to figure out some way to test access to the 
>> > > applications through a proxy, so I can at least see what 
>> > > these users are seeing. The same applications work fine 
>> > > for me on a variety of browsers and computers. 
>> > > (My own computers get to the web through ATT DSL with 
>> > > no proxy involved.) 
>> > 
>> > > Has anyone else faced this problem (need to test through 
>> > > a proxy)?
>
>
> On Monday, February 27, 2012 1:56:32 PM UTC-5, John Malpas wrote:
>>
>> Thanks that is interesting. What I know is, 
>> I am writing the "MyDataService" part, and somehow 
>> GWT must be writing the "MyDataService_Proxy" part. 
>>
>> And then there is this one (thankfully) very vocal 
>> user, whose access to the RPC needed by the application 
>> goes through the "MyDataService_Proxy" part, 
>> and it works for him only occasionally. 
>>
>> I would like to be able to test the "MyDataService_Proxy" 
>> part from where I am developing, or at least from 
>> somewhere nearby. 
>>
>> On Feb 26, 7:20 am, Dan  wrote: 
>> > That error message suggests a different kind of proxy,
>> http://en.wikipedia.org/wiki/Proxy_pattern. 
>> > 
>> > On Feb 25, 8:40 pm, John Malpas  wrote: 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > > I have several GWT (2.4) applications out there. 
>> > 
>> > > One in a while, a user writes in with a problem, 
>> > > where it is clear the RPC is not working, and it 
>> > > is clear there is some proxy involved in their access 
>> > > to the application. 
>> > 
>> > > (Most recent: "Unable to initiate the asynchronous service invocation 
>> > > (MyDataService_Proxy.login)") 
>> > 
>> > > I need to figure out some way to test access to the 
>> > > applications through a proxy, so I can at least see what 
>> > > these users are seeing. The same applications work fine 
>> > > for me on a variety of browsers and computers. 
>> > > (My own computers get to the web through ATT DSL with 
>> > > no proxy involved.) 
>> > 
>> > > Has anyone else faced this problem (need to test through 
>> > > a proxy)?
>
>
> On Monday, February 27, 2012 1:56:32 PM UTC-5, John Malpas wrote:
>>
>> Thanks that is interesting. What I know is, 
>> I am writing the "MyDataService" part, and somehow 
>> GWT must be writing the "MyDataService_Proxy" part. 
>>
>> And then there is this one (thankfully) very vocal 
>> user, whose access to the RPC needed by the application 
>> goes through the "MyDataService_Proxy" part, 
>> and it works for him only occasionally. 
>>
>> I would like to be able to test the "MyDataService_Proxy" 
>> part from where I am developing

how to link with page in gwt without update history stack?

2012-03-13 Thread mars
hi,

my gwt page has link within itself, like normal html page
B
point to
 
B

within the same page, but i don't want to update the
history stack by appending '#b' to the end of url. how can
i do that? I used anchor instead of hyperlink.

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.



2 different GWT apps in the same hostpage using different versions of GWT?

2012-03-13 Thread Ortwin Joniaux
Dear,

We would like to put two different GWT applications in the same host page. 
Since the applications have different life-cycles, it's probable that one 
application get upgraded to a next version of GWT before the other one. 
Will this give any issues? JavaScript variable name clashes?

We did a first test where one application was compiled with GWT v2.0 and 
the other with v2.4. That seems to work fine but this doesn't prove that it 
will work in all cases. Can anyone shed some light on this issue?

Thanks,

Ortwin





-- 
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/-/qewRTrsuxtgJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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 header using CompositeCell or AbstractCell

2012-03-13 Thread Andrea Boscolo
GWT 2.5 will give this opportunity I guess.
Relevant issue is 
http://code.google.com/p/google-web-toolkit/issues/detail?id=5423#c13

Relevant commits are:
http://gwt-code-reviews.appspot.com/1501803
http://gwt-code-reviews.appspot.com/1499808/

Relevant demos are:
http://showcase2.jlabanca-testing.appspot.com/#!CwCustomDataGrid
http://showcase3.jlabanca-testing.appspot.com/#!CwCustomDataGrid

I you can't wait for the 2.5 release you can use the trunk.

-- 
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/-/wQZFQI8FrFIJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: JSNI and Flex Intercommunication Problem (through Javascript Interface)

2012-03-13 Thread Deepan
Hi, 

I am also trying to use Cytoscape web in GWT. 
I was wondering if you successfully created the wrapper.

Any help on this topic will be greatly appreciated.

thanks.
Nik

On Sunday, June 5, 2011 1:04:43 AM UTC-4, Debug Desperado wrote:
>
> Oops, forgot to report back just in case anyone else has this problem. 
>
> My solution was just to make sure that any array objects created by 
> GWT are done with new $wnd.Array(), as nino hinted.  Weirdly there are 
> no type conversion errors with Function objects or normal javascript 
> Object. 
>
> On May 26, 6:34 pm, nino  wrote: 
> > Sorry i got back at you this late. 
> > You  allready spot the problem. 
> > try doing somethinf like this 
> > 
> > var network_json = new $wnd.Object(); 
> > network_json.data =  { 
> > data: { 
> > nodes: [ { id: "1" }, { id: "2" } ], 
> > edges: [ { id: "2to1", target: "1", source: "2" } ] 
> > } 
> > }; 
> >  this.draw({network: network_json}); 
> > 
> > Regards, 
> > 
> > Alain

-- 
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/-/YMyz_6PZK_EJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: Chrome not properly rendering HeaderPanel as of yesterday's update?

2012-03-13 Thread Eric Andresen
I've isolated this issue down to the Chrome Dev-channel and Canary-channel. 
 The Stable and Beta channels work fine.  The issue is reproduceable in 
both 64-bit Win7 and 32-bit XP.  I guess I'll take the issue over to the 
Chrome forums since it looks like their problem.  

  When I see this issue, in the debugger what happens is inside HeaderPanel:

private void forceLayout() {
// No sense in doing layout if we aren't attached or have no content.
if (!isAttached() || content == null) {
  return;
}

// Resize the content area to fit between the header and footer.
int remainingHeight = getElement().getClientHeight();
if (header != null) {
  int height = Math.max(0, headerContainer.getOffsetHeight());
  remainingHeight -= height;


The call to getClientHeight() is returning 0 in Chrome, but the proper 
value in all other browsers.  

Thanks,
Eric



On Thursday, March 8, 2012 2:53:30 PM UTC-6, Eric Andresen wrote:
>
> My application has a HeaderPanel that has suddenly stopped working in 
> Chrome (32-bit XP version 19.0.1061.1).  The GWT code hasn't changed, and 
> IE8 and FireFox both still work.
>
> The symptom is that the header and footer appear properly, but the content 
> has its height set to 0px so it doesn't show up.  Sometimes if I wait or 
> inspect the element it will appear, sometimes it never appears.  This 
> problem just appeared yesterday, on three separate people's PCs. 
>
> Has anyone else seen any issues with HeaderPanel rendering in the last 
> couple days?
>

-- 
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/-/bWMV-TynwNMJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: URL fetch request size in googleaapengine

2012-03-13 Thread Joseph Lust
Learning,

Seems that you're hitting a max file size of 4MB. (4e6 bytes / 
(4*1024*1024))*4 = 3.81, which is what you're getting, since somewhere 
along the line a MB is using 1e6 bytes, not 1048576 bytes.

Are you accessing an ASP application? The default file export limit is 4MB 
there. Perhaps that is the sort of limit your are hitting,

Sincerely,
Joe

-- 
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/-/GYQItAtKswMJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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 UIBinder remember username password

2012-03-13 Thread Joseph Lust
Markandayarushi Pamu,

This is a common issue on dynamically generated webapp content. Basically, 
the browser looks for a form with name 'password', as a password input, and 
any other fields like 'email' or 'username.' If they are found, the browser 
offers to remember them when they are posted. However, to refill them, the 
browser checks *at load time* for the fields. Because technologies like 
ExtJs and GWT insert these items into the DOM dynamically, those fields are 
not found by the browser at the instant of loading.

To correct this, I hardcode the form and fields into the header (hidden 
from the user). Then, when the login form initializes, it checks this 
hidden form and copies the values from it if finds any.

You can see the login form of my site, http://www.runpartner.com, which 
uses this method to get the credentials remembered and prefilled.

Sincerely,
Joe

-- 
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/-/GUHV9hZMc8wJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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-13 Thread Joseph Lust
You could also use Ext GWT. It has out of the box working examples of 
portlets in GWT. I found it quite simple to implement.

http://www.sencha.com/examples/pages/portal/portal.html

Sincerely,
Joe

>

-- 
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/-/VBliHoz8wy4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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 Joseph Lust
Try GWT+JDO+AppEngine. Hibernate does not work work well with the 
non-relational data stores of GAE. There is much documentation available on 
how to do this.


Sincerely,
Joe

>

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



Re: GWT & Spring

2012-03-13 Thread Joseph Lust
We've been using Spring4GWT to great effect in our enterprise application 
for the last year. While it may not include every aspect of Spring, it 
makes RPC's trivially easy. To review:


   - Make a Spring Bean as you normally would for a backend service, 
   implementing your service interface and extending* RemoteServiceServlet*
   - Annotate the service, i.e. @Service("myService")
   - Annotate the service interface with the path of your servlet. 
   i.e. @RemoteServiceRelativePath("springGwtServices/myService")
   - Make a servlet to handle your service (same path as above) in your 
   web.xml. i.e. 


springGwt

org.spring4gwt.server.SpringGwtRemoteServiceServlet



springGwt
/com.myapp.myModule/springGwtServices/*


   - Make sure your async interface (for the RPC's) implements your service 
   interface's methods.
   - Finally, in your client side code, just call your service's methods. 
   i.e. MyServiceImpl.Default.getInstance().myRemoveMethod()

Most of the above steps need only be done once per module or service. If 
you use the ContainerDTO design pattern for sending data to the client, you 
need only change the ContainerDTO to send more or less data to the client. 
If you want to add a new remote method to call, you just need to update the 
service interface and add the method to the service. You never need to 
write any packing/unpacking code or any XHR code.

Having done this sort of thing by hand (XHR handlers in JS, 
serialization/deserialization, service MVC handling on the server in 
PHP/C#/or Java/Struts), this way of doing things is far easier, and you can 
unit test every bit of it easily in JUnit.


Sincerely,
Joe

On Tuesday, March 13, 2012 4:59:49 AM UTC-4, Alex Dobjanschi wrote:
>
> The framework is very elementary, and lacks one of spring's most important 
> feature: ioc container. 

-- 
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/-/C_o3scvB-msJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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 header using CompositeCell or AbstractCell

2012-03-13 Thread Ümit Seren
I believe that from GWT 2.4 on there a Builder class for making more
advances and sophisticated Headers/Footers. But I haven't tried it
myself.
But I am not sure why it won't give you flexible approach for styling?
You can add a class to the row/cell in the render method of your
Header class.
I agree that my approach is a hack (but there was no easy way to solve
it back then).

On Tue, Mar 13, 2012 at 4:50 PM, kretel  wrote:
> Thanks for the pointer. I saw it and follow similar pattern, but it does not
> give you flexible approach to styling differently both rows in the header.
>
> you also wrote: "[...]  Well I ended up solving this by adding separate
> SearchBoxes above the CellTable-Header and using CSS to align them to the
> Header.  [...]" which I am trying to avoid.
> Imagine you provide different language for your app and table headers
> width/height will change. So css might not work in this case.
>
> Thanks,
> Kris
>
> On Tuesday, March 13, 2012 3:37:46 PM UTC, Ümit Seren wrote:
>>
>> You can check out this stackoverflow thread for some pointers:
>>
>> http://stackoverflow.com/questions/6422896/celltable-with-custom-header-containing-searchbox-and-focus-problem
>>
>>
>> On Tuesday, March 13, 2012 1:38:05 PM UTC+1, kretel wrote:
>>>
>>> What I might actually need is to get two rows inserted into theader in
>>> CellTable.
>>> So the header look like this:
>>>
>>> |          | header1 - label1 | header2 - label1 |
>>> +--+--+--+
>>> | label    | header1 - label2 | header2 - label2 |
>>> +--+--+--+
>>> | foobar   |  1               | image            |
>>>
>>> Is there a way to add an extra header row to a CellTable after adding a
>>> column with one header?
>>>
>>> Thanks,
>>> Kris
>>>
>>>
>>>
>>> On Tuesday, March 13, 2012 10:31:59 AM UTC, kretel wrote:

 Hi,

 I am trying to build a custom header which have two labels in a header
 and both are styled differently. For example:

 | header1 - label1 | header2 - label1 |
 +---++
 | header1 - label2 | header2 - label2 |

 Label1 in headers needs to be styled differently than label2. Further
 label2 needs to be able to trigger column sort on a table.

 I was looking at examples how to build AbstractCells but still can't see
 how this can be applied to header.

 Does anyone come up with an approach to build Custom header?

 Thanks,
 Kris



> --
> 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/-/PToCkdTcDqgJ.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email 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: Custom header using CompositeCell or AbstractCell

2012-03-13 Thread kretel
Thanks for the pointer. I saw it and follow similar pattern, but it does 
not give you flexible approach to styling differently both rows in the 
header. 

you also wrote: "[...]  Well I ended up solving this by adding separate 
SearchBoxes *above* the CellTable-Header and using CSS to align them to the 
Header.  [...]" which I am trying to avoid. 
Imagine you provide different language for your app and table headers 
width/height will change. So css might not work in this case. 

Thanks,
Kris

On Tuesday, March 13, 2012 3:37:46 PM UTC, Ümit Seren wrote:
>
> You can check out this stackoverflow thread for some pointers:
>
> http://stackoverflow.com/questions/6422896/celltable-with-custom-header-containing-searchbox-and-focus-problem
>  
>
>
> On Tuesday, March 13, 2012 1:38:05 PM UTC+1, kretel wrote:
>>
>> What I might actually need is to get two rows inserted into theader in 
>> CellTable. 
>> So the header look like this: 
>>
>> |  | header1 - label1 | header2 - label1 |
>> +--+--+--+
>> | label| header1 - label2 | header2 - label2 |
>> +--+--+--+
>> | foobar   |  1   | image|
>>
>> Is there a way to add an extra header row to a CellTable after adding a 
>> column with one header? 
>>
>> Thanks,
>> Kris
>>
>>
>>
>> On Tuesday, March 13, 2012 10:31:59 AM UTC, kretel wrote:
>>>
>>> Hi,
>>>
>>> I am trying to build a custom header which have two labels in a header 
>>> and both are styled differently. For example: 
>>>
>>> | header1 - label1 | header2 - label1 |
>>> +---++
>>> | header1 - label2 | header2 - label2 |
>>>
>>> Label1 in headers needs to be styled differently than label2. Further 
>>> label2 needs to be able to trigger column sort on a table. 
>>>
>>> I was looking at examples how to build AbstractCells but still can't see 
>>> how this can be applied to header. 
>>>
>>> Does anyone come up with an approach to build Custom header? 
>>>
>>> Thanks,
>>> Kris
>>>
>>>
>>>
>>>

-- 
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/-/PToCkdTcDqgJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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 header using CompositeCell or AbstractCell

2012-03-13 Thread Ümit Seren
You can check out this stackoverflow thread for some pointers:
http://stackoverflow.com/questions/6422896/celltable-with-custom-header-containing-searchbox-and-focus-problem
 


On Tuesday, March 13, 2012 1:38:05 PM UTC+1, kretel wrote:
>
> What I might actually need is to get two rows inserted into theader in 
> CellTable. 
> So the header look like this: 
>
> |  | header1 - label1 | header2 - label1 |
> +--+--+--+
> | label| header1 - label2 | header2 - label2 |
> +--+--+--+
> | foobar   |  1   | image|
>
> Is there a way to add an extra header row to a CellTable after adding a 
> column with one header? 
>
> Thanks,
> Kris
>
>
>
> On Tuesday, March 13, 2012 10:31:59 AM UTC, kretel wrote:
>>
>> Hi,
>>
>> I am trying to build a custom header which have two labels in a header 
>> and both are styled differently. For example: 
>>
>> | header1 - label1 | header2 - label1 |
>> +---++
>> | header1 - label2 | header2 - label2 |
>>
>> Label1 in headers needs to be styled differently than label2. Further 
>> label2 needs to be able to trigger column sort on a table. 
>>
>> I was looking at examples how to build AbstractCells but still can't see 
>> how this can be applied to header. 
>>
>> Does anyone come up with an approach to build Custom header? 
>>
>> Thanks,
>> Kris
>>
>>
>>
>>

-- 
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/-/nWqPZtTZvigJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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 Akram Moncer
ok thinks

Le 13 mars 2012 15:56, Sebastian Gurin  a écrit :

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


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



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

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

2012-03-13 Thread kretel
What I might actually need is to get two rows inserted into theader in 
CellTable. 
So the header look like this: 

|  | header1 - label1 | header2 - label1 |
+--+--+--+
| label| header1 - label2 | header2 - label2 |
+--+--+--+
| foobar   |  1   | image|

Is there a way to add an extra header row to a CellTable after adding a 
column with one header? 

Thanks,
Kris



On Tuesday, March 13, 2012 10:31:59 AM UTC, kretel wrote:
>
> Hi,
>
> I am trying to build a custom header which have two labels in a header and 
> both are styled differently. For example: 
>
> | header1 - label1 | header2 - label1 |
> +---++
> | header1 - label2 | header2 - label2 |
>
> Label1 in headers needs to be styled differently than label2. Further 
> label2 needs to be able to trigger column sort on a table. 
>
> I was looking at examples how to build AbstractCells but still can't see 
> how this can be applied to header. 
>
> Does anyone come up with an approach to build Custom header? 
>
> Thanks,
> Kris
>
>
>
>

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



RichTextArea height size

2012-03-13 Thread Saik0
Hi @all,

why could i change the width of the RichTextArea with css but not the 
height? What i'm missing :-\ ?

Source:
RichTextArea area = new RichTextArea();
area.setSize("100%", "100%");

-- 
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/-/Za8g5AWbuM8J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: A GWT version of the JavaScript TodoMVC sample application

2012-03-13 Thread Colin Eberhardt
On Mar 13, 9:52 am, Thomas Broyer  wrote:
> On Monday, March 12, 2012 10:40:06 PM UTC+1, Colin Eberhardt wrote:
>
> > >    - Instead of wrapping everything in a UiBinder, I would have kept
> > part
> > >    of the template in the HTML host page (I'd have wrapped only the  > >    id=todoapp>, keeping the static instructions and credits sections in
> > the
> > >    HTML host page)
>
> > I'm not so keen on this based on the goal of this project, to compare
> > and contrast it with various JavaScript frameworks. Having the markup
> > in a single place makes this comparison easier.
>
> On the other hand, people not knowing GWT could think it *cannot* simply
> enhance an existing HTML layout, as the other implementations do. I see
> TodoMVC as a way of "advertizing" toolkits/frameworks, and I fear people
> see GWT as *only* being capable of building "empty window" interfaces 
> [http://bitworking.org/news/427/js-rest-and-empty-windows]

It is hard to second-guess the misconceptions a JavaScript developer
may or may not have about GWT. It is such a different programming
model.


> > >    - I wonder if you could have used a CompositeCell to split the "done
> > >    checkbox" and "delete button" handling in their own cells
>
> > I thought about that too, but one of the goals of the TodoMVC project
> > is to use the same HTML markup and CSS for all the implementations.
> > Mine already deviates due to CellList using divs rather than ul / li
> > (it's a great shame this cannot be configured), so I wanted to adhere
> > to the template as much as I could elsewhere.
>
> I don't see such a "goal" stated 
> inhttps://github.com/addyosmani/todomvc/wiki/Todo-Application-Specifica...
> The stated goal is that the "look and feel" the same.
> Also, there's nothing wrong not using ul / li provided you communicate the
> role of elements by other means (ARIA). Maybe CellList should be enhanced
> with ARIA for better accessibility, I haven't checked, but if that's the
> case, it's an issue with GWT that I don't think the TodoMVC sample should
> try to address (at least not at all cost). In trunk, CellTable now has a
> Builder so I believe you could make one using  as the container, 
> for rows and  for cells.
> Of course, YMMV.

This is a stated goal of the project, albeit a recent one. When I
submitted my GWT implementation there was a quite thorough code
review, where deviations from the supplied HTML template were flagged
and frowned upon!

I totally agree that there is nothing wrong with an alternative markup
- however, I wanted to be forgiving to the team that run the project
and accommodating to their requests.

As I mentioned, I will take your comments on board and appreciate the
feedback.

You are of course welcome to make changes and add pull requests for
updates to this code, as is anyone else.

Regards, Colin E.

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



Custom header using CompositeCell or AbstractCell

2012-03-13 Thread kretel
Hi,

I am trying to build a custom header which have two labels in a header and 
both are styled differently. For example: 

| header1 - label1 | header2 - label1 |
+---++
| header1 - label2 | header2 - label2 |

Label1 in headers needs to be styled differently than label2. Further 
label2 needs to be able to trigger column sort on a table. 

I was looking at examples how to build AbstractCells but still can't see 
how this can be applied to header. 

Does anyone come up with an approach to build Custom header? 

Thanks,
Kris



-- 
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/-/64tUtRIS1ZIJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: A GWT version of the JavaScript TodoMVC sample application

2012-03-13 Thread Thomas Broyer


On Monday, March 12, 2012 10:40:06 PM UTC+1, Colin Eberhardt wrote:
>
> >- Instead of wrapping everything in a UiBinder, I would have kept 
> part 
> >of the template in the HTML host page (I'd have wrapped only the  >id=todoapp>, keeping the static instructions and credits sections in 
> the 
> >HTML host page) 
>
> I'm not so keen on this based on the goal of this project, to compare 
> and contrast it with various JavaScript frameworks. Having the markup 
> in a single place makes this comparison easier.
>

On the other hand, people not knowing GWT could think it *cannot* simply 
enhance an existing HTML layout, as the other implementations do. I see 
TodoMVC as a way of "advertizing" toolkits/frameworks, and I fear people 
see GWT as *only* being capable of building "empty window" interfaces [
http://bitworking.org/news/427/js-rest-and-empty-windows]

We/you could go even farther as to putting almost everything in the HTML 
host page, using TextBox.wrap() to handle events on the text box, and 
RootPanel.get(xxx) to add the CellList and footer.
 

> >- I would have called the ViewEventHandler interface 'Presenter' (as 
> >many people do it), and use a setter on the view (setPresenter) 
> rather than 
> >an observer-like method (addViewEventHandler) 
>
> I'm not so keen on that naming, having an interface for the Presenter, 
> which is a restricted view onto the presenter for the purposes of 
> responding to 'events' from the view seems wrong to me.
>

Well, that's exactly what the ViewEventHandler interface is; you're not 
forced to use an interface (the view could know the presenter) but helps in 
decoupling. You're technically allowing multiple handlers to be attached to 
the same view, but that's not going to happen in practice, or so rarely 
that it's not worth the runtime cost.
See also 
http://www.google.com/events/io/2010/sessions/gwt-continuous-build-testing.html
 

> >- I wonder if you could have used a CompositeCell to split the "done 
> >checkbox" and "delete button" handling in their own cells 
>
> I thought about that too, but one of the goals of the TodoMVC project 
> is to use the same HTML markup and CSS for all the implementations. 
> Mine already deviates due to CellList using divs rather than ul / li 
> (it's a great shame this cannot be configured), so I wanted to adhere 
> to the template as much as I could elsewhere.
>

I don't see such a "goal" stated in 
https://github.com/addyosmani/todomvc/wiki/Todo-Application-Specification
The stated goal is that the "look and feel" the same.
Also, there's nothing wrong not using ul / li provided you communicate the 
role of elements by other means (ARIA). Maybe CellList should be enhanced 
with ARIA for better accessibility, I haven't checked, but if that's the 
case, it's an issue with GWT that I don't think the TodoMVC sample should 
try to address (at least not at all cost). In trunk, CellTable now has a 
Builder so I believe you could make one using  as the container,  
for rows and  for cells.
Of course, YMMV.

If you look at the Ext.js (for instance), it doesn't use ul / li either, 
and its use of ARIA adds nothing to accessibility (role=presentation 
everywhere).

 

> >- I would have used AutoBeans for the JSON serialization, instead of 
> >JSONParser/JSONValue and the like (which are a PITA to use) 
>
> Good idea - I have been meaning to give AutoBeans a go.
>

Note that because AutoBeans are only about data, you'll be forced to move 
away from the MVVM-like approach before using AutoBean (unless you use an 
AutoBean to wrap a ToDoItem, but that'd complicate things for little-to-no 
added value)

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

2012-03-13 Thread Alex Dobjanschi
try to use classes first, but you can definitely use interfaces. there are a 
couple of considerations: 
1 interfaces must extend Serializable
2 those interfaces must be found by gwt rpc generator, so place them in one of 
the source imports of gwt module
3 implementations of these interfaces must also be visible to gwt rpc generator 
- that means, also be included in a visible package - along with the usual 
serialization requirements

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



Re: GWT & Spring

2012-03-13 Thread Alex Dobjanschi
The framework is very elementary, and lacks one of spring's most important 
feature: ioc container. 

-- 
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/-/22cv1EJcA-sJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: remove border from Sub Menu

2012-03-13 Thread Viktor
i don't know if it's possible but here is a list of all css forrmating 
values for a menu. Maybe you find anything helpful there..

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

greetings

Am Montag, 12. März 2012 16:14:42 UTC+1 schrieb beig:
>
> Hello,
>
> i tried to remove the border from a sub menu, but i don't know if it is 
> even possible.
>
> i tried:  border-color: transparent;
> border-style: none;
> border: 0px;
> 
>
> http://goo.gl/RwLzy
>
> is there a way to remove it?
>
> Thanks for your help.
>

-- 
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/-/qQ3P9Zu6pmQJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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+ hibernate

2012-03-13 Thread Akram Moncer
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.



Re: File download and Exception handling using a servlet.

2012-03-13 Thread Albert van Veen
Hi Bowie,

Im actually interested in how to read the error code or exception when
setting an url in a frame object. When the servlet call goes correct
correct, the browser shows a file download window. If the servlet call
fails, the frontend needs to be aware of this somehow.

Do I need somehow read the content of the frame object? If so, how can I
achieve this? There is no AsyncCallback object since I just set an url of a
frame.

Thanks.

Albert

On 12 March 2012 15:29, dodo dard  wrote:

> Helo,
>
> Well it is a delicate subject to handle. There is no default method to
> deal with the error result.
> A way to approach this, is by testing the servlet response. The
> fastest is to make sure that there is no "ERROR CODE" (404, 503 ...)
> in resultHtml.
> But this make your application depends on your servlet container
> implementation. If you can rewritte your ServletReponse, then you can
> decide your own error code and how to handle it.
>
> Hope this help you,
> Bowie
> 
> http://www.html5bydemo.com/
>
> On Mar 12, 11:19 am, Appien  wrote:
> > Hi guys,
> >
> > In my GWT application the user can download a PDF file by using a
> servlet.
> > To start the download I create in GWT a hidden Frame Object which calls
> the
> > servlet. The happy workflow path works great however I want give the user
> > some feedback when generating the PDF file fails. Since the result of the
> > servlet call gets ‘printed’ in the Frame object, the printed exception
> also
> > appears in the hidden Frame and not e.g. by a popup for the user.
> >
> > Unfortunately I don’t see a way so the servlet throws directly exceptions
> > to the AsyncCallback of GWT.
> >
> > I’ve the following pseudo code for handling my exception.
> >
> > My questions are the following:
> > - Is this the right way to do exception handling for servlet exceptions
> in
> > GWT?
> > - If not, which approach should I use for this?
> >
> > Many thanks for all the help!
> >
> > Albert
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email 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.



IE 9 crashes in dev mode (GWT 2.4)

2012-03-13 Thread Alex Ph
Hi,
We tried to update our projects from GWT 2.0.X to 2.4 to get the IE9 
compile target. Compiling and deploying working fine. But when I try to 
start the dev mode with 2.4 and IE 9, the Internet Explorer crashes. First 
I thought thats an issue with our old 2.0.X project. Therefore I installed 
a new "fresh" eclipse and download the google gwt eclipse-plugin. After 
that I installed it and create a starter project. When I start this project 
in dev mode, the sample text "enter your name" but not the Textbox are 
shown.Instead of that I got this exception after hitting cancel when Win 7 
"told" me that the Internet Explorer has stop working:
(I dont configure the proxy, but I dont think the updatecheck trigger such 
a behavior)

Initializing App Engine server
> 13.03.2012 07:58:33 com.google.appengine.tools.info.RemoteVersionFactory 
> getVersion
> INFO: Unable to access 
> http://appengine.google.com/api/updatecheck?runtime=java&release=1.6.3×tamp=1330104983&api_versions=['1.0']
> java.net.SocketException: Network is unreachable: connect
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at java.net.PlainSocketImpl.doConnect(Unknown Source)
> at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
> at java.net.PlainSocketImpl.connect(Unknown Source)
> at java.net.SocksSocketImpl.connect(Unknown Source)
> at java.net.Socket.connect(Unknown Source)
> at java.net.Socket.connect(Unknown Source)
> at sun.net.NetworkClient.doConnect(Unknown Source)
> at sun.net.www.http.HttpClient.openServer(Unknown Source)
> at sun.net.www.http.HttpClient.openServer(Unknown Source)
> at sun.net.www.http.HttpClient.(Unknown Source)
> at sun.net.www.http.HttpClient.New(Unknown Source)
> at sun.net.www.http.HttpClient.New(Unknown Source)
> at 
> sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
> at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown 
> Source)
> at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
> at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown 
> Source)
> at java.net.URL.openStream(Unknown Source)
> at 
> com.google.appengine.tools.info.RemoteVersionFactory.getVersion(RemoteVersionFactory.java:76)
> at 
> com.google.appengine.tools.info.UpdateCheck.checkForUpdates(UpdateCheck.java:99)
> at 
> com.google.appengine.tools.info.UpdateCheck.doNagScreen(UpdateCheck.java:174)
> at 
> com.google.appengine.tools.info.UpdateCheck.maybePrintNagScreen(UpdateCheck.java:142)
> at 
> com.google.appengine.tools.development.gwt.AppEngineLauncher.maybePerformUpdateCheck(AppEngineLauncher.java:115)
> at 
> com.google.appengine.tools.development.gwt.AppEngineLauncher.start(AppEngineLauncher.java:81)
> at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)
> at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1068)
> at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)
> at com.google.gwt.dev.DevMode.main(DevMode.java:311)
> 13.03.2012 07:58:34 com.google.apphosting.utils.jetty.JettyLogger info
> INFO: Logging to JettyLogger(null) via 
> com.google.apphosting.utils.jetty.JettyLogger
> 13.03.2012 07:58:34 
> com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
> INFO: Successfully processed 
> C:\Users\ph\workspaceGWT\GWTTest\war\WEB-INF/appengine-web.xml
> 13.03.2012 07:58:34 
> com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
> INFO: Successfully processed 
> C:\Users\ph\workspaceGWT\GWTTest\war\WEB-INF/web.xml
> 13.03.2012 07:58:36 
> com.google.appengine.tools.development.DevAppServerImpl start
> INFO: The server is running at http://localhost:/
> 13.03.2012 07:58:37 
> com.google.appengine.tools.development.DevAppServerImpl start
> INFO: The admin console is running at http://localhost:/_ah/admin
> Exception in thread "Code server for gwttest from Mozilla/5.0 (compatible; 
> MSIE 9.0; Windows NT 6.1; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 
> 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; 
> Tablet PC 2.0) on 
> http://127.0.0.1:/GWTTest.html?gwt.codesvr=127.0.0.1:9997 @ 
> +L<;}.7A}h\vq_}Z" com.google.gwt.dev.shell.BrowserChannel$RemoteDeathError: 
> Remote connection lost
> at 
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:536)
> at 
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
> at java.lang.Thread.run(Unknown Source)
> Caused by: java.net.SocketException: Connection reset by peer: socket 
> write error
> at java.net.SocketOutputStream.socketWrite0(Native Method)
> at java.net.SocketOutputStream.socketWrite(Unknown Source)
> at java.net.SocketOutputStream.write(Unknown Source)
> at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
> at java.io.BufferedOutputStream.flush(Unknown So