Re: What is 'final' keyword for?

2010-11-29 Thread Paul Grenyer
Hi

On Mon, Nov 29, 2010 at 2:34 PM, ailinykh ailin...@gmail.com wrote:
 Hello, everybody!
 In HasDataPresenter.java I see code like this:

 // Update the page size.
    final boolean pageSizeChanged = (pageSize != length);
    if (pageSizeChanged) {
      pageSize = length;
    }

   and later
   if(pageSizeChanged)
     doSomething();

 What a reason to use 'final' keyword here? Dos it help to produce
 better java script?

No. It's a clear intent that pageSizeChanged should not be changed
after it is set. If someone does change it the compiler will tell you.
Final is very important in Java. Look it up!


-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com
t: pjgrenyer

-- 
You received 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: Spring 3.0 + GWT 2.0 integration

2010-10-07 Thread Paul Grenyer
Hi

On Thu, Oct 7, 2010 at 3:00 PM, aces2805 ace...@gmail.com wrote:

 Hi Paul, thanks the reference is useful again I was able to do some
 some basic authentication, do you have an idea on how to use CAS on
 spring and GWT?


I might do if I knew what CAS was?

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com
t: pjgrenyer

-- 
You received 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: Spring 3.0 + GWT 2.0 integration

2010-10-06 Thread Paul Grenyer
Hi

Glad it was useful!

I haven't got around to writing up spring security integration yet, but have a 
look here for ideas:

paulgrenyer.net/svn/public/gxtspringsecurity/trunk/GxtSpringSecurity/

Feel free to ask any questions.

Paul
-Original Message-
From: aces2805 ace...@gmail.com
Sender: google-web-toolkit@googlegroups.com
Date: Wed, 6 Oct 2010 11:03:02 
To: Google Web Toolkitgoogle-web-toolkit@googlegroups.com
Reply-To: google-web-toolkit@googlegroups.com
Subject: Re: Spring 3.0 + GWT 2.0 integration

Thanks paul, I really appreciate it ... it was very useful ... by the
way I hope it isn't too much to ask, but do you have any references
also for spring security intgrated to GWT ... many thanks.

On Oct 6, 5:13 pm, Paul Grenyer paul.gren...@gmail.com wrote:
 Hi

 On Wed, Oct 6, 2010 at 9:36 AM, aces2805 ace...@gmail.com wrote:
  Hi, is there any other way of integrating Spring 3.0 and GWT 2.0 using
  the spring dispatcher, I'm using the MVP pattern by the way. Really
  appreciate any help thanks. Hope I can get some samples and references
  guys ^^

 Yes, see attached.

 --
 Thanks
 Paul

 Paul Grenyer
 e: paul.gren...@gmail.com
 b: paulgrenyer.blogspot.com
 t: pjgrenyer

  Integrating Spring with the Google Web Toolkit - Part I.pdf
 337KViewDownload

-- 
You received 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: Advice for site design

2010-10-05 Thread Paul Grenyer
I see no reason you would want PHP if you can use GWT. For security use Spring.

-Original Message-
From: nick kov nickko...@gmail.com
Sender: google-web-toolkit@googlegroups.com
Date: Tue, 5 Oct 2010 14:45:29 
To: Google Web Toolkitgoogle-web-toolkit@googlegroups.com
Reply-To: google-web-toolkit@googlegroups.com
Subject: Advice for site design

I'm creating a site which will have a sign up screen, a login system,
and then interaction with the site once you login. My question is, can
I mix GWT with PHP in a healthy manner? I don't know how well GWT
handles client-server interactions. But should I stick to pure GWT for
ease and cross browser compatibility, a mix with PHP, or just pure
PHP ?

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: Sending mails from GWT-App

2010-09-28 Thread Paul Grenyer
Hi

This isn't a GET issue

Paul

On Tue, Sep 28, 2010 at 1:46 PM, newnoise tommmuel...@googlemail.comwrote:

 Hi,

 I'm trying to send an email from my GWT-App. I found the following
 code using google:
 protected void sendMessage(String smtpHost, String fromAddress, String
 fromName, String to, String subject, String text) {
 // Get system properties Properties
 props = System.getProperties();
 // Setup mail server
 props.put(mail.smtp.host, smtpHost);
 // Get session
 Session session = Session.getDefaultInstance(props, null);
 // Define message
 MimeMessage message = new MimeMessage(session);
 // Set the from address
 message.setFrom(new InternetAddress(fromAddress, fromName));
 // Set the to address
 message.addRecipient(Message.RecipientType.TO, new
 InternetAddress(to));
 // Set the subject
 message.setSubject(subject);
 // Set the content
 message.setContent(text, text/html);
 // Send message
 Transport.send(message);
 }

 But I'm getting a java.lang.AssertionError: null.

 I was wondering why I do not have to enter a password for the smtp-
 server, and what to enter at String smtpHost, as I have to enter my
 Smtp-Host at props.put() again ...

 Thanks!
 Tom

 --
 You received 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com
t: pjgrenyer

-- 
You received 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: Sending mails from GWT-App

2010-09-28 Thread Paul Grenyer
Hi

It means I can't type! GET should have been GWT.

Paul

On Tue, Sep 28, 2010 at 2:20 PM, newnoise tommmuel...@googlemail.comwrote:

 What does that mean?


 On 28 Sep., 15:12, Paul Grenyer paul.gren...@gmail.com wrote:
  Hi
 
  This isn't a GET issue
 
  Paul
 
  On Tue, Sep 28, 2010 at 1:46 PM, newnoise tommmuel...@googlemail.com
 wrote:
 
 
 
   Hi,
 
   I'm trying to send an email from my GWT-App. I found the following
   code using google:
   protected void sendMessage(String smtpHost, String fromAddress, String
   fromName, String to, String subject, String text) {
   // Get system properties Properties
   props = System.getProperties();
   // Setup mail server
   props.put(mail.smtp.host, smtpHost);
   // Get session
   Session session = Session.getDefaultInstance(props, null);
   // Define message
   MimeMessage message = new MimeMessage(session);
   // Set the from address
   message.setFrom(new InternetAddress(fromAddress, fromName));
   // Set the to address
   message.addRecipient(Message.RecipientType.TO, new
   InternetAddress(to));
   // Set the subject
   message.setSubject(subject);
   // Set the content
   message.setContent(text, text/html);
   // Send message
   Transport.send(message);
   }
 
   But I'm getting a java.lang.AssertionError: null.
 
   I was wondering why I do not have to enter a password for the smtp-
   server, and what to enter at String smtpHost, as I have to enter my
   Smtp-Host at props.put() again ...
 
   Thanks!
   Tom
 
   --
   You received 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com
 
   .
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.
 
  --
  Thanks
  Paul
 
  Paul Grenyer
  e: paul.gren...@gmail.com
  b: paulgrenyer.blogspot.com
  t: pjgrenyer

 --
 You received 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com
t: pjgrenyer

-- 
You received 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: permissions based on roles

2010-09-28 Thread Paul Grenyer
We've integrated Spring security to achieve this.

-Original Message-
From: spiralni spira...@gmail.com
Sender: google-web-toolkit@googlegroups.com
Date: Tue, 28 Sep 2010 12:28:05 
To: Google Web Toolkitgoogle-web-toolkit@googlegroups.com
Reply-To: google-web-toolkit@googlegroups.com
Subject: permissions based on roles

hello.

I will start a project and I want to use the gwt toolkit because I
need my application to look like a desktop app.

My concern is regarding the users and roles... and all the permissions
stuffs.

Where can I find an example of this? Or is it not posible to achieve
with gwt and need to integrate gwt into another framework, i.e Spring
or Struts?

Example:

User1 belongs to Role1 and can see x, y, z menus
User2 belongs to Role2 and can see only x menu.

Etc.

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-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 the unexpected exception thrown by backend component onthe client side

2010-09-20 Thread Paul Grenyer
Hi

