Re: Nobody is using Struts1 with GWT successfully?

2011-04-27 Thread Adligo
I would recommend not using Struts with GWT, Struts (and Spring MVC)
are web 1.0 technologies.   I would recommend using RPC for actions
that need to talk to the server using googles nice RPC framework.
If you have a mashup (old Struts app that you want to add GWT to)
I would suggest taking a large scale refactoring approach and write
new functionality in GWT (with RPC) and keep the old Struts jsp
code.   Then when you have done a fair amount of GWT start refactoring
the old Struts jsp code to GWT as you are asked to maintain (change)
parts of it.

Cheers,
Scott

-- 
You received 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 share code between Server and Client with DateTimeFormat

2011-04-24 Thread Adligo
Hi I,

 use this class
http://cvs.adligo.org/viewvc/i_util/src/org/adligo/i/util/client/CommonTime.java?view=markup

Then when in JSE (on the Server) it delegates to
http://cvs.adligo.org/viewvc/jse_util/src/org/adligo/jse/util/JSETextFormatter.java?view=markup

And in GWT it delegates to
http://cvs.adligo.org/viewvc/gwt_util/src/org/adligo/gwt/util/client/GwtTextFormatter.java?view=markup


So to use it do this somewhere on the server;
  static {
46  try {
47  JSEPlatform.init();
48  } catch (Exception x) {
49  x.printStackTrace();
50  }
51  }
For instance in ;
http://cvs.adligo.org/viewvc/adi_server_config/src/org/adligo/i/adi/server_config/ExternalConfigListener.java?view=markup
...
http://cvs.adligo.org/viewvc/adi_server_config/src/org/adligo/i/adi/server_config/ServerConfig.java?view=markup

And on the client do;
try {
39  GwtPlatform.init();
40  GwtLogFactory.init();
41  } catch (Exception x) {
42  x.printStackTrace();
43  log.error(x.getMessage(), x);
44  }
as in this example;
http://cvs.adligo.org/viewvc/gwt_util_demo/src/org/adligo/gwt/util/demo/client/DemoEntryPoint.java?view=markup

Then simply use the static methods in CommonTime.java and constants to
get the same date formatted on client or server.

Cheers,
Scott

On Apr 23, 11:06 pm, Mauro  wrote:
> Hi, would you give me a sample on where the initialization code for server
> goes? Thanks

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



Re: Enable/disable gwt-logging at runtime

2011-04-13 Thread Adligo
You can't change GWT log or java.util.logging at runtime as they are
compiled and controlled by the gwt.xml file at compile time.   If you
used the adligo i_log api you can change the logging setting of your
browsers window by using cgi parameters to have your app load up a
specific logging configuration file (adligo_log.properties or
your_log.properties exc).

Cheers,
Scott

 Apr 12, 2:25 am, vmnikulin  wrote:
> How to enable/disable gwt-logging at runtime

-- 
You received 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: Logging client exceptions to a file

2011-03-26 Thread Adligo
Yes you can send the log messages to the server and have them direct
the log messages to a file, depending on which log api you use (I am
only sure about the i_log api that I wrote).
http://cvs.adligo.org/viewvc/adi_gwt_rpc_servlet/src/org/adligo/i/adi/server/rpc/ILogServlet.java?view=markup

I believe the older GWT-LOG by allen sauer and the newer impl of
java.util.logging on the client can also do this.

Cheers,
Scott

On Mar 23, 3:45 pm, SVR  wrote:
> Is this possible, I know GWT is client side, but is this possible at all?
> The debug/log window (client side) is pretty lame and doesnt even allow
> copy/paste. I know there is an exception thrown, but can hardly scan the
> window without search facility or copy/paste to notepad and search?
> Any ideas?
> thanks

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



Re: is it possible to use an SLF4J adapter in GWT to wrap java.util.logging ?

2011-03-01 Thread Adligo
So you don't get logging when GWT is actually compiled into javascript
(so you can't diagnose issues in the javascript that you actually
ship, you can only diagnose issues in emulated code (which isn't
javascript but actual java)).

On Feb 28, 7:23 am, Richard Allen  wrote:
> I never knew of i_log until now. I suggest you write some documentation and
> provide a website if you want to attract users.
>
> Anyway, we aren't using JME, and SF4J/Logback with a simple GWT emulation is
> working fine for us.
>
> -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-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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 use an SLF4J adapter in GWT to wrap java.util.logging ?

2011-02-26 Thread Adligo
To respond to the question
May I ask why do you need something like that? Basically everything
what you need is inside of gwt-user package.

I did it before the GWT project had java.util.Logging and
some people do NOT like the java.util.Logging package,
I see a lot more people using log4j (as it was the original logging
library in java).

It gives your project developers options of which logging
implementation they want to use.

For instance I develop a widget A, and it is used by two projects one
uses log4j the other uses java.util.logging.
If I use java.util.logging in my widget A, then the project that uses
log4j will need to configure logging twice,
which is a pain in the butt.
Also vice versa.

If my widget uses i_log, you can simply delegate the i_log message
calls to log4j or java.util.logging
so you only have one common logging config file to configure your
logging implementation.

Also for some code I can write it so that it will work on JSE, JME and
GWT so I can keep some core logic shared rather than written more than
once (and maintained more than once).

Cheers,
Scott



On Feb 26, 11:54 am, Adligo  wrote:
> Why didn't you use i_log, as I already finished it and open sourced it
> several years ago?
>
> http://cvs.adligo.org/viewvc/i_log/
> common logging api anywhere you could use a .java source file.
> JSE, JME and GWT
>
> Cheers,
> Scott
>
> On Feb 25, 5:50 am, Thomas Broyer  wrote:
>
>
>
> > On Friday, February 25, 2011 4:04:12 AM UTC+1, zixzigma wrote:
>
> > > is it possible to use an SL4J adapter in GWT to wrap java.util.logging ?
>
> > I started working on something like that at work, and we will eventually
> > open source it.
>
> > For now, I can use Slf4J in my client code. In DevMode, it will use whatever
> > Slf4j implementation it finds in the classpath (which means that it will
> > write to the console, not to the DevMode window), and it compiles out in
> > prod mode.
> > I've been thinking recently about just wrapping java.util.logging (and using
> > jul-to-slf4j.jar to format my logs using logback) instead of my default,
> > emulated NOPLoggerFactory (used in web mode only), but we actually don't use
> > it that much in client code (and overall), so I didn't invest any more time
> > in it for now.
>
> > There's also a project on GitHub:https://github.com/derjan1982/slf4gwtmore
> > like gwt-log than JUL integration in GWT though, IIRC.
>
> > > I would like to be able to use logging.properties file to define
> > > formatting,
> > > which I believe is not possible with java.util.logging.
>
> > I believe you can (at least in DevMode I mean, or when using a
> > RemoteLogHandler), though you might have to make your own Formatter class
> > (or pick a third-party one).

-- 
You received 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 use an SLF4J adapter in GWT to wrap java.util.logging ?

2011-02-26 Thread Adligo
Why didn't you use i_log, as I already finished it and open sourced it
several years ago?

http://cvs.adligo.org/viewvc/i_log/
common logging api anywhere you could use a .java source file.
JSE, JME and GWT

Cheers,
Scott

On Feb 25, 5:50 am, Thomas Broyer  wrote:
> On Friday, February 25, 2011 4:04:12 AM UTC+1, zixzigma wrote:
>
> > is it possible to use an SL4J adapter in GWT to wrap java.util.logging ?
>
> I started working on something like that at work, and we will eventually
> open source it.
>
> For now, I can use Slf4J in my client code. In DevMode, it will use whatever
> Slf4j implementation it finds in the classpath (which means that it will
> write to the console, not to the DevMode window), and it compiles out in
> prod mode.
> I've been thinking recently about just wrapping java.util.logging (and using
> jul-to-slf4j.jar to format my logs using logback) instead of my default,
> emulated NOPLoggerFactory (used in web mode only), but we actually don't use
> it that much in client code (and overall), so I didn't invest any more time
> in it for now.
>
> There's also a project on GitHub:https://github.com/derjan1982/slf4gwtmore
> like gwt-log than JUL integration in GWT though, IIRC.
>
> > I would like to be able to use logging.properties file to define
> > formatting,
> > which I believe is not possible with java.util.logging.
>
> I believe you can (at least in DevMode I mean, or when using a
> RemoteLogHandler), though you might have to make your own Formatter class
> (or pick a third-party one).

-- 
You received 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 use an SLF4J adapter in GWT to wrap java.util.logging ?

2011-02-26 Thread Adligo
In short NO, this is why I wrote i_log.

The main problem with all log libraries is their static initialization
(log4j, slf4j exc)
and synchronous loading of the log config file.  These were the two
huge issues that I had to over come
porting apache commons logging to gwt which I renamed as i_log.

http://cvs.adligo.org/viewvc/i_log/
http://www.adligo.com

I haven't tried directing (wrapping) it to java.util.logging in GWT
but it does work server side (also I did log4j).

I immagine it wouldn't be two much work to get i_log wrapping
java.util.logging on the client in GWT working,
probably just a addition to
http://cvs.adligo.org/viewvc/i_log4utilLog/
so that it has a .gwt.xml module file.

I would suggest dropping slf4j and using i_log,
slf4j also doesn't work on JME (Java Micro Edition),
i_log works everywhere you could use a .java souce code file to
my knowledge.

Cheers,
Scott


On Feb 24, 9:04 pm, zixzigma  wrote:
> is it possible to use an SL4J adapter in GWT to wrap java.util.logging ?
>
> I would like to be able to use logging.properties file to define formatting,
> which I believe is not possible with java.util.logging.
>
> Thank You

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



Re: Detecting inactivity on the client

2011-02-26 Thread Adligo
Hi,

   My solution to this problem was to implement polling to the Servlet
layer, based on events that were fired.  So if no event was fired the
client
would timeout and jump to another page.
  Since all my user events go through a common event bus
(BasePresenter), this
is easy to accomplish.

http://cvs.adligo.org/viewvc/gwt_util_demo/
http://www.adligo.com/

Cheers,
Scott

On Feb 24, 4:21 am, shahid  wrote:
> I am looking to find the best way to detect inactivity in a GWT
> application. In a traditional web application this would be done
> through a session timeout, however in a GWT app it is different
> because:
>
> 1. It is quite possible that at one point in time the client has got
> enough data from the server to allow the user to keep interacting with
> the system without the need for another server rpc call for a while
> which could be long enough to cause a session timeout on the server
> which is undesirable.
>
> 2. One possibility is to keep polling the server periodically. However
> in my case I am already polling the server periodically to get
> notifications and updates etc. So it is possible that the user would
> leave his desk and because the polling is alive, the server session
> never times out.
>
> I therefore need a way to detect the inactivity on the client. What is
> the best way to achieve this? Is using DOM event listeners a good
> 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: GWT DevMode : logging to a log file

2011-02-12 Thread Adligo
Hi,

   I know if you use the Adligo i_log api you can send your log
messages to a Servlet and log them that way.

Cheers,
Scott

-- 
You received 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: ACL in GWT

2010-11-29 Thread Adligo
Hi,

   Here is my take on how to do ACL (Access Control Lists) on a GWT
RPC server (servlet).

http://cvs.adligo.org/viewvc/adi_gwt_rpc_servlet/src/org/adligo/i/adi/server/rpc/AdiControllerServlet.java?view=markup

Spring Security (and all other web 1.0 style HttpFilter security can
only secure at the url level (servlet mapping),
the above servlet allows you to inject security filter code right
after de-serilization).

Cheers,
Scott

