From: Tatsuya K. <tat...@ma...> - 2002-06-12 00:47:26
|
> I've got a quick question for you. > >> It would be easiest to add an ERXForm that sets the current name on >> takeValueFromRequest, performAction and appendToResponse, but I already >> tried sth like this and it didn't work (don't ask me what didn't work) >> >> // >> // ERXWOForm.java >> // Project armehaut >> // >> // Created by ak on Mon Apr 01 2002 >> // BTW, ERXWOForm just started to work. >>> public ERXWOForm(String name, NSDictionary associations, >>> WOElement template) { >>> super(name, associations, template); >>> _formName = null; >>> } >>> >>> public void appendAttributesToResponse(WOResponse response, >>> WOContext context) { >>> if(context instanceof ERXWOContext) { >>> Object association = _associations.objectForKey("name"); It looks like _associations from its super class is always null, and holding its own reference to _association solved the issue. NSDictionary _associations; public ERXWOForm(String name, NSDictionary associations, WOElement template) { super(name, associations, template); _associations = associations; _formName = null; } Thanks, Tatsuya -- Tatsuya Kawano New York, NY 10016 United States |