(There's no need to copy my personal email address. Please do not).

What we do is this.

1. We have a custom RuntimeException:

public class ServerSideException extends RuntimeException implements
IsSerializable
{
private static final long serialVersionUID = 1L;

@SuppressWarnings(unused)
private ServerSideException()
{   /* For GWT. */ }

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

which can be seen by the GWT compiler and is declared on ALL RPC methods.

2. All of our RPC endpoints are spring beans.

3. We have a simple throws advice:

public class RpcErrorAdvice implements ThrowsAdvice
{
private static final Logger log =
Logger.getLogger(RpcErrorAdvice.class); //NOPMD

public void afterThrowing(final Throwable t) throws Throwable
{
log.error(t);
throw new ServerSideException(t);   
}
}

4. which listens to all beans derived from RemoteService:

bean class = 
org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator/
bean name = rpcErrorAdvice class =
net.purpletube.cerberus.server.springintegration.RpcErrorAdvice /
bean class 
=org.springframework.aop.aspectj.AspectJExpressionPointcutAdvisor
property name = advice ref = rpcErrorAdvice/  
property name = expression value = execution(public *
com.google.gwt.user.client.rpc.RemoteService+.*(..))/
/bean


That's it.

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com
t: pjgrenyer

-- 
You received 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 the unexpected exception thrown by backend component onthe client side

2010-09-20 Thread Paul Grenyer
Hi


 It seems that all beans derived from RemoteServiceServlet should be listen
 to, but not RemoteService?

Yes, if you have beans that inherit from RemoteServiceServlet. Our
spring integration implementation  doesn't require it.


-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com
t: pjgrenyer

-- 
You received 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 the unexpected exception thrown by backend component onthe client side

2010-09-19 Thread Paul Grenyer
This can be done with AOP. Are you using spring or anything like that?

-Original Message-
From: lin.liang birdandfis...@gmail.com
Sender: google-web-toolkit@googlegroups.com
Date: Sun, 19 Sep 2010 03:12:50 
To: Google Web Toolkitgoogle-web-toolkit@googlegroups.com
Reply-To: google-web-toolkit@googlegroups.com
Cc: yj...@163.com
Subject: How to get the unexpected exception thrown by backend component on
 the client side

For example, when the FileNotFoundException was throw by the backend
service, now I want to retrieve this exception via gwt rpc component
and show its' stack trace on the client side. The problem is that the
FileNotFoundException is not in the serialization whitelist, even I
declare it on the service method signature(it report that no source
code for java.io.FileNotFoundException). So, how can I do to solve
this issue? 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: MySQL database connection

2010-09-14 Thread Paul Grenyer
Very nice! So what's the problem? You should consider using springs 
JdbcTemplate.
 
-Original Message-
From: Romeo Calota kicsyr...@gmail.com
Sender: google-web-toolkit@googlegroups.com
Date: Tue, 14 Sep 2010 09:14:04 
To: Google Web Toolkitgoogle-web-toolkit@googlegroups.com
Reply-To: google-web-toolkit@googlegroups.com
Subject: MySQL database connection

I want to establish a connection to a local MySQL database. I've
written the code for connecting in the server package. And created the
RPC connections for server-client communication. The commnication
between the two works and the code for connection to the DB is also
correct. Eclipse doesn't issue any warning while running the project.

Here is the server-side code

code
package gwt.hom.server;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;

import gwt.hom.client.CInterface;

import com.google.gwt.user.client.Window;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;

@SuppressWarnings(serial)
public class CInterfaceImpl extends RemoteServiceServlet implements
CInterface {

public static ArrayListString list1Elem, list2Elem;

@Override
public ArrayListString getInfo1() {
list1Elem = new ArrayListString();

Window.alert(I am here!);

try {
Class.forName(com.mysql.jdbc.Driver);
} catch (ClassNotFoundException e) {
e.printStackTrace();
}
try {
String url = jdbc:mysql://127.0.0.1:3306/localdb;
Connection conn = DriverManager.getConnection(url, 
kicsyromy,
zomfg);
Statement st = conn.createStatement();
ResultSet rs = st.executeQuery(select Nume from Tabel1 
order by
Nume);
while (rs.next()) {
list1Elem.add(rs.getString(Nume));
Window.alert(   + list1Elem);
}

conn.close();

} catch (SQLException ex) {
Window.alert(ex.getMessage());
}
return list1Elem;
}

@Override
public ArrayListString getInfo2() {
list2Elem = new ArrayListString();


try {
Class.forName(com.mysql.jdbc.Driver);
} catch (ClassNotFoundException e) {
e.printStackTrace();
}
try {
String url = jdbc:mysql://127.0.0.1:3306/localdb;
Connection conn = DriverManager.getConnection(url, 
kicsyromy,
zomfg);
Statement st = conn.createStatement();
ResultSet rs = st.executeQuery(select Nume from Tabel2 
order by
Nume);
while (rs.next()) {
list2Elem.add(rs.getString(Nume));
Window.alert(   + list2Elem);
}

conn.close();

} catch (SQLException ex) {
Window.alert(ex.getMessage());
}
return list2Elem;
}
}
/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.

-- 
You received 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: TEST 2

2010-08-06 Thread Paul Grenyer
It works!
-Original Message-
From: Rahul rahul.mishr...@gmail.com
Sender: google-web-toolkit@googlegroups.com
Date: Fri, 6 Aug 2010 16:28:39 
Reply-To: google-web-toolkit@googlegroups.com
Subject: TEST 2



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



Opening

2010-07-22 Thread Paul Grenyer
Hi All

I've got a bit of a problem opening new tabs. I found the following link:

http://brainreaders.blogspot.com/2009/10/open-new-tab-in-gwt.html

and from that I've derived:

private static native void getURL(String url)
/*-{
$wnd.open(url,'target=_blank')
}-*/;

It works perfectly with firefox, but in Internet Explorer I get:

---
Message from webpage
---
UncaughtExceptioncom.google.gwt.core.client.JavaScriptException:
(Error): Invalid argument.
 number: -2147024809
 description: Invalid argument.
---
OK
---

I'm somewhat lost. I suspect it doesn't like the url type, maybe. Can
anyone tell me what I need to do, please?

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com
t: pjgrenyer

-- 
You received 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: Opening

2010-07-22 Thread Paul Grenyer
Hi

On Thu, Jul 22, 2010 at 11:57 AM, cokol eplisc...@googlemail.com wrote:
 hi, try it as follows:

 private static native void getURL(String url)
    /*-{
        $wnd.open('' + url,'target=_blank')
    }-*/;


Thanks! Unfortunately that didn't work either. Just to see what
happens, I tried:

 private static native void getURL(String url)
/*-{
$wnd.open('http://www.itv-f1.com/','target=_blank');
}-*/;

and I get the same error, which suggests to me maybe it's not the string type.

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com
t: pjgrenyer

-- 
You received 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: Opening

2010-07-22 Thread Paul Grenyer
Hi

On Thu, Jul 22, 2010 at 12:51 PM, Paul Robinson ukcue...@gmail.com wrote:
 No need for jsni.

 Try:
 Window.open(http://www.itv-f1.com/;, _blank, );

I had that before, it didn't give me tabbed browsing in IE.

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com
t: pjgrenyer

-- 
You received 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: This is getting beyond a joke

2010-07-13 Thread Paul Grenyer
This is free software, there is no obligation.

-Original Message-
From: Richard Vowles richard.vow...@gmail.com
Sender: google-web-toolkit@googlegroups.com
Date: Tue, 13 Jul 2010 18:39:23 
To: Google Web Toolkitgoogle-web-toolkit@googlegroups.com
Reply-To: google-web-toolkit@googlegroups.com
Subject: Re: This is getting beyond a joke

We do host our own repository - thats not the point. The point is that
thousands of people use GWT and use dependency management, not having
it go into central as a matter of course is simply ridiculous! It is
absolutely, point blank unprofessional.

On Jul 13, 4:32 pm, Paul Grenyer paul.gren...@gmail.com wrote:
 Hi

 If you need it that much, why don't you host your own repository, such as 
 Nexus? That's what we do for Ivy.

-- 
You received 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: This is getting beyond a joke

2010-07-13 Thread Paul Grenyer
I'd say so.
-Original Message-
From: Jaroslav Záruba  jaroslav.zar...@gmail.com 
Sender: google-web-toolkit@googlegroups.com
Date: Wed, 14 Jul 2010 04:10:37 
To: google-web-toolkit@googlegroups.com
Reply-To: google-web-toolkit@googlegroups.com
Subject: Re: This is getting beyond a joke

Or, maybe you're over-estimating importance of Maven for average
GWT-developer...?

On Wed, Jul 14, 2010 at 3:39 AM, Richard Vowles richard.vow...@gmail.comwrote:

 We do host our own repository - thats not the point. The point is that
 thousands of people use GWT and use dependency management, not having
 it go into central as a matter of course is simply ridiculous! It is
 absolutely, point blank unprofessional.

 On Jul 13, 4:32 pm, Paul Grenyer paul.gren...@gmail.com wrote:
  Hi
 
  If you need it that much, why don't you host your own repository, such as
 Nexus? That's what we do for Ivy.

 --
 You received 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: This is getting beyond a joke

2010-07-12 Thread Paul Grenyer
Hi

If you need it that much, why don't you host your own repository, such as 
Nexus? That's what we do for Ivy.

Paul

-Original Message-
From: Richard Vowles richard.vow...@gmail.com
Sender: google-web-toolkit@googlegroups.com
Date: Mon, 12 Jul 2010 16:09:06 
To: Google Web Toolkitgoogle-web-toolkit@googlegroups.com
Reply-To: google-web-toolkit@googlegroups.com
Subject: This is getting beyond a joke

GWT 2.0.4 has been out for at least two weeks now and it still isn't
in maven central. I understand that the Google guys don't use maven or
ivy, but for those who do (i.e. anyone serious about their builds
reliability and repeatability) the releases of GWT not being available
in central within a day or two of release is an incredible pain in the
backside and a very negative image for GWT in corporate. We are
suffering this Safari problem and now I'm going to have to manually
insert these artefacts into our repository.

This is *not* hard, Sonatype have been really good about making this
straight forward. Who is responsible for doing this and who has done
it in the past? Whoever you are, if you can't do it quickly I
volunteer to take over the responsibility for it and make sure it is
in within a couple of days. If I get to do it it, I'll also create a
new googlecode repository for the nightlies for people to version
range over if they wish.

Richard

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



GXT Button Id

2010-06-29 Thread Paul Grenyer
Hi All

We want to introduce Ids to our GXT components so that our interface
is easier for testers to test. We thought it would be as easy as this:

final Button sendButton = new Button(Send);
sendButton.setId(ButtonId.send);
RootPanel.get().add(sendButton);

but this gives us:

table cellspacing=0 role=presentation class=x-btn x-component
x-btn-noicon id=ButtonId.send
...
button style=position: relative; width: 31px; type=button
class=x-btn-text  tabindex=0Send/button
...
/table

As you can see the Id is added to the table in which the button is displayed.

Is there a way to get it added to the actual button, so we can have:

...
button style=position: relative; width: 31px; type=button
class=x-btn-text  tabindex=0 id=ButtonId.sendSend/button
...

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: GXT Button Id

2010-06-29 Thread Paul Grenyer
Hi

 Just curious, are you testing your GUI with Selenium ? If yes, does it
 work with GWT ?

We're using something called Twist which is based on Selenium and yes, it works.


-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

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



Client Session Timeout

2010-06-16 Thread Paul Grenyer
Hi All

We have an application that makes regular RPC calls, on a timer, to
the client. This has the side effect of the user's session never
expiring. Because of the sensitive nature of the data we're handling
in our application, we need the user's session to timeout.

How can this be done?

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Managing of connection to JMS server, listening to JMS Topic

2010-06-08 Thread Paul Grenyer
Hi

On Tue, Jun 8, 2010 at 12:38 PM, vkrejcirik vkrejci...@gmail.com wrote:
 Hi, I'm developing web based application with GWT toolkit. I have
 client and server part. On server part, I have class for managing of
 connection to JMS server for listening to JMS topic. I don't find
 better way than periodically send request from client to server. On
 server I have saved last message from JMS topic. I get this message
 and I send it to client. This application runs on tomcat server. I use
 JAXB for mapping JMS messages to Java classes, which are generated
 from xml files.

If you implmenet Sprin gon the server side you won't need JAXB and
your JMS client will stop and start with the server.


-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Problems releated to javaMail in GWT application

2010-06-04 Thread Paul Grenyer
Hi

Send email from the server side via an RPC call.

Paul

-Original Message-
From: samounas elmokhtari.as...@gmail.com
Date: Fri, 4 Jun 2010 08:57:36 
To: Google Web Toolkitgoogle-web-toolkit@googlegroups.com
Subject: Problems releated to javaMail in GWT  application

Please can you tell me how to use javaMail in gwt application.
Because when i insert the code related to the mailing in my
application. I find these errors when i wanted to compile my code:

[ERROR] Errors in 'file:/D:/workspace/ilemERP/osi/osi-client/src/main/
java/ch/ilem/erp/osi/client/panel/cust/OsiReqNewPanel.java'
 [ERROR] Line 985: No source code is available for type
java.util.Properties; did you forget to inherit a required module?
 [ERROR] Line 986: No source code is available for type
com.framework.genie.utilities.Utilities; did you forget to inherit a
required module?
 [ERROR] Line 995: No source code is available for type
javax.mail.Session; did you forget to inherit a required module?
 [ERROR] Line 998: No source code is available for type
javax.mail.Message; did you forget to inherit a required module?
 [ERROR] Line 998: No source code is available for type
javax.mail.internet.MimeMessage; did you forget to inherit a required
module?
 [ERROR] Line 1001: No source code is available for type
javax.mail.internet.InternetAddress; did you forget to inherit a
required module?
 [ERROR] Line 1002: No source code is available for type
javax.mail.Message.RecipientType; did you forget to inherit a required
module?
 [ERROR] Line 1005: No source code is available for type
javax.mail.internet.MimeUtility; did you forget to inherit a required
module?
 [ERROR] Line 1029: No source code is available for type
javax.mail.Transport; did you forget to inherit a required module?
 [ERROR] Line 1031: No source code is available for type
com.framework.genie.log.LoggerFactory; did you forget to inherit a
required module?
   Finding entry point classes
  [ERROR] Unable to find type 'ch.ilem.erp.osi.client.IlemErpOsi'
 [ERROR] Hint: Previous compiler errors may have made this
type unavailable
 [ERROR] Hint: Check the inheritance chain from your module;
it may not be inheriting a required module or a module may not be
adding its source path entries properly


So how can i resolve this problem?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Problems releated to javaMail in GWT application

2010-06-04 Thread Paul Grenyer
Nope. You can't send email from the client as far as I'm aware.

Paul

-Original Message-
From: Asmaa EL MOKHTARI elmokhtari.as...@gmail.com
Date: Fri, 4 Jun 2010 16:22:19 
To: google-web-toolkit@googlegroups.com
Subject: Re: Problems releated to javaMail in GWT application

*Thank you Paul for responding.But there is'nt another way to resolve this
problem. Because i heared that we can insert some inheritis in the file
x.gwt.xml?*



2010/6/4 Paul Grenyer paul.gren...@gmail.com

 Hi

 Send email from the server side via an RPC call.

 Paul

 -Original Message-
 From: samounas elmokhtari.as...@gmail.com
 Date: Fri, 4 Jun 2010 08:57:36
 To: Google Web Toolkitgoogle-web-toolkit@googlegroups.com
 Subject: Problems releated to javaMail in GWT  application

 Please can you tell me how to use javaMail in gwt application.
 Because when i insert the code related to the mailing in my
 application. I find these errors when i wanted to compile my code:

 [ERROR] Errors in 'file:/D:/workspace/ilemERP/osi/osi-client/src/main/
 java/ch/ilem/erp/osi/client/panel/cust/OsiReqNewPanel.java'
 [ERROR] Line 985: No source code is available for type
 java.util.Properties; did you forget to inherit a required module?
 [ERROR] Line 986: No source code is available for type
 com.framework.genie.utilities.Utilities; did you forget to inherit a
 required module?
 [ERROR] Line 995: No source code is available for type
 javax.mail.Session; did you forget to inherit a required module?
 [ERROR] Line 998: No source code is available for type
 javax.mail.Message; did you forget to inherit a required module?
 [ERROR] Line 998: No source code is available for type
 javax.mail.internet.MimeMessage; did you forget to inherit a required
 module?
 [ERROR] Line 1001: No source code is available for type
 javax.mail.internet.InternetAddress; did you forget to inherit a
 required module?
 [ERROR] Line 1002: No source code is available for type
 javax.mail.Message.RecipientType; did you forget to inherit a required
 module?
 [ERROR] Line 1005: No source code is available for type
 javax.mail.internet.MimeUtility; did you forget to inherit a required
 module?
 [ERROR] Line 1029: No source code is available for type
 javax.mail.Transport; did you forget to inherit a required module?
 [ERROR] Line 1031: No source code is available for type
 com.framework.genie.log.LoggerFactory; did you forget to inherit a
 required module?
   Finding entry point classes
  [ERROR] Unable to find type 'ch.ilem.erp.osi.client.IlemErpOsi'
 [ERROR] Hint: Previous compiler errors may have made this
 type unavailable
 [ERROR] Hint: Check the inheritance chain from your module;
 it may not be inheriting a required module or a module may not be
 adding its source path entries properly


 So how can i resolve this problem?

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

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



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Hibernate problems after deploying to google appspot

2010-06-02 Thread Paul Grenyer
Emma

It sounds like you haven't deployed the mysql driver.

Paul

-Original Message-
From: Emma Cole emma.cole.positive.vo...@gmail.com
Date: Mon, 31 May 2010 16:46:59 
To: Google Web Toolkitgoogle-web-toolkit@googlegroups.com
Cc: dan.a...@gmail.com
Subject: Hibernate problems after deploying to google appspot

Hi all,

I have an application which uses hibernate that runs fine in hosted
mode, but no longer when deployed.
Here's the details:

In hosted mode it connects to a database that resides on a remote
server.
Connection details set in hibernate.cfg.xml

When run I it get a long stacktrace with errors similar to the
following:

SEVERE: Unable to instrument
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
$ValueWriter$8. Security restrictions may not be entirely emulated.

Which apparently has to do with the fact that it's being run in hosted
mode, and I read that it can be ignored.
The application saves and retrieves data without problems.

After deploying it on appspot and when I try to save a new row in a
table I get this:

javax.servlet.ServletContext log: Exception while dispatching incoming
RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract boolean
com.appspot.positivevoice.client.panels.blog.BlogService.saveBlog(com.appspot.positivevoice.client.models.BlogModel)'
threw an unexpected exception: java.lang.NoClassDefFoundError: Could
not initialize class com.mysql.jdbc.ConnectionImpl
at
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
378)
at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
581)


Since the app works fine in hosted mode ( apart from those
exceptions ) I am not even sure which files I should add to the
post...

Any idea much appreciated!

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: RPC Endpoints and threads

2010-04-16 Thread Paul Grenyer
Hi Sri

Thanks for the fast response, that was really useful!

Thanks
Paul

On Thu, Apr 15, 2010 at 9:48 AM, Sripathi Krishnan
sripathikrish...@gmail.com wrote:
 Servlet containers typically make only one object of your Servlet. This
 object is shared across several threads. Several threads is a configurable
 property on most servers, but usually varies between 15 to 30. If you have
 100 users connecting simultaneously, the server will not start 100 threads -
 the remaining requests will be queued.

 But multiple threads sharing the same Servlet (or end-point, as you put it)
 object does not usually matter. That is, if you follow servlet best
 practices.

 The GWT RPC Servlet is Stateless. Even if 1000 users access it at the same
 time, it is OKAY - they will not interfere with each other. When you write a
 RPC Servlet extending RemoteServiceServlet, you should also ensure that it
 is stateless. There are several ways to do it, but the easiest is to NOT use
 member variables in your ServiceImpl.

 Users in different sessions are also serviced by the same Servlet object. It
 is up to you to handle them differently by reading from the Session object
 and taking a different action for each user. And, just to go a step further,
 the recommended approach is to not use sessions. That gives you
 opportunities to scale later.

 EJB's are a complicated beast and meant to solve an entirely different class
 of problems. Even if you already use EJBs in your project, you should still
 write a RPC Servlet that delegates the heavy-processing to EJB.

 --Sri



 On 15 April 2010 13:19, Paul Grenyer paul.gren...@gmail.com wrote:

 Hi All

 I've been thinking a lot about the GWT RPC mechanism and from the
 tests that I've done it appears that the same endpoint instance is
 used for every RPC call. So presumably if you've got a hundred users
 all making the same RPC call all at the same time there are 100
 different threads trying to access the same object. Is that correct?

 Just having written that, another thought occurs that I haven't
 checked for, is it just that the same endpoint object is used for a
 session? So different users, who obviously have different sessions,
 get their own endpoint object?

 Anyway, assuming I was right the first time and an RPC endpoint is
 shared by all sessions, has anyone considered pooling endpoints and
 serving them up per session like I believe EJB does?

 --
 Thanks
 Paul

 Paul Grenyer
 e: paul.gren...@gmail.com
 b: paulgrenyer.blogspot.com

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




-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

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



RPC Endpoints and threads

2010-04-15 Thread Paul Grenyer
Hi All

I've been thinking a lot about the GWT RPC mechanism and from the
tests that I've done it appears that the same endpoint instance is
used for every RPC call. So presumably if you've got a hundred users
all making the same RPC call all at the same time there are 100
different threads trying to access the same object. Is that correct?

Just having written that, another thought occurs that I haven't
checked for, is it just that the same endpoint object is used for a
session? So different users, who obviously have different sessions,
get their own endpoint object?

Anyway, assuming I was right the first time and an RPC endpoint is
shared by all sessions, has anyone considered pooling endpoints and
serving them up per session like I believe EJB does?

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: ***Exciting Java Opportunity in Hampshire***

2010-04-08 Thread Paul Grenyer
Hi

On Thu, Apr 8, 2010 at 3:44 PM, Chris Ramsdale cramsd...@google.com wrote:
 No, it hasn't been decided. To that extent we're filtering any recruiter
 posts that have nothing to do with GWT. This post happened to slip past the
 moderation queue (Groups isn't perfect). That said, we block on average 3-4
 recruiters per day, so let's not jump to conclusions when one makes it
 through.
 Job posts that are GWT related are decided on a case by case basis. For the
 most part though, we block these as well.

Would it be worth having a separate gwt-recruitment list?


-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Integrate GWT with Windows Applications

2010-02-27 Thread Paul Grenyer
Hi

 I would like my GWT application to communicate with a Windows
 Application.

  on the presentation layer. It is no problem to start the Windows
 Application. Something that works using a special URL redirect. Now I
 wonder how both can communicate at Runtime:

 1) The GWT App needs to know when the other application finishes.
 2) The GWT App needs to receive return parameters from the other
 application.

 I had two ideas in mind, but I don't know whether this will work.

 1) Let them communicate over a shared temporary file
 2) Use some sort of AJAX-Magic

 Is there any common approach? Any experiences? Any help appreciated!

