Re: handling events in MVP with containers

2010-07-12 Thread xworker
Is there really no comments on this? Am I doing something wrong or
does GWT handle events this way. Doesn't seem right that I have to
handle everything in the DockPresenter. Could someone please point me
in the right direction

Thanks
A

On 9 Juli, 14:43, xworker blomqvist.andr...@gmail.com wrote:
 Hi all.

 Got this setup:

 Dock (DockLayoutPanel)
   --Tree (Tree)
   --Content. (SimplePanel)

 DockPresenter creates and bind the presenters for tree and content
 like so:

 public DockPresenter(ContactsServiceAsync rpcService,
                         HandlerManager eventBus, Display view) {
                 this.rpcService = rpcService;
                 this.eventBus = eventBus;
                 this.display = view;

                 contactsPresenter = new ContactsPresenter(rpcService, 
 eventBus,
                                 new ContactsView());
                 treePresenter = new TreePresenter(rpcService, eventBus, new
 MyTree());
         }

 Then in the bind method in the DockPresenter i got this:

         public void bind() {
                 contactsPresenter.bind();
                 treePresenter.bind();

                 eventBus.addHandler(SelectionEvent.getType(), treePresenter);

 I want to propagate all the Selection events to the treePresenter. The
 treePresenter looks like this:

 public class TreePresenter implements Presenter,
 SelectionHandlerTreeItem {

 ...
 ...

 @Override
         public void onSelection(SelectionEventTreeItem event) {
          TreeItem item = (TreeItem) event.getSelectedItem();
                  ...
                  ..

 }

 But the onSelection method never gets called. Have I misunderstod the
 MVP event model? I dont want to handle all event in the dock
 presenter, then everyting gets tangeld upp and not very decoupled.
 What is the proposed way to handle events in a setup with nestled
 presenter and containers widgets containing other widgets?

 It seems that an good example with MVP ui:binding and DockLayoutPanel
 (or similar) with a tree navigation to the west which changes content
 in the center panel would benefit alot of people.

 Thanks for your time
 /Andreas

-- 
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: Available - GXT with GWT (on Eclipse) tutorial

2010-07-12 Thread Flori
- Just include the gxt jar in the lib folder and add it to the build
path
- add this to your module xml: inherits name='com.extjs.gxt.ui.GXT'/

- add this to your main page  link rel=stylesheet type=text/css
href=css/ext-all.css /
- debug works fine in hosted mode

Also u can have a look at this page: http://www.sencha.com/helpcenter/index.jsp

however - nice tutorial

-- 
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: Available - GXT with GWT (on Eclipse) tutorial

2010-07-12 Thread Andrés Cerezo
Congratulations very, very usefull. I would do another example with GWT +
App engine, there are a lot of problems with both.


Cheers.

Andrés Cerezo.

2010/7/12 Flori floon...@googlemail.com

 - Just include the gxt jar in the lib folder and add it to the build
 path
 - add this to your module xml: inherits name='com.extjs.gxt.ui.GXT'/
 
 - add this to your main page  link rel=stylesheet type=text/css
 href=css/ext-all.css /
 - debug works fine in hosted mode

 Also u can have a look at this page:
 http://www.sencha.com/helpcenter/index.jsp

 however - nice tutorial

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



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



Re: TabPanel - 100% height for client widget?

2010-07-12 Thread DaveC
Have you tried using CSS?

.my-tab-content {
 position: absolute;
 top: 0;
 left: 0;
 bottom: 0;
 right: 0;
}

this *should* work as long as it's parent is positioned (relative/
absolute)...

The new layout panels I think require a RootLayoutPanel not a
RootPanel... but I can't remember exactly.

Cheers,
Dave

On Jul 11, 6:52 pm, Magnus alpineblas...@googlemail.com wrote:
 Hi,

 sorry for repeating and posting in this thread without solution, but I
 must say that TabLayoutPanel is useless for me if its size cannot be
 maximized.

 So I'll have to build my own TabPanel, but this is not satisfactory
 since a framework should prevent me from building my own versions of
 things that should be already available.

 I cannot understand why TabLayoutPanel insists on having its content
 area squeezed at the top...

 Magnus

 On Jul 4, 12:24 am, Magnus alpineblas...@googlemail.com wrote:

  Thanks! I tried with dummy panels, VerticalPanel and SimplePanel. I
  tried absolute and relative sizes but nothing seems to have an effect.

   private void init ()
   {
    TabPanel pnl = new TabPanel ();
    pnl.setSize (100%,100%);
    //pnl.setHeight (100px);

    SimplePanel p = new SimplePanel ();
    p.setPixelSize (100,200);
    HTML txt1 = new HTML(This isa Text 1.);
    p.add (txt1);
   //  txt1.setPixelSize (200,200);
    pnl.add (p,Home 1);

    HTML txt2 = new HTML(This is Text 2.);
    pnl.add (txt2,Home 2);
   }

  Magnus

  On Jul 3, 6:43 pm, aditya sanas 007aditya.b...@gmail.com wrote:

   I think for that you will require to set its border explicitly.
   that will settle this issue.
   you can add a dummy panel on tab home1 or home2 and set its height
   but here  if you set height using % then it will not work you will have to
   set height in pixels or any other like em...

   i hope this will work.

   --
   Aditya

   On Sat, Jul 3, 2010 at 7:09 PM, Magnus alpineblas...@googlemail.com 
   wrote:
In addition, it would set the wrong height! The height of the TabPanel
(pnl) is ok, it covers 100 % of the available space.
But the VerticalPanel p that I add as the client panel to one of the
tab pages is not affected.

Look at this screenshot:
   http://yfrog.com/4rtabpanelp

The TabPanel (red border) is ok. But its child panel (blue border) is
crunched at the top.

How can I get the blue border maximized to the red border?

Thanks
Magnus

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

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



Re: Different paging behaviour for CellTable and SimplePager

2010-07-12 Thread DennisLaumen
Hi,

Overriding seems like a hard thing to do as CellTable depends on a
private final attribute of type CellListImplT for most of its logic.
It seems like the easiest way to implement the paging behavior
described in the above post would be to copy CellTable and change the
code here and there. Unfortunately, this wouldn't be a very elegant
solution, let alone maintainable as it appears these widgets are still
moving targets.

Can anyone offer me any tips? Maybe some Googlers with sage advice?

Regards,

Dennis Laumen

-- 
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 RPC with Adobe AIR 2

2010-07-12 Thread nino ekambi
Well i think i ve figured it out

the first Problem is  in the RequestBuilder class. (Well actually is the
XMLHttpRequest Class)

take a look at the  XMLHttpRequest Class in the method *clearOnReadyStateChange
(*line 113)

 public final native void clearOnReadyStateChange() /*-{
var self = this;
$wnd.setTimeout(function() {
  // Using a function literal here leaks memory on ie6
  // Using the same function object kills HtmlUnit
 * self.onreadystatechange = new Function();*
}, 0);
  }-*/;

this throws an error inside adobe AIR.

So to overcome this i did someting like this inside the RequestBuilder Class
in the doSend Method (around * line 381*)


  // Must set the onreadystatechange handler before calling send().
xmlHttpRequest.setOnReadyStateChange(new ReadyStateChangeHandler() {
  public void onReadyStateChange(XMLHttpRequest xhr) {
if (xhr.getReadyState() == XMLHttpRequest.DONE) {

/**
 * Avoide new Function security error in Adobe AIR
 */
   * if(! Runtime.isAIRRuntime()){*
*** *
*** **xhr.clearOnReadyStateChange();*
*}*
* *
*  request.fireOnResponseReceived(callback);*
*}*
  }
});


The Runtime class is a class i created my self.


After you have done this you are half way :)

You need to make a change in RemoteServiceServlet class too. Because  the
modeBaseURL of the adobe air application istarts with
*app:/ . This will throw an Exeption so you need to change that *
*
*
*i did something like (RemoteServiceServlet around line 41*) * :*
*
*
*
*
*
if (moduleBaseURL != null) {
  try {


  if(moduleBaseURL.indexOf(app:) = 0){

 moduleBaseURL =  moduleBaseURL.replaceFirst(app:/, 
http://127.0.0.1:/;);

}


modulePath = new URL(moduleBaseURL).getPath();
  } catch (MalformedURLException ex) {
// log the information, we will default
servlet.log(Malformed moduleBaseURL:  + moduleBaseURL, ex);
  }
}



And after that GWT RPC is running with Adobe AIR.

Hope this could help

greets


*
*
*


*
*
2010/7/11 nino ekambi jazzmatad...@googlemail.com

 Yeah you are right.
 It looks the gwt is generating some new Function(){...} constructs,

 what adobe air doesnt like.

 Anybody has a solution to this ?
 I m also really  interested

 greets

 2010/7/11 Joe Cole profilercorporat...@gmail.com

 On Jul 11, 1:39 pm, nino ekambi jazzmatad...@googlemail.com wrote:

  Why dont just use the RequestBuilder  and send  the response back as
 JSON or
  XML ?

 Because you have to write some of the conversion process manually
 which is automated with GWT.

 Unless you know of a project that is a drop-in replacement for RPC
 with no extra code required?

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




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



Re: layoutpanels and actual results

2010-07-12 Thread ToXiC
i used rootlayout panel...wht i doubt is tht whether will i get the
same results as shown in tht page i've mentioned.coz the kind of
results tht i got were lookin more of panels thn of layouts.

On Jul 11, 7:36 pm, Brian Reilly brian.irei...@gmail.com wrote:
 The other thing that I was just reminded of from another post is to
 make sure that you're using the appropriate root panel. Specifically,
 again if you're using layout panels, you need to use a
 RootLayoutPanel.

 -Brian

 On Jul 11, 10:33 am, Brian Reilly brian.irei...@gmail.com wrote:



  It would help to know what specifically you were trying to do (there
  are a lot of different layouts on the page you linked to) and how it
  wasn't working for you. One common mistake that people make when
  starting out with layout panels is not using standards mode. It's
  documented on that page, but you have to go down a bit:

     http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html#St...

  I think they should probably move (or repeat) at least the critical
  part about the doctype up to the top where layout panels are
  introduced.

  -Brian

  On Jul 10, 3:21 am, ToXiC dezm...@gmail.com wrote:

   Hi all
        Am jus a beginner and i've been trying to use the layout panels
   in my code..using the example code.i wasn't able to achieve the kindof
   results thts shown 
   inhttp://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html
   so pls do help me...i jus want to hav layouts as shown in tht page..i
   jus want to know wht should be done to achieve it.thnks in advance :)- 
   Hide quoted text -

 - Show quoted text -

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



Surely a nasty bug! in RPCServletUtils.readContentAsUtf8

2010-07-12 Thread Shawn Brown
Hi,
 Can anyone suggest a work around for
http://code.google.com/p/google-web-toolkit/issues/detail?id=5109

I'll have to look at the src when I get time but this is nuts to me.

Does this work for you?

private String showRequestedMethod(ServletRequest request) throws
IOException, ServletException {

//requestCopy2=(HttpServletRequest) request;

//HttpServletRequest requestCopy =(HttpServletRequest) request;

String r1 = request.toString();
Log.info(request.length + request.getContentLength());
String payload =
RPCServletUtils.readContentAsUtf8(((HttpServletRequest) request));
Log.info(payload: +payload);
pay=payload;
RPCRequest rpc_request = RPC.decodeRequest(payload);
//  Log.info(rpc. method  + rpc_request.getMethod());
Log.info(r.ts +request.toString());


Log.info(request.length + request.getContentLength());
String r2= request.toString();
String payload2;
try {
payload2 = 
RPCServletUtils.readContentAsUtf8(((HttpServletRequest) request));
Log.info(payload2: +payload2);

} catch (Exception e) {
Log.info(Why the #$% + e.getMessage());
e.printStackTrace();
}
Log.info(r.ts2 +request.toString());

Log.info(Are r1 and r2 the same +r1.equals(r2));

return rpc_request.getMethod().toString();
}

I get an error every time saying Client did not send 197 bytes as
expected.  Why it's the same request that is passed into
RPCServletUtils.readContentAsUtf8(((HttpServletRequest) request));

Basically I am checking for authorization in a filter so I need to
find out what rpc method is being called.  Then if the user has auth,
I let it go through but then see an error when the method is really
called.  I call it twice in this method as an example to narrow down
what is failing.

Any help?  Please!

Shawn

PS. perhaps this is related
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/9b4a98d0d50d2752

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



GWT server design

2010-07-12 Thread Xsuperstore
Hello.

I am new in the GWT word, I have some questions about server resource
design.

Estimate of CPU  MEN compared to LAMP in Linux?

I mean, for high traffic sites (2-5) users/day the is some
estimate/recomended hardware resources design?

thanks in advance!

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



GWT compile error : Annotation error

2010-07-12 Thread dhana
Hi,

When I try to compile my project using gwtc target, I am facing
compilation errors



 [java]Resolving com.test.mypojobeanmodel
 [java]   Found type 'com.test.mypojobeanmodel'
 [java]  [ERROR] Annotation error: cannot resolve
com.test.mypojo
 [java] java.lang.ClassNotFoundException: com.test.mypojo
 [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:
202)
 [java] at java.security.AccessController.doPrivileged(Native
Method)
 [java] at
java.net.URLClassLoader.findClass(URLClassLoader.java:190)
 [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:
307)
 [java] at sun.misc.Launcher
$AppClassLoader.loadClass(Launcher.java:301)
 [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:
248)
 [java] at java.lang.Class.forName0(Native Method)
 [java] at java.lang.Class.forName(Class.java:247)
 [java] at
com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotationValue(TypeOracleMediator.java:
670)
 [java] at
com.google.gwt.dev.javac.TypeOracleMediator.createAnnotation(TypeOracleMediator.java:
400)
 [java] at
com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotation(TypeOracleMediator.java:
568)
 [java] at
com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotations(TypeOracleMediator.java:
583)
 [java] at
com.google.gwt.dev.javac.TypeOracleMediator.resolveClass(TypeOracleMediator.java:
728)
 [java] at
com.google.gwt.dev.javac.TypeOracleMediator.addNewUnits(TypeOracleMediator.java:
353)
 [java] at
com.google.gwt.dev.javac.CompilationState.assimilateUnits(CompilationState.java:
135)
 [java] at
com.google.gwt.dev.javac.CompilationState.init(CompilationState.java:
79)
 [java] at
com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:
286)
 [java] at
com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:
182)
 [java] at
com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:
280)
 [java] at
com.google.gwt.dev.Precompile.precompile(Precompile.java:502)
 [java] at
com.google.gwt.dev.Precompile.precompile(Precompile.java:414)
 [java] at com.google.gwt.dev.Compiler.run(Compiler.java:201)
 [java] at com.google.gwt.dev.Compiler$1.run(Compiler.java:
152)
 [java] at
com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
 [java] at
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:
81)
 [java] at com.google.gwt.dev.Compiler.main(Compiler.java:159)

And I also see the following error.

 [java]   Computing all possible rebind results for
'com.extjs.gxt.ui.client.data.BeanModelLookup'
 [java]  Rebinding
com.extjs.gxt.ui.client.data.BeanModelLookup
 [java] Invoking
com.google.gwt.dev.javac.standardgeneratorcont...@1bc1c4b
 [java][ERROR] Class
com.extjs.gxt.ui.client.data.BeanModelLookup not found.
 [java] java.lang.IllegalArgumentException: object is not an
instance of declaring class
 [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
 [java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
 [java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
 [java] at java.lang.reflect.Method.invoke(Method.java:597)
 [java] at com.google.gwt.dev.javac.AnnotationProxyFactory
$AnnotationProxyInvocationHandler.invoke(AnnotationProxyFac
tory.java:247)
 [java] at $Proxy20.value(Unknown Source)
 [java] at
com.extjs.gxt.ui.rebind.core.BeanModelGenerator.getMarkerBean(BeanModelGenerator.java:
188)
 [java] at
com.extjs.gxt.ui.rebind.core.BeanModelGenerator.generate(BeanModelGenerator.java:
55)
 [java] at
com.google.gwt.dev.javac.StandardGeneratorContext.runGenerator(StandardGeneratorContext.java:
418)
 [java] at
com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:
38)
 [java] at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.tryRebind(StandardRebindOracle.java:108)
 [java] at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.rebind(StandardRebindOracle.java:54)
 [java] at
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
154)
 [java] at
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
143)
 [java] at com.google.gwt.dev.Precompile
$DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(Precompile.java
:317)
 [java] at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.j
ava:95)
 [java] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.process(AbstractCompiler.java:200)
 [java] at

hi

2010-07-12 Thread Ganesan R
Hi i am newly join this group can u 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.



TablayoutPanel - how to align tabs on right (top)

2010-07-12 Thread Akshay Kumar
I am using TabLayoutPanel (in UiBinder xml), and the tab handles
( headers) are by default on top-left. Cant seem to figure out any api
option to align the tab-headers on the top-right. I tried TabPanel
also but without any luck.

something like this:

[ Tab1 ]_[ Tab2 ]_[ Tab3 ]_
|
|
|
|
|
|
|
|
|
|
|_|

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



Tips for identifying why DockLayoutPanel is setting the width of a button to zero?

2010-07-12 Thread James Moore
I'm trying to figure out why DockLayoutPanel is setting the width of a
button to zero.  Any tips for things that normally cause problems with
DockLayoutPanel?

-- 
James Moore
ja...@restphone.com
http://jamesmoorecode.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.



GWT and Spring - More Generation Options

2010-07-12 Thread Christiana Thompson
This week Genuitec and Skyway Software released the second milestone
(M2) of MyEclipse for Spring 8.6, which includes scaffolding for GWT
applications.  With this new release, our users can now generate full
ready-to-run GWT applications from a domain model (i.e. DB tables,
Java Beans, or JPA Entities).

As excited as we are about this new feature, we are eager to get
feedback from the GWT community.  Some key aspects of our GWT
scaffolding:

- The functionality is based on GWT 2.0.4 (no dependency on early
access or non-GA libraries)
- The generated code is based on current best practices (from last
year's Google I/O session with Ray Ryan and the MVP tutorials from
Chris Ramsdale) and UI Binder
- The GWT RPC services are based on Spring Services, and include
conversion of JPA objects to/from data transfer objects (DTO) that are
optimized for GWT
- The generated applications support both Spring 2.5.x and Spring 3.0

Again, we'd appreciate input and feedback from the GWT community.
Additional information and resources are as follows:

- More Details: http://bit.ly/9ydV0X
- Installer: http://bit.ly/asbbYo
- Tutorial: http://bit.ly/945fK2
- Getting Started Video (5 min): http://bit.ly/cwSawM

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



Passing data between modules - MVP architecture

2010-07-12 Thread grandanat
Hello all.
I Have a simple scenario:
-a GWT application with an application controller that handles history
and initialize modules. ( a module is an entity formed by a presenter
+ view - classic MVP, nothing special)
-from a module should be opened another module and pass init data to
it, and then after child module finishes its job to return another
response data.

I followed two approaches and i would like to comment them.

1.eventBuss approach - pass data within events.
i have StartChildModuleEvent event that encapsulates a module parent
ID, and some init data, and an ExitChildModuleEvent event that
encapsulates some return data.


2 callback approach.
i added to my modules a callBack handler


public abstract class ModuleCallBackHandlerD, T implements
DataCallBackHandlerT {

  private ModuleID parentID;

  private D initData;
  private T returnData;

  public ModuleCallBackHandler(ModuleID parentID) {
this.parentID = parentID;
  }

  public ModuleCallBackHandler(ModuleID parentID, D initData) {
this.parentID = parentID;
this.initData = initData;
  }

  public void onCancel(){
  }

  public void onFailure(Throwable caught){
Window.alert(AppGin.injector.getAppConstants().msg_moduleError() +
 :  + caught.getMessage());
//caught.printStackTrace();
  }

  public ModuleID getParentID() {
return parentID;
  }

  public D getInitData() {
return initData;
  }

  public T getReturnData() {
return returnData;
  }

}


and when i want to init a child module i instantiate a new callback

AppGin.injector.getAppController().doStartChildModule(ModuleID.ITEMSEARCH,
new ModuleCallBackHandlerString, Item(getModuleID(),
itemID) {

  @Override
  public void onSuccess(Item result) {
//do some stuff - update this module with received
data
  }

});

I would like some opinions regarding this two approaches.

Thanks all

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



New to GWT, Questions on loading modules...

2010-07-12 Thread boringNerd
Hi, I'm extremely new to GWT and was playing around with it the past
few days and was beginning to see the wonders of it. Just today, I was
learning how to load additional modules and there's a question that's
been bothering me

Can someone please explain to me the purpose of creating a .gwt.xml
file in your module package (eg. com.mytestapp.security)? If I want to
access additional modules I wrote, I can just define it in the source
tag under the main .gwt.xml right? I'm not particularly familiar with
this 'cause I'd been working mostly with PHP all the while.

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



Using large files in gwt

2010-07-12 Thread Roope
Hi

I'm currently developing some bioinformatics tools and I want to make
them as web apps.

The thing is that user needs to input files that might be up to 4Gb
but usually the biggest is just about 250Mb.

There are two main use-cases:
1. Steaming the file and taking just some small parts of it to string
2. Reading the whole file and making object from each line in file

I would like to do all the file processing in client side, but I
understood that it is not yet possible using gwt?

If I keep the server local it is feasible to upload some 250mb files
and process them at the server side, but I have no success so far in
this, even with 10mb file.

So what would you suggest me to do? Besides dumping the web
application idea and making some java applet.

Roope



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



Firing native event in gwt 2.0.3

2010-07-12 Thread Blaze
Hi all,

I have a small problem, moved from gwt 1.6 to gwt 2.0.3,
and i have this problem to fire manually native event!!

In 1.6 that was possible with Document.fire*event() methods,
but I cant find a way how to do this in 2.0.3 ?!

One more problem i have:
I use google map api, and I cant find a way how to change
the default hand cursor over the map!!!

I used this code of line:

map.map.getPane(MapPaneType.OVERLAY_LAYER_PANE).getElement().addClassName(my-
map-cursor);

and only with this PaneType: OVERLAY_LAYER_PANE
I get the new style cursor, but when mouse is moved over the map
the cursor random changes between the default hand cursor style,
and my cursor style!!!

Tnx for the 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Client OR mapping

2010-07-12 Thread mk
How do you maintain rich OR mapping in client.

For example CUSTOMER has many ORDERS and each ORDER has many ITEMS.

Now GWT makes DIFFERENT ajax calls wherein CUSTOMER, ORDER, ITEM are
loaded at separate times (eager fetching does not look good thus lazy
fetching only).

Thus do you manually map objects again in client ( or do you store
CUSTOMER, ORDER, ITEM  in separate shared variables or something
else.).

I am sure you experts out there must have some directions for us.

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



Maps to JPEG

2010-07-12 Thread Phani Kumar K
Hello all,

I am new to GWT and I am using gwt-maps api for one of my requirement.
I am able to populate maps and now my another requirement is to make
my populated map as a JPEG image. This is an urgent and critical
requirement for me. Can anyone tell me how can i achieve this. If
there is no direct solution for achieving this also, kindly share your
ideas of how can i achieve this. Thanks in advance.


Regards,
Phani Kumar K

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



GWT adoption

2010-07-12 Thread mk
Do you guys think that GWT will the most widely used framework in
future ( or there will be mix of other frameworks in future. If yes
than which frameworks).

I am little worried that why GWT is not adopted at a rate I would have
thought for last 4 yrs.  why why...

-- 
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: fire events to multiple clients

2010-07-12 Thread Jian Liu
Client Poll is not a good idea if you have a lot of clients. Using
Server Push technology, google keyword Comet you will get your
answer.

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




Client session

2010-07-12 Thread mk
How to implement a client side session ( and any best practices to
implement them).
Is it to just create a static variable ?

How do two different MVP widgets share MODEL data (i.e. user input
data).

How do two different MVP widgets share VIEW data ( for example if
display of one widget is dependent on mouse click location of second
widget, than how do two widgets share view information i.e. mouse
click location).

Again, all widgets are designed using MVP and send events using
EventBus.

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



How can I formulate the given problem in GWT context

2010-07-12 Thread Raza
I have just started using GWT for web interface for our application.

My app has three different views for three different types of users.
Each user has different type of interface (i.e. different navigation
different menus etc).

There is one login page which will be index page of the application.
The user shall enter the credentials and will be redirected to his/her
section.

My problem is that how I can transform this scenario in GWT context.
Weather I shall have four modules (i.e. one for login and other three
for three type of users); weather there will be one module and I just
have to change/load panels according to the user view type.

Kindly help me in this regard.

Cheers

Raza

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



GWT Entity graph library

2010-07-12 Thread david.alva...@iccube.com
Hello,

We're looking for a GWT library to show entities similar to sql tables
(something like 
http://www.eclipse.org/articles/Article-GEF-editor/gef-schema-editor.html
). Ideally the user can move the entities and links with other
entities follow.

Hints are welcomed, thanks in advance.

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



gwt-visualization Table vs gwt-incubator ScrollTable

2010-07-12 Thread Akshay Kumar
Hi,
I have seen examples of both and like both of them, at least for the basic
purpose of displaying data in Table form and with paging. However, I am
unable to pick one over the other for the following reasons:

a) Both lack Column Reordering using Drag and Drop that I wish in my Table
View.
I realize that one can use gwtQuery or gwt-DND to achieve the same, but I am
not sure with which one it would be easier.

b) I would want to replace default column headers with some clickable
buttons - to achieve : i) hide a given column ii) show small popup picking a
filter on the column.
Not sure with which one of the two, its feasible (or easier) to achieve.

c) I am not sure whether gwt-incubator stuff will ever ( or when) will it
get into main gwt-library

d) It seems that gwt-visualization is JSNI wrapper over original google
visualization JS library. Is it going to be a big factor in terms of
performance?

e) Any guidelines on why  when  should one pick one over the other!

Thanks,
Akshay

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



Passing data between modules - MVP architecture

2010-07-12 Thread grandanat
Hello all.
I Have a simple scenario:
-a GWT application with an application controller that handles history
and initialize modules. ( a module is an entity formed by a presenter
+ view - classic MVP, nothing special)
-from a module should be opened another module and pass init data to
it, and then after child module finishes its job to return another
response data.

I followed two approaches and i would like to comment them.

1.eventBuss approach - pass data within events.
i have StartChildModuleEvent event that encapsulates a module parent
ID, and some init data, and an ExitChildModuleEvent event that
encapsulates some return data.


2 callback approach.
i added to my modules a callBack handler


public abstract class ModuleCallBackHandlerD, T implements
DataCallBackHandlerT {

 private ModuleID parentID;

 private D initData;
 private T returnData;

 public ModuleCallBackHandler(ModuleID parentID) {
   this.parentID = parentID;
 }

 public ModuleCallBackHandler(ModuleID parentID, D initData) {
   this.parentID = parentID;
   this.initData = initData;
 }

 public void onCancel(){
 }

 public void onFailure(Throwable caught){
   Window.alert(AppGin.injector.getAppConstants().msg_moduleError() +
 :  + caught.getMessage());
//caught.printStackTrace();
 }

 public ModuleID getParentID() {
   return parentID;
 }

 public D getInitData() {
   return initData;
 }

 public T getReturnData() {
   return returnData;
 }

}


and when i want to init a child module i instantiate a new callback

AppGin.injector.getAppController().doStartChildModule(ModuleID.ITEMSEARCH,
   new ModuleCallBackHandlerString, Item(getModuleID(),
itemID) {

 @Override
 public void onSuccess(Item result) {
   //do some stuff - update this module with received
data
 }

   });

I would like some opinions regarding this two approaches.

Thanks all

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



Dependency injection perf issues

2010-07-12 Thread mk
I used DI i.e. used @Inject to inject (Presenter, EventBus) in all of
Views.

Now it seems that if I use DI than all views are generated at web app
intial start time in browser. Thus start time becomes slow. Am I
right? ( I think I heard something like this before also but just want
to validate).

So if above is true than using @Inject is no good .. right? ( or where
can we use @Inject ).

Can we use use @Inject to lazily create views instead of web app start
time?

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



MVP contacts2 - confusing

2010-07-12 Thread 100IT
The Contacts1 MVP tutorial worked well (http://code.google.com/intl/nl-
NL/webtoolkit/articles/mvp-architecture.html) and I was happy to
continue with contacts MVP part 2 but I have found this part very
confusing.

Has someone got a working Eclipse version which can be imported? The
one offered on the site isn't complete. I tried to update part 1 using
the part 2 tutorial but this gives me all sorts of errors I'm unable
to resolve. (learning from a working example is essential)

Much regards!

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



gwt-visualization Table vs gwt-incubator ScrollTable

2010-07-12 Thread Akshay Kumar
Hi,
I have seen examples of both and like both of them, at least for the
basic purpose of displaying data in Table form and with paging.
However, I am unable to pick one over the other for the following
reasons:

a) Both lack Column Reordering using Drag and Drop that I wish in my
Table View.
I realize that one can use gwtQuery or gwt-DND to achieve the same,
but I am not sure with which one it would be easier.

b) I would want to replace default column headers with some clickable
buttons - to achieve : i) hide a given column ii) show small popup
picking a filter on the column.
Not sure with which one of the two, its feasible (or easier) to
achieve.

c) I am not sure whether gwt-incubator stuff will ever ( or when) will
it get into main gwt-library

d) It seems that gwt-visualization is JSNI wrapper over original
google visualization JS library. Is it going to be a big factor in
terms of performance?

e) Any guidelines on why  when  should one pick one over the other!

Thanks,
Akshay

-- 
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: hi

2010-07-12 Thread Prashant
yes :-)


-- 
Prashant
www.claymus.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: Dependency injection perf issues

2010-07-12 Thread david.herv...@gmail.com
Hi,

the fact that you are using DI does not change your startup time. Your
application will take approximately the same time to load if you does
the injection by hand.
Actually, I think you want to create your view only when you really
need it instead of instantiating everything at startup. When using
Gin, it is common to let the
framework inject everything for you without considering what have to
be instantiate and when. Keep in mind that Gin is just here to help
you structuring your application.
If you want to instantiate view not at startup time but while using
application consider injecting ProviderT instead of directly T. This
way you have the ability
to instantiate what you need when you need via those providers. It
will be a little bit tricker, because you will have to manager when to
instantiate your views but it's not
a Gin matter

regards

On Jul 9, 8:29 pm, mk munna.kaka.ch...@gmail.com wrote:
 I used DI i.e. used @Inject to inject (Presenter, EventBus) in all of
 Views.

 Now it seems that if I use DI than all views are generated at web app
 intial start time in browser. Thus start time becomes slow. Am I
 right? ( I think I heard something like this before also but just want
 to validate).

 So if above is true than using @Inject is no good .. right? ( or where
 can we use @Inject ).

 Can we use use @Inject to lazily create views instead of web app start
 time?

-- 
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: Different paging behaviour for CellTable and SimplePager

2010-07-12 Thread DennisLaumen
Ignore the above comments, I'm stupid and misinterpreted some
parameters.

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



Button embedded in a rich text area

2010-07-12 Thread Jan
Hi,

I am using a GWT RichTextArea. The html code it displays contains also
some buttons. Here is a simplified example:

div
h1Test/h1
pinput type=button name=name value=+/p
/div

Is there a way to connect the pressing of this button with a gwt
event?

Thanks 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-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.



GWT 2.1 Simple Place example

2010-07-12 Thread xworker
Hi all

Strugling with finding documentation and a simple example with the new
Place concept. Can anyone shed some light? Most examples point to
generated scaffold code with roo. Not easy to read, and at this point
I dont want to use Roo. Just want a simple example or explanation
about the new concepts in 2.1 (Places,Activity).

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: Google Web Toolkit Lagging

2010-07-12 Thread anjan bacchu.dev
Hi There,

  Since the javascript code that is generated while working within eclipse
is NOT optimized, it is expected that the application becomes slow. As long
as the compiled application is NOT slow, you should be fine.

BR,
~A


On Mon, Jul 12, 2010 at 10:12 AM, AgitoM karel.m...@gmail.com wrote:

 Since somewhere last week, whenever I try and run a application I
 build in debug mode, the application is heavy lagging. This is the
 case in any browser that I use, and was not the case until a few days
 ago.
 Over the past few days there have been no major changes to the source
 code of the application.
 On top of that, if I compile the application and deploy on Apache
 Tomcat the speed of the application is back to normal.

 Has anyone else experienced this problem?
 Is it due to some GWT update?

 Anyone who has encountered it managed to fix it?

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



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



