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
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
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
SafeHtmlTemplates doesn't like that one either. The output of that ends up
escaped when I run it through the template:
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
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
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
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
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
@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
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 *
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
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
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
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
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
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
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
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
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
24 matches
Mail list logo