Re: Image from resource in SafeHtmlTemplate

2011-08-13 Thread Micah Caldwell
Yeah, I understand that part and after reading over my original post it seems that I over-simplified my example. The template is much larger than just " and the image tag is in the middle of it all. I was trying to avoid splitting my template up into multiple parts, one before the image tag a

Re: Image from resource in SafeHtmlTemplate

2011-08-13 Thread Micah Caldwell
I figured it out. A bit more unwieldy than I would like but it gets the job done. In short, I create a DOM element out of the resource, add an id to it, then assure my SafeHtmlTemplates that it is already SafeHtml so it doesn't try to parse it. final ImagePrototypeElement imageElement = Abst

Re: Image from resource in SafeHtmlTemplate

2011-08-13 Thread Micah Caldwell
This gets me close (and I love the class name): String myImageHtml = AbstractImagePrototype.create(Resources.sSingleton.fDelete()).getHTML(); SafeHtml mySafeImageHtml = new OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(myImageHtml); GWT.create(MyTemplates.class).generateCellHtml(mySafeImag

Re: Image from resource in SafeHtmlTemplate

2011-08-13 Thread Micah Caldwell
SafeHtmlTemplates doesn't like that one either. The output of that ends up escaped when I run it through the template:

Re: JDO, RequestFactory, String and PrimaryKey

2011-08-10 Thread Micah Caldwell
The project you linked to uses Objectify rather than JDO for persistence. Unfortunately, all examples of RequestFactory that I have been able to find use something other than JDO for persistence. I assumed that JDO would work with request factory since it is mentioned in the RequestFactory do

Re: JDO, RequestFactory, String and PrimaryKey

2011-08-10 Thread Micah Caldwell
The app I have been working on to test this is as small of an app that I can figure out how to write that utilizes RequestFactory and JDO at the same time (since it's the interplay between them that is the problem). Currently it only does 4 things to test this functionality: - generate an e

Re: JDO, RequestFactory, String and PrimaryKey

2011-08-10 Thread Micah Caldwell
Error in meta-data for com.zoltu.jdo_requestfactory_test.server.MyEntity.mKey: A field with the "gae.encoded-pk" extension can only be applied to a String primary key. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussi

Re: JDO, RequestFactory, String and PrimaryKey

2011-08-10 Thread Micah Caldwell
Making the change you have suggested results in: Server Error: Invalid primary key for com.zoltu.jdo_requestfactory_test.server.MyEntity. The primary key field is an encoded String but an unencoded value has been provided. If you want to set an unencoded value on this field you can either chan

Re: JDO, RequestFactory, String and PrimaryKey

2011-08-09 Thread Micah Caldwell
I guess the question I have is really more a JDO/GAE question than a GWT question as I need to know how to convert the StreamingQueryResult into a regular collection. However, if there is a way to work around marshaling the StringIdentity to the client that would work too. -- You received thi

JDO, RequestFactory, String and PrimaryKey

2011-08-09 Thread Micah Caldwell
@PersistenceCapable public class MyEntity extends EntityBase { @PrimaryKey @Persistent private String mPrimaryKey; } com.google.web.bindery.requestfactory.server.UnexpectedException: The domain type javax.jdo.identity.StringIdentity cannot be sent to the client Is there a known worka

Re: GWT Designer isDesignTime Not Working?

2011-08-08 Thread Micah Caldwell
I agree with Davekor that this should be added to the documentation. Unlike him, I don't seem to learn as quickly and spent a day and a half on this bug before I finally managed to dig this post up. To make matters worse, this problem appears to exist in the included examples. I grabbed the *

Example of RequestFactory + JDO?

2011-08-08 Thread Micah Caldwell
Does anyone know of any examples that use RequestFactory & JDO? On http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html it says, "[RequestFactory] is designed to be used with an ORM layer like JDO or JPA on the server, although this is not required." I have been unable to l

DockLayoutPanel resize south to fit children using UIBinder?

2011-08-08 Thread Micah Caldwell
I am using a DockLayoutPanel to setup a tab bar in the north, a CellList in the west, content in the center and a simple "form" in the bottom (text field and button). The south area is where I am having problems because I want the height of that area to automatically fit whatever is in there (t

Dynamic HTML page for Dictionary

2010-03-02 Thread Micah
ictionary.java:121) at com.google.gwt.i18n.client.Dictionary.getDictionary(Dictionary.java: 93) The code in the onModuleLoad() method is simply doing: Dictionary.getDictionary("ResourceMessages"); Viewing the source of the page I see the page generated by the servlet. The title of the

Re: How Can I Unit Test with a Dictionary?

2010-02-25 Thread Micah Whitacre
Dictionary(DICTIONARY_NAME); assertEquals(VALUE, dictionary.get(KEY)); } Like I said it is just a hack and ideally we could specify the host.html file to use. Another option would be to read in the contents of the host.html and add its elements as children of the RootPanel bodyElem

Re: Proper way to dynamically internationalize an already compiled application

2010-02-23 Thread Micah Whitacre
s for your help, Micah [1] - http://code.google.com/webtoolkit/doc/latest/DevGuideI18n.html#DevGuideDynamicStringInternationalization On Tue, Feb 23, 2010 at 2:57 PM, Chris Lercher wrote: > Hi, > > if I understand it correctly, isn't this what Dynamic String > Internationalization on

Proper way to dynamically internationalize an already compiled application

2010-02-23 Thread Micah Whitacre
erty files to the classpath. Is this possible? Thanks for your help, Micah [1] - http://code.google.com/webtoolkit/doc/latest/DevGuideI18n.html -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send emai

Re: Source code availability to the GWT Compiler

2010-02-23 Thread Micah Whitacre
a.codehaus.org/browse/MNG-1378. > > -Richard > > > On Feb 5, 4:09 pm, Micah wrote: >> I acknowledge that the source needs to be available for the gwt >> compiler but I still question if the source needs to be in the same >> jar as the compiled endstates you

Re: Source code availability to the GWT Compiler

2010-02-05 Thread Micah
ndard of producing a *- sources.jar during the build of the first module. Then all consuming modules will list the standard jar as a compile scoped dependency and the sources jar as a provided scoped dependency. If this is going to take me down a road of pain I'd like to know ahead of time. Th

Source code availability to the GWT Compiler

2010-02-04 Thread Micah
at from my endstates but also I don't have to worry about shipping source code to each of my clients. So do I have to have *.java files in my jar or are there other means of accomplishing this to make the GWT compiler happy? Thanks for your help, Micah [1] - http://mojo.codehaus.org/gwt-maven-pl