how to add gwt widgets to image(on top of image)
Hi,I am new to gwt.Actually my intension is adding a username label and text field as well as password label and text field to an image (this image seems to be back ground image ). I tried throgh css file but its fail. I did like this - in css file i gave like this background:transparent url(../myimages/raju/login_bg1.jpg) repeat-y repeat-x center 0; its working for only label individually but my requirement is all the username field and password field and login button are have to add background image . any body help me ... 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 -~--~~~~--~~--~--~---
Re: Integrating GWT and Hibernate without Gilead?
My project http://code.google.com/p/tocollege-net/ uses a HibernateFilter that I hacked together. I think it's an fine approach in theory, but GWT doesn't make it easy to plug in to the serialization process at the right points so it can be a pain when GWT changes its internals. The code is here: http://github.com/jdwyah/tocollege.net/tree/c9dcdf9c32fbfe9e146c39b3ccee1d9b3169deae/src/main/java/com/apress/progwt/server/gwt That said, if I were to do it again I'd probably do Gilead myself. -Jeff On Feb 27, 2:43 pm, Sumit Chandel sumitchan...@google.com wrote: Hello everyone, A reminder to be respectful, friendly and constructive when posting on the forums. All technical contributions are welcome and appreciated, however posts marking disrespect for other community members or inflammatory remarks will not be tolerated. That's not to say that it isn't okay to disagree on certain points, but this should be done on a factual and technical basis that allows the reader to learn along with the thread about why and how something could work or might require a different approach. Please, let's keep it friendly. -Sumit Chandel On Fri, Feb 27, 2009 at 6:28 AM, Rob Smith scubacarri...@gmail.com wrote: Bruno, Arthur likes to send his whole object model from the server to the client ;) Users should be careful taking advise from Arthur. He *loves* giving advise. The only problem is that they are terrible and on subjects that he has little or no knowledge. Make sure you take a second opinion before following Arthurs advise. Rob On Feb 27, 9:10 am, Arthur Kalmenson arthur.k...@gmail.com wrote: PS : using Dozer for Hibernate and GWT is a pain. Really. That's just the first reason why I develop Hibernate4GWT (now Gilead) ! How is it pain? It's one line of code: (SomeDomainObject) dozerMapper.map(retrievedFromHibernate, SomeDomainObject.class) -- Arthur Kalmenson On Fri, Feb 27, 2009 at 4:50 AM, noon bruno.marches...@gmail.com wrote: Hello, Just one question : if you app works with Gilead, why do you want to work without it ? Would you plan to work without Hibernate even if JDBC is faster ?? (ok, that's 2 questions ;-)...) Just to know... Regards Bruno PS : using Dozer for Hibernate and GWT is a pain. Really. That's just the first reason why I develop Hibernate4GWT (now Gilead) ! On 26 fév, 22:47, Arthur Kalmenson arthur.k...@gmail.com wrote: You don't necessarily have to use JSON, XML or DTOs. We reuse our Hibernate entities on the client side. However, you need to keep in mind that all types of collections (Lists, Maps, Sets, etc) are turned into a Hibernate specific Persistent* object when you get the object from the database. An easy way to remove these Hibernate specific classes is to use Dozer to map the domain object to itself. This recreates the object and copies all the collection elements to regular java.util classes. -- Arthur Kalmenson On Thu, Feb 26, 2009 at 7:33 AM, Felipe Cypriano fmcypri...@gmail.com wrote: Maybe what you're looking for is JSON, XML or DTO (Data Transfer Object). In those cases you will do the bridge between the hibernate model and the data sent to GWT client, not Gilead anymore. Regards, --- Felipe Marin Cypriano Vitória - ES http://www.linkedin.com/in/felipecypriano On Wed, Feb 25, 2009 at 2:27 PM, hezjing hezj...@gmail.com wrote: Hi I'm tried Gilead, and it works great when integrating GWT and Hibernate. I also read from the forum that we can integrate GWT and Hibernate without Gilead (and it is faster?). I'm wondering, how should we handle the lazy loading without using library like Gilead? I'm still googling for the example of GWT and Hibernate integration without Gilead :-( -- Hez- 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 google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: SEO limitation for Hyperlink
Wow. That's a pretty intense SEO solution. I hope the shadowing thing doesn't bite you, it's definitely a cool attempt. Can't you just tickle your analytics urchin directly? ie http://jdwyah.blogspot.com/2008/05/gwt-and-tickling-your-google-analytics.html In your onLoad() you should just be able to tickle it with the current #anchor if it exists, no? -Jeff On Feb 27, 10:26 am, Nicolas Wetzel wetz...@gmail.com wrote: Hi all, I'm working for a compagny which build a web site broadcasting music based on gwt:www.awdio.com On SEO, we've found some interresting stuff to cope with Ajax specifity : search engine can't have javascript engine so they are not able to retrieve the entire html produced by gwt script (or by other ajax framework script). So each page ie gwt screen can not be indexed by them. Rather than duplicate each page with a hand-made static html page accessible by the noscript tag, we produce them with a java program which launches an SWTBrowser (Eclipse 3.4) with the start url :http://www.awdio.com. The main issue with this approach is that the client program has no means of knowing when the page is fully rendered by the javascript process. In the gwt awdio code we implemented a semaphore (flag) which notifies the SWTBrowser based client of the completion. This semaphore works with a hidden DIV drawing/DIV which is accessible or not in the DOM, i.e the the html content produced contains it. With org.eclipse.swt.browser.Browser.getText() we can retrieve the html content, and test for the presence of the above mentioned flag. To do that the java program listens at the Browser statustext event (org.eclipse.swt.browser.StatusTextListener). Also, when the page is loaded, the program gets the content and looks up at all the internal links a href=# built by the gwt Hyperlink widget. Before storing the html content in a cachable static page, all the '#' are remplaced by a '/' so that the bot will get fully qualified URLs (the crawlers do not handle anchors). Finally, the program follow each links with the SWTBrowser so all the static version of the pages can be produced automaticaly. At last in the awdio server, a front-end servlet detects the user-agent of request and if it's a search engine the static produced page is returned. else the gwt host page is returned. As far as I understand, this might be considered shadowing. But the content seen by the crawler is exactly the same as the one seen by the user (after Javascript execution). In the onModuleLoad of the awdio EntryPoint the right part of the url is parsed to build the corresponding historyToken. So when thewww.awdio.com/eventsis requested on a browser, it react in the same way as if the user clicked on an internal link (#events). Everythink looksfine, but there is still a big issue. If a user copies and pastes one of our URLs on his own site, it will contain the hash sign (e.g. :http://www.awdio.com/#events). Which means that the search engine will not rank pages independently (all pages will be considered as a single one :http://www.awdio.com). We can still add link to this page buttons wherever necessary, but it's not satisfactory. To conclude, it seems that this whole solution solves the AJAX indexing issue, with the very annoying exception of page ranking (due to the #anchor URLs). Maybe Google should start to consider #anchors as having a new meaning for our Web 2.0 generation ? Maybe by considering a specific value of the rel attribute ? (e.g. : A HREF=#mypage rel=ispagelinkMy Page/A) ? --~--~-~--~~~---~--~~ 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: How to retrieve data as byte[] in GWT from getImageData
Could you say how you solved this problem? For historic purpose... Thanks in advance! I have solved problem. Kevin -- --fx --~--~-~--~~~---~--~~ 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 Smack Openfire error
Hi, I make a simply apps with gwt and on server-side I use Smack. I want to create a button that when pressed is recorded in Openfire. My problem is that not connect to Openfire Client-side SmackServiceAsync smackServiceAsync; /** * The entry point method, called automatically by loading a module * that declares an implementing class as an entry-point */ public void onModuleLoad() { Button save = new Button(Click mei); save.addClickListener(new ClickListener() { public void onClick(Widget sender) { Window.alert(ho cliccato); connect(); } }); RootPanel.get().add(save); } public void connect(){ smackServiceAsync =(SmackServiceAsync) GWT.create (SmackService.class); ServiceDefTarget endpoint = (ServiceDefTarget)smackServiceAsync; String serviceUrl = GWT.getModuleBaseURL() + smackservice; endpoint.setServiceEntryPoint(serviceUrl); login(localhost, 5222, smartsr.local, smartsr, password); } private void login(String l, int port, String service, String user, String password){ smackServiceAsync.connect(l, port, service, user,password, callback); // create an async callback to handle the result. AsyncCallback callback = new AsyncCallback(){ public void onSuccess(Object result){ } public void onFailure(Throwable caught){ com.google.gwt.user.client.Window.alert(Failed to get catalog); }}; } } Service public interface SmackService extends RemoteService{ public void connect(String l ,int a, String service , String user , String password); } ServiceAync --- Server Side--- public class SmackServiceImpl extends RemoteServiceServlet implements SmackService { public void connect(String l, int port, String service, String user, String pass) { try { ConnectionConfiguration config=new ConnectionConfiguration(l, port, service); XMPPConnection connection =new XMPPConnection(config); connection.login( user, pass); // the error is here...Not connected to server. Presence presence = new Presence (Presence.Type.available); connection.sendPacket(presence); } catch(Exception e) { System.out.println(e.getLocalizedMessage()); } } } How do I do? --~--~-~--~~~---~--~~ 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: SmartGWT 1.0b2 Released
Hi Benoit,You can essentially override the transformRequest(DSRequest requeest) of DataSource and read the request parameters like startRow, endRow, sort / filter params and issue your own GWT-RPC call and set the returned data on the DataSource. Several users have asked for such a sample and I'll definitely add it. Its just that other higher priority items and releasing 1.0b2 had taken precedence. I'll post updates when such a sample hits SVN on the SmartGWT forum. Thanks, Sanjiv On Fri, Feb 27, 2009 at 12:34 PM, Benoit.Sauve benoit.sau...@gmail.comwrote: Hi Sanjiv, good work for this release! i have a question. I want to use RPC Calls with data grid and you wrote you made something better in the release notes : improved support for users to wire DataSource's with GWT-RPC calls. Can you add as example in your showcase of a datasource using RPC Calls ? Best regards, Benoit P.S. Sorry if you read two posts of me about the same thing, i'm not sure if it works the first time. On 27 fév, 07:27, Sanjiv Jivan sanjiv.ji...@gmail.com wrote: Hi,SmartGWT 1.0b2 has just been released. This release contains the much awaited Enterprise Gray skin. SmartGWT 1.0b2 is a stability release and contains various enhancements and bug fixes. GWT 1.6 M2 is also supported. Along with performance improvements, several new features and developer tools have been added. Some of the new features are : full support for WebServices (WSDL), portal support, checkbox selection for grids, and support for overlapping events in Calendars. A few new samples including Portals have been added to the showcase. These can be found under the New Samples side nav category. You can find the release announcement here : http://www.jroller.com/sjivan/entry/smartgwt_1_0b2_released_with Project Page :http://code.google.com/p/smartgwt/ Showcase Demo :http://www.smartclient.com/smartgwt/showcase/ Thanks, Sanjiv --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Bug in gwt Grid, Setting Background image
Hi, I found a bug in gwt grid. I just set a normal background image: css code: .myMainGrid{ background-image: url('http://code.google.com/webtoolkit/ logo-185x175.png'); } java code: public class Tester extends Composite { Grid mainGrid; public Tester() { mainGrid = new Grid(10,10); mainGrid.setWidth(500+px); mainGrid.setHeight(500+px); mainGrid.setBorderWidth(1); initWidget(mainGrid); setStyleName(myMainGrid); } } entry point code: public class MyEntryPoint implements EntryPoint { /** * This is the entry point method. */ public void onModuleLoad() { DialogBox dlgMainScreen = new DialogBox(); dlgMainScreen.setText(test ); dlgMainScreen.add(new Tester()); dlgMainScreen.show(); dlgMainScreen.center(); } } Here is my screenshot: www.freewebtown.com/salvindata/data/gwt%20background%20bug.JPG What is undesirable is that every cell in First Column gets the same image as background. i tried same css in a simple html table and i found it works fine. why does gwt do so ? --~--~-~--~~~---~--~~ 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 + JasperReport
Hello friends, the servlet shows how to generate reports using jasperReport. //Servlet GetReport package com.javaneses.report.server.report; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.net.URL; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.Locale; import java.util.Map; import javax.servlet.ServletException; import javax.servlet.ServletOutputStream; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import net.sf.jasperreports.engine.JRDataSource; import net.sf.jasperreports.engine.JRException; import net.sf.jasperreports.engine.JRField; import net.sf.jasperreports.engine.JasperExportManager; import net.sf.jasperreports.engine.JasperFillManager; import net.sf.jasperreports.engine.JasperPrint; import net.sf.jasperreports.view.JasperViewer; /** * @author Vagner Araujo * */ public class GetReport extends HttpServlet{ private static final long serialVersionUID = -5295343701909694274L; protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { final String reportFileName = request.getParameter (reportFileName); final String reportName = request.getParameter(reportName) +.jasper; response.setContentType(application/pdf); response.setHeader(Content-disposition, attachment; filename=\ + reportFileName + \); MapObject, Object map = new HashMapObject, Object(); //add report logo //logo path final String logoPath = com/javaneses/report/server/report/ logo.jpg; URL url = ClassLoader.getSystemResource(logoPath); //report parameter map.put(logo, url); try { //file.jasper path final String reportPath = com/javaneses/report/server/ report/+reportName; url = ClassLoader.getSystemResource(reportPath); File file = new File(url.toURI()); InputStream inputStream = new FileInputStream(file); JasperPrint jasperPrint = JasperFillManager.fillReport(inputStream, map, /*Your dataSource*/)); byte[] report = JasperExportManager.exportReportToPdf(jasperPrint); response.setContentLength(report.length); ServletOutputStream out = response.getOutputStream(); out.write(report); out.flush(); out.close(); } catch (Exception e) { e.printStackTrace(); } }//end doPost }//end class Parameters reportFileName = name to be suggested when the report is saved. reportName = name of the jasper file compiled. Vagner Araujo vag...@jdukes.com --~--~-~--~~~---~--~~ 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 Smack Openfire error
Hello, before you invoke the login method, you must invoke the connect() method. connection.connect(); connection.login( user, pass); Vagner Araujo. vag...@jdukes.com http://jtalk.jdukes.com --~--~-~--~~~---~--~~ 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: How to create listbox with nothing selected by default?
Hello Dave, I have a similar issue with you. Not exactly the same but I think it is much related. On IE and Hosted (on all other browsers it is working properly) even if I do SetVisibleItemCount = 18 I will see only a small listbox with place to see only the first element of the list (the same height with a textbox). How did you overcome this? From your description I understand you went one step further and you discovered a new bug in the same area of GWT ( listbox + setVisibleCount + IE/Hosted). Thanks, Doru http://java-hobby.blogspot.com/ On Feb 27, 7:16 pm, Dave E davee...@gmail.com wrote: I'm trying to create a listbox with a visibleItemCount of more than one (I want a list, not a dropdown), with none of the items in the list selected by default. I've tried everything I can think of, and I'm still seeing the first item selected by default in both IE and the native development browser (it happens to work the way I want in firefox though). I found another post suggesting setting the selected index to -1, then programatically unsetting the previously selected item setItemSelected(index, false), but that doesn't work for me either. Anyone have any ideas how I might accomplish this? Seems like it should be easy, but I'm embarassed to admit I've already spent hours trying to get it working. Thanks, -Dave --~--~-~--~~~---~--~~ 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: SmartGWT 1.0b2 Released
Hi Sanjiv, thanks a lot! I'll check it for sure! Benoit On 28 fév, 11:21, Sanjiv Jivan sanjiv.ji...@gmail.com wrote: Hi Benoit,You can essentially override the transformRequest(DSRequest requeest) of DataSource and read the request parameters like startRow, endRow, sort / filter params and issue your own GWT-RPC call and set the returned data on the DataSource. Several users have asked for such a sample and I'll definitely add it. Its just that other higher priority items and releasing 1.0b2 had taken precedence. I'll post updates when such a sample hits SVN on the SmartGWT forum. Thanks, Sanjiv On Fri, Feb 27, 2009 at 12:34 PM, Benoit.Sauve benoit.sau...@gmail.comwrote: Hi Sanjiv, good work for this release! i have a question. I want to use RPC Calls with data grid and you wrote you made something better in the release notes : improved support for users to wire DataSource's with GWT-RPC calls. Can you add as example in your showcase of a datasource using RPC Calls ? Best regards, Benoit P.S. Sorry if you read two posts of me about the same thing, i'm not sure if it works the first time. On 27 fév, 07:27, Sanjiv Jivan sanjiv.ji...@gmail.com wrote: Hi,SmartGWT 1.0b2 has just been released. This release contains the much awaited Enterprise Gray skin. SmartGWT 1.0b2 is a stability release and contains various enhancements and bug fixes. GWT 1.6 M2 is also supported. Along with performance improvements, several new features and developer tools have been added. Some of the new features are : full support for WebServices (WSDL), portal support, checkbox selection for grids, and support for overlapping events in Calendars. A few new samples including Portals have been added to the showcase. These can be found under the New Samples side nav category. You can find the release announcement here : http://www.jroller.com/sjivan/entry/smartgwt_1_0b2_released_with Project Page :http://code.google.com/p/smartgwt/ Showcase Demo :http://www.smartclient.com/smartgwt/showcase/ Thanks, Sanjiv- Masquer le texte des messages précédents - - Afficher le texte des messages précédents - --~--~-~--~~~---~--~~ 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: What are your thoughts on Cappuccino and SproutCore?
There's a drag-n-drop project already: http://code.google.com/p/gwt-dnd/. It's run by Fred Sauer who was recently hired by Google. -- Arthur Kalmenson On Fri, Feb 27, 2009 at 1:00 PM, Rich Dean rdean1...@gmail.com wrote: Does anyone know what the equivalent GWT UI development tool would be? I played around with GWT about a year ago so I am assuming there are some better tools out there for drag-n-drop development of a GWT UI? --~--~-~--~~~---~--~~ 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] Comment on WAR_Design_1_6 in google-web-toolkit
Comment by atifijazkhan: A quick question about 1.1 A generated selection script is copied into war/qualified.ModuleName/ Will the folder for a module will always be created in the war/ directory? What if the Launch html file is not in the root war/ directory but is in another subdirectory? Currently I see no option to specify the location for the module specific directory. For more information: http://code.google.com/p/google-web-toolkit/wiki/WAR_Design_1_6 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] RemoteServiceServlet
So just a quick proposal: Remove the private on writeResponse and make it protected. I understand that ProcessCall is package default, but it is causing me problems with my current effort. What I want to do is take a large, but slow, build process and have it Comet stream responses to a single method call on an RPC service that implement StreamServiceIterator back out. I can do this by clobbering the processCall() method, the problem is, if I monkey with the Response output stream at that point, writeResonse() is always going to throw exceptions (outputstream closed). However, because I am wanting to stream data from a network read, rather than read it all into the server RAM, waiting for writeResponse() to get called is unacceptable. If I could just do this in the processCall() and make writeResponse() silently do nothing, that would be ideal. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---