On Nov 24, 9:00 am, Baloe  wrote:
> Hi,
>
> Yup of course, I am talking about the serverside, 'RPC' is quite
> serverside ;)
>
> Thanks for the suggestions, I'm looking into these.
>
> Thanks!
> Niels
>
> On 24 nov, 13:53, Didier Durand  wrote:> Hi Baloe,
>
> > You should definitely implement security in the back-end rather than
> > in the front-end: you have to keep in mind that your back-end may be
> > called by something else than your js code generated by GWT. You're
> > then in bad shape if your back-end services accept any request without
> > checking.
>
> > So, make sure that the framworks / mechanisms that you use respect
> > this.
>
> > regards
> > didier
>
> > On Nov 24, 1:33 pm, ep  wrote:
>
> > > hi, you might want to take a look athttp://code.google.com/p/gwt-security/
> > > orhttp://code.google.com/p/acris/
>
> > > On 24 Nov., 11:56, Baloe  wrote:
>
> > > > Hi all,
>
> > > > I wonder what is the best way to put ACL in our GWT project. Is there
> > > > any mechanism in GWT build-in to grand users to specific RPC calls, or
> > > > something similar? Our should we just insert Spring Security
> > > > somewhere?
>
> > > > Thanks for any hints!
> > > > Niels

-- 
You received 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: Object serialization (again)

2010-06-19 Thread Adligo
Hi,

   Also I have written a JUnit test which attempts to tell you things
like this;

http://cvs.adligo.org/viewvc/i_util_tests/src/org/adligo/i/util/IsGwtRpcSerializable.java?view=markup

Cheers,
Scott