Re: GWT and Spring - More Generation Options

2010-07-12 Thread anjan bacchu.dev
Hi There,

  Thank you.

Does MyEclipse for Spring 8.6 have support for using Hibernate instead of
JPA ?

Thank you,

BR,
~A

On Sat, Jul 10, 2010 at 12:36 AM, Christiana Thompson 
christiana.thomp...@gmail.com wrote:

 This week Genuitec and Skyway Software released the second milestone
 (M2) of MyEclipse for Spring 8.6, which includes scaffolding for GWT
 applications.  With this new release, our users can now generate full
 ready-to-run GWT applications from a domain model (i.e. DB tables,
 Java Beans, or JPA Entities).

 As excited as we are about this new feature, we are eager to get
 feedback from the GWT community.  Some key aspects of our GWT
 scaffolding:

 - The functionality is based on GWT 2.0.4 (no dependency on early
 access or non-GA libraries)
 - The generated code is based on current best practices (from last
 year's Google I/O session with Ray Ryan and the MVP tutorials from
 Chris Ramsdale) and UI Binder
 - The GWT RPC services are based on Spring Services, and include
 conversion of JPA objects to/from data transfer objects (DTO) that are
 optimized for GWT
 - The generated applications support both Spring 2.5.x and Spring 3.0

 Again, we'd appreciate input and feedback from the GWT community.
 Additional information and resources are as follows:

 - More Details: http://bit.ly/9ydV0X
 - Installer: http://bit.ly/asbbYo
 - Tutorial: http://bit.ly/945fK2
 - Getting Started Video (5 min): http://bit.ly/cwSawM

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



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



Re: GWT and Spring - More Generation Options

2010-07-12 Thread Niel
Yes, it does use Hibernate.

The scaffolding functionality of  MyEclipse for Spring generates the
GWT front-end integrated with the Spring (Spring/JPA/Hibernate) back-
end application.  The back-end is a Spring application that uses
Hibernate as the JPA provider, and the Spring Services (@Service)
provide the RPC interface/services for the GWT front-end.  The GWT
front-end (MVP, UI Binder) is generated to call the Spring services.
The GWT portion of the application has no notion of JPA (or even
Spring for that matter).  If you are interested in Hibernate without
JPA, the back-end application can be refactored without impacting the
GWT front-end.

I hope that helps.


uses Hibernate as the JPA provider.  The gernareGWT application

On Jul 12, 9:20 am, anjan bacchu.dev anjan.d...@gmail.com wrote:
 Hi There,

   Thank you.

 Does MyEclipse for Spring 8.6 have support for using Hibernate instead of
 JPA ?

 Thank you,

 BR,
 ~A

 On Sat, Jul 10, 2010 at 12:36 AM, Christiana Thompson 



 christiana.thomp...@gmail.com wrote:
  This week Genuitec and Skyway Software released the second milestone
  (M2) of MyEclipse for Spring 8.6, which includes scaffolding for GWT
  applications.  With this new release, our users can now generate full
  ready-to-run GWT applications from a domain model (i.e. DB tables,
  Java Beans, or JPA Entities).

  As excited as we are about this new feature, we are eager to get
  feedback from the GWT community.  Some key aspects of our GWT
  scaffolding:

  - The functionality is based on GWT 2.0.4 (no dependency on early
  access or non-GA libraries)
  - The generated code is based on current best practices (from last
  year's Google I/O session with Ray Ryan and the MVP tutorials from
  Chris Ramsdale) and UI Binder
  - The GWT RPC services are based on Spring Services, and include
  conversion of JPA objects to/from data transfer objects (DTO) that are
  optimized for GWT
  - The generated applications support both Spring 2.5.x and Spring 3.0

  Again, we'd appreciate input and feedback from the GWT community.
  Additional information and resources are as follows:

  - More Details:http://bit.ly/9ydV0X
  - Installer:http://bit.ly/asbbYo
  - Tutorial:http://bit.ly/945fK2
  - Getting Started Video (5 min):http://bit.ly/cwSawM

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

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



SmartGWT RestDataSource sample code using Spring/CXF ?

2010-07-12 Thread anjan bacchu.dev
Hi All,

We've embarked on a GWT project and using SmartGWT(TreeGrid , DynamicForm,
etc) -- we found out that the open source version of SmartGWT does NOT come
with DataSources that connect to a RDBMS. In order to connect to a RDBMS, we
need to extend RestDataSource and implement REST services that provides the
CRUD in the format that the RestDataSource expects.

Are there available Java sample source code that use, say, Spring/CXF to
implement a REST service (which has CRUD operations in a RDBMS) and the
corresponding Client side GWT/SmartGWT code that interacts with the REST
Service using RestDataSource ? This will help us meet our impossible
deadline!

Thank you,

BR,
~A

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



Re: GWT and Spring - More Generation Options

2010-07-12 Thread anjan bacchu.dev
Hi There,

  That helps.

Thank you,

BR,
~A


On Mon, Jul 12, 2010 at 7:09 PM, Niel niele...@gmail.com wrote:

 Yes, it does use Hibernate.

 The scaffolding functionality of  MyEclipse for Spring generates the
 GWT front-end integrated with the Spring (Spring/JPA/Hibernate) back-
 end application.  The back-end is a Spring application that uses
 Hibernate as the JPA provider, and the Spring Services (@Service)
 provide the RPC interface/services for the GWT front-end.  The GWT
 front-end (MVP, UI Binder) is generated to call the Spring services.
 The GWT portion of the application has no notion of JPA (or even
 Spring for that matter).  If you are interested in Hibernate without
 JPA, the back-end application can be refactored without impacting the
 GWT front-end.

 I hope that helps.


 uses Hibernate as the JPA provider.  The gernareGWT application

 On Jul 12, 9:20 am, anjan bacchu.dev anjan.d...@gmail.com wrote:
  Hi There,
 
Thank you.
 
  Does MyEclipse for Spring 8.6 have support for using Hibernate instead of
  JPA ?
 
  Thank you,
 
  BR,
  ~A
 
  On Sat, Jul 10, 2010 at 12:36 AM, Christiana Thompson 
 
 
 
  christiana.thomp...@gmail.com wrote:
   This week Genuitec and Skyway Software released the second milestone
   (M2) of MyEclipse for Spring 8.6, which includes scaffolding for GWT
   applications.  With this new release, our users can now generate full
   ready-to-run GWT applications from a domain model (i.e. DB tables,
   Java Beans, or JPA Entities).
 
   As excited as we are about this new feature, we are eager to get
   feedback from the GWT community.  Some key aspects of our GWT
   scaffolding:
 
   - The functionality is based on GWT 2.0.4 (no dependency on early
   access or non-GA libraries)
   - The generated code is based on current best practices (from last
   year's Google I/O session with Ray Ryan and the MVP tutorials from
   Chris Ramsdale) and UI Binder
   - The GWT RPC services are based on Spring Services, and include
   conversion of JPA objects to/from data transfer objects (DTO) that are
   optimized for GWT
   - The generated applications support both Spring 2.5.x and Spring 3.0
 
   Again, we'd appreciate input and feedback from the GWT community.
   Additional information and resources are as follows:
 
   - More Details:http://bit.ly/9ydV0X
   - Installer:http://bit.ly/asbbYo
   - Tutorial:http://bit.ly/945fK2
   - Getting Started Video (5 min):http://bit.ly/cwSawM
 
   --
   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.comgoogle-web-toolkit%2Bunsubs
 cr...@googlegroups.com
   .
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.

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



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



Re: GWT adoption

2010-07-12 Thread nino ekambi
For me i think GWT is the future.
It s just a genius way to write desktop type web application.


2010/7/9 mk munna.kaka.ch...@gmail.com

 Do you guys think that GWT will the most widely used framework in
 future ( or there will be mix of other frameworks in future. If yes
 than which frameworks).

 I am little worried that why GWT is not adopted at a rate I would have
 thought for last 4 yrs.  why why...

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



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



Re: Detecting browser in GWT 2.0.3

2010-07-12 Thread DaveC
There *might* be a way to do it... e.g.

1. only invalidate the session on a specific log out request
2. store a flag/timestamp clientside to either invalidate the session
or not
3. onload reads this flag and decides whether or not to to invalidate
the session (if a number of seconds/minutes have elapsed)

There are/maybe security implications with this method that may mean
it's just not worth it...

You can use LocalStorage, SessionStorage and window.name etc to store/
read the flag...

Cheers,
Dave

On Jul 9, 2:29 pm, Stefan Bachert stefanbach...@yahoo.de wrote:
 Hi,

 from times to times this questions comes up.
 The user has the control over the browser, not javascript over the
 browser or the user.
 And this is a good idea because of security.

 Developers and customers must accept that there is no control over F5/
 Refresh. The same is true for power off ;-)

 This is no problem when all data is send as soon as possible to the
 server.

 Stefan Bacherthttp://gwtworld.de

 On 9 Jul., 02:01, SanjeevG sanjeev.g...@gmail.com wrote:

  Hi,

  I am working on an application that uses GWT 2.0.3 and GXT 2.2.0. I
  have implemented the onClose method of the CloseHandler to terminate
  the session on browser close, however this is causing an obvious
  problem of terminating the session on browser refresh as well.

  Can someone put some ideas on how to detect the browser refresh and
  avoid the RPC call that causes the session termination.

  Thanks.
  Sanjeev.

-- 
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 server design

2010-07-12 Thread Raphaël Brugier
Gwt is client side, so it's just totally depends on how many numbers
of request you'll do from your gwt application to your server.
You can even have no request at all, just the first download of the
application.


On 9 juil, 20:45, Xsuperstore xsuperst...@gmail.com wrote:
 Hello.

 I am new in the GWT word, I have some questions about server resource
 design.

 Estimate of CPU  MEN compared to LAMP in Linux?

 I mean, for high traffic sites (2-5) users/day the is some
 estimate/recomended hardware resources design?

 thanks in advance!

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



Re: GWT adoption

2010-07-12 Thread buz...@gmail.com
To my knowledge the adoption rate is increasing constantly. Three
years ago only enthusiasts heard of that framework. Today, every
decent developer coming to interview either heard or used GWT in a
project or prototype. But this could be only our local situation.

GWT main limitation right now is that there is no consolidated MVP,
Data Binding, Cool Widgets library, which would be available free of
charge. Version 2.1 is making things easier, but I am afraid it will
take a couple of more iterations to gets the things stabilized and
unified.

If we talk about highly interactive web-based application the solution
now is either GWT or native JS libraries on top of traditional MVC
framework like Spring MVC or Struts (just my opinion). There is also
JSF, Wicket and ZK, but they do not have the momentum of GWT. So if
you are not JS Expert and have to build Rich Internet App there are
not too many options...

BTW take a look at Vaadin. It is an alternative way of how GWT gets
further popularized.

Dmitry

On Jul 9, 8:16 pm, mk munna.kaka.ch...@gmail.com wrote:
 Do you guys think that GWT will the most widely used framework in
 future ( or there will be mix of other frameworks in future. If yes
 than which frameworks).

 I am little worried that why GWT is not adopted at a rate I would have
 thought for last 4 yrs.  why why...

-- 
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 adoption

2010-07-12 Thread DaveC
The majority of what GWT can do can be done by a good web developer/
designer... but what GWT is good at is all the compile time
optimisations - when you're trying to squeeze every last bit of
performance out of of your app... and if you only/have to write Java.

It is a crutch IMHO, probably quite a good one though ;o) - but a
crutch no less.

On Jul 12, 2:57 pm, nino ekambi jazzmatad...@googlemail.com wrote:
 For me i think GWT is the future.
 It s just a genius way to write desktop type web application.

 2010/7/9 mk munna.kaka.ch...@gmail.com

  Do you guys think that GWT will the most widely used framework in
  future ( or there will be mix of other frameworks in future. If yes
  than which frameworks).

  I am little worried that why GWT is not adopted at a rate I would have
  thought for last 4 yrs.  why why...

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

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



Re: Button embedded in a rich text area

2010-07-12 Thread DaveC

RichTextArea rt = new RichTextArea();

rt.addMouseDownHandler(new MouseDownHandler() {

@Override
public void onMouseDown(MouseDownEvent event) {

Window.alert(MouseDown!);

Window.alert( + 
event.getNativeEvent().getEventTarget());
}
});

rt.setHTML(h1Test/h1pinput type=\button\ name=\name\
value=\+\/p);

Appears to work.

Cheers,
Dave

On Jul 12, 1:34 pm, Jan jan.morl...@googlemail.com wrote:
 Hi,

 I am using a GWT RichTextArea. The html code it displays contains also
 some buttons. Here is a simplified example:

 div
 h1Test/h1
 pinput type=button name=name value=+/p
 /div

 Is there a way to connect the pressing of this button with a gwt
 event?

 Thanks 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-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: Maps to JPEG

2010-07-12 Thread Eric Ayers
You might try the static maps API:

  http://code.google.com/apis/maps/documentation/staticmaps/

http://code.google.com/apis/maps/documentation/staticmaps/Basically, you
just create a URL and send it.  You might use GWT's RequestBuilder class for
calling it from GWT.

On Fri, Jul 9, 2010 at 10:50 AM, Phani Kumar K phanikuma...@gmail.comwrote:

 Hello all,

 I am new to GWT and I am using gwt-maps api for one of my requirement.
 I am able to populate maps and now my another requirement is to make
 my populated map as a JPEG image. This is an urgent and critical
 requirement for me. Can anyone tell me how can i achieve this. If
 there is no direct solution for achieving this also, kindly share your
 ideas of how can i achieve this. Thanks in advance.


 Regards,
 Phani Kumar K

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




-- 
Eric Z. Ayers
Google Web Toolkit, Atlanta, GA USA

-- 
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: Google Plugin for Eclipse 3.6 + Different war directory

2010-07-12 Thread Rajeev Dayal
On Sat, Jul 10, 2010 at 10:13 AM, Bálint Kriván bal...@krivan.hu wrote:

 Okay, I've just had time to check it again. I've created a new project in
 Eclipse 3.6 called Dynamic Web Project, and added GWT 2.1.0.M2 (set the WAR
 directory to src/main/webapp, unchecked Launch  Deploy, but provided war
 directory using -war ...). And it still doesn't copy the war files from
 src/main/webapp to the WAR directory, which makes 3.6 unusable for me (I
 have to write to console: mvn war:exploded to copy the files from the
 right place, but it should work out-of-box from Eclipse aswell, and if I
 change web.xml, I have to do it again, which breaks the workflow). Could you
 check it at your side? It should work because it works flawlessly in 3.5,
 maybe something was changed which breaks it.


Hm, this is definitely off; the copy should be happening for you. Just to be
clear, you're using GPE's launch configurations, right?

What platform are you on? Windows, Linux, Mac?

Other issue: it still bothers me that GPE 3.6 doesn't create the WAR
 directory for me, but 3.5 did (when I delete and reimport my project,
 Eclipse build the project, so the directory is created, but GPE should
 create it aswell)


