GWT DataGrid CheckBoxSelectionModel Issue

2020-04-07 Thread Rafael Morais do Amaral
Hello Guys!

I have an issue with GWT Grid using CheckBoxSelectionModel, my ListStore is 
loaded by default with all the elements (checkboxes) selected and they are 
locked because they didn't change by user. So when i click on a column 
header the sort event deselect all ListStore elements. I've tried a lot of 
examples like handler the sort event or selectionChangedEvent but i can't 
find out what i missing. 

Someone have an idea? 

P.S: My english is very bad, sorry about that!
Thanks!

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/65909706-4f71-46f4-af21-13044a9063c8%40googlegroups.com.


Re: CellTable - how to avoid unnecessary onRangeChange events?

2012-11-29 Thread Rafael Paulino
Magnus, Hi.

I didn't found an easy and simple solution for that.

In my application I wrote a DataManager which is an AsyncDataProvider and 
has some cache functionality. So when I get an onRangeChange event I just 
go to server when it's really needed, fetching only the missing range.

It do a lot of things, but only this class for me is getting 800 lines :( 
Of course, this cache functionality is smaller than this, but still complex.

I haven't tested yet the performance of my code.

I could share something with you, if you are interested in. 

Em quarta-feira, 28 de novembro de 2012 12h43min24s UTC-3, Magnus escreveu:

 Hi,

 I found that my CellTable sends unnecessary onRangeChange events in a 
 specific situation:

 - The data source changes, e. g. the user selects another chat room.
 - The new row count is less than the old one.

 Then, when calling the data provider's updateRowCount method the GWT code 
 recognizes that the current range exceeds the row count and corrects the 
 range somhow, triggering an onRangeChange event.
 Independend of this, the application also as an idea which records to show 
 and also sets the new range.

 In the end, the page is loaded twice. Can we avoid this?

 Magnus


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



CellBrowser improvement

2012-11-28 Thread Rafael Paulino
Hi, it's my first time writing to this community here, if I say something 
wrong or in the wrong place, just say it :) 

I've been working with GWT for half a year and it's really great. But this 
days I've found a behavior I think it's not the best one.

I've a CellBrowser which get all the information with AsyncDataProviders. 
So if you open a node, it gets new data through RequestFactory/RPC.

When I update one object I decided to delete the old one and add a new one. 
When that happens, at least this object and its childs has to be updated as 
well.

I'd like to automatically select again the leaf that was selected before 
I've updated the object (E.g. one root object).

Ok ... I've created a class to do this, using setChildOpen() and selecting 
the objects in the selectionModel.

But I have to wait the node to be open first and, then, I can have the new 
object and the select it and, if necessary, open it also. (recursively).

I've binded  an OpenHandler to the CellBrowser so I could know when that 
happened. 

What's the point: when I got an Open Event, it is opened, but its childs 
are not ready, are not fetched. So I can't do anything at this point.

My suggestion: the onOpen event should only be fired when all the data is 
ready (or at least the page that was requested).

If someone could tell me some tips to do what I want, I appreciate. I'm 
think about creating a Timer that checks if the data are ready, an then 
select the object and so on. It's not the most elegant solution, but could 
work.

Sorry about my poor english.

Rafael Paulino

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



Re: rpc error

2012-08-01 Thread Rafael Campaña
Hello,

finally I have found the error. The probleme was an old 
 requestfactory.jar. I have removed the jar an all work fine.

Thnak and Regards, Rafael.

El lunes, 30 de julio de 2012 12:27:06 UTC+2, Rafael Campaña escribió:

 Hello GWT Community,

 I have tested gwt 2.5 with my gwt 2.4 project and I get rpc errors on 
 every rpc call. A Hello world project work fine but I can't to upgrade my 
 gwt 2.4 project. I would like to prove the performance  improvements!!

 I have updated eclipse gwt plugings and I have  replaced the gwt-serv

 java.lang.NoSuchFieldError: CHARSET_UTF8
 at 
 com.google.gwt.user.server.rpc.impl.SerializabilityUtil.generateSerializationSignature(SerializabilityUtil.java:862)
 at 
 com.google.gwt.user.server.rpc.impl.SerializabilityUtil.getSerializationSignature(SerializabilityUtil.java:333)
 at 
 com.google.gwt.user.server.rpc.impl.SerializabilityUtil.encodeSerializedInstanceReference(SerializabilityUtil.java:217)
 at 
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.getObjectTypeSignature(ServerSerializationStreamWriter.java:651)
 at 
 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:123)
 at 
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWriter$8.write(ServerSerializationStreamWriter.java:153)
 at 
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:585)
 at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:605)
 at 
 com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess(RPC.java:471)
 at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:563)
 at 
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
 at 
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
 at 
 com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

 And here is the request/response headers:
 [ERROR] 500 - POST /portusgwt/rpc (127.0.0.1) 57 bytes
Request headers
   Host: 127.0.0.1:
   User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) 
 Gecko/20100101 Firefox/10.0.5 Iceweasel/10.0.5
   Accept: 
 text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
   Accept-Language: es-es,es;q=0.8,en-us;q=0.5,en;q=0.3
   Accept-Encoding: gzip, deflate
   Connection: keep-alive
   Cookie: 
 __utma=96992031.1351205333.1342769624.1343295684.1343630091.10; 
 __utmz=96992031.1342769624.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); 
 __utmb=96992031.2.10.1343630091; __utmc=96992031
   Referer: 
 http://127.0.0.1:/PortusGWT.html?gwt.codesvr=127.0.0.1:9997
   X-GWT-Permutation: HostedMode
   X-GWT-Module-Base: http://127.0.0.1:/portusgwt/
   Content-Type: text/x-gwt-rpc; charset=utf-8
   Content-Length: 190
   Pragma: no-cache
   Cache-Control: no-cache
Response headers
   Content-Type: text/plain

 ¿With this version is necesary to update development plugin? ¿May be an 
 error with Content-Type header? 


 Thank and regards, Rafael.



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



rpc error

2012-07-30 Thread Rafael Campaña
Hello GWT Community,

I have tested gwt 2.5 with my gwt 2.4 project and I get rpc errors on every 
rpc call. A Hello world project work fine but I can't to upgrade my gwt 2.4 
project. I would like to prove the performance  improvements!!

I have updated eclipse gwt plugings and I have  replaced the gwt-serv

java.lang.NoSuchFieldError: CHARSET_UTF8
at 
com.google.gwt.user.server.rpc.impl.SerializabilityUtil.generateSerializationSignature(SerializabilityUtil.java:862)
at 
com.google.gwt.user.server.rpc.impl.SerializabilityUtil.getSerializationSignature(SerializabilityUtil.java:333)
at 
com.google.gwt.user.server.rpc.impl.SerializabilityUtil.encodeSerializedInstanceReference(SerializabilityUtil.java:217)
at 
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.getObjectTypeSignature(ServerSerializationStreamWriter.java:651)
at 
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:123)
at 
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWriter$8.write(ServerSerializationStreamWriter.java:153)
at 
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:585)
at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:605)
at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess(RPC.java:471)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:563)
at 
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
at 
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
at 
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

And here is the request/response headers:
[ERROR] 500 - POST /portusgwt/rpc (127.0.0.1) 57 bytes
   Request headers
  Host: 127.0.0.1:
  User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20100101 
Firefox/10.0.5 Iceweasel/10.0.5
  Accept: 
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
  Accept-Language: es-es,es;q=0.8,en-us;q=0.5,en;q=0.3
  Accept-Encoding: gzip, deflate
  Connection: keep-alive
  Cookie: 
__utma=96992031.1351205333.1342769624.1343295684.1343630091.10; 
__utmz=96992031.1342769624.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); 
__utmb=96992031.2.10.1343630091; __utmc=96992031
  Referer: 
http://127.0.0.1:/PortusGWT.html?gwt.codesvr=127.0.0.1:9997
  X-GWT-Permutation: HostedMode
  X-GWT-Module-Base: http://127.0.0.1:/portusgwt/
  Content-Type: text/x-gwt-rpc; charset=utf-8
  Content-Length: 190
  Pragma: no-cache
  Cache-Control: no-cache
   Response headers
  Content-Type: text/plain

¿With this version is necesary to update development plugin? ¿May be an 
error with Content-Type header? 


Thank and regards, Rafael.

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



[gwt-contrib] Re: Re-submit: Iterating over all attributed when realizing PotentialElements. (issue1573804)

2011-10-18 Thread Rafael Castro
The element had the style field defined, which is neither a string
nor a number. So I added a TODO to handle it separately.

On Tue, Oct 18, 2011 at 3:00 PM,  rj...@google.com wrote:
 LGTM

 Looks good again. What was the fix?

 http://gwt-code-reviews.appspot.com/1573804/


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


[gwt-contrib] Re: ui:with to set property values (issue1524803)

2011-10-03 Thread Rafael Castro
No shouting from here :-)

As soon as we get the attributes thing out of the way, maybe we should sit
down and try to figure out some definite solution for this precedence thing?

On Mon, Oct 3, 2011 at 2:19 PM, rj...@google.com wrote:

 LGTM

 I agree, I don't think you're making things worse, just subject to the
 same problems that are already there. I'll submit this today or tomorrow
 presuming Rafa doesn't shout me down.

 Thanks for this!


 On 2011/10/03 04:46:22, justin_hickman wrote:

 Any updates to this issue?  From my investigations, the behavior with

 the

 ui:attributes element exhibits identical behavior to what is already

 in

 uibinder using just Widget references.




 http://gwt-code-reviews.**appspot.com/1524803/http://gwt-code-reviews.appspot.com/1524803/


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

[gwt-contrib] Re: ui:with to set property values (issue1524803)

2011-09-21 Thread Rafael Castro
Exactly, your diagnosis matches my expectation. The thing is we do the
precedence detection when first declaring the widget, making sure
that its at least (parentWidget.getPrecedence() + 1). And you're right
that we don't update it when we see a reference. I think that to make
your scheme bulletproof we'll need to implement that.

BTW, this wasn't a problem until now when a widget references a
ui:with element because we always output all ui:with elements
before any widget, so that precedence doesn't really matter. With your
patch, it will matter.

On Wed, Sep 21, 2011 at 1:25 AM,  jus...@jhickman.com wrote:
 From what I can tell, the order of the build_X calls are based upon the
 order of ui:with declarations in the XML and not alphabetical order.

 It also appears that since ui:with are always at the top level (right
 under ui:UiBinder root element), they always appear as precedence 1
 no matter how they are referenced.

 Ignoring ui:with elements for a bit, I have created nested widgets to
 see how they behave with the build precedence, and from my tests, the
 precedence appears to be directly linked to the level of nesting, even
 if I have widgets referencing other widgets (through field reference).

 For example, taking the following XML snippet:
  g:VerticalPanel ui:field=A
      g:SimplePanel ui:field=B
        g:SimplePanel ui:field=C /
      /g:SimplePanel
      g:LazyPanel ui:field=D
        m:FooBar refWidget={C} ui:field=E /
      /g:LazyPanel
  /g:VerticalPanel

 (Where FooBar extends Widget and has a setRefWidget(Widget) method).
 This is what I see in the generated output:

   public Widgets(final UiBinderParserUiWithTest owner) {
      this.owner = owner;
      build_C();  // more than one getter call detected. Type: DEFAULT,
 precedence: 3
    }


 Then, the precedence is set as follows:
 A = precedence 1
 B = precedence 2
 C = precedence 3
 D = precedence 2
 E = precedence 3

 This is the same output even when the LazyPanel is switched to
 SimplePanel or any other container.  Also seen here is widget E getting
 reference to widget C.

 I then added a ui:with element to the mix, without my patch, and see
 that the ui:with is still set to precedence 1, even though it is
 referenced from a deeply nested child widget:

  ui:with type=com.google.gwt.user.client.ui.SimplePanel field=W1
 /
  g:VerticalPanel ui:field=A
    g:SimplePanel ui:field=B
      g:SimplePanel ui:field=C
      /g:SimplePanel
    /g:SimplePanel
    g:SimplePanel ui:field=D
      m:FooBar refWidget={W1} ui:field=E /
    /g:SimplePanel
  /g:VerticalPanel

 This has a very similar result in generated code, except now the Widgets
 constructor does not contain any build_X() calls.
 W1 = precedence 1
 A = precedence 1
 B = precedence 2
 C = precedence 3
 D = precedence 2
 E = precedence 3


 http://gwt-code-reviews.appspot.com/1524803/


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


[gwt-contrib] Re: ui:with to set property values (issue1524803)

