[gwt-contrib] Re: Wrapping HTML Content into UIBinder

2015-01-16 Thread Benjamin Possolo
You should start by reading the UiBinder documentation http://www.gwtproject.org/doc/latest/DevGuideUiBinder.html. That has a lot of good examples that you can follow. In order to wrap just basic HTML, you should use an HTMLPanel widget. g:HTMLPanel pYour basic html goes inside the HTMLPanel

Re: [gwt-contrib] Re: Can we move the code to GitHub?

2014-03-30 Thread Benjamin Possolo
yah i don't actually expect it to happen just because i created a thread about it. i was just wondering if there are any very strong reasons against it. with regards to angularjs adoption...yes you are right in that it's not just the code repository but i feel like some simple changes would

[gwt-contrib] Can we move the code to GitHub?

2014-03-29 Thread Benjamin Possolo
I am interested in helping modernize the gwtproject.org website/documentation and part of that effort would include moving the code to GitHub. I think GitHub provides a certain amount of credibility that lacks with the current Gerrit system. Moving to GitHub would encourage more people to

[gwt-contrib] Re: Can we move the code to GitHub?

2014-03-29 Thread Benjamin Possolo
Thanks for the detailed response. On Saturday, March 29, 2014 7:28:22 PM UTC-7, Thomas Broyer wrote: Do you imply that the same system that is used for Android and ChromiumOS lacks credibility? The same that's also used by Eclipse, OpenStack, Typo3, Qt, Wikimedia, etc.

Re: Create ImageResource from URL derived from DB?

2013-12-15 Thread Benjamin Possolo
This is not what ImageResource was designed for. ImageResource is part of ClientBundle and is intended for bundling images into a single sprite map to reduce the number of network requests between the user's browser and your server. The artifacts are generated at compile time. If you want to

Re: GWT.create conference - call for presentations

2013-07-06 Thread Benjamin Possolo
Hey Joonas, I currently live in San Diego but am considering a relocation to San Francisco so either way, it should be possible for me to attend the conference in SF. I built this website http://markteplace.styleguise.net entirely in core GWT (running on GAE + java) and I use a lot of the

Re: I/O 2013 - GWT Sessions?

2013-05-19 Thread Benjamin Possolo
I think a GWT conference would be great as well. It would probably make more sense to occur somewhere on the west coast though since it is much closer to silicon valley. The San Diego Convention Center is always a great place for conventions. -- You received this message because you are

Re: The app is not loading in Safari?

2013-05-02 Thread Benjamin Possolo
Try completely deleting the safari browser cache, cookies, history, etc. then verify you have all the latest safari updates. I'm guessing u have some deferred binding issue as well but if not, the above may kickstart the browser. -- You received this message because you are subscribed to

Re: GWT dev plugin for Chrome 21.0.1180.60 m not installing

2013-02-07 Thread Benjamin Possolo
First off, what a nightmare it is just to get the plugin working on chrome. the chrome store kept failing to install the plugin with a worthless error message. So i defaulted back to my old habit of opening the chrome extensions tab and then dragging the CRX file directly onto the browser. But

Re: Ultimate GWT + GAE + Datanucleus + Eclipse + Maven Guide

2013-01-12 Thread Benjamin Possolo
Awesome! The archetype is a great idea! -- 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/-/3WD1o_VWBOoJ. To post to this group, send email to

Re: Ultimate GWT + GAE + Datanucleus + Eclipse + Maven Guide

2013-01-10 Thread Benjamin Possolo
Thank you! It took me quite a while. Does your project have a similar setup? -- 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/-/mBjcQcdru1AJ. To

Ultimate GWT + GAE + Datanucleus + Eclipse + Maven Guide

2013-01-07 Thread Benjamin Possolo
Hey all, I wrote this guide on setting up a project that uses GAE, GWT, Datanucleus, Eclipse and Maven. It is a case study of a complicated project and should be useful to those of you wishing to move to a Maven-based build system.

