Re: Override html styles with css resource

2014-05-15 Thread Dominic Warzok
Yeah that is a good argument. But we want to prepare oure application for mobile devices. And every time I search mobile devices are build with css Resource. Thanks ;) On Wednesday, May 14, 2014 4:53:08 PM UTC+2, Steve C wrote: I wouldn't say that the recommended way to create CSS is to

Feature Request: UIBinder Page Viewer

2014-05-15 Thread Colin Jokisch
Create a Viewer that will give you a static look at how the currently open UIBinder page you are working on would look in a browser. I find this would be useful because if you are working on a page that you have to navigate through a lot of stuff to get to on your website just to look at your

Re: Feature Request: UIBinder Page Viewer

2014-05-15 Thread Thomas Broyer
Can't you just create a small GWT app with only your screen? Or maybe just make your page reachable without the need to navigate through a lot of stuff (e.g. using com.google.gwt.user.client.History and/or Places), maybe only temporarily (hard-code the navigation in your onModuleLoad) On

Re: Override html styles with css resource

2014-05-15 Thread Steve C
I have no idea why that would be the case. Most non-GWT mobile web development makes heavy use of CSS media queries, which, unless there's been a change I missed, can't be used in CssResource. On Wednesday, May 7, 2014 5:16:27 AM UTC-4, Dominic Warzok wrote: Hi, as the gwt documentaion

Can you tell me Step-By-Step Guidelines of How to use HtmlUnit to make GWT app Crawlable?

2014-05-15 Thread Tom
Making your GWT app to be indexed by Search Engine is very important, but very very little info to tell you Step-By-Step Guidelines of How to make GWT app Crawlable dynamically. Ok, Here is what I understood but I am not sure 100% I am correct or not. SO please correct me if you can. To

Re: Can you tell me Step-By-Step Guidelines of How to use HtmlUnit to make GWT app Crawlable?

2014-05-15 Thread Jens
HtmlUnit is bundles as jar file so you can put it (and all its dependencies) into WEB-INF/lib of your war. Then you need to write a servlet that takes the server request of the Google bot, rewrites the _escaped_fragment_ parameter back to the original #!token url and starts HtmlUnit with that

Dynamically replacing entire CSS style

2014-05-15 Thread ehodges
I've figured out how to change CSS properties using Element.getStyle().setSomething(), but I need to replace an entire CSS style on the fly. I want my users to be able to supply their own CSS for certain widgets and have GWT replace the current CSS with their user defined CSS. So instead of

Re: MVP:should the View object keep a reference to the corresponding Activity object?

2014-05-15 Thread ehodges
No, the view should be a simple container for UI objects. The only exception should be a reference to the event bus, so UI Binder event methods can fire events. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this

Re: Dynamically replacing entire CSS style

2014-05-15 Thread Thomas Broyer
You could probably wrap this as a CSS rule: .somethingRandom { + userProvidedCSS + } and then use the StyleInjector to inject that stylesheet, and finally call addStyleName on the Element or Widget to apply the rule. On Thursday, May 15, 2014 4:54:30 PM UTC+2, eho...@usdataworks.com wrote:

Re: Dynamically replacing entire CSS style

2014-05-15 Thread ehodges
I don't understand what most of that means. Where and how would I wrap this as a CSS rule? What stylesheet are you talking about? Is there a tutorial or something for this? I've found several pages that mention StyleInjector, but they all seem to rely on knowledge I don't yet have. Thanks

Re: Can you tell me Step-By-Step Guidelines of How to use HtmlUnit to make GWT app Crawlable?

2014-05-15 Thread Tom
about this ex https://groups.google.com/forum/#!topic/google-web-toolkit/Syi04ArKl4k so Google use server-side technology to create Html snapshot? or they use HtmlUnit? On Friday, May 16, 2014 12:06:24 AM UTC+10, Jens wrote: HtmlUnit is bundles as jar file so you can put it (and all its

Re: Can you tell me Step-By-Step Guidelines of How to use HtmlUnit to make GWT app Crawlable?

2014-05-15 Thread Jens
so Google use server-side technology to create Html snapshot? or they use HtmlUnit? I don't know what they use, but I would say they don't use HtmlUnit for groups.google.com. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To

Re: Can you tell me Step-By-Step Guidelines of How to use HtmlUnit to make GWT app Crawlable?

2014-05-15 Thread Tom
am not very experienced in changing url request. Here is what i understand, but not sure. Ok, we already have our url myDomain.com#!article;articleID=1 showing correct article. In my server package, I have public class GetArticleActionHandler implements ActionHandlerGetArticle,

Re: Can you tell me Step-By-Step Guidelines of How to use HtmlUnit to make GWT app Crawlable?

2014-05-15 Thread Tom
ok, here is what I am trying. I created a class called CrawlServlet import java.io.IOException; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import

Re: Can you tell me Step-By-Step Guidelines of How to use HtmlUnit to make GWT app Crawlable?

2014-05-15 Thread Tom
I done 70%, but still have some error. Ok, here is what i did, I downloaded htmlunit-2.14 unzip it copy these jar files into my lib folder *htmlunit-2.14* *commons-codec* *commons-collections* *commons-io* *commons-logging* *cssparser* *htmlunit-core-js* *nekohtml* *commons-lang3*

Re: Can you tell me Step-By-Step Guidelines of How to use HtmlUnit to make GWT app Crawlable?

2014-05-15 Thread Tom
Ok, here is the problem of HTMLUnit. I have this code url_with_hash_fragment= http://127.0.0.1:/Myproject.html?gwt.codesvr=127.0.0.1:9997#!home;; // use the headless browser to obtain an HTML snapshot final WebClient webClient = new WebClient(); HtmlPage page =

Why do I have java.util.EmptyStackException when using HTMLUnit to render the page via Filter?

2014-05-15 Thread Tom
Ok, I have a Filter public class CrawlServlet implements Filter{ @Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { HttpServletRequest httpRequest = (HttpServletRequest) request;

The crawler escapes “mydomain#!article” into “mydomain?_escaped_fragment_=article”, how to retrieve back the original url?

2014-05-15 Thread Tom
Ok, here is what Google said ( https://developers.google.com/webmasters/ajax-crawling/docs/getting-started ). When a crawler sees a url like this www.example.com/ajax.html#!key=value, it will temporarily convert that url into www.example.com/ajax.html?_escaped_fragment_=key=value However,

Re: Why do I have java.util.EmptyStackException when using HTMLUnit to render the page via Filter?

2014-05-15 Thread Tom
i found this link http://htmlunit.10904.n7.nabble.com/htmlunit-Bugs-1728761-java-util-EmptyStackException-in-webclient-td4900.html Maybe this causing the problem: !stack.empy() stack.peek() .. stack.peek() is the one throwing this exception. May be that, when the current thread has checked