2011-09-12 Thread Rafael Castro
On Wed, Sep 7, 2011 at 9:15 AM,  jus...@jhickman.com wrote:
 There's a part of the generated code that calls all build_*() methods.
 Can you take a look and see in which order they are being called? If
 you change your test template (for instance, make test1 depend on
 test3 instead), does it break or does it change the order in the
 generated code accordingly?

 From the version of Test I have attached with the patch, it outputs
 this:

    public Widgets(final
 com.google.gwt.uibinder.test.client.UiBinderParserUiWithTest owner) {
      this.owner = owner;
      build_test1();  // more than one getter call detected. Type:
 IMPORTED, precedence: 1
      build_test2();  // no getter call detected but must bind to
 ui:field. Type: IMPORTED, precedence: 1
      build_test4();  // no getter call detected but must bind to
 ui:field. Type: IMPORTED, precedence: 1
      build_test5();  // no getter call detected but must bind to
 ui:field. Type: IMPORTED, precedence: 1
    }


 I'm not sure what you mean by having test1 depend on test3, since the
 class for test1 (TestBeanA) does not have a dependency to the class for
 test3 (TestBeanB).   If you're talking about bean order, I have changed
 the order of the ui:with elements such that test3 appears first:


Sorry about the delay to reply, I was flying back home.

See how in the comments it says precedence: 1 for all testX? That
means we're not detecting that test1 needs to be built before test3.
We're just generating the code in some (alphabetical?) order that
happens to work for your dependency tree. I'm pretty sure that if you
play around with the name of the fields, you can get this to break
(i.e., build_Y() is called before build_X(), but Y needs X).

We try to get around this for normal widgets using the buildPrecedence
field in FieldWriter. If you look for uses of setBuildPrecedence
you'll see that FieldManager makes sure that the precedence of a child
is always greater than its parent. This means that when you have

gwt:Panel ui:field=parent
  gwt:Label ui:field=child /
/gwt:Panel

child will have a higher buildPrecedence than parent, so in the
generated code build_Child() will be called before build_Parent().
That, in turn, guarantees that build_Parent() can safely refer to
get_Child(). Since in your case, one field isn't the child of
another (in the parsing tree sense), we don't detect this. We need to
figure out another way of figuring that out.

  ui:with type=comUiBinderParserUiWithTest.TestBeanB
 field=test3
    ui:attributes beanA={test1} /
  /ui:with

  ui:with type=com.UiBinderParserUiWithTest.TestBeanA
 field=test1 /

  ui:with type=com.UiBinderParserUiWithTest.TestBeanA
 field=test2 /

  ui:with type=com.UiBinderParserUiWithTest.TestBeanC
 field=test4
    ui:attributes beanA={test1} /
  /ui:with

  ui:with type=com.UiBinderParserUiWithTest.TestBeanC
 field=test5
    ui:attributes beanA={test1} beanB={test3} /
  /ui:with


 This changes the content in the Widgets constructor:
    public Widgets(final
 com.google.gwt.uibinder.test.client.UiBinderParserUiWithTest owner) {
      this.owner = owner;
      build_test1();  // more than one getter call detected. Type:
 IMPORTED, precedence: 1
      build_test2();  // no getter call detected but must bind to
 ui:field. Type: IMPORTED, precedence: 1
      build_test4();  // no getter call detected but must bind to
 ui:field. Type: IMPORTED, precedence: 1
    }




 I have also modified TestBeanA to have a TestBeanB property so that I
 may test cyclic dependencies, and it appears to continue to function
 with this generated code:

    public Widgets(final
 com.google.gwt.uibinder.test.client.UiBinderParserUiWithTest owner) {
      this.owner = owner;
      build_test1();  // more than one getter call detected. Type:
 IMPORTED, precedence: 1
      build_test2();  // no getter call detected but must bind to
 ui:field. Type: IMPORTED, precedence: 1
      build_test3();  // more than one getter call detected. Type:
 IMPORTED, precedence: 1
      build_test4();  // no getter call detected but must bind to
 ui:field. Type: IMPORTED, precedence: 1
    }

  ...

    /**
     * Getter for test1 called 3 times. Type: IMPORTED. Build
 precedence: 1.
     */
    private
 com.google.gwt.uibinder.test.client.UiBinderParserUiWithTest.TestBeanA
 test1;
    private
 com.google.gwt.uibinder.test.client.UiBinderParserUiWithTest.TestBeanA
 get_test1() {
      return test1;
    }
    private
 com.google.gwt.uibinder.test.client.UiBinderParserUiWithTest.TestBeanA
 build_test1() {
      // Creation section.
      test1 =
 (com.google.gwt.uibinder.test.client.UiBinderParserUiWithTest.TestBeanA)
 GWT.create(com.google.gwt.uibinder.test.client.UiBinderParserUiWithTest.TestBeanA.class);
      // Setup section.
      test1.setBeanB(get_test3());
      return test1;
    }

  ...

    /**
     * Getter for test3 called 2 times. Type: IMPORTED. Build
 precedence: 1.
     */
    private
 

[gwt-contrib] Re: ui:with to set property values (issue1524803)

2011-09-07 Thread Rafael Castro
+hermes

On Tue, Sep 6, 2011 at 8:35 PM,  jus...@jhickman.com wrote:
 I was able to test this and verified successful generation when setting
 the configuration property to true:
 set-configuration-property name=UiBinder.useLazyWidgetBuilders
 value=true/

 Since the implementation I'm presenting here uses the BeanParser, it
 generates code that uses the getter methods when accessing fields
 identified with ui:with elements.  Here is a sample of what the
 generated code looks like for the provided integration test.  (I removed
 extra line feeds to compactify a little).  In it, you can see the
 get_testX() methods are called rather than direct field access.


I see that, but you still have to be sure that build_test1() is called
before build_test3(), as the latter calls get_test1(). I don't think
that is guaranteed by the current UiBinder implementation of
dependencies. We tried to detect this by checking the parent field
when going through the XML, but I'm not sure we'd be able to detect
this case.

There's a part of the generated code that calls all build_*() methods.
Can you take a look and see in which order they are being called? If
you change your test template (for instance, make test1 depend on
test3 instead), does it break or does it change the order in the
generated code accordingly?

    /**
     * Getter for test1 called 3 times. Type: IMPORTED. Build
 precedence: 1.
     */
    private
 com.google.gwt.uibinder.test.client.UiBinderParserUiWithTest.TestBeanA
 test1;
    private
 com.google.gwt.uibinder.test.client.UiBinderParserUiWithTest.TestBeanA
 get_test1() {
      return test1;
    }
    private
 com.google.gwt.uibinder.test.client.UiBinderParserUiWithTest.TestBeanA
 build_test1() {
      // Creation section.
      test1 = owner.test1;
      // Setup section.
      return test1;
    }

    /**
     * Getter for test2 called 0 times. Type: IMPORTED. Build
 precedence: 1.
     */
    private
 com.google.gwt.uibinder.test.client.UiBinderParserUiWithTest.TestBeanA
 get_test2() {
      return build_test2();
    }
    private
 com.google.gwt.uibinder.test.client.UiBinderParserUiWithTest.TestBeanA
 build_test2() {
      // Creation section.
      final
 com.google.gwt.uibinder.test.client.UiBinderParserUiWithTest.TestBeanA
 test2 =
 (com.google.gwt.uibinder.test.client.UiBinderParserUiWithTest.TestBeanA)
 GWT.create(com.google.gwt.uibinder.test.client.UiBinderParserUiWithTest.TestBeanA.class);
      // Setup section.
      owner.test2 = test2;
      return test2;
    }

    /**
     * Getter for test3 called 1 times. Type: IMPORTED. Build
 precedence: 1.
     */
    private
 com.google.gwt.uibinder.test.client.UiBinderParserUiWithTest.TestBeanB
 get_test3() {
      return build_test3();
    }
    private
 com.google.gwt.uibinder.test.client.UiBinderParserUiWithTest.TestBeanB
 build_test3() {
      // Creation section.
      final
 com.google.gwt.uibinder.test.client.UiBinderParserUiWithTest.TestBeanB
 test3 =
 (com.google.gwt.uibinder.test.client.UiBinderParserUiWithTest.TestBeanB)
 GWT.create(com.google.gwt.uibinder.test.client.UiBinderParserUiWithTest.TestBeanB.class);
      // Setup section.
      test3.setBeanA(get_test1());
      owner.test3 = test3;
      return test3;
    }

    /**
     * Getter for test4 called 0 times. Type: IMPORTED. Build
 precedence: 1.
     */
    private
 com.google.gwt.uibinder.test.client.UiBinderParserUiWithTest.TestBeanC
 get_test4() {
      return build_test4();
    }
    private
 com.google.gwt.uibinder.test.client.UiBinderParserUiWithTest.TestBeanC
 build_test4() {
      // Creation section.
      final
 com.google.gwt.uibinder.test.client.UiBinderParserUiWithTest.TestBeanC
 test4 = new
 com.google.gwt.uibinder.test.client.UiBinderParserUiWithTest.TestBeanC(get_test1());
      // Setup section.
      owner.test4 = test4;
      return test4;
    }


 http://gwt-code-reviews.appspot.com/1524803/


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


[gwt-contrib] Re: ui:with to set property values (issue1524803)

2011-09-06 Thread Rafael Castro
So, let me try to clear up what I'm afraid about in more detail. The
lazy widgets code generation splits attribute creation and access by
creating 2 methods build_XYZ(), and get_XYZ(). All setters are called
in the build_XYZ() part, so you'd have something like this:

private void build_layoutData() {
  this.layoutData = GWT.create(LayoutDataType.class); // or
owner.layoutData if it's provided
  this.layoutData.setLeft(15);
  this.layoutData.setComplexAttribute(get_otherObject());
}