Re: How to center an Image?

2013-01-07 Thread Benjamin Possolo
an img element is, by default, an inline element (as opposed to a block element). That means you can simply use the following css property to center it: .myImage { text-align: center; } g:SimplePanel g:Image styleName={style.myImage}/ /g:SimplePanel the image will be centered within the

Re: GWT application runtime memory size is too large (client side)

2013-01-07 Thread Benjamin Possolo
+1 to this code splitting will be the biggest improvement you can make. if you are using activities/places then it is easy to introduce split points around every activity (using AsyncProxy). If your UiBinder templates are innefficiently written then it will impact memory a lot. prefer using

Re: ByteBuffer to String

2013-01-07 Thread Benjamin Possolo
ByteBuffer is not supported in GWT client code as documented here https://developers.google.com/web-toolkit/doc/latest/RefJreEmulation#Package_java_io so you should re-evaluate whatever you are doing with those first. I dont know if that google library you are using for the charsets class works

Re: GWT Crawlable (SEO)

2012-12-31 Thread Benjamin Possolo
Jan you seem to be kind of trolling; duplicate thread created 5 days ago by yourself and you clearly didnt bother to use the search feature but I will answer anyways Just copy the filter I wrote: https://groups.google.com/forum/#!topic/google-web-toolkit/aBt-QCCQkKY On Thursday, December

Re: execute priority ServletContextEvent handler and static block

2012-12-31 Thread Benjamin Possolo
do not put code in a static block in your servlet context listener. the context initialized method is guaranteed to be called exactly once for a servlet context listener before any of your servlets are initialized -- You received this message because you are subscribed to the Google Groups

Re: how to add meta tag in the header's page [with uibinder ?]