I suspect web services is the way to go, especially if you can embed
some sort of server in your Windows app.

If you Springify your GWT app, you can expose web services that the
windows app can call. Then if you expose web services in your windows
app, you can make a GWT RPC call that then talks to the windows app.

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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 using Eclipse with plugin and Spring

2010-02-16 Thread Paul Grenyer
Hi

On Tue, Feb 16, 2010 at 8:44 AM, olivier nouguier
olivier.nougu...@gmail.com wrote:
 Hi,
  I've run into many problem with embeded jetty and Spring (even more under
 maven ).
  Then for now I don't use jetty anymore, and with WTP GWT application run
 perfertly well with tomcat.
  The next version of GEP should be more easy to use.

I'm astounded. It's worked perfectly for me every time. On Windows and
on Linux. I've even sent Paul S the steps I use.

Thanks
Paul

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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 using Eclipse with plugin and Spring

2010-02-16 Thread Paul Grenyer
Hi

On Tue, Feb 16, 2010 at 9:07 AM, olivier nouguier
olivier.nougu...@gmail.com wrote:
 Hi Paul G,
  The issue a  was making reference
 is: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/be6b6681192aa54a?pli=1
 If you have a working solution I would really appreciate you to share.

That's not the OPs issue, but I've had this issue too and fixed it by
adding a missing JAR. IIRC (and I can't check at the moment) it was
caused by a missing org.springframework.security.config JAR. It's
important that all the necessary JARs are available in WEB-INF\lib,
not just added to your Eclipse project.

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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 using Eclipse with plugin and Spring

2010-02-16 Thread Paul Grenyer
Hi

On Tue, Feb 16, 2010 at 9:49 AM, olivier nouguier
olivier.nougu...@gmail.com wrote:
 You're are definitely rigth on those 2 points.
 not OPs issue:  in fact it's rather a Maven/GEP issue.
 file must be copied in WEB-INF/lib: just for the dev mode.
 Thanks you and I apologize for the confusion (but as an early maven user I
 tend to suppose that everybody uses maven ... )

Nah, real programmers see Maven for what it really is. ;-)

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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 using Eclipse with plugin and Spring

2010-02-15 Thread Paul Grenyer
Hi

 [WARN] Could not instantiate listener
 org.springframework.web.context.ContextLoaderListener
 java.lang.ClassNotFoundException:
 org.springframework.web.context.ContextLoaderListener

Have you got all the necessary Spring JARs in WEB-INF/lib?

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: file delete problem

2010-02-15 Thread Paul Grenyer
Hi