private void build_otherObject() {
  this.otherObject = GWT.create(OtherObjectType.class); // or
owner.layoutData if it's provided
  this.otherObject.setRight(15);
  this.otherObject.setColor(#FFF);
}

private OtherObjectType get_otherObject() {
  return this.otherObject;
}

private LayoutDataType get_layoutData() {
  return this.layoutData;
}

The only way this can work is if build_otherObject() is called before
build_layoutData(). I don't think there's anything in the code right
now that guarantees this. There is the notion of per-type precedence
and we do look at direct links. That means that we always create
resources before ui:fields, and that we look at some signals to see
which ui:fields should be created before the other, but I'm pretty
sure that logic won't get this new flow.

Makes sense?

On Tue, Sep 6, 2011 at 8:52 AM, Ray Ryan rj...@google.com wrote:


 On Monday, September 5, 2011, wrote:

 I wouldn't see that as a problem. From my understanding, the generated
 code always generates where all field declarations are at the top, then
 all the setters are called and lastly all event listeners are created
 (for UiHandler methods).

 Where I would see the problem, however, is with constructor parameters.
 In this case, order of ui:with declarations would matter.

 You also have to watch out for cyclic dependencies, but that's the same
 for any development.

 Fortunately, with the way this code was modified,  if the nested
 ui:attributes is missing, the behavior falls back to original
 behavior. More complex object creation should be done in the owner
 class.

 Could you remind us what the original behavior is? The failure mode needs to
 be better than bad code gen. Basically we need unit tests covering the cases
 you point out.

 On 2011/09/05 17:23:57, rdcastro wrote:

 What worried me at first was having one of the attributes being set to
 a value that's also defined via ui:with, because I think that then our
 precedence scheme may break. I'm afraid that if you have something
 like this:

 ui:with type=some.LayoutData field=layoutData
   ui:attributes left=15 complexAttribute={otherObject} 
 /ui:with

 ui:with type=some.LayoutData field=otherObject
   ui:attributes right=15 color=#FFF 
 /ui:with

 we are not guaranteed to build otherObject before you do
 layoutData.setComplexAttribute(otherObject);

 On Fri, Sep 2, 2011 at 3:56 PM,  mailto:rj...@google.com wrote:
  Thanks for the test.
 
  Rafa, I've lost track of what to worry about wrt the ordering.

 Should we

  be tossing a LazyPanel or something like that into his test to shake
  things out?
 
  http://gwt-code-reviews.appspot.com/1524803/
 



 http://gwt-code-reviews.appspot.com/1524803/


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


[gwt-contrib] Re: ui:with to set property values (issue1524803)

2011-09-05 Thread Rafael Castro
What worried me at first was having one of the attributes being set to
a value that's also defined via ui:with, because I think that then our
precedence scheme may break. I'm afraid that if you have something
like this:

ui:with type=some.LayoutData field=layoutData
  ui:attributes left=15 complexAttribute={otherObject} 
/ui:with

ui:with type=some.LayoutData field=otherObject
  ui:attributes right=15 color=#FFF 
/ui:with

we are not guaranteed to build otherObject before you do
layoutData.setComplexAttribute(otherObject);

On Fri, Sep 2, 2011 at 3:56 PM,  rj...@google.com wrote:
 Thanks for the test.

 Rafa, I've lost track of what to worry about wrt the ordering. Should we
 be tossing a LazyPanel or something like that into his test to shake
 things out?

 http://gwt-code-reviews.appspot.com/1524803/


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


Re: History.newItem() not working in IE

2011-08-23 Thread Cerávolo, Rafael V.B.

Just after posting this message I found the solution!

It seems that IE cant find the iframe if it is not the first element of 
the page.


The problem was the script file (LfwMapKeys.js) being included in the 
HEAD section of the html. I moved it to the BODY section, just after the 
iframe declaration and now the history in IE is working fine.


On 22/08/2011 20:49, Cerávolo wrote:

Hi.

When I call History.newItem() in my application, the URL on the
address bar doesn't get updated with the new history token, and
neither the history is created on the browser (if I click back, it get
out of my application).

This is only happenning in Internet Explorer (tested with IE 8). In FF
it works properly.

Debugging, I found that the calling of
HistoryImplIE6.findHistoryFrame() is returning NULL, so the History
control is not initialized by GWT.

Am I missing something?

Below is the host hmlt file:
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
meta http-equiv=content-type content=text/html; charset=UTF-8

html
head
script type=text/javascript language=javascript
src=lfwshowcase/LfwMapKeys.js/script
titleLFW Showcase/title
link rel=stylesheet href=LfwShowcase.css
/head

body
iframe id=__gwt_historyFrame 
style=width:0;height:0;border:0/
iframe
script  var isomorphicDir = lfwshowcase/sc/;
/script
script type=text/javascript language=javascript
src=lfwshowcase/lfwshowcase.nocache.js/script
/body
/html



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



[gwt-contrib] Re: Provides an integration test for IsRenderable (issue1527804)

2011-08-17 Thread Rafael Castro
Awesome, I like #1 too. I was driving to work this morning and thinking
about it: #2 actually encourages bad behavior, because it'll seem it's OK to
fiddle with the elements between calling bind and attaching, and it's really
not. We _could_ make an effort to make it work, but it's much better to make
the flow clearer this way: if you're using lazy widgets, your elements have
to be lazy too.

On Wed, Aug 17, 2011 at 9:41 AM, Ray Ryan rj...@google.com wrote:

 I like #1 too. I think we should try to narrow the visibility of
 PotentialElement as much as we can.

 So #1 means two things , right?

 • Widgets are seated in their @UiFields immediately
 • In an IsRenderable owner, Element and subclasses are only available via
 LazyDomElement, and @UiField Element is a compile time error

 I've tweaked the test a bit (will update soon), and I'm happy to report
 that composites around non-IsRenderables work as expected, with element
 fields filled immediately. Given that I don't think we need to delay the
 switch to using lazy widget builder by default.


 On Wed Aug 17 06:14:52 GMT-700 2011, Hermes Freitas wrote:

 WidgetInterpreter and WidgetPlaceholderInterpreter shouldn't output
 LazyDomElement. Rafa, do you remember why? I don't think this aggregates any
 performance gain for us,  am I missing something?

 And I vote for #1

 On Tue, Aug 16, 2011 at 10:10 PM, Rafael Castro 
 rdcas...@google.comhttp://www.google.com/url?sa=Dq=mailto%3Ardcastro%40google.com
  wrote:

 +hermes

 Good point, this is really tricky. The problem here is that we don't
 actually have the DOM element until the widget is attached. I see 2 options:
 1-) We force the UiField to be a LazyDomElement, so this is explicit.
 2-) We use PotentialElement with a resolver that throws an Exception
 (i.e., it's only really resolved when it's attached).

 what do you think?

 ps.: really nice tests, thanks for putting them together!

 On Tue, Aug 16, 2011 at 5:13 PM, 
 rj...@google.comhttp://www.google.com/url?sa=Dq=mailto%3Arjrjr%40google.com
  wrote:

 On 2011/08/17 00:12:24, rjrjr wrote:

 Ready for review.

 Rafa, this turned up one issue that concerns me: most @UiField fields
 are not filled in until the widget is attached to the dom, but we're not
 consistent about it. See the big comment in testDeep.


 http://gwt-code-reviews.**appspot.com/1527804/http://www.google.com/url?sa=Dq=http%3A%2F%2Fgwt-code-reviews.appspot.com%2F1527804%2F





 --
 --Hermes Freitas



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

[gwt-contrib] Re: Provides an integration test for IsRenderable (issue1527804)

2011-08-16 Thread Rafael Castro
+hermes

Good point, this is really tricky. The problem here is that we don't
actually have the DOM element until the widget is attached. I see 2 options:
1-) We force the UiField to be a LazyDomElement, so this is explicit.
2-) We use PotentialElement with a resolver that throws an Exception (i.e.,
it's only really resolved when it's attached).

what do you think?

ps.: really nice tests, thanks for putting them together!

On Tue, Aug 16, 2011 at 5:13 PM, rj...@google.com wrote:

 On 2011/08/17 00:12:24, rjrjr wrote:

 Ready for review.

 Rafa, this turned up one issue that concerns me: most @UiField fields
 are not filled in until the widget is attached to the dom, but we're not
 consistent about it. See the big comment in testDeep.


 http://gwt-code-reviews.**appspot.com/1527804/http://gwt-code-reviews.appspot.com/1527804/


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

[RPC problem] Caused by: java.lang.OutOfMemoryError: Java heap space

2011-08-03 Thread Rafael
Hello everyone!

I have a very disturbing problem (disturbing to me at least), the
exception mentioned in the title of this post occurs on the server
side but after the RPC executes.

I'll explain briefly, i have a DAO interface and a DAO implementation,
and besides, i have the two interfaces and class necessary to
implement a GWT RPC, i use the latter to define a way to call the
methods of the DAO from the client via a asynchronous call.

When i try to invoke the GWT RPC, the method in the DAO executes
without incident but before the result can be returned to the client
the exception takes place.

I am starting tomcat with the -Xms1024M flag in order to increase the
heap space but i guess there is some very unefficient memory handling
somewhere in there (in my app, not in tomcat nor in GWT) but i need to
know where before i can fix it... has this happened to anyone? my
guess is that the memmory suffices for handling the RPC but not for
serializing...

anyway, i decided to seek your advice... thanks in advance!

Rafael

Here is the root cause if i am not mistaken:

Caused by: java.lang.OutOfMemoryError: Java heap space
at java.util.IdentityHashMap.resize(IdentityHashMap.java:452)
at java.util.IdentityHashMap.put(IdentityHashMap.java:428)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.saveIndexForObject(AbstractSerializationStreamWriter.java:
202)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
123)
at
com.google.gwt.user.client.rpc.core.java.util.Map_CustomFieldSerializerBase.serialize(Map_CustomFieldSerializerBase.java:
49)
at
com.google.gwt.user.client.rpc.core.java.util.HashMap_CustomFieldSerializer.serialize(HashMap_CustomFieldSerializer.java:
36)
at sun.reflect.GeneratedMethodAccessor541.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeWithCustomSerializer(ServerSerializationStreamWriter.java:
742)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:
723)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
612)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
129)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
$ValueWriter$8.write(ServerSerializationStreamWriter.java:152)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:
534)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeClass(ServerSerializationStreamWriter.java:
700)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:
730)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeClass(ServerSerializationStreamWriter.java:
712)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:
730)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeClass(ServerSerializationStreamWriter.java:
712)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:
730)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
612)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
129)
at
com.google.gwt.user.client.rpc.core.java.util.Collection_CustomFieldSerializerBase.serialize(Collection_CustomFieldSerializerBase.java:
43)
at
com.google.gwt.user.client.rpc.core.java.util.HashSet_CustomFieldSerializer.serialize(HashSet_CustomFieldSerializer.java:
36)
at sun.reflect.GeneratedMethodAccessor544.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeWithCustomSerializer(ServerSerializationStreamWriter.java:
742)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:
723)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
612

Re: Error Polymorphic RequestContext GWT 2.4 RC

2011-07-28 Thread Rafael Dipold
Thanks man! 
I thought that I could generalize in such a way that didn't need to create a 
RequestContext for each entityProxy.
Force of habit that I always have to try generalize it up.

Follows my code up and working properly now:

public class Main implements EntryPoint {
final private EventBus eventBus = new SimpleEventBus();
private BaseEntityRF rf = GWT.create(BaseEntityRF.class);

@Override
public void onModuleLoad() {
rf.initialize(eventBus);

CountryRequest reqCountry = rf.countryRequest();
CountryProxy country  = reqCountry.create(CountryProxy.class);
country.setCode(FR);
country.setName(France);
}
}

@ProxyFor(value = Country.class, locator = BaseEntityLocator.class)
public interface CountryProxy extends BaseEntityProxy {
String getCode();
String getName();

void setCode(String code);
void setName(String name);
}

@Service(value = DAOJPA10.class, locator = DaoServiceLocator.class)
public interface BaseEntityRequestT extends BaseProxy extends 
RequestContext {
RequestVoid insert(T instance);
RequestT update(T instance);
RequestVoid delete(T instance);
}

@Service(value = DAOJPA10.class, locator = DaoServiceLocator.class)
public interface CountryRequest extends BaseEntityRequestCountryProxy {}

public interface BaseEntityRF extends RequestFactory {
CountryRequest countryRequest();
}

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



Re: N-tier with RequestFactory is possible?

2011-07-27 Thread Rafael Dipold
Hi David,

Thanks for answer, the RequestContext polymorphic on 2.4 RC works fine now!

And about my first question you could tell me if I did the best choice?

Kind Regards,

Rafael Dipold


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



Error Polymorphic RequestContext GWT 2.4 RC

2011-07-27 Thread Rafael Dipold
Maybe I spoke too soon about 2.4 RC. I get the error:

   Scanning for additional dependencies: 
file:/C:/JAVA/workspace/Test/src/com/test/client/Main.java
  Computing all possible rebind results for 
'com.test.shared.request.BaseEntityRF'
 Rebinding com.test.shared.request.BaseEntityRF
Invoking generator 
com.google.web.bindery.requestfactory.gwt.rebind.RequestFactoryGenerator
   [ERROR] Invalid Request parameterization T extends 
com.google.web.bindery.requestfactory.shared.BaseProxy
   [ERROR] Unable to create RequestFactoryModel model due to 
previous errors
   [ERROR] Errors in 
'file:/C:/JAVA/workspace/Test/src/com/test/client/Main.java'
  [ERROR] Line 12:  Failed to resolve 
'com.test.shared.request.BaseEntityRF' via deferred binding

Everything works fine if I don't use generics in RequestContext class. What 
I do wrong?

My classes (Proof of Concept Project):

public class Main implements EntryPoint {
final private EventBus eventBus = new SimpleEventBus();
private BaseEntityRF rf = GWT.create(BaseEntityRF.class);

@Override
public void onModuleLoad() {
rf.initialize(eventBus);

BaseEntityRequestBaseEntityProxy reqBaseEntity = rf.baseRequest();
BaseEntityProxy baseEntity = 
reqBaseEntity.create(BaseEntityProxy.class);
}
}

@ProxyFor(value = BaseEntity.class, locator = BaseEntityLocator.class)
public interface BaseEntityProxy extends EntityProxy {
EntityProxyIdBaseEntityProxy stableId();
Integer getVersion();
}

@Service(value = DAOJPA10.class, locator = DaoServiceLocator.class)
public interface BaseEntityRequestT extends BaseProxy extends 
RequestContext {
RequestVoid insert(T instance);
RequestT update(T instance);
RequestVoid delete(T instance);
}

public interface BaseEntityRF extends RequestFactory {
T extends BaseProxy BaseEntityRequestT baseRequest();
}

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



N-tier with RequestFactory is possible?

2011-07-26 Thread Rafael Dipold
Hi guys,

The RequestFactory could be used for comunication between logic tier and 
presentation tier in desktop like JavaFX, to build data-oriented (CRUD) 
software where I use GAE to data and logic tier?

It's the best choice? 

Other question: The GWT 2.4 beta avaliable for download already support 
polymorphism in RequestContext? Because a get error when add generics type 
in class declaration!

Kind Regards, 

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



[gwt-contrib] Re: Implements UiBinder rendering for Cells. (issue1466809)

2011-07-01 Thread Rafael Castro
Thanks for sharing, I'll read it tomorrow and try and come up with
more interesting suggestions :-)

On Fri, Jul 1, 2011 at 6:14 PM,  rchan...@google.com wrote:
 On 2011/07/01 20:59:37, rdcastro wrote:

 I had a few nits below but I felt a bit out of context. Is there an

 overview

 somewhere of what you guys are trying to accomplish? What should

 rendering for

 Cells look like?

 Yes, we have a design doc... which I forgot to share. Here is the link,
 comments welcome:

 https://docs.google.com/a/google.com/document/pub?id=1a-_8IdBrBmWCnhV6rnQVmzXB_bXQ9JQ4ya-k1_s1_sA



 http://gwt-code-reviews.appspot.com/1466809/


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