On Jun 7, 1:05 pm, raj  wrote:
> Oops - my oversight - will give that a whirl, fingers crossed. Thanks
> for the pointer.
>
> On Jun 7, 3:53 pm, kozura  wrote:
>
> > Most normal classes are serializable.  Do you have a 0-arg
> > constructor?  Here are the requirements on serializable classes:
>
> >http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunicat...
>
> > On Jun 7, 6:35 am, raj  wrote:
>
> > > I had a trawl through the forum and haven't found a solution to this
> > > yet (so not sure if its a bug that has recurred or something I am
> > > doing wrong).
>
> > > My service class is as follows:
>
> > > public interface ImpliedVolatilityCalcService extends RemoteService {
> > >         //      public List calculate(VolCalcParams data);
> > >                 public String calculate(VolCalcParams data);
>
> > > }
>
> > > The AsyncCallback now looks like
> > >                                 ivCalcService.calculate(vcParam,
> > >                                                 new
> > > AsyncCallback() {
> > >                                                         public void
> > > onFailure(Throwable caught) {
>
> > > whereas it used to be
> > >                                 ivCalcService.calculate(vcParam,
> > >                                                 new
> > > AsyncCallback>() {
> > >                                                         public void
> > > onFailure(Throwable caught) {
>
> > > BSPriceDTO  is a Serializable class of mine
>
> > >         import java.io.Serializable;
>
> > >         @SuppressWarnings("serial")
> > >         public class BSPriceDTO implements Serializable {
> > >                 private double volatility = 0.0;
> > >                 private double optionExpiry = 0.0;
> > >                 private double error = 0.0;
>
> > > With the original List, the callback failed (with no
> > > meaningful errors on the server side to really tell me why).
>
> > > When I replaced List with a custom delimited string from
> > > which I create the list back on the client, it works fine.
>
> > > Does AsyncCallback not support anything other than String as a
> > > Serializable object?
>
> > > Thanks in anticipation to a problem that has be stumped at the moment.
>
> > > -raj

-- 
You received 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: Unable to see GWT.log messages

2010-03-12 Thread Adligo
Hi,

   One option would be to down load the adligo i_log source
(www.adligo.org), and use the i_log api to output the log messages to
System.out (eclipse console) in development and GWT.log when
deployed.  This is one of about a 1/2 dozen things I have been meaning
to do to the adligo.org i_log library.  You would need to modify the
source code and add a configuration setting for this in the code that
reads adligo_log.properties
  If you want to help me do this (or anything else with the i_log
code), write me at sc...@adligo.com  and put
 i_log development volunteer
in the subject.
   Otherwise I will probably get around to this sometime by next
winter (2010-2011).

Currently adligo i_log can output to System.out (eclipse console), RPC
(server side log file vi in unix shell anyone? or adligo LogServer
product [the thing you pay me for if you don't want to look at
javascript log messages in vi in a unix shell]).

  Also I would recommend the Fred Sauer log library to make this
improvement for developers (log output to System.out or GWT.log).

Cheers,
Scott

-- 
You received 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: MVP Architecture source code?

2010-01-13 Thread Adligo
Also I converted my MVC example project to MVP recently;

  http://cvs.adligo.org:80/viewvc/gwt_util_demo/

Cheers,
Scott

On Jan 12, 1:51 pm, Chris Ramsdale  wrote:
> http://code.google.com/webtoolkit/doc/latest/tutorial/projects/Contac...
>
>
>
> On Mon, Jan 11, 2010 at 11:42 PM, Ralph  wrote:
> > Hi,
>
> > Can someone post the link to the MVP/DI/Event Bus/Best Practices
> > Contacts source example.  I've looked around and don't see it.
>
> > Thanks,
> > Ralph
>
> > On Jan 4, 10:31 am, Walter  wrote:
> > > @Chris: Thanks for the source code!
>
> > > The Contacts example is clear and well written and I finally start to
> > > understand the best practices mentioned on Google I/O.
>
> > > Thanks!
>
> > > - Walter
>
> > > On 28 dec 2009, 04:18, Chris Ramsdale  wrote:
>
> > > > I'll be adding the source for this tutorial asap, and will update
> > everyone
> > > > when it's available.
>
> > > > - Chris
>
> > > > On Tue, Dec 22, 2009 at 4:11 PM, Dalla 
> > wrote:
> > > > > Don´t know if it´s been there for some time now, but I noticed that a
> > > > > section named "MVP Architecture" has been added to the GWT Tutorial
> > > > > section.
> > > > > It looks a lot like the best practice example that Ray Ryan used in
> > > > > hos GWT Best practice session on Google I/O 2009.
> > > > > It there any chance of the community seeing the entire source code of
> > > > > this example?
>
> > > > > --
>
> > > > > You received 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 > > > >  cr...@googlegroups.com> > cr...@googlegroups.com>
> > > > > .
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-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 and .Net

2009-12-11 Thread Adligo
Hi,

   I used .net with C# successfully for zoomshare.com's domain
wizard.   C# has a nice Json api that saves some time, but then you
need to write your own Json readers for the GWT client.  I used the
regular GWT Java compiler for the client code, as I would expect
porting the GWT compiler would take MUCH MORE than a person year.

Cheers,
Scott

On Dec 11, 9:34 am, Olivier Gérardin  wrote:
> Do you still have a reference to the posts that linked .Net with GWT?
> I have serious doubts that this was ever considered.
> Besides, if all you want to do is be able to code in C#, I think Java
> is close enough that it won't be a huge gap... In addition to porting
> the GWT compiler, fully supporting C# would mean porting some
> core .Net libraries so that they can translate to JavaScript (just
> like GWT's JRE emulation lib), rewriting widget libraries and all
> translatable GWT code, and also porting the development mode shell.
> Not likely.
>
> You can of course run GWT with a .Net backend, but you'll have to take
> care of serialization/deserialization, because only the native RPC
> mechanism does so transparently. You may use JSON or XML or any other
> format, but you'll have to do the parsing yourself (there might be
> tools around to make that easier ..)
>
> Olivier
>
> On Dec 11, 10:41 am, AndrewG  wrote:
>
> > I have used GWT quite successfully with a number of Java-based
> > projects now - and was now wonder whether it will be possible to use
> > it together with .Net.
>
> > A quick search found a few posts from 2007 claiming that Google had
> > announced that they would include C# in the languages supported by GWT
> > - but I havent found anything since. Was this wrong, did Google change
> > their mind, is it somewhere in the pipeline - or has it happened ?
>
> > My pref would be for full support for .Net/C# - but failing that, is
> > there an easy way to run gwt-generated web UIs with .Net back-end - ie
> > something that handles the serialization issues etc ?
>
> > Thx
>
> > Andrew

--

You received 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: Should we use maven or not for a project?

2009-11-28 Thread Adligo
I would suggest using ant, it provides more flexibility.   I have been
on a GWT project with Maven and Ant, and Ant hit a lot less
roadbumps.  Also if you want to build GWT itself it uses Ant.

Cheers,
Scott



On Nov 28, 2:47 am, Jan Ehrhardt  wrote:
> Yes, Maven can be complex, but if your project has a clear structure, it can
> be very powerful.
>
> Another option, I haven't tried yet, could be Gradle. It is a build tool,
> that uses Groovy for writing build scripts. The benefit is, that it's based
> on Ant and Ivy, so it allows you to use all the Ant stuff around.
>
> Regards
> Jan Ehrhardt
>
> On Fri, Nov 27, 2009 at 7:05 PM, gwtfanb0y 
> wrote:
>
> > Now after all the maven enthusiasts above this comment, i have to say
> > some words about ANT.
> > I have used the default ant build-scripts (which are included inside
> > the project when you create
> > it with the webAppCreator) in all of my projectes and it worked very
> > well. If you want to add
> > new ant-targets e.g. for gui-tests, these are easy to implement.
>
> > My experience with maven is, when you have a big project, the
> > administration of maven is
> > a fulltime job.
>
> > If you have litte experience with maven und need to start fast your
> > project, so you should
> > choose ANT.
>
> > On 26 Nov., 22:46, jbdhl  wrote:
> > > I'm about to start a new GWT project but can't decide weather to use
> > > maven or not - partly because I'm completely new to maven. Are there
> > > really large benefits from using maven? I've heard, that not even
> > > google is using it, and this worries me a little.
>
> > > Our project will be a bit of a mix of various stuff and I don't know
> > > how well this fits into the maven structure:
>
> > >   * besides the usual client/servlet code, we will build a few smaller
> > > java tools to be run periodically by cron.
>
> > >   * we will use a bunch of scripts written in various languages to
> > > solve different tasks
>
> > >   * the project will include a bunch of documentation and text
> > > documents
>
> > > All in all: what is your recomendation? Maven or not?
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

--

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




Re: Packaging Applications in GWT

2009-11-03 Thread Adligo

Hi Sundeep,

I have been doing this for quite some time and it seems the best
way is to split things out this way;
Common project (I call these projects Models as well)
Contains RPC Interfaces and Models(pojos with getters and setters)

Server project depends on Common project
Contains Servlets, HttpFilters and other server side stuff

Client (GWT) project depends on Common project
   Contains actual GWT code
your_project/war directory and content web.xml exc

I have been using this for quite a while with the Google plugin for
Eclipse, deploying on JBoss and GAE (Google App Engine) and it seems
to work well.
You can then right click on the Client project from eclipse and
run as a web app (Google plugin for Eclipse).   Your build system will
need to copy the Common.jar and Server.jar into your Client/web/WEB-
INF/lib directory.

Cheers,
Scott

On Oct 29, 12:42 pm, "Sudeep S"  wrote:
> Hello,
>
> Can someone suggest the techniques/best practices involved in packaging the
> GWT applications where the client code and server code reside separately.
>
> Thanks
>
> Sudeep
--~--~-~--~~~---~--~~
You received 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: debug gwt compiled javascript

2009-10-21 Thread Adligo

Hi,

 I would recommend the following;
1) Add a uncaught exception handler and if that doesn't solve the
issue
2) pick a log library gwt-log or i_log (my adligo packages)
direct the log output back to the server, so you can determine
where the code is blowing up, add a try catch to catch your
exception.  As a last resort work in halves to determine the location
of the blowup.

Cheers,
Scott

On Oct 20, 1:29 pm, Ian Bambury  wrote:
> Hi Sudeep,
> This, in my experience, is usually due to IE being politically correct and
> FF being lenient (as opposed to FF being correct and IE being complete ,
> which is what people would tell you if things were the other way around)
>
> Assuming you are on Linux and using something less that GWT v2.0, then the
> easiest way to sort it out is to run the project on a Windows machine (since
> hosted mode uses IE and you'll get an error with a line number)
>
> If that isn't an option, then compile with -style PRETTY or DETAILED, which
> will at least tell you the method that is failing - have a look at it, and
> post again if you can't see the problem.
>
> Ian
>
> http://examples.roughian.com
>
> 2009/10/20 Sudeep S 
>
> > hello,
>
> > I hav my gwt app, compiled and running fine on FF,
>
> > but on IE it says that *this.h.a* is null or not an object.
>
> > Any ideas how to debug/backtrack the java code for such an error.
>
> > Thanks
> > Sudeep
--~--~-~--~~~---~--~~
You received 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: Client Side Logging

2009-10-15 Thread Adligo

Hi,

   Also there is i_log a apache commons logging port;

http://cvs.adligo.org/viewvc/
i_log project
depends on i_util and gwt_util for gwt runtime
See the dist package for compiled code
http://www.adligo.com/dist2/gwt/gwt_main_v3_0/

and some examples
http://www.adligo.com/#Products

Also I should mention there are some bugs in the latest release (fixed
in cvs, but not released as jars yet).
In order of importance
1) defalutlog= in the adligo_log.properties file doesn't affect the
log levels in i_log_v3_3 and before
2) log message batching was written after v3_3 so if you use google
app engine, I would suggest building the latest from cvs
since before that each log message was a request and you only get
about a million free requests per day on GAE

For your situation you can send your log messages to the server by
editing the adligo_log.properties under your war directory.  Add
gwt_loggers=both
or
gwt_loggers=net
which will send the log messages to the server, then you can either
1) buy the adligo GWT Java Log Server
or
Install and use one of the servlets to dump your log messages to the
console (or delegate to another log system)
For instance to dump the log message to the console use
http://cvs.adligo.org/viewvc/adi_gwt_rpc_servlet/src/org/adligo/i/adi/server/rpc/ConsoleLogServlet.java?view=markup

Cheers,
Scott



On Oct 14, 11:41 am, charlie  wrote:
> I am very happy withhttp://code.google.com/p/gwt-log/, gwt-log+ firebug = win.
>
> On Wed, Oct 14, 2009 at 11:37 AM, Thomas Holmes
>
>  wrote:
>
> > I know this is client side code with a GWT-RPC DataSource, but I have
> > a bug, and I am trying to find out what is going on.   I have firebug
> > installed, but that isn't helping me at all.   System.out.println
> > doesn't seem to work of course, so in my GWT-RPC DataSource had can I
> > debug or log what is going on?
>
> > Thanks!   Any help is much appreciated!
>
> > 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-toolkit@googlegroups.com
To unsubscribe from this group, send email 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: Recommendations for a server-side Java framework to use with GWT?

2009-09-18 Thread Adligo

I also agree with Ian.

Several frameworks were written to 'fix' problems, I would suggest
trying out some fairly basic GWT's RPC methods.  You might even go as
far as calling GWT's RPC a framework.

Cheers,
Scott
--~--~-~--~~~---~--~~
You received 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: Your GWT based open source project(s)

2009-09-09 Thread Adligo

To answer your original question, Yes.

I find open source code extremely useful for learning, constructing
and maintaining software projects.  The plethora of projects out there
has saved me tons of time, which has progressed my career.

Who said;
You never get something for nothing.
--~--~-~--~~~---~--~~
You received 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: Repeating http requests

2009-09-01 Thread Adligo

Hi All,

   This is my quick hack that fixes that issue;
http://yourserver/yourPath?yourCgiParams=yourValues&request=1
http://yourserver/yourPath?yourCgiParams=yourValues&request=2
http://yourserver/yourPath?yourCgiParams=yourValues&request=3
exc

Also note this can be applied to html and property files (or any
files)
http://yourserver/funky.html&request=1
http://yourserver/drummer.properties&request=2

I have been using a static int counter to accomplish this trick.
I think GWT should add some caching options to its http api, because
this is quite hoaky.

Cheers,
Scott


On Aug 31, 3:03 pm, Jamie  wrote:
> You might have a bit of debugging in your future...
>
> Is there anything different about the last request?  Check this with
> eg., TamperData, FireBug console, or server logging.
> Is it handled properly?
> Perhaps you have some sort of referencing issue within the handler,
> that is not allowing all the previous callbacks to be freed?
>
> Jamie.
> ---
> Search for analog and digital television broadcast antennas in your
> area:http://www.antennamap.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: commons-logging for server side code not showing in Eclipse

2009-08-15 Thread Adligo

http://commons.apache.org/logging/guide.html#Configuring%20The%20Underlying%20Logging%20System

You may want to try using simple log first, and then swaping the impl
to Log4j.
Also If you want a log library that you can use on both client and
server take a look at the Adligo i_log (commons logging port see other
posts in this forum).

If your trying to see messages in hosted mode put your config files in
src/commons-logging.properties

or if your using adligo stuff you will put the server side one in
src/adligo_log.properties
and the client one in
war/adligo_log.properties

http://cvs.adligo.org/viewvc/gwt_util_demo/

Cheers,
Scott

On Aug 14, 1:36 pm, Marley  wrote:
> I have been having this issue for a while and it has finally reached
> the point where it is painful.  I am using commons-logging for server
> side service code and i can not get my log statements to display in
> the Eclipse console.  Can anyone help me?
--~--~-~--~~~---~--~~
You received 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: Command Pattern, MVP, EventBus

2009-07-11 Thread Adligo

Hi Kwhit,

   I believe that this is what I have been calling the Controller
(Event Bus, passing Events (Command Objects)).   Perhaps why I have
had some difficulty working with others (GWT) MVC frameworks of late.

So I have a Event Object (Command) with a Object value field
http://cvs.adligo.org/viewvc/adi/src/org/adligo/i/adi/client/EventDelegator.java?view=markup
http://cvs.adligo.org/viewvc/gwt_util/src/org/adligo/gwt/util/client/UserEventController.java?view=markup
http://cvs.adligo.org/viewvc/gwt_util/src/org/adligo/gwt/util/client/BaseController.java?view=markup
http://cvs.adligo.org/viewvc/gwt_util/src/org/adligo/gwt/util/client/SystemEventController.java?view=markup

View->Sends Event->UserEventController->Delegates to some code
View<-Recieves Data<-SystemEventController<-Delegated Code responds
So the 'Event Bus' is made up of two major sections
tword control code
from control code

Each section may have multiple parts so things can be added (removed)
from the bus.  I wrote this before the 2009 Google IO MVP
presentation, and was trying to combine newer MVC frameworks (Spring,
Struts) with older GoF smalltalk C++ ideas about fat clients (lexi).

So I made some generalizations (more casting since Object is often my
reference type), and my View and Presentation code is generally
packaged into a class name ending with Panel (AddressPanel for
instance).

In your example I would have the SavePhoneNumberButton as the Source
of the event and the NewPhoneNumber as the value.  The event would get
to some rpc code, onSuceess would change the NewPhoneNumber value in
the Event object and pass it back to the View.

So to sum up, I think the Command Pattern with the Event Bus is the
way to go, and works well for me!  I called this a MVC framework.

Cheers,
Scott


On Jul 11, 1:41 am, Kwhit  wrote:
> Just throwing up an idea here to see how many bullet holes it comes
> down with.
>
> I'm playing around with the command pattern which is a hot topic at
> the moment and wondered why it shouldn't be merged with the EventBus?
> The command pattern proposed by RR has to add a response object - the
> original doesn't (I don't have a GoF copy to hand), using and event
> bus would remove the requirement for it.
>
> Using the example presented by RR.
>
> 1/ User clicks on 'save' to save the edited phone number
>
> 2/ Presenter creates an RpcCommandEvent{, }
> and fires it to the eventBus
>
> 3/ RpcPipe, listening for RpcCommandEvent events, ships them off the
> to the server
>
> --- Server side ---
>
> 4/ RpcPipeService receives the event and invokes a specialized handler
>
> 5/ The handler verifies (for the sake of the example but I would
> normally do this client side) the new phone number, finds it OK and
> updates the storage
>
> 6/ Handler returns new phone number for contact ID x
>
> 7/ RpcPipeService ships (returns) the response on across the pipe
>
> --- Back on the client side ---
>
> 8/ RpcPipe fires the RPC return value as an event on the bus
>
> 9/ Listeners to ContactInfoUpdated events update the phone number
>
> I, in my ignorance, find the above a net gain
>
> * +ve: One pipe fits all, no need to update the mechanics of the RPC
> * +ve, -ve: The event designer has to know that the event should be
> shipped over the pipe
> * +ve: The statefulness of the RPC mechanism (every request has a
> response) fades away
> * +ve: In fact the Pipe itself could disappear with a bus on the
> server (see below) - end to end unit testing
>
> In my event driven fever I would also like to have an event bus on the
> server so that the handlers could register themselves for events but I
> not worried too much about that yet.
>
> OK fire away!
--~--~-~--~~~---~--~~
You received 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: Send objects from/to Java usting GWT

2009-06-19 Thread Adligo

Well as I understand it GAE is just a servlet container so you have a
varitey of options to pass java 'Objects' back and forth between two
Servlets.

You Could;
Use GWT's RPC code to pass stuff between two Servlets (no examples for
this, you probably need to look at some of the GWT source code to
figure this out.)

Use a custom serlization technique to pass your Objects over CGI
(Common Gateway Interface)
for instance
Student tom = new Student()
tom.setName("tom");
String url = new String();
url = "googleappengine.com/yourServletMapping?
action=recieveStudent&studentName=" + tom.getName();
//sendUrlViaJava read this
http://www.exampledepot.com/egs/java.net/Post.html

Use a SOAP or other xml technique to serialize your object to xml and
then read it in using sax or something in the Servlet.

Use JSON to serialize your Java Object to the Javascript format and
then read it in through the GWT Json api serverside.

Personally I would use GWT's RPC serlization, although it may initally
be more work because there arn't many examples, it will probably be
the least maintenance once you've figured it out.

Good Luck,
Scott

On Jun 18, 3:43 pm, Max  wrote:
> To learn GWT and Google AppEngine (GAE) I'm trying to create a simple
> application using GWT with two classes (entities). In this application
> one object, let's say Student, encapsulates Array/List of other
> objects, say Classes and Books. Then it creates list of Students and
> sends it to Java code on GAE and stores it to the data store. Then I'm
> planning to retrieve these data back and send it to GWT.
>
> Question: is it possible to do this kind of stuff using GWT + GAE +
> Google DataStore? Are there any examples/tutorials of using all these
> technologies at once?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: MVC question

2009-06-15 Thread Adligo

Hi Dalla,

   There are quite a few variations on MVC, I my opinion GWT  is best
implemented using A MVC variation similar to swing. First consider
this article;
http://www.javaworld.com/jw-04-1998/jw-04-howto.html?page=1

Often the whole MVC Framework (dealing with a button component in the
above example) is packaged into a Component (Widget).  For instance
look at the GWT Button Class
http://google-web-toolkit.googlecode.com/svn/trunk/user/src/com/google/gwt/user/client/ui/

Do you see a ButtonModel or ButtonController in the GWT code (.java
files)?
No

Does this mean the GWT Buttons violate the MVC pattern?
No

This means that the developer who wrote this code decided to package
the MVC concept as a single Component or Widget.

The MVC variation that you describe below seems to what I call the
Active Model variation.  Personally I don't use this but use the
Passive Model variation which is more similar to most Struts (and
Spring) MVC applications.  Where the model classes are just a pojo
(often something like a Hibernate entity).

My main dislike of Active Models is due to all of the extra Observible
code and some memory leaks that I have had to chase down in my career
which were caused by the listners hanging on to references that should
have been removed (because they were no longer used) .

So the debate in a GWT project really comes down to the question;
When is breaking out the code into Models, Views and Controller(s)
better than keeping them together as a component?

So heres my opinion on that;
Models, almost always break out models into classes except when the
model will not be used outside of the component or widget.  I argue
that pojos make the best models and your probably already doing this
for something like Hibernate.
Or in other words;
If the model is used by more than one class (Person entity model)
break it out.
If the model is only needed to maintain the component keep it in
(Button Model).

Views(Panels (according to the Ivar Jacobson deffinition), Composites
according to the GWT defennition).
I think most of the time it makes sense to keep the control code
packaged with the component.   Also for control code packaged this
way, I believe it only makes sense for this control code to manage or
control things inside or under of the scope of the component.  For
things that are not in the scope of the component, the Observable
pattern should be used, which may (and often does) lead to one Panel
(View) controlling another Panel (View).
  So when should the control code not be placed in the ui (View,
Panel)?
When the control logic is no longer scoped to a view.

So to finally answer your question.
I think it would be fine to have your Composite(I think u called this
a flex table) implement HasSelectionHandlers and show a dialog with
the details, as this is all with in the scope of your Component

And finally;
I do think breaking out code into MVC classes is justified in GWT, for
instance when the control code can configured in a manor for reuse.

Here is a Example;
http://zeuhl.adligo.com/gwt_util_demo_v3_1/GwtDemo.html?show_log=true

source
http://cvs.adligo.org/viewvc/gwt_util_demo/

In this MVC framework I use the Mediator pattern for a Singleton I
call the Controller.   You may find this similar to the
ControllerServlet in Struts or the DispatcherServlet in Spring.

http://cvs.adligo.org/viewvc/gwt_util/src/org/adligo/gwt/util/client/I_Controller.java?view=markup
http://cvs.adligo.org/viewvc/gwt_util/src/org/adligo/gwt/util/client/Controller.java?view=markup

 This class then has two maps of Observers;
One map mediates communication to the control logic (I_Listener's)
view -> sends event -> controller mediates to -> I_Listener
The other mediates communication from the control logic (I_Listener's)
view<- calls setFoo() <- I_Listener  <- controller mediates to <-
I_Listener

So whats a good rule of thumb?
Break out your Control code for RPC calls.

It will help you to reuse your Panels (Views, Composites, Widgets).
It will allow you to reuse your RPC callback instances.  It will give
you more maintainable code, which will adapt to changing requirements
faster.  Also it will allow you to change out your code to enable
client side caching if you need it.  exc...

Cheers,
Scott



On Jun 15, 4:02 pm, Dalla  wrote:
> Any MVC / GWT experts out there? :-)
>
> On 14 Juni, 14:09, Dalla  wrote:
>
> > Hi all!
>
> > I´ve been working pretty much with MVC in Struts 2, but it´s a pretty
> > different story using MVC, so I have a question.
>
> > From what I´ve read, It´s pretty much:
>
> > On user input, View calls Controller.
> > Controller updates Model.
> > Model fires event, which is observed by the View. View updates based
> > on fired events.
>
> > I´m wondering if it´s possible for the View to update itself without
> > breaking the MVC pattern?
>
> > For exampl

Re: GWT application switching between http and https

2009-06-05 Thread Adligo

Hi Trent,

   I believe GWT will throw exceptions due to the same origin security
restriction when you try to go from a app loaded over http make http
calls over https.  I say this because I was using GWT 1.3 to connect
to a JSON .net server on my localhost on port 88, but getting GWT from
port 80 successfully.  However when I upgraded to GWT 1.4 it stopped
working and started throwing same origin security exceptions.
   Personally I think you should be able to do this, but I have not
accessed all of the security considerations.  My rational is
Javascript is insecure and should be treated that way, so why would
GWT (javascript) be blocking connections by port number?
   I can see the case for hostname (ip) connections, after all if you
downloaded some ones gwt log api (adligo.org for instance).  You would
probably like to make sure that your data is NOT being transmitted to
some server in N. Koriea when it gets to the browser.   This seems
like a good rational for the same origin security restrictions.

Cheers,
Scott

On Jun 3, 4:27 am, Trent Rosenbaum 
wrote:
> I am very new to using GWT and following tutorials and seeing what I
> can do with the toolkit.  I was wondering if GWT can being used in the
> following situation?
>
> An example application could have an open area that allows users to
> browse and select data/products they want within an unsecured area of
> the web application.  Part way through the user needs to login or
> provide data that needs to be communicated back to the host in a
> secured fashion.  After this the application might then allow the user
> to work again with unsecured data.  This is quiet general but what I
> am interested in is the movement of unsecured GWT pages to secured GWT
> pages.  The user could work through the following flow.
>
> browse products, (unsecured) --> review basket of selected products,
> (unsecured) --> login to account, (secured) --> provide payment
> details, (secured) --> review confirmation screen, (unsecured)
>
> So when I am looking though the GWT widgets I am not sure how I make
> my application jump between secured and unsecured pages.  Can I
> instruct hyperlink widgets to communicate back to the same server but
> over https?
>
> The example above is for a simple shop and I can understand how to do
> this in other frameworks so thought it best to be used in an example.
> How does the community get round this problem and are there any
> examples I can read to get a better idea?  Any thoughts on where to
> look would be a great help.
>
> Many thanks
>
> Trent
--~--~-~--~~~---~--~~
You received 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 VS GWT-EXT

2009-06-05 Thread Adligo

This last statement seems to contradict it self so to ovoid any
confusion (as I and several others I have talked to are confused about
this);

GXT (Ext-GWT) does NOT use the GPL (License)  it uses its own license
http://extjs.com/store/gxt/
And it Costs money

GWT-EXT does use GPL
http://code.google.com/p/gwt-ext/
And its free for commercial use like (svn, linux, gwt exc)
but if you modify it you must post your changes otherwise you will
get
in trouble with the free software foundation (like cisco did)

And now for a quesiton.
I know from using Gwt-Ext for a few months that a lot of the code is
acutally written in javascript (EXT, and some Flash for its Charts)
and GWT-EXT is a GWT adapter to make it work from GWT.

What is GXT, is it also this javascript wrapped by a adaptor for GWT?
and
What is SmartGWT is it also javascript wrapped by a adaptor for GWT?

Personally I think that wrapping a bunch of hand written javascript
code in the GWT api doesn't make a lot of sense, mostly due to the way
it behaves when you work with it.
For instance when debugging in Eclipse javascript will throw
exceptions that don't get caught by the GWT adaptors, and your
exceptions will bounce directly into the Browser stack, causing you
hours of frustration.

Cheers,
Scott

On Jun 4, 8:00 pm, Carl Pritchett  wrote:
> > My understanding is that GWT-Ext development is halted.
>
> An active replacement is SmartGWT (has a "free" LGPL version).
>
> Note that Ext-GWT is not free for commercial use - it uses GPL
> licensing. I'm currently using it.
>
> - Carl.
--~--~-~--~~~---~--~~
You received 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 + JAAS

2009-06-02 Thread Adligo

Hi All,

   Its fairly simple take a look at Spring Security for some examples,
the Subject just ends up in the HttpSession.  You can use a HttpFilter
to check it to block request to your RpcServlets, and you can login to
your jboss JAAS session from the Servlet/Filter web code, just like
you can from a stand alone app (for EJB JAAS).
Having said that there are also a number of other issues, what
happens when your Session times out, (some sort of error handling/
prevention in GWT is needed to detect this, or keep it from
happening).  Also I the user opened more than one Window are you going
to open a new session are you going to have them log in again for each
window?

   I am working on (have identified) solutions to all of these
problems and If you need help let me know (code/time for sale).

Cheers,
Scott
sc...@adligo.com

On Jun 2, 11:03 am, Fernando Crestani  wrote:
> Well, I am also having almost the same trouble, so if anyone can help
> us it would be apreciated.
>
> Thanks
>
> Fernando
--~--~-~--~~~---~--~~
You received 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 VS GWT-EXT

2009-06-01 Thread Adligo

Hi,

   As I see the world, GWT is newer than EXT (javascript library) and
a lot more robust.  GWT-EXT is a port of EXT so that it works with in
the GWT (java souce code) framework.   In general they do the same
thing, GWT-EXT looks nicer, but GWT is more generally developer
friendly.
   EXT was written by web developers and comes from a web developer
mind set (usually modifies the DOM directly), where GWT was written by
people who are web developers but have more of a traditional GUI
(Swing, SWT, AWT, VB exc) mindset (seems to have the concept of double
buffering, or in other words writing to a off screen DOM for things
that aren't visible).
   However on the oppisite argument GWT-EXT has some featurs that are
built in to it, that GWT does not yet have.  Most notibly Drag and
Droping Object between Grids (Tables) and Trees.  Sorting in Grids and
dragging (reordering) columns in the Ext Grid.   Another way of saying
this is that the GWT-EXT grid behaves like a swing Table, and the GWT
FlexTable behaves more like a swing Grid Bag Layout (for a panel).
   Answering which one is 'Best' really depends on what your trying to
do...

Hope this helps,
Scott


On Jun 1, 6:18 am, Amzad Basha  wrote:
> Please refer:http://gwt-ext.com/
>
> Cheers!
> Amzad Basha.
>
> On May 31, 10:11 pm, Fitrah Elly Firdaus 
> wrote:
>
> > Dear All,
>
> > I'm New Member, I want Ask about this,
>
> > what's differences GWT and GWT-EXT?
>
> > Which one the best between GWT and GWT-EXT?
>
> > Regards,
>
> > Firdaus
>
> >  firdaus_linux.vcf
> > < 1KViewDownload
--~--~-~--~~~---~--~~
You received 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: We can not access gwt blog in China?

2009-05-30 Thread Adligo

It could be chinas filtering the site out due to political media
issues?
http://cyber.law.harvard.edu/filtering/china/

Cheers,
Scott

On May 29, 7:26 am, Alex Luya  wrote:
> I do not why,I can not access website:http://googlewebtoolkit.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: Using Class.forName

2009-05-21 Thread Adligo

Hi,


   The only way around this it to use something like this class;

http://cvs.adligo.org/viewvc/params/src/org/adligo/models/params/client/ClassForNameMap.java?view=markup

Not very elegant, but works fine.

Cheers,
Scott

On May 20, 6:30 am, rudolf michael  wrote:
> hello,No you cannot use it, bc java reflection is not supported.
> The alternative is to use GWT.create(yourClass.class) and deffered binding.
>
> On Wed, May 20, 2009 at 2:27 PM, Pints  wrote:
>
> > Hi,
>
> > I am tring to use Class.forName at cleint for object creation and
> > getting the following exception.
>
> > [ERROR] Line 196: The method forName(String) is undefined for the type
> > Class
> > [ERROR] Line 197: The method newInstance() is undefined for the type
> > Class
>
> > Can't we use it?
>
> > Any possible way around?
>
> > Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Inherit java.seurity and commons-codec-1.3.jar

2009-05-21 Thread Adligo

Hi Asif,

   Just run your application over ssl (https) get a cert and install
it in Tomcat or what ever J2EE application server (or .net, .php exc)
your using.  Thats all you need to secure your passwords over the
wire.
   Most of java is not available for GWT, only if the jar or project
says it is compatible can you use a external jar (or most of the core
java classes).

Hope this helps,
Scott

On May 20, 5:28 am, abbu  wrote:
> Im using java.security and commons-codec-1.3 jar for passwprd hashing.
> but im unable to inherit those jars. I always get a compilation error
> that the required module is not inherited. How to inherit external
> jars even when they are included in ur lib folder and classpath. Or
> does gwt provides any alternative for these functionalities?
>
> Thnx in advance.
> Asif.
--~--~-~--~~~---~--~~
You received 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: Java Security Permissions / postgreSQL

2009-05-19 Thread Adligo


Hi,

   This sounds like it is postgres specific, did you add the allowed
ip address in your postgres configuration files to allow the postgress
(postmaster server), and are you running the postmaster (internet
damen for postgress) ?
   You probably want to try something like
http://squirrel-sql.sourceforge.net
first before worring about attaching a new application, just to see if
postgres is set up and running correctly.

Cheers,
Scott
www.adligo.com
All my demos run on postgress :)


On May 18, 12:57 pm, "ebe...@gmail.com"  wrote:
> I've just set up the GWT today as plugin to Eclipse (3.4.1) after
> installing PostgreSQL (8.3). I'm pretty new to these applications, and
> have been having minor snag after minor snag that's resulting in a
> rather large hole in my shirt.
>
> Right now I have a problem that isn't GWT's fault, per se, but I don't
> know where to look in the Eclipse project to find the appropriate
> permissions file.
>
> Long story short: I need to add the permissions for
> java.net.SocketPermission to localhost on port 5432, and I think this
> because I get the following error when trying to connect to my
> database after loading the JDBC driver for postgresql:
>
> "org.postgresql.util.PSQLException: Your security policy has prevented
> the connection from being attempted.  You probably need to grant the
> connect java.net.SocketPermission to the database server host and port
> that you wish to connect to."
>
> I've tried adding such a security policy to all of my JRE's /jre/lib/
> security/java.policy files, but no luck - still get the error. Am I
> creating the policy wrong in those files, or is it that when the GWT
> debugs/compiles it obeys a different policy file?
>
> Please let me know, thanks in advance, and please pardon me if this
> has already been covered... but I've been googling around for an hour
> or so, and the only answers I've found pertain to TomCat servers,
> which I'm pretty sure I'm not using. Thanks again :)
--~--~-~--~~~---~--~~
You received 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: console output in Eclipse in Hosted mode

2009-05-14 Thread Adligo

Hi,

  Also you may want to look at i_log as it will allow you to customize
your log messages in eclipse as well as in production environments
(live servers) with a simple log configuration file

GPL (Freeware)
http://www.adligo.com/#Source

Value added Components $
http://www.adligo.com/#Products

Cheers,
Scott

On May 14, 10:54 am, Ed  wrote:
> > Nice.  I thought that you wanted the structured logging from the hosted mode
> > main window to show up in the console by default.  Yes, the process's
>
> Yep, I wanted that as first, but then found this, and that's basically
> what solves my problem.
>
> I am really happy with it as you can simple click in the stacktrace
> instead of looking up the line number...
> How a simple thing can make such a difference ;)
>
> -- Ed
--~--~-~--~~~---~--~~
You received 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: Stack traces