On Mon, Feb 15, 2010 at 5:35 PM, user20 ba.os...@gmail.com wrote:
 I use the following code with RPC call  , with me lockal works
 correctly but with tomcat 5.5 not

 HttpServletRequest req = getThreadLocalRequest();
                String delpath =
 req.getSession().getServletContext().getRealPath(/) + job/;
                File f=new File(delpath+path);
                    if(f.exists()){
                    f.delete();
                    }

What's the error message?

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: file delete problem

2010-02-15 Thread Paul Grenyer
Have you looked in the Tomcat logs? We can't help you without an error message.

-Original Message-
From: user20 ba.os...@gmail.com
Date: Mon, 15 Feb 2010 09:47:25 
To: Google Web Toolkitgoogle-web-toolkit@googlegroups.com
Subject: Re: file delete problem

There is no error message . the file is not deleted

On 15 Feb., 18:37, Paul Grenyer paul.gren...@gmail.com wrote:
 Hi

 On Mon, Feb 15, 2010 at 5:35 PM, user20 ba.os...@gmail.com wrote:
  I use the following code with RPC call  , with me lockal works
  correctly but with tomcat 5.5 not

  HttpServletRequest req = getThreadLocalRequest();
                 String delpath =
  req.getSession().getServletContext().getRealPath(/) + job/;
                 File f=new File(delpath+path);
                     if(f.exists()){
                     f.delete();
                     }

 What's the error message?

 --
 Thanks
 Paul

 Paul Grenyer
 e: paul.gren...@gmail.com
 b: paulgrenyer.blogspot.com

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: File delete with Gwt

2010-02-06 Thread Paul Grenyer
Hi

On Sat, Feb 6, 2010 at 3:38 PM, user20 ba.os...@gmail.com wrote:
 hallow everbody,
 how can i  make to delete file form folder in the server with gwt

Make an RPC call and do it the Java way.

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: File delete with Gwt

2010-02-06 Thread Paul Grenyer
Hi

On Sat, Feb 6, 2010 at 3:47 PM, Alvin Reyes alvin.jay.p.re...@gmail.com wrote:
 Can you actually just do it through RPC? We're talking about GWT here that
 is as far as I know a thick client api.
 there are certain permissions that exist before a web application can
 manipulate any files within the system.

Yes. The files have to be in a place that the user the servlet
container is being run as has access to though. I wrote a system
recently that retrieves phone calls via sFTP and saves them to a
server remote from the server running the servlet container.

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: File delete with Gwt

2010-02-06 Thread Paul Grenyer
Hi

On Sat, Feb 6, 2010 at 4:01 PM, user20 ba.os...@gmail.com wrote:
 Thanks,
 I need code example if possible

I'm not going to teach you GWT or Java. :-)

There's plenty of documentation on the GWT website about how to make
an RPC call. Google will show you how to handle files in Java if you
really don't know. If you don't already know Java, then my opinion is
that GWT, especially on the server side, isn't really for you.

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Feature Request - Improve Visual Look

2010-01-29 Thread Paul Grenyer
Why not just use GXT then?

-Original Message-
From: Marcos Alcantara marc...@gmail.com
Date: Fri, 29 Jan 2010 11:19:28 
To: Google Web Toolkitgoogle-web-toolkit@googlegroups.com
Subject: Re: Feature Request - Improve Visual Look

Couldn´t agree more.

GWT is great as whole and so flexible, it hurts.

Although, the core widgets could have a better visual appearance to
make them as good as Vaadin's or ext's but without the desktop
application appeal.

=)

Marcos Alcantara


On 28 jan, 16:27, Simon dciphercomput...@gmail.com wrote:
 Hi

 I think some of the most aesthetically pleasing UI components can be
 found in extJS so I would like to suggest that GWT further improve the
 visual appearance of their widgets.

 Simon

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



Is IsSerializable depreciated?

2010-01-17 Thread Paul Grenyer
Hi All

I was under the impression that IsSerializable was depreciated in
favor of Serializable. However, I've just created a new exception
type:

package uk.co.marauder.usermanager.client;

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

public class ServerSideException extends RuntimeException implements
IsSerializable
{
private static final long serialVersionUID = -1005766244333245684L;

@SuppressWarnings(unused)
private ServerSideException()
{}

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

and it won't serialize across the RPC boundry unless it implements
IsSerializable, Serializable doesn't work.

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com
-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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 IsSerializable depreciated?

2010-01-17 Thread Paul Grenyer
Hi

 Jesper,
 any access modifier for the constructor can be used. This is
 documented and I tested id.

Me too.

 http://code.google.com/intl/en/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideSerializableTypes
 「Serializable User-defined Classes」
 …
 3. As of GWT 1.5, it must have a default (zero argument) constructor (with 
 any access modifier) or no constructor at all.

I really like this feature as it means I don't have to give my classes
an accessible default constructor unnecessarily.

 Paul,
 I think I cannot serialize Throwable, but you can do that with
 IsSerializable.

That could well be it.

 I want to know the service method you define.

public interface UserService extends RemoteService
{
User find(String username) throws ServerSideException;

void save(User user) throws ServerSideException;
}


 http://code.google.com/intl/en/webtoolkit/doc/latest/FAQ_Server.html#Does_the_GWT_RPC_system_support_the_use_of_java.io.Serializable
 Another important point to note is that none of the classes that implement 
 java.io.Serializable in the full Java JRE implement java.io.Serializable in 
 GWT's emulated JRE.
 What this means is that types that implement java.io.Serializable in the JRE 
 like Throwable, or StackTraceElement won't be able to transfer across the 
 wire through GWT RPC since the client won't be able to serialize/deserialize 
 them.


Yes, that seems consistent with my tests. However, I would expect
IsSerializable and Serializable to be interchangeable. e.g.: this:

public ServerSideException extends RuntimeException implements IsSerializable

to be the same as

public ServerSideException extends RuntimeException implements Serializable

but it appears they are not.

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com
-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Swing App on browser

2010-01-16 Thread Paul Grenyer
Why not just use webstart?
-Original Message-
From: Alexander the.malk...@gmail.com
Date: Sat, 16 Jan 2010 23:37:32 
To: google-web-toolkit@googlegroups.com
Subject: Re: Swing App on browser

No way!!!

2010/1/16 Jiss K jiss.ka...@gmail.com

 Hi,

 I have a complete Swing application and am looking for an easy way to
 bring it on to web so that anyone can open and run the application
 through a browser.

 Does GWT has the functionality to convert the existing Swing app to
 web app or do i have to start from scratch?

 - Jiss

 --
 You received 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.






-- 
Regards,
Alexander

-- 

You received 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: Swing App on browser

2010-01-16 Thread Paul Grenyer
If anyone needs a head start: http://www.paulgrenyer.net/Java_Web_Start.pdf

On Sat, Jan 16, 2010 at 5:59 PM, Trevis trevistho...@gmail.com wrote:
 2nd vote for webstart. Webstart is the answer.

 GWT would make for an easier conversion path for a swing developer to
 web development but i think that you have to have a pretty solid grasp
 on the fundamentals (limitations and techniques) of web development to
 produce effectively in GWT.  There'd be no way to do a straight
 conversion of a non trivial application.

 On Jan 16, 11:47 am, Paul Grenyer paul.gren...@gmail.com wrote:
 Why not just use webstart?

 -Original Message-
 From: Alexander the.malk...@gmail.com
 Date: Sat, 16 Jan 2010 23:37:32
 To: google-web-toolkit@googlegroups.com
 Subject: Re: Swing App on browser

 No way!!!

 2010/1/16 Jiss K jiss.ka...@gmail.com

  Hi,

  I have a complete Swing application and am looking for an easy way to
  bring it on to web so that anyone can open and run the application
  through a browser.

  Does GWT has the functionality to convert the existing Swing app to
  web app or do i have to start from scratch?

  - Jiss

  --
  You received 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.

 --
 Regards,
 Alexander

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







-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com
-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Where does log4j output go?

2010-01-03 Thread Paul Grenyer
Hi

Before Christmas I switched from Vista to Ubuntu, so I've been
wondering if that what's been causing the logs to go missing (unlikely
i know), but I've just rebooted into Vista and tried it again and it
still doesn't work.

Surely someone else using Spring is seeing this too?

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

--

You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Where does log4j output go?

2009-12-31 Thread Paul Grenyer
HI

On Wed, Dec 30, 2009 at 10:08 PM, leslie web...@comcast.net wrote:
 Hi.  I'm using Log4J with GWT 2.0 also.  I'm building with Eclipse.

 Inside the properties file, log4J.properties, I've included a line
 similar to the following which directs the output to a specific
 location, a specific file:

 log4j.appender.A1.File=${user.home}/Documents/log4Joutput.txt

 Note that you will want to be sure to update this setting, in addition
 to probably changing the sensitivity of the logger (DEBUG vs ERROR)
 when you deploy to your production server.

Thanks! I'm sure that would work, but I'd really like to have the
output back in Eclipse.

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

--

You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Where does log4j output go?

2009-12-31 Thread Paul Grenyer
Hi

On Thu, Dec 31, 2009 at 2:58 PM, mirceade mirce...@gmail.com wrote:
 Hi,
 Read the log4j docs. Use a console apender.

That's what I'm using. That's what I've always used. It's stopped
working with gwt 2.0.

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

--

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




Where does log4j output go?

2009-12-29 Thread Paul Grenyer
Hi All

I know this was the topic of another thread recently, but I can't find
it in the archives, so please accept my apologies.

Where does the log4j output go in hosted mode for GWT 2.0? I seem to
get some output in the console window only if an exception is thrown.

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

--

You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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.0 port 9997 - testing two apps simultaneously

2009-12-27 Thread Paul Grenyer
Go into your project settings and tick the box labelled something like find 
available port or enter a different port for one of your apps.

--Original Message--
From: Blessed Geek
Sender: google-web-toolkit@googlegroups.com
To: Google Web Toolkit
ReplyTo: google-web-toolkit@googlegroups.com
Subject: GWT 2.0  port 9997 - testing two apps simultaneously
Sent: 27 Dec 2009 09:43

I am using GWT 2.0 on eclipse plugin.

I need to test two or more applications simultaneously in eclipse.

However, when I start the second app, the GWT Development notification
window says  ... failed to open port 9997  Should I ignore this
error msg?

How should I test two or more apps simultaneously? Is port 9997 hard-
coded as the gwt-hosted server port, so that GWT, by design, croaks
when testing more than one app simultaneously.

This question, I think, should be related to:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/a2f72461d234adba/b09860699e79de3a?lnk=gstq=9997#b09860699e79de3a

--

You received 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: Why doesn't com.google.gwt.user.client.ui.Grid have a style name?

2009-12-26 Thread Paul Grenyer
Hi

On Fri, Dec 25, 2009 at 5:34 PM, Tristan tristan.slomin...@gmail.com wrote:
 A hint may come from UiBinder. I haven't found a way to use Grid in
 UiBinder, and have to use the table instead, which is more intuitive
 in that framework. But because it is a table, the table style doesn't
 really do much for the individual table rows and table data, so
 specifying global style on table tag could be misleading and maybe
 that's why it's left null?  I'm not an expert in this, but it's a
 hunch..

Thanks for getting back to me. That does sound plausible.

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

--

You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Grid cell formatting

2009-12-26 Thread Paul Grenyer
Hi