[gwt-contrib] Re: Adds setTagName to PotentialElement, so that PotentialElement instances can be passed to the as(... (issue1451810)

2011-06-07 Thread Rafael Castro
Makes sense, will update the code.

On Tue, Jun 7, 2011 at 12:42 PM,  rj...@google.com wrote:
 On 2011/06/07 15:08:26, rdcastro wrote:

 Should you put this on an overload of build instead, and make the single
 arg version default to span or div?

 http://gwt-code-reviews.appspot.com/1451810/


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


[gwt-contrib] Re: Introduce PotentialElement to help with the implementation of IsRenderable widgets. (issue1450810)

2011-06-02 Thread Rafael Castro
Now it went through :-)

On Thu, Jun 2, 2011 at 11:59 AM,  jlaba...@google.com wrote:
 On 2011/06/02 14:38:55, rdcastro wrote:

 Thanks, John.


 http://gwt-code-reviews.appspot.com/1450810/diff/6/user/src/com/google/gwt/user/client/DOM.java

 File user/src/com/google/gwt/user/client/DOM.java (right):


 http://gwt-code-reviews.appspot.com/1450810/diff/6/user/src/com/google/gwt/user/client/DOM.java#newcode64

 user/src/com/google/gwt/user/client/DOM.java:64:
 parent.appendChild(PotentialElement.as(child).finishBuild());
 On 2011/06/02 14:04:48, jlabanca wrote:
  Add a comment that if the Element is not a PotentialElement,

 finishBuild

 returns
  the Element itself.

 Done.


 http://gwt-code-reviews.appspot.com/1450810/diff/6/user/src/com/google/gwt/user/client/ui/RenderablePanel.java

 File user/src/com/google/gwt/user/client/ui/RenderablePanel.java

 (right):


 http://gwt-code-reviews.appspot.com/1450810/diff/6/user/src/com/google/gwt/user/client/ui/RenderablePanel.java#newcode200

 user/src/com/google/gwt/user/client/ui/RenderablePanel.java:200: +

 render

 itself (e.g. after adding it to a panel));
 On 2011/06/02 14:04:48, jlabanca wrote:
  add a space before render

 Done.

 I don't think Patch Set 3 contains your most recent changes.

 http://gwt-code-reviews.appspot.com/1450810/


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


[gwt-contrib] Re: Introduce PotentialElement to help with the implementation of IsRenderable widgets. (issue1450810)

2011-06-02 Thread Rafael Castro
\o/

On Thu, Jun 2, 2011 at 8:37 PM,  rj...@google.com wrote:
 LGTM

 Ship it!

 http://gwt-code-reviews.appspot.com/1450810/


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


[gwt-contrib] Re: Change the wrapElement API to receive the id and a parent element. I also ported some of the boo... (issue1446811)

2011-05-25 Thread Rafael Castro
Wanted to ask you guys for specific feedback on the fact that I am
changing the phase right before calling the wrapCallback. As I stated
on the comment, I'm doing that because the UiBinder-generated code
calls getElement(), and it must know it doesn't need to trigger the
slow process. I see 2 other options:
  - change the wrapCallback to receive an element;
  - change the check on getElement to use something other than the phase;
