IE8 Elemental support...

2012-11-19 Thread Felipe Gasparino
Hi All,

I'm experimenting Elemental, and the library sounds pretty cool. I got a 
huge increase in performance.

However, the IE8 is no longer working. 

Does anybody know if Elemental supports ie8 ? Or if not, any workaround to 
suggest?

Thanks! 


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



Re: The RequestFactory ValidationTool must be run for the RequestFactory type

2012-04-20 Thread Felipe Stanham
I Know this is old but I just got stuck with the same problem. Did you ever 
got around this and solved it?

I'm really frustrated, I've tried everything I knew of, everything any blog 
speaks of and still no validation run!

PLEASE HELP!!!

On Sunday, January 15, 2012 12:32:56 AM UTC-2, TULC wrote:

 I'm still stuck on this.  Some projects I've ported to 2.4 now work, 
 but others still just won't budge.  I have tried all the additional 
 steps, but my *DeobfuscatorBuilder.java just won't appear in those 
 projects (event thought the .apt_generated folder does, and is 
 replaced if I change the name).  I have noticed some (though not all) 
 of those projects are now giving me the error build.properties does 
 not exist, which may or may not be related. 

 I'm frustrated to the point I'm considering ditching GWT altogether; I 
 haven't been able to proceed with any GWT development since the 2.4 
 upgrade.  Like the man said, I'm good, really I am, but I just can't 
 figure this one out, and it really shouldn't be this hard.  Thanks for 
 the breaking change. 

 Evan 


 On Dec 14 2011, 12:12 pm, dparish dpar...@gmail.com wrote: 
  I had the same problem. There are two other possible reasons you see 
  this: 
  
  1. Your java compliance level in the project is set to 1.5 
  2. Your classes are already compiled.  I don't know why, but touching 
  the my RequestContext classes had NO affect until I deleted the 
  classes that were compiled before I added annotations.  Now it all 
  works just fine. 
  
  Attention Google: 
  This stuff is w tooo complicated.  I'm good. really I am, but 
  this is just misdirection at it's worst. 
  
  On Nov 20, 5:47 pm, oerten25 ozgur.er...@gmail.com wrote: 
  
  
  
  
  
  
  
   I've been getting the same error and tried the things mentioned in the 
   discussion without any luck. Finally i realised that i don't have the 
   apt_generated folder. So i changed the generated source directory 
   option to something other than apt_generated in Annotation 
   Processing setting. That fixed it. 
  
   On Oct 2, 11:29 pm, TULC evan.a.te...@gmail.com wrote: 
  
I just get the sameerroras posted by Eric at the beginning of the 
thread, but I have copied/pasted the full dump below. 
  
Thomas, I'm not sure what you mean about the .apt_generated being in 
my build path? 
  
Thanks for the help, guys... 
Evan 
  
Console: 
log4j:WARN No appenders could be found for logger 
(org.apache.jasper.compiler.Js 
pRuntimeContext). 
log4j:WARN Please initialize the log4j system properly. 
log4j:WARN Seehttp://logging.apache.org/log4j/1.2/faq.html#noconfig 
for more in 
fo. 
03/10/2011 8:24:49 AM 
com.google.web.bindery.requestfactory.server.RequestFactor 
yServlet doPost 
SEVERE: Unexpectederror 
java.lang.RuntimeException: 
 TheRequestFactoryValidationToolmustberunfor th 
e com.google.gwt.sample.dynatablerf.shared.DynaTableRequestFactory 
RequestFactor 
y type 
at 
 com.google.web.bindery.requestfactory.vm.impl.Deobfuscator 
$Builder.load(Deob 
fuscator.java:59) 
at 

 com.google.web.bindery.requestfactory.server.ResolverServiceLayer.updateDeo 
 b 
fuscator(ResolverServiceLayer.java:43) 
at 

 com.google.web.bindery.requestfactory.server.ResolverServiceLayer.resolveRe 
 q 
uestFactory(ResolverServiceLayer.java:176) 
at 

 com.google.web.bindery.requestfactory.server.ServiceLayerDecorator.resolveR 
 e 
questFactory(ServiceLayerDecorator.java:172) 
at 

 com.google.web.bindery.requestfactory.server.ServiceLayerDecorator.resolveR 
 e 
questFactory(ServiceLayerDecorator.java:172) 
at 

 com.google.web.bindery.requestfactory.server.ServiceLayerDecorator.resolveR 
 e 
questFactory(ServiceLayerDecorator.java:172) 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
 Method) 
at 

 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 
39 
) 
at 

 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp 
 l 
.java:25) 
at java.lang.reflect.Method.invoke(Method.java:597) 
at 

 com.google.web.bindery.requestfactory.server.ServiceLayerCache.getOrCache(S 
 e 
rviceLayerCache.java:233) 
at 

 com.google.web.bindery.requestfactory.server.ServiceLayerCache.resolveReque 
 s 
tFactory(ServiceLayerCache.java:198) 
at 

 com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process 
 ( 
SimpleRequestProcessor.java:207) 
at 

 com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process 
 ( 
SimpleRequestProcessor.java:127) 
at 

 com.google.web.bindery.requestfactory.server.RequestFactoryServlet.doPost(R 
 e 
questFactoryServlet.java:133) 
at 
 

Re: too much code: GWT Development with Activities and Places

2011-09-26 Thread Felipe Martim Vieira
Maybe you should have a look at this:

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

I have never used it, but it looks like a great alternative to reduce
the amount of work.


On Mon, Sep 26, 2011 at 6:14 AM, Aidan O'Kelly aida...@gmail.com wrote:
 On Sat, Sep 24, 2011 at 4:53 PM, Thomas Broyer t.bro...@gmail.com wrote:

 And BTW, MVP is a design pattern, and there's no one single way of
 implementing it (the MVP articles in the GWT doc makes it kind of clear).
 And the fact that Activities and Places (which people sometimes erroneously
 call MVP framework) are quite new makes it clear that it's not the way
 to build GWT apps: there must have been ways to do it before they're
 introduced!


 Point taken, the docs do make it very clear its a pattern and one way
 of implementing it, and that its best suited for large scale projects
 and why. Though reading through the User Guide, you could be forgiven
 for thinking 'This is the way I should go with my app!', especially if
 you decide to use UiBinder, as the Activity/Places MVP article uses it
 and is almost like a tutorial on building an app.

 I guess its just because the other tutorial in the User Guide, the
 Stock Watcher, doesn't use UiBinder, which is a very attractive
 feature to anyone new to GWT. Would be nice to have a chapter/tutorial
 on building a small/medium sized UiBinder based app that doesn't use
 MVP.

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





-- 
Felipe Martim

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



Necessary ORM

2011-03-21 Thread Felipe Cordeiro Caetano
Hello folks wonder whether to use RequestFactory necessarily I have to
use JDO or JPA or something. I ask this because I'm using MyBatis and
am having some problems implementing the server side.

Thank you all.

Felipe Caetano

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



Why does GWT+JUnit take so long to start?

2010-07-27 Thread Felipe Baytelman
I'm implementing a big project using TDD, but it's becoming a real
pain:
JUnit takes 2 minutes to start the first test (basically, setting up).
Is there a way to speed up JUnit with GWT?

Thanks in advance,
--Felipe Baytelman

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



Re: help for sending e-mail using rpc / gwt

2010-05-11 Thread Felipe Guarda
but what about the implementation of the RPC, you could help me?
thanks