2009-05-09 Thread Adligo

Hi Barry,

   Your System.out messages are going to the java console, which
depend on how you started Tomcat.  If your running from a script like
startup.sh, startup.bat look at the output from that script
Unix
nohup startup.sh &
tail -f nohup.out

dos
startup.bat
look in console window

A better way to do this is to use a Logging api (apache commons
logging, adligo i_log, log4j, the one that comes with java, exc)
and call

log.error(x.getMessage(), x);

In your log configuration (log4j.xml for instance) you can tell the
log system where to send your log message (this file, some email, some
database exc).

Cheers,
Scott

On May 8, 10:19 am, Rumpole6  wrote:
> Hi all,
>
> I am trying to jdbc in the servlet for my application. I am catching
> the SQL expections and using system.err.println() to print out the
> error. When I deploy to tomcat, I don't know where to look in order to
> see if I  am getting any  SQL errors.
>
> Is this the correct way to do this? Where do I find these errors?
>
> Thanks,
>
> Barry
--~--~-~--~~~---~--~~
You received 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: Unique identifier

2009-05-06 Thread Adligo

Hi,

  I would go with the HttpSession identifier, it should always be
unique (something like 1 in 1 billion chance it will duplicate over a
year).  Also if I was going to add a log to do it, I would use the
adligo i_log code (I'm partial I wrote it), but its already on in your
Servlet api so assumeing your calling a rpc mehod somewhere.

//something like...
myRPC() {
 super.getThreadLocalRequest().getSession().getId();
}

Cheers,
Scott

On May 6, 2:43 pm, Joakim Sjöberg  wrote:
> Hi!
>
> Seems good, but I still got the problem with the unique identifier, right?
>
> // Joakim
>
> -Original Message-
> From: Google-Web-Toolkit@googlegroups.com 
> [mailto:google-web-tool...@googlegroups.com] On Behalf Of Salvador Diaz
> Sent: Wednesday, May 06, 2009 4:46 PM
> To: Google Web Toolkit
> Subject: Re: Unique identifier
>
> You could use gwt-log:http://code.google.com/p/gwt-log/
> with a RemoteLogger
>
> Hope that helps,
>
> Salvador
>
> On May 6, 4:33 pm, Joakim Sjöberg  solutions.com> wrote:
> > Hi!
>
> > Yes I know that, more or less what I want is some way to uniquely identify 
> > every time a user
> > goes into my page. When they do that I want to put that into a database 
> > (for example time when they used
> > my page) and in the end I want when they come to the end of my page (it's a 
> > form page) record the time
> > when they were finished. And for that I need to have a unique identifier 
> > that I can use to update the
> > database with.
>
> > Hope this helps to explain more what I want.
>
> > // Joakim
>
> > -Original Message-
> > From: Google-Web-Toolkit@googlegroups.com 
> > [mailto:google-web-tool...@googlegroups.com] On Behalf Of Salvador Diaz
> > Sent: Wednesday, May 06, 2009 4:16 PM
> > To: Google Web Toolkit
> > Subject: Re: Unique identifier
>
> > What do you call a "GWT instance" ? Do you know that GWT applications
> > are just HTML + js + servlets ? (servlets are the RPC implementations)
>
> > On May 6, 12:53 pm, Joakim Sjöberg  > solutions.com> wrote:
> > > Hello!
>
> > > I am trying to build a function that stores data about each GWT instance 
> > > that is running in a database. Is there anyway
> > > way to get some sort of unique identifier from GWT in an easy way? I have 
> > > looked some at session handling, is that
> > > the right way to go? Should I use the RPC functionality for this?
>
> > > Joakim Sjöberg
>
> > > Technical Consultant
--~--~-~--~~~---~--~~
You received 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: Communicate w/ existing GWT-RPC service

2009-04-29 Thread Adligo

I would suggest importing the GWT jar(s) into your java client and
actually have it serialize (de serialize) the Java Objects to a Http
Request and Response using the RPC format.   Java is can then act like
a browser and send the Http Request and get the Http Response all over
Http (Https).  Take a look at the GWT source code RPC and
RemoteServiceServlet class you can see how RPC does this serverside
(its the reverse of what your trying to accomplish).

Cheers,
Scott

On Apr 29, 7:47 am, "Marcelo Emanoel B. Diniz"
 wrote:
> To simple reuse the services classes and the vo classes I would
> separate them in a diferent module...
> export them...(with the .java) and reuse on another module... the main
> point in my opinion would be to
> configurate the service url...
>
> On Apr 28, 3:30 pm, JoeB  wrote:
>
> > I get the general idea, but I'm a little unclear on implementing the
> > non-GWT interface in parallel to GWT-RPC.  The beauty of GWT-RPC is
> > that the ValueObjects I create in my client package are automatically
> > serialized/deserialized by GWT, and my client code and server code are
> > developed with the same Java class.  If I want to make the same
> > ValueObjects accessible via a different interface (e.g. REST, SOAP,
> > etc), then that means I'll have to transform them into some protocol
> > on the wire (e.g. convert to XML or JSON).  The tricky part is that
> > the ValueObject classes are defined in the GWT client package, but
> > they need to be modified in some way to perform this server-side
> > transformation for a different interface, and that transformation code
> > shouldn't leak into the GWT client.  I guess what I'm saying is that
> > it seems like a problem that the ValueObjects are defined in the
> > client package because they need to be used for a non-GWT interface in
> > the server.  Know what I mean?
>
> > -- Joe
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Deploy GWT in WebSphere

2009-04-28 Thread Adligo

If you can deploy a war file with a index.html file as follows;


Hello World



The approach should be exactly the same, for instance you could Hit
the Compile and Browse button on the hosted mode browser, copy the
files from the destination directory (lots of files .js, .css., .html
exc)  into the directory where you had index.html and it should work
the same.

Cheers,
Scott

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

2009-04-22 Thread Adligo

Hi,

   I was able to gwt working at a customer site (where I was give a
development machine with free bsd).  I used eclipse and the GWT
Designer (required support from the GWT Designer Team, which was
probably unofficial).  I don't have the email they sent me, which had
something to do with a swt in eclipse issue.
   I always used compile and browse button from hosted mode to
generate the html and js files.

Good Luck!
Scott



On Apr 21, 9:55 am, Alex Rudnick  wrote:
> I don't have a FreeBSD box handy, but this seems like it'd be
> workable. Good call about replacing the SWT binaries with your native
> ones. Would it help, do you think, to compile GWT from source?
>
> If you get this working, it would be cool to hear how you did it!
>
> On Tue, Apr 21, 2009 at 7:47 AM, Rabbit  wrote:
>
> > Switching to -client mode fix the build process.
>
> > Hosted mode still not working
>
> --
> Alex Rudnick
> swe, gwt, atl
--~--~-~--~~~---~--~~
You received 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: List of GWT Open Source Projects?

2009-04-19 Thread Adligo


Hi,

   I don't know of one, but I think this is a GREAT IDEA!

Here's a list of the stuff I am contributing.

http://cvs.adligo.org/viewvc/
i_util (bootstrap to get code working on j2me, gwt and j2se)
i_log (port of apache commons logging which works on j2me, gwt and
j2se)
adi (registry for j2me, gwt and j2se)
gwt_util (gwt specific bootstrap and a mvc framework)
params (xmlt server side needs sql injection fixes)
adi_gwt_rpc_servlet (serverside rpc specific security)

Cheers,
Scott

On Apr 18, 12:14 pm, William  wrote:
> Does anyone know of a list of GWT Open Source projects?
>
> I've looked on GitHub and Google Code but I'm wondering if there's a
> directory/list maintained somewhere so that it's easy to see
> everything in one place?
--~--~-~--~~~---~--~~
You received 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: Two clients one session

2009-04-15 Thread Adligo

Hi,

  Generally with J2EE serverside (or .net) your session object has a
one to one relation ship with your user, it is communicated to the
server one of two ways;
1) As a cookie (what your seeing with the session id in the cookie)
2) As a cgi parameter of the url (ie 
http://foo.com/index.html?jsessionid=987298429847)
[for users who have cookies turned off]

On the server the session is looked up and added to your HttpRequest
(getThreadLocalRequest) object before your code (regular Servlet
onService or rpc method) does anything.  You can use the session
paradigm to store state full information (like the users name Chris)
when the protocol is stateless (http).

If you don't need state full information just ignore the session api.

Cheers,
Scott



On Apr 15, 2:05 pm, "davidst...@gmail.com" 
wrote:
> To speak the truth i don't know about what video you are talking
> about,
> but I'm quite satisfied that the topics title sounds clever 
>
> On Apr 15, 2:38 am, matttai  wrote:
>
> > I was unsure if this topic title was a clever play on a popular video
> > circulating the internet. If so very clever :)
--~--~-~--~~~---~--~~
You received 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: Center Root Panel

