GWT app and Chrome Lighthouse
I've got a GWT 2.7 app. The index.html is fairly standard: Your web browser must have JavaScript enabled in order for this application to display correctly. Lighthouse doesn't give a SEO result and displays the error message about JS not enabled. When I run Lighthouse on an Angular app it has no problem. Anyone know why ? -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: Display problem on Samsung Galaxy 3
I've done a bit more investigation of this. I copied the HTML code generated in Chrome. . table with 100 rows here If I remove this line: the test code works fine on a Galaxy 3 using both the default browser and Chrome. Pretty strange. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/c2Y1dZxW4rMJ. 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.
Display problem on Samsung Galaxy 3
This simple program doesn't render correctly using the default browser on a Samsung Galaxy 3. It works fine using Chrome, and it works fine on HTC devices and IPhone. It gives the same problem whether using 2.4.0 or 2.5.0.rc1. The problem is with scrolling. The page displays, but if you scroll down to see all the lines in the Grid, a blank screen display. If you scroll back you see the first lines. This program can be tested at http://www.bjbcats.com/Bryan Is there a problem with my code or the Samsung browser ? Thanks. public class Bryan implements EntryPoint { public void onModuleLoad() { Resources.INSTANCE.css().ensureInjected(); ScrollPanel sp = new ScrollPanel(); FlowPanel fp = new FlowPanel(); fp.add(makelb()); Grid grid = new Grid(100,1); grid.setWidth("90%"); grid.addStyleName(Resources.INSTANCE.css().bjbCentered()); for (int i=0; i < 100; i++) { grid.setWidget(i, 0, new HTML("This is row " + (i+1))); } fp.add(grid); sp.add(fp); RootLayoutPanel.get().add(sp); } ListBox makelb() { ListBox listbox = new ListBox(); listbox.setVisibleItemCount(1); listbox.addStyleName(Resources.INSTANCE.css().bjbMobileControl()); listbox.addStyleName(Resources.INSTANCE.css().bjbMobileButtonSize()); listbox.addItem("--- Select ---", "0"); listbox.addItem("Option 1", "1"); listbox.addItem("Option 2", "2"); listbox.setSelectedIndex(0); return listbox; } } The two CSS stylings just make the button bigger for a mobile device. .bjb-Mobile-Control { margin: 8px; padding: 8px; display: block; } .bjb-Mobile-Button-Size { margin-left: auto; margin-right: auto; width: 80%; } -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/77vFN_AHd2cJ. 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: TabLayoutPanel with custom widget for tabs
Hi Alfredo, Thanks for the reply. It turns out the "magic sauce" for getting the elements to display correctly is to use InlineLabel or InlineHTML rather than plain Label or HTML. Thanks to your code, all is good. Cheers. > private InlineLabel tabItemTittle; > private String text; > private Image image; > > public TabItem(String title) { > tabItem = new FlowPanel(); > initWidget(tabItem); > tabItemTittle = new InlineLabel(title); > tabItem.add(tabItemTittle); > image = new Image(icons.asteriskOrange()); > tabItem.add(image); > addHandlers(); > } -- 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.
TabLayoutPanel with custom widget for tabs
I'm trying to get custom tabs with a closing "X" image next to the label. Something like "Blah X" with the X a clickable image. I cannot get the tab widget to display correctly. Below is a simplified example which shows the problem. The "Bad Tab" should float the label left and the "X" right. On Chrome this will cause the tab to be "detached" from the tab panel. i.e. it display about 4px above the main tab panel. In FF the tab isn't detached, but the floating doesn't seem to work. Has anyone got something similar working ? TabLayoutPanel panel = new TabLayoutPanel(32, Unit.PX); panel.setSize("300px", "300px"); HTML hello = new HTML("Bad Tab "); hello.getElement().getStyle().setProperty("float", "left"); HTML exit = new HTML("X"); exit.getElement().getStyle().setProperty("color", "red"); exit.getElement().getStyle().setProperty("float", "right"); FlowPanel fp = new FlowPanel(); fp.add(hello); fp.add(exit); panel.add(new Label("Blah"), fp); hello = new HTML("Good Tab"); exit = new HTML("X"); exit.getElement().getStyle().setProperty("color", "red"); fp = new FlowPanel(); fp.add(hello); fp.add(exit); panel.add(new Label("Blah"), fp); RootLayoutPanel root = RootLayoutPanel.get(); root.add(panel); -- 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: Call for action: Time to rethink a road-map and more frequent updates for GWT.
I agree 100% with your assessment of alternative technologies, and agree that GWT is really the only solution for developing complex web applications. The only alternative is a 100% Javascript solution (for example using Closure tools). With Dart, Google have acknowledged that Javascript isn't really up to the task. Given Google's reliance on GWT for some of their core applications, I think it's fair to assume either GWT will be around for a while or there will be some migration path to Dart. On Apr 14, 12:34 am, Blake McBride wrote: > > Now we have ASP, JSP, and other popular mashups out there. I am utterly > shocked how poor they are (although to their credit, they are trying to > solve practical problems given an environment that was clearly not meant to > support what they are attempting!). These environments are among the worst > I've ever seen. It's one kludgy work around after another with three > totally different environments attempting to interact. GWT goes a very > long way to solve this very significant problem. However, GWT is a total > waste of time if you risk your entire company on it and it gets dropped. > In terms of financial risk, very unfortunately, tool popularity and > support beats functionality, elegance, and productivity every time. -- 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.
Using Google web fonts
There have been a few posts here and on StackOverflow, but I've still got an issue with using Google Web fonts in my GWT app. In my module .gwt.xml file I have http://fonts.googleapis.com/css? family=Roboto:regular,medium,thin,italic,mediumitalic" /> I have in my CSS file body, table td, select, button { font-family: Roboto, sans-serif; } I have Resources.java with @Source("css/my.css") public CssResource css(); and in my app I do: Resources.INSTANCE.css().ensureInjected(); This all works well except for certain GWT widgets, which have a hard- coded font. e.g. in clean.css such as: .gwt-TextBox { padding: 5px 4px; border: 1px solid #ccc; border-top: 1px solid #999; font-size: small; font-family: Arial Unicode MS, Arial, sans-serif; } which is the last style applied, so my TextBox always has an Arial font and not the Roboto which I want. I'm wondering if there is a way to easily override these to use my desired font -- 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.
Facebook Like button
I've used the code from http://developers.facebook.com/docs/reference/plugins/like/ to generate a Like button. I've used both the XFBML and HTML5 code. It works in FF,Chrome and Safari with this code snippet (this is the HTML5 version): HTML fb = new HTML(); fb.setHTML("http://www.blah.com\"; data-send=\"true\" data-width=\"360\" data-show-faces=\"false\" data- font=\"arial\">"); then add this to some panel. In my HTML file I've added and the Facebook generated Javascript. In IE 9 and the latest Opera it doesn't display. I note there's an earlier thread from last year on this, but I can't see anywhere that anyone has actually got it to work. -- 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.
Adding widget to TabLayoutPanel tab
Has anyone has any success in adding a widget, rather than simple text to a TabLayoutPanel tab ? (i.e using add(Widget child, Widget tab)) Something like this: TabLayoutPanel.add(new FlowPanel(), new CheckBox("blah")); TabLayoutPanel.add(new FlowPanel(), new Button("blah")); TabLayoutPanel.add(new FlowPanel(), "blah"); When I do this, the checkbox widget doesn't display in the correct place. There's about a 4px gap below it, so it doesn't line up correctly with the actual deck panel. I've tried creating a custom Composite, mucked around with CSS, and looked at the source but can't figure out why it doesn't line up properly. (I actually want to create a tab with some text and an "X" image/button so the user can close the tab). -- 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: Devmode not working
I created a simple new project, and it works as it should. I think the problem with my other project is that I've compiled the code from multiple other modules into some jars for deployment and I think this is why devmode is not picking up the changes to the source because of the jar files. -- 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.
Devmode not working
I'm trying to get devmode working using Tomcat rather than the embedded Jetty server. I've followed the instructions, and everything seems to be correct, but it doesn't work. Using "ant war' I can compile the whole project, copy the war to Tomcat, then http://localhost:8080/PayrollApplication/PayrollApplication.html starts the app and it all works exactly as it should as a deployed app. In the devmode Ant target in build.xml I put this: http://localhost:8080/PayrollApplication/ PayrollApplication.html"/> When I do 'ant devmode' I get a few startup messages: Buildfile: build.xml libs: javac: devmode: [java] Initializing GWT Developer Plugin [java] gecko=6.0.2, firefox=6.0.2, abi=Linux_x86-gcc3, built for ff60 [java] Connect(url=http://localhost:8080/PayrollApplication/ PayrollApplication.html?gwt.codesvr=127.0.0.1:9997, sessionKey=H-.;AU.l \O4K]baV, address=127.0.0.1:9997, module=payrollapplication, hostedHtmlVersion=2.1 [java] Initiating GWT Development Mode connection to host 127.0.0.1, port 9997 [java] Connect(url=http://localhost:8080/PayrollApplication/ PayrollApplication.html?gwt.codesvr=127.0.0.1:9997, sessionKey="v7M,W- =n(Yq8Y6z, address=127.0.0.1:9997, module=payrollapplication, hostedHtmlVersion=2.1 the demode console shows, and I'm able to start the default browser, and the app runs, so it all looks fine. I then made one change to the source, and refreshed the browser, but nothing changed, so I closed the browser, closed the devmode console, and did another 'ant devmode'. This found the changed source file, and compiled it: Buildfile: build.xml libs: javac: [javac] Compiling 1 source file to /home/bryanb/gwt/apps/payroll/ PayrollApplication/war/WEB-INF/classes devmode: [java] Initializing GWT Developer Plugin [java] gecko=6.0.2, firefox=6.0.2, abi=Linux_x86-gcc3, built for ff60 [java] Connect(url=http://localhost:8080/PayrollApplication/ PayrollApplication.html?gwt.codesvr=127.0.0.1:9997, sessionKey=U_Wyr`)o&RLubMgK, address=127.0.0.1:9997, module=payrollapplication, hostedHtmlVersion=2.1 [java] Initiating GWT Development Mode connection to host 127.0.0.1, port 9997 but once the app loaded, it was still running the old code. No matter what I try, the browser ALWAYS runs the code in the Tomcat deployment directory, and it's as though the browser plugin isn't getting to the "local" code rather than the 'deployed" code.. Any hints as to where I should look ? 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-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: Using AbstractImagePrototype
Found a solution on StackOverflow: http://stackoverflow.com/questions/5188799/gwt-add-filtering-to-celltable Used this snippet of code: AbstractImagePrototype proto = AbstractImagePrototype.create(resource); return proto.getHTML().replace("style='", "style='position:absolute;right:0px;top:0px;"); and replaced the style bit with vertical-align I required. -- 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.
Using AbstractImagePrototype
In this snippet of code: AbstractImagePrototype blah = AbstractImagePrototype.create(Resources.INSTANCE.blah_image()); Button button = new Button(blah.getHTML() + " Blah"); I'd like to be able to make the image vertically aligned bottom, but can't figure out how to do it. I tried: ImagePrototypeElement element = blah.createElement(); element.getStyle().setVerticalAlign(VerticalAlign.BOTTOM); but couldn't get that to work. Ideally, it would be nice to use a CSS class, something like: blah.addStyleName(Resources.INSTANCE.css().alignBottom()); // won't compile ! 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-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.
AdWords Conversion Tracking
Hi, Can anyone tell me if it's possible to add the AdWords Conversion tracking script (http://adwords.google.com/support/aw/bin/answer.py? hl=en&answer=115794#) to a GWT generated page. I've got Google Analytics working by having the analytics script in my GWT launch html file, and when history changes I call this function: // tickle the GoogleAnalytics urchin to record a page hit public static native void tickleUrchin(String pageName) /*-{ var pageTracker = $wnd._gat._getTracker("UA-X"); pageTracker._trackPageview(pageName); }-*/; I'm not sure how I should do a similar thing with the AdWords script. 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: Image Generation
Something like this works for me. On the server: import java.awt.Container; import java.awt.Graphics2D; import java.awt.MediaTracker; import java.awt.RenderingHints; import java.awt.Toolkit; import java.awt.image.BufferedImage; import javax.imageio.ImageIO; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class ImageServlet extends HttpServlet { /** * */ private static final long serialVersionUID = 1L; public void doGet(HttpServletRequest request, HttpServletResponse response) { double thumbWidth; double thumbHeight; String imagefile = request.getParameter("file"); String height = request.getParameter("h"); String width = request.getParameter("w"); // System.err.println(imagefile + ", " + height + ", " + width); // Set the mime type of the image response.setContentType("image/png"); try { java.awt.Image image = Toolkit.getDefaultToolkit().getImage (imagefile); MediaTracker mediaTracker = new MediaTracker(new Container()); mediaTracker.addImage(image, 0); mediaTracker.waitForID(0); int imageWidth = image.getWidth(null); int imageHeight = image.getHeight(null); double imageRatio = (double) imageWidth / (double) imageHeight; // if width parameter is null, then just use it to scale thumbHeight = new Double(height); if (width != null) { thumbWidth = new Double(width); // determine size from WIDTH and HEIGHT double thumbRatio = thumbWidth / thumbHeight; if (thumbRatio < imageRatio) { thumbHeight = thumbWidth / imageRatio; } else { thumbWidth = thumbHeight * imageRatio; } } else { thumbWidth = thumbHeight * imageRatio; } // draw original image to thumbnail image object and scale it to the new size on-the-fly BufferedImage thumbImage = new BufferedImage((int) thumbWidth, (int) thumbHeight, BufferedImage.TYPE_INT_RGB); Graphics2D graphics2D = thumbImage.createGraphics(); graphics2D.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR); graphics2D.drawImage(image, 0, 0, (int) thumbWidth, (int) thumbHeight, null); graphics2D.dispose(); ImageIO.write(thumbImage, "png", response.getOutputStream()); } catch (Exception e) { e.printStackTrace(); } } } On the client, create a URL to get the image something like this: StringBuffer sb = new StringBuffer(GWT.getHostPageBaseURL()); sb.append("ImageServlet?file="); sb.append(imagefilel); sb.append("&h=" + Utils.getPageHeight()); sb.append("&w=" + Utils.getPageWidth()); Image image = new Image(sb.toString); -- 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=.
Re: Search Engine Indexing
In case it's any help to anyone, this is how I think I'll solve the indexing problem. My wife has a web site on which she sells various things, the descriptions of which are stored in a database. I re-jigged her website as a way to learn GWT. She was quite keen to have the GWT version, but pretty peeved when I told her it would not be indexed by Google, hence my desire to solve the indexing problem. Currently, I have a cron job that re-creates a sitemap file each night with URLs of the form http://mysite/show_product.aspx?key=1234 etc, and the app is started from http://mysite/index.aspx. (Backend is currently using Mono). Using the GWT app, the cron job will now create a new index.html file which looks like: window.location = "http://mysite/MyGWTApp";; some welcome blurb http://mysite/TextOnlyServlet?1234";> insert URL for every product we want indexed... and the sitemap will now contain URLs like http://mysite/TextOnlyServlet?1234 etc. (These URLs probably don't need to be in index.html as the search bot should read the sitemap anyway). The TextOnlyServlet simply reads the product description from the database and sends an unformatted HTML document back to the browser which looks like: window.location = "http://mysite/MyGWTApp#1234";; blurb for product 1234 read from database. Don't care about format, just the words So if a person clicks on a Google search result, which will be a URL like http://mysite/TextOnlyServlet?1234, their browser will get the HTML above and should redirect to the GWT app, which uses the correct history token, and we're away. Certainly there is a small overhead in the unnecessary text HTML sent down the line, but hopefully once in the GWT app they will bookmark from within there, so next time around they just get the GWT app. I think this should work, and seems to me to be within the spirit of the Google Webmaster guidelines. Bryan --~--~-~--~~~---~--~~ 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: Search Engine Indexing
Hi Eric, Thanks for the heads up on that I appreciate there's a few more 'gotchas' than my admittedly simplistic scenario, and I'm sure there's lots of big brains at Google thinking about the problem. Thanks again, Bryan --~--~-~--~~~---~--~~ 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: Search Engine Indexing
That's the point of my query/question, Why can't the Google bot understand Javascript ? As I said originally, using Firebug I can see what the Javascript has rendered to the DOM, so there's no good reason the Google bot can;t do the same. Granted, it cannot follow links or any of the possibly unlimited execution paths in the Javascript, but it should be able to render the initial state of the page, and consequently index stuff on that page. Likewise if there is a site map with history tags, it should be able to render the initial state of each of those pages and index accordingly. The initial state is really all you want indexed anyway - if I do a Google search for "fubar", I reasonably expect the URLs returned to point to a page with "fubar" on it somewhere i.e. for a GWT app the initial state of that page. It just seems a bit strange that one part of Google has created a tool for making really usable web sites, but the search side of Google says "don''t use Javascript" if you want to be indexed. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Search Engine Indexing
I've searched the forum on this topic, and it appears the only way to get a GWT site indexed is by some horrible hacks. If I use Firebug with Firefox, I can get the HTML displayed that the Javascript is writing to the DOM, so this means it should be possible for the Google search bot to do a similar thing, then parse the HTML like any static web page. Obviously, links cannot be followed, but the Google Webmaster site indicates that you should submit a site map to Google with the pages you want indexed anyway. So, provided I have implemented history in my GWT app correctly, I could submit a site map like: http://www.example.com/com.example.gwt.HistoryExample/HistoryExample.html#page1 http://www.example.com/com.example.gwt.HistoryExample/HistoryExample.html#page2 etc The Google bot could read each page as suggested above, index the words/labels etc and add the links to the search index, so that if they were displayed via Google search you go to the correct history page and everyone's happy. Is this not possible ? Bryan --~--~-~--~~~---~--~~ 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: Displaying a dynamic SSL site seal
Hi Cameron, Using a Frame is a good idea - thanks. It turns out that both using my code and a Frame causes the same error. It only occurs in hosted mode. If I compile the project from the command line, and run outside of hosted mode, it works (except that a Frame as you suggest works better than HTML). It must be something weird with the injected Javascript from the site seal that the hosted mode runtime cannot handle. Thanks, Bryan --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Displaying a dynamic SSL site seal
Hi, I'm wanting to display an SSL site seal which is a this bit of Javascript: https://seal.XRamp.com/seal.asp</a>? type=G"> Normally, you just put this on your HTML page where you want it to display and all is good. I really want to display it in a Dialog, but first I wanted to make sure it would work. This is my GWT code: package com.mycompany.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.user.client.ui.HTML; import com.google.gwt.user.client.ui.RootPanel; public class Demo implements EntryPoint { public void onModuleLoad() { RootPanel rootPanel = RootPanel.get(); String s = ""; HTML html = new HTML(s); rootPanel.add(html); } } I'm not sure if this is the best/preferred way to include this (i.e. as an HTML object), but when I try to compile this (from Eclipse, gwt- linux-1.5.3, jdk1.6.0_10, Suse 11.0), it barfs with this error: # An unexpected error has been detected by Java Runtime Environment: # # SIGSEGV (0xb) at pc=0xb8076520, pid=19786, tid=2813729680 # # Java VM: Java HotSpot(TM) Client VM (11.0-b12 mixed mode linux-x86) # Problematic frame: # C [libpthread.so.0+0x7520] pthread_mutex_lock+0x20 # # An error report file with more information is saved as: # /home/bryanb/workspace/Project3/hs_err_pid19786.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp The log file mentioned has about 4 pages of register dumps and what not. Can anyone give me a clue as to what to do. Thanks, Bryan --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---