On Fri, Dec 25, 2009 at 5:39 PM, Tristan tristan.slomin...@gmail.com wrote:
 I think you would need to create a css style like...

 .table-cell: {
  align: left;
  valign: top;
 }

 but you wold still have to iterate through each one of your cells and
 do addStyleName(table-cell) or something like that. because align
 and valign could be different for td, tr, and tbody...  so you
 just have to specify what you really mean... just a hunch (not an
 expert :) )

Right! I see. That's a shame. I was hoping to be able to drop my subclass.

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

--

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




Why doesn't com.google.gwt.user.client.ui.Grid have a style name?

2009-12-25 Thread Paul Grenyer
Hi

If i do this:

Grid g = new Grid(rows,columns);
String s1 = g.getStyleName();
String s2 = g.getStylePrimaryName();

both s1 and s2 are empty strings. This isn't true of other controls
such as TextBox, etc.

Any ideas?

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

--

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




Grid cell formatting

2009-12-25 Thread Paul Grenyer
Hi All

How can I do this:

public class Grid extends com.google.gwt.user.client.ui.Grid
{
public Grid(int rows, int columns)
{
super(rows, columns);

for(int x = 0; x  columns; ++x)
{
for(int y = 0; y  rows; ++y)
{

this.getCellFormatter().setAlignment(y,x,HasAlignment.ALIGN_LEFT,
HasAlignment.ALIGN_TOP);
}
}
}
}

in CSS? All I want to do is specify that all cells have a left
justified horizontal alignment and a top justified vertical alignment.

Thanks!

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

--

You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Why doesn't ListBox ChangeHandler handle inserts?

2009-12-22 Thread Paul Grenyer
Hi

On Tue, Dec 22, 2009 at 7:41 AM, Jim Douglas jdoug...@basis.com wrote:
 The ListBox ChangeEvent tells you that the user changed the selected
 index.  It's not fired when you change the selected index
 programmatically, and it's not fired when you change the contents of
 the list.  It's assumed that the programmer knows when he did
 something to modify the list, so it's up to you to explicitly code for
 anything that you want to have happen.

 http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/ListBox.html#setItemSelected(int,%20boolean)

 Note that setting the selection programmatically does not cause the
 ChangeHandler.onChange(ChangeEvent) event to be fired.

So what would you suggest?

1. Overriding insertItem, etc and firing a ChnageEvent (I has a quick
look and I can't see how)?
2. Overriding insertItem, etc and implementing my own change handler interface?
3. Something else?

Thanks!


-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

--

You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Why doesn't ListBox ChangeHandler handle inserts?

2009-12-22 Thread Paul Grenyer
Hi

 So what would you suggest?

 1. Overriding insertItem, etc and firing a ChnageEvent (I had a quick
 look and I can't see how)?

Did a bit more digging:

ChangeEvent.fireNativeEvent(Document.get().createChangeEvent(), this);

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

--

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




Why doesn't ListBox ChangeHandler handle inserts?

2009-12-21 Thread Paul Grenyer
Hi

I've put together the following simple example:

public void onModuleLoad()
{
final ListBox lb = new ListBox();
lb.setVisibleItemCount(5);  

lb.addChangeHandler(new ChangeHandler()
{
@Override
public void onChange(ChangeEvent event)
{
Window.alert(List box changed!);  

}   
});

final Button btn = new Button(Add);
btn.addClickHandler(new ClickHandler()
{
@Override
public void onClick(ClickEvent event)
{
lb.insertItem(new Date().toString(), -1);   

}   
});

final VerticalPanel vp = new VerticalPanel();
vp.add(lb);
vp.add(btn);

RootPanel.get().add(vp);
}

What I want to know is why isn't the ListBox change handler fired when
an item is inserted into the ListBox?

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

--

You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Why doesn't ListBox ChangeHandler handle inserts?

2009-12-21 Thread Paul Grenyer
Hi

On Tue, Dec 22, 2009 at 7:41 AM, Jim Douglas jdoug...@basis.com wrote:
 The ListBox ChangeEvent tells you that the user changed the selected
 index.  It's not fired when you change the selected index
 programmatically, and it's not fired when you change the contents of
 the list.  It's assumed that the programmer knows when he did
 something to modify the list, so it's up to you to explicitly code for
 anything that you want to have happen.

 http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/ListBox.html#setItemSelected(int,%20boolean)

 Note that setting the selection programmatically does not cause the
 ChangeHandler.onChange(ChangeEvent) event to be fired.

Thanks! That explains it.

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

--

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




Centering a grid

2009-12-21 Thread Paul Grenyer
Hi

Sorry for the second, probably simple question of the day, but how do
I center a grid on a web page? I've tried:

final Grid grid = new Grid(5,5);
grid.setStyleName(gwt-Grid);
...

and

.gwt-Grid
{
vertical-align: centre;
horizontal-align: centre;   
}

but it's just not doing what I expect.

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

--

You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Warnings on starting up GWT application JSONException could not be found in the web app

2009-12-09 Thread Paul Grenyer
It's almost certainly because some jars you're referencing in your eclipse 
project are no present in your WEB-INF lib directory.

--Original Message--
From: Chris
Sender: google-web-toolkit@googlegroups.com
To: Google Web Toolkit
ReplyTo: google-web-toolkit@googlegroups.com
Subject: Re: Warnings on starting up GWT application JSONException could not be 
found in the web app
Sent: 9 Dec 2009 18:49

No Ideas?

On Dec 8, 9:15 pm, Chris christopher.burr...@gmail.com wrote:
 Hi All

 When I start up my GWT application using the hosted server/browser,
 part way through the loading of things, I get the following message:

 [WARN] Server class 'com.google.gwt.json.client.JSONException' could
 not be found in the web app, but was found on the system classpath
 [WARN] Adding classpath entry 'file:/C:/eclipse/plugins/
 com.google.gwt.eclipse.sdkbundle.win32_1.7.0.v200907131030/gwt-
 windows-1.7.0/gwt-user.jar' to the web app classpath for this session
 More info: file:/C:/eclipse/plugins/
 com.google.gwt.eclipse.sdkbundle.win32_1.7.0.v200907131030/gwt-
 windows-1.7.0/doc/helpInfo/webAppClassPath.html

 So I had a look at the last HTML file. But I'm confused, cos before
 adding GXT, I wasn't getting this, but now I am (I think it's
 related). I've tried adding the following line to my .gwt.xml file:
 inherits name='com.google.gwt.json.JSON'/ but it hasn't cured the
 problem...

 Is the solution really to add the mentioned jar file to my web-inf
 directory? Shouldn't this jar be picked up when I compile/launch the
 GWT application? The jar is included in my GWT SDK section in Eclipse.

 Thanks
 Chris

--

You received 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: GWT 2.0.0rc2 ::: Unknown argument: -portHosted

2009-11-28 Thread Paul Grenyer
Hi

I've just done a completely fresh Eclipse and GWT 2.0 RC2 install
including the new plugin:

1.Extracted eclipse-java-galileo-SR1-win32.zip to C:\Program Files (x86).

2.Ran Eclipse, set up a new workspace workspace at
C:\Users\Paul\Documents\Sandbox\EclipseWorkspace and selected “Use
this as the default and do not ask again.”

3.Then installed Eclipse's Web Standard Tools (WST)

- Help-Install new software.
- Manually added the update url as none was present:
http://download.eclipse.org/releases/galileo/
- Then Web, XML, and Java EE Development - Eclipse Web Developer Tools
- Restarted Eclipse and then closed it.

4.Then copied gpe-e35-1.2rc1.zip\eclipse\features to C:\Program Files
(x86)\eclipse.

5.Then copied gpe-e35-1.2rc1.zip\eclipse\plugins to C:\Program Files
(x86)\eclipse\plugins

6.Then copied the contents of gwt-2.0.0-rc2.zip to
gpe-e35-1.2rc1.zip\eclipse\plugins

7.Started Eclipse again and used the plugin to create a new project.

- Started the wizard.
- Configured the GWT SDK as C:\Program Files (x86)\eclipse\plugins\gwt-2.0.0-rc2
- Unticked “Use Google App Engine”
- Entered project name etc and clicked finish.

8.Then opened the “Web Application” Run Configuration for the project
and ticked “Automatically select unused port” and clicked Run.

And I get the same error:

Unknown argument: -portHosted
Google Web Toolkit 2.0.0-rc2
DevMode [-noserver] [-port port-number | auto] [-whitelist
whitelist-string] [-blacklist blacklist-string] [-logdir directory]
[-logLevel level] [-gen dir] [-codeServerPort port-number | auto]
[-server servletContainerLauncher] [-startupUrl url] [-war dir]
[-extra dir] [-workDir dir] module[s]

where
  -noserverPrevents the embedded web server from running
  -portSpecifies the TCP port for the embedded web server
(defaults to )
  -whitelist   Allows the user to browse URLs that match the
specified regexes (comma or space separated)
  -blacklist   Prevents the user browsing URLs that match the
specified regexes (comma or space separated)
  -logdir  Logs to a file in the given directory, as well as graphically
  -logLevelThe level of logging detail: ERROR, WARN, INFO,
TRACE, DEBUG, SPAM, or ALL
  -gen Debugging: causes normally-transient generated
types to be saved in the specified directory
  -codeServerPort  Specifies the TCP port for the code server (defaults to 9997)
  -server  Specify a different embedded web server to run
(must implement ServletContainerLauncher)
  -startupUrl  Automatically launches the specified URL
  -war The directory into which deployable output files
will be written (defaults to 'war')
  -extra   The directory into which extra files, not intended
for deployment, will be written
  -workDir The compiler's working directory for internal use
(must be writeable; defaults to a system temp dir)
and
  module[s]Specifies the name(s) of the module(s) to host

I assume I must be doing something wrong in my install? Having to
manually copy the SDK took me rather by surprise. I guess its kind of
implicit here, http://code.google.com/p/google-web-toolkit/wiki/GWT_2_0_RC,
but an explicit instruction would have been helpful.

 I'm running Vista Business if that makes any difference?

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

--

You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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.0.0rc2 ::: Unknown argument: -portHosted

2009-11-28 Thread Paul Grenyer
Hi All

I should really know by now, that the Internet is a wonderful, wonderful thing!

On the page I quoted:

http://code.google.com/p/google-web-toolkit/wiki/GWT_2_0_RC

there is a comment, currently second from bottom, on November 23rd by
a.revolution.ultra.blue, which states, in response to another
comment that has the same problem the people in this tread are having:

--BEGIN---
YES! You CANNOT use the google g-icon web app run menu, you need a
plain jane java application runner, with main class
com.google.gwt.dev.DevMode??

Make sure you have the usual program arguments for a gwt project; mine
are: -port  -startupUrl / ai.yx.xSeed

I have / set to a welcome servlet in web.xml, and my gwt project is ai.yx.xSeed

If you want to use appengine, you will also need to add the program
arguments and vm arguments I mentioned in the post above. ALSO, if you
do NOT use appengine, leave the working directory at default. If you
DO use appengine, add /war to whatever your default directory is... My
project xBook uses ${workspace_loc:xBook}/war

If you absolutely can't get it to go, just download ms2 from the
deprecated dl page, and you can go ahead and use the old google-plugin
launch configuration.
--ENG--

So, I am now a little further. I have a Java Application Run
Configuration that uses com.google.gwt.dev.DevMode as the Main class
and has the arguments: -port  Gwt2RC2 (my project is called
Gwt2RC2).

However, i still have a problem when I run it:

[ERROR] Unable to find 'Gwt2RC2.gwt.xml' on your classpath; could be a
typo, or maybe you forgot to include a classpath entry for source?

I've tried fiddling with the classpath and source settings of the Run
Configuration, but so far nothing's worked. Does anyone know what I'm
doing wrong?


-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

--

You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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.0.0rc2 ::: Unknown argument: -portHosted

2009-11-28 Thread Paul Grenyer
Hi

Hi

I've got a bit further

 So, I am now a little further. I have a Java Application Run
 Configuration that uses com.google.gwt.dev.DevMode as the Main class
 and has the arguments: -port  Gwt2RC2 (my project is called
 Gwt2RC2).

 However, i still have a problem when I run it:

 [ERROR] Unable to find 'Gwt2RC2.gwt.xml' on your classpath; could be a
 typo, or maybe you forgot to include a classpath entry for source?

I needed to fully qualify my module name, so I now have:

-port  uk.co.marauder.gwt2rc2.Gwt2RC2

and I can start the server and get the HTML part of the web page up,
however I get an error on the Gwt2RC2 (FF) tab of the GWT Development
Module:

[TRACE] Finding entry point classes
[ERROR] Unable to find type 'uk.co.marauder.gwt2rc2.client.Gwt2RC2'
[ERROR] Hint: Check that the type name
'uk.co.marauder.gwt2rc2.client.Gwt2RC2' is really what you meant
[ERROR] Hint: Check that your classpath includes all required source roots
[ERROR] Failed to load module 'gwt2rc2' from user agent 'Mozilla/5.0
(Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.15) Gecko/2009101601
Firefox/3.0.15 (.NET CLR 3.5.30729)' at Paul-Desktop:50949

I've tried adding war\WEB-INF\classes to my Run Configuration class
path, but that hasn't worked.

Any ideas?

Sorry for the iterative approach this morning, but I expected to be
stuck at each hurdle.

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

--

You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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.0.0rc2 ::: Unknown argument: -portHosted

2009-11-28 Thread Paul Grenyer
Hi Thomas

 5.Then copied gpe-e35-1.2rc1.zip\eclipse\plugins to C:\Program Files
 (x86)\eclipse\plugins

 1) Why are you using 1.2rc1? it won't work with GWT 2.0.0 RC2 wrt the -
 portHosted vs. -codeServerPort naming change.