When you say that GPE doesn't create the WAR directory for you, do you mean
when you're using the New Web Application Wizard? Or, are you talking about
Importing your project?


 Thanks for your help!


 2010/7/1 Bálint Kriván bal...@krivan.hu

 Hi!

 Yes, I've downloaded the one with the J2EE support (
 http://eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/heliosr
 ).
 And I made a new workspace for 3.6, so I'm not sure, what's the issue, why
 it isn't working...
 The project is the same, I didn't created a new project for 3.6, because
 I'm using maven, and it was created with mvn eclipse:eclipse. I will check
 maybe the WTP version is different in 3.6, so I have to create a new project
 using mvn -Dwtpversion=version eclipse:eclipse

 On Thu, Jul 1, 2010 at 5:11 PM, Jason Parekh jasonpar...@gmail.comwrote:

 Hi Bálint,

 Oh, ok.  In that case, the only time that GPE copies files to the WAR
 directory specified  by -war argument is if you're using the Java EE
 support in Eclipse.  Can you make sure your Eclipse 3.6 includes Java EE
 support? (Was it the Eclipse for Java EE 3.6 that you downloaded?)  Also,
 are you re-using your existing workspace from Eclipse 3.5?  If not, I wonder
 if there are differences between how the project was setup in Eclipse 3.5
 and how it is setup in Eclipse 3.6?

 jason

 2010/7/1 Bálint Kriván bal...@krivan.hu

  Sorry, I've forgot to mention that it isn't checked because in the
 lauch configuration I'm giving an other war directory like this: -war
 ${project_loc}/location/to/war.
 And in 3.5, the files/directories (WEB-INF, META-INF) from the This
 project has a WAR directory directory were copied to the other war
 directory ${project_loc}/location/to/war and it was working. Now only the
 generated js is generated to ${project_loc}/location/to/war but the
 important files to the webserver isn't.

 So I have a sry directory where are the sources of the war files (my
 module html, with css and WEB-INF + META-INF directories), but I would like
 to compile the whole project to an other directory (because of VCS). I 
 could
 achieved this in 3.5, but not in 3.6, but I really would like to use the 
 new
 eclipse+plugin.

 Thanks!

 On Wed, Jun 30, 2010 at 11:44 PM, Jason Parekh 
 jasonpar...@gmail.comwrote:

 Hi Bálint,

 Is the checkbox Launch and deploy from this directory checked? (It is
 below the text box you enter the WAR directory in the project properties 
 Google  Web application.)

 Also, is this a new project or your existing project?

 If you don't mind, could you create a new message thread?

 Thanks,
 jason

 2010/6/29 Kriván Bálint bal...@krivan.info

 Hi!

 I've just downloaded Helios, and installed the GPE, but I'm having an
 issues, when I'm starting the Dev Mode it says, that the working
 directory does not exists. It wasn't a problem in 3.5, but okay, I've
 created it. Then I've noticed it doesn't copy the war files from the
 specified directory (This project has a WAR directory checked and the
 location is given), but 3.5 does. So currently I can't use Eclipse
 Helios and GPE because of this.
 Do you know something about these issues? Has anybody else experienced
 this?

 Thanks for your help, I really looking forward to use the new Eclipse
 with the new plugin!

 Regards,
 Bálint Kriván

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


  --
 You received this message because you are 

Re: Problem with Eclipse, Google plugin and WTP

2010-07-12 Thread Rajeev Dayal
How are you launching your project? Do you first launch the JBoss server in
Eclipse, and then use GPE's launch configuration to launch development mode?
If so, you should edit the launch configuration and ensure that the option
Run Built-In Server is unchecked. I know this is cumbersome; we're working
to make this process more seamless in GPE 1.4.

On Wed, Jul 7, 2010 at 4:09 AM, SimonM simon.manqu...@gmail.com wrote:

 Hey Rajeev,

 The WAR folder is set to WebContent.
 The box was checked, so I unchecked it, but it didn't change the fact
 the libs weren't copied/deployed correctly.


 Thanks for helping,

 Simon

 On 2 juil, 19:18, Rajeev Dayal rda...@google.com wrote:
  Hey Simon,
 
  If you navigate to the smart-ui project properties - Google - Web
  Application, what is the WAR folder set to? Is the Launch and Deploy
 From
  this Directory box checked? In your case, it should not be.
 
  Rajeev
 
 
 
  On Wed, Jun 30, 2010 at 7:29 AM, SimonM simon.manqu...@gmail.com
 wrote:
   Hello,
 
   I have troubles with WTP and Google plugin for Eclipse.
 
   I have one Dynamic Web Application Project, and I use GWT in this
   project. It's smart-ui.
 
   I have a Java Project which contains all business logic, it's smart-
   business : smart-ui depends on smart-business. All is correctly
   exported in Java EE Module Dependencies.
 
   Now I use WTP to deploy on a local JBoss, and all is working except
   one thing : the libraries of project-ui are not deployed in WEB-INF/
   lib. The project itself is compiled, packaged and deployed in this
   directory.
 
   I have found after investigating several hours I can deploy correctly
   if I set in the Java Build Path (in Eclipse)  the Default output
   folder to build/classes (and not WebContent/WEB-INF/classes). All libs
   are present in WEB-INF/lib. I can even set the folder to build/
   classes for example, it works.
 
   Meanwhile I have a new error in my project :
   The output directory for the project should be set to /smart-ui/
   WebContent/WEB-INF/classes  smart-ui-gxtUnknown Google
 Web
   App
   Problem
 
   If I set the Default output folder back to WebConten/WEB-INF/classes,
   I don't have the error anymore but the libs aren't exported to WEB-INF/
   lib.
 
   I think there are some incompatibilities between WTP and Google plugin
   there.
 
   Am I missing something ? Is this a know issue and does a workaround
   exist ?
 
   Thanks for helping.
 
   Simon
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-tool...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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.

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



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



Re: GWT roadmap: easier use of REST?

2010-07-12 Thread emurmur
GWT has a bug that prevents it from being use with Restlet.  The
Restlet framework has direct support for both Appengine, as a service
provider, and GWT as a client.  However, a bug added to GWT since 1.7
makes it impossible to use GWT with a restlet server if you want to
use XML representations.  It may may work fine with JSON.  Here is the
reference to the issue tracker; 
http://code.google.com/p/google-web-toolkit/issues/detail?id=4267.
If you want GWT to be fully compatible with Restlet (which is an
excellent package), please go and star this issue.

Ed


On Jul 9, 2:39 am, marius.andreiana marius.andrei...@gmail.com
wrote:
 Hi,

 A lot of web APIs use REST nowadays. GWT seems really well suited to
 build mashups/UIs on top of REST web services.

 However, it's not that easy to work with REST from GWT (see 
 alsohttp://groups.google.com/group/google-web-toolkit/browse_thread/threa...
 )

 There are two projects tackling this:
 * Restlethttp://blog.noelios.com/2008/07/25/restlet-ported-to-gwt/
 * 
 SmartGWT'shttp://www.smartclient.com/smartgwt/javadoc/com/smartgwt/client/docs/...
 (it provides DataSources, then makes it easy to have REST DataSources,
 both read/write)

 Are there any plans to improve out-of-the-box GWT to work with REST,
 so no additional libraries are needed? Is there a wish list to submit
 this request?

 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: Eclipse - Google Addons are gone after update

2010-07-12 Thread Rajeev Dayal
HI,

Sorry you're running into trouble with upgrading the plugin. How exactly did
you try and upgrade the plugin? Also, what distribution and version of
Eclipse are you using, and what OS are you running on?

If you navigate to your Error Log (Window - Show View - Error Log), do you
see any errors listed on Eclipse's startup?


Rajeev

On Mon, Jul 12, 2010 at 1:43 AM, Magnus alpineblas...@googlemail.comwrote:

 Hi,

 I just upgraded my GWT plugin in Eclipse 3.5 and I encounter the
 following:

 The upgrade succeeds, but after restarting Eclipse all the GWT menu
 items are gone, e. g. Run As... does not offer Google Web
 Application anymore.

 I already saw this earlier and I always had to completely reinstall
 eclipse in order to get the GWT specific menu items again.

 Can you help?

 Thank you
 Magnus

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



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



Re: How can I formulate the given problem in GWT context

2010-07-12 Thread Sean
This sounds like you would have one module and just different panels.
I tend to go a very Google route and have a login panel in the Upper
right hand side, and when they login I have the main panel have the
correct widgets displayed.

So, I would start with a DockPanel or DockLayoutPanel, put the login
Panel in the North section of the DockPanel. Have a menu on the West
side. And then change the Center's panel based on the login as well as
a menu on the West side.

Good luck, hope this gives you a place to start!

On Jul 10, 1:50 am, Raza raza@gmail.com wrote:
 I have just started using GWT for web interface for our application.

 My app has three different views for three different types of users.
 Each user has different type of interface (i.e. different navigation
 different menus etc).

 There is one login page which will be index page of the application.
 The user shall enter the credentials and will be redirected to his/her
 section.

 My problem is that how I can transform this scenario in GWT context.
 Weather I shall have four modules (i.e. one for login and other three
 for three type of users); weather there will be one module and I just
 have to change/load panels according to the user view type.

 Kindly help me in this regard.

 Cheers

 Raza

-- 
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: Using large files in gwt

2010-07-12 Thread Jeff Chimene
On 07/11/2010 11:17 AM, Roope wrote:
 Hi
 
 I'm currently developing some bioinformatics tools and I want to make
 them as web apps.
 
 The thing is that user needs to input files that might be up to 4Gb
 but usually the biggest is just about 250Mb.
 
 There are two main use-cases:
 1. Steaming the file and taking just some small parts of it to string
 2. Reading the whole file and making object from each line in file
 
 I would like to do all the file processing in client side, but I
 understood that it is not yet possible using gwt?

In general the answer is yes, but not because of GWT. Until wide-spread
browser support of HTML 5 which will provide better local file handling.

 If I keep the server local it is feasible to upload some 250mb files
 and process them at the server side, but I have no success so far in
 this, even with 10mb file.

You might provide some background on the ... no success so far... path.

For files of this size, I'd consider creating a file share on the server
or using FTP. I'm guessing the data collection occurs on the PC? If so,
you won't be able to process the files locally until HTML 5 and local
file support. Depending on your environment, you might be able to
remote-mount a disk device and write directly to that device from the
data collection source.

 So what would you suggest me to do? Besides dumping the web
 application idea and making some java applet.

You want to move the data to the server, construct a server app that
retrieves data slices on demand and sends them to the client for
rendering. You can certainly do the Java app on the server to
retrieve/preprocess the data, then render it on the client using various
graphing packages. Search this list for pointers to SVG, or graphing
libraries.

-- 
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 adoption

2010-07-12 Thread Nabeel Ali Memon
I think we'r missing a point here. GWT is suited for web 2.0 apps not
websites. As long as the legacy code will continue to be maintained, people
may not consider moving away from JS libs but yes for all new web apps,
GWT's team has done an awesome job of teaming up with Spring Roo guys which
will help GWT invade the market where Spring stack of technologies is widely
deployed. On the other hand, Roo's code generation may help hide the
boilerplate aspects of GWT apps. So it's a win win for GWT now.

cheers,
Nabeel

On Mon, Jul 12, 2010 at 7:06 PM, DaveC
david.andrew.chap...@googlemail.comwrote:

 The majority of what GWT can do can be done by a good web developer/
 designer... but what GWT is good at is all the compile time
 optimisations - when you're trying to squeeze every last bit of
 performance out of of your app... and if you only/have to write Java.

 It is a crutch IMHO, probably quite a good one though ;o) - but a
 crutch no less.

 On Jul 12, 2:57 pm, nino ekambi jazzmatad...@googlemail.com wrote:
  For me i think GWT is the future.
  It s just a genius way to write desktop type web application.
 
  2010/7/9 mk munna.kaka.ch...@gmail.com
 
   Do you guys think that GWT will the most widely used framework in
   future ( or there will be mix of other frameworks in future. If yes
   than which frameworks).
 
   I am little worried that why GWT is not adopted at a rate I would have
   thought for last 4 yrs.  why why...
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-tool...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com
 
   .
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.

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



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



Re: Eclipse - Google Addons are gone after update

2010-07-12 Thread Magnus
Hi,

I spent the last hours with reinstalling eclipse and the GWT plugin
all the time, and I do not manage to get the GWT functionality back
into eclipse. My GWT projects are shown with a red exclamation mark
and there are not GWT menu items.

I am running Debian 5.0.4 with the newest eclipse 3.6 (Helios), which
I downloaded from www.eclipse.org.

For the upgrade I did exactly what is documented on code.google.com:
Help - Install new software: http://dl.google.com/eclipse/plugin/3.6

Thanks for the hint with the error log: It says that the plugin is
already installed. However, when I reinstalled eclipse, I deleted the
eclipse directory (/usr/local/eclipse) as well as the local
configuration (.~/.eclipse). I do not know why the message appears
that the plugin is already installed...

Please help! I want to continue with my GWT projects! .-)

Magnus


- error.log -
eclipse.buildId=I20100608-0911
java.version=1.6.0_01
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os linux -ws gtk -arch x86 -product
org.eclipse.epp.package.jee.product


Warning
Mon Jul 12 18:17:47 CEST 2010
Google Web Toolkit SDK 2.0.4 will be ignored because it is already
installed.













On Jul 12, 6:02 pm, Rajeev Dayal rda...@google.com wrote:
 HI,

 Sorry you're running into trouble with upgrading the plugin. How exactly did
 you try and upgrade the plugin? Also, what distribution and version of
 Eclipse are you using, and what OS are you running on?

 If you navigate to your Error Log (Window - Show View - Error Log), do you
 see any errors listed on Eclipse's startup?

 Rajeev

 On Mon, Jul 12, 2010 at 1:43 AM, Magnus alpineblas...@googlemail.comwrote:

  Hi,

  I just upgraded my GWT plugin in Eclipse 3.5 and I encounter the
  following:

  The upgrade succeeds, but after restarting Eclipse all the GWT menu
  items are gone, e. g. Run As... does not offer Google Web
  Application anymore.

  I already saw this earlier and I always had to completely reinstall
  eclipse in order to get the GWT specific menu items again.

  Can you help?

  Thank you
  Magnus

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

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



Re: Dependency injection perf issues

2010-07-12 Thread Gal Dolber
If you compile GIN from TRUNK, you will find a new AsyncProvider
interface... thats the result of a GIN PROVIDER + RUNASYNC

2010/7/12 david.herv...@gmail.com david.herv...@gmail.com

 Hi,

 the fact that you are using DI does not change your startup time. Your
 application will take approximately the same time to load if you does
 the injection by hand.
 Actually, I think you want to create your view only when you really
 need it instead of instantiating everything at startup. When using
 Gin, it is common to let the
 framework inject everything for you without considering what have to
 be instantiate and when. Keep in mind that Gin is just here to help
 you structuring your application.
 If you want to instantiate view not at startup time but while using
 application consider injecting ProviderT instead of directly T. This
 way you have the ability
 to instantiate what you need when you need via those providers. It
 will be a little bit tricker, because you will have to manager when to
 instantiate your views but it's not
 a Gin matter

 regards

 On Jul 9, 8:29 pm, mk munna.kaka.ch...@gmail.com wrote:
  I used DI i.e. used @Inject to inject (Presenter, EventBus) in all of
  Views.
 
  Now it seems that if I use DI than all views are generated at web app
  intial start time in browser. Thus start time becomes slow. Am I
  right? ( I think I heard something like this before also but just want
  to validate).
 
  So if above is true than using @Inject is no good .. right? ( or where
  can we use @Inject ).
 
  Can we use use @Inject to lazily create views instead of web app start
  time?

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




-- 
http://gwtupdates.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.



MVP Problem when implementing the presenter as singleton

2010-07-12 Thread crojay78
Hi,

I have a problem with my mvp project.

I do the binding in the constructor of each presenter, every presenter
is implemented as a singleton. I do that because otherwise I
discovered that the binding to the buttons, textboxes etc will be
established each time I use the presenter and so i had duplicated
actions. Now the bind method will be called only once like excpected
but when I click a button in my view there no action, its like the
binding to my buttons does not exist? Does anyone has an advise for
me? I do not see the issue? Or is it not possible to do that in gwt ?


Thanks
Best regards

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



Reusability of GWT UI

2010-07-12 Thread Vik
Hie

I have a UI which shows a search panel having 3 list boxes to select from
and a search button.

I have two different pages where this UI has to be exactly same except the
search button needs to call  different rpc services.

How should I write the code once and resue it both the places? Please
advise...

Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.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: Reusability of GWT UI

2010-07-12 Thread Gal Dolber
class YourSearchPanel extends Composite *implements HasClickHandlers {*
*
*
*...*
*public HandlerRegistration addClickHandler(ClickHandler handler) {*
*yourSearchButton.addClickHandler(handler);*
*}*
*
*
*}*
*
*
*And move the rpc logic out of your widget
*
2010/7/12 Vik vik@gmail.com

 Hie

 I have a UI which shows a search panel having 3 list boxes to select from
 and a search button.

 I have two different pages where this UI has to be exactly same except the
 search button needs to call  different rpc services.

 How should I write the code once and resue it both the places? Please
 advise...

 Thankx and Regards

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




-- 
http://gwtupdates.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: MVP Problem when implementing the presenter as singleton

2010-07-12 Thread Gal Dolber
Some code?

