Re: To smart GWT or not

2011-02-10 Thread Rogério Valente
We install an application in production environment using 2.x GWT GWT-
EXT 2.0.5.
I tried to migrate to the Smart Gwt but we would have much trouble
with the widgets you customized.
A new application would have to be developed.
We believe that GWT-EXT was easier to use.
A basic problem we faced was with the grid that looks different in IE
and Firefox.

On 10 fev, 10:10, ep eplisc...@googlemail.com wrote:
 GWT is not designed to be a UI Framework, rather its a base for
 everything else. And this is good so. We're using ExtGWT as a UI
 Framework, we kicked SmartGWT because of their JS wraps (not a native
 GWT implementation)

 On 10 Feb., 11:11, jaga j.annes...@gmail.com wrote:







  One problem with GWT is it's lack of styling. The default style is un-
  styled and doesn't work for our application. SmartGWT on the other-
  hand provides an attractive uniform styling. The blocker for me is
  that now you are using another 3rd party library: you have to learn
  its ways, integrate with your existing framework, and deal with its
  bugs and idiosyncrasies.

  On Feb 10, 7:30 am, Nagin Kothari naginkoth...@gmail.com wrote:

   Sanjiv,

   I know I am reopening this thread,  not to criticise Smart GWT, but want 
   to
   give some feedback.

   First of all let me acknowledge that it is very good library with lot of
   cool and fantastic features. I experimented with it and liked it and
   planning to use it in one of my project.But I have some doubts and 
   questions
   , which you I thought you will be best person to answer . Hence this mail.

   1. I am using  GWT and want to use some Smart GWT widgets in that
   application.But it looks like I have to include lot of Smart client JS 
   file
   which size is about 2MB. Client need to download all these JS libs above 
   our
   GWT compiled script. this become very huge download for client, Even I 
   want
   to use  Smart GWT's grid , I realized that I have to include  almost
   everything except few small smart-client JS.So my question is why is so 
   and
   what is work around for it?

   2.Second, smart-client scripts are not in compressed format (like GWT is).
   it is like GWT pretty format. If it is compressed then size of all script
   files will be reduced.

   3. My third question is - Why smart GWT is not written in GWT so that it 
   can
   take advantage of GWT's optimised java script compiler.Smart GWT widget 
   the
   can be extended by user to customize it. Right now Smart GWT widgets are
   just black box for developer.

   Theses are few question I had in mind., Over all features provided by 
   smart
   GWT are great.

   Thank and regards,

   Nagin Kothari

   On Fri, Dec 3, 2010 at 9:24 PM, Sanjiv Jivan sanjiv.ji...@gmail.com 
   wrote:
Jaroslav,
If you're happy with GWT that’s great but please do not make such vague 
and
baseless claims about Smart GWT. Legitimate bugs reported are fixed 
really
quickly and existing users can attest to this. Smart GWT currently has
around 42 open defects with a majority of them being low priority, and 
16
enhancement requests (http://code.google.com/p/smartgwt/issues/list).
Considering the depth and breadth of features provided by the framework 
this
is a pretty low number of defects.

3 of the 7 issues that you filed were invalid, and 2 defects that were
fixed and the remaining 2 were marked WontFix since they were trivial 
pieces
of functionality that the user could easily implement.

   http://code.google.com/p/smartgwt/issues/list?can=1q=reporter:jarosl...

http://code.google.com/p/smartgwt/issues/list?can=1q=reporter:jarosl...And
when you were advised how to implement a warning dialog before record
deletion on this issue that you filed  (
   http://code.google.com/p/smartgwt/issues/detail?id=325), you responded by
you are sad. Nice way to show your appreciation when using a free
product.

Sanjiv

2010/12/3 Jaroslav Záruba jaroslav.zar...@gmail.com

...until you run into some SmartGWT magic - like widgets not working
without otherwise completely useless 'final' (have fun trying figure
that out), newly spanned records not appearing in tree, styles not
getting applied until mouseover, etc.
What looks like polished set of awesome widgets might turn into
nightmare which makes you throwing your deadlines out of the window.

(Like I said before, this particular experience with SmartGWT is one
year old.)

With GWT the start might be slower but you can predict the deadlines +
you're not working with 'black box'.

On 3 pro, 00:00, ckendrick charles.kendr...@gmail.com wrote:
 Sorry that's quite absurd: SmartGWT is often introduced to solve
 performance problems, and it solves them.

 SmartGWT is intentionally designed to have a one-time-ever download 
 of
 a feature rich runtime in exchange for reducing subsequent server
 requests.  For example, 

GWT-EXT 2.0.5 + GWT 2.1

2010-12-16 Thread Rogério Valente
Does anybody knows why GWT-EXT 2.0.5 doesn't work with GWT 2.1?
In my application with GWT 2.0.x, GWT-EXT works fine but, with 2.1
some custom widgets simply don't appear on screen...

Should I migrate to SmartGWT ?
WIll be a hard work to do...

-- 
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: Problem using Reflection and Casting objects on GAE

2010-08-16 Thread Rogério Valente
Hi Alex,

How about post the solution here for the entire group? :-)


On 16 ago, 11:12, AlexG alexander.gauss.ax...@googlemail.com wrote:
 Hi again,

 I solved the problem, and now it works, as intended :)
 If somebody has any questions, how this works, just
 eMail me.

 Greets
 Alex

 On 16 Aug., 15:37, AlexG alexander.gauss.ax...@googlemail.com wrote:



  Hi,

  first thanks for your fast reply.
  I think this should work. Perhaps I should just
  give more background information.

  The App is build using the MVP Pattern. I have one
  main-Page, with 3 Panels (3 div-elements in the .html)

  Two of the three panels will never change during runtime. These
  contains the menu control-widgets. If i select something,
  then the content-Panel should load the requestet UI (Module).

  This means, it should load just a new MVP-View via a new MVP
  presenter.
  The views and presenters are seperated in extra Projects in Eclipse,
  just
  to make it easy to maintain the App.

  So I definitely don´t want anything in one Project, or any widget in
  one onModuleLoad(). I also don´t want lots of if´s to decide, which
  view should be shown, because the app must be highly maintainable,
  reusable
  and extensable.

  By-the-way, the way I do it, works, if I code it with many if´s. But I
  think
  this is a dirty solution, and not what I want.

  Thanks, for your suggestions anyway. Maybe you got asnother idea??

  Thanks.

  Greets Alex

  On 16 Aug., 14:49, André Moraes andr...@gmail.com wrote:

   This aproach will not work, since after compiled GWT generates pure
   JavaScript.

   You could do the following:

   1- Create an JSP page (index.jsp) and use this page as your GWT hosted 
   page.
   2- When rendering the page, check the name of the module (not the name of
   the class) that you want to load.
   3- Create one Module.gwt.xml file for each of the user interface that you
   want to load.
   4- When renderinhg the script tag that loads your selection script, change
   the name of your selection script based on the information that you
   retreived from the datastore.

   This options generate lots of files in your GAE application, because each 
   UI
   will be compiled independ of another, but its fast.

   Another option will be:

   1- Write your GWT application with all the UI and only one entry point
   class.
   2- Create an jsp and define a cookie with the name (not the classname, GWT
   doesn't have reflection) of the UI that you want to load.
   3- Inside your onModuleLoad function, write a series of if's that will 
   check
   this cookie and load the UI that you want.
   4- Use the GWT.async (code-splitting) to load the UI that you want, this
   will cost another round-trip but will download much less code. If you 
   don't
   do that, the browser will download all the code for all the UI.

   Hope it helps.

   --
   André Moraes
   Analista de Desenvolvimento de Sistemas
   andr...@gmail.comhttp://andredevchannel.blogspot.com/

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



Re: special characters

2010-01-18 Thread Rogério Valente
I suggest you create a key in the i18n file.
In the applications we are developing with gwt, we just create it and
point the widget's text propertie to this key.


On 18 jan, 07:49, Akash Gupta akash.b...@gmail.com wrote:
 How do i use characters like  or  as browser considers text
 after/before them as a tag and messes up the whole thing .
 Some methods to encode/decode them are there or we need to do something else
 (like replaceall ) .

 Regards,
 Akash
-- 
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.




Format number on ComboBox / ComboBoxItem

2010-01-12 Thread Rogério Valente
Does anybody know how can I format a number value on ComboBox (GWT-
EXT) or ComboBoxItem (SmartGwt)?
The data is a json string sent from server generated by new Gson
().toJson(listOfObjects).

-- 
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: Format number on ComboBox / ComboBoxItem

2010-01-12 Thread Rogério Valente
A way to format number value on .toJson(listOfObjects) invoke is
usefull.

On 12 jan, 12:03, Rogério Valente rogerio.vale...@gmail.com wrote:
 Does anybody know how can I format a number value on ComboBox (GWT-
 EXT) or ComboBoxItem (SmartGwt)?
 The data is a json string sent from server generated by new Gson
 ().toJson(listOfObjects).
-- 
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: Detect browser back or forward button clicked

2010-01-08 Thread Rogério Valente
Well, in fact you don't disable the buttons.
In the disableFunctionKey.js file, the function just intercept the
keydown or keypress
and return a value tha is not the expected by the browser.

As I wrote, maybe you can find a solution that intercept the browser
back button click.

On 7 jan, 12:13, Anita an...@ensarm.com wrote:
 Hi  Rogério Valente,

 Thanks for the reply.
 If i disable the buttons how will i come to know that the back button
 is clicked ?

 On Jan 7, 7:00 pm, Rogério Valente rogerio.vale...@gmail.com wrote:

  I don't know if this can help you but, we just add a script in
  appName.html to disable some functions key (F5 to refresh).
  Take a look at the code below. Put it in a javascript file in
  appName/war/js and add a script tag on the head section of your app
  main html file ..
  something like script type=text/javascript language=javascript
  src=js/disableFunctionKey.js/script

  Maybe you can find a solution to disable the buttons.

  [CODE]

              //Disable F5 - Refresh
      var isIE = ( navigator.userAgent.toLowerCase().indexOf(msie) !=
  -1 );
      function interceptKeyDown(e) {
          keyCode = e.keyCode;
          //F5
          if ( keyCode == 116 ) {
              if(isIE) {
                 // IE only
                 e.keyCode = 505;
              }
              return false;
          }
      }
      function interceptKeyPress(e) {
          if( !e ) {
              if (window.event)
                 e = window.event;
              else
                 return;
          }
          //NS 4, NS 6+, Mozilla 0.9+, Opera
          if(typeof(e.which) == 'number') {
              var keyCode = e.keyCode ? e.keyCode : e.which ? e.which :
  void 0;
              if(e.charCode == null || e.charCode == 0 ) {
                 // F5
                 if ( keyCode == 116 ) {
                     e.stopPropagation();
                     e.preventDefault();
                 }
              }
           }
      }
      function attachEventListener( obj, type, func, capture ) {
          if(window.addEventListener) {
              //Mozilla, Netscape, Firefox
              obj.addEventListener( type, func, capture );
          } else {
              //IE
              obj.attachEvent( 'on' + type, func );
          }
      }

      attachEventListener(document,keydown,interceptKeyDown,true);
      attachEventListener(document,keypress,interceptKeyPress,true);

  [END-CODE]

  On 7 jan, 10:34, Anita an...@ensarm.com wrote:

   Hi,

   How can I detect on GWT client side that browser's back or forward
   button is clicked? Because on click of back and forward button i want
   to perform custom operation.

   Thank You.
-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Detect browser back or forward button clicked

2010-01-07 Thread Rogério Valente
I don't know if this can help you but, we just add a script in
appName.html to disable some functions key (F5 to refresh).
Take a look at the code below. Put it in a javascript file in
appName/war/js and add a script tag on the head section of your app
main html file ..
something like script type=text/javascript language=javascript
src=js/disableFunctionKey.js/script

Maybe you can find a solution to disable the buttons.

[CODE]

//Disable F5 - Refresh
var isIE = ( navigator.userAgent.toLowerCase().indexOf(msie) !=
-1 );
function interceptKeyDown(e) {
keyCode = e.keyCode;
//F5
if ( keyCode == 116 ) {
if(isIE) {
   // IE only
   e.keyCode = 505;
}
return false;
}
}
function interceptKeyPress(e) {
if( !e ) {
if (window.event)
   e = window.event;
else
   return;
}
//NS 4, NS 6+, Mozilla 0.9+, Opera
if(typeof(e.which) == 'number') {
var keyCode = e.keyCode ? e.keyCode : e.which ? e.which :
void 0;
if(e.charCode == null || e.charCode == 0 ) {
   // F5
   if ( keyCode == 116 ) {
   e.stopPropagation();
   e.preventDefault();
   }
}
 }
}
function attachEventListener( obj, type, func, capture ) {
if(window.addEventListener) {
//Mozilla, Netscape, Firefox
obj.addEventListener( type, func, capture );
} else {
//IE
obj.attachEvent( 'on' + type, func );
}
}

attachEventListener(document,keydown,interceptKeyDown,true);
attachEventListener(document,keypress,interceptKeyPress,true);

[END-CODE]


On 7 jan, 10:34, Anita an...@ensarm.com wrote:
 Hi,

 How can I detect on GWT client side that browser's back or forward
 button is clicked? Because on click of back and forward button i want
 to perform custom operation.

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




Re: GWT 2.0: Debug with Firefox and Eclipse

2010-01-06 Thread Rogério Valente
Check if the message below is on console output.

[WARN] The class com.google.gwt.dev.HostedMode is deprecated and will
be removed --
use com.google.gwt.dev.DevMode instead.

If the message is present on your console, change your main class from
com.google.gwt.dev.HostedMode to com.google.gwt.dev.DevMode.
And if the problem persist, check the Compile  Debug tips in this
url : 
http://code.google.com/intl/pt-BR/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#DevGuideDevMode

I did make the upgrade to 2.0 version and the debug is working
fine. :-)