Please let me know if you think either of these is better (that is,
assuming you're happy with the Phase thing at all).

  cheers,
rafa

On Wed, May 25, 2011 at 6:53 PM,  rdcas...@google.com wrote:
 Reviewers: rjrjr, juliog,

 Description:
 Change the wrapElement API to receive the id and a parent element. I
 also ported some of the bookeeping we were doing in our internal Panel
 to RenderablePanel, please let me know what you think.


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

 Affected files:
  M
 user/src/com/google/gwt/uibinder/elementparsers/IsRenderableInterpreter.java
  M user/src/com/google/gwt/user/client/ui/IsRenderable.java
  M user/src/com/google/gwt/user/client/ui/RenderableComposite.java
  M user/src/com/google/gwt/user/client/ui/RenderablePanel.java


 Index:
 user/src/com/google/gwt/uibinder/elementparsers/IsRenderableInterpreter.java
 ===
 ---
 user/src/com/google/gwt/uibinder/elementparsers/IsRenderableInterpreter.java
        (revision 10224)
 +++
 user/src/com/google/gwt/uibinder/elementparsers/IsRenderableInterpreter.java
        (working copy)
 @@ -29,7 +29,6 @@
  class IsRenderableInterpreter implements XMLElement.InterpreterString {

   private final String fieldName;
 -
   private final UiBinderWriter uiWriter;

   public IsRenderableInterpreter(String fieldName, UiBinderWriter writer) {
 @@ -50,15 +49,11 @@

     FieldWriter childFieldWriter = uiWriter.parseElementToFieldWriter(elem);

 -    String elementPointer = idHolder + Element;
     fieldWriter.addAttachStatement(
 -        com.google.gwt.user.client.Element %s =  +
 -
  com.google.gwt.dom.client.Document.get().getElementById(%s).cast();,
 -        elementPointer, fieldManager.convertFieldToGetter(idHolder));
 -    fieldWriter.addAttachStatement(
 -        %s.wrapElement(%s);,
 +        %s.wrapElement(%s, %s.getElement());,
         fieldManager.convertFieldToGetter(childFieldWriter.getName()),
 -        elementPointer);
 +        fieldManager.convertFieldToGetter(idHolder),
 +        fieldManager.convertFieldToGetter(fieldName));

     // Some operations are more efficient when the Widget isn't attached to
     // the document. Perform them here.
 Index: user/src/com/google/gwt/user/client/ui/IsRenderable.java
 ===
 --- user/src/com/google/gwt/user/client/ui/IsRenderable.java    (revision
 10224)
 +++ user/src/com/google/gwt/user/client/ui/IsRenderable.java    (working
 copy)
 @@ -29,11 +29,10 @@
  public interface IsRenderable extends SafeHtmlRendererString {

   /**
 -   * Replace the previous contents of the receiver with the given element,
 -   * presumed to have been created via a previous call to {@link #render}.
 -   * Assumes the element is attached to the document.
 +   * Tells the widget to find its element, given an id and a parent element
 in
 +   * the DOM tree. The id is assumed to be the same passed in at render
 time.
    */
 -  void wrapElement(Element element);
 +  void wrapElement(String id, Element parentElement);

   /**
    * Perform any initialization needed when the widget is not attached to
 Index: user/src/com/google/gwt/user/client/ui/RenderableComposite.java
 ===
 --- user/src/com/google/gwt/user/client/ui/RenderableComposite.java
 (revision 10224)
 +++ user/src/com/google/gwt/user/client/ui/RenderableComposite.java
 (working copy)
 @@ -16,6 +16,7 @@
  package com.google.gwt.user.client.ui;

  import com.google.gwt.core.client.GWT;
 +import com.google.gwt.dom.client.Document;
  import com.google.gwt.dom.client.Element;
  import com.google.gwt.event.logical.shared.AttachEvent;
  import com.google.gwt.safehtml.client.SafeHtmlTemplates;
 @@ -117,12 +118,12 @@
   }

   @Override
 -  public void wrapElement(Element element) {
 +  public void wrapElement(String id, Element parentElement) {
     if (renderable != null) {
       assert (initFinished == false);
 -      renderable.wrapElement(element);
 -    } else {
 -      this.elementToWrap = element;
 +      renderable.wrapElement(id, parentElement);
 +    } else {
 +      this.elementToWrap = Document.get().getElementById(id).cast();
     }
   }

 Index: user/src/com/google/gwt/user/client/ui/RenderablePanel.java
 ===
 --- user/src/com/google/gwt/user/client/ui/RenderablePanel.java (revision
 10224)
 +++ 

[gwt-contrib] Re: Rollback Issue 1442804. Causes build breakage. (issue1447808)

2011-05-24 Thread Rafael Castro
LGTM

On May 24, 2011 12:46 PM, rchan...@google.com wrote:
 Reviewers: rjrjr, rdcastro,

 Description:
 Rollback Issue 1442804. Causes build breakage.


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

 Affected files:
 M user/src/com/google/gwt/uibinder/UiBinder.gwt.xml
 M

user/src/com/google/gwt/uibinder/elementparsers/AttachableHTMLPanelParser.java
 M user/src/com/google/gwt/uibinder/elementparsers/CustomButtonParser.java
 M user/src/com/google/gwt/uibinder/elementparsers/DialogBoxParser.java
 M user/src/com/google/gwt/uibinder/elementparsers/DomElementParser.java
 M user/src/com/google/gwt/uibinder/elementparsers/GridParser.java
 M user/src/com/google/gwt/uibinder/elementparsers/HTMLPanelParser.java
 M user/src/com/google/gwt/uibinder/elementparsers/HasHTMLParser.java
 M

user/src/com/google/gwt/uibinder/elementparsers/StackLayoutPanelParser.java
 M
 user/src/com/google/gwt/uibinder/elementparsers/TabLayoutPanelParser.java
 M user/src/com/google/gwt/uibinder/elementparsers/TabPanelParser.java
 M user/src/com/google/gwt/uibinder/rebind/AbstractFieldWriter.java
 M user/src/com/google/gwt/uibinder/rebind/FieldWriter.java
 M user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java
 M user/src/com/google/gwt/uibinder/rebind/model/HtmlTemplate.java
 M
 user/test/com/google/gwt/uibinder/elementparsers/DialogBoxParserTest.java
 M user/test/com/google/gwt/uibinder/elementparsers/GridParserTest.java
 M user/test/com/google/gwt/uibinder/elementparsers/MockUiBinderWriter.java
 M

user/test/com/google/gwt/uibinder/elementparsers/StackLayoutPanelParserTest.java
 M

user/test/com/google/gwt/uibinder/elementparsers/TabLayoutPanelParserTest.java
 M user/test/com/google/gwt/uibinder/elementparsers/TabPanelParserTest.java
 M user/test/com/google/gwt/uibinder/test/client/Constants.java
 D user/test/com/google/gwt/uibinder/test/client/SafeHtmlRendererUi.css
 D user/test/com/google/gwt/uibinder/test/client/SafeHtmlRendererUi.java
 D user/test/com/google/gwt/uibinder/test/client/SafeHtmlRendererUi.ui.xml
 M user/test/com/google/gwt/uibinder/test/client/UiBinderTest.java
 M user/test/com/google/gwt/uibinder/test/client/UiBinderTestApp.java



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

Re: google map TileLayerOverlay

2011-05-09 Thread Rafael Campaña
Thank you Eric.

I plot several TileLayerOverlay in secuence and look like an animation
over the map.

At init I preload all tiles in the map but I put them
setVisible(false).

Something like this:

TileLayerOverlay tlo = new TileLayerOverlay(tw);
mapWidget.addOverlay(tlo);
tlo.setVisible(false);

So the navigator brings all necesary images. This is like a buffer.
But how I don't know when all tiles are really loaded by the navigator
I can't know when really start the animation properlly. It can be
posible if I could access to the onLoad event of each tile loaded by
the api, or maybe if I could acces to the complete property of the img
objects. I'm trying to use this property but searching all img
objects.


On 6 mayo, 15:14, Eric Ayers zun...@google.com wrote:
 The closest thing I could find in the JavaScript API is this:

 http://code.google.com/apis/maps/documentation/javascript/v2/referenc...

 The  GWT bindings don't include that event at the moment, but I don't
 think that's what you're looking for anyway (it sounds like you want
 to know when the overlays are all visible.)









 On Fri, May 6, 2011 at 12:28 AM, Rafael Campaña racam...@gmail.com wrote:
  Hello,

  I'm currently developing a gwt application within a map (using gwt-
  maps).  My application show several images over the map in a secuence.
  But I want to know when a image is really loaded.

  To load images on the map I have used the
  com.google.gwt.maps.client.overlay.TileLayerOverlay class. I have
  implemented my tile class extending from
  com.google.gwt.maps.client.TileLayer class. I also have an array of
  TileLayerOverlay and I show or hide them to show the secuence.

  When I call setVisible(true)  method of a concrete TileLayerOverlay I
  would know if is posible to know when all images are loaded in the
  currently map?

  Greetings, Rafael.

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



TilesLayer best image type?

2011-05-09 Thread Rafael Campaña
Hello,

I would to know what image type is best for use as tile layers. I need
transparency suport. I am actually using png (rgba 8bit depth). But I
need a light weight image like jpeg or reduce the weight of the png.

Greetings and thank you, Rafael.

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



google map TileLayerOverlay

2011-05-06 Thread Rafael Campaña
Hello,

I'm currently developing a gwt application within a map (using gwt-
maps).  My application show several images over the map in a secuence.
But I want to know when a image is really loaded.

To load images on the map I have used the
com.google.gwt.maps.client.overlay.TileLayerOverlay class. I have
implemented my tile class extending from
com.google.gwt.maps.client.TileLayer class. I also have an array of
TileLayerOverlay and I show or hide them to show the secuence.

When I call setVisible(true)  method of a concrete TileLayerOverlay I
would know if is posible to know when all images are loaded in the
currently map?

Greetings, Rafael.

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



[gwt-contrib] Re: Fix error in usage of newly-creted helper method in AttachableHTMLPanel, correct double-calling ... (issue1427812)

2011-05-04 Thread Rafael Castro
Liked it. With the stuff I added to our subclass of AttachableHTMLPanel,
this already works pretty well. I have to review some other tricky cases
(like if you add a non-attachable widget to an Attachable panel before
finishing the initialization), but we're pretty close. The other cases that
could trigger this is calling some UIObject method that we haven't yet
@Override (like we did for setStyleName). Those call getElement() and hurt
us.

On Wed, May 4, 2011 at 2:15 PM, rj...@google.com wrote:

 How's that?

 Is the bit I wrote about after adding it to a panel accurate? Seems
 like we're trying to get to a world where the add would be fine, and the
 wrap call  wouldn't happen until the parent is wrapped — are we there
 already?



 http://gwt-code-reviews.appspot.com/1427812/diff/6003/user/src/com/google/gwt/user/client/ui/AttachableHTMLPanel.java

 File user/src/com/google/gwt/user/client/ui/AttachableHTMLPanel.java
 (right):


 http://gwt-code-reviews.appspot.com/1427812/diff/6003/user/src/com/google/gwt/user/client/ui/AttachableHTMLPanel.java#newcode211
 user/src/com/google/gwt/user/client/ui/AttachableHTMLPanel.java:211:
 throw new IllegalStateException(
 wrapElement() cannot be called twice, or after a call to getElement()
 has forced the widget to render itself (e.g. after adding it to a panel)


 http://gwt-code-reviews.appspot.com/1427812/


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

[gwt-contrib] Re: Fix error in usage of newly-creted helper method in AttachableHTMLPanel, correct double-calling ... (issue1427812)

2011-05-04 Thread Rafael Castro
Done. I didn't know how verbose I should be on the error message. Please
advise :-)

On Wed, May 4, 2011 at 2:04 PM, Ray Ryan rj...@google.com wrote:

 I'd be inclined to start with a) and see what happens.


 On Wed, May 4, 2011 at 10:02 AM, rdcas...@google.com wrote:



 http://gwt-code-reviews.appspot.com/1427812/diff/1/user/src/com/google/gwt/user/client/ui/AttachableHTMLPanel.java
 File user/src/com/google/gwt/user/client/ui/AttachableHTMLPanel.java
 (right):


 http://gwt-code-reviews.appspot.com/1427812/diff/1/user/src/com/google/gwt/user/client/ui/AttachableHTMLPanel.java#newcode205
 user/src/com/google/gwt/user/client/ui/AttachableHTMLPanel.java:205: if
 (isFullyInitialized()) {
 On 2011/05/04 16:47:17, rjrjr wrote:

 This seems pretty unexpected. I would have thought it would either be

 an error

 (RuntimeException), or else that I would do the opposite of this:

 replace my

 existing element with the new one.


 I'd be totally fine with a RuntimeError, it'll probably be m ore
 manageable in the long-term. I was trying to support this because even
 though it's less efficient, we can still make it work. The scenario here
 is:

 1-) Build Attachable tree. This includes calling all the render() stuff
 and so on. Let's assume that this particular AttachableHTMLPanel is in
 the middle of the tree.

 2-) For some reason do something to this particular panel (that's in the
 middle of the tree) that calls its getElement() [let's say attach it to
 the document]. This triggers the process of building the widget tree as
 if this panel was the root (i.e., hidden div, set innerHTML, getting
 elements for all children and initializing them). At this point
 everything works

 3-) Now you go and attach the real root of the tree, an ancestor of
 this panel. We can do one of 3 things:
  (a) throw an error. You probably didn't mean to do this as it's less
 efficient
  (b) replace the element that our parent assigned us (along with its
 subtree) with the subtree we already built in step 2
  (c) re-do everything in step 2, ignoring the fact that we already
 initialized all children widget

 I think (a) would be ideal, specially for debugging purposes. Honestly I
 implemented (b) because I was a little afraid and wanted to be as
 backwards-compatible as possible.  I don't think (c) would work
 out-of-the-box, as we'd have to support initializing Widgets twice
 (i.e., re-setting the element, etc.)

 Makes sense?


 http://gwt-code-reviews.appspot.com/1427812/




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

Re: [gwt-contrib] Re: Fix error in usage of newly-creted helper method in AttachableHTMLPanel, correct double-calling ... (issue1427812)

2011-05-04 Thread Rafael Castro
Exactly, that's my hope too :-)
Hopefully the numbers will be enough to convince us the work is worth doing.

On Wed, May 4, 2011 at 2:57 PM, Ray Ryan rj...@google.com wrote:

 Once we've validated the work, seems like a lot of the Attachable support
 should be baked into UiObject, Widget and Panel in some kind of opt-in
 manner.

 On Wed, May 4, 2011 at 10:20 AM, Rafael Castro rdcas...@google.comwrote:

 Liked it. With the stuff I added to our subclass of AttachableHTMLPanel,
 this already works pretty well. I have to review some other tricky cases
 (like if you add a non-attachable widget to an Attachable panel before
 finishing the initialization), but we're pretty close. The other cases that
 could trigger this is calling some UIObject method that we haven't yet
 @Override (like we did for setStyleName). Those call getElement() and hurt
 us.


 On Wed, May 4, 2011 at 2:15 PM, rj...@google.com wrote:

 How's that?

 Is the bit I wrote about after adding it to a panel accurate? Seems
 like we're trying to get to a world where the add would be fine, and the
 wrap call  wouldn't happen until the parent is wrapped — are we there
 already?



 http://gwt-code-reviews.appspot.com/1427812/diff/6003/user/src/com/google/gwt/user/client/ui/AttachableHTMLPanel.java

 File user/src/com/google/gwt/user/client/ui/AttachableHTMLPanel.java
 (right):


 http://gwt-code-reviews.appspot.com/1427812/diff/6003/user/src/com/google/gwt/user/client/ui/AttachableHTMLPanel.java#newcode211
 user/src/com/google/gwt/user/client/ui/AttachableHTMLPanel.java:211:
 throw new IllegalStateException(
 wrapElement() cannot be called twice, or after a call to getElement()
 has forced the widget to render itself (e.g. after adding it to a panel)


 http://gwt-code-reviews.appspot.com/1427812/


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




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

[gwt-contrib] Re: Introducing FieldTypeWriter, an enum that identifies field writers and (issue1428807)

2011-05-02 Thread Rafael Castro
LGTM

On Mon, May 2, 2011 at 7:15 PM, rj...@google.com wrote:

 LGTM

 Hermes will follow up with tests posthaste


 http://gwt-code-reviews.appspot.com/1428807/


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

Re: [gwt-contrib] Re: Fixing TODOs; rename UiBinderWriter methods for generating tokens for SafeHtml instances and saf... (issue1420813)

2011-04-28 Thread Rafael Castro
Sorry, I think it's my fault for adding --cc orkut-latency-eng (Rietveld
probably replaces the default instead of appending). I'll pay attention to
that enxt next time.

  cheers,
rafa

On Thu, Apr 28, 2011 at 1:28 PM, rj...@google.com wrote:

 lgtm

 Rafa, your patches keep missing
 Google-Web-Toolkit-Contributors@googlegroups.com on the cc line.


 http://gwt-code-reviews.appspot.com/1420813/

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


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

[gwt-contrib] Re: Introduce the Attachable interface, and add support to UiBinder's HTMLPanel parser. (issue1426805)

2011-04-26 Thread Rafael Castro
Please hold reviewing this for a sec, I'm fixing a compile error I
introduced.

On Tue, Apr 26, 2011 at 2:39 PM, rdcas...@google.com wrote:

 Thanks, guys. Another look?




 http://gwt-code-reviews.appspot.com/1426805/diff/1/user/src/com/google/gwt/uibinder/elementparsers/AttachableHTMLPanelParser.java
 File

 user/src/com/google/gwt/uibinder/elementparsers/AttachableHTMLPanelParser.java
 (right):


 http://gwt-code-reviews.appspot.com/1426805/diff/1/user/src/com/google/gwt/uibinder/elementparsers/AttachableHTMLPanelParser.java#newcode76

 user/src/com/google/gwt/uibinder/elementparsers/AttachableHTMLPanelParser.java:76:
 if (null == customTag) {
 On 2011/04/26 17:13:47, rjrjr wrote:

 Please check for appropriate constructor with



 com.google.gwt.uibinder.rebind.TypeOracleUtils.hasCompatibleConstructor(JClassType,

 JType...), and call logger.die if none is found.


 Actually, I totally missed this, but supporting custom root elements is
 something I still have to add to AttachableHTMLPanel. It's not hard, but
 since it's not blocking for 99% of our tests, I'd like to put it
 together with the other 2 dozen of TODOs I'm adding with this CL... I
 promise I'll get to them. Scout's honor. :-)



 http://gwt-code-reviews.appspot.com/1426805/diff/1/user/src/com/google/gwt/uibinder/elementparsers/WidgetInterpreter.java
 File
 user/src/com/google/gwt/uibinder/elementparsers/WidgetInterpreter.java
 (right):


 http://gwt-code-reviews.appspot.com/1426805/diff/1/user/src/com/google/gwt/uibinder/elementparsers/WidgetInterpreter.java#newcode84
 user/src/com/google/gwt/uibinder/elementparsers/WidgetInterpreter.java:84:
 childFieldWriter.setBuildPrecendence(2);
 On 2011/04/26 17:13:47, rjrjr wrote:

 This looks brittle. Shouldn't you ask for this widget's precedence and

 set the

 child's to +1?


 Done.



 http://gwt-code-reviews.appspot.com/1426805/diff/1/user/src/com/google/gwt/uibinder/elementparsers/WidgetInterpreter.java#newcode99
 user/src/com/google/gwt/uibinder/elementparsers/WidgetInterpreter.java:99:
 elementWriter.setBuildPrecendence(2);
 On 2011/04/26 17:13:47, rjrjr wrote:

 ditto


 Done.



 http://gwt-code-reviews.appspot.com/1426805/diff/1/user/src/com/google/gwt/uibinder/elementparsers/WidgetPlaceholderInterpreter.java
 File

 user/src/com/google/gwt/uibinder/elementparsers/WidgetPlaceholderInterpreter.java
 (right):


 http://gwt-code-reviews.appspot.com/1426805/diff/1/user/src/com/google/gwt/uibinder/elementparsers/WidgetPlaceholderInterpreter.java#newcode123

 user/src/com/google/gwt/uibinder/elementparsers/WidgetPlaceholderInterpreter.java:123:
 childFieldWriter.setBuildPrecendence(2);
 On 2011/04/26 17:13:47, rjrjr wrote:

 Again with the magic constant


 Done.



 http://gwt-code-reviews.appspot.com/1426805/diff/1/user/src/com/google/gwt/uibinder/elementparsers/WidgetPlaceholderInterpreter.java#newcode133

 user/src/com/google/gwt/uibinder/elementparsers/WidgetPlaceholderInterpreter.java:133:
 elementWriter.setBuildPrecendence(2);
 On 2011/04/26 17:13:47, rjrjr wrote:

 ditto


 Done.



 http://gwt-code-reviews.appspot.com/1426805/diff/1/user/src/com/google/gwt/uibinder/rebind/FieldWriter.java
 File user/src/com/google/gwt/uibinder/rebind/FieldWriter.java (right):


 http://gwt-code-reviews.appspot.com/1426805/diff/1/user/src/com/google/gwt/uibinder/rebind/FieldWriter.java#newcode133
 user/src/com/google/gwt/uibinder/rebind/FieldWriter.java:133: * doesn't
 scale well. Centralize these values, using enums or constants.
 On 2011/04/26 17:13:47, rjrjr wrote:

 FYI, field Writers already model a dependency chain, see

 needs(FieldWriter)

 above. Would that let us drop the precedence thing? Should have called

 this out

 during Hermes's review, oh well.


 Hermes is fixing this in a follow-up CL, but I don't think he's actually
 using that info. I think he's just creating enums for these constants.


 http://gwt-code-reviews.appspot.com/1426805/


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

Design and Layouts

2011-04-07 Thread Rafael Nunes
How do you design the GUI of your apps?

Some parts in HTML+CSS and another parts with GWT Layout Managers? Or
it's 100% with Layout Managers?

I'm wasting a lot of time to create simple GUIs with GWT/SmartGWT
Layout Managers.
Maybe because I didn't understood the layout model, or because I am
just bad in create GUIs, or both.

I was thinking of create some parts of my app in HTML+CSS, and the
components and server integration I would use GWT/SmartGWT.

Any suggestion?

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



Re: GWT: browse files on the server-side

2011-03-10 Thread Rafael Almeida
You just need to list this files or will be able to dowload or upload
files to that directory?

You could use something over FTP. I think that is the safest way,
allowing to controll the acces to that directory

PS. Sorryfor some possible bugs in my English!  LoL


On 10 mar, 05:59, Natalie.Lawrey admin@gmail.com wrote:
 Hi
 Any suggestions?

 /*  I know that java.io.File is not serializable over the network BUT
 in my app I definitely need to present end-user list of files residing
 on the server (not all - but in one directory).

 First idea that come to my mind is to just send through RPC call file-
 names (plain strings) - but I'm not sure whether it's a good way to
 go.
  */

 Regards
 Natalie

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



primitive arrays vs Collections (performance wise)

2011-01-06 Thread Rafael
Hello there!

I've meaning to ask you the question implied in the subject of this
post. Is there an advantage in favoring Arrays over Collections when
working with code that will end up in the client (translated to HTML
and JavaScript that is)?

My gut tells me that i should stick to arrays in order to keep
performance on the client side, but i must admit that i do not exactly
know what happens with arrays or collections when they go through the
GWT compiler and therefore lack f hard evidence to support such a bold
statement...

Anyway, i was wandering if anyone else had thought of this...

thanks in advance!

take care!

Rafael

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



NullPointerException when adding suggestions to a MultiWordSuggestOracle

2010-06-02 Thread Rafael
Hello!

I am quite baffled by the NullPointerException i get when i add
suggestions to a MultiWordSuggestOracle in order to create a
suggestion box later.

MultiWordSuggestOracle oracle = new MultiWordSuggestOracle();
ListString suggestions = new ArrayListString();

for(int i = 0; i  getWidgetData().length; i++)
suggestions.add(getWidgetData()[i]);

oracle.addAll(suggestions);  - NULL POINTER EXCEPTION

Searching around, i found out that the exception is being propagated
from the following method (method that belongs to the class
com.google.gwt.user.client.ui.MultiWordSuggestOracle)

private String  [Search] normalizeSuggestion(String
formattedSuggestion) {
// Formatted suggestions should already have normalized
whitespace. So we
// can skip that step.
// Lower case suggestion.

formattedSuggestion = formattedSuggestion.toLowerCase(); - NULL
POINTER EXCEPTION

// Apply whitespace.

if (whitespaceChars != null) {
  for (int i = 0; i  whitespaceChars.length; i++) {
char ignore = whitespaceChars[i];
formattedSuggestion = formattedSuggestion.replace(ignore,
WHITESPACE_CHAR);
  }
   }
return formattedSuggestion;
}

I have to admit i am having trouble coming up with an explanation or
solution, so any help will be most welcome and appreciated!

Thanks in advance!

Rafael

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



Problem with module inherits .... /! It compiles but it does not run!

2010-03-31 Thread Rafael Xavier Valente

Hello,

In my project I'm trying to use the visualization API.
So I put in the module file the following line:

inherits name='com.google.gwt.visualization.Visualization'/

Like I've done so far with all projects.
Then it compiles perferct!
But, when I try to run it doesn't work.
in the hosted mode I receive the message:

Line 77: No code source is avaiable for type
com.google.gwt.visualization.client.visualization.PieChart; did you
forget to inherit a required module?

So, it seems to me that the module is not there.
But it's there, because I can compile it with no problem!

Can someone help me?
Thanks!

--
Rafael XAVIER VALENTE
Quatrième Année en Informatique - ESIEE Engineering
Graduando em Engenharia Elétrica - 9º Período
LITC - Laboratório de Inteligência Computacional
UFMG - Brasil

--
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 to Configure GWT to use apache? [Ubuntu]

2010-03-30 Thread Rafael Farias
The GWT is using only Tomcat with port ,
when I try to access a PHP file that is in the /var/www, the directory
read by apache in Ubuntu,
I get this error:

com.google.gwt.http.client.RequestPermissionException: The URL
http://127.0.0.1/Quadrante.php is invalid or violates the same-origin
security restriction

How to Configure GWT to use apache?

-- 
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: RichText, bug with createLink?

2010-02-19 Thread Rafael
+1

Any news on this matter?

On Feb 2, 1:13 pm, Bonor bono...@gmail.com wrote:
 ThecreateLink() doens't seems to work. Not only in my app but also in
 the Google 
 Showcase:http://gwt.google.com/samples/Showcase/Showcase.html#CwRichText

 Is it a bug?

-- 
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: RichText, bug with createLink?

2010-02-19 Thread Rafael
So far the only workaround that i have found is to use the insertHTML
method instead

On Feb 19, 8:53 am, Rafael boraf...@gmail.com wrote:
 +1

 Any news on this matter?

 On Feb 2, 1:13 pm, Bonor bono...@gmail.com wrote:

  ThecreateLink() doens't seems to work. Not only in my app but also in
  the Google 
  Showcase:http://gwt.google.com/samples/Showcase/Showcase.html#CwRichText

  Is it a bug?

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



ImageBundle and dynamic content

2010-01-27 Thread Rafael
Hi, I have a question about the ImageBundle class. From what Ive read,
it can optimize the treatment of image loading, something Im looking
for.

My question come to handling large amount of images. I currently have
a images stored in BLOB in a database, which im accessing via a
servlet and a Image object. The image will load depending of the
params passed in the url of the Image object.

After reading more on the ImageBundle class, im wondering how I can
dynamically build an ImageBundle. Is this conceptually possible with
the ImageBundle or via another class?

-- 
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: GWTTestCase + Spring

2009-11-24 Thread Carlos Rafael Ramirez
Hello,

I think GWTTesCAse use the same mechanism than Hosted mode. So you can
modify the web.xml used by hosted mode. Make the hosted mode run without the
security and hopefully it will work qith GWTTestCase as well.

Regards,
Carlos

On Mon, Nov 16, 2009 at 9:14 AM, Davis Ford davisf...@zenoconsulting.bizwrote:

 Hi, I personally wouldn't write too many test cases like this unless you
 are just trying to ensure that everything is wired together.  Even then, I'd
 probably use something like Selenium to record the test from the UI and play
 it back.

 Alternatively, you might consider employing the MVP pattern.  This would
 allow you to test all of your UI logic in standard JUnit, leaving just the
 dumb GUI display code untested.  You could choose to test the latter with a
 GWTTestCase if you desired.  Once I started doing this, I stopped using
 GWTTestCase altogether.  I unit test all my UI logic with just JUnit and
 EasyMock.  My tests (500+) finish in about 20 s.


 On Fri, Nov 13, 2009 at 2:28 PM, dadodev dado...@gmail.com wrote:

 I'm working on a GWT (1.7) application that uses Spring and Hibernate
 on the server side that is secured with SpringSecurity and CAS.
 I want to create some client side tests using GWTTestCase to test the
 UI and Asynch behavior of the application.

 I have two problems/questions regarding GWTTestCase:
 1) is it possible to customize the web.xml used by the GWT shell
 started by GWTTestCase? If yes, how? I need to customize the web.xml
 used by GWTTestCase to disable the application security mechanism in
 my tests, otherwise I cannot call the remote services which are
 secured.
 2) it's my understanding that the code I write for a GWTTestCase is
 like GWT client code, ie. I cannot use non-serializable classes: am I
 correct? If I'm wrong, is there a way to get to the Spring context in
 a GWTTestCase?

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





 --
 Zeno Consulting, Inc.
 home: http://www.zenoconsulting.biz
 blog: http://zenoconsulting.wikidot.com
 p: 248.894.4922
 f: 313.884.2977

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


--

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.




Date Picker not found in GWT 1.7.1

2009-10-22 Thread Rafael DL

Hi,

I'm trying to use the datebox after GWT upgraded to version 1.7.1, and
noticed that the screens that have this component does not work.

I have tried chrome, firefox and ie8, match any of them worked.
Anybody else has this problem? Does the problem is my browser or is
the GWT 1.7.1? Please check the showcase, the datepicker does not
work.

http://gwt.google.com/samples/Showcase/Showcase.html#CwDatePicker

Thanks.

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



String to date in client server side

2009-10-05 Thread Rafael Albani

Hello everybody, i have a question about the conversion the one string
for date, i need to convert in the client server to pass to the server
side, thank now.

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



Problem with project compilation into war file

2009-09-18 Thread Rafael

Hello everyone!

I have the following problem and i was wandering if you could help me
out.

I have the following class:

package ar.com.akyasociados.iturnos.client.dto.contactos;

import java.io.Serializable;

import ar.com.akyasociados.gwtprojecttemplate.client.dto.DTO;

import com.google.gwt.validation.client.NotEmpty;

/**
 *
 * @author Barrera Oro, Rafael
 *
 * DTO para transportar información de un título hacia el cliente.
 *
 */
@SuppressWarnings(serial)
public class TituloDTO implements Serializable, DTO{

private int id;

@NotEmpty (groups={minimal}, message = Debe ingresar una
descripción)
private String descripcion;

/**
 * Constructor. Requerido por ser DTO.
 */
public TituloDTO(){
id = -1;
descripcion = null;
}

public int getId()  
{   return id;  }
public void setId(int id)   
{   this.id = id;   }

public String getDescripcion()  {   
return descripcion; }
public void setDescripcion(String descripcion)  {   
this.descripcion =
descripcion;}

/*
 * (non-Javadoc)
 * @see
ar.com.akyasociados.gwtcontrols.client.widgets.RowElement#getValue()
 */
public String getValue() {
return new Integer(getId()).toString();
}
}

In eclipse everything works, but when i attempt to compile the project
i get the following exception:

Compiling module ar.com.akyasociados.iturnos.ITurnos
java.lang.ClassNotFoundException:
ar.com.akyasociados.iturnos.client.dto.contactos.TituloDTO
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at
com.google.gwt.validation.rebind.ValidatorCreator.createValidatorImplementation
(Unknown Source)
at com.google.gwt.validation.rebind.ValidatorGenerator.generate
(Unknown Source)
at com.google.gwt.dev.cfg.RuleGenerateWith.realize
(RuleGenerateWith.java:49)
at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.tryRebind
(StandardRebindOracle.java:113)
at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind
(StandardRebindOracle.java:62)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind
(StandardRebindOracle.java:172)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind
(StandardRebindOracle.java:161)
at com.google.gwt.dev.Precompile
$DistillerRebindPermutationOracle.getAllPossibleRebindAnswers
(Precompile.java:204)
at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds
(WebModeCompilerFrontEnd.java:128)
at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.process
(AbstractCompiler.java:151)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:
444)
at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.compile
(AbstractCompiler.java:85)
at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.compile
(AbstractCompiler.java:181)
at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.access$400
(AbstractCompiler.java:71)
at com.google.gwt.dev.jdt.AbstractCompiler.compile
(AbstractCompiler.java:473)
at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations
(WebModeCompilerFrontEnd.java:73)
at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile
(JavaToJavaScriptCompiler.java:254)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:300)
at com.google.gwt.dev.Compiler.run(Compiler.java:170)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:124)
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
84)
at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger
(CompileTaskRunner.java:78)
at com.google.gwt.dev.Compiler.main(Compiler.java:131)
   Scanning for additional dependencies: file:/shared/workspace/
