I was playing around with PageTester in tapestry5. Very cool. Except, pages/components which inject a context asset throw a null pointer exception (somewhere within Request). Classpath assets seem to work fine. I followed the basic documentation on the tapestry-core site, double-checked my package, path, and application name, and they all checked out. Is there something I'm missing, or should I file a bug report? The stack trace looks very similar to the one in tapestry-1279. You can see it just by trying to inject a context asset into, eg, TestPageForForm.java

Also, use of PageTester and injecting ApplicationStateObjects seems not to work together. Eg:

@ApplicationStateObject
private MyObject _obj;

public getObjName() {
  return _obj.getName();
}

will throw a NPE if you're using PageTester because _obj will be null. Again... is there something I'm missing? Do I need to override some service? Or is this a bug?

Thanks,

Robert

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to