Re: Database and GWT
Hi , You can use the RPC calls to insert the data into database create a method and pass the the data into method .. and at server side please fetch this data from method and save it into your database. On Aug 6, 6:24 pm, spierce7 wrote: > Why does no one want to use AppEngine? > > On Aug 5, 5:56 pm, Diego Venuzka wrote:> Hi! > > After some hours without sleep to solve my compilation problem, i stop in > > another problem. I'll need to insert data in database, and how GWT can help > > with this? Or i can insert using the "tradicional method" with Java? > > Thanks =) > > > -- > > Diego Venuzka -- 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 update database, when a row a deleted in the smartGwt ListGrid
Hello Friends... Now i need your help.. I am working on SmartGwt Expendable Grid...I am using ListGrid Class to generate grid. i want to delete the row from the grid...and changes should reflect into my database..Please provide me some idea to do that... This is my code fragment... ListGrid listGrid = new ListGrid() ; listGrid.setShowRollOverCanvas(true); listGrid.setWidth(800); listGrid.setHeight(400); listGrid.setAnimateRollOver(true); listGrid.setCanExpandRecords(true); listGrid.setAlternateRecordStyles(true); listGrid.setShowAllRecords(true); listGrid.setSelectionType(SelectionStyle.SIMPLE); listGrid.setSelectionAppearance(SelectionAppearance.CHECKBOX); listGrid.setExpansionMode(ExpansionMode.DETAIL_FIELD); listGrid.setDetailField("report"); // on click the remove button i want to delete the selected row from the database... // using this method "removeSelectedData();" my selected record deleted from the grid but not from the database. removeButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { SC.say("Inside Remove Button"); listGrid.removeSelectedData(); } }); NOTE:- I am directly fetching data from the database and set that data into the DataSource. and this datasource is linked with the grid. .. Now Please tell me how can i update my database when i delete selected record from the SmartGwt List Grid . I need Help... Thanks -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How t compile and run gwt app in eclipse and normally
Hello Friend, I am providing a link http://www.ibm.com/developerworks/library/os-ad-gwt1/ please go through with this link, you will definitely get success. it does not matter that you are beginner...do you best.. best wishes --- On Jul 1, 10:57 pm, Shedokan wrote: > It's all in the > docs:http://code.google.com/intl/iw/webtoolkit/doc/latest/tutorial/getting... > > If you'll have further questions after reading that you are free to > ask in these forums. > > On 30 יוני, 09:55, kondal rao wrote: > > > please help me out in this issue i m very much fresh to this framework > > but i know java.. -- 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 expends the rows of gwt ext's grid
Hello Friends. How are You all. My question is that.. Can we create grid like smartGwt's Grid by using gwt-ext? I have created smartGwt Grid but smartgwt is little bit slower then gwt ext, so now i want to create grid in gwt. but my problem is that i don't know how to add rows expansion in gwt ext's grid like the smartGwt's Grid. I have created smart Gwt's showcase below written example... Grids--->expanding Rows--->Memo Rows... -- 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.
Can we check uploaded file Size at client side in GWT by Reading the "header info" of the file
Hello Friends I required your views.. " Can we check uploaded file Size at client side in GWT by Reading the "header info" of the file? " Please if this is possible than please tell me how to do this. I have done lot of search on this but not get any thing till now. Please Help me. I am waiting for you response your Friend Ankit -- 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 Authenticate Uploaded file format, size at the GWT client side?
Hello Friends My Problem is that I want to Authenticate Uploaded file format, size at the GWT client side, But I not having no Idea, I did my first attempt to do so in this way. 1) By creating a method at the client side public long getFileSize(String filename) { File file = new File(filename); if (!file.exists() || !file.isFile()) { System.out.println("File doesn\'t exist"); return -1; } //Here we get the actual size return file.length(); } 2) Call to the method... long size = getFileSize(textField.getName()); if(size>5242880) { MessageBox.alert("File Size exceed Upload Limits"); System.out.println("Filesize in bytes: " + size); } else { formPanel.getForm().submit(GWT.getModuleBaseURL() +"FileUploadServlet", null, Connection.POST, "Saving Data...", false); } * But this is not working, I find the reason of this is that "GWT only support Java.lang, java.lang package at client side." Then Please tell me what i should do to authenticate the file size and format at the client side before upload start. I am waiting for response from my Respected group members . Your Friend Ankit -- 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 prevent the big and specific file to be uploaded
Hello Friends I am back to ask a question, Friends I want some views from your side about that "How to prevent the big and specific file to be uploaded?" I want that prevent the pdf file to be uploaded. I don't know how to do it? Please help me Your friends Ankit -- 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 display image stored into database onto gwt form
Hello Friends, This is my third post on this group, I am very happy after seeing the response from the group members. Now i got stuck in a problem is that, " How to display image stored into database onto gwt form ?" Objective of this post:- I have user image stored into my database, now i want that whenever a user login with her/his account , an image should we display on the user GWT profile form. for this I am using GWT FormPanel class, now i don't know how to get image from server to client gwt formpanel and display this image. NOTE:my image stored in blob data type in MYSQL. I am waiting for response from my group members. Your Friend Ankit -- 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.
disable previous dates in DateField
Hello Friends, Friends i got stuck in another problem. I want to disable previous dates form current date in the DateField of the GWT. I don't know how to do this. Please Help me. ##My code is DateField lastdate = new DateField("Answer Reciving Date", "lastdate", 190); lastdate.setAllowBlank(false); lastdate.setFormat("y/m/d"); formPanel.add(lastdate); f # Your Friend Ankit -- 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: Can we Integrate reCaptcha with GWT FormPanel
Thanks Mr. Carlo , I very much surprised after seeing that i getting too much help from all around. I am very glad after getting the such a good response. now I have became the fan of this google groups. Thanks for your support and kindness, ones again i want to say very very thank you and all the groups members. your friend Ankit On Apr 15, 1:55 am, Carlo wrote: > Hi Ankit, > > Maybe, I can help you. > > I write below the code than I use to do Captcha check. > > In the form panel: > > # > FormPanel form = new FormPanel(); > > VerticalPanel vp = new VerticalPanel(); > > HorizontalPanel hp = new HorizontalPanel(); > hp.setSpacing(10); > > codeCheck = new TextField(); > codeCheck.setFieldLabel("Controllo"); > codeCheck.setAllowBlank(false); > > verifyImage = new Image("verify.png"); > hp.add(verifyImage); > hp.setCellHorizontalAlignment(verifyImage, > HasAlignment.ALIGN_RIGHT); > hp.setCellWidth(verifyImage, "170px"); > > final Button clickImage = new Button("New image"); > clickImage.addSelectionListener(new > SelectionListener() > { > @Override > public void componentSelected(ButtonEvent ce) { > codeCheck.setValue(""); > int rand = Random.nextInt(); > String url = "verify.png?rand=" + rand; > verifyImage.setUrl(url); > } > }); > hp.add(clickImage); > > vp.add(hp); > > HTML info = new HTML("Write in the check field the sequence of > characters in the image."); > info.setStyleName("x-label"); > vp.add(info); > > panel.add(vp); > > panel.add(codeCheck); > > errorCaptcha = new HTML(""); > errorCaptcha.setStyleName("x-label"); > errorCaptcha.addStyleName("x-label-red"); > vp.add(errorCaptcha); > > Button btn = new Button("Check"); > btn.addSelectionListener(new SelectionListener() > { > @Override > public void componentSelected(ButtonEvent ce) { > if (!panel.isValid() || > codeCheck.getValue()==null) { > return; > } > service.checkCode(codeCheck.getValue(), new > AsyncCallback() { > public void onFailure(Throwable > caught) { > > MessageBox.alert("error",caught.getMessage(),null); > } > public void onSuccess(String result) { > if > (((String)result).equals("Sorry please enter correct code for > verification.")){ > > errorCaptcha.setHTML(result); > return; > } else { > > errorCaptcha.setHTML(""); > } > } > }); > // panel.submit(); // this is your form > submit > } > }); > panel.addButton(btn); > > ## > Now, the GWT RPC servlet code (it's very simple): > ## > > public String checkCode(String entercode) > { > session = getThreadLocalRequest().getSession(); > String code = > (String)session.getAttribute("verification.code"); > String attempt = entercode; > String msg = ""; > > if (code!=null && code.equals(attempt)){ > msg = "Correct verification code"; > } else { > msg = "Sorry please enter correct code for > verification."; > } > return msg; > } > > ## > In the reality the url "verify.png" for the image is a servlet, and > you must define this into web.xml: > ## > > > VerificationServlet > > com.yourpackage.server.VerificationServlet class> > > > > VerificationServlet > /verify.png > > > ## > Now the code about VerificationServlet: > ## > package com.yourpackage.server;
Can we Integrate reCaptcha with GWT FormPanel
Hello Guys, First of i want to say thanks to all you for help me a lot. THANKS ONES AGAIN. Now i have got stuck in an another problem, I want to reCaptcha into my GWT FormPanel, I don't know how to do this. I have done lot of efforts but i fail to do this. I succeed to run reCaptcha in GWT Project by configure the HTML file, but this reCaptcha not integrate with the GWT FormPanel. Please Help me ones again your friend Ankit -- 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.