Subversion Access with File Writing/Reading

2010-08-12 Thread day_trader
My web service, written in GWT (with GXT) needs an XML configuration
file. At the moment, the file is in my resources area. Therefore, by
calling a service on my server, it will grab the file, unmarshall it
with JAXB etc, etc, etc.

However, at some point, I will need to access subversion. This will
allow me to: Check one of many configuration files... edit it in my
application if need be and 'save' (i.e. marshall everything back into
xml and then commit into subversion).

I also need a way to create a 'blank file', in case a user wants to
'start fresh' and build their own configuration from scratch, thereby
using subversion once the XML file is created.

What would be the best way to do this, if it is deployed in Tomcat?
From what I understand.. there is something called 'Sandbox' in the
app engine? Is this the kind of thing I want?

Thank you kindly,

Malcolm.

-- 
You received 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: Subversion Access with File Writing/Reading

2010-08-12 Thread day_trader
This application is going to be used at multiple locations by multiple
users. Therefore, allowing users to create their own configs, or
choosing a default or another user's config. This requirement means
there has to be a 'central location' for all configs... subversion is
the best idea I thought? What is the 'datastore'?

On Aug 12, 12:45 pm, cokol eplisc...@googlemail.com wrote:
 you can also store the XML file in the datastore, why do you want to
 use versioning control? or do u also want to support diffs? by
 sandbox is meant that GAE does not provide more than a servlet
 container, even less, as there are some restrictions like JNDI or
 FileIO is not permitted.

 On 12 Aug., 13:30, day_trader mwmcmul...@gmail.com wrote:



  My web service, written in GWT (with GXT) needs an XML configuration
  file. At the moment, the file is in my resources area. Therefore, by
  calling a service on my server, it will grab the file, unmarshall it
  with JAXB etc, etc, etc.

  However, at some point, I will need to access subversion. This will
  allow me to: Check one of many configuration files... edit it in my
  application if need be and 'save' (i.e. marshall everything back into
  xml and then commit into subversion).

  I also need a way to create a 'blank file', in case a user wants to
  'start fresh' and build their own configuration from scratch, thereby
  using subversion once the XML file is created.

  What would be the best way to do this, if it is deployed in Tomcat?
  From what I understand.. there is something called 'Sandbox' in the
  app engine? Is this the kind of thing I want?

  Thank you kindly,

  Malcolm.

-- 
You received 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: onSuccess() return value other than void?

2010-07-07 Thread day_trader
This is where I am rather confused. As when i move it to
a package which isn't named in the .gwt.xml file I receive
an error of cannot be resolved to a type. Which is fair enough,
as I assumed everything in the .gwt.xml was putting the classes
in 'view' of everything in the application? Or perhaps I'm very
muddled up!

Sorry for the continued annoyance! I very much apologise.

Malcolm

On Jul 7, 5:11 am, Sunny pratik.sachd...@gmail.com wrote:
 Hi day_trader

 As far as i can think is that you are trying to pass an object with
 the data of the class..

 now to make your class go to the server side all you need to do is to
 move it to a package that is in the package that is *not* mentioned in
 your your_gwt_xml.gwt.xml file as the classes in these
 packages,which are mentioned in the gwt.xml file, get ajaxified and
 sent on to the client.

 Hope this helps.

 Sunny.

 On Jul 6, 5:04 pm, day_trader mwmcmul...@gmail.com wrote:



  Thanks for the replies thus far.

  That all makes sense. I did have strong doubts about the likelihood of
  what I wanted but as I am not an expert in the field I thought it was
  better to make sure.

  Actually, my problems would be solved quite quickly if I got around my
  initial problem that led to this posting. Basically, there is a class
  in my client side, under myApp.client.models.SomeModel that I need to
  pass to the server. The problem is that the server cannot see this
  class as I get an error when I try to compile it. My question is: How
  do I check if the class is on my SERVER classpath?

  Thanks :)

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



Re: onSuccess() return value other than void?

2010-07-07 Thread day_trader
It could possibly be because I am using Enunciate to develop my
application with. Here is my complete error:

