Testing Sanity

The core task of software development is sanity testing.

  • warning: Parameter 2 to gmap_gmap() expected to be a reference, value given in /home2/thepalls/public_html/cgpsoftware/includes/module.inc on line 483.
  • strict warning: Non-static method view::load() should not be called statically in /home2/thepalls/public_html/cgpsoftware/sites/all/modules/views/views.module on line 879.

Coding Tapestry Forms

08 Mar 2011
Posted by cgp
I'm in the process of figuring out how tapestry forms work. So others may not trip where I have gone, I was getting the following error message:
Failure reading parameter 'translate' of component MyComponent:componentfield: java.lang.NullPointerException
Apparently... the following was wrong:
    <t:form >
      <t:input type="textField" t:id="componentfield" t:value="${componentfield}" />
      <input t:type="submit" value="${message:continue}" />
This should be replaced with:
    <t:form >
      <t:input type="textField" t:id="componentfield" t:value="componentfield" />
      <input t:type="submit" value="${message:continue}" />
The t:value attribute is expecting a property reference, not a value, which is what the first example is. Granted, the error message does very little to point in the right direction, but hey, maybe if you're getting this error, you'll run upon this page and be ok.