+2005-04-05 Helge Hess <helge.hess@opengroupware.org>
+
+ * DynamicElements/WOPopUpButton.m: added a template so that static
+ <option> elements can be embedded inside the <select> (v4.5.149)
+
2005-04-04 Marcus Mueller <znek@mulle-kybernetik.com>
* SoObjects/SoObjectRequestHandler.m: properly setup NGLogging so
WOAssociation *selectedValue; // WO4.5
WOAssociation *escapeHTML; // WO4.5
WOAssociation *itemGroup; // SOPE
+ WOElement *template; // SOPE?
}
@end
self->selectedValue = OWGetProperty(_config, @"selectedValue");
self->escapeHTML = OWGetProperty(_config, @"escapeHTML");
self->itemGroup = OWGetProperty(_config, @"itemGroup");
+
+ self->template = [_t retain];
if (self->selection != nil && self->selectedValue != nil)
[self logWithFormat:
if (self->escapeHTML == nil)
self->escapeHTML = [[WOAssociation associationWithValue:yesNum] retain];
-
+
[self _handleDeprecatedBindings:_config];
}
return self;
objects = [self->list valueInComponent:sComponent];
object = nil;
- if (self->value) {
+ if (self->value != nil) {
/* has a value binding, walk list to find object */
unsigned i, toGo;
WOResponse_AddCString(_response, " disabled=\"disabled\"");
WOResponse_AddChar(_response, '>');
-
+
[self appendOptionsToResponse:_response inContext:_ctx];
+ [self->template appendToResponse:_response inContext:_ctx];
WOResponse_AddCString(_response, "</select>");