Re: create web service inside GWT project

2010-07-11 Thread Luis Daniel Mesa Velasquez
If the response is something static (a template), it would have been easier to use a JSP. If you're fetching any document (unknown MIMETYPE), then using servlets is ok... fetch the document's content from database, use response.setContentType(mimetypefromdatabasehere); etc... A pointer... the

Re: GWT RPC with Adobe AIR 2

2010-07-11 Thread Joe Cole
On Jul 11, 1:39 pm, nino ekambi jazzmatad...@googlemail.com wrote: Why dont just use the RequestBuilder  and send  the response back as JSON or XML ? Because you have to write some of the conversion process manually which is automated with GWT. Unless you know of a project that is a drop-in

GWT overlay

2010-07-11 Thread Ahmed Shoeib
hi all , after i get the json fomat from the server i tried to use GWT Overlay to get the values from The json but after eval that return an array of object each index hold the json format after trying to get the values from it in this function private void DoWork(JsArrayMember_JSON members)

Re: Image setUrl and setResources IE8 JavaScriptException

2010-07-11 Thread Sven
Hi Stefan, I did not encounter such a situation, yet. However, to my knowledge IE8 has an limit on data-url of 32KB which are used by GWT (url(data:...)). Probably one gif is smaller than the limit but the other is NOT. that seems to be the cause. However, only one out of four images in the

Storing passwords: jBcrypt vs Jasypt

2010-07-11 Thread sbrombo
Hi everyone, I'm looking for a good way to store user passwords and have found two potential solutions. - jBCrypt (Blowfish), as suggested in the LoginSecurityFAQ by Reinier of the GWT-incubator project, and - jasypt (SHA), found googling. Both are mentioned in a very old discussion (2008)

Re: GWT overlay

2010-07-11 Thread djd
I don't think that what you're showing there is a valid json array. It should be, you are also expecting it, but the array should have [ ] brackets surrounding it... So, the jsonformat.html file in which you're showing the data, you should have [ { type:asd, ... } , { type:asd, ... } ] On Jul

CellTable SimplePager and and UiBinder with provided=true

2010-07-11 Thread Geraldo Lopes
Hi, I have a very simple UiBinder file : g:HTMLPanel Usuários c:CellTable ui:field=grid/c:CellTable c:SimplePager ui:field=paginador/c:SimplePager /g:HTMLPanel CellTable and SimplePager needs to be instantiated using generics, and

Re: layoutpanels and actual results

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

Re: layoutpanels and actual results

2010-07-11 Thread Brian Reilly
The other thing that I was just reminded of from another post is to make sure that you're using the appropriate root panel. Specifically, again if you're using layout panels, you need to use a RootLayoutPanel. -Brian On Jul 11, 10:33 am, Brian Reilly brian.irei...@gmail.com wrote: It would help

Re: Storing passwords: jBcrypt vs Jasypt

2010-07-11 Thread Stefan Bachert
Hi, I use java.security.MessageDigest in a simple class converting a string (password) to a hashed string using SHA. If SHA becomes too weak, I could easily change to better algos. Stefan Bachert http://gwtworld.de On 11 Jul., 12:49, sbrombo sbro...@gmail.com wrote: Hi everyone, I'm

Re: GWT overlay

2010-07-11 Thread james
first stop when validating any webservice json :) http://www.jsonlint.com/ On Jul 11, 10:09 am, djd alex.dobjans...@gmail.com wrote: I don't think that what you're showing there is a valid json array. It should be, you are also expecting it, but the array should have [ ] brackets surrounding

Re: Url to my data for HTTP GET request?

2010-07-11 Thread Nik
Have tried both RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, /rate.xml); and RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, GWT.getHostPageBaseURL() +rate.xml); both do not work. If that was a SOP problem it would fire the at least the onError method. On

Re: Url to my data for HTTP GET request?