2012-12-31 Thread Benjamin Possolo
Here is an example for setting the description meta element public static void setMetaDescription(String description){ NodeListElement nodes = Document.get().getElementsByTagName(meta); for( int i = 0; i nodes.getLength(); i++ ){ MetaElement meta = (MetaElement)nodes.getItem(i); if(

Re: rpc serialization without the rpc

2012-11-02 Thread Benjamin Possolo
Correct me if I am wrong but it sounds like your idea will only have one advantage over a traditional caching layer on the server: avoiding serialization costs. You will still have deserialization costs which are likely a lot more time consuming since they happen in javascript in the browser

Re: how to pass a String[] array in the declarative UI

2012-10-31 Thread Benjamin Possolo
You are trying to add logic to your UiBinder XML file which is not what it is intended to do. View-specific logic goes in the java code. Just do it in the constructor or if you are caching your views (which is good for performance) in a dedicated method that can be called before the view is

Re: Destroy a widget

2012-10-31 Thread Benjamin Possolo
I can't really understand what you are asking or saying. If you want the widget to remain visible but to stop receiving events, do what Jens said: suppress the event handling logic in the event handler. If you want the widget to stop being visible and to stop receiving events, just do what I

Re: Cross field validation on client

2012-10-31 Thread Benjamin Possolo
I am not familiar with the GWT Validation framework. I'm not really sure why people use it considering vanilla GWT supports JSR303 (the documentation is pretty bad admittedly). Using plain GWT you would have a class-level validation annotation:

Re: Can't get Google Crawler to index my GWT-based site no matter what I do. Help!

2012-10-29 Thread Benjamin Possolo
On Monday, October 29, 2012 4:28:11 AM UTC-7, Gonzalo Ferreyra Jofré wrote: Hello, the hashbang is inverted (!#) in your URLs in the xml. Should be this way #! Try switching the position of the hash Oh wow! big mistake on my behalf. thank you for catching that!! i wonder if that will do

Re: Can't get Google Crawler to index my GWT-based site no matter what I do. Help!

2012-10-29 Thread Benjamin Possolo
It looks like that may have done the trick. I am not 100% certain if it was that because my app engine log files are showing a ton of traffic from the google bot yesterday at night. either way, thanks for finding that major mistake. googling site:marketplace.styleguise.net is now finally

Re: caching background image

2012-10-29 Thread Benjamin Possolo
If you can, use a ClientBundle. That will ensure the background image only gets downloaded once with the rest of your image resources and the spritemap produced by the client bundle should be cached by the browsers. create an interface called AppImages that extends ClientBundle (class must be

Re: Destroy a widget

2012-10-29 Thread Benjamin Possolo
I presume by uibinder owner you mean your HelloWorld class overrides the onEvent() method, is that correct? I also presume that you have some other component that is using the HelloWorld objects and attaching them to the view. For example, in your EntryPoint: HelloWorld h1 = new HelloWorld();

Re: Destroy a widget

2012-10-29 Thread Benjamin Possolo
Sorry there is a typo there. GWT.getRoot().add(panel); should be RootPanel.get().add(panel); -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit

Re: GWT vs SmartGWT

2012-10-29 Thread Benjamin Possolo
I recommend straight GWT for almost everything. The other frameworks just add abstractions on top of GWT that confuse things a lot more. Designing screens: UI Binder Client-side validation: Editor framework + JSR303 validation using HibernateValidator 4.0.2GA Performance: AsyncProxy,

Re: ListDataProvider.addDataDisplay() and setRowData

2012-10-29 Thread Benjamin Possolo
ListDataProvider wraps a list collection. It allows you to modify the wrapped collection and to automatically propagate those changes to the UI. If you do not use the ListDataProvider (and just call setRowData()) directly, then you will need to call setRowData() whenever you make changes to

Re: Can't get Google Crawler to index my GWT-based site no matter what I do. Help!

2012-10-28 Thread Benjamin Possolo
similar one albeit slightly optimized. /** * Special filter that adds support for Google crawling as outlined here * ({@link https://developers.google.com/webmasters/ajax-crawling/docs/getting-started} * * @author Benjamin Possolo */ public class GoogleCrawlerFilter implements Filter

Re: Can't get Google Crawler to index my GWT-based site no matter what I do. Help!

2012-10-28 Thread Benjamin Possolo
On Sunday, October 28, 2012 7:28:05 AM UTC-7, ant...@gmail.com wrote: Your URLs could be further improved if you go through the proposal in http://carlosaguayo.posterous.com/html5-history-in-gwt Was i in your position, i would do the above and then generate a sitemap.xml for search engine

Re: Can't get Google Crawler to index my GWT-based site no matter what I do. Help!

2012-10-28 Thread Benjamin Possolo
On Sunday, October 28, 2012 7:28:05 AM UTC-7, ant...@gmail.com wrote: Your URLs could be further improved if you go through the proposal in http://carlosaguayo.posterous.com/html5-history-in-gwt Was i in your position, i would do the above and then generate a sitemap.xml for search engine

Re: How to make ValueBoxEditorDecorator error message positionate to the right?

2012-10-27 Thread Benjamin Possolo
Add a style name to your decorator div element. i call mine textBoxDecorator then use the following css selectors: .textBoxDecorator div:first-child { float: right; } .textBoxDecorator div:last-child { float: left; } .textBoxDecorator::after { content: ; display:

Can't get Google Crawler to index my GWT-based site no matter what I do. Help!

2012-10-27 Thread Benjamin Possolo
I am unable to get my GWT-based site to be indexed by Google no matter what I do. My URLs all look like this: http://marketplace.styleguise.net/#!/home http://marketplace.styleguise.net/#!/new-listings http://marketplace.styleguise.net/#!/item/172001 http://marketplace.styleguise.net/#!/about

Re: GWT Dev Plugin broke (Chrome/mac osx)

2012-10-15 Thread Benjamin Possolo
Reverting to Chrome 21 worked for me but the fact that Google Chrome auto-updates means I always have to use this browser and I can never quit the browser either. This is so stupid. Google, please allow users to easily disable auto-update for christ's sake. Its ridiculous that we always have to