Editors Framework

2012-05-06 Thread saurabh saurabh
Hi all,

I have a situation here

@Entity
@Table(name = "person", catalog = "hms")
public class Person implements java.io.Serializable {

private int id;
private Integer version;
private Address addressByAddress1;
private Address addressByAddress2;
private String firstName;
private String middleName;
private String lastName;
private String sex;

  /*other fields and methods*/

}
public class PersonEditor extends Composite implements
Editor {

@UiField
ValueBoxEditorDecorator name; //note: doesn't follow editor
contract of naming convention.

/*other uifields following editor contract*/

}

So I am using just one text box for firstNam, middleName, lastName :
the name box.
I am trying to make a smart name input field for user where user can
just enter the name with spaces and the value in testbox using some
split function and logic will be absorbed by firstName,middleName,
lastName.

So here just for three fields I don't want to implement the
LeafValueEditor. I was thinking there must be some thing where I can
subscribe bean's initialization get and set method and implement this.

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



Re: Is there any way to remove the sort arrow decorator in a header of a CellTable?

2012-05-06 Thread Zak Linder
Sorry, you need to added !important because the styles you're overriding 
are defined inline:

/* hack to remove sort icon */
.
cellTableSortedHeaderAscending > div,
.cellTableSortedHeaderDescending > div {
   padding-left: 0* !important*;
}
.cellTableSortedHeaderAscending > div > div:first-child,
.cellTableSortedHeaderDescending > div > div:first-child {
   display: none* !important*;
}

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



Re: Is there any way to remove the sort arrow decorator in a header of a CellTable?

2012-05-06 Thread Zak Linder
I don't think this will work, the arrow icon is added by wrapping the 
header Cell in an 
IconCellDecorator(in
 AbstractCellTable.getSortDecorator(), which is called in 
AbstractCellTable.createHeaders(), both private methods).

I have a similar issue in that I want to move the icon to the right of the 
label, so I also need to target the icon. Xavier, you could try using CSS 
to hide the icon. Just as you've replaced the icon resources in you 
TableResources interface, you can replace and extend the CSS file:


public interface TableResources extends CellTable.Resources {
@Source("up.png")
ImageResource cellTableSortAscending();

@Source("down.png")
ImageResource cellTableSortDescending();

@Source("MyCellTable.css")
CellTable.Style cellTableStyle();
 }

And in MyCellTable.css:

...

/* hack to remove sort icon */
.cellTableSortedHeaderAscending > div,
.cellTableSortedHeaderDescending > div {
   padding-left: 0;
}
.cellTableSortedHeaderAscending > div > div:first-child,
.cellTableSortedHeaderDescending > div > div:first-child {
   display: none;
}

...

The CSS above undoes the cell decorator's padding and hides the icon. If 
you need help with getting the CSS to work the first place to look is the 
ClientBundle 
dev 
guide
.