ITurnos/src/ar/com/akyasociados/iturnos/client/widgets/contactos/
TitulosEditorPanel.java
  Computing all possible rebind results for
'ar.com.akyasociados.iturnos.client.dto.contactos.TituloDTO'
 Rebinding
ar.com.akyasociados.iturnos.client.dto.contactos.TituloDTO
Adding '1' new generated units

Re: How to download a file in IE8?

2009-07-09 Thread Rafael

alex.d,

I am having same problem but with a csv file. I think it's that IE8
fails to recoginize the type (MIME type) of the file, so it reloads
the page rather than ask the user to save as...

I asked same question in another post. please ignore.

Surprisingly, i can server the file to IE8 in Vista just fine. But not
for IE* in XP.

On Jun 22, 3:33 am, alex.d alex.dukhov...@googlemail.com wrote:
 Hi folks,

 i have a seemingly easy problem here and still somehow i can't get a
 grip on it. Here is a piece of code to download a file after clicking
 on a menu item:

 new MenuItem(Start app, true, new Command() {
 public void execute()
 {
    Window.open(GWT.getModuleBaseURL()+startapp.jnlp, _self, );

 }

 It'sworkingin all browser as expected except for IE8.
 First download is blocked by IE8 for security reasons.
 Second - after i allow the download, my webpage gets reloaded.
 Third - after reload it'sworkingbut after playing with it for
 sometime i've even managed to crash IE8 completely.
 Fourth - closing/openingIEcauses it to block my download again.
 WTF am i doing wrong?

 I've read about setting my security settings to default, but it is
 default - security zone: Internet, security level : medium. I expect
 most of my users to have same settings.

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



Re: This application is out of date, please click the refresh button on your browser.

2009-06-05 Thread Rafael Barrera Oro
Hello there! I seem to have the same problem.

SEVERE: [1244211471539000] javax.servlet.ServletContext log:
profesionalesServiceImpl: An IncompatibleRemoteServiceException was thrown
while processing this call.
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: This
application is out of date, please click the refresh button on your browser.
* ( Blocked attempt to access interface
'ar.com.akyasociados.iturnos.client.rpc.general.InitService', which is not
implemented by
'ar.com.akyasociados.iturnos.server.gwt.profesionales.ProfesionalesServiceImpl';
this is either misconfiguration or a hack attempt )*

But look at the bold part, especially the part that says either
misconfiguration or a hack attempt. In my case is misconfiguration, beacuse
the exception states that* InitService *is not implemented by *
ProfesionalesServiceImpl*, which is an implementation of a different service
interface!

As soon as i get it fixed i will post it back...

Cheers!

Rafael

2009/6/5 JOKe ( Naiden Gochev ) goc...@gmail.com


 Hello I am working on old GWT 1.4 applicatin. It works fine in hosted
 and web mode. But today after some changes and adding new futures one
 async call is not executed. The exception is This application is out
 of date, please click the refresh button on your browser. all other
 async calls are executed. In Hosted Mode everythink works fine only
 when I compile only this async call is not executed.


 any ideas ? I try with all browsers available it is not from the
 browser.

 I cannot update to other gwt version it doesnt depends on me. And the
 application uses third party libraries that work only on gwt 1.4

 


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



Re: This application is out of date, please click the refresh button on your browser.

2009-06-05 Thread Rafael Barrera Oro
I found the problem (maybe this is the reason you are getting the exception)

I had the relative path wrong in the annotation (in the synchronous
interface)

Was: @RemoteServiceRelativePath(profesionales)
Whould have been: @RemoteServiceRelativePath(init)

does this help?

2009/6/5 Rafael Barrera Oro boraf...@gmail.com

 Hello there! I seem to have the same problem.

 SEVERE: [1244211471539000] javax.servlet.ServletContext log:
 profesionalesServiceImpl: An IncompatibleRemoteServiceException was thrown
 while processing this call.
 com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: This
 application is out of date, please click the refresh button on your browser.
 * ( Blocked attempt to access interface
 'ar.com.akyasociados.iturnos.client.rpc.general.InitService', which is not
 implemented by
 'ar.com.akyasociados.iturnos.server.gwt.profesionales.ProfesionalesServiceImpl';
 this is either misconfiguration or a hack attempt )*

 But look at the bold part, especially the part that says either
 misconfiguration or a hack attempt. In my case is misconfiguration, beacuse
 the exception states that* InitService *is not implemented by *
 ProfesionalesServiceImpl*, which is an implementation of a different
 service interface!

 As soon as i get it fixed i will post it back...

 Cheers!

 Rafael

 2009/6/5 JOKe ( Naiden Gochev ) goc...@gmail.com


 Hello I am working on old GWT 1.4 applicatin. It works fine in hosted
 and web mode. But today after some changes and adding new futures one
 async call is not executed. The exception is This application is out
 of date, please click the refresh button on your browser. all other
 async calls are executed. In Hosted Mode everythink works fine only
 when I compile only this async call is not executed.


 any ideas ? I try with all browsers available it is not from the
 browser.

 I cannot update to other gwt version it doesnt depends on me. And the
 application uses third party libraries that work only on gwt 1.4

 



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



Inheriting a css stylesheet

2009-06-05 Thread Rafael Barrera Oro
Howdy?

I've written a small module with custom widgets and a simple CSS stylesheet.
The problem is that when i inherit the module, i inherit the client side
code but not the stylesheet. I am sure this is caused by some silly mistake
(judging by the docs i read) but i still cant identify what i am doing
wrong.

Thanks in advance!

Rafael

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



GWT Application aspects

2009-06-01 Thread Rafael Barrera Oro
¡Hello everyone!

I am trying to set up an initial skeleton for an application. In order to
achieve this i considered every aspect (not EVERY ONE of them, of course) of
the application i'd like to handle and reached the following decision:

Views, presentation, etc: GWT (or else it would not be on this list now
would it? :P)
Data access layer: Spring/Hibernate/postgreSQL
client side validation: GWT-Validation
Flow: Not yet decided if i am going to use Spring Web Flow or plain old
GWT
Deployment environment: Tomcat 5.5 or later


I thought about creating a second GWT Module to store my custom widgets

What i'd like to ask you people is the following:

1)I've seen a couple of posts about Spring Web Flow but neither are simple
enough for me to comprehend, has any of you had a pleasant experience
integrating GWT and Spring Web Flow? if not, how do you implement flow
control within screens, pages, etc

2)I am a bit confused about how i should organize my application
(considering i just made the leap to web 2.0). For example, i used to split
every application into several modules (LoginModule, ClientModule,
SalesModule, etc) so every module could contain the services related to
them. I guess that such modules should only exist on the server side
adjusting to their role of service providers right? nevertheless, i thought
they should have some kind of client counterpart in order to be able to
access their services in a organized way, is this correct?