There you go. I was obviously suffering brain fade and really not
paying attention. Thank you for pointing that out.

 2) Why not just unzip it in C:\Program Files (x86)\eclipse\dropins as
 you're told to do?

Go easy! :-)

...because the first time i tried it, it didn't work.

Seems to work perfectly now. It may well have been due to me having
the wrong plugin.

 6.Then copied the contents of gwt-2.0.0-rc2.zip to
 gpe-e35-1.2rc1.zip\eclipse\plugins

 Why are you putting it within your eclipse install?

Was fighting int he dark. I'm no eclipse expert and that's where it
seemed to be in the previous plugin. I've now moved it.

 See above: you have to use the RC2 version of the plugin with the RC2
 version of GWT.

Thanks! :-)

All workign now. Thanks!

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

--

You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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.0.0rc2 ::: Unknown argument: -portHosted

2009-11-27 Thread Paul Grenyer
Hi

Me too. I had the same problem last night.

Paul

On Fri, Nov 27, 2009 at 12:35 PM, Šobis matej.poklu...@gmail.com wrote:
 I have similar problem. I made new web project and - I'm using GWT 2.0
 rc2.

 When I try to start, this is what I get in console:
 Unknown argument: -style
 Google Web Toolkit 2.0.0-rc2
 DevMode [-noserver] [-port port-number | auto] [-whitelist whitelist-
 string] [-blacklist blacklist-string] [-logdir directory] [-logLevel
 level] [-gen dir] [-codeServerPort port-number | auto] [-server
 servletContainerLauncher] [-startupUrl url] [-war dir] [-extra dir] [-
 workDir dir] module[s]

 where
  -noserver        Prevents the embedded web server from running
  -port            Specifies the TCP port for the embedded web server
 (defaults to )
  -whitelist       Allows the user to browse URLs that match the
 specified regexes (comma or space separated)
  -blacklist       Prevents the user browsing URLs that match the
 specified regexes (comma or space separated)
  -logdir          Logs to a file in the given directory, as well as
 graphically
  -logLevel        The level of logging detail: ERROR, WARN, INFO,
 TRACE, DEBUG, SPAM, or ALL
  -gen             Debugging: causes normally-transient generated
 types to be saved in the specified directory
  -codeServerPort  Specifies the TCP port for the code server
 (defaults to 9997)
  -server          Specify a different embedded web server to run
 (must implement ServletContainerLauncher)
  -startupUrl      Automatically launches the specified URL
  -war             The directory into which deployable output files
 will be written (defaults to 'war')
  -extra           The directory into which extra files, not intended
 for deployment, will be written
  -workDir         The compiler's working directory for internal use
 (must be writeable; defaults to a system temp dir)
 and
  module[s]        Specifies the name(s) of the module(s) to host


 What is wrong - what should I change? I have latest Eclipse plugin...

 Thanks for answers.



 On 26 nov., 11:54, Prashant antsh...@gmail.com wrote:
 it worked ! 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.






-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

--

You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Spring MVC vs ExtGWT(GXT) MVC ?

2009-11-01 Thread Paul Grenyer

We use Spring MVC together with GWT  GXT.

--Original Message--
From: webus
Sender: google-web-toolkit@googlegroups.com
To: Google Web Toolkit
ReplyTo: google-web-toolkit@googlegroups.com
Subject: Spring MVC vs ExtGWT(GXT) MVC ?
Sent: 1 Nov 2009 13:00


Which framework is more convenient and quick to learn? Who had
experience working with both frameworks? p.s. if possible with
examples.



Sent from my Archimedes A3000

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



Re: Spring MVC vs ExtGWT(GXT) MVC ?

2009-11-01 Thread Paul Grenyer
GXT MVC is all client side and different from spring MVC. In the Java world MVC 
does not seem to be well understood outside client/server web applications. 
Look at the code examples. It's all there.


Sent from my Archimedes A3000

-Original Message-
From: webus webus...@gmail.com
Date: Sun, 1 Nov 2009 11:45:56 
To: Google Web Toolkitgoogle-web-toolkit@googlegroups.com
Subject: Re: Spring MVC vs ExtGWT(GXT) MVC ?


The problem is that there is no good documentation on GXT MVC. I would
be glad to use it.

On Nov 1, 8:19 pm, Harmeet Bedi harmeet.b...@gmail.com wrote:
 IMO these are 2 separate things.
 Spring is MVC on server side and GXT is on client side.

 A path be to use Spring for providing model(M) from server side. Spring gives 
 a lot dependency injection, lifecycle, transactions, db mapping etc.
 Use GXT on client side to do control and rendering(VC).

 Harmeet



 - Original Message -
 From: webus webus...@gmail.com
 To: Google Web Toolkit google-web-toolkit@googlegroups.com
 Sent: Sunday, November 1, 2009 8:00:08 AM GMT -05:00 US/Canada Eastern
 Subject: Spring MVC vs ExtGWT(GXT) MVC ?

 Which framework is more convenient and quick to learn? Who had
 experience working with both frameworks? p.s. if possible with
 examples.


--~--~-~--~~~---~--~~
You received 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: Join .Net Community

2009-10-20 Thread Paul Grenyer
Well said!

Sent from my Archimedes A3000

-Original Message-
From: Jim jim.p...@gmail.com
Date: Tue, 20 Oct 2009 04:38:18 
To: Google Web Toolkitgoogle-web-toolkit@googlegroups.com
Subject: Re: Join .Net Community


Welcome you to join this Java group.

On Oct 20, 6:28 am, Shawon_ pipa...@gmail.com wrote:
 Join .Net Community

 This group represents the Microsoft .Net community. All .net
 programmers all around the world are welcome here. In this group
 you'll find the latest releases of .Net related products, frameworks,
 Upgradation, technologies, IDEs etc. You also can share your
 experiences and problems you are facing. You can discuses about
 C#.Net, VB.net, ASP.Net and .Net frameworks, .net in other operating
 system etc. topics.

 http://www.dotnetcommunity.tk


--~--~-~--~~~---~--~~
You received 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: Installed GWT Plugin into Eclipse 3.5 Galileo and cannot find wizard

2009-09-13 Thread Paul Grenyer

Hi

 Decided I wanted to see how the new plugin worked so I installed it
 into Galileo, followed all the install instructions, restarted
 everything, but I cannot find the wizard or the icon

 Any suggestions?

I've been having a similar problem I still haven't got to the bottom
off. Have you also got subclipse installed? They don't seem to work
together very well.



-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

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



Re: Installed GWT Plugin into Eclipse 3.5 Galileo and cannot find wizard

2009-09-13 Thread Paul Grenyer

Hi

 I use subclipse all the time w/ GWT plugin. They seem to co-exist.

Yes, it works for a colleague of mine in the office, but not for me.

 Even under the Other  Google  Web Application Project you don't get a
 Wizard?

Will have to try that.


-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

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



Re: Is it possible to develop desktop applications using GWT?

2009-09-09 Thread Paul Grenyer

Hi

 I'm sorry for this newby question, but I'm new to GWT.
 Thanks for your help.

Why would you want to? That's what swing is for.


-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

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



Forwarding to TomCat

2009-09-03 Thread Paul Grenyer

Hi All

This may be entirely the wrong place to ask this question, but I'm
hoping someone here has done something similar. If anyone objects to
this I am more than prepared to desist.

What I want to do is this:

1. Host Apache or IIS on an externally facing server and have it serve
static things like images and (GWT) JavaScript.
2. have IIS/Apache forward requests for HTML pages (which are served
up via Spring MVC on TomCat), RPC calls and webservice requests to
TomCat on an internal machine (presumably through a firewall with the
appropriate port open).

This will give me a number of things:

1. Better security
2. Move the serving of the big stuff from TomCat to Apache/IIS

Any help greatly appreciated.

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

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



Re: @SuppressWarnings(serial)

2009-09-03 Thread Paul Grenyer

Hi

On Thu, Sep 3, 2009 at 7:32 PM, Andyantonvonpil...@gmail.com wrote:

 Cheers.

 Yeah, I've done that, but I was just wondering if there was a reason
 that the GWT team were suppressing it (other than to have the initial
 project be created with any warnings)?

Have a look at the code in more detail. You'll see that it implements
an interface that has to be serializble. The server side class doesn't
need to be serializable so the warning is suppressed.

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

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



Re: @SuppressWarnings(serial)

2009-09-03 Thread Paul Grenyer

Hi

 Don't the Servlets need to have a serial version ID in case the server
 decides to passivate them?

I'm afraid I have no idea what you mean here

 ...or would that imply that the Servlets have 'state' (which shouldn't
 be the case).

Servlets don't have state outside of the http session.

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

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



Re: @SuppressWarnings(serial)

2009-09-03 Thread Paul Grenyer

Hi

 As there are far better ways of doing that sort of thing, I guess that
 Servlets should be stateless and therefore don't need to be
 Serializable. However, as they have to implement the Serializable
 interface, suppressing the warnings is neater than generating IDs all
 the time.