On May 10, 2:06 am, abhiram wuntakal abhir...@gmail.com wrote:
 Hi Felipe,

   This block of code would help you send an email from the application. The
 trick basically is to get the textual data from the client side and pass it
 to the server side and then use this piece of code to send the email. This
 is actually with the file attachment feature even.

   Initially, you need to have a few variables declared for the username,
 password, SMTP etc...

 private static String SMTP_HOST_NAME = abc-abc.abc.com;
     private static String SMTP_AUTH_USER = a...@abc.com;
     private static String SMTP_AUTH_PWD = abcpassword;
     private static final String emailMsgTxt = Sample Message - Testing the
 email application;
     private static final String emailSubjectTxt = Sample Mail;
     private static String emailFromAddress = ab...@abcde.com;
     private static final String[] emailList = new String[100];
     String fileAttachment = SRCFOLDER + sample.pdf;

   public void sendEmail(EmailDetailsVo emailVo) {
         emailList[0] = emailVo.getEmailRecipient();
         Writer output = null;
         String text = sample Text;
         OutputStream file;
         System.out.println(Inside send email2);

         fileAttachment = SRCFOLDER + sample.pdf;

         try {
             file = new FileOutputStream(
                     new File(
                             SRCFOLDER + sample.pdf));

             Document document = new Document();
             try {
                 PdfWriter.getInstance(document, file);
                 document.open();
                 document.add(new Paragraph(String_Body_Of_The_Email));

             } catch (DocumentException e) {
                 // TODO Auto-generated catch block
                 e.printStackTrace();
             }

             document.close();
             try {
                 file.close();
             } catch (IOException e) {
                 // TODO Auto-generated catch block
                 e.printStackTrace();
             }

         } catch (FileNotFoundException e1) {
             // TODO Auto-generated catch block
             e1.printStackTrace();
         }

         Properties props = new Properties();
         props.put(mail.transport.protocol, smtp);
         props.put(mail.smtp.starttls.enable, true);
         props.put(mail.smtp.host, SMTP_HOST_NAME);
         props.put(mail.smtp.auth, true);

         Authenticator auth = new SMTPAuthenticator();
         Session session = Session.getDefaultInstance(props, auth);
         MimeMessage message1 = new MimeMessage(session);
         try {
             message1.setFrom(new InternetAddress(emailFromAddress));
             message1.addRecipient(Message.RecipientType.TO,
                     new InternetAddress(emailList[0]));
             message1.setSubject(emailVo.getEmailSubject());
             message1.addRecipient(Message.RecipientType.CC,
                     new InternetAddress(emailVo.getCcEmailAddress()));
             // create the message part
             MimeBodyPart messageBodyPart = new MimeBodyPart();

             // fill message
             messageBodyPart.setText(emailVo.getEmailBody());

             Multipart multipart = new MimeMultipart();
             multipart.addBodyPart(messageBodyPart);
             messageBodyPart = new MimeBodyPart();

             DataSource source = new FileDataSource(fileAttachment);
             messageBodyPart.setDataHandler(new DataHandler(source));
             messageBodyPart.setFileName(MainPdf.pdf);
             multipart.addBodyPart(messageBodyPart);
             // Put parts in message

             message1.setContent(multipart);
             // Send the message
             Transport.send(message1);

         } catch (AddressException e) {
             // TODO Auto-generated catch block
             e.printStackTrace();
         } catch (MessagingException e) {
             // TODO Auto-generated catch block
             e.printStackTrace();
         }

         // return null;

     }

     public class SMTPAuthenticator extends javax.mail.Authenticator {

         public PasswordAuthentication getPasswordAuthentication() {
             String username = SMTP_AUTH_USER;
             String password = SMTP_AUTH_PWD;
             return new PasswordAuthentication(username, password);
         }
     }

 HTH,

 Thanks and Regards,
 Abhiram





 On Mon, May 10, 2010 at 3:59 AM, Felipe Guarda felip...@gmail.com wrote:
  I'm trying to learn how to send emails using gwt/rpc but I have
  difficulties.
  Someone could send me a simple example that shows the implementation
  of the code on the client and server?

  tks

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

Re: help for sending e-mail using rpc / gwt

2010-05-11 Thread Felipe Guarda
Abhi, you could best describe what must be put on every piece of code?
You sent me a piece of code that must remain in the Class
EmailServiceImpl server.side. My doubts are now, I need to create some
kind of interface EmailService and EmailServiceAsync?
In cliente.side.code how do I send the e-mail? Should I instantiate
that class?
Sorry for the stupid questions, I am now getting this world java /
gwt.

thanks,

Felipe

On May 11, 11:48 am, abhiram wuntakal abhir...@gmail.com wrote:
 Hi Felipe,

 RPC implementation would be simple. Just write an ordinary
 RemoteServiceServlet and write a function to pass a String parameter (or a
 Vo) with the emailBody to the ServiceImpl code. From ServiceImpl, you can
 use the code below to send the email.

 Let me know if this answers your question.

 Regards,
 Abhi





 On Tue, May 11, 2010 at 6:48 PM, Felipe Guarda felip...@gmail.com wrote:
  but what about the implementation of the RPC, you could help me?
  thanks

  On May 10, 2:06 am, abhiram wuntakal abhir...@gmail.com wrote:
   Hi Felipe,

     This block of code would help you send an email from the application.
  The
   trick basically is to get the textual data from the client side and pass
  it
   to the server side and then use this piece of code to send the email.
  This
   is actually with the file attachment feature even.

     Initially, you need to have a few variables declared for the username,
   password, SMTP etc...

   private static String SMTP_HOST_NAME = abc-abc.abc.com;
       private static String SMTP_AUTH_USER = a...@abc.com;
       private static String SMTP_AUTH_PWD = abcpassword;
       private static final String emailMsgTxt = Sample Message - Testing
  the
   email application;
       private static final String emailSubjectTxt = Sample Mail;
       private static String emailFromAddress = ab...@abcde.com;
       private static final String[] emailList = new String[100];
       String fileAttachment = SRCFOLDER + sample.pdf;

     public void sendEmail(EmailDetailsVo emailVo) {
           emailList[0] = emailVo.getEmailRecipient();
           Writer output = null;
           String text = sample Text;
           OutputStream file;
           System.out.println(Inside send email2);

           fileAttachment = SRCFOLDER + sample.pdf;

           try {
               file = new FileOutputStream(
                       new File(
                               SRCFOLDER + sample.pdf));

               Document document = new Document();
               try {
                   PdfWriter.getInstance(document, file);
                   document.open();
                   document.add(new Paragraph(String_Body_Of_The_Email));

               } catch (DocumentException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
               }

               document.close();
               try {
                   file.close();
               } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
               }

           } catch (FileNotFoundException e1) {
               // TODO Auto-generated catch block
               e1.printStackTrace();
           }

           Properties props = new Properties();
           props.put(mail.transport.protocol, smtp);
           props.put(mail.smtp.starttls.enable, true);
           props.put(mail.smtp.host, SMTP_HOST_NAME);
           props.put(mail.smtp.auth, true);

           Authenticator auth = new SMTPAuthenticator();
           Session session = Session.getDefaultInstance(props, auth);
           MimeMessage message1 = new MimeMessage(session);
           try {
               message1.setFrom(new InternetAddress(emailFromAddress));
               message1.addRecipient(Message.RecipientType.TO,
                       new InternetAddress(emailList[0]));
               message1.setSubject(emailVo.getEmailSubject());
               message1.addRecipient(Message.RecipientType.CC,
                       new InternetAddress(emailVo.getCcEmailAddress()));
               // create the message part
               MimeBodyPart messageBodyPart = new MimeBodyPart();

               // fill message
               messageBodyPart.setText(emailVo.getEmailBody());

               Multipart multipart = new MimeMultipart();
               multipart.addBodyPart(messageBodyPart);
               messageBodyPart = new MimeBodyPart();

               DataSource source = new FileDataSource(fileAttachment);
               messageBodyPart.setDataHandler(new DataHandler(source));
               messageBodyPart.setFileName(MainPdf.pdf);
               multipart.addBodyPart(messageBodyPart);
               // Put parts in message

               message1.setContent(multipart);
               // Send the message
               Transport.send(message1);

           } catch (AddressException e) {
               // TODO Auto-generated catch block

help for sending e-mail using rpc / gwt

2010-05-09 Thread Felipe Guarda
I'm trying to learn how to send emails using gwt/rpc but I have
difficulties.
Someone could send me a simple example that shows the implementation
of the code on the client and server?

tks

-- 
You received 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: error javax.mail

2010-05-01 Thread Felipe Guarda
Someone could send me a sample code of an application for sending e-
mail? I'm following the 
http://code.google.com/appengine/docs/java/mail/overview.html
# Sending_Mail_with_the_JavaMail_API but is not working.

On Apr 30, 2:53 pm, kozura koz...@gmail.com wrote:
 I think you're missing the gist of the above replies - you can't use
 this library on the client (browser) side of GWT.  Only libraries that
 use the limited set of the JRE emulated by GWT, listed 
 here:http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html, can
 be used in client side code.

 Any functionality like mail or db connections and such must all be
 done on the server side.  The correct model is for the client/browser
 to send requests to the server, ie through RPC calls, and for it to do
 this sort of work, sending the results back to the client.

 On Apr 30, 11:43 am, Felipe Guarda felip...@gmail.com wrote:





  added the javax.mail.jar, but now is missing the source of javax.mail.
  already downloaded the javamail-1.4.3-src.zip and have attached it in
  the lib javamail. But when I depploy app happens the errors below.
  What is missing to do?

  errors:
  Compiling module com.ps.www.Plano_de_saude_online
     Validating newly compiled units
        [ERROR] Errors in 'file:/home/felipe/downloads/workspace/plano
  %20de%20saude%20online/src/com/ps/www/client/
  Plano_de_saude_online.java'
           [ERROR] Line 82: No source code is available for type
  java.util.Properties; did you forget to inherit a required module?
           [ERROR] Line 83: No source code is available for type
  javax.mail.Session; did you forget to inherit a required module?
           [ERROR] Line 88: No source code is available for type
  javax.mail.Message; did you forget to inherit a required module?
           [ERROR] Line 88: No source code is available for type
  javax.mail.internet.MimeMessage; did you forget to inherit a required
  module?
           [ERROR] Line 89: No source code is available for type
  javax.mail.internet.InternetAddress; did you forget to inherit a
  required module?
           [ERROR] Line 90: No source code is available for type
  javax.mail.Message.RecipientType; did you forget to inherit a required
  module?
           [ERROR] Line 94: No source code is available for type
  javax.mail.Transport; did you forget to inherit a required module?
           [ERROR] Line 95: No source code is available for type
  javax.mail.MessagingException; did you forget to inherit a required
  module?
     Finding entry point classes
        [ERROR] Unable to find type
  'com.ps.www.client.Plano_de_saude_online'
           [ERROR] Hint: Previous compiler errors may have made this
  type unavailable
           [ERROR] Hint: Check the inheritance chain from your module;
  it may not be inheriting a required module or a module may not be
  adding its source path entries properly

  On Apr 29, 2:29 pm, Jason Essington jas...@greenrivercomputing.com
  wrote:

   You can't really use javax.mail on the client side, it isn't supported by 
   the emulation library.

   you'd have to send your data to the server and use javamail from there.

   -jason

   On Apr 29, 2010, at 11:20 AM, Felipe Guarda wrote:

Yes, i`m using javax.mail in the clientside code. where is the correct
place?

Felipe

On Apr 29, 1:34 pm, dolcra...@gmail.com dolcra...@gmail.com wrote:
Are you using javax.mail in the clientside code? (If so, you can't do
this).  Otherwise you just need to add thecorrect classpath 
entriescorrect classpath entries
to the run configuration.

On Apr 29, 10:26 am, Felipe Guarda felip...@gmail.com wrote:

I think i may have a problem with which JRE the appengine hosted
browser is using to compile.  In eclipse my code recognizes the
various classes I'm importing for my JavaMail use (no precompile
errors).  However, when I Run As a web app, the GWT Hosted Mode
console reports the following:
 [ERROR] Line 28: The import javax.mail cannot be resolved
         [ERROR] Line 29: The import javax.mail cannot be resolved
         [ERROR] Line 30: The import javax.mail cannot be resolved
         [ERROR] Line 31: The import javax.mail cannot be resolved
         [ERROR] Line 32: The import javax.mail cannot be resolved
         [ERROR] Line 33: The import javax.mail cannot be resolved
         [ERROR] Line 34: The import javax.mail cannot be resolved
         [ERROR] Line 81: Session cannot be resolved to a type
         [ERROR] Line 81: Session cannot be resolved
         [ERROR] Line 86: Message cannot be resolved to a type
         [ERROR] Line 86: MimeMessage cannot be resolved to a type
         [ERROR] Line 87: InternetAddress cannot be resolved to a type
         [ERROR] Line 88: Message cannot be resolved
         [ERROR] Line 89: InternetAddress cannot be resolved to a type
         [ERROR] Line 92: Transport cannot

Re: error javax.mail

2010-04-30 Thread Felipe Guarda
added the javax.mail.jar, but now is missing the source of javax.mail.
already downloaded the javamail-1.4.3-src.zip and have attached it in
the lib javamail. But when I depploy app happens the errors below.
What is missing to do?

errors:
Compiling module com.ps.www.Plano_de_saude_online
   Validating newly compiled units
  [ERROR] Errors in 'file:/home/felipe/downloads/workspace/plano
%20de%20saude%20online/src/com/ps/www/client/
Plano_de_saude_online.java'
 [ERROR] Line 82: No source code is available for type
java.util.Properties; did you forget to inherit a required module?
 [ERROR] Line 83: No source code is available for type
javax.mail.Session; did you forget to inherit a required module?
 [ERROR] Line 88: No source code is available for type
javax.mail.Message; did you forget to inherit a required module?
 [ERROR] Line 88: No source code is available for type
javax.mail.internet.MimeMessage; did you forget to inherit a required
module?
 [ERROR] Line 89: No source code is available for type
javax.mail.internet.InternetAddress; did you forget to inherit a
required module?
 [ERROR] Line 90: No source code is available for type
javax.mail.Message.RecipientType; did you forget to inherit a required
module?
 [ERROR] Line 94: No source code is available for type
javax.mail.Transport; did you forget to inherit a required module?
 [ERROR] Line 95: No source code is available for type
javax.mail.MessagingException; did you forget to inherit a required
module?
   Finding entry point classes
  [ERROR] Unable to find type
'com.ps.www.client.Plano_de_saude_online'
 [ERROR] Hint: Previous compiler errors may have made this
type unavailable
 [ERROR] Hint: Check the inheritance chain from your module;
it may not be inheriting a required module or a module may not be
adding its source path entries properly

On Apr 29, 2:29 pm, Jason Essington jas...@greenrivercomputing.com
wrote:
 You can't really use javax.mail on the client side, it isn't supported by the 
 emulation library.

 you'd have to send your data to the server and use javamail from there.

 -jason

 On Apr 29, 2010, at 11:20 AM, Felipe Guarda wrote:





  Yes, i`m using javax.mail in the clientside code. where is the correct
  place?

  Felipe

  On Apr 29, 1:34 pm, dolcra...@gmail.com dolcra...@gmail.com wrote:
  Are you using javax.mail in the clientside code? (If so, you can't do
  this).  Otherwise you just need to add thecorrect classpath entriescorrect 
  classpath entries
  to the run configuration.

  On Apr 29, 10:26 am, Felipe Guarda felip...@gmail.com wrote:

  I think i may have a problem with which JRE the appengine hosted
  browser is using to compile.  In eclipse my code recognizes the
  various classes I'm importing for my JavaMail use (no precompile
  errors).  However, when I Run As a web app, the GWT Hosted Mode
  console reports the following:
   [ERROR] Line 28: The import javax.mail cannot be resolved
           [ERROR] Line 29: The import javax.mail cannot be resolved
           [ERROR] Line 30: The import javax.mail cannot be resolved
           [ERROR] Line 31: The import javax.mail cannot be resolved
           [ERROR] Line 32: The import javax.mail cannot be resolved
           [ERROR] Line 33: The import javax.mail cannot be resolved
           [ERROR] Line 34: The import javax.mail cannot be resolved
           [ERROR] Line 81: Session cannot be resolved to a type
           [ERROR] Line 81: Session cannot be resolved
           [ERROR] Line 86: Message cannot be resolved to a type
           [ERROR] Line 86: MimeMessage cannot be resolved to a type
           [ERROR] Line 87: InternetAddress cannot be resolved to a type
           [ERROR] Line 88: Message cannot be resolved
           [ERROR] Line 89: InternetAddress cannot be resolved to a type
           [ERROR] Line 92: Transport cannot be resolved
           [ERROR] Line 93: MessagingException cannot be resolved to a
  type

  Any help would be appreciated...

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

  --
  You received 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 
  athttp://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