2010/7/12 crojay78 croja...@googlemail.com

 Hi,

 I have a problem with my mvp project.

 I do the binding in the constructor of each presenter, every presenter
 is implemented as a singleton. I do that because otherwise I
 discovered that the binding to the buttons, textboxes etc will be
 established each time I use the presenter and so i had duplicated
 actions. Now the bind method will be called only once like excpected
 but when I click a button in my view there no action, its like the
 binding to my buttons does not exist? Does anyone has an advise for
 me? I do not see the issue? Or is it not possible to do that in gwt ?


 Thanks
 Best regards

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




-- 
http://gwtupdates.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: Surely a nasty bug! in RPCServletUtils.readContentAsUtf8

2010-07-12 Thread Paul Robinson
Search the archives for Client did not send nn bytes as expected. It's
come up several times before, but I don't think there have been good
solutions.

HTH
Paul


Shawn Brown wrote:
 Hi,
  Can anyone suggest a work around for
 http://code.google.com/p/google-web-toolkit/issues/detail?id=5109

 I'll have to look at the src when I get time but this is nuts to me.

 Does this work for you?

 private String showRequestedMethod(ServletRequest request) throws
 IOException, ServletException {
   
   //requestCopy2=(HttpServletRequest) request;
   
   //HttpServletRequest requestCopy =(HttpServletRequest) request;
   
   String r1 = request.toString();
   Log.info(request.length + request.getContentLength());
   String payload =
 RPCServletUtils.readContentAsUtf8(((HttpServletRequest) request));
   Log.info(payload: +payload);
   pay=payload;
   RPCRequest rpc_request = RPC.decodeRequest(payload);
 //Log.info(rpc. method  + rpc_request.getMethod());
   Log.info(r.ts +request.toString());
   
   
   Log.info(request.length + request.getContentLength());
   String r2= request.toString();
   String payload2;
   try {
   payload2 = 
 RPCServletUtils.readContentAsUtf8(((HttpServletRequest) request));
   Log.info(payload2: +payload2);
   
   } catch (Exception e) {
   Log.info(Why the #$% + e.getMessage());
   e.printStackTrace();
   }
   Log.info(r.ts2 +request.toString());
   
   Log.info(Are r1 and r2 the same +r1.equals(r2));
   
   return rpc_request.getMethod().toString();
 }

 I get an error every time saying Client did not send 197 bytes as
 expected.  Why it's the same request that is passed into
 RPCServletUtils.readContentAsUtf8(((HttpServletRequest) request));

 Basically I am checking for authorization in a filter so I need to
 find out what rpc method is being called.  Then if the user has auth,
 I let it go through but then see an error when the method is really
 called.  I call it twice in this method as an example to narrow down
 what is failing.

 Any help?  Please!

 Shawn

 PS. perhaps this is related
 http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/9b4a98d0d50d2752

   

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



MVP multiple buttons/fields

2010-07-12 Thread Fendy Tjin
Hi, I would like to elegantly code my application. I am rather
confused as to how to code for multiple button/field.

such as: multiple delete buttons, or multiple update text fields

I have a working sample of it, however it is very messy and I would
like to know if there is any other way to do it.

Currently my code is as such:

SomePresenter.java

// some code
private void addStock(JsArrayStock stocks) {
FlexTable viewStockTable = new FlexTable();
viewStockTable.removeAllRows();
viewStockTable.setText(0, 0, Symbol);
viewStockTable.setText(0, 1, Name);
viewStockTable.setText(0, 2, Price);
viewStockTable.setText(0, 3, Change);
viewStockTable.setText(0, 4, Remove);
int row = 1;

for (int i = 0; i  stocks.length(); i++) {
  viewStockTable.setText(row, 0, stocks.get(i).getCode());
  viewStockTable.setText(row, 1, stocks.get(i).getName());
  viewStockTable.setText(row, 2, $  +
roundDouble(getPrice(stocks.get(i).getStockPrice(), 0), 2));
  viewStockTable.setText(row, 3,
roundDouble(getPriceChange(stocks.get(i).getStockPrice(), 0), 2) + 
%);
  Button removeButton = new Button(x);
  final String code = stocks.get(i).getCode();

//Here is the problem--
  removeButton.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
  deleteStock(code);
}
  });
//
  viewStockTable.setWidget(row, 4, removeButton);

  row++;
}
display.addStock(viewStockTable);
  }

SomeView.java

private DecoratorPanel leftPanel = new DecoratorPanel();
private VerticalPanel leftStack = new VerticalPanel();
private SimplePanel viewPanel = new SimplePanel();
private FlexTable viewStockTable = new FlexTable();

public HomeView() {
 //... some code

// assemble left panel
leftStack.add(addPanel);
viewPanel.add(viewStockTable);
leftStack.add(viewPanel);
leftPanel.add(leftStack);

//... some code
  }

//... some code

public void addStock(FlexTable table) {
viewPanel.clear();
viewPanel.add(table);
// -- Can't be done unless I put it in another container
like the panel ---
// viewStockPanel = table;
//
--
  }

My structure:
SomePresenter.java
  - addStock method - retrieve data from rpc then is creates the table
to view and pass the table to SomeView.java

I also do not like all the buttons are created in the view, if so what
is the point of MVP while I can also create them in Model and
Presenter alone. Since I created all the buttons in the Presenter,
when I pass the table to View, It can't be done with (viewStockTable =
table).

I do not like this is structured, is there another way to do it?

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: Eclipse - Google Addons are gone after update

2010-07-12 Thread Magnus
Hi Jeff,

I installed eclipse by unpacking the tar archive in /usr/local/eclpse
as root.

I started eclipse as an unpriviledged user and also installed the GWT
plugin in this context.

When restarting eclipse (during installation process) the following
message appears on the shell:
Job found still running after platform shutdown.  Jobs should be
canceled by the plugin that scheduled them during shutdown:
org.eclipse.epp.usagedata.internal.gathering.services.UsageDataService
$1

Starting eclipse as root (after installing GWT as an unpriviledged
user) does not change anything.
Starting eclipse as root (after installing GWT as root) results in GWT
is present!
Starting eclipse as normal user (after the steps above) results in GWT
is present!

But:

The GWT projects are still shown with a red exclamation mark and
starting them with Run As Web Application results in:
Exception in thread main java.lang.NoClassDefFoundError: com/google/
gwt/dev/GWTShell

This does not make fun. :-/

Magnus


On Jul 12, 6:54 pm, Jeff Chimene jchim...@gmail.com wrote:
 On 07/12/2010 09:34 AM, Magnus wrote:



  Hi,

  I spent the last hours with reinstalling eclipse and the GWT plugin
  all the time, and I do not manage to get the GWT functionality back
  into eclipse. My GWT projects are shown with a red exclamation mark
  and there are not GWT menu items.

  I am running Debian 5.0.4 with the newest eclipse 3.6 (Helios), which
  I downloaded fromwww.eclipse.org.

  For the upgrade I did exactly what is documented on code.google.com:
  Help - Install new software:http://dl.google.com/eclipse/plugin/3.6

  Thanks for the hint with the error log: It says that the plugin is
  already installed. However, when I reinstalled eclipse, I deleted the
  eclipse directory (/usr/local/eclipse) as well as the local
  configuration (.~/.eclipse). I do not know why the message appears
  that the plugin is already installed...

  Please help! I want to continue with my GWT projects! .-)

  Magnus

 Magnus:

 Did you install Eclipse as root?

 Did you install the plugin as root?

 If you start Eclipse as root does the problem still appear?

-- 
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: Eclipse - Google Addons are gone after update

2010-07-12 Thread Magnus
Hi,

I found that the red exclamation marks resulted from wrong/old
versions of appengine/gwt sdk. I deleted the old ones and all projects
are ok.

However, I cannot really tell why everything works again. I am afraid
of the next upgrade.

Magnus

On Jul 12, 7:22 pm, Magnus alpineblas...@googlemail.com wrote:
 Hi Jeff,

 I installed eclipse by unpacking the tar archive in /usr/local/eclpse
 as root.

 I started eclipse as an unpriviledged user and also installed the GWT
 plugin in this context.

 When restarting eclipse (during installation process) the following
 message appears on the shell:
 Job found still running after platform shutdown.  Jobs should be
 canceled by the plugin that scheduled them during shutdown:
 org.eclipse.epp.usagedata.internal.gathering.services.UsageDataService
 $1

 Starting eclipse as root (after installing GWT as an unpriviledged
 user) does not change anything.
 Starting eclipse as root (after installing GWT as root) results in GWT
 is present!
 Starting eclipse as normal user (after the steps above) results in GWT
 is present!

 But:

 The GWT projects are still shown with a red exclamation mark and
 starting them with Run As Web Application results in:
 Exception in thread main java.lang.NoClassDefFoundError: com/google/
 gwt/dev/GWTShell

 This does not make fun. :-/

 Magnus

 On Jul 12, 6:54 pm, Jeff Chimene jchim...@gmail.com wrote:

  On 07/12/2010 09:34 AM, Magnus wrote:

   Hi,

   I spent the last hours with reinstalling eclipse and the GWT plugin
   all the time, and I do not manage to get the GWT functionality back
   into eclipse. My GWT projects are shown with a red exclamation mark
   and there are not GWT menu items.

   I am running Debian 5.0.4 with the newest eclipse 3.6 (Helios), which
   I downloaded fromwww.eclipse.org.

   For the upgrade I did exactly what is documented on code.google.com:
   Help - Install new software:http://dl.google.com/eclipse/plugin/3.6

   Thanks for the hint with the error log: It says that the plugin is
   already installed. However, when I reinstalled eclipse, I deleted the
   eclipse directory (/usr/local/eclipse) as well as the local
   configuration (.~/.eclipse). I do not know why the message appears
   that the plugin is already installed...

   Please help! I want to continue with my GWT projects! .-)

   Magnus

  Magnus:

  Did you install Eclipse as root?

  Did you install the plugin as root?

  If you start Eclipse as root does the problem still appear?

-- 
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: Client OR mapping

2010-07-12 Thread Stefan Bachert
Hi,

the client does not know about OR at all. There is NO WAY to lazy load
something. The client only know objects.

In a real good client architecture a view/control works against a
model proxy in the client (sometimes I call them client object cache)
Either the model object is already in the cache or it will be
requested.
In such an architecture the use of comet/server-push techniques is
essential.
You could decide on server side which strategy regarding a certain
model object is the best (eager supplying dependent object too, or
not )
However, feeling well in the async world is a prerequisite

Stefan Bachert
http://gwtworld.de

On 9 Jul., 20:22, mk munna.kaka.ch...@gmail.com wrote:
 How do you maintain rich OR mapping in client.

 For example CUSTOMER has many ORDERS and each ORDER has many ITEMS.

 Now GWT makes DIFFERENT ajax calls wherein CUSTOMER, ORDER, ITEM are
 loaded at separate times (eager fetching does not look good thus lazy
 fetching only).

 Thus do you manually map objects again in client ( or do you store
 CUSTOMER, ORDER, ITEM  in separate shared variables or something
 else.).

 I am sure you experts out there must have some directions for us.

-- 
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 server design

2010-07-12 Thread Stefan Bachert
Hi,

in general a full AJAX web application (as GWT is one) do generate
much less load on the server then classical web technology which are
rendering a complete gui on each request.
My estimates let expect that a server could drive 10-50 time more
clienta when using GWT.

Stefan Bachert
http://gwtworld.de

On 9 Jul., 20:45, Xsuperstore xsuperst...@gmail.com wrote:
 Hello.

 I am new in the GWT word, I have some questions about server resource
 design.

 Estimate of CPU  MEN compared to LAMP in Linux?

 I mean, for high traffic sites (2-5) users/day the is some
 estimate/recomended hardware resources design?

 thanks in advance!

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



Re: TablayoutPanel - how to align tabs on right (top)

2010-07-12 Thread Stefan Bachert
Hi,

Did you want  to support a rtl language?
When yes, try to switch to it.
Some widget support it.

Stefan Bachert
http://gwtworld.de




On 11 Jul., 13:46, Akshay  Kumar kumar.aks...@gmail.com wrote:
 I am using TabLayoutPanel (in UiBinder xml), and the tab handles
 ( headers) are by default on top-left. Cant seem to figure out any api
 option to align the tab-headers on the top-right. I tried TabPanel
 also but without any luck.

 something like this:

 [ Tab1 ]_[ Tab2 ]_[ Tab3 ]_
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |_|

-- 
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: Client session

2010-07-12 Thread mk
I am sure many experts out there had already found solution to below.
Thus please respond to original question.

On Jul 9, 11:48 am, mk munna.kaka.ch...@gmail.com wrote:
 How to implement a client side session ( and any best practices to
 implement them).
 Is it to just create a static variable ?

 How do two different MVP widgets share MODEL data (i.e. user input
 data).

 How do two different MVP widgets share VIEW data ( for example if
 display of one widget is dependent on mouse click location of second
 widget, than how do two widgets share view information i.e. mouse
 click location).

 Again, all widgets are designed using MVP and send events using
 EventBus.

-- 
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: Client OR mapping

2010-07-12 Thread mk
Thanks for response. However may be my question was misleading and
thus I did not get the answer.

My question is how do you maintain mapping between Model objects at
client

Say for example, over the course of user conversation, there were
three DIFFERENT ajax calls to load CUSTOMER, ORDERS and ITEMS.

Now do you manually map CUSTOMER to ORDER and ORDER to ITEM in client
after data is received from server, to maintain mapping between Model
objects
( or do you store CUSTOMER, ORDER, ITEM  separatly with no mapping or
there is a framework which maps obejcts with configuration like
hibernate mappings in client)

thanks





On Jul 12, 12:34 pm, Stefan Bachert stefanbach...@yahoo.de wrote:
 Hi,

 the client does not know about OR at all. There is NO WAY to lazy load
 something. The client only know objects.

 In a real good client architecture a view/control works against a
 model proxy in the client (sometimes I call them client object cache)
 Either the model object is already in the cache or it will be
 requested.
 In such an architecture the use of comet/server-push techniques is
 essential.
 You could decide on server side which strategy regarding a certain
 model object is the best (eager supplying dependent object too, or
 not )
 However, feeling well in the async world is a prerequisite

 Stefan Bacherthttp://gwtworld.de

 On 9 Jul., 20:22, mk munna.kaka.ch...@gmail.com wrote:



  How do you maintain rich OR mapping in client.

  For example CUSTOMER has many ORDERS and each ORDER has many ITEMS.

  Now GWT makes DIFFERENT ajax calls wherein CUSTOMER, ORDER, ITEM are
  loaded at separate times (eager fetching does not look good thus lazy
  fetching only).

  Thus do you manually map objects again in client ( or do you store
  CUSTOMER, ORDER, ITEM  in separate shared variables or something
  else.).

  I am sure you experts out there must have some directions for us.- Hide 
  quoted text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: TablayoutPanel - how to align tabs on right (top)

2010-07-12 Thread Akshay Kumar
Hi,
I assume, by rtl, you meant right-to-left. Then, no, my UI designer gave me
this design to have the tab-headers on the right.
I do not want to go back to UI-designer that its not possible, unless I have
tried my options.
thanks,
Tkshay

On 13 July 2010 00:19, Stefan Bachert stefanbach...@yahoo.de wrote:

 Hi,

 Did you want  to support a rtl language?
 When yes, try to switch to it.
 Some widget support it.

 Stefan Bachert
 http://gwtworld.de




 On 11 Jul., 13:46, Akshay  Kumar kumar.aks...@gmail.com wrote:
  I am using TabLayoutPanel (in UiBinder xml), and the tab handles
  ( headers) are by default on top-left. Cant seem to figure out any api
  option to align the tab-headers on the top-right. I tried TabPanel
  also but without any luck.
 
  something like this:
 
  [ Tab1 ]_[ Tab2 ]_[ Tab3 ]_
  |
  |
  |
  |
  |
  |
  |
  |
  |
  |
  |_|

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



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



The Music Collective, a GWT project

2010-07-12 Thread charlie
Hi all!

So I'm launching my first GWT app,
http://www.the-music-collective.com/listen/MP3Player.html .  A year ago
pandora started charging for more than 40 hours a month, so I decided to
write an online mp3 player that I could upload my music to once and listen
to wherever.

It's since become an sort of social networking meets music app, where you
invite friends, they 'like' songs, and you can get a glimpse of what
everyone is into, music wise, at the moment.