2010-07-11 Thread Nik
I'trying am deploying my App with eclipse and just trying to reach this data lying on a client side. On Jul 11, 6:43 pm, Nik khristia...@gmail.com wrote: Have tried both RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, /rate.xml); and RequestBuilder builder = new

Re: GWT RPC with Adobe AIR 2

2010-07-11 Thread nino ekambi
Yeah you are right. It looks the gwt is generating some new Function(){...} constructs, what adobe air doesnt like. Anybody has a solution to this ? I m also really interested greets 2010/7/11 Joe Cole profilercorporat...@gmail.com On Jul 11, 1:39 pm, nino ekambi jazzmatad...@googlemail.com

Re: Universal Document Converter

2010-07-11 Thread rohit jain
Trying building something like an information management system, and would like to have an interoperability feature for amongst various formats. So that user can have the data in the desired format. That would help reduce dependence on underlying operating system. We will be using GWT for the

Re: TabPanel - 100% height for client widget?

2010-07-11 Thread Magnus
Hi, sorry for repeating and posting in this thread without solution, but I must say that TabLayoutPanel is useless for me if its size cannot be maximized. So I'll have to build my own TabPanel, but this is not satisfactory since a framework should prevent me from building my own versions of

Re: CellTable SimplePager and and UiBinder with provided=true

2010-07-11 Thread Gal Dolber
That should work... I don't remember why, but I end up doing it like this: CellTableJsBean table = new CellTableJsBean(); @UiField CrudPagerJsBean pager; @UiFactory CellTableJsBean getTable() { return table; } @UiFactory CrudPagerJsBean getPager() { return new

Re: CellTable SimplePager and and UiBinder with provided=true

2010-07-11 Thread Gal Dolber
I just tried this: @UiField(provided=true) CellTableJsBean table = new CellTableJsBean(); @UiField CrudPagerJsBean pager; @UiFactory CrudPagerJsBean getPager() { return new CrudPagerJsBean(table); } And still working ok! 2010/7/11 Gal Dolber gal.dol...@gmail.com That should

MVP Question.

2010-07-11 Thread nacho
Hi, i'm trying to make a view like the following that i paste. But i need to add click handlers to the links in the presenter. How could i do. I was looking the method getClickedCell in the mvp presentation but the problem is that my links are inside a FlowPanel that is inside a Vertical that is

Re: MVP Question.

2010-07-11 Thread Gal Dolber
try something like this from the presenter: view.setHandler(ViewHandler handler); interface ViewHandler { void onView(Category c); void onRemove(Category c); } whatever any one say to you, DO NOT USE GETTERS ON THE VIEW INTERFACE :) 2010/7/11 nacho vela.igna...@gmail.com Hi, i'm trying to

Re: MVP Question.

2010-07-11 Thread nacho
I think that from that handler i should call the eventBus in the onView and onRemove methods, right? But how do i connect every link to that handler? Should i put a onClickHandler on every lnk that i create in the view that calls those methods? Sorry if i am saying stupid things, i' am newby to

Re: MVP Question.

2010-07-11 Thread Gal Dolber
There no right or wrong way to implement MVP, its just a pattern and you can implement it as you like. The only points I think are important are: - (As I already said) The view interface shouldn't have getters. This makes mocking easy peasy. - Do not handle Widgets on the presenter (any

Google Web Toolkit Lagging

2010-07-11 Thread AgitoM
Since somewhere last week, whenever I try and run a application I build in debug mode, the application is heavy lagging. This is the case in any browser that I use, and was not the case until a few days ago. Over the past few days there have been no major changes to the source code of the

Eclipse - Google Addons are gone after update

2010-07-11 Thread Magnus
Hi, I just upgraded my GWT plugin in Eclipse 3.5 and I encounter the following: The upgrade succeeds, but after restarting Eclipse all the GWT menu items are gone, e. g. Run As... does not offer Google Web Application anymore. I already saw this earlier and I always had to completely reinstall