On Sunday, March 11, 2012 7:33:16 AM UTC-4, Olivier TURPIN wrote:
>
> Hello Xavier
>
> You should take a look at Header class (in 
> com.google.gwt.user.cellview.client package) by extending it you'll have 
> access to the Template in use, maybe you can declare your own or just 
> override render method  and inject your code to the SafeHtmlBuilder
>
> @Override
> public void render(Context context, SafeHtmlBuilder sb) {
> // do what you want with the builder
> // sb.append();
> }
>
>
> Olivier.
> Le samedi 10 mars 2012 12:35:51 UTC+1, Xavier S. a écrit :
>>
>> Hello Jose,
>> Thanks for your answer!
>> I wasn't aware of the CellTable.Resources classes, it seems to fit my 
>> needs. But (there's always a but :) ).
>> The generated html code for that sort arrow is the following :
>>
>>> >> style="left:0px;margin-top:-4px;position:absolute;top:50%;line-height:0px;">
>>> http://127.0.0.1:/main/clear.cache.gif"; style="width: 11px; height: 
>>> 7px; background: url(data:image/png;base64,SOMEBASE64CODE) no-repeat 0px 
>>> 0px;" border="0">
>>> 
>>
>>
>> And I would like to change it to something like this :
>>
>>> 
>>>
>> 
>>
>> 
>>
>>
>> So mostly change the  tag by a  one where I can use twitter 
>> bootstrap css icons and maybe change the top style arg of the enclosing div.
>>
>> Is there any way to do it with GWT?
>>
>> Thanks again and best regards,
>>
>> Xavier
>>
>>
>> On Saturday, March 10, 2012 6:15:45 AM UTC+1, JoseM wrote:
>>>
>>> You can control what to show for that with the CellTable Resources. You 
>>> would have to pass in your own resources to the CellTable constructor that 
>>> overrides the sort style to display what you want. 
>>
>>
On Sunday, March 11, 2012 7:33:16 AM UTC-4, Olivier TURPIN wrote:
>
> Hello Xavier
>
> You should take a look at Header class (in 
> com.google.gwt.user.cellview.client package) by extending it you'll have 
> access to the Template in use, maybe you can declare your own or just 
> override render method  and inject your code to the SafeHtmlBuilder
>
> @Override
> public void render(Context context, SafeHtmlBuilder sb) {
> // do what you want with the builder
> // sb.append();
> }
>
>
> Olivier.
> Le samedi 10 mars 2012 12:35:51 UTC+1, Xavier S. a écrit :
>>
>> Hello Jose,
>> Thanks for your answer!
>> I wasn't aware of the CellTable.Resources classes, it seems to fit my 
>> needs. But (there's always a but :) ).
>> The generated html code for that sort arrow is the following :
>>
>>> >> style="left:0px;margin-top:-4px;position:absolute;top:50%;line-height:0px;">
>>> http://127.0.0.1:/main/clear.cache.gif"; style="width: 11px; height: 
>>> 7px; background: url(data:image/png;base64,SOMEBASE64CODE) no-repeat 0px 
>>> 0px;" border="0">
>>> 
>>
>>
>> And I would like to change it to something like this :
>>
>>> 
>>>
>> 
>>
>> 
>>
>>
>> So mostly change the  tag by a  one where I can use twitter 
>> bootstrap css icons and maybe change the top style arg of the enclosing div.
>>
>> Is there any way to do it with GWT?
>>
>> Thanks again and best regards,
>>
>> Xavier
>>
>>
>> On Saturday, March 10, 2012 6:15:45 AM UTC+1, JoseM wrote:
>>>
>>> You can control what to show for that with the CellTable Resources. You 
>>> would have to pass in your own resources to the CellTable constructor that 
>>> overrides the sort style to display what you want. 
>>
>>

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

Re: Google axing GWT?

2012-05-06 Thread Handw
That is a really good news.

On Saturday, May 5, 2012 10:37:01 PM UTC-4, Eric Clayberg (Google) wrote:
>
> We are hoping to release GWT 2.5 soon (before the end of the quarter).
>
> On Saturday, May 5, 2012 2:03:42 PM UTC-4, Travis Webb wrote:
>>
>> Eric, 
>>
>> Thanks for replying. I have been looking for such comforting words from 
>> someone inside Google and have been unable to find them until now. Not 
>> having a roadmap truly leaves us in the dark, which is the cause of 
>> speculation on this topic. You can keep it sufficiently vague to cover your 
>> own asses, but even something like "GWT 2.6 is be released between 2013 and 
>> 2015" would be tremendously useful. That the world's organizer of 
>> information is keeping its community in the dark by withholding information 
>> is a bit ironic, and some might call this hypocritical. Thanks again for 
>> the reassurance.
>>
>> -tjw
>>
>> On Monday, April 30, 2012 10:54:35 AM UTC-4, Eric Clayberg (Google) wrote:
>>>
>>> The Dart project is also not based in ATL and most definitely is not 
>>> being cut in any way, shape or form.
>>>
>>> It continues to do extremely well and is on track for a major release 
>>> later this year.
>>>
>>> On Thursday, April 26, 2012 1:34:31 PM UTC-4, dka...@gmail.com wrote:

 Yes I am aware of this. There have been further developments recently 
 in terms of staff, and supposedly one of the other projects being cut 
 is Dart. I'll admit, maybe some of the current (and former) GWT team 
 members down in Atlanta aren't seeing the whole picture, but from 
 where they sit it looks pretty grim. 

 On Apr 26, 11:43 am, dominikz  wrote: 
 > Gee man... 
 > 
 > are you aware of all this?
 https://groups.google.com/d/topic/google-web-toolkit/YgVlmth_6SU/disc.
 ..
>>>
>>>

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



I'm hitting App Engine's application static file limit of some 150MB

2012-05-06 Thread Brandon Donnelson
I'm hitting App Engine's application static file limit of some 150MB. 

Seems that when I try to deploy a second mirrored GWT module adds some 
overhead that throws me over the limit. This second module I have a 
slightly different configuration going on for local stuff, which I can 
remove to get it deployed but the request factory symbol files and 
additional project files overhead adds to my deployment size. 

While I've encountered this before and I have moved to serving files to 
blob datastore but it would be harder manage and serve my static project 
files I think. And I'd like to add more Google Api libs in the near future 
as I add more features to my application, but now I worry about my 
deployment sizes. 

I'd like to suggest a slightly larger static files deployment container for 
hosting app engine apps. Until then I'll be prudent in what I add to my war 
directory :).

Brandon Donnelson
http://c.gwt-examples.com

-- 
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/-/k_WTeI5A7dEJ.
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: RequestFactory with JsonRpc

2012-05-06 Thread Eduardo Guardiola
Hi,

If it is working for you now. Please, post working code.

Many thanks.

On 26 mar, 20:27, Miroslav Genov  wrote:
> Hello,
>
> Was wondering where anyone is using RequestFactory with JsonRpc ?
>
> I'm trying to get it working, due performance issue with the standart
> serialization of RF, but the RfValidator complains with:  "The type
> JsonRpcRequestContext must be annotated with Service, ServiceName, or
> JsonRpcService". The strange part is that my RequestContext already have
> it:
>
> public interface JsonRpcRequestFactory extends RequestFactory {
>
>   @JsonRpcService
>   public interface JsonRpcRequestContext extends RequestContext {
>
>     @JsonRpcWireName(value = "findAll")
>     Request> findAll();
>   }
>
>   JsonRpcRequestContext simpleRequest();
>
>
>
>
>
>
>
> }

-- 
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: RF: error.getExceptionType() returns null in Receiver#onFailure

2012-05-06 Thread Jens
Because the DefaultExceptionHandler in RequestFactoryServlet hides server 
details and only gives you the exception message. 
See: 
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/web/bindery/requestfactory/server/DefaultExceptionHandler.java

You have to sub class RequestFactoryServlet and provide your own 
ExceptionHandler if you want to change that behavior.

-- J.

-- 
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/-/PaoJsUcvkJMJ.
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: RF: error.getExceptionType() returns null in Receiver#onFailure

2012-05-06 Thread Joshua Kappon
Weird. have you tried throwing another type of exception?

On Wednesday, May 2, 2012 6:07:40 PM UTC+3, Gilad Egozi wrote:
>
> *Hello*
> *
> *
> *In the server side i have:*
>
> public void throwException() throws Exception {
> throw new NullPointerException("fslkdjflks");
> }
>
> *in the client side i have:*
>
> _requestFactory.myService().throwException().fire(new Receiver() {
>
> @Override
> public void onSuccess(Void response) {
> // TODO Auto-generated method stub
>  }
>  @Override
> public void onFailure(ServerFailure error) {
> // TODO Auto-generated method stub
> Window.alert(*error.getExceptionType()* + " " + error.getMessage());
>  }
>  });
>
> *error.getExceptionType() returns null and not the type of the exception. 
> Any idea why?*
> *
> *
> *Thanks,*
> *Gilad.*
>

-- 
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/-/YyYeHQUTb74J.
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: Inserting a DIV in a GWT Panel

2012-05-06 Thread Dennis Haupt
if you can wait until tomorrow, i can take a look at a method that cuts
& pasted a div into a gwt panel and works.

Am 06.05.2012 17:05, schrieb yves:
> I'm not sure, but try to remove the style "display:none" or change it
> (something like footer.setProperty("display", "xxx")) when you append
> the element.
> Yves
> 


-- 

-- 
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: Inserting a DIV in a GWT Panel

2012-05-06 Thread yves
I'm not sure, but try to remove the style "display:none" or change it
(something like footer.setProperty("display", "xxx")) when you append
the element.
Yves

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



Inserting a DIV in a GWT Panel

2012-05-06 Thread Xybrek
I have this DIV on my application jsp page which I need to "inject" in 
to a GWT VerticalPanel. Coded on top of the iframe tag which contains 
"__gwt_historyFrame" :


**index.jsp**


Copyright Š 2012 MyCompany. All Rights Reserved.
FAQ
Privacy
API
Contact Us


I am inserting the DIV to the view with this code:

DivElement footer = (DivElement) document.getElementById("footer");
verticalPanel.getElement().appendChild(footer);

However it does not show up, although the `getElementById` does not 
return `null`


What is the correct way to do this?

--
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: Anyone using gwt-rpc over websockets?

2012-05-06 Thread Yaya @ Work
Hi !

Don't forget that websockets will only be used if both the server and the
client support them.

Also, your goals are a bit unclear :  you mention RPC, which is client
initiated communication, and websockets, whose initial aim was to push data
from the server to the client.  However, indeed, both types of
communications could (should ?) be unified, see below.

Regarding Atmosphere, I played a very little bit with this framework a few
few months ago, for a PoC I left aside, and wasn't very excited :  the
documentation was quite shallow and the framework itself is quite "low
level".  Basically, it allows you to send strings from the server to the
client, with some support for object serialization which is/was a bit
tedious.  I don't remember any support for client initiated communications.
 However, this opinion should not be taken in a too harsh way :  Atmosphere
is a generic framework, with a bit of specialized support for GWT, not a
GWT specific framework.
Also, at Devoxx FR 2~3 weeks ago, Sami Jabber reported a similar
"disappointment" with Atmosphere (
http://www.slideshare.net/samijaber/session-gwt-devoxx-france-2012-cobra,
slide 11, sorry that's in French ;-) ), although they may have evaluated
this while ago, on less mature versions.

Anyway, I'd rather recommend you to have a look at JBoss' Errai [
http://www.jboss.org/errai.html], which adds very nice stuff on top of GWT,
like CDI, JAX-RS related stuff and "a unified federation and RPC
infrastructure with true, uniform, asynchronous messaging across the client
and server".
Regarding communications, see e.g.
https://docs.jboss.org/author/display/ERRAI/Messaging :
This section covers the core messaging concepts of the ErraiBus messaging
framework.
ErraiBus forms the backbone of the Errai framework's approach to
application design. Most importantly, it provides a straight-forward
approach to a complex problem space. Providing common APIs across the
client and server, developers will have no trouble working with complex
messaging scenarios from building instant messaging clients, stock tickers,
to monitoring instruments. There's no more messing with RPC APIs, or
unweildy AJAX or COMET frameworks. We've built it all in to one, consice
messaging framework. It's single-paradigm, and it's fun to work with.

Best regards,
  Yannis

On Fri, May 4, 2012 at 6:05 PM, Gal Dolber  wrote:
> Found http://code.google.com/p/gwt-websocketrpc/ and
> https://github.com/Atmosphere/atmosphere
>
> The first one only works with jetty and atmosphere looks good but I was
only
> able to get working long pull, no websockets.
> Anyone had better luck?
>
> --
> Guit: beautiful gwt applications
>
> https://github.com/galdolber/Guit
>
>
>
>
> --
> 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.



-- 
Best regards,
  Yannis

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