One interesting aspect was this deferred login / sign up.  The application
only prompts you for login / signup when you try to do something that
requires you to be logged in.  This was an after thought, but thanks to how
GWT is setup, it required little to no changes at all.

So, what have you built with GWT?  Share!

Charlie

-- 
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: The Music Collective, a GWT project

2010-07-12 Thread Nabeel Ali Memon
Nice app. Have you opened up the source?

To have some fun time, I had created this tiny amateur project I named
Gwt-Presentations. I actually had to deliver an internal (workplace) talk on
Maven 101 so I thought maybe I should create a simple  clean presentation
in GWT and code my slides in Java to convert my boredom into fun ;)

The source is open for all
http://github.com/nabeelalimemon/Gwt-Presentations and everybody is welcome
to contribute and/or criticize. Remember, it's just targeted for some fun
and it's, currently, suitable only for creating some simple presentations.
To improve the quality, cleanup things and make it a nice sample GWT 2 app,
i plan to implement MVP, DI, UIBinder stuff into it. Currently if you wanna
try it, you may read the project's wiki page.

Nabeel.



On Tue, Jul 13, 2010 at 1:08 AM, charlie charlie.f...@gmail.com wrote:

 Hi all!

 So I'm launching my first GWT app,
 http://www.the-music-collective.com/listen/MP3Player.html .  A year ago
 pandora started charging for more than 40 hours a month, so I decided to
 write an online mp3 player that I could upload my music to once and listen
 to wherever.

 It's since become an sort of social networking meets music app, where you
 invite friends, they 'like' songs, and you can get a glimpse of what
 everyone is into, music wise, at the moment.

 One interesting aspect was this deferred login / sign up.  The application
 only prompts you for login / signup when you try to do something that
 requires you to be logged in.  This was an after thought, but thanks to how
 GWT is setup, it required little to no changes at all.

 So, what have you built with GWT?  Share!

 Charlie

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


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



Re: difference in alignment on different browsers

2010-07-12 Thread lineman78
Sorry for the late response,

align is not a valid css property, use text-align:left;

On Jul 10, 11:31 pm, Vik vik@gmail.com wrote:
 any help on this plz...

 Thankx and Regards

 Vik
 Founderwww.sakshum.comwww.sakshum.blogspot.com

 On Fri, Jul 9, 2010 at 10:35 AM, Vik vik@gmail.com wrote:
  hie

  thanks looks helpful...

  The firebug shows following layout

  td align=center
     fieldset

  table

  clogroup/colgroup
  tbody
  .
  .
  .
  and so on /tbody

  in firebug i add align=left to tbody then it fixes the issue.

  However, in css if add following it doesn't work:
  fieldset table tbody {
  align: left;
  }

  any advise plz

  Thankx and Regards

  Vik
  Founder
 www.sakshum.com
 www.sakshum.blogspot.com

  On Thu, Jul 8, 2010 at 9:40 PM, lineman78 linema...@gmail.com wrote:

  IE seems to be inheriting the align=center from the parent td.  the
  simple way is to add align=left on the form table, but you could add
  it to each cell individually using the cell formatter.  Depending on
  the GWT panels you are using there are multiple different ways to
  solve this.  Essentially the difference is inheritance in IE vs Gecko/
  Webkit.

  On Jul 8, 9:43 am, Vik vik@gmail.com wrote:
   Hie

   Check out pleasehttp://
  1.latest.sakshumweb20.appspot.com/ui/page/DonorRegister.jsp

   and notice the alignment of fields in IE Vs chrome/firefox

   The one coming in chrome or firefox is the desired one. So how to fix it
  for
   IE? And I thought i dont need to take care cross browser stuff using gwt

   Thankx and Regards

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

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



Re: Passing data between modules - MVP architecture

2010-07-12 Thread lineman78
May I also suggest that you look at an approach based on GWT exporter
so you can make calls between the modules directly.  I have been
playing around with making a GWT based plugable portal architecture
based on this approach and have been partially successful in my
limited experimentation.

On Jul 9, 9:35 am, grandanat marian.strug...@gmail.com wrote:
 Hello all.
 I Have a simple scenario:
 -a GWT application with an application controller that handles history
 and initialize modules. ( a module is an entity formed by a presenter
 + view - classic MVP, nothing special)
 -from a module should be opened another module and pass init data to
 it, and then after child module finishes its job to return another
 response data.

 I followed two approaches and i would like to comment them.

 1.eventBuss approach - pass data within events.
 i have StartChildModuleEvent event that encapsulates a module parent
 ID, and some init data, and an ExitChildModuleEvent event that
 encapsulates some return data.

 2 callback approach.
 i added to my modules a callBack handler

 public abstract class ModuleCallBackHandlerD, T implements
 DataCallBackHandlerT {

   private ModuleID parentID;

   private D initData;
   private T returnData;

   public ModuleCallBackHandler(ModuleID parentID) {
     this.parentID = parentID;
   }

   public ModuleCallBackHandler(ModuleID parentID, D initData) {
     this.parentID = parentID;
     this.initData = initData;
   }

   public void onCancel(){
   }

   public void onFailure(Throwable caught){
     Window.alert(AppGin.injector.getAppConstants().msg_moduleError() +
  :  + caught.getMessage());
 //    caught.printStackTrace();
   }

   public ModuleID getParentID() {
     return parentID;
   }

   public D getInitData() {
     return initData;
   }

   public T getReturnData() {
     return returnData;
   }

 }

 and when i want to init a child module i instantiate a new callback

 AppGin.injector.getAppController().doStartChildModule(ModuleID.ITEMSEARCH,
             new ModuleCallBackHandlerString, Item(getModuleID(),
 itemID) {

               @Override
               public void onSuccess(Item result) {
                 //do some stuff - update this module with received
 data
               }

             });

 I would like some opinions regarding this two approaches.

 Thanks all

-- 
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: The Music Collective, a GWT project

2010-07-12 Thread nino ekambi
Nice App

You are using GXT right ?

How do you get that accordion effect working ?
cant figure it out

Greets

Nino

2010/7/12 charlie charlie.f...@gmail.com

 Hi all!

 So I'm launching my first GWT app,
 http://www.the-music-collective.com/listen/MP3Player.html .  A year ago
 pandora started charging for more than 40 hours a month, so I decided to
 write an online mp3 player that I could upload my music to once and listen
 to wherever.

 It's since become an sort of social networking meets music app, where you
 invite friends, they 'like' songs, and you can get a glimpse of what
 everyone is into, music wise, at the moment.

 One interesting aspect was this deferred login / sign up.  The application
 only prompts you for login / signup when you try to do something that
 requires you to be logged in.  This was an after thought, but thanks to how
 GWT is setup, it required little to no changes at all.

 So, what have you built with GWT?  Share!

 Charlie

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


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



Re: The Music Collective, a GWT project

2010-07-12 Thread charlie
Yep GXT, have been loving it so far.

The accordion effect is
http://www.sencha.com/deploy/gxtdocs/com/extjs/gxt/ui/client/widget/layout/AccordionLayout.html
 .

I have a MenuPanel that extends ContentPanel with setLayout( new
AccordionLayout() ) , and each accordion entry is just something that
extends ConentPanel.

Open sourcing soon, need to clean it up first :).

On Mon, Jul 12, 2010 at 4:00 PM, nino ekambi jazzmatad...@googlemail.comwrote:

 Nice App

 You are using GXT right ?

 How do you get that accordion effect working ?
 cant figure it out

 Greets

 Nino

 2010/7/12 charlie charlie.f...@gmail.com

  Hi all!

 So I'm launching my first GWT app,
 http://www.the-music-collective.com/listen/MP3Player.html .  A year ago
 pandora started charging for more than 40 hours a month, so I decided to
 write an online mp3 player that I could upload my music to once and listen
 to wherever.

 It's since become an sort of social networking meets music app, where you
 invite friends, they 'like' songs, and you can get a glimpse of what
 everyone is into, music wise, at the moment.

 One interesting aspect was this deferred login / sign up.  The application
 only prompts you for login / signup when you try to do something that
 requires you to be logged in.  This was an after thought, but thanks to how
 GWT is setup, it required little to no changes at all.

 So, what have you built with GWT?  Share!

 Charlie

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


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




-- 
charlie/

-- 
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: The Music Collective, a GWT project

2010-07-12 Thread nino ekambi
Oh yeah what i mean tis how so you get that expnad and collpase effect
working
still cant fogure it out :)

Greets

Nino

2010/7/12 nino ekambi jazzmatad...@googlemail.com

 Greet Work

 2010/7/12 charlie charlie.f...@gmail.com

 Yep GXT, have been loving it so far.

 The accordion effect is
 http://www.sencha.com/deploy/gxtdocs/com/extjs/gxt/ui/client/widget/layout/AccordionLayout.html
  .

 I have a MenuPanel that extends ContentPanel with setLayout( new
 AccordionLayout() ) , and each accordion entry is just something that
 extends ConentPanel.

 Open sourcing soon, need to clean it up first :).


 On Mon, Jul 12, 2010 at 4:00 PM, nino ekambi jazzmatad...@googlemail.com
  wrote:

 Nice App

 You are using GXT right ?

 How do you get that accordion effect working ?
 cant figure it out

 Greets

 Nino

 2010/7/12 charlie charlie.f...@gmail.com

  Hi all!

 So I'm launching my first GWT app,
 http://www.the-music-collective.com/listen/MP3Player.html .  A year ago
 pandora started charging for more than 40 hours a month, so I decided to
 write an online mp3 player that I could upload my music to once and listen
 to wherever.

 It's since become an sort of social networking meets music app, where
 you invite friends, they 'like' songs, and you can get a glimpse of what
 everyone is into, music wise, at the moment.

 One interesting aspect was this deferred login / sign up.  The
 application only prompts you for login / signup when you try to do 
 something
 that requires you to be logged in.  This was an after thought, but thanks 
 to
 how GWT is setup, it required little to no changes at all.

 So, what have you built with GWT?  Share!

 Charlie

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


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




 --
 charlie/

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




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



Re: The Music Collective, a GWT project

2010-07-12 Thread Angel Robert Marquez
That beautiful girl with hair like fire's voice is gracing my speakers
thanks to your app.

On Mon, Jul 12, 2010 at 1:08 PM, charlie charlie.f...@gmail.com wrote:

 Hi all!

 So I'm launching my first GWT app,
 http://www.the-music-collective.com/listen/MP3Player.html .  A year ago
 pandora started charging for more than 40 hours a month, so I decided to
 write an online mp3 player that I could upload my music to once and listen
 to wherever.

 It's since become an sort of social networking meets music app, where you
 invite friends, they 'like' songs, and you can get a glimpse of what
 everyone is into, music wise, at the moment.

 One interesting aspect was this deferred login / sign up.  The application
 only prompts you for login / signup when you try to do something that
 requires you to be logged in.  This was an after thought, but thanks to how
 GWT is setup, it required little to no changes at all.

 So, what have you built with GWT?  Share!

 Charlie

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


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



Re: concerns on 2.1 MVP approach

2010-07-12 Thread Thomas Broyer


On 12 juil, 19:34, PhilBeaudoin philippe.beaud...@gmail.com wrote:
 Following an off-group discussion with Marius, he suggested that I
 comment back on this thread regarding the fear of many gwt-platform
 users and developers that the GWT MVP approach is too tightly linked
 to SpringRoo and the idea that it can generate a lot of boilerplate
 automatically. Do you think this apprehension is grounded, or that
 GWT's MVP can lead to lean code even when written manually?

First, it's a stated goal that RequestFactory/ValueStore is usable
easily enough without tooling such as Roo:
https://wave.google.com/wave/waveref/googlewave.com/w+WU4iAICkI
Key phrase: this is definitely intended to be useful without Roo

That being said, when you have many model objects, coding the as-many
Record interfaces and the @Service interfaces on the client-side is
cumbersome. This is going to change a bit though: M1 required a
ServerOperation enum for each @Service interface and a server-side
Config, M2 removes this using reflection on the server-side (as the
default implementation, because it's pluggable), and the goal is to
remove even more (The Property types are cumbersome and we plan to
drop them).
We're starting prototyping, so it's OK to code those things by hand
(and play by the current limitations: I'm coding a server-side object
extending a model object just to add the findXxx, persist and remove
methods), but if it proves necessary (or just worth it), we'll use
generators, probably in the form of an annotation processor.
(FWIW, we're using Morphia on the server-side to persist POJOs into
MongoDB, which is quite similar what Objectify is for AppEngine
AFAICT)

Time will tell if RequestFactory fulfills its stated goal of being
easy enough to be used without Roo, but it's promising and I guess
only feedback from the community will help make it useful in as many
contexts as possible (proof that Gogle is listening: the
RequestFactoryServletHelper answers an early user request)

-- 
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 adoption

2010-07-12 Thread Mikael Couzic
 The majority of what GWT can do can be done by a good web 
 developer/designer...

Of course, but is it done as fast ? And is it easily maintainable ?
For guys like me, who are not so good at HTML and JS but master Java
and OOD, it's not a crutch, it's a high-powered exo-skeleton packed
with a light saber.


On 12 juil, 16:06, DaveC david.andrew.chap...@googlemail.com wrote:
 The majority of what GWT can do can be done by a good web developer/
 designer... but what GWT is good at is all the compile time
 optimisations - when you're trying to squeeze every last bit of
 performance out of of your app... and if you only/have to write Java.

 It is a crutch IMHO, probably quite a good one though ;o) - but a
 crutch no less.

 On Jul 12, 2:57 pm, nino ekambi jazzmatad...@googlemail.com wrote:



  For me i think GWT is the future.
  It s just a genius way to write desktop type web application.

  2010/7/9 mk munna.kaka.ch...@gmail.com

   Do you guys think that GWT will the most widely used framework in
   future ( or there will be mix of other frameworks in future. If yes
   than which frameworks).

   I am little worried that why GWT is not adopted at a rate I would have
   thought for last 4 yrs.  why why...

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

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



BUG : showRelativeTo and getAbsoluteLeft() GWT in RTL content is wrong in Chrome and Safari

2010-07-12 Thread Aladdin
I was developing application that has popuppanel in it , it was
fine,but now I can see that Chrome and Safari sets the popup very
wrong when using showRelativeTo  . in RTL environment

I debug this more and found that getAbsoluteLeft()  returns the wrong
No. I get 700-1200 px while the divs that I'm at is only 200-800.

To be more clear my div report the wrong  getAbsoluteLeft() !

Thanks in advance

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



Re: The Music Collective, a GWT project

2010-07-12 Thread t.dave
Nice app.  Any concerns about music industry problems?


On Jul 12, 3:08 pm, charlie charlie.f...@gmail.com wrote:
 Hi all!

 So I'm launching my first GWT 
 app,http://www.the-music-collective.com/listen/MP3Player.html.  A year ago
 pandora started charging for more than 40 hours a month, so I decided to
 write an online mp3 player that I could upload my music to once and listen
 to wherever.

 It's since become an sort of social networking meets music app, where you
 invite friends, they 'like' songs, and you can get a glimpse of what
 everyone is into, music wise, at the moment.

 One interesting aspect was this deferred login / sign up.  The application
 only prompts you for login / signup when you try to do something that
 requires you to be logged in.  This was an after thought, but thanks to how
 GWT is setup, it required little to no changes at all.

 So, what have you built with GWT?  Share!

 Charlie

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



Re: MVP multiple buttons/fields

2010-07-12 Thread Gal Dolber
Start moving the code of addStock to the view. Try not to use widget code on
the presenter.

Then create an interface and implement in the presenter:
class SomeViewHandlers {
void deleteStock(Stock code);
}

You already have the deleteStock method... so just add implements
SomeViewHandlers to it.

Then you need to give to the display that interface (generally in the
constructor):
display.setViewHandlers(this);

Then in the presenter lease the method as:
private void addStock(JsArrayStock stocks) {
display.addStock(stocks);
}

And in the view copyPaste the code of the method and change this:
 removeButton.addClickHandler(new ClickHandler() {
   @Override
   public void onClick(ClickEvent event) {
 *viewHandlers.*deleteStock(code);
   }
 });

Best

