Hello all,

First day back from vacation and my head is already hurting...

I've got a very simple custom D2W String edit component:

public class FAHintedTextField extends ERD2WEditString {

   public FAHintedTextField(WOContext context) {
       super(context);
   }

   public String hintText() {
        return "hint."+d2wContext().propertyKey();
   }

   @Override
   public Object value() {
        Object obj = super.value();
        NSLog.out.appendln("VALUE CALLED: " + obj);
        return obj;
   }

   @Override
   public void setValue(Object anObject) {
        NSLog.out.appendln("SET VALUE CALLED: " + anObject);
        super.setValue(anObject);
   }


HTML:

<webobject name = "EditString"></webobject>

WOD:

EditString: WOTextField {
        size = length;
        value = value;
        maxlength = d2wContext.maxLength;
        class="hinted_field";
}

But the setValue method doesn't seem to get called.

LOG:

INFO NSLog (EditFundingApplication) - VALUE CALLED: Teen Centre Program-new equipment

Change the field value, save and I would expect to see the setValue method logged, but I don't.

When I reopen the edit page I see the edit has taken:

INFO NSLog (EditFundingApplication) - VALUE CALLED: Teen Centre Program-new equipmentEDITED

Very weird, I've looked at the code for it's parent ERD2WEditString and I cannot see anything that would account for this, but maybe I'm just being dense.

Any thoughts?

;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site:   http://codeferous.com
blog:   http://davidleber.net
profile:        http://www.linkedin.com/in/davidleber
twitter:        http://twitter.com/rebeld
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org




;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site:   http://codeferous.com
blog:   http://davidleber.net
profile:        http://www.linkedin.com/in/davidleber
twitter:        http://twitter.com/rebeld
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org




_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to