Hi again Yes, exactly what Jesse said. After hitting my head against the wall for two hours I realized I was not initializing my model inside that listener.
On 6/2/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
Perhaps a message sort of like "source is null" for expression blah blah? On 6/1/06, Bryan Lewis <[EMAIL PROTECTED]> wrote: > > Hard to say without seeing the java code and page spec. It looks like > the page class should have a property "model" that's returned by a > getModel() method. (That's the object you're calling the bean?) I'm > guessing you should have something like: > > public abstract class MyPage ... { > public abstract MyBean getModel(); > } > > and > > public class MyBean ... { > public String getWord() { // this getter shouldn't be abstract > return word; > } > } > > Is there more to the error message? > > You could put some log messages in the various getter methods to see if > they're being called, or whether there's some other problem after > they're called like a NPE. > > > > Rui Pacheco wrote: > > > Hi all > > > > I have a couple of webpages on my web application where this error > > occurrs > > and I cant find out whats causing. Apparently these pages are no > > different > > from the other pages that work correctly. > > > > When I call my page, it complains of the getter method of one of my form > > elements. I checked the class I use as a model and both the variable > > and the > > getter and setter are there. I checked the HTML tag and it seems to be > > ok. > > The bean that corresponds the template also has a getter and setter > > for that > > field, both public and abstract. > > > > This is the offending line. Could you give me a hand, please? > > > > <td><textarea jwcid="[EMAIL PROTECTED]" value="ognl:model.word" > > validators="validators:required,maxLength=150" cols="50" rows="15" > > class="itemsarea"></textarea></td> > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Jesse Kuhnert Tacos/Tapestry, team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind.
-- Cumprimentos, Rui Pacheco