2009-04-10 Thread Adligo

Hi,

   Use a Gwt Grid, add a panel to the 0,0 grid cell and set it to 100%
width and height, set the cell to center vertical and horizontal.  I
figured this out in about 5 minutes with the GWT Designer, it Rocks.

Cheers,
Scott

On Apr 8, 1:53 pm, Vitali Lovich  wrote:
> The root panle is the body element.  You should add some kind of panel to
> the root panel that is centered on the screen instead.  Then use CSS to
> position it in the center.
>
> On Wed, Apr 8, 2009 at 1:32 PM, Gonzalo Tirapegui Medina <
>
> tecklasta...@gmail.com> wrote:
> > Hi all:
>
> > how can i center the main panel into the page ... i've been reading
> > that this panel have an absolute position , in that case , should i get the
> > screen resolution and add some padding to the component?
>
> > thanks ... Gonzalo.
--~--~-~--~~~---~--~~
You received 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 Accesebility

2009-04-07 Thread Adligo

Also I had a idea about this a while back which was;

GWT generated javascript manipulates a Html file via the DOM
So it should be possible to run the javascript serverside to
manipulate the Html server side and then return the HTML to the
client.
However this would require all buttons exc to get replaced with form
links exc.

Cheers and good luck,
Scott

On Apr 6, 10:53 am, alan m  wrote:
> traditionally:
>
> // if (javascript): do javascript here
> else: put your static html here for no-script users
>
> but you could instead put the static html stuff in  id="gwtAttachPoint">here so it either gets replaced by your gwt
> stuff, or is unaffected by noscript browsers?
>
> On Mon, Apr 6, 2009 at 3:49 PM, jamer  wrote:
>
> > I'm making a website that I need to be accessible.
> > I am designing this in JSP and I wonder if I can add any GWT Widget
> > done with, so if you have Javascript enabled to load the page in GWT
> > that no alternative load without Javascript.
>
> > Thank you.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT Programmer Wanted