[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Problem assembling the enunciate app.

Embedded error: Class not found: TreeModel

I've just tried putting TreeModel into my gwt.xml file : inherits
name='com.myApp.client.models.TreeModel'/ however this doesn't appear
to work either. I have posted this to the Enunciate Mailing List as
well, so hopefully one of those guys can enlighten me if it's a
probably with Enunciate and not GWT/GXT.

Malcolm

On Jul 7, 9:28 am, andreas horst.andrea...@googlemail.com wrote:
 Sorry, it's war/WEB-INF/classes/.

 On 7 Jul., 10:26, andreas horst.andrea...@googlemail.com wrote:



  You do not have to move something out of 'client' packages to have it
  on your server. This is definitely wrong!

  You do have to move classes you want to have on the client or both
  client and server into the client packages (or declare those packages
  in your *.gwt.xml files).

  Since you want your class to be passed from the client to the server
  this class definitely needs to be in your 'client' package. I don't
  know why you get an error on compiling, maybe you can give more
  informations on this one. GWT compiles all Java files (also those in
  'client') to .class files in your war/WEB-INF/src/ folder so all
  classes will be accessible on the server.

  Andreas

  On 7 Jul., 10:02, day_trader mwmcmul...@gmail.com wrote:

   This is where I am rather confused. As when i move it to
   a package which isn't named in the .gwt.xml file I receive
   an error of cannot be resolved to a type. Which is fair enough,
   as I assumed everything in the .gwt.xml was putting the classes
   in 'view' of everything in the application? Or perhaps I'm very
   muddled up!

   Sorry for the continued annoyance! I very much apologise.

   Malcolm

   On Jul 7, 5:11 am, Sunny pratik.sachd...@gmail.com wrote:

Hi day_trader

As far as i can think is that you are trying to pass an object with
the data of the class..

now to make your class go to the server side all you need to do is to
move it to a package that is in the package that is *not* mentioned in
your your_gwt_xml.gwt.xml file as the classes in these
packages,which are mentioned in the gwt.xml file, get ajaxified and
sent on to the client.

Hope this helps.

Sunny.

On Jul 6, 5:04 pm, day_trader mwmcmul...@gmail.com wrote:

 Thanks for the replies thus far.

 That all makes sense. I did have strong doubts about the likelihood of
 what I wanted but as I am not an expert in the field I thought it was
 better to make sure.

 Actually, my problems would be solved quite quickly if I got around my
 initial problem that led to this posting. Basically, there is a class
 in my client side, under myApp.client.models.SomeModel that I need to
 pass to the server. The problem is that the server cannot see this
 class as I get an error when I try to compile it. My question is: How
 do I check if the class is on my SERVER classpath?

 Thanks :)

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



Re: onSuccess() return value other than void?

2010-07-07 Thread day_trader
Oops. That was supposed to say:

a 'PROBLEM' with...

On Jul 7, 9:44 am, day_trader mwmcmul...@gmail.com wrote:
 It could possibly be because I am using Enunciate to develop my
 application with. Here is my complete error:

 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Problem assembling the enunciate app.

 Embedded error: Class not found: TreeModel

 I've just tried putting TreeModel into my gwt.xml file : inherits
 name='com.myApp.client.models.TreeModel'/ however this doesn't appear
 to work either. I have posted this to the Enunciate Mailing List as
 well, so hopefully one of those guys can enlighten me if it's a
 probably with Enunciate and not GWT/GXT.

 Malcolm

 On Jul 7, 9:28 am, andreas horst.andrea...@googlemail.com wrote:



  Sorry, it's war/WEB-INF/classes/.

  On 7 Jul., 10:26, andreas horst.andrea...@googlemail.com wrote:

   You do not have to move something out of 'client' packages to have it
   on your server. This is definitely wrong!

   You do have to move classes you want to have on the client or both
   client and server into the client packages (or declare those packages
   in your *.gwt.xml files).

   Since you want your class to be passed from the client to the server
   this class definitely needs to be in your 'client' package. I don't
   know why you get an error on compiling, maybe you can give more
   informations on this one. GWT compiles all Java files (also those in
   'client') to .class files in your war/WEB-INF/src/ folder so all
   classes will be accessible on the server.

   Andreas

   On 7 Jul., 10:02, day_trader mwmcmul...@gmail.com wrote:

This is where I am rather confused. As when i move it to
a package which isn't named in the .gwt.xml file I receive
an error of cannot be resolved to a type. Which is fair enough,
as I assumed everything in the .gwt.xml was putting the classes
in 'view' of everything in the application? Or perhaps I'm very
muddled up!

Sorry for the continued annoyance! I very much apologise.

Malcolm

On Jul 7, 5:11 am, Sunny pratik.sachd...@gmail.com wrote:

 Hi day_trader

 As far as i can think is that you are trying to pass an object with
 the data of the class..

 now to make your class go to the server side all you need to do is to
 move it to a package that is in the package that is *not* mentioned in
 your your_gwt_xml.gwt.xml file as the classes in these
 packages,which are mentioned in the gwt.xml file, get ajaxified and
 sent on to the client.

 Hope this helps.

 Sunny.

 On Jul 6, 5:04 pm, day_trader mwmcmul...@gmail.com wrote:

  Thanks for the replies thus far.

  That all makes sense. I did have strong doubts about the likelihood 
  of
  what I wanted but as I am not an expert in the field I thought it 
  was
  better to make sure.

  Actually, my problems would be solved quite quickly if I got around 
  my
  initial problem that led to this posting. Basically, there is a 
  class
  in my client side, under myApp.client.models.SomeModel that I need 
  to
  pass to the server. The problem is that the server cannot see this
  class as I get an error when I try to compile it. My question is: 
  How
  do I check if the class is on my SERVER classpath?

  Thanks :)

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



Re: onSuccess() return value other than void?