3)Most important, did i say something terribly wrong at the beginning of
this mail? (you know, like, oh my god, this guy does not know what he is
talking about kinda wrong)

I think of GWT as a source of great power, however, i do not seem able to
harness such power yet...

As usual, thank you all in advance

Yours trully

Rafael

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



Re: GWT and Hibernate XML files vs Annotations

2009-05-28 Thread Rafael Barrera Oro
It is off topic, right? I was suspecting that...

   The thing is that being a newbie, it is difficult for me to tell when
Hibernate ends and GWT begins. Looking around i realized that annotations
are just a great Hibernate feature and all questions regarding that matter
should be directed to the propper groups but i had already sent the
distress call when i found out hehe
   Whenever a Spring or Hibernate issue arises i ask myself is this a
Hibernate or Spring issue? or is a Hiberante or Spring being used with GWT
issue? thats another reason why i used this group for my post.
   Anyway, its working, so thanks a million!

Will be more careful with the off-topicness from now on ;)

2009/5/28 eggsy jimbob...@hotmail.com


 Hi Rafael,

 Its somewhat off the topic of GWT but the inheritance you wish to map
 is not a problem with Hibernate annotations.

 Using an example the class HumanResource below inherits from the
 Resource class:

 @Entity
 @Table(name = resource)
 @Inheritance(strategy = InheritanceType.JOINED)
 public class ResourcePOJO implements Serializable
 {
 Your annotated getters and setters
 }

 @Entity
 @Table(name=human_resource)
 @Inheritance(strategy = InheritanceType.JOINED)
 @PrimaryKeyJoinColumn(name=resource_id)
 public class HumanResourcePOJO extends ResourcePOJO implements
 Serializable
 {
 Your annotated getters and setters
 }

 Notice the inheritance annotation and the PrimaryKeyJoinColumn
 annotation.

 Eggsy

 On May 27, 4:09 pm, Rafael Barrera Oro boraf...@gmail.com wrote:
  Sorry for taking so long in replying and thank you for your answers. I am
  trying to map the following relationship.
 
  I have a contact table which holds common data such as name, last name,
  observations, etc and i have a employee table which inherits all the
 fields
  from the contact table and adds the employeenumber field. So, it will be
 a
  simple case of inheritance with a table per sublass mapping
 
  Thanks in advance!
 
  Rafael
 
  2009/5/21 eggsy jimbob...@hotmail.com
 
 
 
   Hi Rafel,
 
   Yeah you can do everything in Hibernate Annotations its really quite
   powerful. We have moved to using it fully now instead of mapping
   files.
 
   Using the mapping file to simply hold our queries.
 
   What kind of relationship are you trying to map?
 
   Eggsy
 
   PS. Paul - yeah that framework does seem to be plugged quite a
   lot. ;)
 
   On May 21, 7:22 am, George Georgovassilis g.georgovassi...@gmail.com
   wrote:
And Jim, no, we don't find Hibernate hard to use, especially since
it's a quasi-standard;-)
 
On May 20, 7:56 pm, Jim jim.p...@gmail.com wrote:
 
 Rafael,
 
 If you find Hibernate is difficult to use, you may try Dreamsource
 ORM
 for your application. You can find an GWT example inhttp://
  www.gwtorm.com/mail/Mail.html.
 
 Jimhttp://www.gwtorm.comforGWTORMhttp://
   code.google.com/p/dreamsource-orm/
 
 On May 20, 12:52 pm, Rafael boraf...@gmail.com wrote:
 
  Hello everyone!
 
 I have the following problem and was hoping you guys could
 help me
  out. I have the need to implement a relation inheritance (table
 per
  subclass) so i searched the hibernate documentation.
 The thing is that i am using a project structure which i took
 from
  a tutorial i found, and i have the following configuration files:
 
  applicationContext.xml (Spring stuff i suppose)
 
  hibernate.cfg.xml (mappings)
  database.hbm.xml (hibernate query definitions)
 
  My question is where should the code to define complex relations
  should go, hibernate.cfg.xml or database.hbm.xml?
 
  Is it possible to take care of everything with annotations
  (eliminating the need to change xml files)?
 
  Thanks in advance y'all!
 
  PD: Thank you Eggsy for your tutorial on GWT, Hibernate ans
 Spring
  combined! very enlightning :)
 


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



Re: GWT and Hibernate XML files vs Annotations

2009-05-27 Thread Rafael Barrera Oro
Sorry for taking so long in replying and thank you for your answers. I am
trying to map the following relationship.

I have a contact table which holds common data such as name, last name,
observations, etc and i have a employee table which inherits all the fields
from the contact table and adds the employeenumber field. So, it will be a
simple case of inheritance with a table per sublass mapping

Thanks in advance!

Rafael


2009/5/21 eggsy jimbob...@hotmail.com


 Hi Rafel,

 Yeah you can do everything in Hibernate Annotations its really quite
 powerful. We have moved to using it fully now instead of mapping
 files.

 Using the mapping file to simply hold our queries.

 What kind of relationship are you trying to map?

 Eggsy

 PS. Paul - yeah that framework does seem to be plugged quite a
 lot. ;)

 On May 21, 7:22 am, George Georgovassilis g.georgovassi...@gmail.com
 wrote:
  And Jim, no, we don't find Hibernate hard to use, especially since
  it's a quasi-standard;-)
 
  On May 20, 7:56 pm, Jim jim.p...@gmail.com wrote:
 
   Rafael,
 
   If you find Hibernate is difficult to use, you may try Dreamsource ORM
   for your application. You can find an GWT example inhttp://
 www.gwtorm.com/mail/Mail.html.
 
   Jimhttp://www.gwtorm.comforGWT ORMhttp://
 code.google.com/p/dreamsource-orm/
 
   On May 20, 12:52 pm, Rafael boraf...@gmail.com wrote:
 
Hello everyone!
 
   I have the following problem and was hoping you guys could help me
out. I have the need to implement a relation inheritance (table per
subclass) so i searched the hibernate documentation.
   The thing is that i am using a project structure which i took from
a tutorial i found, and i have the following configuration files:
 
applicationContext.xml (Spring stuff i suppose)
 
hibernate.cfg.xml (mappings)
database.hbm.xml (hibernate query definitions)
 
My question is where should the code to define complex relations
should go, hibernate.cfg.xml or database.hbm.xml?
 
Is it possible to take care of everything with annotations
(eliminating the need to change xml files)?
 
Thanks in advance y'all!
 
PD: Thank you Eggsy for your tutorial on GWT, Hibernate ans Spring
combined! very enlightning :)
 


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



GWT and Hibernate XML files vs Annotations

2009-05-20 Thread Rafael

Hello everyone!

   I have the following problem and was hoping you guys could help me
out. I have the need to implement a relation inheritance (table per
subclass) so i searched the hibernate documentation.
   The thing is that i am using a project structure which i took from
a tutorial i found, and i have the following configuration files:

applicationContext.xml (Spring stuff i suppose)