You've got it.

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

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



Re: Eclipse 3.5 and GWT Plugin

2009-08-20 Thread Paul Grenyer

Hi

 That's not good at all. Can you check out your error log and see if you
 notice any problems? To see your error log, go to Window - Show View -
 Error Log.

Sure. I've reverted to 3.4, but i'll give 3.5 another go.

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
w: http://www.marauder-consulting.co.uk
b: paulgrenyer.blogspot.com

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



Eclipse 3.5 and GWT Plugin

2009-08-19 Thread Paul Grenyer

Hi All

I've taken the plunge and upgraded to Eclipse 3.5 with the latest
version of the plugin.

However, when I install it (from the update site) I loose my previous
plugins (subclipse, IvyDE, etc) and there's no sign of the GWT plugin
either, although all of my plugins, including GWT, are still listed as
installed.

What gives? :-)

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
w: http://www.marauder-consulting.co.uk
b: paulgrenyer.blogspot.com

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



Re: Where is the server log ?

2009-08-16 Thread Paul Grenyer
If you're running in hosted mode they should be written to the eclipse console. 
Have you got it open!

Sent from my Archimedes A3000

-Original Message-
From: tolga ozdemir tka...@gmail.com

Date: Sun, 16 Aug 2009 09:13:46 
To: Google Web ToolkitGoogle-Web-Toolkit@googlegroups.com
Subject: Where is the server log ?



Hi,

I use GWT 1.7 and eclipse on Windows XP.. As a sample, I use a
hibernate project.. I have a function with signature ListEntry
listEntries();

When I run the project I got this error

com.google.gwt.user.client.rpc.StatusCodeException: The call failed on
the server; see server log for details
at
com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived


So, where is this server log file located on my computer? Do you have
any idea??




--~--~-~--~~~---~--~~
You received 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: com.google.gwt.user.client.rpc.StatusCodeException

2009-08-16 Thread Paul Grenyer
I told you where to find the log...

Sent from my Archimedes A3000

-Original Message-
From: tolga ozdemir tka...@gmail.com

Date: Sun, 16 Aug 2009 11:57:59 
To: Google Web ToolkitGoogle-Web-Toolkit@googlegroups.com
Subject: com.google.gwt.user.client.rpc.StatusCodeException



Anyone has a solution for this error?

Hibernate: select id, entry from tblentry
com.google.gwt.user.client.rpc.StatusCodeException: The call failed on
the server; see server log for details
at
com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived
(RequestCallbackAdapter.java:192)
at com.google.gwt.http.client.Request.fireOnResponseReceivedImpl
(Request.java:264)
at com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch
(Request.java:236)
at com.google.gwt.http.client.Request.fireOnResponseReceived
(Request.java:227)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
103)
at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod
(IDispatchImpl.java:126)
at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke
(IDispatchProxy.java:155)
at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke
(IDispatchImpl.java:294)
at com.google.gwt.dev.shell.ie.IDispatchImpl.method6
(IDispatchImpl.java:194)
at org.eclipse.swt.internal.ole.win32.COMObject.callback6
(COMObject.java:117)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
at com.google.gwt.dev.SwtHostedModeBase.processEvents
(SwtHostedModeBase.java:235)
at com.google.gwt.dev.HostedModeBase.pumpEventLoop
(HostedModeBase.java:558)
at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405)
at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)



--~--~-~--~~~---~--~~
You received 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: Invoking Web Services

2009-08-12 Thread Paul Grenyer

Hi

Make an RPC and the do it the Java way on the server.

Paul
--Original Message--
From: gerardc
Sender: Google-Web-Toolkit@googlegroups.com
To: Google Web Toolkit
ReplyTo: Google-Web-Toolkit@googlegroups.com
Subject: Invoking Web Services
Sent: 12 Aug 2009 06:13


I'm trying to figure out how to make Web Service calls from GWT.
Anyone have any ideas or can point me in the right direction?  Thanks.

Gerard




Sent from my Archimedes A3000

--~--~-~--~~~---~--~~
You received 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 split a large application?

2009-08-10 Thread Paul Grenyer

Hi

 2. Can you please give me some more information about how you enabled
 the communication between the applications. I can imagine a global
 JavaScript object that registers and informs listeners of application
 events.

If you get that working can you let us all know, please? We've had a
lot of trouble with this.

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
w: http://www.marauder-consulting.co.uk
b: paulgrenyer.blogspot.com

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



Re: Server Root Directory

2009-08-10 Thread Paul Grenyer

Hi

 in my initial client-server application I want to read a file, lets
 say 'index.txt', which I then want to pass to the client as string.
 Everything seems to be fine, however I get a file exception. So my
 question is, what is the server root directory at run-time? I tried
 several locations below 'war' but none of them helped.

 So can you tell me the path where 'index.txt' has to be installed,
 please?

You should be able to get it form the ServletContext.

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
w: http://www.marauder-consulting.co.uk
b: paulgrenyer.blogspot.com

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



Re: Offline GWT Applications

2009-08-07 Thread Paul Grenyer

Hi

This is a complete guess with little to back it up, but is there some XML 
generated somewhere as part of the RPC call that is validated against a schema 
on the 'net?

Paul

Sent from my Archimedes A3000

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



The following classpath entry '...' will not be available on the server's classpath

2009-07-30 Thread Paul Grenyer

HI All

How do I turn off the above warning? I can go through each one and
tell eclipse to ignore it, but that's a real ball ache and has to be
done every time the project is checked out.

Thanks!

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
w: http://www.marauder-consulting.co.uk
b: paulgrenyer.blogspot.com

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



Re: The following classpath entry '...' will not be available on the server's classpath

2009-07-30 Thread Paul Grenyer

HI

2009/7/30 Miguel Méndez mmen...@google.com:
 If you want to use the libraries on the server, then they should be in
 WEB-INF/lib.

Yeah, I don't. These ones are just for testing.

 The warning has a quick fix that will do that for you.
 If you really don't want these on the server then you can add the .settings
 folder to your version control system once you have excluded them.

Yeah, I don't fancy that much, especially as the projects are shared.

 We've discussed having an errors/warnings configuration page like the one
 for the Java compiler.  This seems like another reason to do so.

That would be perfect. Is there a feature request I can create or add
weight too?

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
w: http://www.marauder-consulting.co.uk
b: paulgrenyer.blogspot.com

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



Re: The following classpath entry '...' will not be available on the server's classpath

2009-07-30 Thread Paul Grenyer

Hi

  The warning has a quick fix that will do that for you.
  If you really don't want these on the server then you can add the
  .settings
  folder to your version control system once you have excluded them.

 Yeah, I don't fancy that much, especially as the projects are shared.

 Unfortunately, this is your best bet for now.