2010/7/12 Fendy Tjin fendyt...@gmail.com

 Hi, I would like to elegantly code my application. I am rather
 confused as to how to code for multiple button/field.

 such as: multiple delete buttons, or multiple update text fields

 I have a working sample of it, however it is very messy and I would
 like to know if there is any other way to do it.

 Currently my code is as such:

 SomePresenter.java

 // some code
 private void addStock(JsArrayStock stocks) {
FlexTable viewStockTable = new FlexTable();
viewStockTable.removeAllRows();
viewStockTable.setText(0, 0, Symbol);
viewStockTable.setText(0, 1, Name);
viewStockTable.setText(0, 2, Price);
viewStockTable.setText(0, 3, Change);
viewStockTable.setText(0, 4, Remove);
int row = 1;

for (int i = 0; i  stocks.length(); i++) {
  viewStockTable.setText(row, 0, stocks.get(i).getCode());
  viewStockTable.setText(row, 1, stocks.get(i).getName());
  viewStockTable.setText(row, 2, $  +
 roundDouble(getPrice(stocks.get(i).getStockPrice(), 0), 2));
  viewStockTable.setText(row, 3,
 roundDouble(getPriceChange(stocks.get(i).getStockPrice(), 0), 2) + 
 %);
  Button removeButton = new Button(x);
  final String code = stocks.get(i).getCode();

 //Here is the problem--
  removeButton.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
  deleteStock(code);
}
  });
 //
  viewStockTable.setWidget(row, 4, removeButton);

  row++;
}
display.addStock(viewStockTable);
  }

 SomeView.java

 private DecoratorPanel leftPanel = new DecoratorPanel();
 private VerticalPanel leftStack = new VerticalPanel();
 private SimplePanel viewPanel = new SimplePanel();
 private FlexTable viewStockTable = new FlexTable();

 public HomeView() {
  //... some code

// assemble left panel
leftStack.add(addPanel);
viewPanel.add(viewStockTable);
leftStack.add(viewPanel);
leftPanel.add(leftStack);

 //... some code
  }

 //... some code

 public void addStock(FlexTable table) {
viewPanel.clear();
viewPanel.add(table);
 // -- Can't be done unless I put it in another container
 like the panel ---
 // viewStockPanel = table;
 //

 --
  }

 My structure:
 SomePresenter.java
  - addStock method - retrieve data from rpc then is creates the table
 to view and pass the table to SomeView.java

 I also do not like all the buttons are created in the view, if so what
 is the point of MVP while I can also create them in Model and
 Presenter alone. Since I created all the buttons in the Presenter,
 when I pass the table to View, It can't be done with (viewStockTable =
 table).

 I do not like this is structured, is there another way to do it?

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




-- 
http://gwtupdates.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.



This is getting beyond a joke

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

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

Richard

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



gwt-html5-persistence: GWT client side persistence

2010-07-12 Thread Dennis Z Jiang
Hi everyone,

I am working on an GWT generator project that enables objects to be
persisted on the client side html5 database (or Google Gears db). The
generator is a wrapper of a JavaScript library that provides the
actual object persistence functionality. If you have need to persist
objects on the browser database, you are welcome to visit the project
site for more details.

http://github.com/dennisjzh/gwt-html5-persistence

The sample code below demonstrates how to persist objects to the
browser database. The sample creates five task objects, persists them,
and then retrieves the ones that are marked as done. No SQL statement
is used in the code.

final EntityTask taskEntity = GWT.create(Task.class);
final EntityTag tagEntity = GWT.create(Tag.class);
final EntityCategory categoryEntity = GWT.create(Category.class);