2009-04-03 Thread Adligo

Hi,

   You might want to mention where your located.

Cheers,
Scott

On Apr 1, 3:15 pm, mike177  wrote:
> Hello,
> We are looking for an exprienced GWT developper with visible
> references to work onwww.homeprodigy.com. This might develop into a
> long term relationship once this project is completed.
>
> Please contact me with expected hourly rate to discuss.
>
> Thanks,
> Mike
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Why not use applets?

2009-04-01 Thread Adligo

I have to agree after many years writing applets, web start or
otherwise there just a pain to get installed sometimes (perhaps due to
microsoft perhaps not).  Jnlp will throw different exceptions on
different os's exc.  For example
http://www.adligo.com/#treedemo
Bottom swing link, worked fine on IE, Firefox, WinXp, Mac 10, RH 8 now
on Windows Vista 64 it chokes (IE and FireFox), and I could sort of
care less.  I think GWT is the best way to write thin client java
(javascript).

Google is right 'The Browser is the Platform', 'Java is the best
language'.

Even with some of the kinks in different compliers jvms, lack of
Thread Safe sharable SimpleDateParsers exc.., it is one of the most
readable and commonly understood syntaxes.  Thats probably why C# (the
new microsoft .net language) looks so similar.
--~--~-~--~~~---~--~~
You received 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.log doesn't generate messages to console

2009-03-29 Thread Adligo

Try i_log;

http://cvs.adligo.org/viewvc/
http://www.adligo.com/#Products

There are quite a few posts about how to get it to work.

Cheers,
Scott

On Mar 28, 11:42 pm, Guy Rouillier  wrote:
> I work with GWT (and GXT) from within MyEclipse.  We have 2 large
> production apps with a server component, and GWT.log works fine with
> them.  Then I have a small, no function app with no server component
> that I use to test out some UI things - my playground app.  GWT.log
> messages do not show up in the console for this playground app.  If I
> force an error, those error messages show up in the console.  If I
> call GWT.getVersion() and put the result into a GUI element, I'm
> seeing the correct version string.
>
> I found a forum message reporting this behavior back in 2007 but no
> response.  Any ideas on why GWT.log doesn't work for this small app?
> Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT and charts

2009-03-23 Thread Adligo

These work well,

http://www.jfree.org/jfreechart/

On Mar 23, 10:49 am, Matías Costa  wrote:
> 2009/3/23 Matías Costa 
>
> > On Mon, Mar 23, 2009 at 2:05 PM, JoeB  wrote:
>
> >> The Fusion Charts are very good-looking, but they require the Adobe
> >> Flash Player plugin.  My customer may be using the app from within a
> >> secure network that doesn't have access out to the Internet, so this
> >> could be a problem.  It seems that at least some browsers come pre-
> >> installed with the Flash Player; does anybody have a sense as to how
> >> safe it is to assume that "all modern browsers" already have the Flash
> >> Player?
>
> > Any browser comes with flash preinstalled.
>
> Sorry, I mean "NO browser comes with flash preinstalled"
--~--~-~--~~~---~--~~
You received 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 i found the real name of a obfuscated function? How i find the code lines?

2009-03-19 Thread Adligo

Hi,

   I would use the i_log commons logging port that I wrote,
send your errors (Exceptions and other log messages) through http to a
server side log file through a servlet , log4j and/or email to them to
your email account.
   You should at least be able to determine the Class name where your
error is happening, and you will be able to at least work by halves to
diagnose your issue.

www.adligo.com

Cheers,
Scott

On Mar 18, 9:13 am, Thomas Broyer  wrote:
> On 18 mar, 15:08, Thomas Broyer  wrote:
>
> > On 18 mar, 12:43, MN  wrote:
>
> > > i just googled around this SOYC feature in the trunc, but in a sample
> > > output of soyc-vis i dont see this mappings:
>
> > >http://code.google.com/p/google-web-toolkit/source/browse/changes/kpr...
>
> > > maybe there is more of information in the xml file (in sampleInput-
> > > folder):
>
> > > in the last part with js / storyref... but i miss there also the line
> > > numbers of the function.
>
> > This change branch looks like it is out-dated.
>
> It actually is, as it has been deleted ;-)
>
> Search for " inhttp://google-web-toolkit.googlecode.com/svn-history/r4195/changes/kp...
>
> I don't know how to process this info though (but as soyc-vis will do
> it for you, no need to worry that much ;-)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT RPC Security Concern

2009-03-11 Thread Adligo

This is true until you start passing rpc objects that describe what
they are going to do on the server.

For instance a rpc service like;
getAnimal(String name)

If the vet should be the only person able to get the 'Bob Cat' and
'Cobra' but the nurse can get the 'Dog' and 'Cat'...

For methods like this you need to add isUserInRole checks inside your
rpc servlet (in addition to you http filter).  You can either check in
the rpc method or
use something like this class, to put all of this type of security
code in a common place;

http://cvs.adligo.org/viewvc/adi_gwt_rpc_servlet/src/org/adligo/i/adi/server/rpc/AdiControllerServlet.java?view=markup

Cheers,
Scott

On Mar 10, 2:31 pm, DavidPShaw  wrote:
> Doing security in a Servlet Filter is the way to go.  It could be
> Acegi or something homegrown, but as long as you filter on security
> before you chain to the servlet, you're good to go.
>
> On Mar 6, 8:25 pm, lineman78  wrote:
>
> > Generally there should not be any problems with you using SSL in your
> > application.  That being said, there are a few ways you could have got
> > yourself into trouble when trying to switch over.
>
> > 1) You did not use GWT.getModuleBaseUrl when creating your RPC classes
> > or making local references.
> > 2) If you are using flash that is doing data/object requests locally
> > it sometimes has issues with SSL.
> > 3) You may need to add aliases to your SSL cert as it was generated
> > with what you installed the app server with.
>
> > Good luck with your ventures into the security world :)
>
> > On Mar 6, 1:30 pm, erincarikan  wrote:
>
> > > I am planning to make it a ssl application, so that nobody can
> > > eavesdrop, malform login data, As far as I know, I don't need to
> > > modify anything(code) in gwt project to accomplish that, right? I
> > > believe that web server should be handling all those details. Is there
> > > any drawbacks about using ssl? Also in addition to that Acegi seems
> > > like a good way to go. I just read an article about setting that up,
> > > it seems a little bit complicated, but I believe after painful set up
> > > I'll be able to add another page to my resume:)
>
> > > On Mar 6, 2:25 pm, lineman78  wrote:
>
> > > > Yes, this approach can work, but there is one small drawback.  If you
> > > > aren't planning on making it a ssl application you will have to use
> > > > ssl for the rpc/json authentication request.  This is so that the
> > > > packets cannot be intercepted on unsecure wireless.  I believe
> > > > container managed security has this built in.  There are some
> > > > approaches that work around this, such as md5 hashing on the client
> > > > side before sending, all make it more difficult, but none are as
> > > > secure as ssl.  The drawback to container managed security is that the
> > > > default authenticator is not friendly and ugly.  You would have to
> > > > deploy an unauthenticated jsp or jsf to do pretty authentication that
> > > > would forward you once authenticated.  You might also consider LDAP,
> > > > CAS or Open SSO as other forms of authentication that have a lot of
> > > > infrastructure provided.
>
> > > > On Mar 6, 11:56 am, erincarikan  wrote:
>
> > > > > Thanks for the reply, Frankly I never used container managed security
> > > > > before, but now I am reading about it. Another approach I was thinking
> > > > > about was checking encrypted passwords in servlet from the db,  I
> > > > > found something like this in the wiki which looks like a simple and
> > > > > good approach to me:
>
> > > > >http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecur...
>
> > > > > On Mar 6, 1:20 pm, lineman78  wrote:
>
> > > > > > I believe that if you use container managed security for your entire
> > > > > > GWT app it will require authentication to access the servlets too.  
> > > > > > In
> > > > > > fact I just tested it and that is correct(FROM ACCESS LOG:
> > > > > > '"127.0.0.1" "matt" "06/Mar/2009:18:17:36 +" "POST /SEESuite/
> > > > > > rssParser HTTP/1.1" 200 3082' notice this request is authenticated 
> > > > > > as
> > > > > > the user "matt").  We are doing this Unfortunately if you are 
> > > > > > handling
> > > > > > your own security

Re: Dealing with session timeout and container managed security

2009-03-08 Thread Adligo

Hi All,

   I use a timer in the gwt app to ping the server so that the session
doesn't expire.  If the user loggs out or closes the browser window
the timer stops pinging the server and the session times out.  This
has its flaws for sure!
   For instance the user logged in at a public computer and forgets to
close the browser window or log out.
   But at least I don't need to catch failures in every rpc/ajax call
to try to figure out if the session expired.
  I suppose people could call this 'server push' but I generally have
issues with the terms 'push and pull' in computer architecture.

More comments are in this class;
http://cvs.adligo.org/viewvc/gwt_util/src/org/adligo/gwt/util/client/BaseController.java?view=markup

Cheers,
Scott


