[gwt-contrib] Re: SafeHtml on the server/vm

2014-06-10 Thread Colin Alworth
Ah ha! I dropped the ball in my testing, by supporting GWT 2.4+ instead of 
limiting to something more recent and manageable like 2.5.1+. Confirmed, 
SafeHtml etc is in gwt-servlet in recent GWT.

Thanks for the sanity check Thomas.

On Tuesday, June 10, 2014 3:43:48 AM UTC-5, Thomas Broyer wrote:
>
>
>
> On Tuesday, June 10, 2014 12:33:40 AM UTC+2, Colin Alworth wrote:
>>
>> Currently SafeHtml &co live in gwt-user, though they are for the most 
>> part listed in a shared package, implying that a server can use them. 
>> However, gwt-user.jar also includes javax packages as well as hibernate, 
>> w3c, etc, so can't reasonably be imported to a server which already uses 
>> any of those packages (i.e. any servlet container). Is this an oversight in 
>> the publicly packaged GWT and is SafeHtml used by teams that package 
>> differently, or instead is this package not actually intended for server 
>> use, but instead just compile-time tasks where gwt-user is on the classpath 
>> like compiling or linking?
>>
>> I'm doing some work on a non-servlet server which hasn't so far seen 
>> concrete issues with gwt-user.jar, and having SafeHtml seemed to be an easy 
>> way to get server generated HTML from code that is shared with the client. 
>> This use case *appears* to be implied from the package name, but presently 
>> isn't possible for the majority of GWT backends.
>>
>> Ideas on why it is the way it is? Thoughts on how to make it available to 
>> the server (without giving it yet another jar a la requestfactory-server)? 
>> Interest in a contributed SafeHtmlTemplates implementation for JVM?
>>
>
> SafeHtml *is* in gwt-servlet. In 2.5.1 and earlier it was missing the 
> streamhtmlparser classes, but we've fixed this in 2.6 so it should work now 
> (I must say I haven't tried it though)
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/7f06ce36-64a7-441a-92eb-421b2889e5ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[gwt-contrib] Re: SafeHtml on the server/vm

2014-06-10 Thread Thomas Broyer


On Tuesday, June 10, 2014 12:33:40 AM UTC+2, Colin Alworth wrote:
>
> Currently SafeHtml &co live in gwt-user, though they are for the most part 
> listed in a shared package, implying that a server can use them. However, 
> gwt-user.jar also includes javax packages as well as hibernate, w3c, etc, 
> so can't reasonably be imported to a server which already uses any of those 
> packages (i.e. any servlet container). Is this an oversight in the publicly 
> packaged GWT and is SafeHtml used by teams that package differently, or 
> instead is this package not actually intended for server use, but instead 
> just compile-time tasks where gwt-user is on the classpath like compiling 
> or linking?
>
> I'm doing some work on a non-servlet server which hasn't so far seen 
> concrete issues with gwt-user.jar, and having SafeHtml seemed to be an easy 
> way to get server generated HTML from code that is shared with the client. 
> This use case *appears* to be implied from the package name, but presently 
> isn't possible for the majority of GWT backends.
>
> Ideas on why it is the way it is? Thoughts on how to make it available to 
> the server (without giving it yet another jar a la requestfactory-server)? 
> Interest in a contributed SafeHtmlTemplates implementation for JVM?
>

SafeHtml *is* in gwt-servlet. In 2.5.1 and earlier it was missing the 
streamhtmlparser classes, but we've fixed this in 2.6 so it should work now 
(I must say I haven't tried it though)

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/fd5a1a3c-7ba7-4dd7-8cee-81030746f3dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.