:-(

 That would be perfect. Is there a feature request I can create or add
 weight too?

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

Done!

  Additionally, we should have a quick fix that resolves all of the warnings
 at once.

That would be a good step in the right direction.


-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
w: http://www.marauder-consulting.co.uk
b: paulgrenyer.blogspot.com

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



Re: How to persist data

2009-07-19 Thread Paul Grenyer
Singletons are evil.

Sent from my Archimedes A3000

-Original Message-
From: Jeff Chimene jchim...@gmail.com

Date: Sun, 19 Jul 2009 12:15:35 
To: Google-Web-Toolkit@googlegroups.com
Subject: Re: How to persist data



On 07/19/2009 11:37 AM, Pham Tran Quoc Viet wrote:
 Hi,
 I have a config.xml file that contains stuffs like domain name,
 username, password, connection string. This file is loaded into a
 signleton when the web application first contacts the server. How do I
 persist the signleton so that the app does not have to reread the xml
 file in the next request?
 
 Thanks.

Google for java singleton. Most of the answers you get from that
request will be applicable to GWT.



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

2009-07-06 Thread Paul Grenyer

Hi

 I'm working on a web application using Google Web Toolkit (GWT). This
 application should have some mailing functionality. Therefore I have
 decided to use Java Mail API.

 I start by importing the Java Mail API to my bulid path. The file is
 called mail.jar.

 Then I import the mail package into the class by using the import
 statement (import javax.mail).

 Then a problem occurs if I test the application in hosted mode. I get
 the following error message:

 [No source code is available for type javax.mail.Session; did you
 forget to inherit a required module?]

 After a bit of research I figured out that I have to inherit another
 module into by modifying the XML file. The problem is simply that I
 can't figure out how to name the module correct.

 Is there someone who can help in order to solve the issue.

Your email suggestes that you're trying to send email fromt eh client
side, is that right? I don't beleive GWT can do this, so you'll need
to make an RPC call to ther server...

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
w: http://www.marauder-consulting.co.uk
b: paulgrenyer.blogspot.com

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



Re: Portal with Dynamic Menus and Views

2009-06-23 Thread Paul Grenyer

Hi Dave

Thank you very much for your response.

 I have a similar situation for my project.  What I do is make the
 first async call from onModuleLoad() do something like
 'getPortalAttributes'.  This returns to me info from the server like:
 is the user logged in; is the application in development mode; if the
 user is logged in, what are their permissions.  From there I generate
 menus based on the user's permissions, and configure things like the
 GWT.UncaughtExceptionHandler.  Of course, your application shouldn't
 trust any permissions logic that is applied on the client, but
 determining what menus to show is harmless for me.

That makes sense, but I think I'd prefer not to have that logic in the
front end.

 A different approach is to return the menu structure from the server
 based on a users permissions.

This is more interesting! What would you actually pass back? An XML
structure from which to build the menu? How would you then hook it
into method calls or events to the controller?

--
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
w: http://www.marauder-consulting.co.uk
b: paulgrenyer.blogspot.com

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



Portal with Dynamic Menus and Views

2009-06-22 Thread Paul Grenyer

Hi All

My company are working on an enterprise application with GWT, Spring
and Hibernate. We've successfully integrated Spring Security, Spring
MVC and GWT, but we want to display menus and associated views based
on role and are wondering the best way to do this.

To give an example of what I mean, if a normal user logs in they're
presented with the user's menu in the left hand panel. If an
administrator logs in they're presented with the user's menu and the
administrator's menu. We could of course make an RPC call after the
user (or administrator) logs in and only display the relevant menus
based on logic in the GWT code, but we'd prefer to move the logic and
the code for that to the server side. Is there a way?

Something else we'd like to do is have optional, at deploy time, menus
and views. Is there a way we can plugin such things?
-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
w: http://www.marauder-consulting.co.uk
b: paulgrenyer.blogspot.com

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



Fwd: Portal with Dynamic Menus and Views

2009-06-22 Thread Paul Grenyer

Is anyone else getting this when they post


-- Forwarded message --
From:  postmas...@boxbe.com
Date: Mon, Jun 22, 2009 at 8:11 PM
Subject: Re: Portal with Dynamic Menus and Views
To: Paul Grenyer paul.gren...@gmail.com


Hello Paul Grenyer,

I've received your message entitled Portal with Dynamic Menus and
Views. I wanted to let you know that I've added you to my Boxbe Guest
List.

This is the only email you will receive about Boxbe from me and there
is no need to respond.

Learn more about Boxbe.

Thank you,
vedahotl...@gmail.com

About this Notice
This courtesy notice is part of a free service to make email more
reliable and useful. Boxbe (www.boxbe.com) uses your existing social
network and that of your friends to keep your inbox clean and make
sure you receive email from people who matter to you.

Say Goodbye to Email Overload
www.boxbe.com

Final-Recipient: rfc822; vedahotl...@gmail.com
Diagnostic-Code: X-Boxbe-Notice; Sender not pre-approved, delivery
likely delayed.  Follow instructions in above notice
Status: 4.7.0



-- Forwarded message --
From: Paul Grenyer paul.gren...@gmail.com
To: google-web-tool...@googlegroups.com
Date: Mon, 22 Jun 2009 20:11:09 +0100
Subject: Portal with Dynamic Menus and Views




-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
w: http://www.marauder-consulting.co.uk
b: paulgrenyer.blogspot.com

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



Re: function reference

2009-06-09 Thread Paul Grenyer
Looks like an ideal place for an interface to me.

Sent from my Archimedes A3000

-Original Message-
From: kevin.d...@googlemail.com kevin.d...@googlemail.com

Date: Tue, 9 Jun 2009 12:46:52 
To: Google Web ToolkitGoogle-Web-Toolkit@googlegroups.com
Subject: function reference



hello,

I search a solution for save a function/method reference for a later
callback?

par example in javascript:

var method = methodname;
method.call (); // callback

in pure java I use thejava.lang.reflect.Method class.

how can I realize this in GWT?

greets
Kevin



--~--~-~--~~~---~--~~
You received 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: Returning to Java after a long lapse and starting with GWT. Any recommended books that cover both?

2009-05-31 Thread Paul Grenyer
Don't forget Java 6.

Sent from my BlackBerry® wireless device

-Original Message-
From: rjcarr rjc...@gmail.com

Date: Sun, 31 May 2009 02:12:17 
To: Google Web ToolkitGoogle-Web-Toolkit@googlegroups.com
Subject: Re: Returning to Java after a long lapse and starting with GWT. Any  
recommended books that cover both?



You could probably learn as you go but you might get frustrated
quickly as java has added quite a few features since your last use.

I'd read a what's new to java 1.4 and then a what's new to java 1.5
and then read over the gwt getting started guides and a few other
examples and you should be fine, assuming you're an otherwise
competent programmer.

On May 30, 11:50 am, paw shalo...@gmail.com wrote:
 I've read a few posts with recommended books for GWT, but I haven't
 touched Java since around 1996.  Should I study up on Java before
 learning GWT or do any of the GWT books cover enough Java to learn as
 I go?

 Thanks for any help and suggestions.


--~--~-~--~~~---~--~~
You received 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 use java.lang.Thread in GWT

2009-05-28 Thread Paul Grenyer
Sounds like you need a timer. Can you not make both calls on the server side?

Sent from my BlackBerry® wireless device

-Original Message-
From: Adil BENHAMID enst.de.breta...@gmail.com

Date: Thu, 28 May 2009 17:03:35 
To: Google-Web-Toolkit@googlegroups.com
Subject: Re: How to use java.lang.Thread in GWT


I would like to to make a temporization between two calls.

2009/5/28 Jason Essington jason.essing...@gmail.com


 Thread is not part of java that is emulated in GWT. Javascript is
 single threaded so thread.sleep() has no meaning, you might as well do
 while(true);  (I don't actually suggest doing that)

 What is it that you are trying to accomplish with Thread.sleep()?

 -jason

 On May 28, 2009, at 10:37 AM, Adil Ben wrote:

 
  Hello,
 
  I need to call the method Thread.sleep() in my GWT code. But GWT does
  not integrate this class.
  How to solve this?
 
  i get the following error
  No source code is available for type java.lang.Thread; did you
  forget to inherit a required module?
 
  Regards.
 
  


 



-- 
¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°
Adil BENHAMID
º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø




--~--~-~--~~~---~--~~
You received 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 use java.lang.Thread in GWT

2009-05-28 Thread Paul Grenyer
Sounds like a timer to me.

Sent from my BlackBerry® wireless device

-Original Message-
From: Adil BENHAMID enst.de.breta...@gmail.com

Date: Thu, 28 May 2009 17:05:46 
To: Google-Web-Toolkit@googlegroups.com
Subject: Re: How to use java.lang.Thread in GWT


as an example I want to display a button then wait two seconds before
displaying the next one.

2009/5/28 Adil BENHAMID enst.de.breta...@gmail.com

 I would like to to make a temporization between two calls.

 2009/5/28 Jason Essington jason.essing...@gmail.com


 Thread is not part of java that is emulated in GWT. Javascript is
 single threaded so thread.sleep() has no meaning, you might as well do
 while(true);  (I don't actually suggest doing that)

 What is it that you are trying to accomplish with Thread.sleep()?

 -jason

 On May 28, 2009, at 10:37 AM, Adil Ben wrote:

 
  Hello,
 
  I need to call the method Thread.sleep() in my GWT code. But GWT does
  not integrate this class.
  How to solve this?
 
  i get the following error
  No source code is available for type java.lang.Thread; did you
  forget to inherit a required module?
 
  Regards.
 
  


 



 --
 ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°
 Adil BENHAMID
 º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø




-- 
¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°
Adil BENHAMID
º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø




--~--~-~--~~~---~--~~
You received 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 and Hibernate XML files vs Annotations

2009-05-20 Thread Paul Grenyer

Hi

 If you find Hibernate is difficult to use, you may try Dreamsource ORM
 for your application. You can find an GWT example in
 http://www.gwtorm.com/mail/Mail.html.

Is anyone else getting a little sick of this constant gratuitous
on-list plugging?


-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
w: http://www.marauder-consulting.co.uk
b: paulgrenyer.blogspot.com

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



Re: Exception Handling

2009-05-12 Thread Paul Grenyer
IIRC GWT doesn't like serializing Object. You need to use something more 
specific.

Sent from my BlackBerry® wireless device

-Original Message-
From: abbu minhaj.mis...@gmail.com

Date: Mon, 11 May 2009 23:06:20 
To: Google Web ToolkitGoogle-Web-Toolkit@googlegroups.com
Subject: Exception Handling



Hi everybody,
I have a custom exception class which extends Exception. But im not
able to use it in my entry point class. on the load itself its
throwing an error saying sub types are not serializable which is not
so. can anybody help me regarding this?

This is my custom ApplicationException class:

package com.cts.swiss.gwt.server.common.exception;

public class ApplicationException extends Exception {
private String errorMessage;
private Throwable throwable;
private Object[] messageParams;

public ApplicationException(String errorMessage, Object[] params){
super(errorMessage);
this.errorMessage=errorMessage;
this.messageParams=params;
}
public ApplicationException(String errorMessage, Object[]
params,Throwable throwable){
super(errorMessage,throwable);
this.errorMessage=errorMessage;
this.messageParams=params;
this.throwable=throwable;
}
/**
 * @return the errorMessage
 */
public String getErrorMessage() {
return errorMessage;
}

/**
 * @return the throwable
 */
public Throwable getThrowable() {
return throwable;
}

/**
 * @return the messageParams
 */
public Object[] getMessageParams() {
return messageParams;
}

}





--~--~-~--~~~---~--~~
You received 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, hibernate4gwt and HibernateTemplate

2009-05-11 Thread Paul Grenyer

Hi

 Any clues how you configured GWT with Gilead lib to support hibernate
 lazy loading.

 I am going through all examples but seems they use Spring.

 Simple examples are always good. :)

It's not me you need to ask

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
w: http://www.marauder-consulting.co.uk
b: paulgrenyer.blogspot.com

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



Re: GWT, hibernate4gwt and HibernateTemplate

2009-05-09 Thread Paul Grenyer

Hi

 First, Hibernate4GWT has been renamed 6 month ago and is now known as
 Gilead library (http://gilead.sourceforge.net).
 Furthermore, it is known to work with various Spring modules (IoC,
 Security, etc...), so it should work.
 If it does not, or if you have any question about Gilead, please use
 the project forum.

I have done. No response. :-(

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
w: http://www.marauder-consulting.co.uk
b: paulgrenyer.blogspot.com

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



Re: GWT, hibernate4gwt and HibernateTemplate

2009-05-09 Thread Paul Grenyer
Hi

Lol! It was yesterday morning. ;-)

I can wait! :-d

Thanks
Paul

Sent from my BlackBerry® wireless device

-Original Message-
From: noon bruno.marches...@gmail.com

Date: Sat, 9 May 2009 12:39:39 
To: Google Web ToolkitGoogle-Web-Toolkit@googlegroups.com
Subject: Re: GWT, hibernate4gwt and HibernateTemplate



Come on guy, that's week-end ;-)
I will reply to you before monday !

Regards
Bruno
On 9 mai, 20:37, Paul Grenyer paul.gren...@gmail.com wrote:
 Hi

  First, Hibernate4GWT has been renamed 6 month ago and is now known as
  Gilead library (http://gilead.sourceforge.net).
  Furthermore, it is known to work with various Spring modules (IoC,
  Security, etc...), so it should work.
  If it does not, or if you have any question about Gilead, please use
  the project forum.

 I have done. No response. :-(

 --
 Thanks
 Paul

 Paul Grenyer
 e: paul.gren...@gmail.com
 w:http://www.marauder-consulting.co.uk
 b: paulgrenyer.blogspot.com


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



Re: RPC Issues - Lifespan of Data from a RPC

2009-05-08 Thread Paul Grenyer
You're right. You could use spring or persist you data to a file or database 
between calls.

Sent from my BlackBerry® wireless device

-Original Message-
From: JohnofLong johnlonganec...@gmail.com

Date: Fri, 8 May 2009 13:46:01 
To: Google Web ToolkitGoogle-Web-Toolkit@googlegroups.com
Subject: RPC Issues - Lifespan of Data from a RPC



I tried to find this topic already on the discussions but could not
find it.

Currently using  GWT 1.5.3

I am making a RPC to call to read XML and call a function that loads
the data into an ArrayList of classes. I have made a class that
implements RequestCallback(LoadData) and takes in my mainClass
example:

LoadData loadData = new LoadData(this);
String url = xmlString;
RequestBuilder requestBuilder = new RequestBuilder
(RequestBuilder.GET, url);
try {
  requestBuilder.sendRequest(null, loadData);
} catch (RequestException ex) {
//Window.alert(exception);
}

Inside the RPC class:

mainClass.addProducts(id, sku, name, catagory) ;

inside my main class:
public addProducts(int id, int sku, String name, String catagory) {
productArrayList.add(new product(id, sku, name, catagory);
}

But when I call a method on my productArray it just says index out of
bound (basically the arrayList is empty) but I know it is calling the
addProduct method

I am guessing the lifespan of the data is tied to the lifespan of the
RPC call.

What sort of things can I do to get around this(assuming my
assumptions are correct)?

I greatly appreciate the help and apologize if this topic is covered
somewhere already.


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



Ext GWT Mail Demo

2009-05-05 Thread Paul Grenyer

Hi All

Does anyone know where I can find the source code for the Ext GWT Mail
Demo: http://extjs.com/mail/? It's not included in the GXT download.
Alternatively, does anyone know of a good GXT MVC tutorial?

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
w: http://www.marauder-consulting.co.uk
b: paulgrenyer.blogspot.com

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



  1   2   >