On Mar 7, 3:31 am, marcelstoer  wrote:
> What do you mean by "server push"? Could you maybe elaborate on your
> approach a little, thanks.
>
> On Mar 6, 5:11 pm, Rakesh  wrote:
>
> > we use server push for session time out and it works really great!
>
> > On Feb 28, 1:26 am, marcelstoer  wrote:
>
> > > Is there some consensus or best practice in the GWT community as for
> > > how to deal with session timeout and container managed security? There
> > > are some pointers if you search for this subject, but some of the
> > > ideas are wild...
>
> > > In my case I use the Servlet container's built in security features
> > > for authentication as described in the Servlet specification. Hence,
> > > in my web.xm I protect access to the GWT application like so:
>
> > >   
> > > 
> > >   my app
> > >   /app/*
> > >   GET
> > >   POST
> > >   PUT
> > >   DELETE
> > > 
> > > 
> > >   *
> > > 
> > >   
>
> > >   
> > > FORM
> > > 
> > >   /public/login.jsp
> > >   /public/login.jsp?retry=true
> > > 
> > >   
>
> > >   
> > > *
> > >   
>
> > > So, the application (host/bootstrap page, RPC Servlet, etc.) is in the
> > > "app" folder and the login form (login.jsp) is in the "public" folder.
> > > This works flawlessly except for the session timeout use case.
> > > The application sends an RPC request to /app/AppServlet, the Servlet
> > > container requires authentication because the session had timed out
> > > and dutifully *forwards* to the login page. Hence, the result of the
> > > request is not some RPC/JSON/XML object as expected by the client but
> > > the login page HTML structure. The client simply isn't prepared for
> > > that and freezes i.e. doesn't do anything.
>
> > > I believe that on the server side everything is set up correctly. If
> > > the session timed out the requests don't even reach the RPC Servlet
> > > because it's intercepted by the container, fine.
>
> > > But how do you deal with this in the client?
> > > Should one write some custom AsyncCallback class that handles the
> > > reponse sent by the container?
>
> > > Thanks for your feedback.
> > > Marcel
--~--~-~--~~~---~--~~
You received 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: JAAS and GWT

2009-03-06 Thread Adligo

Hi All,

   I think spring security uses 'Jaas' although I haven't checked.
In the past I have written 3 different Jaas modules for different
companies,
and I am working on a 4th Jaas product to sell that is specifically
designed for GWT.  Basically you call the Jaas login code in your
login rpc or regular http url call over ssl (https), then you stick
the Jaas Subject (User object) in the Servlets Session.   Then you
have some sort of filter (HttpFilter or better yet Override of RPC
Servlet) to check if the user is in the role necessary to do
something.
   You can use a Http Filter (I think spring does this), or better yet
take a look at the comments in this class;
http://cvs.adligo.org/viewvc/adi_gwt_rpc_servlet/src/org/adligo/i/adi/server/rpc/AdiControllerServlet.java?view=markup

Cheers,
Scott

On Mar 5, 9:40 pm, Arthur Kalmenson  wrote:
> I can't comment about JAAS, but we use Spring Security for
> authentication and authorization here. I think the concept would apply
> to any security framework. You first need to authorize users, for
> which there are a number of solutions. Spring Security comes with an
> authentication servlet that you can submit data to by using a
> FormPanel. Another approach (the one we're taking), is to use standard
> GWT-RPC to send a User object to the server and authenticate that.
>
> After you have the user authenticated, you want to authorize them to
> enter specific areas. This has to be done manually in GWT. We handle
> client side authorization in our HistoryListener implementation (we
> have a little framework to handle history changes), but it's
> non-the-less a manual process where you have to get the current user
> from the server (you can't trust what the client is carrying), and
> depending on the user's permissions, determine if they can view the
> specific area.
>
> However, in the end, this doesn't really protect you because the user
> can still modify the User object or can forge requests to your
> servlets. Therefore, to restrict specific server side services, you
> need to implement method based security. I'm not sure how it works in
> JAAS, but in Spring Security you just annotate your methods with
> @Secured("ROLE_ADMIN") and only admins can execute the secured method.
>
> Hope that helps!
>
> --
> Arthur Kalmenson
>
> On Thu, Mar 5, 2009 at 10:28 AM, tjmcc18  wrote:
>
> > I've seen several posts regarding using JAAS with GWT, but not a lot
> > of answers.  I'm trying to wrap my brain around how to use these two
> > technologies together to perform user authentication and
> > authorization.
>
> > The concept of using JAAS authentication with GWT seems straight
> > forward enough.  I can create a custom LoginModule that verifies the
> > login information. But how would I then do authorization?  For
> > example, lets say I have a GWT servlet that I want to restrict to
> > admin users?
>
> > Has anyone done something like this before?  Any general thoughts on
> > how to do this or a better way to do authentication/authorization with
> > GWT would be appreciated.  Thanks,
>
> > -TJ
--~--~-~--~~~---~--~~
You received 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: What are your thoughts on Cappuccino and SproutCore?

2009-03-01 Thread Adligo

Hi All,

   I agree with gregor (on lots of things not just this
thread :)  ...) , the JRE emulation of GWT will prove to be deciding
factor in the long run.   For instance if you wanted to package your
logic with your data in the true Object Oriented fashion, GWT provides
a way to move the code from Server to Browser so you can move where
the work is getting done;

//For instance;
Mortgage mort = new Mortgage();
mort.setRate(6.5);
//72 months
mort.setLength(72);
//more setters exc...
List  payments = mort.calcPayments();

With GWT you can just set the data from GWT text fields and calc the
payments all in java script, or on the server fill it up from a
database and calc for a print out of a mortgage agreement exc...
  With all other AJAX libraries I have looked at you would need to re
write you code in two languages, to achieve this!

   In addition I have ported apache commons logging (i_log) to work in
GWT, so you have a way to debug your calcPayments method where ever it
runs.
   I have not started work on having i_log direct it's messages
through log4j or suns internal java logging api but I will probably
get to that this year.  But you can use i_log server side for log FILE
output now.

Cheers,
Scott

On Feb 28, 7:48 pm, Arthur Kalmenson  wrote:
> There's a drag-n-drop project already:http://code.google.com/p/gwt-dnd/. It's 
> run by Fred Sauer who was
> recently hired by Google.
>
> --
> Arthur Kalmenson
>
> On Fri, Feb 27, 2009 at 1:00 PM, Rich Dean  wrote:
>
> > Does anyone know what the equivalent GWT UI development tool would
> > be?  I played around with GWT about a year ago so I am assuming there
> > are some better tools out there for drag-n-drop development of a GWT
> > UI?
--~--~-~--~~~---~--~~
You received 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 Debug/Trace client side code when deploying Tomcat

2009-02-27 Thread Adligo

Hi,

   If you use the commons logging port i_log (GPL2) that I wrote, you
can use it in production settings (when gwt is actually running in a
web browser).  It sends log messages over rpc, and you can display
them via the Adligo Gwt Log Server (Costs $$), or you can just send
them to your a file via log4j on the server side (Costs Your Time).

http://www.adligo.com/#Products
http://www.adligo.com/#Source
(source and compiled jars)
http://www.adligo.com/dist2/gwt/gwt_main_v3_0/
(last nights build)

Example bootstrap
http://cvs.adligo.org/viewvc/gwt_util_demo/src/org/adligo/gwt/util/demo/client/UtilEntryPoint.java?view=markup

public void onModuleLoad() {
// just info
//String log_config_file = "adligo_log.properties";

try {
GwtPlatform.init();
new GwtLogFactory();
} catch (Exception x) {
x.printStackTrace();
log.error(x.getMessage(), x);
}

You need these jars (i_util, i_log, adi, gwt_util).

adligo_log.properties comes from your public folder (where your
module.html file is).


Cheers,
Scott



On Feb 26, 12:14 pm, joe young  wrote:
> Hi Allahbaksh, Arthur and mars1412~
>
> Thanks for your suggestions!! FireBug suits me perfectly Thanks
>
> I found out that while building the children node with recurrsive
> method, it stops when I set the node to disable()
>
> if (theObject.getDeprecated().equals("1")) {
> childTreeNode.disable();   <---
> this will stop the funciton and the tree cannot built.
> } else {
> childTreeNode.enable();
> }
> firebug give me this error:
> this.getOwnerTree() is undefined
> [Break on this error] Ext.tree.TreeNode=function(A){A=A||{};if...
> (this.ui.destroy){this.ui.destroy()}}});
>
> and chrome's javascript console output this error
> Uncaught TypeError: Cannot call method 'getSelectionModel' of
> undefinedhttp://localhost:8084/DMTAdmin/com.DMTAdmin/js/ext/ext-all.js
> (line 102)
>
> What is that suppose to mean and how can it be resolve?!?!
>
> Thanks again for your help!
>
> On Feb 26, 5:55 am, Allahbaksh Asadullah 
> wrote:
>
> > Hi,
> > As Martin pointed out you can use FireBug or Google Chrome inbuilt
> > feature. But if you have problem debugging on different browser on
> > your platform then I would suggest the build of OOPH is what is
> > required. By using OOPHM you can debug your application on any browser
> > of your choice.
>
> > Building OOPHM is simple and it is listed on my 
> > bloghttp://allahbaksh.blogspot.com
> > Regards,
> > Allahbaksh Mohammedali Asadullahhttp://allahbaksh.blogspot.com
>
> > On Feb 26, 2:26 pm, mars1412  wrote:
>
> > > you could use firebug for firefox
> > > it will display the logmessages in the console
> > > also Iron (type of Chrome) has a java-script console where you can see
> > > the logs
>
> > > On Feb 25, 8:35 pm, joe young  wrote:
>
> > > > I'm using NetBeans to develope my GWT applicaiotn.
>
> > > > Everything works fine when i deploy to gwt-shell-hosted.  However when
> > > > I deploy to tomcat 6 with netbeans,  many little problems occur. Such
> > > > as.
>
> > > > I have a TreePanel that display all the regions. When the TreePanel
> > > > first create, it will call RPC to retreive data
> > > > service.getGeoRootNode(new AsyncCallback() {
> > > > public void onSuccess(Object result) {
>
> > > > GeoNode rootNode = (GeoNode) result;
>
> > > > rootTreeNode.setText(rootNode.getNodeDesc());
>
> > > > rootTreeNode.setIconCls(rootNode.getNodeName() + "-
> > > > icon");
>
> > > > buildChildTreeNode(rootNode, rootTreeNode);  // build
> > > > the children nodes
>
> > > > setRootNode(rootTreeNode);
> > > > }});
>
> > > > However the tree building stop right after the rootNode is created.  I
> > > > cannot trace the code because GWT.log() cannot print to tomcat logging
> > > > (I'm using log4J for server side logging) thus I don't know what
> > > > happen
>
> > > > Question1: How can we trace the client side code? Is it possible that
> > > > ask GWT.log dump to log4J?
>
> > > > Question 2: Is it because  buildChildTreeNode(rootNode, rootTreeNode)
> > > > is outside of onSuccess() so it cannot be run??
>
> > > > Thanks for your help in advance!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: MVC + RPC architecture

2009-02-25 Thread Adligo

Hi charles,

  I have also written and open sourced a mvc architecture (gwt_util
and gwt_util_demo) projects at;
http://www.adligo.com
It is designed specifically to be used with storage (databases, ldap
servers, files exc).  It also has a logging framework, so you can
figure out whats going on in my gwt mvc classes.
  Give the large number of gwt mvc architectures out there I would
have to say it is a good idea.   On thing it took me years to realize
(due to falling asleep in computer science 1?) is that mostly when you
hear the words re-use they pertain to re using a design (like mvc,
observers, command patters, exc) and not actual code (although that is
quite useful too).

Cheers,
Scott

--~--~-~--~~~---~--~~
You received 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 enable logging in tomcat lite during hosted mode

2009-02-13 Thread Adligo

Well to start with what do you mean by normal, and default.  If your
referring to Log4j or ApacheCommons logging which I believe Tomcat
uses you probably just need to copy the config files (log4j.properties
or log4j.xml, or commons_logging.properties or some combination of
them) into the directory where tomcat lite runs.
   If your running from eclipse (i'm using the GWT Designer), then it
will pick these up from your src directory.  If you need log info from
your GWT client, check out my port of commons logging to GWT;
http://www.adligo.com
http://cvs.adligo.org/viewvc/

There is a project gwt_util_demo.
I also use my commons logging port server side so in my case I have
adligo_log.properties in a few locations;
src/adligo_log.properties (Servlets/J2EE jvm)
and
src/my_package/public/adligo_log.properties (Javascript/GWT)

Note my port doesn't create a file, but loggs to System.out on the
server which ends up in the Tomcat server.log, or on the console in
eclipse.

Cheers.
Scott

On Feb 12, 1:26 pm, "farrukh.n...@gmail.com" 
wrote:
> I am new to GWT and did not find answer to my question in archives.
>
> I would like to be able to configure tomcat lite so it generates the
> tomcat log as is the case by default in normal tomcat. At the moment I
> am not sure where the tomcat lite files are located and what I need to
> change to enable logging. Any help would be terrific.
>
> On a separate note why does Tomcat Lite turn of logging by default as
> opposed to have it on by default and describe how to turn it off.
>
> Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Implementing Throwable getStackTrace()

2009-02-05 Thread Adligo

Hi All,

  I am interested in implementing Throwable getStackTrace() in the
actual browser JavaScript.  I realize it works in hosted mode when
running in a actual JVM.  Is this even possible since the auto
generated JavaScript is so different from the Java or was it just not
attempted?
   I do remember seeing the line number of JavaScript errors in IE and
Firefox during the years when I used to write JavaScript by hand.
Could the GWT compiler simply figure out where the Exception is
getting thrown by looking for lines like;

   new Exception();

And then put the line from the Java source code along with the class
into the JavaScript

I realize actually going up the stack would be difficult since it
would require something like reflection/native jvm calls.  But even
one StackTraceElement might make GWT much more user friendly.

Cheers,
Scott
--~--~-~--~~~---~--~~
You received 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: What are you using for a backend??

2009-01-21 Thread Adligo

Hey,

   I used java RPC and .net (C#) HttpHandlers JSON (mostly due to a
office climate).  I found with GWT 1.4 and 1.5 java was easier to deal
with on the server side.  Also in GWT 1.5 localhost running on a
different port got a GWT security Exception so that java with RPC wins
hands down in my opinion.  It is at least twice as fast to develop
with when using Eclipse and the GWTDesigner (wisiwig).
   Going forward I will only be using java serverside.

Cheers,
Scott

On Jan 21, 7:04 am, sloughran  wrote:
> Hey guys,
>
> Thank you for all the information. This question is for my home use
> side of things where I am looking for cheap web hosting with a DB to
> drive my GWT App. So, I think to remain affordable, I will try my hand
> at JSON and PHP or PYTHON. I've heard great things about PYTHON, but I
> also know PHP is everywhere. Thanks again, all very good answers!
>
> On Jan 21, 4:27 am, Chris Lowe  wrote:
>
> > Hello,
>
> > I had better luck finding a host for for my Java stack by looking for a
> > regular VPS rather than looking for "dedicated J2EE" (or Tomcat) hosting.
> > There are loads out there but I've 
> > useshttp://rimuhosting.com/order/planselector.jspforthe last 18 months or so
> > and they've been pretty good.
>
> > As usual, the server/host that you choose depends on your application's
> > needs, expected server load etc.  Amazon EC2 could also be worth a look -
> > you can add or remove hardware on the fly which is a great way to handle the
> > Digg effect.  However, the cost of their most basic server configuration may
> > be more expensive when compared to a cheap VPS config.
>
> > For the Java side of things, again there's plenty of choice as to which
> > framework that you use, but I've had very favourable experiences with JBoss
> > Seam (http://seamframework.org/) - there's a section in their reference docs
> > for using GWT plus there is an example in the source code.
>
> > Good luck,
>
> > Chris.
>
> > 2009/1/21 davidroe 
>
> > > I run a back-end using Apache/mod_perl using AxKit and XSL to convert
> > > XML into JSON.
>
> > > have you investigated a web host like slicehost.com? they provide you
> > > with a virtual machine which you can install any OS and back-end you
> > > choose.
>
> > > /dave
>
> > > On Jan 20, 5:24 am, sloughran  wrote:
> > > > So, in my messing around with GWT for the past year or so, I have been
> > > > using RPC's to communicate to the server. The thing is, my projects
> > > > have never gotten past my Eclipse project, so my "server" has just
> > > > been a folder on my computer.
>
> > > > I am looking at web hosting companies and I just see things like PHP,
> > > > RUBY, PERL and such being allowed. I am not seeing JAVA being allowed,
> > > > which I would need for my RPC's.
>
> > > > So, my question is, what do people use for server side code? Do you
> > > > use a web host with JAVA allowed? Do you use PHP and talk to it
> > > > through HTML gets?
--~--~-~--~~~---~--~~
You received 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 applications memory management

2009-01-17 Thread Adligo

Hi All,

   I have been writing GWT assuming that it did garbage collection
similar to the way that java does, or in other words it looks for
Objects (chunks of memory) which don't have any active references
pointing to them and removes those from the heap via the garbage
collector.   Is this general assumption correct?


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



Re: Why use GWT?

2008-11-23 Thread Adligo

I found this list VERY IMPRESSIVE!

http://instantiations.com/mktg/customers_gwtd.html

Cheers,
Scott

On Nov 22, 8:58 pm, adam <[EMAIL PROTECTED]> wrote:
> I see herehttp://docs.jquery.com/Sites_Using_jQuerythat lots of big
> projects, most of which are probably led by some smart, deep-thinking,
> open-minded individuals, are using jQuery and hand-written javascript.
> I notice that this list of projects using 
> GWThttp://www.ociweb.com/mark/programming/GWT.html#WhoIsUsingItdoesn't
> look as impressive.
>
> Why are leaders on big projects deciding to use tools other than GWT?
> Do they have any good reasons to not use GWT? Should they use GWT? If
> so, why?
>
> If this has already been covered in another post, please point me to
> it; no need to reinvent the wheel.
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Animations

2008-11-23 Thread Adligo

Hi,

  I did some basic animation at adligo.com, basically just a
absolute panel with Timers that move the labels for the A and dligo
and the panel for the tabs.  The timers are set to run like the frames
of a movie.  I haven't checked out the GWT Animation kit, but I'm sure
it's great
  It would be nice if someone wrote a sound API for gwt (or
wrapper for the flash sound plugin), then people could write full
blown video games in GWT!
.
Cheers,
Scott

On Nov 22, 5:12 am, tapan <[EMAIL PROTECTED]> wrote:
> How can i create excellent animations with GWT. please help
> urgent.
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



My Hack to Get The Browser Scrollbars Useable

2008-11-17 Thread Adligo

Hi All,

   So I just reworked adligo.com to use all mostly gwt (did some basic
animation).  One thing I got caught on for a bit was the browser
scroll bar was disabled when the content was longer than the browser
window.  The fix ended up being;

rootPanel = RootPanel.get();
rootPanel.setStyleName("a_roman_back");

MainPanel main = new MainPanel();
rootPanel.add(main);
main.setSize("100%", "300%");

Should the GWT platform simply check for overflows and enable the
browser scroll bars somehow?

This would be nice, since my hack could still overflow.

Cheers,
Scott
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: remote debugging with Jetty and GWT?

2008-10-16 Thread Adligo

Hi Mark,

   Try the adligo port of apache commons logging.
 http://www.adligo.com/products.html

example
http://cvs.adligo.org/viewvc/gwt_util_demo

Entry point is under
src/org/adligo/gwt/util/demo/client/UtilEntryPoint.java?view=markup

You will need all these jars (execpt j2se_util_v1_2.jar)
http://cvs.adligo.org/viewvc/dist/gwt/gwt_main_v1_2_8/

Let me know if you need any help, it basicly send ajax calls to a
servlet (or any type of server code) with the log messages.  If you
wan't my servlet (log console popup) code its for sale, or you can
write your own to accept log messages and directed it to the log
plaform of your choice (log4j, j2se logging exc).

Cheers,
Scott



On Oct 15, 12:07 pm, "Sumit Chandel" <[EMAIL PROTECTED]> wrote:
> Hi Mark,
> If you're debugging with hosted mode with the -noserver option, essentially
> using your own Jetty server, couldn't you use Jetty's logging mechanism for
> your server-side logging?
>
> You should be able to find more details about it at the link below:
>
> http://jetty.mortbay.org/jetty5/tut/logging.html
>
> Hope that helps,
> -Sumit Chandel
>
>
>
> On Sun, Oct 12, 2008 at 11:29 PM, markww <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I'm using Jetty 6.x as my web server. Does anyone know how to setup
> > remote debugging with GWT? It's difficult debugging via print
> > statements..
>
> > Thanks- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Commons Logging for Libraries

2008-08-29 Thread Adligo

Hi All,

   I went down this course and pretty much knocked it out (it also
works on J2ME).  With one cavaet you need to fetch your log instances
in member methods.
http://cvs.adligo.org/viewvc/
i_log project
depends on i_util and gwt_util for gwt runtime
See the dist package for compiled code

and some examples
http://www.adligo.com/products.htm

Cheers i buy into commons logging!,
Scott



On Jul 15, 12:42 pm, jarrod <[EMAIL PROTECTED]> wrote:
> Fred, and all,
>
> I put up my first version of a GWT port of CommonsLogging:
>
> http://www.assembla.com/wiki/show/mkdev/GWT_Commons_Logging
>
> No, it isn't done, but I've got a ball rolling. Documentation and
> adapters for existingloggingmechanisms will come next.
>
> Anyone interested in helping, please contact me!
>
> On Jul 13, 6:21 pm, "Fred Sauer" <[EMAIL PROTECTED]> wrote:
>
> > Jarrod,
>
> > On Sun, Jul 13, 2008 at 3:56 PM, jarrod <[EMAIL PROTECTED]> wrote:
>
> > > Fred,
>
> > > I took a look at your library - thanks for the pointer. It looks like
> > > we share a number of ideas.
>
> > > Having seen a fewloggingimplementations now, I've seen some things l
> > > like, and some others I don't.
>
> > > For example, I like the idea of using RPC to send the log back to the
> > > server, but that shouldn't be the only option.
>
> > > Yes, using a common means of accessing log functions from a bean on
> > > both client and server is one of my goals, but here are some
> > > additional goals:
>
> > > - Provide support forlogginglevels and categories (at least in my
> > > implementation of LogFactory)
>
> > This is 'planned', as is the ability to configure log format (a la
> > LayoutPattern). Not there yet, though.
>
> > Currently there is one global compile-time log level (determines how much
> >loggingcode is stripped out of your application), and a run-time level to
> > temporarily control the flow. No categories (yet).
>
> > - Providelogging"panel" that works in web mode. I've seen adapters
>
> > > for Firebug and so on, so reusing existing log mechanisms should be a
> > > snap
> > > - Provide a chainable log wrapper that allows the client to log to
> > > multiple places (maybe both a local buffer and back to the server)
> > > - Couldloggingbe done in a pop-under window in web mode?
> > > - This is HTML, so a style sheet for web mode to color code logs would
> > > be nice.
>
> > gwt-log actually has several destinations, which I think mostly cover your
> > additional use cases:
>
> >  *Logger* *Description*  ConsoleLogger Utilizes console.log() for supporting
> > browsers and installed JavaScript libraries.  FirebugLogger Utilizes
> > Firebugconsole 
> > APIlogging:http://www.getfirebug.com/console.html DivLogger Utilizes a
> > floating/draggable DIV for log messages.  GWTLogger Utilizes GWT.log(),
> > which will appear in the development shell in hosted mode.
> > SystemLogger Utilizes
> > System.err and System.out.  RemoteLogger Sends copies of client log messages
> > to the server via RPC.  WindowLogger (Experimental) Logs messages to a
> > separate window.
> > Each can be toggled on/off separately via your *.gwt.xml files, so you can
> > have as many or few as you want.
>
> > > Beyond that, it's a matter of getting other log packages to buy into
> > > the common framework. :-)
>
> > > I do have a project page I'm getting up and working for my stuff. I'll
> > > post it here when it's ready-ish.
>
> > Sound good. I'd like to see it.
>
> > On Jul 13, 5:30 pm, "Fred Sauer" <[EMAIL PROTECTED]> wrote:
>
> > > > Jarrod,
>
> > > > I think the general problem is thatloggingtypically allows for quite a
> > > bit
> > > > of runtime control overlogginglevels and categories, but that GWT
> > > really
> > > > shines in its ability to optimize via static analysis and monolithic
> > > > compilation. Also,loggingon the client (in this case hosted mode or a
> > > web
> > > > browser) does have some unique constraints associated with it. That is 
> > > > to
> > > > say, there's not too many places you can actually send the log messages
> > > from
> > > > the browser sandbox.
>
> > > > As the author of gwt-log (http://code.google.com/p/gwt-log/), I do think
> > > I
> > > > provide the next best thing, which is to at least allow you to:
>
> > > >1. Use the same Javaloggingmethods on the client and on the server
> > > >(which means in your POJOs and whatever else goes over the wire)
> > > >2. Have these log messages from server-side code automatically flow
> > > into
> > > >log4j or java.utillogging(sorry, didn't write it for commons)
> > > >3. Have these log messages from client-side code (even in web mode) 
> > > > be
> > > >sent to the server via RPC (see RemoteLogger) where they too go to
> > > log4j or
> > > >java.utilloggingdestinations
>
> > > > I think you're right that the next step is to take all of that and just
> > > wrap
> > > > it in a compatible (seemless) API that can be GWT compiled so that you
> > > ca

static initalizer (commons logging)

2008-08-29 Thread Adligo

Hi All,

   I have sucessfully ported apache commons logging so that it can be
used from GWT as well as J2ME (I did this for a cell phone vid).

The code is at:
http://cvs.adligo.org/viewvc/

A demo is here;
http://www.adligo.com/products.html
(Server and log console popup are whats for sale, but you could
probally write your own in a person day or so)

However I ran into a snage with initalization that I believe can be
fixed by a edit to the GWT compiler.

The problem is that the only way to get the code to initalize so that
the LogFactory works correctly is to put some initalization code in
the onModuleLoad(), and even after thats done logs are only available
by putting code to fetch the Log implementaions in object methods
(ie);
public void foo() {
Log log = LogFactory.getLog(String.class);
}

In other java environments log initaliztion is usually done with a
static intalizer (ie);

public class MyEntryPoint extends EntryPoint {
static {
  //log init code goes here
   }
   //other entry point code
}

So that Logs can be obtained in a static way;

public class Foo {
   public static final Log log = LogFactory.getLog(Foo.class);
}

I would like to see the GWT compiler support the static initalizer and
call it before constructing the Entry Point class.   This would enable
java that is compiled for java script as well as servlet code to be
constructed with the best logging practices.

Cheers,
Scott

--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---