Cheers.


On 6 jan, 11:32, Ashar Lohmar asharloh...@gmail.com wrote:
 do you have the ?gwt.codesvr=localhost:9997 added to your urls?!
 usually that's the problem ... if you do have the parameter and still
 no debuging ... then i don't know

 On Jan 6, 3:52 am, y y...@cs.washington.edu wrote:

  Anyone managed to debug with GWT 2.0? I don't get a prompt to install
  the developer plugin. Even when I installed it manually, nothing
  happens. Breakpoints just don't halt the running.

  Mac 10.6 (updated to the latest), Eclipse 3.5.1, Java 1.6.0
  Tried with the latest stable Firefox and Chrome

  On Jan 5, 10:45 am, y y...@cs.washington.edu wrote:

   When GWT was working with its internal browser, debugging from Eclipse
   was simple. I just marked the breakpoints and ran as debug. However,
   it doesn't seem to work with GWT 2.0 and Firefox. Any idea what am I
   missing?

   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: Validating ClientBundles ?

2009-12-31 Thread Rogério Valente
I changed the Google configuration on Eclipse (Windows / Preferences /
Google)  unchecking the Notify me about updates checkbox.
The problem doesn't back until now.

[]s,

Rogério.

On 28 dez, 13:23, Miguel Méndez mmen...@google.com wrote:
 This is a bug.  Could you add a bug to the GWT issue
 trackerhttp://code.google.com/p/google-web-toolkit/issues/listwith
 this information?  If you are able to, please provide some sample code
 that reproduces the problem.

 On Tue, Dec 22, 2009 at 12:07 PM, Carlos Aguayo 
 carlos.agu...@gmail.comwrote:





  Hi,

  After upgrading the Eclipse plugin to GWT 2.0, whenever I import my
  Eclipse projects, Eclipse crashes. After importing the projects, I see
  multiple multiple (~12) jobs spawned called Validating
  ClientBundles, then it either shows a warning saying that it ran out
  of memory or just closes.

  When inspecting the Eclipse log, I found this:
  
  !ENTRY org.eclipse.core.jobs 4 2 2009-12-22 11:07:17.178
  !MESSAGE An internal error occurred during: Refreshing workspace.
  !STACK 0
  java.lang.OutOfMemoryError: unable to create new native thread
         at java.lang.Thread.start0(Native Method)
         at java.lang.Thread.start(Thread.java:597)
         at org.eclipse.core.internal.jobs.WorkerPool.jobQueued
  (WorkerPool.java:145)
         at
  org.eclipse.core.internal.jobs.JobManager.schedule(JobManager.java:
  1001)
         at org.eclipse.core.internal.jobs.InternalJob.schedule
  (InternalJob.java:391)
         at org.eclipse.core.runtime.jobs.Job.schedule(Job.java:435)
         at
  com.google.gdt.eclipse.core.BuilderUtilities.revalidateCompilationUnits
  (BuilderUtilities.java:170)
         at
  com.google.gwt.eclipse.core.clientbundle.ClientBundleResourceChangeListener
  $1.visit(ClientBundleResourceChangeListener.java:154)
         at org.eclipse.core.internal.events.ResourceDelta.accept
  (ResourceDelta.java:68)
         at org.eclipse.core.internal.events.ResourceDelta.accept
  (ResourceDelta.java:79)
         at org.eclipse.core.internal.events.ResourceDelta.accept
  (ResourceDelta.java:79)
         at org.eclipse.core.internal.events.ResourceDelta.accept
  (ResourceDelta.java:79)
         at org.eclipse.core.internal.events.ResourceDelta.accept
  (ResourceDelta.java:79)
         at org.eclipse.core.internal.events.ResourceDelta.accept
  (ResourceDelta.java:79)
         at org.eclipse.core.internal.events.ResourceDelta.accept
  (ResourceDelta.java:79)
         at org.eclipse.core.internal.events.ResourceDelta.accept
  (ResourceDelta.java:79)
         at org.eclipse.core.internal.events.ResourceDelta.accept
  (ResourceDelta.java:48)
         at

  com.google.gwt.eclipse.core.clientbundle.ClientBundleResourceChangeListener­.visitResourceDelta
  (ClientBundleResourceChangeListener.java:124)
         at

  com.google.gwt.eclipse.core.clientbundle.ClientBundleResourceChangeListener­.resourceChanged
  (ClientBundleResourceChangeListener.java:116)
         at org.eclipse.core.internal.events.NotificationManager$2.run
  (NotificationManager.java:291)
         at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
         at org.eclipse.core.internal.events.NotificationManager.notify
  (NotificationManager.java:285)
         at
  org.eclipse.core.internal.events.NotificationManager.broadcastChanges
  (NotificationManager.java:149)
         at org.eclipse.core.internal.resources.Workspace.broadcastPostChange
  (Workspace.java:313)
         at org.eclipse.core.internal.resources.Workspace.endOperation
  (Workspace.java:1022)
         at org.eclipse.core.internal.resources.InternalWorkspaceJob.run
  (InternalWorkspaceJob.java:45)
         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
  ===
  These are my JVM settings in eclipse.ini:

  --launcher.XXMaxPermSize
  256m
  -Xms256m
  -Xmx1024m
  -Xss1024k

  Is there a way to turn off this validation upon importing the project.
  Am I missing something or is this a bug?

  Thanks,
  Carlos

  --

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

 --
 Miguel- Ocultar texto das mensagens anteriores -

 - Mostrar texto das mensagens anteriores -

--

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.