error javax.mail

2010-04-29 Thread Felipe Guarda
I think i may have a problem with which JRE the appengine hosted
browser is using to compile.  In eclipse my code recognizes the
various classes I'm importing for my JavaMail use (no precompile
errors).  However, when I Run As a web app, the GWT Hosted Mode
console reports the following:
 [ERROR] Line 28: The import javax.mail cannot be resolved
 [ERROR] Line 29: The import javax.mail cannot be resolved
 [ERROR] Line 30: The import javax.mail cannot be resolved
 [ERROR] Line 31: The import javax.mail cannot be resolved
 [ERROR] Line 32: The import javax.mail cannot be resolved
 [ERROR] Line 33: The import javax.mail cannot be resolved
 [ERROR] Line 34: The import javax.mail cannot be resolved
 [ERROR] Line 81: Session cannot be resolved to a type
 [ERROR] Line 81: Session cannot be resolved
 [ERROR] Line 86: Message cannot be resolved to a type
 [ERROR] Line 86: MimeMessage cannot be resolved to a type
 [ERROR] Line 87: InternetAddress cannot be resolved to a type
 [ERROR] Line 88: Message cannot be resolved
 [ERROR] Line 89: InternetAddress cannot be resolved to a type
 [ERROR] Line 92: Transport cannot be resolved
 [ERROR] Line 93: MessagingException cannot be resolved to a
type

Any help would be appreciated...

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

