Click event for custom cell renderer (HyperlinkCell) for CellTable isn't firing.
Greetings, I have created a custom hyperlinkcell column renderer for celltable widget. Source can be found here http://pastebin.com/hM7rg4tFhttp://pastebin.com/hM7rg4tF The hyperlink displays alright but the onBrowserEvent isnt being fired at all. I have added super(click) on my constructor too. On adding @Override annotation to the onBrowserEvent, my eclipse IDE complains and suggests that I remove the annotation. It compiles once I remove it. Why would that be? Screen attached for the same. Thanks for all your help. Regards, -Ketan. -- 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. attachment: Selection_001.png
Re: Click event for custom cell renderer (HyperlinkCell) for CellTable isn't firing.
Thanks Subhro. The @Override annotation works for *render()* method in the same class but not for onBrowserEvent. I tried your suggestion too but didnt work (I have openjdk version 1.6.0_20). Regards, -Ketan. On Tue, Dec 28, 2010 at 3:32 PM, Subhrajyoti Moitra subhrajyo...@gmail.comwrote: @Override AFAIK is a jdk 1.6 feature. Can u see your project Compiler settings in Eclipse. Set it to follow 1.6 conventions. Your code looks alright to me.. HTH. Thanks, Subhro. On Tue, Dec 28, 2010 at 3:20 PM, Ketan Shah ketan.s...@gmail.com wrote: Greetings, I have created a custom hyperlinkcell column renderer for celltable widget. Source can be found here The hyperlink displays alright but the onBrowserEvent isnt being fired at all. I have added super(click) on my constructor too. On adding @Override annotation to the onBrowserEvent, my eclipse IDE complains and suggests that I remove the annotation. It compiles once I remove it. Why would that be? Screen attached for the same. Thanks for all your help. Regards, -Ketan. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- If you don't risk anything in life, you are risking even more -- 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: Click event for custom cell renderer (HyperlinkCell) for CellTable isn't firing.
@Nirmal: I did exactly that. @Thomas: I am using 2.1.1 The issue was actually the import statement. I was importing from com.google.gwt.user.client.Element; when I should have been importing from com.google.gwt.dom.client.Element; Thank you all for your prompt responses. Regards, -Ketan. On Tue, Dec 28, 2010 at 5:54 PM, Thomas Broyer t.bro...@gmail.com wrote: The signature of onBrowserEvent has changed between 2.1.0 and 2.1.1, which version are you using? -- 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. -- If you don't risk anything in life, you are risking even more -- 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: REQUEST BUILDER + JSON OBJECT + PHP SERVER SIDE LANGUAGE
try trasmettiJSON.setHeader(Content-Type,application/x-www-form- urlencoded); On Oct 7, 1:58 am, Alessio unibs cecchia...@libero.it wrote: Hi, i have problem by using gwt requestbuilder to make http request with json object in body messages. In the server side code, i use php, but when i try to access request's data, the $_POST variable is empty. I post the code below: String path = GWT.getHostPageBaseURL() + JsonObjectReceiver.php; RequestBuilder trasmettiJSON = new RequestBuilder(RequestBuilder.POST, URL.encode(path)); trasmettiJSON.setHeader(Content-Type, application/json); //L'evento contiene due oggetti da tenere in considerazione PrenotazioneJSON pj = event.getData(Costanti.OGGETTI_DA_INVIARE); final WCard corrente = event.getData(Costanti.CARD_CORRENTE_PASSO3); try{ @SuppressWarnings(unused) Request req = trasmettiJSON.sendRequest(pj.getInfo_generali(), new RequestCallback() { @Override public void onResponseReceived(Request request, Response response) { if (200 == response.getStatusCode()) { AppEvent xmlCorrect = new AppEvent(StartEvents.xmlWritten); xmlCorrect.setData(Costanti.CARD_CORRENTE_PASSO3, corrente); xmlCorrect.setData(status, response.getText()); forwardToView(passo3View, xmlCorrect); } else { // displayError(Couldn't retrieve JSON ( + response.getStatusText()+ ), corrente); } } @Override public void onError(Request request, Throwable exception) { //displayError(Couldn't retrieve JSON); } }); }catch(RequestException e) { //displayError(Couldn't retrieve JSON); } CAN SOMEONE HELP ME PLEASE? I'M NEW TO GWT, SO I HAVE NOT A LOT OF EXPERIENCE. THANKS IN ADVANCE FOR ANSWERS ALESSIO -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Newbie:: devmode (same origin policy) with PHP REST backend
Thanks Brett. I received similar advice on IRC ###gwt . Worked wonderfully ! On Sep 9, 11:28 pm, Brett Thomas brettptho...@gmail.com wrote: Are you familiar with the -noserver option? Check it outhttp://code.google.com/webtoolkit/doc/latest/FAQ_DebuggingAndCompilin... On Thu, Sep 9, 2010 at 11:00 AM, Ketan Shah ketan.s...@gmail.com wrote: Hi All, I am in process of exploring GWT as a potential candidate for my REST based API developed in PHP (served via nginx and php-fpm). The devmode startsup gwt server at port while I have my backend at port 8080. I am trying to use RequestBuilder but I dont want to use *jsonp* since I dont intend to open up my API as of now (fyi .. I tried with jsonp by having a callback argument in the url - didnt work, got a blank response). Obviously I am running into 'same origin policy'. I know once I deploy the GWT app in production I would not run into 'same origin policy' . Is there any robust solution for achieving this? Any help on this would be appreciated. Thanks, -Ketan. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT Newbie:: devmode (same origin policy) with PHP REST backend
Hi All, I am in process of exploring GWT as a potential candidate for my REST based API developed in PHP (served via nginx and php-fpm). The devmode startsup gwt server at port while I have my backend at port 8080. I am trying to use RequestBuilder but I dont want to use *jsonp* since I dont intend to open up my API as of now (fyi .. I tried with jsonp by having a callback argument in the url - didnt work, got a blank response). Obviously I am running into 'same origin policy'. I know once I deploy the GWT app in production I would not run into 'same origin policy' . Is there any robust solution for achieving this? Any help on this would be appreciated. Thanks, -Ketan. -- 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.