hibernate.cfg.xml (mappings)
database.hbm.xml (hibernate query definitions)

My question is where should the code to define complex relations
should go, hibernate.cfg.xml or database.hbm.xml?

Is it possible to take care of everything with annotations
(eliminating the need to change xml files)?

Thanks in advance y'all!

PD: Thank you Eggsy for your tutorial on GWT, Hibernate ans Spring
combined! very enlightning :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Official libraries

2009-05-14 Thread Rafael Barrera Oro
Thanks for the guidance Alyxandor!

Will give it a try!

Rafael



2009/5/13 Alyxandor a.revolution.ultra.b...@gmail.com


 Go to code.google.com and search on gwt.

 You'll find a metric whackload of results.  There's also a list in the
 regular GWT docs of third-party-extensions; many of them are quite
 powerful.

 If you want to maintain consistency with future versions of gwt, I
 recommend that you do not stray too far from the beaten path...  There
 are whole frameworks like Rocket GWT or Gwt-Ext that try to emulate
 prototype or other JS libraries, but these are kind of like
 downloading proprietary drivers in Linux...  They'll work, but when
 things get updated, you will have to wait until someone else feels
 like updating and releasing a new binary before you can catch up with
 the times.

 I'd say, grab the gwt-incubator, as that's actually the gwt dev teams
 prerelease stuff {StyleInjector deprecated a LOT of hackery I wrote
 myself, thank God!}, and maybe look at GwtQuery {written by Ray
 Cromwell, the Timelord of GWT}, Gwt-log, and Gwt-dnd, as these are all
 maintained on code.google.com, and seem to stay up to date.

 Besides that, just google gwt + whatever-type-of-task-you-want-to-do
 like, gwt drag n drop or gwt audio and you'll get lists of results
 to peruse.

 GOOD LUCK!
 


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



Official libraries

2009-05-13 Thread Rafael Barrera Oro
Hello people, i come to you with a simple question. Considering that there
are quite a number of extensions fo the Google Web Toolkit i would like to
know where i can find a list of official libraries. By this i am not saying
that just because i library is not maintained by google such library is less
reliable in any way, i just want to have a better understanding of things.

Thanks in advance!

Rafael

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



Hosted browser possibly not being able to reach visualization api...

2009-05-08 Thread Rafael Barrera Oro
Hello people!

   I came to you with an issue that was initially thought to be
gwt-visualization-api related, but since i exhausted the possibilites there,
i was recommended to ask here.
   The problem is that i get an error that indicates that gwt-visualization
is not being loaded (when run in hosted mode). Since the line that ensures
the loading of the api is presente in the main html page, i was wandering if
there could be a problem which prevented the hosted browser to reach the api
at google (script type=text/javascript src=http://www.google.com/jsapi
/script).

The following is the URL of the original thread:

http://groups.google.com/group/google-visualization-api/browse_thread/thread/a2e8abda771ffd01?hl=en

Thanks in advance y'all!

Rafael

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



Problem with VisualizationAPI

2009-04-30 Thread Rafael Barrera Oro
I am trying to display a simple PieChart and i get the following error:

[ERROR] Unable to load module entry point class
ar.com.akyasociados.dietaclubweb.client.DietaClubWeb (see associated
exception for details)
com.google.gwt.core.client.JavaScriptException: (TypeError): $wnd.google has
no properties
 fileName:
jar:file:/shared/downloads/Ajax/GWT/gwt-visualization-1.0.1/gwt-visualization.jar!/com/google/gwt/visualization/client/DataTable.java
 lineNumber: 32
 stack:
()@jar:file:/shared/downloads/Ajax/GWT/gwt-visualization-1.0.1/gwt-visualization.jar!/com/google/gwt/visualization/client/DataTable.java:32
gwtOnLoad([object Window],dietaclubweb,1.6)@:0
gwtOnLoad(undefined,dietaclubweb,http://localhost:8080/dietaclubweb/;)@
http://localhost:8080/dietaclubweb/hosted.html?dietaclubweb:20
nc()@http://localhost:8080/dietaclubweb/dietaclubweb.nocache.js:2
()@http://localhost:8080/dietaclubweb/dietaclubweb.nocache.js:8
@http://localhost:8080/dietaclubweb/hosted.html?dietaclubweb:39

at com.google.gwt.visualization.client.DataTable$.create(Native Method)
at
ar.com.akyasociados.dietaclubweb.client.DietaClubWeb.initPage(DietaClubWeb.java:108)
at
ar.com.akyasociados.dietaclubweb.client.DietaClubWeb.onModuleLoad(DietaClubWeb.java:46)


I read that the Visualization-API is only compatible with 1.4 version of the
GWT, but i still want to be certain that this not an error caused by some
common mistake oftenly made by newbies (i am a newbie)

thanks in advance

I might add this gwt-visualization-api looks pretty cool...

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



Gilead tutorial

2009-03-25 Thread Rafael Barrera Oro
Howdy!

   I was wondering if anyone knew of a tutorial and/or introduction for
Gilead, the reason i am asking you for this is that i read the official
tutorial and i was not able to follow it completely (i should point that i
can be considered a total nooboid in what regards GWT and related
technologies, hibernate also)
   Speaking of nooboids, i was wandering if, instead of using Gilead, i
could do the following...

Consider i have a functional Hibernate project, i could extract the POJOs
from the project and make them visible for the client side of a GWT
application and perform all the heavy duty database work in async services,
right? I guess that where i am going with this is that i am failing to see
the goal of GILEAD, the reason it was created, the problems it aims to solve
(although i am sure there are, i do not mean any disrespect to the Gilead
project)

thanks in advance
yours trully

Rafael Barrera Oro

PS: If what i just said is so wrong that it hurted your front lobes please
refrain from coming to my castle angrily waving pitchforks and torches
around, just point it out in a respectful manner i will listen thankfully
and bow my head in gratitude

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



Using previously existing project on the client side

2009-02-18 Thread Rafael Barrera Oro
Hello, i just wanted to make sure that i got it right...

If i have an existing project, which has its own dependencies, and i want to
use it on my GWT application, on the client side, ¿i have to package the
mentioned project and then get the source packages for all its dependencies?
(considering they are all 5.0 compatible)

The problem is i have an ORM generator which generates a set of classes
which i would like to use on the client side, but they are a little more
than POJOS, thats why they have their own dependencies and i have not been
able to use them so far (on the client side, of course).

Thank you all in advance

Cheers!

Rafael

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



How do you design your project structure?

2009-02-10 Thread Rafael Barrera Oro
I was thinking of a way to structure my projects, mostly how to distribute
the file, when it thought of consulting you about the matter.

This is how i structured my project

ar.com.company.public (html, css, etc)
ar.com.comapny.public.images (this i created specially for images)
ar.com.company.client  (Java clases)

i creatad the following packages for services:

ar.com.company.server.services
ar.com.company.client.services

I am facing now the need of creating packages to hold the Java classes
related to widgets of my own creation, so i wanted to consult you first on
which are the best practices to structure a GWT project as it begins to grow

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



Style Names

2009-01-29 Thread Rafael

   To be honest i do not have much experience with .css.
   The thing is, i am getting confused when trying to set the style of
a widget.
   I understand i should use the method setStyleName() or addStyleName
() but i dont know where to look for possible style names.

For example:

final DecoratedStackPanel stackPanel;

//creo el stackPanel
stackPanel = new DecoratedStackPanel();
stackPanel.setStyleName(DecoratedStackPanel.DEFAULT_STYLENAME);

Instead of DecoratedStackPanel.DEFAULT_STYLENAME, ¿Which other style
names could i use? ¿Where could i find a list of basic built in
styles?

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



Necessary .class files in order to deploy a GWT application

2009-01-15 Thread Rafael

¡Hello People!

   I was following the instructions to deploy a GWT app on a Tomcat
server (http://code.google.com/intl/es-ES/docreader/#p=google-web-
toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=DevGuideRPCDeployment)
and it ocurred to me that the only .class files that should be copied
onto the WEB-INF/classes folder are the ones located in the package
package.module.server, considering that the remaining classes (the
ones located in the public and client packages) are compiled via the
GWT compiler into html, css, etc.

¿Is this correct?

I should warn you that i have little to none experience with GWT so i
am perfectly capable of not making any sense

¡Thanks in advance!

Rafael

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



Re: Necessary .class files in order to deploy a GWT application

2009-01-15 Thread Rafael Barrera Oro
Sorry, i already answered myself.

The client package is also necessary...

2009/1/15 Rafael boraf...@gmail.com


 ¡Hello People!

   I was following the instructions to deploy a GWT app on a Tomcat
 server (http://code.google.com/intl/es-ES/docreader/#p=google-web-
 toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=DevGuideRPCDeploymenthttp://code.google.com/intl/es-ES/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=DevGuideRPCDeployment
 )
 and it ocurred to me that the only .class files that should be copied
 onto the WEB-INF/classes folder are the ones located in the package
 package.module.server, considering that the remaining classes (the
 ones located in the public and client packages) are compiled via the
 GWT compiler into html, css, etc.

 ¿Is this correct?

 I should warn you that i have little to none experience with GWT so i
 am perfectly capable of not making any sense

 ¡Thanks in advance!

 Rafael

 


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



Re: GWT deployment to JBoss

2008-10-03 Thread Carlos Rafael Ramirez
Hello,

Use

extraJvmArgs-Xmx1024m/extraJvmArgs


Regards,
Carlos

On Thu, Oct 2, 2008 at 7:59 PM, Ronak Patel [EMAIL PROTECTED] wrote:


 Thanks,

 That did it.

 Another question for you...I am now getting OutOfMemoryErrors while
 trying to compile and build Google Web Toolkit from Maven. I tried
 setting my pom file to:

 plugin
groupIdcom.totsp.gwt/groupId
artifactIdmaven-googlewebtoolkit2-plugin/
 artifactId
configuration
forktrue/fork
logLevelINFO/logLevel

  runTargetcom.baesystems.grading.gwt/Main.html/runTarget
compileTargets

  valuecom.baesystems.canes.grading.gwt.Main/value
/compileTargets
gwtVersion${gwtVersion}/gwtVersion
/configuration
executions
execution
goals
goalmergewebxml/goal
goalcompile/goal
/goals
/execution
/executions
/plugin

 But there's no process fork going on. I also tried setting

 jvmArg-Xmx1024m/jvmArg but that doesn't help either.

 Has anyone come across this?

 Thanks.
 On Sep 27, 6:27 pm, Carlos Rafael Ramirez [EMAIL PROTECTED]
 wrote:
  Hi,
 
  I am using jboss, eclipse and ant (not maven) to deploy my web
 application
  using GWT 1.5 and no problem at all. Check your html host page. A simple
  check is trying to download the nocache file as is written in your
 webpage.
  If it can be found by the browser well at  least your web application is
  well configured.
 
  Regards,
  Carlos
 
 
 
  On Sat, Sep 27, 2008 at 8:19 PM, Ronak Patel [EMAIL PROTECTED]
 wrote:
 
   Hi all,
 
   I'm using Eclipse  Maven to deploy a GWT 1.5 web application to
   JBoss. When I run the application inside of the built in Application-
   shell.cmd program, I see my web application inside of the Google
   Browser Window.
 
   However, when I build the war file using Maven and the GWT Archetype,
   I am unable to visit the web application home page.
 
   Maven runs and bundles the outputs of the Application-compile.cmd
   file. This includes a WEB-INF complete with classes and lib folders
   along with the nocache and cache html and js files.
 
   Was anyone else ever able to deploy and view the outputs of a GWT
   application successfully?- Hide quoted text -
 
  - Show quoted text -
 


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



Re: Best practices

2008-09-29 Thread Carlos Rafael Ramirez
Hello Gregor,

Have you thought in put your answer in a BLOG? For me your message is an GWT
optimization article.

Thanks,
Regards,
Carlos

On Tue, Sep 30, 2008 at 12:04 PM, Thomas Broyer [EMAIL PROTECTED] wrote:



 On 25 sep, 10:44, Stefan [EMAIL PROTECTED] wrote:
  Hi,
 
  Does anyone know any good resources for Best practices when writing
  GWT apps? Questions I would like to have answered:
 
  * How to I write high-performing apps? I know that the compiler helps
  out, but how do I write code that helps the compiler to minify/
  optimize my app?

 Google for high performance ajax and the like. Application and code
 organisation and design, independently of being pure or GWT-
 generated JavaScript, highly impacts performance.

 The main rule: the fastest code is the one that doesn't run (or, as
 would say Julien Lecomte [1]: less is more: don't do anything
 unnecessary / don't do anything until it becomes absolutely necessary)

 [1]
 http://www.slideshare.net/julien.lecomte/high-performance-ajax-applications/
 


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