2010-04-29 Thread Felipe Guarda
Yes, i`m using javax.mail in the clientside code. where is the correct
place?

Felipe

On Apr 29, 1:34 pm, dolcra...@gmail.com dolcra...@gmail.com wrote:
 Are you using javax.mail in the clientside code? (If so, you can't do
 this).  Otherwise you just need to add thecorrect classpath entriescorrect 
 classpath entries
 to the run configuration.

 On Apr 29, 10:26 am, Felipe Guarda felip...@gmail.com wrote:





  I think i may have a problem with which JRE the appengine hosted
  browser is using to compile.  In eclipse my code recognizes the
  various classes I'm importing for my JavaMail use (no precompile
  errors).  However, when I Run As a web app, the GWT Hosted Mode
  console reports the following:
   [ERROR] Line 28: The import javax.mail cannot be resolved
           [ERROR] Line 29: The import javax.mail cannot be resolved
           [ERROR] Line 30: The import javax.mail cannot be resolved
           [ERROR] Line 31: The import javax.mail cannot be resolved
           [ERROR] Line 32: The import javax.mail cannot be resolved
           [ERROR] Line 33: The import javax.mail cannot be resolved
           [ERROR] Line 34: The import javax.mail cannot be resolved
           [ERROR] Line 81: Session cannot be resolved to a type
           [ERROR] Line 81: Session cannot be resolved
           [ERROR] Line 86: Message cannot be resolved to a type
           [ERROR] Line 86: MimeMessage cannot be resolved to a type
           [ERROR] Line 87: InternetAddress cannot be resolved to a type
           [ERROR] Line 88: Message cannot be resolved
           [ERROR] Line 89: InternetAddress cannot be resolved to a type
           [ERROR] Line 92: Transport cannot be resolved
           [ERROR] Line 93: MessagingException cannot be resolved to a
  type

  Any help would be appreciated...

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

 --
 You received 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 
 athttp://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: PagingScrollTable running example please???

2010-03-30 Thread Felipe Peña
That's look simple,

Here's another way

http://wiki.cs.rpi.edu/trac/metpetdb/browser/trunk/mpdb-client/src/edu/rpi/metpetdb/client/ui/widgets/paging?rev=945

saludos y good luck !

2010/3/30 crojay78 croja...@googlemail.com

 Hi,

 thanks for the answer, it really helped.

 Also I found a running example project here

 http://zenoconsulting.wikidot.com/blog:17/

 In the comments he explained me how to retrieve by using maven

 On 29 Mrz., 18:45, Felipe felipe.andres.p...@gmail.com wrote:
  HI, Here's an example :
 
  publicMyClass implement EntryPoint , PageLoadHandler {
  
 
  public void onModuleLoad() {
 
  tableModel = new TestTableModel();
  cachedTableModel = new
 CachedTableModelTestModel(tableModel);
  cachedTableModel.setPreCachedRowCount(100);
  cachedTableModel.setPostCachedRowCount(100);
 
  pagingScrollTable = new
  PagingScrollTableTestModel(cachedTableModel, data, header ,
  getDefTable () );
  pagingScrollTable.setPageSize(3);
  pagingScrollTable.setEmptyTableWidget(new HTML (No hay nada
 para
  ver));
  pagingScrollTable.setWidth(400px);
  pagingScrollTable.setHeight(200px);
  pagingScrollTable.setFooterGenerated(true);
  pagingScrollTable.setCellSpacing(0);
 
  pagingScrollTable.setResizePolicy(ScrollTable.ResizePolicy.FILL_WIDTH);
 
FixedWidthGridBulkRendererTestModel bulkRenderer = new
  FixedWidthGridBulkRendererTestModel(pagingScrollTable.getDataTable(),
 
  pagingScrollTable);
pagingScrollTable.setBulkRenderer(bulkRenderer);
pagingScrollTable.addPageLoadHandler(this);
 
 PagingOptions p = new PagingOptions(pagingScrollTable);
 RootPanel.get().add( pagingScrollTable );
 RootPanel.get().add( p );
 
}
  
  public void onPageLoad(PageLoadEvent event) {
 
  cachedTableModel.clearCache();
  cachedTableModel.setRowCount(tableModel.getRowCount());
 /* cantidad
  de filas dinamicas */
  pagingScrollTable.redraw();
 
  }
 
  }
 
  not implemented here: TableModel ( get data from the source ),
  tableDefinition ( how to display data) ,
 
  I hope helped you !
  saludos.
 
  On 29 mar, 11:07, crojay78 croja...@googlemail.com wrote:
 
 
 
   Hi,
 
   I am searching for a running example for PagingScrollTable from
   incubator project. Can somebody provide me something, for me its
   always easier to understand the stuff by playing a bit with the code.
 
   I found a maven example but I could import it to eclipse so that it
   works.
 
   Thanks a lot

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




-- 
Felipe Peña
Fono - 76300638

-- 
You received 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: PagingScrollTable running example please???

2010-03-29 Thread Felipe
HI, Here's an example :

publicMyClass implement EntryPoint , PageLoadHandler {


public void onModuleLoad() {

tableModel = new TestTableModel();
cachedTableModel = new CachedTableModelTestModel(tableModel);
cachedTableModel.setPreCachedRowCount(100);
cachedTableModel.setPostCachedRowCount(100);

pagingScrollTable = new
PagingScrollTableTestModel(cachedTableModel, data, header ,
getDefTable () );
pagingScrollTable.setPageSize(3);
pagingScrollTable.setEmptyTableWidget(new HTML (No hay nada para
ver));
pagingScrollTable.setWidth(400px);
pagingScrollTable.setHeight(200px);
pagingScrollTable.setFooterGenerated(true);
pagingScrollTable.setCellSpacing(0);
 
pagingScrollTable.setResizePolicy(ScrollTable.ResizePolicy.FILL_WIDTH);

  FixedWidthGridBulkRendererTestModel bulkRenderer = new
FixedWidthGridBulkRendererTestModel(pagingScrollTable.getDataTable(),
 
pagingScrollTable);
  pagingScrollTable.setBulkRenderer(bulkRenderer);
  pagingScrollTable.addPageLoadHandler(this);

   PagingOptions p = new PagingOptions(pagingScrollTable);
   RootPanel.get().add( pagingScrollTable );
   RootPanel.get().add( p );

  }

public void onPageLoad(PageLoadEvent event) {

cachedTableModel.clearCache();
cachedTableModel.setRowCount(tableModel.getRowCount()); /* 
cantidad
de filas dinamicas */
pagingScrollTable.redraw();

}

}

not implemented here: TableModel ( get data from the source ),
tableDefinition ( how to display data) ,

I hope helped you !
saludos.


On 29 mar, 11:07, crojay78 croja...@googlemail.com wrote:
 Hi,

 I am searching for a running example for PagingScrollTable from
 incubator project. Can somebody provide me something, for me its
 always easier to understand the stuff by playing a bit with the code.

 I found a maven example but I could import it to eclipse so that it
 works.

 Thanks a lot

-- 
You received 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: incubator ScrollTable

2010-01-22 Thread Felipe
m 

I don't know if is the better solution, this maybe:


public void afterLoad () {

   if ( tablaScroll.getDataTable().getColumnCount() == 1) {
  // setColumnWitdh
   } else {
  // otra cosa.
   }

}

regards.!

On Jan 22, 9:46 am, Ashar Lohmar asharloh...@gmail.com wrote:
 this might sound like a stupid workaround ... but can't you add an if
 statement or something to check if the table will have only one
 column ?! and for that use setColumnWidth ...
 i know that this is not a real answer but this is the only thing that
 comes into my mind without trying the real source/objects to see
 another trick

 hope it helps
 good luck

 On Jan 22, 2:57 am, Alexei Telles alexeitel...@gmail.com wrote:

  Hi, I'm just starting using the gwt-incubator.
  I need to make a table, so I am using a FixedWidthFlexTable to the
  header and a FixedWidthGrid to the dataTable (content of the table).

  I have a procedure that mounts the dataTable

  The problem that I am having is:
  when my dataTable have more than one column, the dataTable is ok

  I am setting the width to 100%, so my table fits my div at all.

  But when my table have only one column, I don't know why the column
  width stays to short
  Of course, if I use the method setColumnWidth of the FixedWidthGrid
  works fine, but I use the same procedure to generate all tables of my
  application, so I can't do that!!!

  I don't know if I gave a good explanation about my problem.

  I am trying to use the Firebug to discover what i am doing wrong, but
  the HTML code generated is a little confused.

  Is ther anything in the FixedWidthGrid about the first column of the
  table, or is there a way to I set all widths of my table like
  automatic?

  I appreciate any help

  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.



Invitation to connect on LinkedIn

2010-01-19 Thread Felipe Toledo
LinkedIn

Felipe Toledo requested to add you as a connection on LinkedIn:
--

anoop,

I'd like to add you to my professional network on LinkedIn.

- Felipe

Accept invitation from Felipe Toledo
http://www.linkedin.com/e/JBsiVJwsKkjlZpgW5Fs-aPZb3kyEtpZg1BzY6jP-eFhetpyKAo25/blk/I1737403524_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnPgOdjcMd3sPdP59bRlht5hkh7h2bPgUcjoOdjgMc34LrCBxbOYWrSlI/EML_comm_afe/

View invitation from Felipe Toledo
http://www.linkedin.com/e/JBsiVJwsKkjlZpgW5Fs-aPZb3kyEtpZg1BzY6jP-eFhetpyKAo25/blk/I1737403524_2/39vd38RcP0QdPcTckALqnpPbOYWrSlI/svi/

-- 
DID YOU KNOW your LinkedIn profile helps you control your public image when 
people search for you? Setting your profile as public means your LinkedIn 
profile will come up when people enter your name in leading search engines. 
Take control of your image! 
http://www.linkedin.com/e/ewp/inv-22/




 
--
(c) 2010, LinkedIn Corporation
-- 

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



Issue on JSORestrictionsChecker

2010-01-06 Thread Felipe Toledo
Hi all,

I am using JSO types as my model entities supertype. It was working
fine, until I add a new one. Apparently there is no reason to give me
this error. The stack trace is:


com.google.gwt.dev.jjs.InternalCompilerException: Already seen an
implementing JSO subtype (JsTask) for interface (IEntity) while
examining newly-added type (JsTestAssertive). This is a bug in
JSORestrictionsChecker.
at
com.google.gwt.core.ext.typeinfo.TypeOracle.computeSingleJsoImplData
(TypeOracle.java:702)
at com.google.gwt.core.ext.typeinfo.TypeOracle.finish
(TypeOracle.java:362)
at com.google.gwt.dev.javac.TypeOracleMediator.addNewUnits
(TypeOracleMediator.java:359)
at com.google.gwt.dev.javac.CompilationState.assimilateUnits
(CompilationState.java:135)
at com.google.gwt.dev.javac.CompilationState.init
(CompilationState.java:79)
at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom
(CompilationStateBuilder.java:284)
at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom
(CompilationStateBuilder.java:181)
at com.google.gwt.dev.cfg.ModuleDef.getCompilationState
(ModuleDef.java:280)
at com.google.gwt.dev.DevModeBase
$UiBrowserWidgetHostImpl.createModuleSpaceHost(DevModeBase.java:97)
at com.google.gwt.dev.shell.OophmSessionHandler.loadModule
(OophmSessionHandler.java:180)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection
(BrowserChannelServer.java:380)
at com.google.gwt.dev.shell.BrowserChannelServer.run
(BrowserChannelServer.java:222)
at java.lang.Thread.run(Thread.java:619)


Could anyone please 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-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: Issue on JSORestrictionsChecker

2010-01-06 Thread Felipe Toledo
interface IEntity {
int getX();
}

class A extends JavaScriptObject implements IEntity {
public int getX() { return Y(); }

public final native int Y() /*-{
return this.y;
}-*/;

}

class A extends JavaScriptObject implements IEntity {

public int getX() { return Z(); }

public final native int Z() /*-{
return this.z;
}-*/;
}

On Tue, Jan 5, 2010 at 2:53 PM, Felipe Toledo felipetgolive...@gmail.comwrote:

 Hi all,

 I am using JSO types as my model entities supertype. It was working
 fine, until I add a new one. Apparently there is no reason to give me
 this error. The stack trace is:


 com.google.gwt.dev.jjs.InternalCompilerException: Already seen an
 implementing JSO subtype (JsTask) for interface (IEntity) while
 examining newly-added type (JsTestAssertive). This is a bug in
 JSORestrictionsChecker.
at
 com.google.gwt.core.ext.typeinfo.TypeOracle.computeSingleJsoImplData
 (TypeOracle.java:702)
at com.google.gwt.core.ext.typeinfo.TypeOracle.finish
 (TypeOracle.java:362)
at com.google.gwt.dev.javac.TypeOracleMediator.addNewUnits
 (TypeOracleMediator.java:359)
at com.google.gwt.dev.javac.CompilationState.assimilateUnits
 (CompilationState.java:135)
at com.google.gwt.dev.javac.CompilationState.init
 (CompilationState.java:79)
at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom
 (CompilationStateBuilder.java:284)
at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom
 (CompilationStateBuilder.java:181)
at com.google.gwt.dev.cfg.ModuleDef.getCompilationState
 (ModuleDef.java:280)
at com.google.gwt.dev.DevModeBase
 $UiBrowserWidgetHostImpl.createModuleSpaceHost(DevModeBase.java:97)
at com.google.gwt.dev.shell.OophmSessionHandler.loadModule
 (OophmSessionHandler.java:180)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection
 (BrowserChannelServer.java:380)
at com.google.gwt.dev.shell.BrowserChannelServer.run
 (BrowserChannelServer.java:222)
at java.lang.Thread.run(Thread.java:619)


 Could anyone please 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-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: 'UnsatisfiedLinkError Issue after updating to Ubuntu 9.10 (Intel x64)

2009-11-15 Thread Juan Felipe Carrasquilla
Very relevant. Merci
Juan

On Nov 6, 3:07 pm, Bib' olivier.dal...@gmail.com wrote:
 Hi everyone,

 I decided to post here about an issue I encountered and solved lately
 after updating my Ubuntu from 9.04 to 9.10.
 First of all, I have x64 proc based architecture (this was the source
 of my issue).

 So after updating i started Eclipse and when I launched my project i
 had this error :

 UnsatisfiedLinkError: /./libxpcom.so: libstdc++.so.5: cannot open
 shared object file: No such file or directory

 The problem should have been solved by re installing the libstdc++5
 package and installing it after downloading at this link 
 :http://packages.ubuntu.com/jaunty/i386/libstdc++5/download.

 The problem of this package is that it is an i386 architecture based
 package so my soft manager wouldn't open it as my proc is a x64 (Core
 2 duo).

 What i did :

 first of all i haded a package repository from the link below to my
 sources manager (debhttp://cfr.archive.ubuntu.com/ubuntujaunty main
 universe  as i'm French ^^, in System-Administration there should be
 something like software sources to add the repository). After
 updating in Synaptic, libstdc++5 was available. I installed it but it
 wasn't enough, because I installed the 64 bits version and it seems
 that GWT needed the 32 bits version.

 So i downloaded the package from one of the repositories available on
 the link below (fr.archive.ubuntu.com/ubuntu) and i saved it on the
 harddrive. I opened it with the Ubuntu archive manager and extracted
 the libstdc++.so.5.0.7 file. Then i copied it at the good location
 and created the required symbolic link :

     sudo -s
     cp libstdc++.so.5.0.7 /usr/lib32/
     ln -s libstdc++.so.5.0.7 libstdc++.so.5

 And it worked !!! Hope it will be relevant to someone :)

--

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




Re: PagingScrollTable/CachedTableModel page count issue

2009-11-04 Thread Felipe

I have something like:


...
@Override
public void requestRows(final Request request, final
CallbackCondominioTipoBModel callback) {

listadoUnidadesVendiles = new ArrayListCondominioTipoBModel
();
cachedTableModel.clearCache();

FacadeUnidadesVendiblesAsync call =
ServiceLocator.getFacadeUnidadesVendibles();
call.listadoUnidadesVendiblesCondominioTipoB(321, 2, new
AsyncCallbackListCondominioTipoBTo () {

public void onFailure(Throwable caught) {
GWT.log(caught.getMessage(), null);
}

public void onSuccess(ListCondominioTipoBTo listado) {

int registrosIngresados = 0;
for (CondominioTipoBTo e : listado) {

CondominioTipoBModel c = new CondominioTipoBModel
();

ObrasComplementariasModel o = new
ObrasComplementariasModel();

o.setSuperficiePavimentoCalidadDos
( e.getObrasComplementarias().getSuperficiePavimentoCalidadDos() );
o.setSuperficiePavimentoCalidadUno
( e.getObrasComplementarias().getSuperficiePavimentoCalidadUno() );
o.setTechumbreAcero( e.getObrasComplementarias
().getTechumbreAcero() );
o.setTechumbreMadera( e.getObrasComplementarias
().getTechumbreMadera() );
o.setTechumbreMaderaLaminada
( e.getObrasComplementarias().getTechumbreMaderaLaminada() );
o.setSuperficiePavimentos
( e.getObrasComplementarias().getSuperficieCalidadPavimentos() );
o.setSuperficieTechumbres
( e.getObrasComplementarias().getSuperficieTechumbres() );

GWT.log( e.getObrasComplementarias
().getSuperficieTechumbres()+ -- +e.getObrasComplementarias
().getSuperficieTechumbres() , null);

TerrenoModel t = new TerrenoModel();
t.setFrente( e.getTerreno().getFrente() );
t.setFondo( e.getTerreno().getFondo() );
t.setSuperficie( e.getTerreno().getSuperficie() );

ConstruccionModel m = new ConstruccionModel();
m.setSuperficieLineaConstruccion( e.getConstruccion
().getSuperficieLineaConstruccion() );

c.setDireccion(e.getDireccion());
c.setManzana(e.getManzana());
c.setLote(e.getLote());
c.setDestino(e.getDestino());
c.setBcpAsociado(e.getBcpAsociado().trim());

c.setTerreno(t);
c.setObrasComplementarias(o);
c.setConstruccion(m);

listadoUnidadesVendiles.add(c);
registrosIngresados ++;
  }

int porCompletar = cantidadUnidades -
registrosIngresados;
for (int i = 0; i  porCompletar; i++) {

CondominioTipoBModel temp = new
CondominioTipoBModel();
ObrasComplementariasModel o = new
ObrasComplementariasModel();
TerrenoModel t = new TerrenoModel();
ConstruccionModel m = new ConstruccionModel();
temp.setObrasComplementarias(o);
temp.setTerreno(t);
temp.setConstruccion(m);
listadoUnidadesVendiles.add(temp);

}

cachedTableModel.setRowCount
(listadoUnidadesVendiles.size());
SerializableResponseCondominioTipoBModel response =
new SerializableResponseCondominioTipoBModel
(listadoUnidadesVendiles);
callback.onRowsReady(request, response);
}});

}

.
public CachedTableModelCondominioTipoBModel
crearCachedTableModel () {
cachedTableModel = new CachedTableModelCondominioTipoBModel
(this);
return cachedTableModel;
}

...

i hope help you !

On 4 nov, 08:35, Andrius Juozapaitis andri...@gmail.com wrote:
 Hey,

 I was playing around with incubator's PagingScrollTable for a while,
 and I've come across an issue there. I have a DataSourceTableModel
 that extends MutableTableModel, and looks like this:

 public class DataSourceTableModel extends MutableTableModel {
 ...
     @Override
     public void requestRows(final TableModelHelper.Request request,
 final Callback callback) {
         UserService.App.getInstance().getUsers(new
 AsyncCallbackViewResultUser() {
             @Override
             public void onFailure(Throwable throwable) {
                 Window.alert(failed retrieving the users +
 throwable);
             }

             @Override
             public void onSuccess(final ViewResultUser
 userViewResult) {
                 Window.alert(received rows:  +
 userViewResult.getTotalRows());

                 // Application.cachedTableModel.setRowCount
 (userViewResult.getTotalRows());

                 callback.onRowsReady(request, new
 TableModelHelper.Response() {
                     @Override

Re: PagingScrollTable/CachedTableModel page count issue

2009-11-04 Thread Felipe

you would use:

paginadorUnidades.addPageChangeHandler(new PageChangeHandler() {

public void onPageChange(PageChangeEvent event) {

myAsync.getSelectCount ( new
Aync...
   ...
   onSucces
(Integer result) { cachedTable.setRowCount ()result }; /*  */
   

);

}});
may be your AsyncCallbackViewResultUser() {... is work even.

bye.

On 4 nov, 09:02, Andrius Juozapaitis andri...@gmail.com wrote:
 This is exactly what I've come up with, but it just doesn't feel right
 - your TableModel should be agnostic of the widgets using it, and
 event subscription mechanism seems like a good way to achieve this, it
 just won't work in it's current implementation.

 regards,
 --andrius

 On Nov 4, 1:44 pm, Felipe felipe.andres.p...@gmail.com wrote:

  I have something like:

  ...
                  cachedTableModel.setRowCount
  (listadoUnidadesVendiles.size());
--~--~-~--~~~---~--~~
You received 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 create custom widget?

2009-10-27 Thread Felipe

 ... i don't understand , but:

you should test your service with jUnit , then . try that:


seee:
parametricas = ServiceLocator.getFacadeParametricas();


public class ComunasSelector extends Composite {

private SuggestBox listadoSuggestComunas;
private ComunaSuggestOracle listComunas;
private ComunaTo comunaSeleccionada;
private boolean seleccionValida;
private FacadeParametricasAsync parametricas;

/**
 * Construccion por defecto.
 */
public ComunasSelector() {

parametricas = ServiceLocator.getFacadeParametricas();
listComunas = new ComunaSuggestOracle();
listadoSuggestComunas = new SuggestBox(listComunas);

   listadoSuggestComunas.addEventHandler(new SuggestionHandler() {

   public void onSuggestionSelected(SuggestionEvent event) {

   ComunaMultiWordSuggestion comuna =
(ComunaMultiWordSuggestion)event.getSelectedSuggestion();
   comunaSeleccionada = comuna.getComuna();

   }}
   );

   listadoSuggestComunas.addFocusListener(getFocusListener());

   getParametricas().listarComunas(new DefaultAsyncCallback() {

   @Override
   protected void doWhenComplete(Object result) {

   ListComunaTo lista = (ListComunaTo)result;
   for ( ComunaTo e : lista ) {
   listComunas.add( new ComunaMultiWordSuggestion
( e ) );
   }

   }});

   initWidget(listadoSuggestComunas);
}

/**
 * Si al momento de perder el foco, la comuna contiene palabras
invalidas
 * se se borra el campo. El usuario est obligado a elegir una
opcion valida.
 * @return
 */
public FocusListener getFocusListener () {

return new FocusListener() {

public void onFocus(Widget sender) {
}

public void onLostFocus(Widget sender) {
if ( !isSeleccionValida() ) {
comunaSeleccionada = null;
getListadoSuggestComunas().setText();
}
}};

}

/**
 * En caso de de ser comunas para un region en particular.
 * @param regionId
 */
public ComunasSelector(int regionId ) {
//TODO, implementar funcionalidad.
}

/**
 * @return the comunaSeleccionada
 */
public ComunaTo getComunaSeleccionada() {
return comunaSeleccionada;
}


/**
 * @param comunaSeleccionada the comunaSeleccionada to set
 */
public void setComunaSeleccionada(ComunaTo comunaSeleccionada) {
this.comunaSeleccionada = comunaSeleccionada;
}

/**
 * @return the listadoSuggestComunas
 */
public SuggestBox getListadoSuggestComunas() {
return listadoSuggestComunas;
}

/**
 * @param listadoSuggestComunas the listadoSuggestComunas to set
 */
public void setListadoSuggestComunas(SuggestBox
listadoSuggestComunas) {
this.listadoSuggestComunas = listadoSuggestComunas;
}

/**
 * @return the listComunas
 */
public ComunaSuggestOracle getListComunas() {
return listComunas;
}

/**
 * @return the seleccionValida
 */
public boolean isSeleccionValida() {
return seleccionValida;
}

/**
 * @param seleccionValida the seleccionValida to set
 */
public void setSeleccionValida(boolean seleccionValida) {
this.seleccionValida = seleccionValida;
}

/**
 * @return the parametricas
 */
public FacadeParametricasAsync getParametricas() {
return parametricas;
}

/**
 * @param parametricas the parametricas to set
 */
public void setParametricas(FacadeParametricasAsync parametricas)
{
this.parametricas = parametricas;
}

}


private ComunasSelector suggestComunas;
.

suggestComunas = new ComunasSelector();
.

layout.setWidget(INICIO_FORM + 2, 1, suggestComunas );


etc..

I hope I have helped




On 27 oct, 02:27, Cage cage...@gmail.com wrote:
 I tried to import that class in and it able to show a suggestbox in
 new page, but it is not able to got the data from server side, I guess
 the problem should be on the RPC connection,  please help, thank you
 very much.

 c...@hk

 On Oct 27, 1:23 pm, Cage cage...@gmail.com wrote:

  Hi all,

    I just create a suggestBox with RPC source, and I want to use it in
  couple of formpanel in difference pages, is it possible?  Would you
  mind to tell me how and where can I found the information abou that.
  Thank you very much.

  c...@hk



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

Re: Problem using PagingScrollTable

2009-10-27 Thread Felipe

Hi, the code:

In TableModel you make data acces (local o remote):
in TableDefinition, decide how to display

public class LineasConstruccionTableModel extends
MutableTableModelLineaConstruccionUnidadVendibleModel {

private int idDeclaracion;
private int correlativo;
private ListLineaConstruccionUnidadVendibleModel modeloLineas;
private CachedTableModelLineaConstruccionUnidadVendibleModel
cachedTableModel;

public LineasConstruccionTableModel (int idDeclaracion, int
correlativo) {
setIdDeclaracion(idDeclaracion); /*ejemplo*/
setCorrelativo(correlativo);
}

@Override
public void requestRows(final Request request, final
CallbackLineaConstruccionUnidadVendibleModel callback) {

/* por Ejemplo:
ArrayListMyModel lista = new ArrayList MyModel ();
lista.add (o)
SerializableResponseMyModel response = new
SerializableResponseLineaConstruccionUnidadVendibleModel(lista);
*/
callback.onRowsReady(request,response);
}

}

..
public class PaginadorLineasConstruccionBase extends WidgetBase {


tablaPaginada = new PagingScrollTable(tableModel.crearCachedTableModel
()/*patron builder*/, dataTable, headerTable ,defTabla);

 pagingOptions = new PagingOptions(tablaPaginada);
pagingOptions.addStyleName(gwt-
PagingOptionsLineasConstruccion);


getVPanel().add(abstractPaging);
getVPanel().add(pagingOptions); /*or initWidget*/

My real code is too large for publish ...

I hope I have helped
by

On 9 oct, 10:47, benjamin strappazzon benjamin.strappaz...@gmail.com
wrote:
 Hi group,

 I'm looking for a simple piece of code which shows how to 
 usePagingScrollTablefrom GWT incubator. Especially I'd like to
 understand how TableModel and TableDefinition work?

 I've looked at the documentation on GWT incubator web site but it is
 still in progress and I didn't find the informations I was looking
 for.

 I've tried to create my ownPagingScrollTablebut it remains empty, I
 think that I don't use it the right way.

 Thank you for your help

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: which tools you have used for development of GWT?

2009-03-05 Thread Felipe Cypriano
I use Netbeans and I'm testing IntelliJ IDEA both are very good choices.
Personally I don't like Eclipse I try but I can't get used to it, no
technical reasons.


Regards,

---
Felipe Marin Cypriano
Vitória - ES


On Wed, Mar 4, 2009 at 10:14 AM, bamatico wes.br...@gmail.com wrote:


 I have only gotten as far as working through the StockWatcher tutorial
 but am getting the following [ERROR] Unable to instantiate
 'com.google.gwt.sample.stockwatcher.server.StockPriceServiceImpl'.
 But, to answer your question ... I am not using an IDE (eclipse) but
 am copy/pasting into my favorite text editor (ultraEdit).  I have
 intentions of trying to use netBeans (http://www.netbeans.org/kb/60/
 web/quickstart-webapps-gwt.htmlhttp://www.netbeans.org/kb/60/%0Aweb/quickstart-webapps-gwt.html)
 sometime later today.

 On Mar 3, 11:05 pm, shiren1118 shiren1...@126.com wrote:
  which tools you have used for development of GWT?
  I'm puzzled

 


--~--~-~--~~~---~--~~
You received 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: Hibernate/JPA gwt 1.5

2009-02-27 Thread Felipe Cypriano
Hi Tonil,


1.) Can i really use Annotations with gwt 1.5

Yes we can haha. For example: For image bundles, replace @gwt.resource in
your javadoc with the
@Resourcehttp://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/ImageBundle.Resource.html
 annotation.

2.) Do i have to go through the DTO approach to send my data to the
 gwt client? No other way?

Take a look at Gilead project: http://noon.gilead.free.fr/gilead/ Gilead
helps you pass your entities to the GWT client.


Regards,
---
Felipe Marin Cypriano
Vitória - ES
http://www.linkedin.com/in/felipecypriano


On Fri, Feb 27, 2009 at 8:44 AM, tonil ntrep...@gmail.com wrote:


 Hi all,

 I'm very new to google web toolkit and i'm trying to get an overview
 how to build the web application using gwt 1.5.
 Most books i have for help are covering the gwt 1.4 version. One of
 the topics are the integration of hibernate/jpa. As I read now in the
 new version gwt 1.5 it's possible to use Annotations, but I also read
 a lot of
 user entries on some gwt pages, that this will not really help to send
 the data to the gwt client. So my questions are:

 1.) Can i really use Annotations with gwt 1.5
 2.) Do i have to go through the DTO approach to send my data to the
 gwt client? No other way?

 Thanks a lot in advance,

 tonil

 


--~--~-~--~~~---~--~~
You received 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-26 Thread Felipe Cypriano
I think this is what we get using GWT:


|- Client --| |--- Server |
  Views and ControllersControllers for domain logic
| Model ---|

On the client side we've classes responsible for handling the user
interaction, nothing beyond this. On the server side we've the system's
logic, all the calculations, validations, and all other requirement are made
here. And the model is shared between them.

We still have the separation of concerns but with a smarter view (the client
side) than the old full refresh.


Regards,

---
Felipe Marin Cypriano
Vitória - ES
http://www.linkedin.com/in/felipecypriano


On Wed, Feb 25, 2009 at 12:22 PM, gregor greg.power...@googlemail.comwrote:


 Hi Reza,

 I think I made an unfortunate choice of words with dogma. I do not
 mean to diss MVC, what I really meant to convey was that there is an
 awfull lot more documentation around about MVC than there is about
 Model Delegate and the the use of the Observer and Mediator patterns
 in this context. You are quite right IMO that newbies should learn and
 apply well established patterns, but my point is that the MVC pattern
 has so much exposure that it is possibly unbalanced.

 I think part of the reason relates to your comment:

 And finally, I don't have anything against ModelDelegate, but I think
 you wouldn't use it in a jsp web site by putting all controllers code
 inside jsp. (which is possible and most newbies start coding this way)
 You definitely use a well established MVC framework.

 You are undeniably right about this: you should definitely use a MVC
 framework like struts for a JSP based application. The thing is,
 though, that JSP based applications are a perfect fit for the MVC
 pattern since each request from a view needs to be processed and
 redirected to the next view. A struts Action class, i.e. a controller,
 is perfect for this. MVC got a huge boost to its profile through
 struts and JSP Model 2.

 But a GWT AJAX application is a different animal. It is technically a
 thin client since it runs in a browser with no native executables or
 libraries required, but functionally it has a lot more in common with
 a traditional thick client - complex UI, no paging, asynchronous
 server calls, session state shifted from server to client etc. In a
 Java thick client, say Swing, you typically set a model graph directly
 on a widget, and the widget binds itself to it and controls user
 events and how they affect the model.

 In GWT it is similar to this, because events are propagated from the
 browser via the widgets themselves, so if you have separate
 controllers that need to know about events (which they do) it can
 become complicated and messy. This is exacerbated by the asynchronous
 RPC mechanism as Charles pointed out in the OP. If a widget itself is
 not coordinating the asynch call, but calls a method on a separate
 controller, you need another callback mechanism to relay the results
 back to the widget.

 There are situations where doing this is necessary. My favourite
 example is a work flow application where a work flow process may have
 many different views all of which are based on the same model graph
 for the process. In this case a MVC decomposition some thing like this
 makes sense:

 view
  / \
   controller \
  /\  \
 /   \ \
RPC\\
   \ ---  model

 IMO in many, if not most, situations that is over-engineering.

 However none of this answers the OP question really, nor does it
 answer your point that newbies should follow good practice based on
 known sound patterns. If not MVC then what exactly? To be sure the
 answer is not that well documented. The current GWT event system which
 is based pretty much on the Observer pattern. it works well in the
 simple case but has shortcomings when you scale in terms of
 complexity. It can get messy with dozens of different listener
 interfaces etc. I think the new event system coming in with 1.6 will
 make a big difference to this.

 My own response has been to experiment with the Mediator pattern as
 defined in the GoF book. I am pleased with the results so far. The GoF
 book actually uses a set of collaborating widgets as the example for
 Mediator. I use a mediator to coordinate events between colleague
 widgets (usually Composites) around a specific functional area. The
 Mediator only handles event subscription, publishing and routing. The
 Composites themselves are responsible for deciding what to do in
 response to a particular event. The main shortcoming of this approach
 I have found so far is if an event requires several Composites to
 refresh their data at once since this implies multiple concurrent RPC
 calls when one would be better. I'm still thinking about how to best
 deal

Re: Spring Security and GWT : how I've done

2009-02-25 Thread Felipe Cypriano
I'm thinking in using Grails (JSecurity Plugin, which is Spring Security)
with GWT as the interface. Have you tried this?

I haven't tested this yet, but the session expiration is a issue using GWT?
For example, the timeout for a session is 30 minutes, everytime GWT does an
ajax request the timeout counter is restarted or every 30 minutes with the
user didn't do a refresh (old school request) the session will expires?


Thanks,

---
Felipe Marin Cypriano
Vitória - ES
http://www.linkedin.com/in/felipecypriano


On Wed, Feb 25, 2009 at 6:14 AM, David dmartin@gmail.com wrote:


 I've added additional information (examples mainly) and will upload a
 jar ASAP in order to make it easy to test.

 And do not hesitate to give me feedback.

 David

 On Feb 22, 4:13 pm, jossey joss...@gmail.com wrote:
  Hi David,
  I really appreciate you sharing this.
  Thanks.
 
  On Feb 19, 3:03 pm, David dmartin@gmail.com wrote:
 
   Hi everyone,
 
   This is my second message promoting something I've put in my GWT test
   area :) I hope you'll find it useful : It may help people to
   integrate Spring Security with GWT applications in a clean (that's my
   non-objective POV ! :)) way.
 
   Here is a small introduction on how it works ; a more detailed
   description is available on code.google.com. See the link at the end
   of this message.
 
   First thing : it uses GWT-SL to use simple Spring beans to serve RPC
   calls. I've extended the original GWTHandler in order to provide a
   convenient way to manage Security exceptions. I've also provided a
   specific ExceptionTranslationFilter that can deal with security
   exception too.
 
   With these two parts, people can handle both URL filtering and AOP
   strategies.
 
   As usual, feel free to post your comments, I'll really appreciate your
   feedback.
 
   Here is the URL of the Google Code's project :
 http://code.google.com/p/gwt-incubator-lib
 
   David
 
 
 


--~--~-~--~~~---~--~~
You received 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 problem while deploying on glassfish

2009-02-19 Thread Felipe Cypriano
What's is the code for this class: client.modeller.Student  ?

Regards,

---
Felipe Marin Cypriano
Vitória - ES
http://www.linkedin.com/in/felipecypriano


On Wed, Feb 18, 2009 at 12:15 PM, yek...@gmail.com yek...@gmail.com wrote:


 Hi everybody

 I builded a war and using gwt-rpc mechanism. It works well on tomcat.
 But there comes a problem when I want to deploy on glassfish. I
 couldn't find anything on web. I will be happy if somebody helps. The
 error is written below.(detected on glassfish logs)

 Exception while dispatching incoming RPC call
 com.google.gwt.user.client.rpc.SerializationException: Type
 '[Lheadman.client.modeller.Student;' was not included in the set of
 types which can be serialized by this SerializationPolicy or its Class
 object could not be loaded. For security purposes, this type will not
 be serialized.
at

 com.google.gwt.user.server.rpc.impl.StandardSerializationPolicy.validateSerialize
 (StandardSerializationPolicy.java:83)
at

 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize
 (ServerSerializationStreamWriter.java:591)
at

 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject
 (AbstractSerializationStreamWriter.java:129)
at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
 $ValueWriter$8.write(ServerSerializationStreamWriter.java:146)
at

 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue
 (ServerSerializationStreamWriter.java:530)
at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:
 573)
at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess
 (RPC.java:441)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
 (RPC.java:529)
at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
 (RemoteServiceServlet.java:164)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
 (RemoteServiceServlet.java:86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:
 754)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:
 847)
at
 org.apache.catalina.core.ApplicationFilterChain.servletService
 (ApplicationFilterChain.java:427)
at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
 (ApplicationFilterChain.java:333)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
 (ApplicationFilterChain.java:214)
at com.uwyn.rife.servlet.RifeFilter.doFilter(RifeFilter.java:
 192)
at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
 (ApplicationFilterChain.java:246)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
 (ApplicationFilterChain.java:214)
at org.apache.catalina.core.StandardWrapperValve.invoke
 (StandardWrapperValve.java:313)
at org.apache.catalina.core.StandardContextValve.invokeInternal
 (StandardContextValve.java:287)
at org.apache.catalina.core.StandardContextValve.invoke
 (StandardContextValve.java:218)
at org.apache.catalina.core.StandardPipeline.doInvoke
 (StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke
 (StandardPipeline.java:593)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:
 94)
at
 com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke
 (PESessionLockingStandardPipeline.java:98)
at org.apache.catalina.core.StandardHostValve.invoke
 (StandardHostValve.java:222)
at org.apache.catalina.core.StandardPipeline.doInvoke
 (StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke
 (StandardPipeline.java:593)
at org.apache.catalina.core.StandardPipeline.invoke
 (StandardPipeline.java:587)
at org.apache.catalina.core.ContainerBase.invoke
 (ContainerBase.java:1096)
at org.apache.catalina.core.StandardEngineValve.invoke
 (StandardEngineValve.java:166)
at org.apache.catalina.core.StandardPipeline.doInvoke
 (StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke
 (StandardPipeline.java:593)
at org.apache.catalina.core.StandardPipeline.invoke
 (StandardPipeline.java:587)
at org.apache.catalina.core.ContainerBase.invoke
 (ContainerBase.java:1096)
at org.apache.coyote.tomcat5.CoyoteAdapter.service
 (CoyoteAdapter.java:288)
at
 com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter
 (DefaultProcessorTask.java:647)
at
 com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess
 (DefaultProcessorTask.java:579)
at
 com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process
 (DefaultProcessorTask.java:831)
at

 com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask
 (DefaultReadTask.java:341)
at
 com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask
 (DefaultReadTask.java:263

Re: gwt is good for develop erp system?

2009-02-17 Thread Felipe Cypriano
I don't see any problems with that. You'll split the whole project in
various sub projects as your normally do with any other technology.

If you'll have many modules you should consider use
OSGihttp://www.osgi.org/Main/HomePageto control the different
modules. I never used this but when I need I'll
surely give it a try. Other references: Spring Dynamic Modules for OSGi(tm)
Service Platforms http://www.springsource.org/osgi

Hope it help you.

Regards,

---
Felipe Marin Cypriano
Vitória - ES


On Tue, Feb 17, 2009 at 1:30 AM, wangscu wang...@gmail.com wrote:


 hi, everyone
 our team begin to develop a erp system , and so we want have a
 framework to do it. so we try gwt.
 we found gwt is a good things ,but i also has some puzzle.
 1, the erp system may be contains many logic,but here a gwt
 application only contains one file, so the file will too big ,how can
 split it? does gwt will lazy load the files?
 2,so that .  many java files will compile  to one application, is
 that will cost much time and much cpu to do it?
 3,we just want use gwt in the view layer,how can we mix gwt with
 other framework like webwork !

 thanks anybody help!

 


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



Re: How to implement DTO correctly for use with RPC?

2009-02-12 Thread Felipe Cypriano
BobM,

See if my thoughts are right.

Assuming I've this entity class:

package myapp.entity;
public class Item {
 private int id;
 private String productName;
 private BigDecimal price;

// getters and setters
}

This class is packaged in a file called entities.jar and because the price
attribute which is a BigDecimal I can't send this entity directly to GWT
client over RPC. Then, I need a DTO to encapsulate the values using data
types that GWT client can understand. The DTO class would be:

package myapp.client.gwt.dto;
public class *ItemDTO* {
 private int id;
 private String productName;
 private *Double* price;

// getters and setters
}

Right? Now my service must load an Item, create the corresponding ItemDTO
and send it back to GWT client. The client changes it, send it back to ther
server, the server update the Item instance and save.

Thinking about the package and the source files. Could I create a java class
library with the package *myapp.client.gwt.dto* and use this library in
classpath for the GWT client and the server?

Thanks, for helping.

---
Felipe Marin Cypriano
Vitória - ES


On Wed, Feb 11, 2009 at 11:02 PM, BobM bmar...@bcscomputers.com wrote:


 Felipe,

 You can use anything on the client side that GWT supports, and that
 includes everything supported by HTML and javaScript, you can use
 anything on the server side that java allows.  You would likely
 communicate from client side to server side using GWT RPC mechanisms.
 by which you can ship across - back and forth - anything that is
 serializable ... which includes java primitives and most java classes,
 especially including - I think - all of the collections classes.  So,
 there are many options available to you to communicate between client
 side and server side.

 With regard to BigDecimal ... no such thing exists in javaScript.
 Indeed, virtually all significant math in javaScript uses floating
 point and therefore significant calulations are prone to normal
 floating point rounding errors.  On the other hand, the common
 representation of values on any browser side presentation is ascii.
 You can ship a big ascii number across to the server side and convert
 it there to BigDecimal, if that is what you wish to use in your java
 server side code.

 Just a few ideas for you.

 Best regards.

 On Feb 11, 12:51 pm, Felipe Cypriano fmcypri...@gmail.com wrote:
  Hello,
 
  I'm studying the usage of GWT in the next version of our app. I've read
 the
  FAQ and some classes aren't support on client side, such as BigDecimal
 which
  is used extensively in our entities classes.
 
  So, what do you thinks is the best way to do the comunication between
 client
  and server and reuse as much as possible all the entities?
 
  I read the article Security for GWT
  Application
 http://groups.google.com/group/Google-Web-Toolkit/web/security-for-gw..
 .and
  change my mind about using JSON to transfer the data. Looking for
  another ways I read about using DTO pattern, but how do I do this? Some
  tips? Links?
 
  Regards,
 
  ---
  Felipe Marin Cypriano
  Vitória - ES
 


--~--~-~--~~~---~--~~
You received 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: compiling gwt app

2009-02-12 Thread Felipe Cypriano
I think you're missing gwt-dev-system.jar in your classpath.

---
Felipe Marin Cypriano
Vitória - ES


On Thu, Feb 12, 2009 at 8:16 AM, ytbryan ytbr...@gmail.com wrote:


 ok ...  i used pause;


 i got this error. tried searching in this forum but got no result. can
 someone help me out?

 Exception in thread main java.lang.NoClassDefFoundError: com/google/
 gwt/dev/GW
 TCompiler
 Caused by: java.lang.ClassNotFoundException:
 com.google.gwt.dev.GWTCompiler
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
 Could not find the main class: com.google.gwt.dev.GWTCompiler.
 Program will exi
 t.

 C:\Users\bryan\workspace\gwt-test-MySQLConnpause;
 Press any key to continue . . .
 On Feb 12, 11:09 am, ytbryan ytbr...@gmail.com wrote:
  hi all
 
  i want to see the output of gwt-compile as  it gives error. but it
  always closes  immediately. how do i make it pause?
 


--~--~-~--~~~---~--~~
You received 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 implement DTO correctly for use with RPC?

2009-02-12 Thread Felipe Cypriano
I'll test if packaging the DTO classes in another package works.


On Thu, Feb 12, 2009 at 12:42 PM, BobM bmar...@bcscomputers.com wrote:

 The client side should not have to change anything.  It works with
 ItemDTO on its side and sends it back to the server side as required.


Why not? If a salesman has the rights to change the item price, why not the
client side shouldn't change the ItemDTO and update the server? Is there a
better solution for updates?


Cheers,

---
Felipe Marin Cypriano
Vitória - ES


On Thu, Feb 12, 2009 at 12:42 PM, BobM bmar...@bcscomputers.com wrote:


 See my comments in line, below ...

  Assuming I've this entity class:
 
  package myapp.entity;
  public class Item {
   private int id;
   private String productName;
   private BigDecimal price;
 
  // getters and setters
 
  }
 
  This class is packaged in a file called entities.jar and because the
 price
  attribute which is a BigDecimal I can't send this entity directly to GWT
  client over RPC. Then, I need a DTO to encapsulate the values using data
  types that GWT client can understand. The DTO class would be:
 
  package myapp.client.gwt.dto;
  public class *ItemDTO* {
   private int id;
   private String productName;
   private *Double* price;
 
  // getters and setters
 
  }
 
  Right?
 I think that would be the right approach.  Now your service - on the
 server side - might take take class Item, construct a new ItemDTO (you
 could have a constructor in ItemDTO which takes an Itemas a parameter
 and uses that to construct ItemDTO with the proer atributes).  Make
 sure you mark the class itemDTO 'implements Serializable.  When you
 return the ItemDTO from your service GWT will marshall and unmarshall
 these objects on each side of the transaction, tranparently to you.

  Now my service must load an Item, create the corresponding ItemDTO
  and send it back to GWT client. The client changes it, send it back to
 ther
  server, the server update the Item instance and save.
 The client side should not have to change anything.  It works with
 ItemDTO on its side and sends it back to the server side as required.

 
  Thinking about the package and the source files. Could I create a java
 class
  library with the package *myapp.client.gwt.dto* and use this library in
  classpath for the GWT client and the server?
 I don't know why not.

 Have a great day!
 


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



How to implement DTO correctly for use with RPC?

2009-02-11 Thread Felipe Cypriano
Hello,

I'm studying the usage of GWT in the next version of our app. I've read the
FAQ and some classes aren't support on client side, such as BigDecimal which
is used extensively in our entities classes.

So, what do you thinks is the best way to do the comunication between client
and server and reuse as much as possible all the entities?

I read the article Security for GWT
Applicationhttp://groups.google.com/group/Google-Web-Toolkit/web/security-for-gwt-applicationsand
change my mind about using JSON to transfer the data. Looking for
another ways I read about using DTO pattern, but how do I do this? Some
tips? Links?


Regards,

---
Felipe Marin Cypriano
Vitória - ES

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



onModuleLoad() + ajax partial refresh

2008-09-15 Thread Felipe Frechiani
Hi,

I'm using jboss-portal with a partial refresh of the portlet.
The problem is when I switch to edit mode to view mode the portlet makes a
partial refresh and when it back to the main gwt page,
it does not show anything.
I tried to force calling the onModuleLoad() from a javascript in the html
page and it runs the onModuleLoad method,
but it does not show anything in the screem I kwon that the code is running
but seems that the RootPanel is not initiated correcly.
Is the onload of the page doing anything esle? to initiate the RootPanel?

Any Ideas?

Cheers!!

-- 
Felipe Frechiani de Oliveira
Vitória - ES

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