2010-07-07 Thread day_trader
Does not appear to be working even with the source path=''/,
assuming I'm giving the correct path. Is the path of the form of a
directory or package?

On Jul 7, 9:51 am, andreas horst.andrea...@googlemail.com wrote:
 The inherits tag is for inheriting GWT modules not for inheriting Java
 files or similar (afaik).

 You add packages to the GWT translatable sources via source tag:

 source path='client'  /

 This should be enough assuming your GWT module is in 'com.myApp'.

 Andreas

 On 7 Jul., 10:44, day_trader mwmcmul...@gmail.com wrote:



  It could possibly be because I am using Enunciate to develop my
  application with. Here is my complete error:

  [INFO]
  
  [ERROR] BUILD ERROR
  [INFO]
  
  [INFO] Problem assembling the enunciate app.

  Embedded error: Class not found: TreeModel

  I've just tried putting TreeModel into my gwt.xml file : inherits
  name='com.myApp.client.models.TreeModel'/ however this doesn't appear
  to work either. I have posted this to the Enunciate Mailing List as
  well, so hopefully one of those guys can enlighten me if it's a
  probably with Enunciate and not GWT/GXT.

  Malcolm

  On Jul 7, 9:28 am, andreas horst.andrea...@googlemail.com wrote:

   Sorry, it's war/WEB-INF/classes/.

   On 7 Jul., 10:26, andreas horst.andrea...@googlemail.com wrote:

You do not have to move something out of 'client' packages to have it
on your server. This is definitely wrong!

You do have to move classes you want to have on the client or both
client and server into the client packages (or declare those packages
in your *.gwt.xml files).

Since you want your class to be passed from the client to the server
this class definitely needs to be in your 'client' package. I don't
know why you get an error on compiling, maybe you can give more
informations on this one. GWT compiles all Java files (also those in
'client') to .class files in your war/WEB-INF/src/ folder so all
classes will be accessible on the server.

Andreas

On 7 Jul., 10:02, day_trader mwmcmul...@gmail.com wrote:

 This is where I am rather confused. As when i move it to
 a package which isn't named in the .gwt.xml file I receive
 an error of cannot be resolved to a type. Which is fair enough,
 as I assumed everything in the .gwt.xml was putting the classes
 in 'view' of everything in the application? Or perhaps I'm very
 muddled up!

 Sorry for the continued annoyance! I very much apologise.

 Malcolm

 On Jul 7, 5:11 am, Sunny pratik.sachd...@gmail.com wrote:

  Hi day_trader

  As far as i can think is that you are trying to pass an object with
  the data of the class..

  now to make your class go to the server side all you need to do is 
  to
  move it to a package that is in the package that is *not* mentioned 
  in
  your your_gwt_xml.gwt.xml file as the classes in these
  packages,which are mentioned in the gwt.xml file, get ajaxified 
  and
  sent on to the client.

  Hope this helps.

  Sunny.

  On Jul 6, 5:04 pm, day_trader mwmcmul...@gmail.com wrote:

   Thanks for the replies thus far.

   That all makes sense. I did have strong doubts about the 
   likelihood of
   what I wanted but as I am not an expert in the field I thought it 
   was
   better to make sure.

   Actually, my problems would be solved quite quickly if I got 
   around my
   initial problem that led to this posting. Basically, there is a 
   class
   in my client side, under myApp.client.models.SomeModel that I 
   need to
   pass to the server. The problem is that the server cannot see this
   class as I get an error when I try to compile it. My question is: 
   How
   do I check if the class is on my SERVER classpath?

   Thanks :)

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



Re: onSuccess() return value other than void?

2010-07-07 Thread day_trader
I managed to find that after my last post. Whilst they were good links
it still does not seem to work. Something fundamental is wrong but I
can't work out what. I appreciate the help thus far but it appears I'm
in some eternal loop!

-- 
You received 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: onSuccess() return value other than void?

2010-07-06 Thread day_trader
Thanks for the replies thus far.

That all makes sense. I did have strong doubts about the likelihood of
what I wanted but as I am not an expert in the field I thought it was
better to make sure.

Actually, my problems would be solved quite quickly if I got around my
initial problem that led to this posting. Basically, there is a class
in my client side, under myApp.client.models.SomeModel that I need to
pass to the server. The problem is that the server cannot see this
class as I get an error when I try to compile it. My question is: How
do I check if the class is on my SERVER classpath?

Thanks :)

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



onSuccess() return value other than void?

2010-07-02 Thread day_trader
At present, an AsyncCallback contains a 'public void onSuccess()'
method. This is posing significant problems for me at the moment.

I have a method myMethod() being called which has a return value type
of ArrayListString. MyMethod contains this AsynCallback which is
used to query a database on the server side of the code. I need to,
either somehow make the method WAIT for the AsyncCallback's
onSuccess() method to return which is the thing that is giving me the
ArrayListString to return to the code which called myMethod, or
change the return type of the AsyncCallback to ArrayListString and
let this be the 'return' of myMethod.

Is this possible? Am I very confused? Could someone please advise?

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