Re: RootPanel.get().clear();
RootPanel.clear is inherited from Panel. The source has it iterating through the logically attached children and removing them so it should just remove anything you added from the current GWT module. If you wanted to clear everything you would call RootPanel.get().getElement().setInnerHtml(); On Nov 3, 7:45 pm, wahaha il...@yahoo.com.cn wrote: RootPanel.get().clear(); does it will clear the children element of body defined in xx.html? -- 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 with JPA located in a separate project
Even if you did include source it probably would fail to compile due to the JPA annotations. This is why the EntityProxy API was created in 2.1. I suggest that you use EntityProxy and RequestFactory in order to get your stuff to work. http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html -- 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 to get regex(Pattern and Matcher) working in client side
Thats nice that they finally added full regex capability. If you need to access a capture group in older versions of GWT use this: public static native String getRegexGroup(String toSearch, String regex, int groupNum) /*-{ return toSearch.match(regex)[groupNum]; }-*/; Or if you need to access multiple groups use this: public static native JsArrayString getRegexResult(String toSearch, String regex) /*-{ return toSearch.match(regex); }-*/; On Nov 11, 4:18 pm, Thomas Broyer t.bro...@gmail.com wrote: On 11 nov, 20:34, Jim Douglas jdou...@basis.com wrote: This can be used in GWT client code: http://download.oracle.com/javase/6/docs/api/java/lang/String.html#ma...) (Of course, you still need to be aware of the differences between Java and JavaScript regex implementations). To see if a given Java feature will work in GWT client code, see: http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html See alsohttp://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/g... which mimics the JS RegExp API and can also be used on the server-side (or unit tests without GWTTestCase). -- 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: Entire Site in GWT?
If your site is big enough to require a dedicated server I recommend Glassfish, but some projects just aren't big enough and shared Java hosting is very difficult to come by. Last time I looked for shared Java hosting some were starting to use Resin due to it's capability of handling both PHP and Java. GWT is very flexible. If I were to try and develop a small scale site on shared hosting I would probably use JSON as the communication protocol and a PHP back end using overlay objects on the client side for marshaling/unmarshaling. If you plan on using a dedicated server I would recommend a Glassfish(Java) back end with either JSON(Jersey) or GWT-RPC as the communication protocol. On Nov 9, 6:54 am, mike.cann mike.c...@gmail.com wrote: Hi Guys, Thanks for all the tips, im certainty going to take them on board when I make my choice. Im pretty sure im going to go with GWT now. The next step is to choose my server architecture. I really would like to have gone with GAE however I have done some research and read it cant handle files 1mb in size. As I need to do some image manipulation involving merging several 1mb PNGs into larger ones I think im going to be stuck if I use GAE. So my next question is does GWT play nice with other technologies and if so which do people recommend? I hope I haven't outstayed my welcome on this list! Cheers, Mike On Nov 9, 8:10 am, farmazone farmaz...@gmail.com wrote: Mike, I am also flash/flex guy. Websites built with GWT can have workflow almost the same as those built with flash (especially if you are using Flash Builder od FDT). This is a great advantage for AS3 programmers. But like flash it is not crawlable by google so you have to implement it by yourself. If you are using Tomcat - HtmlUnit is good choice. If not I recommend this approach:http://www.asual.com/jquery/address/. You should be familiar with SWFAddress so it do you no harm :) good luck On Nov 8, 5:49 pm, mike.cann mike.c...@gmail.com wrote: Hi Guys, First post on this list. I have searched for this question before posting. The only answer I could come up with was from a post in 2008 (http://groups.google.com/group/google-web-toolkit/browse_thread/ thread/c852ff3491f4d128/4b1d9c08a91e25ab?lnk=gstq=suitable+for+entire +site#4b1d9c08a91e25ab) so I thought I would ask it again in case anything has changed. As a Flash / Flex developer new to web-dev im loving the extra structure and type safety offered by GWT so im really keen to use it exclusively for a new project. So my questions are: Is GWT suitable for writing an entire website? Specifically im looking to write a site that may sit within a Facebook iframe. Has the GWT isnt web-crawlable issue been solved now? Is the script for every page on your site downloaded at the start or is it downloaded as you click a link (as in a traditional site)? Are there any other barriers to making an entire site in GWT? Cheers, Mike -- 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: A gwt-CSS problem for Advanced problem solvers
The space is correct since it is a decendant selector. In order for the no space to work the div you are trying to select would have to be a member of both classes. There are 2 options for a solution... 1) splitter is the id of the split div: .gwt-HorizontalSplitPanel #splitter {} 2) hsplitter is the class of the splitter table: .gwt-HorizontalSplitPanel .hsplitter {} On Oct 22, 10:15 am, Hilco Wijbenga hilco.wijbe...@gmail.com wrote: On 22 October 2010 08:45, alexoffspring alessales...@gmail.com wrote: .gwt-HorizontalSplitPanel .splitter { Should that be .gwt-HorizontalSplitPanel.splitter (i.e. no space)? -- 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.
Applying different styles to different cell tables
I am having a problem being able to change the style for 2 different instances of cell table. I have one instance that I want to make selectable so the css has cursor:pointer; and one that isn't so it has cursor:default;. They seem to be generated and injected with the same class name, so any ideas how I can do it just using the resources provided, or do I have to do some parent selector and assign each table a class name? public interface MpeLafBaseTableResource extends CellTable.Resources { @Override @Source({ com/google/gwt/user/cellview/client/CellTable.css, css/mpe_cell_table.css }) public Style cellTableStyle(); @Override @Source(image/mpe_gradient_bottom.png) @ImageOptions(repeatStyle = RepeatStyle.Horizontal) ImageResource cellTableFooterBackground(); @Override @Source(image/table_header.png) @ImageOptions(repeatStyle = RepeatStyle.Horizontal) public ImageResource cellTableHeaderBackground(); @Override @Source(../../resources/image/loading-bar.gif) public ImageResource cellTableLoading(); } public interface MpeLafSelectableTableResource extends MpeLafBaseTableResource { @Override @Source({ com/google/gwt/user/cellview/client/CellTable.css, css/mpe_cell_table.css, css/mpe_selection_cell_table.css }) public Style cellTableStyle(); } -- 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: JSON requests with authorization and cross-site
If it is basic auth then you should just be able to use JSONP, since it is cross site, if form auth you will need to have them auth before making the request. Remember you can't make cross site requests directly, but JSONP allows you to work around that. Since it is an authenticated request a server-side proxy is not really an option, so you are pretty much stuck with JSONP. On Oct 5, 2:18 pm, Wouter wouterwillem...@gmail.com wrote: Hi there, im quite new to GWT and i can not figure this one out... I want to do a JSON request to a server which would normally show me a popup to fill in my username and password. How can i access this with GWT? i tried the request builder and using setPassword and setUser but it doesnt work for me. The statuscode I receive after I make my request is '0' which i think is weird... can anybody help me out with 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-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: Disable Widgets till File Upload is complete
disable them in a submit handler and you can re-enable them in a submit complete handler. On Oct 5, 10:57 pm, Nitin nkam...@gmail.com wrote: HI! I am developing a web application in which the user selects several files and submits for file upload in a form. My problem is, I want to disable all the widgets on the form panel till the file Upload is complete. Currently, in my application, when the file upload begins, the user can still click on the widgets and change the field values even after the form is complete. I am using GWT for my application. Can anybody suggest me on how i can achieve disabling widgets and still make the widget accessible on the server side. Please help me Thanking you. Regards, Nitin -- 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: Minimalistic JPA in GWT 2.1.0.M3
Does your persistence.xml have the following: persistence-unit name=Domain and using the following in your session bean: @PersistenceContext(unitName=Domain) EntityManager em; On Sep 30, 11:08 pm, Y2i yur...@gmail.com wrote: Thanks for the reply. I'm doing something wrong because I'm getting the same error even when I place persistence.xml to /war/META-INF. javax.persistence.PersistenceException: No Persistence provider for EntityManager named Domain The exception is thrown in both hosted and stand-alone mode. I'll try to configure JTA transactions first before doing anything else with the JPA. On Sep 30, 6:15 pm, lineman78 linema...@gmail.com wrote: persistence.xml should be located in /war/META-INF On Sep 30, 4:28 pm, Y2i yur...@gmail.com wrote: Client's requests go the server through RequestFactoryServlet. My service objects (those annotated with @Service(SomeDomainClass.class) on the client side are being called fine. When a service method explicitly creates an entity and returns it to the client, the request returns without problems. The problem occurs as soon as I start using JPA I use EclipseLink 2.1.0. The transaction type is Resource Local for now When I try to eject EntityManager using @PersistenceContext, it is always null. When I try to get the factory using Persistence.createEntityManagerFactory(Domain), the call would throw javax.persistence.PersistenceException: No Persistence provider for EntityManager named Domain It seems that nether GWT hosted server nor deployment server (jetty-6.1.23, same as hosted server) see persistence.xml file. It does not matter what I type inside persistence.xml - the error is the same, as though it is not picked up by the server at all. Any help, especially where to place persistance.xml for a GWT project, would be greatly appreciated. Thanks in advance. Yuri -- 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: Loading GWT module after page is loaded
That is correct, you will end up with a blank page if you try to use the default iFrame linker and load modules dynamically. This used to not be the case, but is now. You could probably go back to GWT 1.5 or 1.6 and grab it's iFrame linker and use it. On Sep 30, 3:28 am, Denis Vilyuzhanin dandsoft@gmail.com wrote: I know that GWT has problem with dynamic loading after page already loaded. Because default linker uses document.write() expression during bootstrap. document.write() method replace all content of page and you get empty page. if you open you *.nocache.js which was compiled with -style DETAILED parameters you will see this in computeScriptBase() function and the last line. and actually one solution I know is using custom GWT linker. On Sep 29, 8:54 am, szebeni kha...@gmail.com wrote: Hy peps, I have a GWT App which is loading perfectly on a host page, but I need to do some interaction before Its loaded, which cause this issue: I get only a loading blank screen if I'm writing the script tag for nocache.js into the document after the page loaded. Do you know why is it and how can I fix it? I checked and the path is fine, just the generated js code behaves differently (like the function from nocache.js is undefined in the browser specific one). -- 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: Project works in development mode but compiled version fails!!!
Your regex is invalid and the unexpected quantifier is being ignored in java, but javascript is throwing an exception. The '+' after the {2,} is a quantifier after a quantifier, it needs some sort of character class before it. Depending on the goal of your match here are some valid regex strings: replaceAll(((br\\s*){2,})+, br) matches: br br \nbr br doesn't match: brbrbr (only multiples of 2) replaceAll((br\\s*)+, br) matches: br br \nbr br (any number of br's separated by white space) replaceAll((br\\ *)+, br) matches: br br br doesn't match: br br\nbr (only spaces, not all white space) On Sep 30, 1:24 pm, Jan jan.morl...@googlemail.com wrote: Hi, I just stumbled upon a very weird problem. My gwt project (GWT 2.1.0.M3/AE 1.3.6) worked flawlessly in development mode. However after compiling, it failed. I was able to reduce the problem to the following minimal example: import com.google.gwt.core.client.EntryPoint; import com.google.gwt.user.client.Window; public class Compiletest implements EntryPoint { class AcceptorDTO { public String company; public String additionalInformation; } public void onModuleLoad() { AcceptorDTO acceptor = new AcceptorDTO(); acceptor.company = ; acceptor.additionalInformation = ; String acceptorString = acceptor.company + br + acceptor.additionalInformation + br; Window.alert(acceptorString); acceptorString = acceptorString.replaceAll((br *){2,}+, br); Window.alert(acceptorString); } } In development mode, two popups appear as expected. However the compiled versions shows only one. This means that the program aborts during the replaceAll function! In my opinion, this must not happen. However before I file a bug report, I would like to know if somebody can confirm or even explain this behaviour. Thanks in advance Jan -- 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: Minimalistic JPA in GWT 2.1.0.M3
persistence.xml should be located in /war/META-INF On Sep 30, 4:28 pm, Y2i yur...@gmail.com wrote: Client's requests go the server through RequestFactoryServlet. My service objects (those annotated with @Service(SomeDomainClass.class) on the client side are being called fine. When a service method explicitly creates an entity and returns it to the client, the request returns without problems. The problem occurs as soon as I start using JPA I use EclipseLink 2.1.0. The transaction type is Resource Local for now When I try to eject EntityManager using @PersistenceContext, it is always null. When I try to get the factory using Persistence.createEntityManagerFactory(Domain), the call would throw javax.persistence.PersistenceException: No Persistence provider for EntityManager named Domain It seems that nether GWT hosted server nor deployment server (jetty-6.1.23, same as hosted server) see persistence.xml file. It does not matter what I type inside persistence.xml - the error is the same, as though it is not picked up by the server at all. Any help, especially where to place persistance.xml for a GWT project, would be greatly appreciated. Thanks in advance. Yuri -- 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 to add click handler to a panel?
If you are willing to wait till 2.1 or upgrade to the milestones addHandler has been changed to public instead of protected. On Sep 28, 4:40 pm, drthink drgenejo...@gmail.com wrote: I want to add a click handler to a panel so I extended the HorizontalPanel as shown below. It feels dirty because in the constructor I have to register the click event but put nothing in the method in order for the ClickEvent to propgate to the parent control which registers the ClickHandler. Is this the correct way of doing it or am I being a hacker? Cheers G public class HorizontalPanelSoho extends HorizontalPanel implements HasClickHandlers { public HorizontalPanelSoho(){ super(); this.addDomHandler(new ClickHandler(){ @Override //This has to be here otherwise event doesn't get passed up to the handler registered. public void onClick(ClickEvent event) { } }, ClickEvent.getType()); } @Override public HandlerRegistration addClickHandler(ClickHandler handler) { return addHandler(handler, ClickEvent.getType()); } } -- 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 to change one widget's style dynamically
Forgive me if something is slightly wrong as I'm not going to validate this through Eclipse, but I think this is what you want: Button button = new Button(Green Button); button.getElement().getStyle().setColor(green); On Sep 28, 7:31 am, ahdipost yaserizt...@gmail.com wrote: Hi everyone, I wonder, how to change only one widgets style with javascript. Not loading from a *.css file, just think about, for gwt-button, a css formta is stored in a String cssFormat=.gwt-button{color:Green;}; attribute. Is it possible to set this style to displayed button's style?? 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: embed entire GWT application into single html file
There was a single file linker in the 1.5 days, dont know if its still around, but it would blow up if it determined more than one permutation is needed. On Sep 26, 1:21 pm, Wolfgang wolfgangmey...@gmail.com wrote: I've tried doing this on my own with not much success, as the javascript generated by google web tookit is a bit too cryptic for me. What I am trying to do is this: embed all html, css, images, and javascript for my GWT application into a single html file. I only need to target a single web browser, so I don't need multiple versions of the html file. Does anyone have any hints on how I might best approach converting a standard GWT-compiled application into a single html file version? -- 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: Interested in GWT client-side JSON serialization and deserialization?
This is way too complex, just stick to overlay objects and the json2.js library(assuming you are targeting IE6 you need to include it, otherwise it is provided) with JSON.parse and JSON.stringify. On Sep 23, 9:11 am, Ciarán ciaran.mccann@gmail.com wrote: If your interested in GWT client-side JSON serialization and deserialization check out the below link http://flax.ie/flax-engine-gwt-client-side-json-serialization-and-des... -- 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: Correctly implementing history
This javadoc seems to have the full implementation: http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/History.html On Sep 23, 12:05 pm, Greg Dougherty dougherty.greg...@mayo.edu wrote: It's sad that the JavaDoc and that link I gave above both have a lot of useful information, but neither one has the complete implementation. :-( On Sep 22, 6:35 pm, lineman78 linema...@gmail.com wrote: I am assuming that you just have history listeners everywhere that matters. There are multiple ways you can fix this, you can look at the value of the history token in the constructors, or you might simply be able to call History.fireCurrentHistoryState() right after you add your listener. On Sep 22, 4:47 pm, Greg Dougherty dougherty.greg...@mayo.edu wrote: So I swiped the code athttp://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsHist..., and have somewhat implemented History. HTe problem is I haven't completely implemented it. If my app is running, going forward and backward in the history works just grand. I can even paste in a previous bookmark, and it will be dealt with correctly. However, once you've left my app, all bets are off. If I click on a link in my app that takes me outside of my app, when I hit the Back button my app rebuilds from scratch, completely ignoring the history in the Navigation bar, and then it going to the usual starting tab. How do I get my app to look at the Navigation bar, and use the history that is there? TIA, Greg -- 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: Modify files in .jar libraries
You can just treat a jar file as a zip file, nothing special except structure and extension. On Sep 23, 2:30 am, Daniela Iervolino daniela.ie...@gmail.com wrote: Hi everyone! Does anyone know how modifing files from .jar libraries? I've tried to modify some files from a library (for example, gwt- user.jar, from Eclipse and from gedit) but it doesn't save anything!! Can someone help me? P.S. I'm on Ubuntu Linux! 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: Chat with GWT
May I suggest ICEpush for chat app, here is a GWT chat demo: http://demos.icepush.org/icechat-gwt/ On Sep 23, 7:26 am, danigb dan...@gmail.com wrote: There's a library (emite.googlecode.com) that allows to send and receive messages from a xmpp server using a proxy using the BOSH technique (http://xmpp.org/extensions/xep-0124.html) Maybe it helps Bests Dani On Sep 22, 9:15 am, Thomas Martin martin.thomas...@gmail.com wrote: Can you give the error you got ? Generally, it is better to implements IsSerializable, which is the serialization interface of GWT, rather than Serializable, which is the classic Java serialization interface, which should work but causes sometimes some issues. -- 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: Crop a photo stored locally
If you want to do everything client side you will have to use a Java applet. To do it with GWT you will have to upload the file to the server. Doing so depends on your server-side approach. Whichever approach you are using you should research multi-part form data for uploading a file. You will then need to save the file locally, or you could try to save the raw file data to a database. You will then need to expose the image via a RESTful GET which you can point an img tag at. Then once you integrate something similar to the UI libraries you suggested above you will then send the bounding box back up to the server and use Java image manipulation libraries to crop the image and then resave it in the method you used before. Remember, GWT can integrate with any javascript library, so you can wrap any of the UI libraries above with some JSNI methods. On Sep 22, 9:02 pm, Josh Tinkham unitin...@gmail.com wrote: I'm building a costume database program for a local high school. I want the kids to be able to take a picture of a costume, load the memory stick on a PC and upload the pic via a FileUpload widget, then present them with a photo cropping gui to cut down the picture. From there the post-cropped pic goes back to the server and into a database. There's lots of stuff on this forum saying I can't read the JPG directly from the client browser, so I think that means I have to use the form widget with an HTML servlet (right?). Once its on the server, I need to get the pic back to the client (how do i do that)? Then present it with a cropping mechanism. There are some really slick looking croppers on the web, but haven't found anything on how to pull them into GWT: Yahoo ImageCropper:http://developer.yahoo.com/yui/examples/imagecropper/simple_crop.html Kroppr:http://kroppr.rborn.info/ Jcrop:http://deepliquid.com/content/Jcrop.html How can I get these overlaid on my picture, then get the results after the user has accepted their crop operation so the numbers can be sent back to the server to actually crop the pic? -- 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: Correctly implementing history
I am assuming that you just have history listeners everywhere that matters. There are multiple ways you can fix this, you can look at the value of the history token in the constructors, or you might simply be able to call History.fireCurrentHistoryState() right after you add your listener. On Sep 22, 4:47 pm, Greg Dougherty dougherty.greg...@mayo.edu wrote: So I swiped the code athttp://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsHist..., and have somewhat implemented History. HTe problem is I haven't completely implemented it. If my app is running, going forward and backward in the history works just grand. I can even paste in a previous bookmark, and it will be dealt with correctly. However, once you've left my app, all bets are off. If I click on a link in my app that takes me outside of my app, when I hit the Back button my app rebuilds from scratch, completely ignoring the history in the Navigation bar, and then it going to the usual starting tab. How do I get my app to look at the Navigation bar, and use the history that is there? TIA, Greg -- 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: Singleton Class in Development Mode
Which is the way it should correctly act because that is how Javascript acts. If you want a singleton to span multiple tabs and sessions go back to an applet. If you want similar behavior in javascript you need to use cookies, but be aware of the associated security issues. On Sep 22, 10:34 am, Moshe Solomon udel...@gmail.com wrote: I'm not sure if this is because of the GWT plugin, but maybe you guys know... I have a Singleton class which I use to store the user authentication. But When I reload my page (with F5) the singleton is reloaded, as if the VM is restarted. public class AuthenticationManager { private static final AuthenticationManager m_instance = new AuthenticationManager(); private boolean m_authenticated = false; private AuthenticationManager() { System.out.println(AuthenticationManager Constructor); } public static AuthenticationManager getInstance() { return m_instance; } public boolean isAuthenticated() { return m_authenticated; } public boolean authenticate(String uid, String pwd) { if (uid != null uid.trim().length() 0) { if (pwd != null pwd.trim().length() 0) { return (m_authenticated = true); } } return false; } } -- 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 do i get the row index and column index in each cell on mouse over event
Cell cell = view.getCellForEvent(event); int row = cell.getRowIndex(); int col = cell.getCellIndex(); OR private int getRowForEvent(MouseEvent? event) { Element td = getEventTargetCell(Event.as(event.getNativeEvent())); if (td == null) { return -1; } Element tr = DOM.getParent(td); Element tbody = DOM.getParent(tr); int row = DOM.getChildIndex(tbody, tr); return row; } On Sep 21, 4:24 am, Ivan lin.shihh...@gmail.com wrote: Hi all, I've searched much document about how to get the row index and column index on mouse over event, but i'still have no idea about that. Can you give me some example code tell me how to do that ? I can get element like below step, but how do i to get row index and column index ? public void onBrowserEvent(Event event) { Element td = getEventTargetCell(event); } Thank you. -- 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: ScrolPanel Question
http://rcswebsolutions.wordpress.com/2007/01/02/scrolling-html-table-with-fixed-header/ On Sep 21, 12:07 pm, skippy al.leh...@fisglobal.com wrote: Well, thanks for the respond. However, I was not all that clear. I have very picky users and here is the real scoop: I am using UIBinder and here is my ui.xml: g:FlowPanel styleName='{style.outer}' g:FlexTable ui:field='grandTotalHeader' / g:FlexTable ui:field='grandTotalData' / g:FlexTable ui:field='tableHeader' / g:ScrollPanel ui:field='scroller' tdcbWidget:TDCBFlexTable ui:field='tableData' / /g:ScrollPanel /g:FlowPanel As you can see, the heading is outside the scrollPanel list, This allows for the user to scrol the data without loosing the heading section. When the scrollbar is visible, the column headings do not match that of the list. Any ideas? On Sep 17, 1:47 am, Santosh kumar kopp@gmail.com wrote: Hi skippy, ScrollPanel, its automatically adjust the scroll bars. ScrollPanel scrollPanel = new ScrollPanel(); scrollPanel.setSize(width, height); scrollPanel.clear(); RootPanel.get(div-id).clear(); RootPanel.get(div-id).add(scrollPanel); On Sat, Sep 11, 2010 at 2:03 AM, skippy al.leh...@fisglobal.com wrote: I need to ack a scrolPanel if its vertical scrol bar is visible, If so, I need to adjust the width of the table. 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Thanks Regards *S a n t o s h k u m a r . k*- 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-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: Evaluating string: (A+sin(B)) where A=1, B=2
There are plenty of Java implementations that do the same thing if you would prefer sticking with Java. Popular Java projects include Jep(http://sourceforge.net/projects/jep/) and JFormula(http:// www.japisoft.com/formula/). On Sep 20, 4:04 pm, Janko janko.sla...@gmail.com wrote: The best way I found is using something like it is described here:http://code.google.com/webtoolkit/doc/latest/tutorial/Xsite.html Where the server would host a mathparser.py... I would like to evaluate the string at the server side, so the server implementation would call the py script... what do you think about this solution? thanks On Sep 20, 10:04 pm, Janko janko.sla...@gmail.com wrote: Hello everybody! What is the simplest way to evaluate an string expression with know parameters on the server side??? Please help! -- 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: clearing or preventing double-click selection
This works for preventing all selection on a widget. addDomHandler(new MouseDownHandler() { @Override public void onMouseDown(MouseDownEvent event) { event.preventDefault(); } }, MouseDownEvent.getType()); On Sep 14, 3:53 am, Thomas Broyer t.bro...@gmail.com wrote: On Sep 12, 9:29 pm, decitrig rws...@gmail.com wrote: I'm working on an application that responds to double clicks on text labels, and I'd like to either disable double-click text selection or clear it from within the event handler. I tried $doc.selection.clear() in a native method, but apparently $doc.selection is not an object - it may be that the selection isn't occurring until after the double- click handler is getting called. I did try stopPropagation and preventDefault, neither helped. Any pointers? There's a CSS property that you can use to disable text selection: user-select. It's available in WebKit (-webkit-user-select) and Firefox (-moz-user- select). I can't tell for Opera (-o-user-select?). In IE, you'd have to listen to an onselectionstart event and cancel it. -- 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: clearing or preventing double-click selection
In your onClick method you can call event.preventDefault() to keep the browser from handling the event. On Sep 12, 1:29 pm, decitrig rws...@gmail.com wrote: I'm working on an application that responds to double clicks on text labels, and I'd like to either disable double-click text selection or clear it from within the event handler. I tried $doc.selection.clear() in a native method, but apparently $doc.selection is not an object - it may be that the selection isn't occurring until after the double- click handler is getting called. I did try stopPropagation and preventDefault, neither helped. Any pointers? -- decitrig -- 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 could we know if GWT project will continue to be maintained by Google?
I am pretty sure gmail is.. On Sep 13, 7:48 am, marius.andreiana marius.andrei...@gmail.com wrote: Hello, While comparing GWT with other solutions for a long-term project, we wondered how could we know if GWT project will continue to be maintained by Google, since it's available for free and Google makes no (direct) profit from it. We tried to look at what projects Google has that rely on GWT and are also profitable, such as AdWords. Are there any others? Is any part of Google Apps using GWT? (Wave will be closed, so it doesn't count). PS: I know GWT is open source. Maintaining it by ourselves in case Google decides to drop support for it it's not an option for us. Thanks Marius -- 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: To cancel form submit event of FormPanel on press of enter key
add a submit handler and you can call cancel on the event. On Sep 13, 9:58 am, nirav patani nirav...@gmail.com wrote: Is there any way to cancel a GWT submit event on press of enter key. I want to perform som validations on the gwt page and then only invoke form.submit() method. but form gets submitted by pressing of enter key. Any suggestions to do the same ?? -- 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-servlet.jar keeps reappearing on client side application
RPC can be used even without GAE, so this is why eclipse keeps adding it. I am not sure if there is a way to tell it not to. On Sep 11, 9:31 am, marius.andreiana marius.andrei...@gmail.com wrote: Hi, On a GWT Eclipse project (which doesn't use AppEngine), although I removed gwt-servlet.jar, it keeps re-appearing once in a while. Is it needed for development mode/debugging? If not, how could I convince GWT/Eclipse to stop creating it? 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: Change Cursor Shape
CSS attribute cursor. http://www.w3schools.com/css/pr_class_cursor.asp On Sep 10, 11:39 pm, udayanga ranasinghe udayanga.u...@gmail.com wrote: Hi All, Please tell me how to change the cursor shape in MouseMoveEvent event. Thanks Regards. Udayanga. -- 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: Difference between URL.decode and URL.decodeComponent
decode and encode component is intended to be used in parts of the query. Take the following url for example: http://www.google.com/search?q=fox%26hound |___| component The bigggest difference between encode and encodeComponent is what special chars it will encode. Notice above %26, which is an ampersand. This will only be encoded with encodeComponent, not encode. On Sep 10, 10:00 am, Kady kaushika...@gmail.com wrote: What is the difference between URL.decode and URL.decodeComponent methods ? Any example is appreciated. Thank you. -- 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: Variable UI
I think you are making thins too complicated. What are you doing with so many images? Browsers can do client-side scaling of images for you if you use the img tag (background image scaling is coming in CSS3). It seems like you are a thick client developer and don't have much experience with web development, am I correct. When doing textures and gradients for web development you usually make something that can be repeated. Also, if you can select a CSS3 compatible browser you can use gradients and rounded corners built in so you don't even need images for those. If you must do image generation real time some cool stuff has come out with SVG lately(http:// raphaeljs.com/). Dealing with an HTML UI is a much different mindset from thick clients. In thick clients you have to tell it exactly what to do, in HTML you describe what you want it to do and it will handle the layout and such real time. So I guess for more targeted help please describe what the purpose of the majority of your images are and why you believe you need to generate them real time on the server. On Sep 9, 9:13 am, pete bobobo...@hotmail.com wrote: Hmm, I guess I was stupid, I should just use a service to dynamically create images of the right size on the server-side and flush them to the client, then I have variable resizing and can use 100% size in the browser, right? (sorry, I'm not too experienced in programming web- apps) -- 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: Translating already compiled Java?
I have been battling this issue for a while and the solution really depends on your architecture. The question is are they truly POJOs or do they have JAXB annotations? If they have JAXB annotations GWT will blow up, if not you can trick the GWT compiler into letting you use an external library, but you will also need a jar with the source in the classpath of the GWT compile too. Lets assume the following package structure: POJOs: // you will need your ejb jar and a jar that contains the source, but the source is only needed for the ejb compilation(you might even be able to get away with just pointing to the src dir in the classpath of the compile) com.example.ejb.entity GWT: com.example.gwt EntryPointModule.gwt.xml // include com.example.ejb.PojoResourceModule com.example.ejb PojoResourceModule.gwt.xml // add this file to allow you to include the pojos as a module, this should have sourceentity/source On Sep 8, 3:56 am, Gary Madden garymad...@gmail.com wrote: Hello, Sorry if this is a silly question but I was wondering whether it's possible to get the GWT compiler to translate already compiled Java code into JavaScript? I know that you can specify Java source code to translate using the source elements in the XML module file. The reason is, I have a JAR that is generated from a WSDL. My GWT web app makes SOAP requests using this JAR. There is a problem in that I have to write a lot of classes at the moment that basically replicate the POJOs in the JAR just so they can be used in GWT. This may lead to bugs where not all the fields are properly set from the SOAP objects. In fact, I've already found and fixed quite a few bugs relating to 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-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 to get HTTP Response headers?
Works fine for me: @Override public void onResponseReceived(Request request, Response response) { String toPop = ; for (Header header:response.getHeaders()) toPop += header.getName() + : + header.getValue() + \n; Window.alert(toPop); } pops up: X-Powered-By: Servlet/3.0 Server: GlassFish Server Open Source Edition 3.0.1 Content-Type: application/json Transfer-Encoding: chunked Date: Thu, 09 Sep 2010 23:46:05 GMT On Sep 9, 5:07 pm, ussuri michael.glas...@gmail.com wrote: Does the silence mean this is impossible? Or just very difficult? MG On Sep 8, 8:45 pm, ussuri michael.glas...@gmail.com wrote: Hello! I can't figure out how I can get HTTP Response header. In com.google.gwt.http.client.RequestCallback.onResponseReceived() method (a callback from RequestBuilder) there is a Response parameter that has getHeder() and getHeaders() methods, but these always return empty strings or nulls. FireBug shows that the headers are there, but I can't get them in GWT... THanks, MG -- 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: Adding Event Handlers on the body element...
Similarly you should probably also check the type. and you could emulate the normal handler style of the rest of the GWT architecture. Event.addNativePreviewHandler(new NativePreviewHandler() { @Override public void onPreviewNativeEvent(NativePreviewEvent event) { NativeEvent ne = event.getNativeEvent(); if (KeyDownEvent.getType().getName().equals(ne.getType())) System.out.println(Yipeee!); } }); On Sep 9, 5:11 pm, Carlos Aguayo carlos.agu...@gmail.com wrote: You can try something like this: Event.addNativePreviewHandler(new NativePreviewHandler() { @Override public void onPreviewNativeEvent(NativePreviewEvent event) { int KEY_F8 = 119; if (keyup.equals(event.getNativeEvent().getType()) event.getNativeEvent().getKeyCode() == KEY_F8) { // do something onkeyup f8 } } }); On Aug 6, 8:45 pm, seth.ho...@gmail.com seth.ho...@gmail.com wrote: Hello, I'm using GWT for 2 years now and i did many great things with it. However, i'm still looking for how to implements KeyboardHandlers on the BodyElement. The only way i found is writing something like this in the HTML file : bodyonkeypress=return keyPress(event); onkeydown=returnkeyDown(event); onkeyup=return keyUp(event); And something like that in the EntryPoint public void onModuleLoad() { // publish();} private native final void publish() /*-{ $wnd[keyPress] = function(event) { @webapp.client.Application::keyPress(Lcom/google/gwt/dom/client/ NativeEvent;)(event); } $wnd[keyUp] = function(event) { @webapp.client.Application::keyUp(Lcom/google/gwt/dom/client/ NativeEvent;)(event); } $wnd[keyDown] = function(event) { @webapp.client.Application::keyDown(Lcom/google/gwt/dom/client/ NativeEvent;)(event); } }-*/; But i'm really not satisfied with that solution. Any ideas please ? -- 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: Variable UI
What you are describing is very similar to worldofsolitaire.com. I suggest that you play around with it for a bit and use firebug to inspect how he does things in html. I believe he is using just one image for each card and letting the browser scale it. This way you only need one image for each card and you just let the browser handle the sizing. He is also doing some stuff that I have had difficulty getting to work in the past, but is a necessity with such an application. You need to be able to sense both when the browser resizes(easy) or when the layout is changed on the screen(more difficult as this requires you to set up your own eventing for whenever the size of anything changes and therefore becomes very heavy). I do however believe you will be able to get away with just one set of cards letting the browser resize it for you. Like I said in order to do so you will need to use the img tag, therefore ImageBundle is not a good solution because it creates an image with the background therefore not allowing for client side resizing. Firebug is your friend with GWT development, so if you aren't sure what the Java code is producing inspect it with firebug and make sure it's what you want. On Sep 9, 5:46 pm, pete bobobo...@hotmail.com wrote: This one app is a card game, with approx. some hundred cards when fully designed. So each card has a small image shown in the UI (dragable, if possible 2 rows a 5 small cards independent of the resolution) and on click shows a popup with the full image including card description. Furthermore 5 small views of stacks to the left on top of each other, which mainly consist of smaller versions of the same cards. The popups from the small stacks are the same images in different sizes once again... I created widgets for this card type, to take care of presenting the small image with possibility to display the full one, etc. Furthermore options to automatically scale the card to a certain height (by using the setHeight() , setWidth() methods). It all works, once the browser was refreshed. I also dynamically create the playfield, left an area for card stacks, right side a play field with drag and drop support. But even the play area is not proportioned correctly until refresh... (I set 1/5 percentage of Window.getClientWidth() for the card stack area) The caching of the images is right now to present each card image once on the screen, cause I only know that way to cache the images in the browser (since ImageBundle doesn't work for my case I guess...). So I have a timer running switching through every possible card with a certain speed low enough to show the cards on screen... So this all together is everything but satisfying... For the cards I either need different resolutions on the server, so I can adjust to the client window size, or I have to create them dynamically... I want this to run on the GAE for now, so the more work the client does, the better, right? (With respect to quotas) Anyway, I really appreciate your help :-) You're quite right that I don't have much experience in web development ;-) -- 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: DisclosurePanel, class-name content
Then the problem isn't with GWT; it is with the site you are integrating with not having a convention. I do agree that it would be nice to be able to change this and if it bugs you that much you can, it's just not as easy as it could be. They have a private static string with the style name within disclosure panel, but you can't change it as easy because everything is private, instead you will have to remove the name after it is added and add your own by overriding the setContent method On Sep 7, 11:36 pm, Jaroslav Záruba jaroslav.zar...@gmail.com wrote: On Wed, Sep 8, 2010 at 2:43 AM, lineman78 linema...@gmail.com wrote: It is because content and header all both children of the gwt- DisclosurePanel class and they expect you to use child selectors. Here is what they expect you use so that you don't end up with collisions: .gwt-DisclosurePanel .content { border: 2px solid black; } In other words, this ^^^ does not address the issue. Regards J. Záruba -- 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: Variable UI
Remember, most UI is in html, so use width=100% whenever possible. Also, you can use the layout panels so that you theoretically don't have to deal with browser quirks such as IE's box model bug. A refreshing layout such as the one you discussed is a very heavy handed layout model and should be avoided at all costs and can cause major performance problems, this is one of the main drawbacks to GXT and SmartGWT IMO. On Sep 8, 10:17 am, pete bobobo...@hotmail.com wrote: Hello, I'm a little confused, I tried to create a variable UI, meaning titlebar with shall be adjusted to the browser window size, and various graphics to be scaled, fitting any resolution. (I use stuff like Window.getClientWidth() and image.setWidth(int)) But now, when I first open the page, it is strangely dislocated, in a wrong size or some graphics not loaded at all. If I press refresh and load the module again, everything is fine. Does anyone know the reason for that? Principally I could include an auto refresh just at the beginning, but a) that is not really a nice solution and b) if I have various stations in my app where such a variable adjustment happens, I have to refresh several times (if a new variable widget is loaded after the first one, it needs refresh again, then the second time everything with that widget is fine, too) Hope anyone can shed some light on that, cause I'm really confused why it just doesn't work right away but after a refresh... 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-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: DisclosurePanel, class-name content
I agree with you that the reason for the prefixing is to prevent collisions, but agree(assuming the following was the the GWT team's reasoning) that only the parent element in a widget should have the prefix and not the sub elements. If you wanted to add a prefix to every class name in your UI, the further down in the DOM you go the bigger the class names would be. This was the reason behind the creation of CSS selectors. I will use a tab panel as an example. Assume I want to change the width of the upper left hand corner of a rounded tab on a specific class of tab panel. gwt-DecoratedTabPanel header tab upperLeft {} vs gwt-DecoratedTabPanel gwt-DecoratedTabPanel-Header gwt- DecoratedTabPanel-Header-Tab gwt-DecoratedTabPanel-Header-Tab- UpperLeft Yes this is more inconvenient for people integrating into other sites that do not have prefixes, but I find it pretty hypocritical that you would expect GWT to avoid collisions with classes that are blatantly defined without the same consideration. I also do see your point that within GWT they do tend to add the prefixes to most class names, so it is interesting that they would choose to omit it here. Also, you have to take into account a balance in selectors and the expense of ancestor selectors. At IO there was a talk on efficiency for the past couple years and one of the points was the way browsers handle ancestor selectors and how it will cause slow down if you use a common name as your root(upperLeft in the context above). It will walk the entire DOM tree every time it sees an element with the class upperLeft. So it is a balance and content is such a common one that I may concede due to performance degradation. On Sep 8, 3:09 pm, Jaroslav Záruba jaroslav.zar...@gmail.com wrote: Just to be clear, I don't need advices on workaround. I honestly believe this is just an omission. (The other option wold be 'blatant example of bad design', but we're not talking MSIE here.) The reason behind prefixing class-names used in GWT is, IMO, very obvious - to prevent exactly this kind of collisions. When virtually all the class-names used in GWT are name-safe to me it feels wrong to be forced to fix one nested class-name before releasing a GWT-component to the world. (Even the class-name for open DisclosurePanel is strongly prefixed: gwt-DisclosurePanel-open.) Adding something like fix your class-names before you use this to your release notes is IMO a big 'no go'. Some people might want to use your component on a website that runs on something they did not write. Well, if you can't see it, I won't probably change your mind. So thanks for the discussion. Cheers JZ On Wed, Sep 8, 2010 at 8:03 PM, lineman78 linema...@gmail.com wrote: Then the problem isn't with GWT; it is with the site you are integrating with not having a convention. I do agree that it would be nice to be able to change this and if it bugs you that much you can, it's just not as easy as it could be. They have a private static string with the style name within disclosure panel, but you can't change it as easy because everything is private, instead you will have to remove the name after it is added and add your own by overriding the setContent method On Sep 7, 11:36 pm, Jaroslav Záruba jaroslav.zar...@gmail.com wrote: On Wed, Sep 8, 2010 at 2:43 AM, lineman78 linema...@gmail.com wrote: It is because content and header all both children of the gwt- DisclosurePanel class and they expect you to use child selectors. Here is what they expect you use so that you don't end up with collisions: .gwt-DisclosurePanel .content { border: 2px solid black; } In other words, this ^^^ does not address the issue. Regards J. Záruba -- 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.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Cross Site Requests for JSON : Invalid Label
In other words you are using JSONP client code to hit a JSON service. Without more info I am assuming this is your problem. In order to make cross site requests using the method described on the page you referenced you service needs to output JSONP, that is wrapping the JSON with a call to the specified function; i.e. /test? callback=testFunction would return testFunction({testAttribute:testStringValue}). Also, since 2.0 the JsonpRequestBuilder class is provided and you don't have to go through as much trouble as you did in 1.6, which is what the referred article is targeting. http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/jsonp/client/JsonpRequestBuilder.html I had a search for solutions and all I could find was things about adding parenthesis around the json string in the eval function. I do not use the eval function and the json is not a string - it is a JavaScriptObject. This is true if you would like to use JSON directly if you are not making a cross-site request. you will sometimes need to wrap the JSON returned by the service with {+jaonText+} if you use request builder, which will return a string then you will have to make a native method to call eval to translate that string into a javascript object, but if you are making a cross-site request then you must use the JsonpRequestBuilder. On Sep 7, 7:31 am, kudos miss.michelle.dor...@googlemail.com wrote: I have followed the steps here:http://code.google.com/webtoolkit/doc/1.6/tutorial/Xsite.html to create a call to another server for JSON data. Firebug shows an invalid label error when i run the application. I had a search for solutions and all I could find was things about adding parenthesis around the json string in the eval function. I do not use the eval function and the json is not a string - it is a JavaScriptObject. Has anyone else found a solution to this? 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 to block click event?
you can try adding different handlers such as a click handler or mouse down handler and call event.preventDefault(). On Sep 6, 9:06 am, ulgerang ulger...@gmail.com wrote: Hi, I am making 'ImageButton' that extends 'Image' and implemented 'HasEnabled' interface. I made 3 state, disable,mouseover, enable. When I was making disable, I have to block the click event from the widget. but I couldn't find the way. Is there any way to block the click event? -- 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: DisclosurePanel, class-name content
It is because content and header all both children of the gwt- DisclosurePanel class and they expect you to use child selectors. Here is what they expect you use so that you don't end up with collisions: .gwt-DisclosurePanel .content { border: 2px solid black; } On Sep 5, 11:08 am, Jaroslav Záruba jaroslav.zar...@gmail.com wrote: Hello There is one quite unfortunate class-name in the DisclosurePanel DOM. The widget serving for content gets class-name content assigned. Such generic name is very collision prone, which situation I'm currently facing. Is there any special reason why this element did not get gwt-prefixed class-name as the rest has? Regards J. Záruba -- 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: Using GWT for a large UI project
I completely agree with marius on the plugin requirement for silverlight. Also, until M$ decides to make a full version of Silverlight available on Linux it will never become popular. Since the majority of the people that use Linux are software devs, it would make sense that you would want to support it to gain acceptance with devs. Those who argue that Moonlight is an acceptable alternative and M$ is giving Novell full support I challenge you to try to use the most popular feature of Silverlight; DRM streaming, which M$ refuses to license for x86 because they are afraid their architecture isn't good enough to withstand a barrage of Linux devs. Also, I don't see what silverlight and business customers have to do with each other other than the corporate insistence of paying for M$ products. Also, it has been well documented that with GWT you can architect your software in such a way that you can output an optimized display for mobile clients. On Sep 2, 12:24 am, Maxim maxim...@gmail.com wrote: Marius you wrote: but one of our goals is to use plain browser functionality, available on all devices. Recently I changed my mind a little bit in connection to that - this goal is more technical than commercial. Users want certain functionality, if functionality demands plugin - they will install plugin. E.g. ref Flash technology. Silverlight gives huge amount to business customers ( at least to their certain category). Next - this goal is not mentioned in your document :) Also note - if you try complex GWT application on your phone you will be likely disappointed, so available on all devices still is not 100% reality. But of course if you must traget *nix users, then Silverlight is not your choice. Just mention that in goals :) Maxim On Sep 1, 8:57 pm, marius.andreiana marius.andrei...@gmail.com wrote: Thanks Maxim (saw your email), http://demos.telerik.com/silverlight/salesdashboard/saysMissing plugin. So I left ;) I'm sure silverlight can have great results for controlled end user environments, but one of our goals is to use plain browser functionality, available on all devices. On Sep 1, 4:40 pm, Maxim maxim...@gmail.com wrote: Marius, in your document you compare GWT wih ASP.NET AJAX but I think it should be rather compared with Silverlight, this is a client-side technology like GWT which is not linked to server. ASP.NET AJAX is something very different and demands IIS to be installed server-side. My story about this comparison. We are having good customer we were trying to develop forusingGWT. Actually skeleton was developedusing GWT but then he wanted more modern appearance, and he could pay money for commercial libs. We figured out that commercial libraries for Silverlight are light years ahead of what GWT 3rd party libraries can offer. Price for such libraries are relatively low ( say in comparison to developer monthly salary), so cost is not a big problem I think. e.g.http://demos.telerik.com/silverlight/salesdashboard/ Still we love GWT and use it heavily for sayhttp://www.projectkaiser.com:8080/ One more thing: from time to time we have browser-compatibilty-related issues ( not so big though ) with GWT, especially in Firefox. Maxim -- 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: Problems creating my first reusable module: import cannot be resolved
feel free to shoot me a zip of the project and I will tell you whats wrong. On Aug 18, 11:44 am, Sleeveen pstron...@gmail.com wrote: I've dropped the JAR in war/WEB-INF/lib since it will (eventually) be used on the server side of things. I've removed the hyphens from the name of the module (everywhere): still no luck. I've removed the rename-to attribute: still no luck. I am indeed using Eclipse. The JAR is configured as a library on my Java build path. I appreciate the comments though! Keep 'em coming! Thanks On Aug 18, 12:58 pm, lineman78 linema...@gmail.com wrote: From what I can tell there is nothing wrong with the structure of your project or the packaging. Generics have been supported since GWT 1.5. First of all, you dont want it to be in war/WEB-INF/lib. This is for server-side Java libraries, but this won't hurt anything. Second, I would try taking the hyphen out of the module name as that may be causing issues. Thirdly, you might think about removing the rename-to from the library gwt.xml. I would also double check your classpath to ensure that the jar is in it. How are you compiling? Eclipse? -- 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: Problems creating my first reusable module: import cannot be resolved
From what I can tell there is nothing wrong with the structure of your project or the packaging. Generics have been supported since GWT 1.5. First of all, you dont want it to be in war/WEB-INF/lib. This is for server-side Java libraries, but this won't hurt anything. Second, I would try taking the hyphen out of the module name as that may be causing issues. Thirdly, you might think about removing the rename-to from the library gwt.xml. I would also double check your classpath to ensure that the jar is in it. How are you compiling? Eclipse? On Aug 17, 3:12 pm, Sleeveen pstron...@gmail.com wrote: I'm in the process of trying to create my first reusable module in GWT. For now, this module contains only some simple classes to be used as part of a GWT RPC implementation. The module DOES NOT have an entry-point, just source path specifications. This code would normally go into the shared subfolder of a standard GWT project; I just want to be able to reuse these classes. I'm fairly certain that I have complied with the GWT RPC serializability rules (although I do use Java generics, which shouldn't be a problem - right?). My source structure for the module is similar to: src org base subpackage1 A.java B.java C.java subpackage2 generated X.java Y.java Z.java my-module.gwt.xml The my-module.gwt.xml file looks like: ?xml version=1.0 encoding=UTF-8? module rename-to='my-module' source path='subpackage1'/ source path='subpackage2'/ /module I have created a my-module.jar file that is structured as follows: META-INF org base subpackage1 A.java A.class B.java B.class C.java C.class subpackage2 generated X.java X.class Y.java Y.class Z.java Z.class my-module.gwt.xml In the module where I'm attempting to use the X class: - I've added my-module.jar to war/WEB-INF/lib - I've added inherits name=org.base.my-module/ to my .gwt.xml file - I've adde my-module.jar to the java build path libraries In the class where I'm attempting to use the X class I have: import org.base.subpackage2.generated.X; And the GWT compiler is indicating that: The import org.base cannot be resolved. This is probably something really obvious (for the non-noobs ;-) Any assistance would be appreciated. Cheers! -- 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: Generate Random String
In Java you could also use the UUID class, but doubt its ported into GWT. Also, simply using the long value of time is also effective assuming that there is no chance of ever generating 2 at the exact same time(i.e. result of a user action): Long.toString(new Date().getTime()); On Aug 17, 7:35 am, spierce7 spier...@gmail.com wrote: AH! I didn't think to search just java! Stupid me. Thanks so much. On Aug 17, 12:49 am, Jim Douglas jdoug...@basis.com wrote: I did this google search: http://www.google.com/search?q=java+generate+random+alphanumeric+string That returns more suggestions that you could possibly need; take your pick. The first link returned from that search has several suggestions: http://stackoverflow.com/questions/41107/how-to-generate-a-random-alp... On Aug 16, 9:05 pm, spierce7 spier...@gmail.com wrote: What would be the best way to generate a random string in GWT with no slashes (/ or \), preferably just capitol letters and numbers. How would I do this? I'm surprised I can't turn up any information in searches. I'm looking to do this Server Side, meaning in java, rather than javascript. Thanks! ~Scott -- 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: HTML in TextArea
You might have to do some DOM tricks to lock RichTextArea, but it should be possible. Such as adding a focus listener and canceling the event or finding the inner text area object and disabling it. On Aug 17, 5:13 am, steenstrup kasper.steenst...@gmail.com wrote: My problem, is that i like to display html in a textArea that can get lock, so it can't be edit. TextArea have the ability to be lock, but can't handel html RichTextArea can't lock, but can handel html -- 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: why we probably won't use GWT for a large UI project
Frank, First of all, this thread seems to have 2 different topics and I have not said anything about Vaadin as I have no experience with it and that seems to be what Joonas is referring to. Second of all, my problem is that you call them GWT enterprise architects. When you break it down it is Java EE with a Javascript client and people think GWT is going to provide an end-to-end solution. GWT dead code elimination is an important capability which Ray Cromwell has emphasized with GWTQuery in some of his old Google I/O talks and I only point it out because I see it as the leading disadvantage to SmartGWT in particular. I am a Java EE developer who advocates GWT as the client framework. So as far as a SOA goes, yes I believe I know more than the average GWT developer. The problem is that too many people on this group think of GWT as only a complete framework as is the result of the GAE integration, but when it comes down to it all GWT provides is a JS cross-compiler for the client with a custom communications protocol built on REST. You need to realize that not everyone uses GAE and some of us must provide interfaces or integrate with other technologies. The problem that Marius has run into is that he is writing a client to integrate with a .net REST server, therefore the arguments about GWT-RPC were moot, which is all I was trying to point out as far as why people might choose REST over GWT-RPC as I often have to expose my services to .net clients. And if you disagree with me with my statements that overlay types is the fastest and most efficient way to deal with a JSON REST service or that GWT as it is right now is not a full UI library, but is heading that way let's here some arguments against it. It doesn't help with discussion by just coming in and saying you guys are stupid and everything said here is wrong, tell us what you think is wrong and why so we can have a healthy discussion about it. On Aug 16, 11:40 am, Frank Argueta frank.argu...@gmail.com wrote: Joonas, This thread cannot be taken seriously and has some terrible advise. It's like the blind leading the blind. Stefan and lineman78 in particular. I miss the days that Rienier would lash out when people spread misinformation or gave incorrect advise on this group. Alteast it kept the quality of the responses high but right now this forum is running wild and everyone who has read about GWT dead code elimination thinks they are GWT enterprise architects. -Frank On Mon, Aug 16, 2010 at 10:23 AM, Joonas lehti...@gmail.com wrote: Please do not judge by the Calc example - it is just a minimalistic Hello World type example for quickly showing how events are managed in Vaadin. Of course one should do such a trivial application (with no server-side needed at all and just a few lines of business logic) in just JavaScript - there is no need for any frameworks at all. For a more sophisticated analysis on communications, please read http://philipp-baerfuss-magnolia.blogspot.com/2010/08/why-vaadin-line... In this article Magnolia team has estimated that real world application can expect comparable number of ajax roundtrips both in GWT as in Vaadin. (Most of the data have to go back to server in any case). On Aug 15, 8:26 pm, Stefan Bachert stefanbach...@yahoo.de wrote: Hi, I would avoid vaadin. Agreed that vaadin looks good out of the box, vaadin falls back into the poor old fat-client architecture. GWT supports a real responsive client-server architecture but vaadin uses GWT like a display server. You can test the difference using the samplehttp://demo.vaadin.com/Calc Click a number and it tooks 300ms until the calc will display it. This latency is a direct consequence of choosing the poor old architecture. Stefan Bacherthttp://gwtworld.de On 10 Aug., 09:02, Nathan Wells nwwe...@gmail.com wrote: I would look into vaadin. We just looked at it recently, and I think it's a good alternative to straight GWT, but we can't switch because it's a pretty significant change. On Aug 10, 5:23 am, Shawn Brown big.coffee.lo...@gmail.com wrote: I'm looking to get this group's feedback before I present my findings to the team. What do you think? If open source is nice then go for gpl and ExtGWT (GXT). If you don't pay the commercial fee, then you have to open source your project I believe. Shawn -- 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
Re: How to send data back to client side code?
Yeah, I ran into this issue a year ago when I was working with GAE + GWT-RPC. The client side object cannot have references to any code not associated with a GWT module, so there are a few options for you here. 1) create a translator and maintain 2 versions of the class; 1 for the client(without annotations) and 1 for the server(with annotations) 2) use Java serialization to make a deep copy with 2 versions of the class like specified above (serializeable uuids must be equal). 3) write a utility that uses reflection to translate between the objects above 4) use some sort of 3rd party library that allows for persistence and serialization. There are more options that I haven't listed here, but these are a few to start. On Aug 17, 12:55 pm, Jeff Schnitzer j...@infohazard.org wrote: This is a major PITA with GAE+JPA. You'll likely also need to detach your entities from the JPA session, which AFAIK is impossible with the JPA interface - only with the JDO interface. My advice is throw out JPA and use Objectify. You can use your entities in GWT as-is (assuming they are client-safe), even if they reference Key or GeoPt or other datastore classes. Objectify provides GWT emulation for all those classes: http://code.google.com/p/objectify-appengine/wiki/ObjectifyWithGWT (I'm the lead developer of Objectify, and I use it with GWT in my applications every day) http://code.google.com/p/objectify-appengine/ Jeff On Sat, Aug 14, 2010 at 2:26 AM, cokol eplisc...@googlemail.com wrote: again - you shall not have any references inside your translatable classes to classes from 3rd party! translatable classes are those to be compiled to javascript and which reside in client and shared packages. 3rd party classes are those where you dont have sourcecode from. consider your Employee just to be a bean or container without any logic just with a purpose to carry payload data. so design the class NOT to use any classes from appengine like Key, BlobKey etc On 14 Aug., 07:05, Sree ... gattasrika...@gmail.com wrote: Modified the Employee.java as below *public class Employee implements IsSerializable{* then moved the Employee.java to shared package. [eclipse updated all references well] Now when I GWT to compile its saying Compiling module project.xxx Validating newly compiled units [ERROR] Errors in 'file:/C:/xxx/src/xxx/shared/Employee.java' [ERROR] Line 10: The import com.google.appengine cannot be resolved [ERROR] Line 11: The import com.google.appengine cannot be resolved [ERROR] Line 19: Key cannot be resolved to a type [ERROR] Line 101: BlobKey cannot be resolved to a type [ERROR] Line 141: Key cannot be resolved to a type [ERROR] Line 189: Key cannot be resolved to a type [ERROR] Line 190: Key cannot be resolved to a type [ERROR] Line 305: Key cannot be resolved to a type [ERROR] Line 306: Key cannot be resolved to a type [ERROR] Line 424: BlobKey cannot be resolved to a type [ERROR] Line 425: BlobKey cannot be resolved to a type [ERROR] Line 431: BlobKey cannot be resolved to a type [ERROR] Line 432: BlobKey cannot be resolved to a type Finding entry point classes [ERROR] Unable to find type 'xxx.client.Example' [ERROR] Hint: Previous compiler errors may have made this type unavailable [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook Why appengine import statements are not working! Again they should be only in server folder? On Sat, Aug 14, 2010 at 6:17 AM, Sree ... gattasrika...@gmail.com wrote: okey... thanks alot guys i ll try to make those changes and will update here also thx for so quick responses.. am loving it On Sat, Aug 14, 2010 at 2:31 AM, cokol eplisc...@googlemail.com wrote: hi the problem is that gwt does not have source of your Employee class, since you have put it into the server package, you always have 3 packages to handle (as per default): client server shared everything under client becomes javascript after compilation and is not aware of anything contained in server package, everything contained in server package is intended to run in java VM and remains java, here you may have references to classes used in client package if you like, this would not break up gwt. the shared package contains everything what is required for client and server package, like the service interfaces AND transfer objects payload classes like your Employee. furthermore everything whats inside client and shared package has to be translatable to javascript, i.e. you shall not use 3rd party libraries in there. so just move the
Re: Expose URL as REST service how?
Restlet seems to be the one supporting GAE best right now. Jersey may be working now, but I know they were running to security issues for a while. On Aug 16, 2:38 am, Harald Pehl harald.p...@googlemail.com wrote: Hi, the Restlet guys have written a little tutorial which might be helpful:http://wiki.restlet.org/docs_2.0/13-restlet/21-restlet/318-restlet/30... - Harald On 13 Aug., 20:05, Thamizharasu S zaru...@gmail.com wrote: Hi, Thanks for the quick answer. I want to deply my GWT app in GAE. is there any document for reference or could you help me on this to achieve? - Thamizharasu S On Aug 13, 10:51 pm, lineman78 linema...@gmail.com wrote: REST is provided by most app servers in the form of a reference implementation of JSR-311. Glassfish uses Jersey, JBoss RESTEasy. Most app servers bundle support in one way or another now. Some GWT people have found RESTlet easy to use also. The Jersey users manual is very in-depth and ought to get you going, but the deployment descriptor will change depending on implementation. https://jersey.dev.java.net/nonav/documentation/latest/user-guide.html On Aug 13, 11:38 am, Thamizharasu S zaru...@gmail.com wrote: Hi All, I am evaluating GWT for my new project which is going to be started shortly. I have a requirement with REST support. For example, I have a list of users. If I click on any one the user, the details of the user will be shown in a different view. I need to expose this URL,http://sample.com/user/123asaREST service. If anyone try to access this URL directly, the particular user details should be shown. I don't know how to achieve this using GWT. I am using RPC service to fetch the details of the user from the server. Can any one help me on this? - Thamizharasu S -- 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: why we probably won't use GWT for a large UI project
Stefan, while I agree that GWT-RPC inherently gives some XSRF protection, I don't think it should be relied upon. First of all, any service that performs an action in a REST architecture should use a method other than GET, such as POST, PUT or DELETE; therefore the argument of GWT-RPC running over POST is a moot point because the only thing available over GET will be data retrieval, which should still be concerning, but still satisfies your argument. Also, the safari problem of only supporting GET and POST was only present in Safari 1.x and there has been discussion within the GWT contributors to open up the constructor for RequestBuilder to all methods because less that 1% of users would be effected. Secondly, security by obscurity is a poor and irresponsible design decision and should not be considered at all. Lastly, almost all Java app servers provide container managed security and this should fit the needs in 95% of all apps, so why develop your own? Just add annotations to your web.xml that sets security restrictions on certain URL paths for users in certain rules. When it gets too complex for that there is also a RolesAllowed annotation and you can inject the security context to gain access to the users roles and principal. I understand that the majority of GWT developers aren't J2EE devs, but so often people talk about GWT as if it was some sort of standalone product when it was designed to be modular and take advantage of an already mature Java enterprise environment. Container managed security can also be used for GWT-RPC; try it sometime you'll love it; although getting form login to work with GWT can sometimes take a little trickery as most app servers are based off of Tomcat and Tomcat treats the forwarding for form login differently depending on if you are using SSL or not(redirect vs request dispatch). I recommend just starting with basic authentication till you are comfortable enough to try getting form to work, it is simple but can cause problems with GWT. It sounds like Marius might not be running on a Java server, so this might not apply and a custom security solution may be necessary, but he seems to have this worked out already. I completely agree with you that opening the allow origin up is a very poor decision as far as security goes and if you absolutely must make cross-site requests a proxy servlet is the best option assuming JSONP can't be supported. One last point... Even though GWT-RPC has some small advantages over REST because it is based on REST, it is by far not the best solution for large projects. The main purpose of using REST is that it is platform independent as far as the client goes. With GWT-RPC only GWT can be used, but with REST anything can consume it, especially when you expose several different output media types like I do. For my services a client can request that I send the response back in 4 different forms: XML, JSON, JSONP and Java Serialization. This is very important because possible consumers of our services include Java, JS, C++ and C# clients. We could argue all day on which implementation is better and it truly comes down to the fact that it depends on the requirements of the project. For work projects I tend to use REST; for personal I use GWT-RPC because I know the client will always be GWT. On Aug 14, 4:01 am, Stefan Bachert stefanbach...@yahoo.de wrote: Hi marius, I have to admit that my statement was to hard. Webservice are intended to be accessed from different distributed, scattered site. I am still not sure whether this the case in your project. When you access multiple REST sources, it is unlikely to connect them all at login time. When you defer a login for some data source you have to save the credentials to do so. GWT-RPC is more secure because. a) GWT-RPC always uses POST. This means a CSRF attack is no more easy (but not impossible as any attacks) b) GWT-RPC automatically add an header with sends the strong name back to the server which will be checked. So it takes more effort to attackers to supply this additional header, too. (X-GWT-Permutation) A problem with REST directly is mentioned in the GWT javadocs. webkit based browsers (safari) seams to have a bug when using other methods then GET or POST. When you can't guaranty that you never use other methods, you could not support safari. Access-Control-Allow-Origin: * I consider this as real bad (independly which protocol you are using). You give up SOP and open new attack vectorshttp://code.google.com/p/html5security/wiki/CrossOriginRequestSecurity At least use a concrete list of sites which is under your control. Stefan Bacherthttp://gwtworld.de On 11 Aug., 18:46, marius.andreiana marius.andrei...@gmail.com wrote: Hi Stefan , I'm not sure I understand your point. Say we have api.site.com, with the back-end written in a non-Java tech, which offers REST APIs over SSL such as POST login Body: data username,
Re: Expose URL as REST service how?
REST is provided by most app servers in the form of a reference implementation of JSR-311. Glassfish uses Jersey, JBoss RESTEasy. Most app servers bundle support in one way or another now. Some GWT people have found RESTlet easy to use also. The Jersey users manual is very in-depth and ought to get you going, but the deployment descriptor will change depending on implementation. https://jersey.dev.java.net/nonav/documentation/latest/user-guide.html On Aug 13, 11:38 am, Thamizharasu S zaru...@gmail.com wrote: Hi All, I am evaluating GWT for my new project which is going to be started shortly. I have a requirement with REST support. For example, I have a list of users. If I click on any one the user, the details of the user will be shown in a different view. I need to expose this URL,http://sample.com/user/123as a REST service. If anyone try to access this URL directly, the particular user details should be shown. I don't know how to achieve this using GWT. I am using RPC service to fetch the details of the user from the server. Can any one help me on this? - Thamizharasu S -- 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: Script tag dynamic loading
I have run into this problem with a few scripts that rely on the document load event, maybe look into manually firing it. I think I tried dynamic loading of the maps library before and gave up, but I didn't try very hard to get it working. On Aug 13, 5:57 am, Vincent COROLLEUR vcoroll...@gmail.com wrote: I tried to load the script on a button event and it's the same... Really annoying -- 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 to send data back to client side code?
Any object referenced in client-side code must be in a client package. The new version of the GWT plugin for eclipse added a shared package suffix, but it is added to the gwt.xml as a client side package. On Aug 13, 11:39 am, Sree ... gattasrika...@gmail.com wrote: Am not sure this belongs to GWT or GAE or both ... So here's my problem... I have one client/Example.java [contains all GWT code] calls a methods on server/SomeServiceImpl.java [Contains code to talk to dataStore] Wat server/SomeServiceImpl.java does is Featch data from Employee.Java [this is class used to store data in datastore JPA] So now my problem is.. as long as I send data in the form of String or StringArray to client/Example.java am fine, but now I tried to send ListEmployee to client/Example.java Doing so throws me an error as below.. Validating newly compiled units [ERROR] Errors in 'file:/C:/XXX/XXX/src/xxx/client/GreetingServiceAsync.java' [ERROR] Line 18: No source code is available for type xxx.server.Employee; did you forget to inherit a required module? [ERROR] Errors in 'file:/C:/XXX/XXX/src/client/Example.java' [ERROR] Line 325: No source code is available for type xxx.server.Employee; did you forget to inherit a required module? [ERROR] Errors in 'file:/C:/XXX/XXX/src/client/GreetingService.java' [ERROR] Line 19: No source code is available for type xxx.server.Employee; did you forget to inherit a required module? Finding entry point classes [ERROR] Unable to find type 'xxx.client.Example' [ERROR] Hint: Previous compiler errors may have made this type unavailable [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly -- -Thanks -Srikanth.G -Hyderabad -- 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-TabBarItem - setting Max width
You will need 3 things: white-space: nowrap; overflow: hidden; max-width: 30px; However, max-width is not fully supported in IE. You can fix this in a couple ways. 1) Use IE's CSS expression. 2) CssResource has some ways of getting values and acting on them, but I believe this is only run once. 3) (Best Option) Whenever you add or remove a tab or the window is resized recalculate whether the max-width is exceeded and set the width to max-width, if not set it to auto. On Aug 11, 2:14 pm, Bhavik bhavikr...@gmail.com wrote: Hi, I am trying to set a max width value on the Tab-Bar item but it seems that the size of the item is always equivalent to the size of the text entered for the barItem. I am trying to implement a google chrome style tab panel structure where if the number of tab increases the size of each tab is readjusted.Is there any option to this. .gwt-TabBarItem { max-width: 30px; margin-right: 3px; margin-bottom: 2px; padding: 1px 5px; background-color: #C6CAB7; color: white; font-size: 10pt; cursor: pointer; } Thanks, Bhavik -- 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: why we probably won't use GWT for a large UI project
I can't help you with the TileGrid other than saying that you could write something similar yourself with a little effort assuming you are willing to overlook some of the niceties such as animation. I have used SmartGWT in the mast and would warn you to use extreme caution in making the decision to use it. It is not a GWT implementation, but a GWT wrapper around an existing javascript library, so you don't get all the advantages the GWT compiler gives you such as dead code elimination and obfuscation. The SmartClient JS library is modular, so you can only load the modules you need, but as with any JS library I would estimate most sites only use 10-20% of the code they download and load. Also, SmartClient and ExtJs both use a heavy layout engine, which I have noticed causes major slowing in IE. Unfortunately I cannot provide source code, but I can point you to some resources and explain my approach. Here is an article by some GWT contributors on overlay types that should help you get started: http://code.google.com/p/google-web-toolkit/wiki/OverlayTypes I am using what they call the old way in that wiki. To further expedite things, which you might consider depending on the size of your project; I have written an overlay type generator. All I have to do is write an interface for the overlay type and have the interface extend JsonObject and it will generate the overlay type for me: public interface JsonObject { public void setJso(JavaScriptObject jso); public JavaScriptObject getJso(); public void setJson(String json); public String getJson(); } public interface Shape extends JsonObject { public void setArea(double area); public double getArea(); } GWT.create(Shape.class); produces: public class ShapeJso implements Shape { private JavaScriptObject jso; ... public void setArea(double area) { setAreaImpl(jso, area); } private native void setAreaImpl(JavaScriptObject jso, double area) /*-{ jso.area = area; }-*/; ... } This is very simplified, but I have given you a few hints to some of the tricks I had to use to get the generator method to work(see: JsonObject). Usually you would extend JavaScriptObject, but in order to get the generator to work right I had to save it as an attribute. You will want to consider if the generator is the right approach, I think it took me a good 8-10 hours in the end to make a generator that works for almost every case. But you can get one that works for most cases in 2-4 hours as long as you aren't doing anything too complex. On Aug 11, 3:01 pm, marius.andreiana marius.andrei...@gmail.com wrote: Hey, On Aug 11, 11:00 pm, lineman78 linema...@gmail.com wrote: As far as SmartGWT goes, I will warn you that I think the problems and performance hits you will run into are not worth the UI that you gain. Thanks for the heads up. A hello world with data bound widgets seemed straightforward. Plus you must consider the licensing, which is required in order to use their data binding. Looks like we can use thishttp://www.smartclient.com/smartgwt/javadoc/com/smartgwt/client/data/... under LGPL, and no Smart* server-side component. I commonly use REST and GWT in perfect harmony and it is very easy. Assuming you have the ability to output JSON instead of XML you can just use overlay types and get very efficient parsing. We have control over server APIs, and we have both JSON and XML. Would it be possible to share some sample code? . I personally don't know what TileGrid is, Seehttp://www.smartclient.com/smartgwt/showcase/#tiling_filter_sort d'n'd to sort. One should be able to change image captions, and have the customized data source trigger appropriate PUT requests to update the server items. I'd love to see this functionality from GWT. out of the box GWT isn't intended to be a widget library, but there are plenty of them out there. Google is trying to add a lot more widget support which is evident by the data presentation widgets, but their original intent was to create a flexible and efficient cross compiler, not make a pretty UI library. Point taken. -- 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: why we probably won't use GWT for a large UI project
Not to mention the licensing on GXT is not for commercial use. My suggestion is to try to piece together all the UI elements you need from other libraries or write your own as they will be more efficient and integrate with one another better. Also, don't be lazy and pick a UI library by it's LAF, wonders can be done with CSS if you are willing to spend a little time. Don't get me wrong, I think both options are valid for UI libraries, but I often think their shortcomings are overlooked due to the eye-candy appeal. FYI, I have experimented with both libraries and both applications were eventually rewritten in pure GWT and the performance increase in IE was drastic and memory usage eas more than halved. Also, resource bundles are your friend when it comes to efficiency, just watch out for the IE implementation of ImageResource; it can bite you. On Aug 12, 11:47 am, Kevin Qiu kevin.jing@gmail.com wrote: Totally agree with lineman78 on the use of SmartGWT. We used SmartGWT to build a prototype, only to find out that mixing Js library wrapper with native GWT is bad. It's super easy in SmartGWT if you're building a simple CRUD application, but anything beyond that which requires customized widgets in GWT, then good luck, not to mention you can't use all the benefits of the GWT compiler. We're currently using ExtGWT. It's nicer in that it's (mostly) natively GWT, so you can always trace down the Java code, but still it's layout is expensive, and widgets are not 100% compatible with the GWT widget system. The event system is a mess to work with. We really need a good UI library, preferrably supported by Google that's built on top of vanilla GWT widgets. On Thu, Aug 12, 2010 at 1:22 PM, lineman78 linema...@gmail.com wrote: I can't help you with the TileGrid other than saying that you could write something similar yourself with a little effort assuming you are willing to overlook some of the niceties such as animation. I have used SmartGWT in the mast and would warn you to use extreme caution in making the decision to use it. It is not a GWT implementation, but a GWT wrapper around an existing javascript library, so you don't get all the advantages the GWT compiler gives you such as dead code elimination and obfuscation. The SmartClient JS library is modular, so you can only load the modules you need, but as with any JS library I would estimate most sites only use 10-20% of the code they download and load. Also, SmartClient and ExtJs both use a heavy layout engine, which I have noticed causes major slowing in IE. Unfortunately I cannot provide source code, but I can point you to some resources and explain my approach. Here is an article by some GWT contributors on overlay types that should help you get started: http://code.google.com/p/google-web-toolkit/wiki/OverlayTypes I am using what they call the old way in that wiki. To further expedite things, which you might consider depending on the size of your project; I have written an overlay type generator. All I have to do is write an interface for the overlay type and have the interface extend JsonObject and it will generate the overlay type for me: public interface JsonObject { public void setJso(JavaScriptObject jso); public JavaScriptObject getJso(); public void setJson(String json); public String getJson(); } public interface Shape extends JsonObject { public void setArea(double area); public double getArea(); } GWT.create(Shape.class); produces: public class ShapeJso implements Shape { private JavaScriptObject jso; ... public void setArea(double area) { setAreaImpl(jso, area); } private native void setAreaImpl(JavaScriptObject jso, double area) /*-{ jso.area = area; }-*/; ... } This is very simplified, but I have given you a few hints to some of the tricks I had to use to get the generator method to work(see: JsonObject). Usually you would extend JavaScriptObject, but in order to get the generator to work right I had to save it as an attribute. You will want to consider if the generator is the right approach, I think it took me a good 8-10 hours in the end to make a generator that works for almost every case. But you can get one that works for most cases in 2-4 hours as long as you aren't doing anything too complex. On Aug 11, 3:01 pm, marius.andreiana marius.andrei...@gmail.com wrote: Hey, On Aug 11, 11:00 pm, lineman78 linema...@gmail.com wrote: As far as SmartGWT goes, I will warn you that I think the problems and performance hits you will run into are not worth the UI that you gain. Thanks for the heads up. A hello world with data bound widgets seemed straightforward. Plus you must consider the licensing, which is required in order to use their data binding. Looks like we can use thishttp:// www.smartclient.com
Re: Service Location on Server Side
This usually isn't the way something like this is done and there is one major issue that can come up when doing this. App servers will have a maximum simultaneous connections and when you do this, one request will actually take up 2 of these connections and if you start chaining more and more together you can create a dead-lock. The way this is usually handled is that all of the business logic exists in an EJB such as an SLSB and the services merely forward the requests to the EJBs. This way they can call within themselves. This also will allow you to maintain security. On Aug 11, 8:01 am, Bill bill.milli...@gmail.com wrote: Hello, This feels like a silly question. Please forgive if so. For my simple proof-of-concept application, I have two RPC services, both of which may be accessible by the client. However, for one of my use cases, I need for one of the services to access the other service. Is there any mechanism by which this can happen? I can't find any hints of this in the documentation. Let me put this a different way: 1. Client invokes Create on service A. 2. Service A invokes Create on Service B. 3. Service B creates a resource and returns info to Service A. 4. Service A creates a resource and returns info to the Client. In order for this to happen, Service A needs to be able to find Service B, on the server-side. How can I accomplish 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-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: More woes with IE + Client(Image) Bundles
This is actually a problem in the way they have implemented ImageResource in IE. It is not scalable as the Gecko and Webkit implementations are. In order to make it scalable you will have to add the repeat both annotation on it, which will keep the generator from bundling it with other images in the IE implementation. This also shouldn't effect performance in the Gecko and Webkit implementations, but it will increase load time in the IE implementation as a new image will be generated for every resource. On Aug 11, 7:00 am, Sean slough...@gmail.com wrote: I have a widget that dynamically makes medals. What it does is takes the place they are in (1st,2nd...) and gets the right color background medal from a ClientBundle, then using the same Client Bundle it creates the number from the ClientBundle, which has the #'s 0-9 in it. If it's 10, it grabs 1 and 0, and scales them accordingly. It takes all these images and arranges them on an Absolute Panel to center everything and it works amazingly well. Except of course on IE. When on IE it looks like it takes the whole ImageBundle and smooshes it together with all transparency lost of course. I am SO sick of IE. I like to do lots of things with Images and Bundles and I find IE messes it up almost every-time. Is there anyway around this or should I check for the user using IE and warn them their browser sucks and my site won't always render correctly using it? -- 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: why we probably won't use GWT for a large UI project
I completely disagree with Stefan, GWT-RPC is no more secure than REST. For both to be secure by the broad definition of the term you simply need to make them run over SSL. The only perceived security you get via GWT-RPC is by obscurity, which is not security at all. As far as SmartGWT goes, I will warn you that I think the problems and performance hits you will run into are not worth the UI that you gain. Plus you must consider the licensing, which is required in order to use their data binding. GXT(ExtGWT) is actually nice, but their layout is expensive as well as their licensing. I commonly use REST and GWT in perfect harmony and it is very easy. Assuming you have the ability to output JSON instead of XML you can just use overlay types and get very efficient parsing. If you must use XML, it is like using any other DOM parser. I agree that built-in dnd support would be very nice, but GWT-DND isn't bad. I personally don't know what TileGrid is, but out of the box GWT isn't intended to be a widget library, but there are plenty of them out there. Google is trying to add a lot more widget support which is evident by the data presentation widgets, but their original intent was to create a flexible and efficient cross compiler, not make a pretty UI library. On Aug 11, 10:48 am, marius.andreiana marius.andrei...@gmail.com wrote: From this point of view it makes sense. Will have a look at ExtGWT Vaadin. On Aug 11, 12:14 pm, cokol eplisc...@googlemail.com wrote: hi, goods thoughts you had, but dont treat GWT as a framework, Google doesnt do it either :-) Its just a toolkit or better yet, a JS compiler with some tooling around. And being just a toolkit is more powerful than create yet another throw-away ajax framework! There're plenty wonderful ajax frameworks around so why should GWT be just another one?! so its best choice for you to get on fast productivity with GWT - but from the beginning consider using a real framework BASED on GWT, i.e. SmartGWT or ExtGWT or I also would suggest to look at Vaadin... for me personally I would prefer ExtGWT rather than SmartGWT because smart is not written purely in Java but is just a wrap on existing smartClient technology, which has some drawbacks. regards On 10 Aug., 10:27, marius.andreiana marius.andrei...@gmail.com wrote: Hi, We're working on a large project, which has the back-end is written in a non-Java technology, with REST APIs. We're looking for a framework to replace the current UI. I did a brief analysis of using GWT:https://docs.google.com/document/edit?id=16rQknO-r3ZqfMbuIl0R52OnFcWB... I'm looking to get this group's feedback before I present my findings to the team. What do you think? Thanks, Marius -- 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: Scraping website with GWT
First of all GWT is executed client side and therefore XSRF security should prevent you from scraping another site directly. However, you can do scraping quite easily with server-side java. PHP is also a server executed language, so anything you would usually do in php, you will do it via server side java with GWT. There are a few different ways you can scrape a page in java. 1) External Libraries (JScrape, XQuery) 2) Parse the HTML as XML (DOM or SAX) 3) Regex These all require you to get the HTML page as a string which is rather easy (see URL.openConnection) On Aug 10, 6:48 am, Fermin fermin.h...@gmail.com wrote: Hi, I don't found any reference to do scraping with GWT, is posible ? Like CURL in php ? Thx 4 all -- 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: cross-domain with GWT (load JavaScript)
The SOP doesn't apply to script tags. This is the idea behind JSONP. Speaking of which, this code is from the JsonpRequest class: ScriptElement script = Document.get().createScriptElement(); script.setType(text/javascript); script.setSrc(uri.toString()); Document.get().getElementsByTagName(head).getItem(0).appendChild(script); On Aug 10, 7:23 am, Vincent COROLLEUR vcoroll...@gmail.com wrote: Hello, I'm trying to load dynamically a script from another domain. I think it doesn't work because of the cross-domain protection. I'd like to do something like that : Element script1 = DOM.createElement(script); script1.setAttribute(type, text/javascript); script1.setAttribute(src, crossdomainURL); RootPanel.getBodyElement().appendChild(script1); Any ideas ? Regards, Vincent COROLLEUR -- 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: Synchronizing server and browser date/time?
Lucky for you the Java Date object handles timezones for you. As long as you are okay with an an accuracy of up to 5 secs you should be okay with this method. Are you using GWT RPC? If so, just create a method that returns a new Date from the server. If not, create a servlet that just outputs new Date().getTime() and you can instantiate a Date with that long client side. Java's Date object is based off Unix time, so if you want to know more about how that works Google it. On Aug 10, 3:21 am, Ed post2edb...@gmail.com wrote: I do date/time comparision in the browser and I can't assume that the browser date/time is correct so I think I have to synchronize the date/ time on the server with that on the browser as I know the server date/ time is correct. Anybody any experience with that? or Idea's? I was thinking about retrieving the date/time from the server at startup of the app and then calculating the difference with that of the browser and add that as offset each time the date/time is retrieved in the browser. But what about different timezones?... Suppose somebody opens my website in another timezone, how does this effect the date/time that comes from the server. how is that seen in the browser? H I am a bit lost here. Please some advice? -- 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 is it fully compatible with ie6 ?
This is a misconception about GWT. It gives you the tools to handle IE6 problems, but it doesn't completely protect you from all of IE6's problems. The built in widgets do a pretty good job at dealing with IE problems and the layout panels do promise to act the same on all browsers, but the regular panels don't. All non-layout panels and most widgets are just wrappers around html objects, wo you will have to deal with the same layout bugs you would have to with pure html and javascript. However, GWT does provide some really nice tools for dealing with these differences. Deferred binding can be used to substitute different implementing classes depending on the browser. This can be demonstrated best by the way Google handles ImageResource under the covers. For IE it creates a traditional sprite by slapping a bunch of images together to make one, however in FF it actually inlines the bitmap data into the javascript, so it looks like: img src=data:.../. Also, CssResource now provides conditionality so that you can make the css different depending on the browser. On Aug 5, 1:59 am, Nicolas KONDRATEK n.kondra...@gmail.com wrote: Hi, I write an application in GWT, but I find many differences between IE 7/8 and IE6. Gwt is it fully compatible with ie6 ou Google stop IE6 support ? Thanks you. -- 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: Need Help!!!About the difference between smartgwt and gwt for component Window
You need to enable modality in the smartGwt window: winModal.setIsModal(true); winModal.setShowModalMask(true); On Aug 4, 8:41 pm, JIE SUN sunjie1...@gmail.com wrote: Hi guys: I had difficult to set up a smartgwt window as sam functionality as the one in gwt. Basically, I just need to click a button, and a panel pops up, meanwhile all other components at background will be greyed out. However, when I use the component window in smartgwt, it looks like does not have that functionality and i still can edit the background components. I have tried just create the window from gwt, it does not work since all the background component created from smartgwt, and the window created from gwt even pops up, but u cannnot edit it and even click it. Any ideas? or suggestions? Many thinks guys!!! -- 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 is it fully compatible with ie6 ?
I don't disagree with you. Google provides implementations that work well in almost all configurations EXCEPT the panels. People expect the layout panels to act the same in all browsers and they don't. In most cases they are just extensions of a table. If you don't want to think about any differences between browsers at all you would be better off using a true UI infrastructure like GXT or SmartGWT, but these are very expensive and not very flexible. For example, I often see questions on here about people complaining that their horizontal panel looks right in FF, but not IE. This is because the HorizontalPanel only wraps a table and you are still subject to IE's table layout issues. Same thing with DIVs and running into the box model bug. Yes the layout panels do require standards mode, but the only time where that caused an issue for me is I had gotten into the bad habit of not putting units in my css and figuring it would assume px, which it doesn't do in standards mode. The layout panels aren't for every application, but they are really nice if you are writing more of an application than a website and it makes the dock panel act correctly across all browsers, which I always had issues with IE before. On Aug 5, 12:13 pm, darkflame darkfl...@gmail.com wrote: Put it this way, I very rarely have to browser sniff in my code, and I've done some fairly extensive gwt products that run on IE6. I think your underestimating just how much it compensates for ie's problems, even with normal widgets. While you can certainly manually take advantage of Deferred Binding, GWT does it automatically for many standard widgets, deals with a few dom issues, and (imho) is one of the biggest saleing points of gwt. Also, I'm not sure the new Layout panels will support IE6 that well. Haven't had a chance to check them out in a project yet, but they do demand standards mode, and the idea seems to be to use the native layout handling of the browser more, not less. I'd hazard that that might well be worse when dealing with ie6, not better. (though it should be faster). On Aug 5, 6:08 pm, lineman78 linema...@gmail.com wrote: This is a misconception about GWT. It gives you the tools to handle IE6 problems, but it doesn't completely protect you from all of IE6's problems. The built in widgets do a pretty good job at dealing with IE problems and the layout panels do promise to act the same on all browsers, but the regular panels don't. All non-layout panels and most widgets are just wrappers around html objects, wo you will have to deal with the same layout bugs you would have to with pure html and javascript. However, GWT does provide some really nice tools for dealing with these differences. Deferred binding can be used to substitute different implementing classes depending on the browser. This can be demonstrated best by the way Google handles ImageResource under the covers. For IE it creates a traditional sprite by slapping a bunch of images together to make one, however in FF it actually inlines the bitmap data into the javascript, so it looks like: img src=data:.../. Also, CssResource now provides conditionality so that you can make the css different depending on the browser. On Aug 5, 1:59 am, Nicolas KONDRATEK n.kondra...@gmail.com wrote: Hi, I write an application in GWT, but I find many differences between IE 7/8 and IE6. Gwt is it fully compatible with ie6 ou Google stop IE6 support ? Thanks you. -- 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: Who knows how to execute native code in server-side
If you are using app engine, I don't think this is possible. I have successfully made native calls in glassfish though using System.load(), but you need to add the library path to the native lib classpath in the admin console. Also, you will run into the problem where the library is loaded by the system class loader, so it is not released until you restart the entire server and will not be unloaded when you undeploy your app. On Aug 5, 10:59 am, Yingwei HU husi...@gmail.com wrote: Hello, all. Who knows how to execute native code in server-side? There is no Runtime class in gwt. I either can not use system.load(lib) to recall the outside dll due to security control. What can I do to solve this problem? Thank you. -- 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 to parse news rss feeds?
The problem you are having is related to the Same Origin Policy(SOP) within the browser. It basically says that code can only load data from the server it is loaded from. That is why I suggested the server side proxy in both solutions above. Unfortunately this means the server is making the request for you, so any personalized RSS feeds or ones that require authentication will not be accessible. If you would like to avoid writing your own proxy you can try using YQL for JSONP: http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20xml%20where%20url%3D'http%3A%2F%2Frss.news.yahoo.com%2Frss%2Ftopstories'format=jsoncallback=cbfunc On Aug 4, 10:12 am, kumar decent.p...@gmail.com wrote: Hi lineman, Thanks for giving me response, my problem is not the parsing.. problem is parsing from public server feeds which will provide news. I have tried with RequestBuilder class but i unable to read data from other servers (Ex. Google news feed, yahoo news feed etc..).. data coming as null.. I have searched on the google but i have't find any solutions.. Thanks Please provide information about parsing from other servers On Aug 4, 8:50 am, lineman78 linema...@gmail.com wrote: The easiest, but not most efficient way would be to write a server side proxy to fetch for you and use the built-in GWT DOM parsing API. http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g... The most efficient method that I would use is to use the RSS XSD to generate JAXB classes which will be used in the proxy to parse the RSS and convert it into JSON so it can be parsed faster on the client. I would also add a server-side cache so multiple clients viewing the same RSS feed aren't making multiple requests per minute, cacheing for 1 minute would be sufficient I think. On Aug 3, 1:28 pm, kumar decent.p...@gmail.com wrote: how to parse news rss feeds? RSS feed like any of news sites or google news... please help me -- 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: Setting a height in % within a 'rounded-corners' panel
The td being 100% will do nothing if the table isn't 100%. Remember, % based is in relation to the parent, in the case of a td the table is set to auto size and therefore the cell being 100% won't matter. I also suggest looking at the layout panel as a parent panel due to the fact that it helps with inconsistencies between browsers. On Aug 4, 7:11 am, Johannes Lehmann johannes.lehma...@googlemail.com wrote: Hi, I have the following problem: I want a window-like panel with rounded corners inside a nested structure of other panels. The content of the window should scale automatically (preferably via CSS: height 100%, scaling it via ResizeHandlers introduces much scope for things to go wrong). Eventually I realized that heights in % are ignored if they are inside a td table cell. So I changed my layout to only use div based panels, of course finally realizing that unsurprisingly the DecoratorPanel itself is a table. Changing that to a SimplePanel makes everything work fine. Does anyone have an elegant solution to how I could either achieve what I want? Of course if needs be I can resize the contents of the DecoratorPanel using a ResizeHandler, but it seems like there ought to be a better way... Cheers, Johannes -- 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: using ClientBundle
The purpose of clientbundle is to refer to files that are not deployed on your server. If you need to deploy the resource for other reasons you will not want to use clientbundle. On Aug 3, 9:37 am, Olivier olivier.dau...@gmail.com wrote: Hi, don't make a reference to something in the WAR folder, put your image at the same level as the clientbundle for example. Or create a resources folder, but you will have to reference your image like this @source(my/package/with/dot/img.gif) regards Olivier On Aug 3, 1:09 pm, avi.yaf...@gmail.com avi.yaf...@gmail.com wrote: Hi i need to find a way to point out the the @Source location outside the package com. envvoirment. i want to create 'images' directory in 'war' directory and write { @Source (/war/images/img.gif) ImageResource img() } but when i write this i get an error Resource 'img.gif' is missing expected.. is it possible to this? Thanks,Avi -- 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: JSONP: Overlays with Optional Attributes (HostedModeException's), How?
Reported in Feb, still listed as new, so make sure you vote: http://code.google.com/p/google-web-toolkit/issues/detail?id=4646 On Aug 3, 1:07 am, Andrew Hughes ahhug...@gmail.com wrote: Fixed... but I think this stinks :) public final Double getXMin(){ return isXMinNull() ? null : getXMinValue(); } private final native boolean isXMinNull()/*-{ return this.xmin == null; }-*/; private final native double getXMinValue()/*-{ return this.xmin; }-*/; On Tue, Aug 3, 2010 at 11:50 AM, Andrew Hughes ahhug...@gmail.com wrote: Thank's again André :) I've made some progress. you'r suggestion to use Integer and not primitive int was bang on the mark! :) Unfornately autoboxing was masking some of my problems - but now I have learnt the error's of my ways :) Now I am happily using Integer with and without null values... public final native Integer getCode()/*-{ return this.code; }-*/; HOWEVER, Double double won't work. Double works with null but not a valid javascript Number... and vice-a-vera with double. I've looked at all the documentation... going crazy to tell you the truth over such a small simple issue.. but your helps been great THANK YOU! :) --AH 2010/8/3 André Moraes andr...@gmail.com 1) This HostedModeException is very annoying. Null (or in JavaScript terms 'undefined') is a valid value for my JavaScript/JSON attributes. I want a way where if the darn thing is undefined return null... don't throw a HostedModeException - I also tried in jsni if(this.attribute){ return this.attribute; } else { return undefined } but the exception is still thrown. in your Jsni instead of if (this.attribute) { return this.attribute; } else { return undefined; } try if (this.attribute) { return this.attribute; } else { return null; } In javascript, null and undefined are two differente things. When something is null, this means that an variable is defined and its value is null; If something is undefined that means there is no variable with that name. the statment: if (this.attribute) works because when in a boolean context, undefined is evaluated to false. Just like C where 0 is false and everything else is true. To solve the int problem, try to change the return type to Object and then check if the returned value is null. There is no way to return null in java if the return type of a method is a primitive int; I belive that since you are returning null from JSNI, the HostedMode will be smart enough to cast javascript null to java null. :) 2) There is no documentation about how this will behave in production? Will it just return null? I don't know how I can ensure consistency between dev and production modes :'( In production mode the javascript rules applies, so this probably will trigger an error in your browser. When using JSNI method is necessary to think in two different worlds (java and javascript). Check this link, maybe will help with the javascript type system: http://www.java2s.com/Tutorial/JavaScript/0100__Number-Data-Type/Prim... Hope it helps. -- André Moraes Analista de Desenvolvimento de Sistemas andr...@gmail.com http://andredevchannel.blogspot.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-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.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Problem with UTF-8
One simple way to check if it is Java/GWT code or the browser is to add some UTF-8 chars straight to the html file. If that is working correctly then it must be either the Java file isn't UTF-8 or something else is wrong. Eclipse allows you to change the encoding of files through the properties menu. On Aug 3, 12:28 pm, Kiarash email@gmail.com wrote: Thank you David, I just did what you wrote and deleted the Java file and paste the code in the new Java file again and the same with the HTML file. I checked the properties and both had UTF-8 already but without success. On the browser the Swedish letters still replaced with other characters... My browser settings is on UTF-8 too! Do you have any other suggestions? //Kiarash On 3 Aug, 09:02, david.herv...@gmail.com david.herv...@gmail.com wrote: Hi, Have you specified theUTF-8before creating file or just change it while your files were created ? I've just copy paste your Label in a project where .java file areUTF-8encoded and everything works fine. Just check on one of your file the properties that is attributed to it (contextual menu on one of the incriminated java file): here you must haveUTF-8. On Aug 2, 9:38 pm, Kiarash email@gmail.com wrote: I have a problem with Swedish letters coded in Java files as when I make a Label with Swedish letters, Label myLabel = new Label(här är något på Svenska); the Swedish letters changes to strange characters in the HTML file. I am using Eclipse.I made sure that: the html file has meta http-equiv=content-type content=text/html; charset=UTF-8 the text file properties areUTF-8 the project properties areUTF-8 the edit set encoding areUTF-8 Anybody facing the same problem or have a solution... thanx! -- 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: Ecryption best practices (server side, client side, password handling)?
A lot of databases provide encryption so that you can prevent sys admins from seeing the data without being authenticated to the DB itself. Oracle provides it natively, where MySql is a combination of 3rd party software. If you are really paranoid MySql provides AES encrypt/decrypt functions. http://www.hotscripts.com/forums/database/54910-encrypting-mysql-database.html Like Danny said, no point in reinventing the wheel, just use SSL. Right now SSL is still justified by the simple fact that it would take more expensive hardware to break the encryption than any data would be worth that they may extract in most cases. For authentication, I would highly recommend using container managed security though with a JDBC realm. Most give you the option for choosing the hash type for the password. On Aug 2, 10:20 am, Danny Goovaerts danny.goovae...@gmail.com wrote: Stefan has allready made some very good comments so I'm not going to repeat them. Some more additional thoughts. Regarding encrypting the data in the database. If a user does not trust you (yourself and any of the people that have access to your server) to look at his data in the database, why would he trust you when you make the claim that his data is encrypted in the database? Furthermore, encrypting the data precludes providing any form of application level support to your users. Unless your service is exactly providing extremely secure storage of confidential data, I dont' see any reason for encrypting the data in the database and in that case you should find some security experts to assist you. This of course does not mean that you should not take precautions against data being accessed by unauthorized people or data being disclosed. But that falls under traditional secure server deployment. I'm afraid that there is no easy and proven solution to protect the confidentiality and integrity of Internet based communication without https. The SSL//TLS protocols have been scrutinized by security experts. Unless you are such an expert, don't think that you can come up with something that is solid enough. I personally would not trust any security measure that has not been published and analysed by the security and encryption community. Dannywww.cellamea.eu On 1 aug, 17:06, Stefan Bachert stefanbach...@yahoo.de wrote: Hi Sven, i did have similar thought in the past. Encrypting the database base would solve any Datenschutz data protection topic since the application provider would not be able to even read the data of his customers. However, I do not see any easy solution, yet. Just encrypting any database data would destroy any orderings on indexes. It would work when only using equivalence, but this is a hard limit. The point of encryption should be the server. When you doing encryption on client side you must offer the encryption and decryption algo, too. So it is likely to loose more than to win. (And it is difficult to implement encryption without having an integral data type as it is the case with javascript). To hash the password on client side is equivalent as to put the password in clear to the database. You loose security when doing so. Any attacker would just send the encrypted password, may be to a similar service using the same approach! Any attacker could substitude the browser and code when he has a legal access to the service. So he can get the encryption algo and apply it to other users. The only thing which is under your control is the server. Stefan Bachert http::/gwtworld.de Inquiries for professional GWT support are welcome. I am sorry, I won't do free personal support. On 31 Jul., 19:07, Sven sven.ti...@googlemail.com wrote: Dear group, I want to extend a GWT/GAE application by offering the option to encrypt information entered by the user on client side in the database. The goal is to increase trust when storing potentially sensitive data, e.g. to prevent that people who have access to the DB (like me) have read access to the stored information. For client-side encryption using GWT I found this post:http://www.mooreds.com/wordpress/archives/000529 However, others do not even recommend to compute password hashs on the client and propose to do that on the server:http://www.owasp.org/index.php/Hashing_Javahttp://stackoverflow.com/q.. From user's perspective, I would not be comfortable with transmitting my data unencrypted to the server (even using HTTPS), as the server- side may for example log my information (and my password!). Especially for the password-part I would feel unconfortable, as many people tend to reuse their passwords (please no discussion about this :-)). Currently, I see two options: a) Encrypt and decrypt the information on the client using JS/GWT. Pro: The password never leaves the browser, the unencrypted information never leaves the browser. Con:
Re: ANT task for a web project using GWT
There are no provided ANT tasks, however it is not that difficult to write your own ANT macros to do what you want. Unfortunately I can't provide you with my macro, but this should be enough to get you started: macrodef name=gwtCompile attribute name=module / attribute name=dir default=${builddir} / attribute name=output default=. / sequential java classname=com.google.gwt.dev.Compiler fork=true dir=@{dir} failonerror=true classpath path refid=gwt.classpath / path location=@{dir} / /classpath jvmarg value=-Xms${gwt.jvm.xms} / jvmarg value=-Xmx${gwt.jvm.xmx} / arg line=-localWorkers ${gwt.localWorkers} -style @{style} -war / arg value=quot;@{output}quot; / arg line=@{module} / /java /sequential /macrodef this is an extreamly over-simplified version of my macro and will need some work if you have any generators in your project because the GWT compiler wants them as class files. My version of the macro also exposes a lot more of the other compiler options. On Aug 2, 2:01 pm, Kady kaushika...@gmail.com wrote: I am trying to integrate couple of GWT 2.0 modules into a web project and wanted to integrate the build process of the modules with that of the project. What are the ANT task options that GWT provides? If not, then are there any other 3rd party tools? Thank you. -- 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: Browser Event Propagation
event.preventDefault works in both firefox and IE if you use the modern GWT event handling(handler registration method) instead of the DOM event handling (pre 1.6). On Aug 2, 3:04 pm, Falcon msu.fal...@gmail.com wrote: (You can also use event.returnValue = false, at least for IE.) On Aug 2, 3:50 pm, Falcon msu.fal...@gmail.com wrote: In browsers that don't support the W3C event model, you'll need to return false instead. (Also, to be clear, event.preventDefault() prevents the default browser action from happening, e.g. following a link that was clicked. event.stopPropagation() is what stops the event from bubbling through the DOM tree.) On Aug 2, 9:43 am, magat mathieu.a...@gmail.com wrote: Hi, I'm currently trying to set up a contextual menu on my gwt app, that is open a MenuBar in a PopupPanel on right-click. Using event.preventDefault() seems to stop the event propagation in my browser (Firefox 3.6) : my menu is displayed, not the browser one. I'm wondering if this behaviour was browser-specific ? I can't help but thinking that the event propagation may be different on another browser. I couldn't find a clear answer in the doc, but maybe I missed something. Thanks for reading this post ! Mathieu AGAR -- 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: Rounded tab styles in TabLayoutPanelTab
There is no pure CSS solution short of using CSS3 border-radius. For efficiency I have stuck with this approach for now, but the most compatible way is to make your own decoratedPanel that allows you to only have rounded corners on top and use the widget in the tab. On Jul 30, 8:08 am, Michael Jones mjones...@gmail.com wrote: Hello, I am trying to make the corners rounded in a gwt-TabLayoutPanelTab. I have attempted a few things including setting: background-image: url(/website/images/bg_tab_first.png); but it doesn't seem to have an effect. Any suggestions would be greatly appreciated. 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-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: Integration of Gwt + Java Beans
I regularly use this approach, the only thing that you have not specified is you communication protocol. Also, do you plan on deploying as an EAR with an EJB and WEB module, or do you plan on taking advantage of EJB3's ability to have EJBs within a web module? I use the EAR approach. On Jul 30, 3:40 am, Savdeep singh sabby.s...@gmail.com wrote: Hi everyOne, I want to ask if there is any problem in integration of Gwt(as Front End) + Java Beans (as Back End)...? Secondly is there any better or best approach for web application rather than these 2 combinations? Thirdly any other irrespective of the these 2 Q's the suggestions are welcomed :) -- 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: why doesn't this right-click capture work in IE?
You are using the older method of event handling. This method works fine for me: addDomHandler(new ContextMenuHandler() { @Override public void onContextMenu(ContextMenuEvent event) { showMenu(); event.preventDefault(); } }, ContextMenuEvent.getType()); On Jul 30, 11:16 am, BrianP brifo...@gmail.com wrote: I'm trying to capture right-clicks on a widget, to popup my own context menu instead of the browser's. I've researched it a bit and pieced together bits and I've got it working in Chrome and FF but not IE. In IE it doesn't display the default browser context menu, but it doesn't display my popup menu either. I'm just getting into GWT so I'm assuming I'm not doing something right with the right kinds of handlers or events. I'm also using the gwt-graphics module, that's where the Rectangle class that I'm extending comes from, in case that's relevant. Here's my code: public class RectangleRightClickable extends Rectangle { public RectangleRightClickable(int x, int y, int width, int height) { super(x, y, width, height); sinkEvents(Event.ONCONTEXTMENU); } public void onBrowserEvent(Event event) { GWT.log(onBrowserEvent); event.stopPropagation(); event.preventDefault(); GWT.log(event type : + DOM.eventGetType(event)); switch(DOM.eventGetType(event)) { case Event.ONCONTEXTMENU: if (DOM.eventGetButton(event) == Event.BUTTON_RIGHT) { GWT.log(Event.BUTTON_RIGHT, null); showMenu(); } break; default: GWT.log(event.toString()); break; } } protected void showMenu() { final RectangleRightClickable parent = this; final PopupMenu popMenu = new PopupMenu(); popMenu.addMenuItem(new Label(Add thing)); popMenu.setPopupPositionAndShow(new PopupPanel.PositionCallback() { public void setPosition(int offsetWidth, int offsetHeight) { int left = parent.getX() + parent.getWidth(); int top = parent.getY() + parent.getWidth(); popMenu.setPopupPosition(left, top); } }); } } -- 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: Passing values between 2 screens (popups)
If you were the one that spawned the screen you will have a javascript referance to it and can call javascript functions on it. http://codepunk.hardwar.org.uk/bjs12.htm You will be able to do this in GWT by using the GWT Exporter library. On Jul 28, 7:58 pm, Reinaldo \(Gmail\) reinaldo.manz...@gmail.com wrote: Hi All. I`d like to know how would be the best approach to pass some data (attributes) from Screen A to Screen B. (Kind of popups) I want to avoid any request. I heard about putting the values in a cookie and get them later but I did not like that solution. Thanks Manza -- 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: Do we have any Library for OpenID autentication(Authentication using Google accounts/Face book etc.)
You don't want to use GWT for authentication, what you want to do is use the authentication provided to you by the container. The solution that Danny provided does just that. You want to use a JSR-196 authentication provider like openId4Java and use your web.xml to require authentication to access certain services within your application. On Jul 29, 9:17 am, Jeff Chimene jchim...@gmail.com wrote: Hi: I'm not convinced that GWT is the right environment for Authentication. GWT is a great toolkit, but solving the authentication/authorization problem in an application-agnostic way is a tough problem to solve. FWIW, one of my current apps supports traditional username/password as well as OpenID. The reason is that a few of the beta testers found OpenID too confusing. I don't use server side Java; I found some OpenID client validation code in PHP that does what I want. On Wed, Jul 28, 2010 at 10:00 PM, V M thinker...@gmail.com wrote: Hello GWT Users, I am just wondering if we have any Library to do authentication using OpenID providers like Google accounts/Facebook. Here is what i am trying to do: * Create a site which needs log-in widget/page/module to customize UI for Users. What is the best way to create a Login form in this case? I appreciate if you could point me to some examples. Thanks in advance. -V M -- 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.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Web service call
Due to the SOP you might need to write your own server-side translator. Personally, I would use the WSDL to generate a Java SOAP client and use the same objects for a Jersey REST service to pass the data down to the client. Look at the Jersey project for REST examples(the getting started guide is good). Here is how to do a SOAP client: http://download-llnw.oracle.com/javaee/5/tutorial/doc/bnayn.html#bnayx On Jul 27, 1:24 pm, Deepak Singh deepaksingh...@gmail.com wrote: Hi, With GWT 2.1 My requirement is, I have to connect to different airlines thorugh their web services at the same time to search for available flights and then display the search result on my page.response I have wsdl files for all of them and methods to invoke and set request as xml string and get response as xml string. I have to do this search very very fast to get the response in 2 seconds from all the airlines. Kindly suggest the best approach to follow. If possible provide some sample code. Regards Deepak -- 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: Sorting in flex table
I have extended this for my solution: http://sites.google.com/site/psthapar/simplesortabletable On Jul 28, 3:37 am, Manivannan Malaichamy manivann...@gmail.com wrote: i want a sorting in flextable. Any help.. -- 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 to show server log file on the client?
I would prefer the log entries to be shown as they are created. I think that in this case the server has to contact the client. I have run into this use case a lot as a lot of my work has to do with operational environments. You are correct that the traditional way of doing a notification of sorts is for the notification hub to contact the notification listeners, but this is not feasible in a web based environment(unless you can specify a browser that supports web sockets). The most effective and universal solution is to make REST calls on a repeating interval and if you use a last modified architecture(only return stuff that has happened since the listener last requested the data) you can shorten the refresh time to the point where it is almost instantaneous. I suspect this is how most AJAX IM and chat applications work(think Facebook Messenger). On Jul 27, 11:21 pm, Magnus alpineblas...@googlemail.com wrote: Hi, I would like to show the contents of a log at the client side: There is a complex operation (chess move analysis) on the server, triggered by a client's RPC serivce call. The operation produces a list of log entries, which should be presented at the client. My intuitive idea is to collect the log entries and return them as part of the return value of the RPC call. But in this case, all the log entries would be presented at once. I would prefer the log entries to be shown as they are created. I think that in this case the server has to contact the client. But I have no idea of a concept for such a scenario, and I would avoid getting the whole scene too complex. How would you do that? Thanks Magnus -- 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: Writing a JS library in GWT?
Once the GWT compile completes, it is up to the linker to decide how to package it. The single script linker should behave how you would like, but you will have to make sure that deferred binding is never used in your code unless only one permutation is possible. The default linker is an iframe linker, which is the bootloader you are talking about. Google knew some people wouldn't like this and would like to do exactly what you are saying, which is why they maintain the SingleScriptLinker. If it doesn't behave exactly as you would like you may have to pull the source down and modify it to fit your needs. There needs to be exactly one primary linker, therefore there is no disable bootloader compile option because a linker must be provided in order for GWT to know how to distribute and load the code. http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/core/linker/SingleScriptLinker.html On Jul 26, 4:54 pm, S Rabin scottra...@gmail.com wrote: I see. So when the only thing in my loadModule function is an export call, and I export the method (via Ray Cromwell's gwt-exporter library, which I was already using): public void HelloTest(String id){ DOM.getElementById(id).setInnerHTML(Hello World); } it should compile to 25kb plus a bootloader? I'm not arguing that a bootloader is a bad idea for larger code, but I was really just hoping for a --disable bootloader compile option. To address your concern that there is 'no possible way for the code size to grow', and that the GWT compiler aggressively prunes dead code, yes, I'm fully aware that it is designed to do that. That's why, when writing a function in GWT, I expect it to compile out to something that doesn't exceed the size of handwritten JS for the same purposes. There are two options here: one, I'm missing some checkbox (and it's not the OBFuscated option), or two, GWT is including a lot more crap it thinks I need that I'm not aware of, hence why I'm asking how to fix it. As for whether I know better than Google when it comes to the bootloader... yes, in this case, I do. I anticipate this library to be approximately 10kb of handwritten javascript, and I'm not doing anything that should warrant more than 1 permutation beyond browser specific speed optimizations. Therefore, distributing the library as a .js file instead of a bootloader plus 4 different permutations seems like a better idea. Is my only option here really to write my own linker to output one .js file, no bootloader, no browser-specific optimizations? On Jul 26, 12:42 pm, lineman78 linema...@gmail.com wrote: First, let me start by saying that people are already writing javascript libraries using GWT and have been for some time. Ray Cromwell created the GWT exporter library for this exact purpose for his own usage and open sourced it. While bootloaders seem expensive it is the only way to deliver the most efficient code to the client. There is no possible way for code size to grow when compiled because if you go far enough every method will eventually make it to a JSNI method, so what you are missing in your calculations is all the code supplied by google and the small overhead code involved with the bootloader. However, there is a linker available to create only one output, but in order for this to work the compilation must result in only one permutation, which is almost impossible unless you know the browser your client will be using. You asked: Is there a way to crop out all the unnecessary cruft GWT seems to think I need?. You can write your own linker if you feel that you know better than google when it comes to the bootloader, but as far as the compiled code itself; the GWT compiler has very aggressive dead code elimination, so any output code will be used at some point. On Jul 26, 9:21 am, S Rabin scottra...@gmail.com wrote: I've done quite a bit of searching to find any information about this, but it seems that people are more concerned with writing GWT libraries to keep in GWT before compilation. I would like to write the libraries I frequently use in my projects in GWT, then compile and expose them to hand-written Javascript. I have several issues with the way GWT seems to handle what I want to do: 1) Bootstrapping. I understand that the iframe loading method is highly efficient for large codebases so as to make the page non- blocking, but for a small library bootstrapping is overkill. To test, I tried writing my TableGenerator library (a 7kb handwritten non- minified library) in GWT. The result was a 6 kb deferred binding loader file (table.nocache.js) and 4 permutations of compiled JS weighing in at 20-30kb each. Which brings me to issue #2 2) For compiling the code, GWT seems to produce LARGER codebases. Fast, yes, but how does 3-5kb of source result in 20-30kb of compiled javascript? Is there a way to crop out all
Re: Standards Mode + Decorated Popup Panel + IE == FAIL
I can confirm that this did fix the problem. On Jul 27, 10:38 am, lineman78 linema...@gmail.com wrote: According to this bug it has been fixed in 2.0.4, I will try updating and let you know if it worked: http://code.google.com/p/google-web-toolkit/issues/detail?id=4532can... On Jul 27, 3:15 am, randomwalk ligaomob...@gmail.com wrote: Have the exact same problem with IE8 in standards mode. I'm not using Decorated Popup Panel though. I wrote my own PopupWindow class that extends PopupPanel. On Jul 6, 5:31 pm, lineman78 linema...@gmail.com wrote: I am having aproblemwhere I have changed to standards mode in order to use layout panels, but it seems to have broken decoratedpopup panel inIE(thepopupshows, but the rest of the screen turns white behind it). I have taken a very rough look with Firebug Lite and didn't see anything obvious and was just wondering if anyone else has seen thisproblem. Again, I have not done a whole lot of debugging yet, but I am in standards mode with IE6 and a DockLayoutPanel as my root. When I click on the button to pop up thepopupshows up, but everything else goes white, but as soon as you resize the window everything paints correctly again. Is there a way to tell the browser to manually do a repaint maybe? -- 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: Bug in calculating “Absolute top” position u sing GWT framework
Are you sure that the problem is the getAbsoluteTop method, or is it muliplying the + 10 for you without you knowing and messing things up. Try taking out the +10 and see if it consistently shows on the top left. On Jul 27, 2:19 am, Ragothaman Thanikachalam gwtforum4r...@gmail.com wrote: In ie7 browser set zooming level 100%, and open GWT showcase application.http://ongwt.googlecode.com/svn/trunk/com.google.gwt.sample.showcase Click “Show Basic Popup” button. Now the popup panel opens over this button. Change the zoom level to 125% Continue the previous step. Now the popup panel position looks strange. But in IE8 its works perfect. Can any one help me to resolve this problem? Thanks Ragoth… -- 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: uibinder @import url..
This is an external stylesheet and cannot be used with the @import annotation. As I said before, you will have to either download the css and include it with your module or add it to the gwt.xml file. On Jul 26, 8:02 am, asianCoolz second.co...@gmail.com wrote: can you give example how to use styleInjector replace of @import? i'm refering tohttp://code.google.com/p/google-web-toolkit/wiki/StyleInjector and try put @Source(http://fonts.googleapis.com/css?family=Lobster;); but eclipse prompt for error. any example? -- 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: TabPanel within TabPanel styling
you can also use css dom selectors that would style the gwt-tabPanel classes differently if they are the child of another gwt-tabPanel On Jul 25, 9:30 am, mobilekid mobilek...@googlemail.com wrote: My app's layout consists of a TapPanel, which holds another TabPanel. I'd like to have the two TabPanels look differently. Following the GWT tutorial on applying styles I did the following: TabPanel innerTabPanel= new TabPanel(); //carriersTabPanel.setSize(100%, 100%); innerTabPanel.addStyleName(inner-tabPanel); .gwt-TabPanel .inner-tabPanel{ width: 100%; height: 100%;} This, however, did not have any effect whatsoever. Then I tried the following, but that didn't work either: .inner-tabPanel{ width: 100%; height: 100%; } So how I can style the two panels separately? -- 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: Writing a JS library in GWT?
First, let me start by saying that people are already writing javascript libraries using GWT and have been for some time. Ray Cromwell created the GWT exporter library for this exact purpose for his own usage and open sourced it. While bootloaders seem expensive it is the only way to deliver the most efficient code to the client. There is no possible way for code size to grow when compiled because if you go far enough every method will eventually make it to a JSNI method, so what you are missing in your calculations is all the code supplied by google and the small overhead code involved with the bootloader. However, there is a linker available to create only one output, but in order for this to work the compilation must result in only one permutation, which is almost impossible unless you know the browser your client will be using. You asked: Is there a way to crop out all the unnecessary cruft GWT seems to think I need?. You can write your own linker if you feel that you know better than google when it comes to the bootloader, but as far as the compiled code itself; the GWT compiler has very aggressive dead code elimination, so any output code will be used at some point. On Jul 26, 9:21 am, S Rabin scottra...@gmail.com wrote: I've done quite a bit of searching to find any information about this, but it seems that people are more concerned with writing GWT libraries to keep in GWT before compilation. I would like to write the libraries I frequently use in my projects in GWT, then compile and expose them to hand-written Javascript. I have several issues with the way GWT seems to handle what I want to do: 1) Bootstrapping. I understand that the iframe loading method is highly efficient for large codebases so as to make the page non- blocking, but for a small library bootstrapping is overkill. To test, I tried writing my TableGenerator library (a 7kb handwritten non- minified library) in GWT. The result was a 6 kb deferred binding loader file (table.nocache.js) and 4 permutations of compiled JS weighing in at 20-30kb each. Which brings me to issue #2 2) For compiling the code, GWT seems to produce LARGER codebases. Fast, yes, but how does 3-5kb of source result in 20-30kb of compiled javascript? Is there a way to crop out all the unnecessary cruft GWT seems to think I need? 3) I would prefer to not have a bootloader - I anticipate the compiled form of my code is going to be smaller than the bootstrap code and would rather it just be loaded. Is there a compilation option to disable permutations and output (obviously more to handle different implementations) code that works in all browsers? Sincerely, Scott Rabin -- 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 Error Unable to find .gwt.xml
This is a generic error and can be caused by many different things. 1) Malformed include in gwt.xml 2) Classpath issues 3) Malformed script tag in the head of the html file 4) Trying to use a non-GWT project I have also randomly seen this error in hosted mode and a Ctrl+F5 usually fixes it. This used to be a common occurrence before OOPHM with Eclipse and rename-to combined with an external server, so if you are using an older version of GWT(pre 2.0) I suggest updating. On Jul 26, 12:14 pm, Soeren B soeren.bueh...@googlemail.com wrote: Hi Community, many of you know the following problem: ERROR] Unable to find 'uivers2/Uivers2.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? Has anyone solved it? Could you please say me what I have to do? I imported the JAR of the newest incubator of gwt, I am working with gwt 2.04. Regrads, soeren -- 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: web-kit gradient not working
someone just asked this question 2 days ago, there is a bug report in, you have to wrap it with a literal for now in uibinder or cssresource. http://code.google.com/p/google-web-toolkit/issues/detail?id=4877 On Jul 24, 9:34 am, asianCoolz second.co...@gmail.com wrote: background-image: -moz-linear-gradient(100% 100% 180deg, #2F2727, #1a82f7) !important; background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#1a82f7), to(#2F2727)) ; the first one work on uibinder, but the second one not showing up in safari. anyone can comment on this? i'm using gwt2.1m2 -- 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: uibinder @import url..
From the CssResource documentation: The @import statement will only work for other CssResources, not for URLs at runtime, since the .gwt.xml or StyleInjector can be used in those cases. http://code.google.com/p/google-web-toolkit/wiki/CssResource#Compile-time_import If you wish to use external css in your project without bringing it into your code you will have to use the method of adding 'stylesheet src=css-url /' to your gwt.xml file. On Jul 24, 9:59 pm, asianCoolz second.co...@gmail.com wrote: hi, does this line @import url(http://fonts.googleapis.com/css?family=Lobster); inside test.css ui:style src=test.css / suppported in uibinder? when i run on browser and look at the obfuscated css file, it didnt have the line @import url(http://fonts.googleapis.com/css? family=Lobster); ? is it ignored/skipped by uibinder? -- 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 app looks ugly in IE6
One little trick you can use is use firebug to inspect the table you want to experiment with and copy it's html to a flat html file and open the html file with IE and play around with it till you get it right. The trick is to get the html how you want it, then roll the changes into the java code using the DOM API. There are many little tricks you can perform to get IE to layout tables correctly and without actually seeing the table html I can give you 2 suggestions: 1) FlexTable.setCellPadding(0); FlexTable.setCellSpacing(0); 2) !!Only do this if you are not using percentages for column widths or row heights anywhere in the table. FlexTable.getElement().getStyle().setProperty(tableLayout, fixed); http://blogs.msdn.com/b/ie/archive/2005/02/10/370721.aspx http://msdn.microsoft.com/en-us/library/ms531161.aspx Another thing that can sometimes have an effect on how tables behave in IE is DOCTYPE. Google recomends standards mode for their LayoutPanels and sometimes quirks mode can help(if you aren't using layout panels). On Jul 22, 8:30 pm, Magnus alpineblas...@googlemail.com wrote: Hi Lineman! Make sure you specifically set cellpadding and cellspacing to 0 (IE assumes non-zero for one of these, don't remember which). I already found out something: First, I only set the margin/padding values to 0 in the Java code, wich worked on browsers other than IE6. Then, I *also* set them to 0 in the stylesheet, and not it looks a little bit less ugly. :-) The way that IE calculates table layout is significantly different than the other browsers in some cases and I think that with fairly minimal tweaking you will be able to fix these issues. Ok, but how can I find all the other tweaks? I found the one above, but I am no CSS specialist. I want to avoid trying a lot of things without plan and pumping up my CSS... Magnus -- 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 app looks ugly in IE6
GWT does not promise that all renderings look the same, but instead gives you the tools to do so efficiently. For example, IE does not render borders around empty cells in a table, but FF and webkit do. It is up to you to set the CSS to tell IE to also render them. The IE widgets do promise to do what they can to make them behave consistently across browsers and provide the most efficient implementation, but the only thing that promises consistent rendering is the new layout panels. It is up to you to write the CSS for all the browser quirks. The way that IE calculates table layout is significantly different than the other browsers in some cases and I think that with fairly minimal tweaking you will be able to fix these issues. Make sure you specifically set cellpadding and cellspacing to 0 (IE assumes non-zero for one of these, don't remember which). On Jul 22, 12:03 pm, Brett Thomas brettptho...@gmail.com wrote: I think it looks classy to display a note for IE6 users that says something along the lines of unfortunately our website no longer supports IE6, click here to learn how to upgrade I think plenty of people have no idea what browser version they are using. They may know the difference between IE and Firefox, but not what version number it is. If a site doesn't work, they'll just say must be because my computer is old and forget about it. So, tell them what they can do to fix it... On Thu, Jul 22, 2010 at 2:00 PM, charlie charlie.f...@gmail.com wrote: Agreed. It's been the bane of web developers existence for far too long. On Thu, Jul 22, 2010 at 12:44 PM, Christian Goudreau goudreau.christ...@gmail.com wrote: Let's drop IE6 and IE7 support, I think it's time anyway for that. On Thu, Jul 22, 2010 at 1:42 PM, Isaac Truett itru...@gmail.com wrote: GWT doesn't promise to make your application look the same on all browsers. It does try its very best to make sure that the JS it produces functions the same across browsers, and doesn't leave any nasty side effects, leak memory, or anything like that. There may be some cases where GWT will leverage CSS tricks on each browser to achieve a result (although I can't think of any such cases off the top of my head), but that doesn't mean that GWT will take steps to ensure that all of your CSS is magically transformed into something that works on any browser. For one thing, that's out of scope, and for another it isn't possible. Some things in CSS just aren't supported, especially in older browsers. On Thu, Jul 22, 2010 at 1:35 PM, Magnus alpineblas...@googlemail.comwrote: Hi, sorry for repeating: I thought that the promise of GWT was that one never ever has to deal with such problems anymore? Why are we discussing about wether to spent time in supporting IE6 while the GWT compiler should do this? Magnus -- 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-toolkit@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. -- Christian Goudreau -- 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. -- charlie/ -- 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.com. For more options, visit this group at
Re: Gradients in css3
You have to escape the beginning dash. Here is from my cssResource: @external gwt-Button, gwt-PushButton, gwt-ToggleButton; .gwt-Button, .gwt-PushButton, .gwt-ToggleButton { \-moz-border-radius: 3px; \-webkit-border-radius: 3px; } On Jul 22, 11:17 am, Jyaif jfgeye...@gmail.com wrote: Hi, Is it possible to add gradients using css in GWT? I have tried adding gradient with css, with java, directly into the UIBinder xml, but nothing works. I know my browser supports it because I can fill a simple static div. -- 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 app looks ugly in IE6
depends on your target audience. The majority of IE6 users are either enterprise or people who are running XP SP1. On Jul 21, 10:11 am, Magnus alpineblas...@googlemail.com wrote: Hi, my GWT app works great under current browsers, but it looks ugly under IE6:http://www.lfstad-chess-club.de:8080/ics/ Should I spent effort in finding out the reasons or isn't it worth the work? Thanks Magnus -- 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: file upload set filter
Well, first of all if you notice the link I posted earlier, none of the browsers implement the spec. If you would like to do it anyway in case they ever do, you will have to do a getElement and manually set the property through the DOM API. Remember every GWT widget is just a wrapper of an HTML element. On Jul 20, 10:58 pm, aditya sanas 007aditya.b...@gmail.com wrote: how to embed form input type=file name=pic id=pic accept=image/gif, image/jpeg / /form into gwt file upload...? -- Aditya On Wed, Jul 21, 2010 at 2:00 AM, lineman78 linema...@gmail.com wrote: http://www.w3schools.com/TAGS/att_input_accept.asp On Jul 20, 2:01 pm, Paachu binu...@gmail.com wrote: Hi, I need to upload one csv file into my application. I am using FileUpload compontent to upload the File. But when I use FileUpload, the FileUploadDialog displayed All files.. I need to set it only for csv files . How can I set filter for that? thanks Paachu. -- 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.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Send String from GWT TO PHP
There are examples around that are coppied directly from a book, I believe it was GWT in Action. If you are using GWT 2.0+ a JSONP API was added... http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/jsonp/client/JsonpRequestBuilder.html On Jul 21, 6:15 am, cokol eplisc...@googlemail.com wrote: hi, please see documentnation on RequestBuilder class, there is a good sample On 20 Jul., 20:20, bhargava bhargav...@gmail.com wrote: Hi all, I need to send a string from my gwt platform on glassfish to a website running(using php) on apache server. I know that i need to use JSONP . Is there any tutorial which can provide me a good idea on how to use json in gwt to send a string variable to another server? Thank you -- 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: XSL Transformation, AccessControlException, NoClassDefFoundError and SyntheticRepository
From what I can tell it is failing while compiling the stylesheet. I would suggest taking app engine out of the loop altogether first and just so it in a static main to make sure it is compiling. If it works as a static main than it is probably the file IO. To test this I recommend to try just reading the file to the log to make sure that you actually have a hold of the file. I have found that the most reliable way to read in a file is not to use the File constructor, but assuming the name of your class is XsltService: XsltService.class.getResourceAsStream(test.xsl); // Assuming test.xsl is in the same folder as the class file, set to /test.xsl if it is in the root. On Jul 21, 6:42 am, Jan jan.morl...@googlemail.com wrote: Hi, I would like to use an xsl transformation inside an HttpServlet. The code is essentially the following: File xslfile = new File(test.xsl); TransformerFactory factory = TransformerFactory.newInstance(); factory.setAttribute( debug, true ); Transformer transformer = factory.newTransformer(new StreamSource( xslfile ) ); I already made sure that the xsl file is valid and I defined it as resource-file inside appengine-web.xml If I now call the servlet the first time, the following error occurs: java.lang.ExceptionInInitializerError at com.sun.org.apache.bcel.internal.classfile.JavaClass.init(JavaClass.java: 109) at com.sun.org.apache.bcel.internal.classfile.JavaClass.init(JavaClass.java: 228) at com.sun.org.apache.bcel.internal.generic.ClassGen.getJavaClass(ClassGen.java: 174) at com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.translate(Stylesheet.java: 735) at com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java: 354) at com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java: 429) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java: 795) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java: 617) at com.axag.invoiceedit.server.MY SERVLET.doGet(MY SERVLET:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:693) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java: 51) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java: 122) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 418) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java: 70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:349) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 542) at org.mortbay.jetty.HttpConnection $RequestHandler.headerComplete(HttpConnection.java:923) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 409) at org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:582) Caused by: java.security.AccessControlException: access denied (java.io.FilePermission PATH TO MY PROJECT'S SRC DIRECTORY read) at java.security.AccessControlContext.checkPermission(AccessControlContext.java: 323) at