Persistence.schemaSync(new Callback() {
public void onSuccess() {
final Category c = categoryEntity.newInstance();
c.setName(Main);
final Tag tag = tagEntity.newInstance();
tag.setName(Urgent);
for (int i = 0; i  5; i++) {
Task t = taskEntity.newInstance();
t.setName(Task + Integer.toString(i));
t.setDescription(Task No # + Integer.toString(i));
t.setDone(i % 2 == 0);
t.setCategory(c);
t.getTags().add(tag);
}

Persistence.flush(new Callback() {
public void onSuccess() {
CollectionTask allTasks =
c.getTasks().filter(Done, ==, true);
allTasks.list(new CollectionCallbackTask() {
public void onSuccess(Task[] results) {
for (Task task : results) {
RootPanel.get(taskNameContainer).add(new
Label(task.getName()));
}
}
});
Persistence.reset();
}
});
}
});

-- 
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: Exception thrown when running on Google Chrome w ith compiler output style set to ‘OBF’

2010-07-12 Thread dob...@gmail.com
Hello,

I made a jar that is able to replace all occurrences of a regular
expression of a file or file extension. It can be called using pom.

A example:

C:\wde\jvm\jdk5\bin\java -jar RegularReplacer1-5.jar C:\wde\eclipse-
workspaces\main\ria\target\webb-2.0\br.com.webb.ria.Application
.cache.html ([^a-zA-Z0-9_])top\(( $1topazio\(

This will replace all the occurrences of top( by topazio(, in
the .cache.html files in the C:\wde\eclipse-workspaces\main\ria\target
\webb-2.0\br.com.webb.ria.Application directory.
Webb 2-0 is our project. You should point it to the place that GWT
generates yours .cache.html files. Of course, it could be used for
more things.

Using it with pom.



  plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdexec-maven-plugin/artifactId
 version1.1.1/version
 executions
  execution
   phaseprepare-package/phase
   goals
goaljava/goal
   /goals
   configuration
mainClassMainPackage.Main/mainClass
arguments
 argument./target/webb-2.0/br.com.webb.ria.Application/
argument
 argument.cache.html/argument
 argument![CDATA[([^a-zA-Z0-9_])top\(]]/argument
 argument![CDATA[$1topazio\(]]/argument
/arguments
   /configuration
  /execution
 /executions
/plugin

I made this code, and it is free and open source.

I will find a place to host the program an source an post a link.

If you want it before that, send me a email.

Thanks

On 12 jun, 15:38, Sky myonceinalifet...@gmail.com wrote:
 Ya, I would seriously suggest upgrading to the GWT 2.0.1 because so
 many tiny little bugs have been fixed over all the releases. You'll
 have to start a new project and copy your code over to deal with the
 structure changes and other little stuff that changed in the project
 since GWT 1.5. It's not very hard to convert an app to a new project
 with a newer GWT. Most of the deprecated code still works I'm pretty
 sure. Event listeners and all that still work.

 gl ^_^

 On Jun 12, 10:45 am, Thomas Broyer t.bro...@gmail.com wrote:

  On 11 juin, 23:05, elifarley elifar...@gmail.com wrote:

   I'd like to know if you guys have faced the same problem I'm facing,
   and how you are dealing with it.

   Sometimes, a small and harmless change in a Java class ensues strange
   errors at runtime.

   These errors only happen if BOTH conditions below are true:

   2) the application is run on Google Chrome, and

   1) the GWT JavaScript compiler output style is set to 'OBF'.

   So, running the application on Firefox or IE always works.
   Running with the output style set to 'pretty' or 'detailed' always
   works, even on Google Chrome.

   Here's an example of error message that I got:

       ((TypeError): Property 'top' of object [object DOMWindow] is not
   a function stack

   And here's what I have:
   - GWT 1.5.3
   - GXT 1.2.4
   - Google Chrome 4 and 5
   - Windows XP

   In order to get rid of this Heisenbug, I have to either deploy my
   application without obfuscation or endure a time-consuming trial-and-
   error process in which I re-implement the change in slightly different
   ways and re-run the application, until the GWT compiler is happy with
   my code.

   Would you have a better idea on how to avoid this?

  Which GWT version are you using?
  This seems related 
  tohttp://code.google.com/p/google-web-toolkit/issues/detail?id=4117
  but it seems to me that this was fixed in GWT 1.6

-- 
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: Eclipse - Google Addons are gone after update

2010-07-12 Thread Magnus
Hi Rajeev,

I always installed eclipse as root, i. e. extracting the tar archive
as root into /usr/local/eclipse and changing the ownership of all
files and folders to root.

I always used eclipse as a normal user by calling /usr/local/eclipse/
eclipse.

I always install new eclipse plugin within eclipse running as a normal
user.

This always worked, except with the GWT plugin. I would be glad if I
knew why...

Magnus

On Jul 12, 7:36 pm, Rajeev Dayal rda...@google.com wrote:
 When you originally installed Eclipse and GPE (before Installing Eclipse
 3.5), what was the permissions setup? Did you install Eclipse as root, and
 GPE as non-root? Did you perform the upgrade as root or non-root?

 On Mon, Jul 12, 2010 at 1:30 PM, Magnus alpineblas...@googlemail.comwrote:

  Hi,

  I found that the red exclamation marks resulted from wrong/old
  versions of appengine/gwt sdk. I deleted the old ones and all projects
  are ok.

  However, I cannot really tell why everything works again. I am afraid
  of the next upgrade.

  Magnus

  On Jul 12, 7:22 pm, Magnus alpineblas...@googlemail.com wrote:
   Hi Jeff,

   I installed eclipse by unpacking the tar archive in /usr/local/eclpse
   as root.

   I started eclipse as an unpriviledged user and also installed the GWT
   plugin in this context.

   When restarting eclipse (during installation process) the following
   message appears on the shell:
   Job found still running after platform shutdown.  Jobs should be
   canceled by the plugin that scheduled them during shutdown:
   org.eclipse.epp.usagedata.internal.gathering.services.UsageDataService
   $1

   Starting eclipse as root (after installing GWT as an unpriviledged
   user) does not change anything.
   Starting eclipse as root (after installing GWT as root) results in GWT
   is present!
   Starting eclipse as normal user (after the steps above) results in GWT
   is present!

   But:

   The GWT projects are still shown with a red exclamation mark and
   starting them with Run As Web Application results in:
   Exception in thread main java.lang.NoClassDefFoundError: com/google/
   gwt/dev/GWTShell

   This does not make fun. :-/

   Magnus

   On Jul 12, 6:54 pm, Jeff Chimene jchim...@gmail.com wrote:

On 07/12/2010 09:34 AM, Magnus wrote:

 Hi,

 I spent the last hours with reinstalling eclipse and the GWT plugin
 all the time, and I do not manage to get the GWT functionality back
 into eclipse. My GWT projects are shown with a red exclamation mark
 and there are not GWT menu items.

 I am running Debian 5.0.4 with the newest eclipse 3.6 (Helios), which
 I downloaded fromwww.eclipse.org.

 For the upgrade I did exactly what is documented on code.google.com:
 Help - Install new software:http://dl.google.com/eclipse/plugin/3.6

 Thanks for the hint with the error log: It says that the plugin is
 already installed. However, when I reinstalled eclipse, I deleted the
 eclipse directory (/usr/local/eclipse) as well as the local
 configuration (.~/.eclipse). I do not know why the message appears
 that the plugin is already installed...

 Please help! I want to continue with my GWT projects! .-)

 Magnus

Magnus:

Did you install Eclipse as root?

Did you install the plugin as root?

If you start Eclipse as root does the problem still appear?

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

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



Re: Eclipse - Google Addons are gone after update

2010-07-12 Thread Jeff Chimene
On Mon, Jul 12, 2010 at 7:37 PM, Magnus alpineblas...@googlemail.comwrote:

 Hi Rajeev,

 Hi Magnus:

I've been using Eclipse on Debian for several years now.


 I always installed eclipse as root, i. e. extracting the tar archive
 as root into /usr/local/eclipse and changing the ownership of all
 files and folders to root.


You shouldn't need to change the ownership. If you're really extracting the
files as root, then they are already owned by root.



 I always used eclipse as a normal user by calling /usr/local/eclipse/
 eclipse.


May I recommend using update-alternatives? You can keep several Eclipse
versions side-by-side

For example:
sudo mv /usr/local/eclipse /usr/local/eclipse-3.6
sudo update-alternatives --install /usr/bin/eclipse eclipse
/usr/local/eclipse-3.6/eclipse 100
.
.
.
sudo mv /usr/local/eclipse /usr/local/eclipse-3.7
sudo update-alternatives --install /usr/bin/eclipse eclipse
/usr/local/eclipse-3.7/eclipse 150

then

sudo update-alternatives --config eclipse

to switch among the alternatives


 I always install new eclipse plugin within eclipse running as a normal
 user.


That's probably the source of the problem, Install the plugin as root.
Always update Eclipse as root.

This means starting Eclipse as root, and running add new software

When working w/ Eclipse day-to-day, run Eclipse as magnus:magnus or
magnus:users

I generally turn off check for updates when running as a normal user.
Every few weeks, I'll check for eclipse updates, although there are usually
posts on relevant lists (subversion, gpe, epic...)


 This always worked, except with the GWT plugin. I would be glad if I
 knew why...


I think that 3.6 tightened up on some permissions. I'm not really sure.

However, I'm now running eclipse using a local initialization file to get
around a new osgi-related locking issue.

eclipse --launcher.ini /home/jchimene/.eclipse/eclipse.ini 

Frankly, I like this better, as I leave /usr/local pristine.



 Magnus

 On Jul 12, 7:36 pm, Rajeev Dayal rda...@google.com wrote:
  When you originally installed Eclipse and GPE (before Installing Eclipse
  3.5), what was the permissions setup? Did you install Eclipse as root,
 and
  GPE as non-root? Did you perform the upgrade as root or non-root?
 
  On Mon, Jul 12, 2010 at 1:30 PM, Magnus alpineblas...@googlemail.com
 wrote:
 
   Hi,
 
   I found that the red exclamation marks resulted from wrong/old
   versions of appengine/gwt sdk. I deleted the old ones and all projects
   are ok.
 
   However, I cannot really tell why everything works again. I am afraid
   of the next upgrade.
 
   Magnus
 
   On Jul 12, 7:22 pm, Magnus alpineblas...@googlemail.com wrote:
Hi Jeff,
 
I installed eclipse by unpacking the tar archive in /usr/local/eclpse
as root.
 
I started eclipse as an unpriviledged user and also installed the GWT
plugin in this context.
 
When restarting eclipse (during installation process) the following
message appears on the shell:
Job found still running after platform shutdown.  Jobs should be
canceled by the plugin that scheduled them during shutdown:
   
 org.eclipse.epp.usagedata.internal.gathering.services.UsageDataService
$1
 
Starting eclipse as root (after installing GWT as an unpriviledged
user) does not change anything.
Starting eclipse as root (after installing GWT as root) results in
 GWT
is present!
Starting eclipse as normal user (after the steps above) results in
 GWT
is present!
 
But:
 
The GWT projects are still shown with a red exclamation mark and
starting them with Run As Web Application results in:
Exception in thread main java.lang.NoClassDefFoundError:
 com/google/
gwt/dev/GWTShell
 
This does not make fun. :-/
 
Magnus
 
On Jul 12, 6:54 pm, Jeff Chimene jchim...@gmail.com wrote:
 
 On 07/12/2010 09:34 AM, Magnus wrote:
 
  Hi,
 
  I spent the last hours with reinstalling eclipse and the GWT
 plugin
  all the time, and I do not manage to get the GWT functionality
 back
  into eclipse. My GWT projects are shown with a red exclamation
 mark
  and there are not GWT menu items.
 
  I am running Debian 5.0.4 with the newest eclipse 3.6 (Helios),
 which
  I downloaded fromwww.eclipse.org.
 
  For the upgrade I did exactly what is documented on
 code.google.com:
  Help - Install new software:
 http://dl.google.com/eclipse/plugin/3.6
 
  Thanks for the hint with the error log: It says that the plugin
 is
  already installed. However, when I reinstalled eclipse, I deleted
 the
  eclipse directory (/usr/local/eclipse) as well as the local
  configuration (.~/.eclipse). I do not know why the message
 appears
  that the plugin is already installed...
 
  Please help! I want to continue with my GWT projects! .-)
 
  Magnus
 
 Magnus:
 
 Did you install Eclipse as root?
 
 Did you install the plugin as root?
 
 If you start Eclipse as root does 

Re: Image setUrl and setResources IE8 JavaScriptException

2010-07-12 Thread PhilBeaudoin
I've encountered the problem and entered this as an issue in the
tracker:
http://code.google.com/p/google-web-toolkit/issues/detail?id=5114

Cheers,

Philippe

On Jul 11, 2:51 am, Sven sven.ti...@googlemail.com wrote:
 Hi Stefan,

  I did not encounter such a situation, yet. However, to my knowledge
  IE8 has an limit on data-url of 32KB which are used by GWT
  (url(data:...)).
  Probably one gif is smaller than the limit but the other is NOT.

 that seems to be the cause. However, only one out of four images in
 the resoucebundle is (slightly) larger than 32k, the others are
 smaller and still not displayed.

  For debugging just compile with output style: detailed. This gives
  you an idea of the position in your java code.

 Actually, I check the browser version and use setUrl() in case that it
 is IE 8. Using the resource bundle works for other browsers (including
 IE 7, but maybe I need to check).

 Thanks,
 Sven

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



Re: This is getting beyond a joke

2010-07-12 Thread Paul Grenyer
Hi

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

Paul

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

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

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

Richard

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

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



Remove event handlers or not?

2010-07-12 Thread Gal Dolber
Hi, someone knows for sure if its necessary to remove event handlers when we
remove a widget? will I get memory leaks if I don't?

i.e:
HandlerRegistration registration = button.addClickHandler(myHandler);
...
// IS THIS NECESSARY?
public void fakeCleanerMethodBeforeIRemoveTheWidget() {
registration.removeHandler();
}


I thought that answer was YES, but then I notice that @UiHandlers in
uibinder have no way to remove the handler.

I don't think the gwt's team will make that mistake.

Can someone confirm? Thanks

-- 
http://gwtupdates.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.



GWT 2.0.4! Thank you! 3

2010-07-12 Thread dougx
Ah, been fighting with safari 5 on windows all morning (of course, it
works perfectly on a mac...) and then lo, I saw that there was 2.0.4
out, with a fix for safari 5 bugs. Recompiled with 2.0.4 and it works
perfectly now.

To the GWT team; thank you. :)

~
Doug.

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



[gwt-contrib] gwt-incubator version compatible with GWT 2.1

2010-07-12 Thread Cameron Braid
Just curious when the gwt-incubator will become compatible with GWT 2.1?

Cameron

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Fix javadoc issues (issue681801)

2010-07-12 Thread Ray Ryan
LGTM

On Fri, Jul 9, 2010 at 2:17 PM, r...@google.com wrote:

 Reviewers: Ray Ryan,

 Description:
 Fix javadoc issues


 Please review this at http://gwt-code-reviews.appspot.com/681801/show

 Affected files:
  M user/src/com/google/gwt/app/place/AbstractRecordListActivity.java
  M user/src/com/google/gwt/app/place/ActivityManager.java
  M user/src/com/google/gwt/app/place/RecordListView.java
  M user/src/com/google/gwt/cell/client/package.html
  M user/src/com/google/gwt/i18n/shared/BidiFormatter.java
  M user/src/com/google/gwt/i18n/shared/HasDirectionEstimator.java
  M user/src/com/google/gwt/requestfactory/shared/Id.java
  M user/src/com/google/gwt/requestfactory/shared/Version.java
  M user/src/com/google/gwt/uibinder/client/UiField.java
  M user/src/com/google/gwt/uibinder/client/package-info.java
  M user/src/com/google/gwt/user/client/ui/AnimatedLayout.java
  M user/src/com/google/gwt/user/client/ui/CustomButton.java
  M user/src/com/google/gwt/user/client/ui/LayoutCommand.java
  M user/src/com/google/gwt/user/client/ui/LayoutPanel.java
  M user/src/com/google/gwt/user/client/ui/UIObject.java
  M user/src/com/google/gwt/user/client/ui/ValueBoxBase.java
  M user/src/com/google/gwt/valuestore/client/DeltaValueStoreJsonImpl.java
  M user/src/com/google/gwt/valuestore/client/ValueStoreJsonImpl.java
  M user/src/com/google/gwt/valuestore/shared/DeltaValueStore.java
  M user/src/com/google/gwt/valuestore/shared/ValueStore.java
  M user/src/com/google/gwt/view/client/AbstractListViewAdapter.java




-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Add support for creating Grid elements using UiBinder. (issue154810)

2010-07-12 Thread rjrjr

Nice. Just some error checking nits left.

http://gwt-code-reviews.appspot.com/154810/show

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Add support for creating Grid elements using UiBinder. (issue154810)

2010-07-12 Thread rjrjr


http://gwt-code-reviews.appspot.com/154810/diff/63002/70001
File user/src/com/google/gwt/uibinder/elementparsers/GridParser.java
(right):

http://gwt-code-reviews.appspot.com/154810/diff/63002/70001#newcode86
user/src/com/google/gwt/uibinder/elementparsers/GridParser.java:86:
writer.getOracle().findType(Grid.class.getName()), 0, 0);
This line serves no purpose that I can see.

http://gwt-code-reviews.appspot.com/154810/diff/63002/70001#newcode130
user/src/com/google/gwt/uibinder/elementparsers/GridParser.java:130:
writer.die(Grid's lt;g:row tag in %s may only contain %s or %s
element.,
No need for lt; here, and g: shouldn't be hard coded

http://gwt-code-reviews.appspot.com/154810/diff/63002/70001#newcode149
user/src/com/google/gwt/uibinder/elementparsers/GridParser.java:149:
throws UnableToCompleteException {
You're not enforcing that the child elements have the same prefix as the
parent. (Note that you should not hardcode g:, just make sure that
they all have the same value for XmlElement#getPrefix.)

http://gwt-code-reviews.appspot.com/154810/diff/63002/70001#newcode152
user/src/com/google/gwt/uibinder/elementparsers/GridParser.java:152:
String tagName = child.getLocalName();
Compare prefix too

http://gwt-code-reviews.appspot.com/154810/diff/63002/70001#newcode154
user/src/com/google/gwt/uibinder/elementparsers/GridParser.java:154:
writer.die(Invalid Grid child element:  + tagName);
%1$s:Grid elements must contain only %1$s:%2$s children, found
%3$s:%4$s, elem.getPrefix(), ROW_TAG, child.getPrefix(), tagName

http://gwt-code-reviews.appspot.com/154810/show

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Fix for issue 516 (issue612802)

2010-07-12 Thread rjrjr


http://gwt-code-reviews.appspot.com/612802/diff/28001/29001
File user/src/com/google/gwt/user/client/ui/RootPanel.java (right):

http://gwt-code-reviews.appspot.com/612802/diff/28001/29001#newcode92
user/src/com/google/gwt/user/client/ui/RootPanel.java:92: }
There is no need to copy Panel#clear here. Just call clear();

http://gwt-code-reviews.appspot.com/612802/show

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


Re: [gwt-contrib] UiBinder tweaks for GWT Designer

2010-07-12 Thread Ray Ryan
[Sorry for the spotty response time, it's vacation season.]

Okay, that's pretty cute. And completely isolated from the patch I pointed
you at, so don't worry about it.

I'm open to this. My only reservation at this point is the question of how
we'll ensure that it's only available at tool time.

On Fri, Jul 2, 2010 at 3:39 PM, Konstantin Scheglov 
konstantin.scheg...@gmail.com wrote:



 On Fri, Jul 2, 2010 at 6:20 PM, Ray Ryan rj...@google.com wrote:


   This is absolutely not related to databinding, we just want to produce
 GUI builder for UiBinder.
   I think that tooling was specified as one of the reasons to use XML for
 GWT UI. So, this is on what I work now. :-)


 Well that makes a lot more sense. :-)

 It occurs to me that this could be a lot easier when we revive 
 r7816http://code.google.com/p/google-web-toolkit/source/detail?r=7816,
 which I had to roll back 
 (r7858http://code.google.com/p/google-web-toolkit/source/detail?spec=svn8346r=7858)
 due to its naive handling of tables. If we make the paths the binder builds
 part of its public api, you could have your map and we wouldn't have to
 think as hard about hiding design time hooks from developers, or at least
 not all of them. Certainly, you shouldn't make your changes before that code
 comes back (and it really, really needs to come back).


   Sorry, but I don't understand on what to look in 
 r7816http://code.google.com/p/google-web-toolkit/source/detail?r=7816
 .
   Can you give hint how this can help in accessing widget objects and
 attribute values?



   If you speak about paths like 0/1/0, then I already have implementation
 for preparing/remembering them in XMLElement.

 
 public class XMLElement {
 //XXX Instantiations
 private static final WeakHashMapElement, String wbpElementPaths = new
 WeakHashMapElement, String();
 public static void rememberPathForElements(Document doc) {
 rememberPathForElements(doc.getDocumentElement(), 0);
 }
 private static void rememberPathForElements(Element element, String
 path) {
 wbpElementPaths.put(element, path);
 NodeList childNodes = element.getChildNodes();
 int elementIndex = 0;
 for (int i = 0; i  childNodes.getLength(); ++i) {
 Node childNode = childNodes.item(i);
 if (childNode.getNodeType() == Node.ELEMENT_NODE) {
 Element childElement = (Element) childNode;
 rememberPathForElements(childElement, path + / +
 elementIndex++);
 }
 }
 }
 public String getPath() {
 return wbpElementPaths.get(elem);
 }
 //XXX Instantiations
 

   This method is called from UiBinderGenerator.generateOnce()
 ---
 Document doc = getW3cDoc(logger, templatePath);

 //XXX Instantiations
 XMLElement.rememberPathForElements(doc);
 //XXX Instantiations

 uiBinderWriter.parseDocument(doc, binderPrintWriter);
 ---




 In your original note you suggested:

In method createAndBindUi() directly after creating each
 Widget instance (but before applying setX() methods) wbpObjectHandler
 is used to notify GWT Designer about new widget and its path in XML.
 GWT Designer bind Widget instance to model (using path) and also
 asks default values for all properties using getX() methods.


 Why do you need this notice before the set calls?


   We need default values for properties. This allows us to remove attribute
 (or method invocation in case of Java version of GWTD) when user tries to
 set for property same value as default. Easiest example - flipping enabled
 between true/false. Default value is true, so only enabled=false is
 written into XML.

   But if enabled=false already existed in XML, and we ask isEnabled()
 after set calls, then it is false and we can not know that default value
 is true. So, we need ask isEnabled() before setEnabled(false), i.e.
 directly after widget creation.

   Of course situation is trivial for enabled and standard GWT widgets and
 we could hardcode its default value. But we can not expect anything about
 custom widgets - some of them may be will use enabled false by default, or
 introduce new properties for which we also need to know value.


   At same time we need not only default values, but also actual values
 for properties/attributes. Not all setX() properties have corresponding
 getX() method. So, only reliable way for GWT Designer to know value is patch
 UiBinder generator to remember these values into map.







 4. To allow quick updates of design canvas as user changes properties,
 without reloading GWT context each time, we should:
 4.1. Generate Binder implementation class with new name each time, so
 be able to define each time new class in same ClassLoader. Right now
 we just add current time to the name of class.
//XXX Instantiations
// generate class with new name each time, to allow refresh in
 same ClassLoader
implName += _wbp + 

[gwt-contrib] Re: Add support for creating Grid elements using UiBinder. (issue154810)

2010-07-12 Thread markovuksanovic

Did the changes... Will post the patch a little later... I need to
convert it from git to svn format first...


http://gwt-code-reviews.appspot.com/154810/diff/63002/70001
File user/src/com/google/gwt/uibinder/elementparsers/GridParser.java
(right):

http://gwt-code-reviews.appspot.com/154810/diff/63002/70001#newcode86
user/src/com/google/gwt/uibinder/elementparsers/GridParser.java:86:
writer.getOracle().findType(Grid.class.getName()), 0, 0);
You should be right about this

http://gwt-code-reviews.appspot.com/154810/diff/63002/70001#newcode86
user/src/com/google/gwt/uibinder/elementparsers/GridParser.java:86:
writer.getOracle().findType(Grid.class.getName()), 0, 0);
On 2010/07/12 17:07:40, Ray Ryan wrote:

This line serves no purpose that I can see.


Done.

http://gwt-code-reviews.appspot.com/154810/diff/63002/70001#newcode130
user/src/com/google/gwt/uibinder/elementparsers/GridParser.java:130:
writer.die(Grid's lt;g:row tag in %s may only contain %s or %s
element.,
On 2010/07/12 17:07:40, Ray Ryan wrote:

No need for lt; here, and g: shouldn't be hard coded


Done.

http://gwt-code-reviews.appspot.com/154810/diff/63002/70001#newcode149
user/src/com/google/gwt/uibinder/elementparsers/GridParser.java:149:
throws UnableToCompleteException {
Done. Also made sure that cells have the same prefix as parent.

http://gwt-code-reviews.appspot.com/154810/diff/63002/70001#newcode152
user/src/com/google/gwt/uibinder/elementparsers/GridParser.java:152:
String tagName = child.getLocalName();
On 2010/07/12 17:07:40, Ray Ryan wrote:

Compare prefix too


Done.

http://gwt-code-reviews.appspot.com/154810/diff/63002/70001#newcode154
user/src/com/google/gwt/uibinder/elementparsers/GridParser.java:154:
writer.die(Invalid Grid child element:  + tagName);
On 2010/07/12 17:07:40, Ray Ryan wrote:

%1$s:Grid elements must contain only %1$s:%2$s children, found

%3$s:%4$s,

elem.getPrefix(), ROW_TAG, child.getPrefix(), tagName


Done.

http://gwt-code-reviews.appspot.com/154810/diff/63002/70003
File user/src/com/google/gwt/user/client/ui/Grid.java (right):

http://gwt-code-reviews.appspot.com/154810/diff/63002/70003#newcode35
user/src/com/google/gwt/user/client/ui/Grid.java:35: * Grid widget
consists of lt;g:row elements. Each lt;g:row element
On 2010/07/03 20:46:51, markovuksanovic wrote:

One small typo - can contain on or more - should be - can contain

one or

more


Done.

http://gwt-code-reviews.appspot.com/154810/show

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Fix some bugs in symbol dumping. (issue685801)

2010-07-12 Thread scottb

Reviewers: fabbott,

Description:
Fix some bugs in symbol dumping.

1) Fixes an NPE when dumping symbols with -validateOnly.
2) Fixes unstable sort order being returned from TypeOracle.getTypes().

Review by: fabb...@google.com

Please review this at http://gwt-code-reviews.appspot.com/685801/show

Affected files:
  M dev/core/src/com/google/gwt/core/ext/typeinfo/TypeOracle.java
  M dev/core/src/com/google/gwt/dev/Precompile.java


Index: dev/core/src/com/google/gwt/core/ext/typeinfo/TypeOracle.java
===
--- dev/core/src/com/google/gwt/core/ext/typeinfo/TypeOracle.java	(revision  
8376)
+++ dev/core/src/com/google/gwt/core/ext/typeinfo/TypeOracle.java	(working  
copy)

@@ -584,7 +584,14 @@
*/
   public JClassType[] getTypes() {
 CollectionJRealClassType values = allTypes.values();
-return values.toArray(new JClassType[values.size()]);
+JClassType[] result = values.toArray(new JClassType[values.size()]);
+Arrays.sort(result, new ComparatorJClassType() {
+  public int compare(JClassType o1, JClassType o2) {
+return o1.getQualifiedSourceName().compareTo(
+o2.getQualifiedSourceName());
+  }
+});
+return result;
   }

   public JWildcardType getWildcardType(JWildcardType.BoundType boundType,
@@ -617,7 +624,7 @@
* of the preceding.
* p
* Examples of types that can be parsed by this method.
-   * ul
+   *  
ulthird_party/java_src/gwt/svn/trunk/dev/core/src/com/google/gwt/core/ext/typeinfo/TypeOracle.java

* licodeint/code/li
* licodejava.lang.Object/code/li
* licodejava.lang.String[]/code/li
Index: dev/core/src/com/google/gwt/dev/Precompile.java
===
--- dev/core/src/com/google/gwt/dev/Precompile.java (revision 8376)
+++ dev/core/src/com/google/gwt/dev/Precompile.java (working copy)
@@ -472,11 +472,6 @@
   module.getActiveLinkerNames()), genDir);
   // Allow GC later.
   compilationState = null;
-  if (dumpSignatureFile != null) {
-// Dump early to avoid generated types.
-SignatureDumper.dumpSignatures(logger,
-compilationState.getTypeOracle(), dumpSignatureFile);
-  }
   // Never optimize on a validation run.
   jjsOptions.setOptimizePrecompile(false);
   getCompiler(module).precompile(logger, module, rpo, declEntryPts,


--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


  1   2   >