+2005-09-13 Marcus Mueller <znek@mulle-kybernetik.com>
+
+ * DynamicElements/_WOComplexHyperlink.m: do not generate hyperlink
+ if "disabled" evaluates true. This matches the behaviour of
+ WebObjects 4.5 and guarantees to do the right stuff in the context
+ of SOPE applications also. (v4.5.199)
+
2005-09-07 Helge Hess <helge.hess@skyrix.com>
* Templates/WOxElemBuilder.m: added several support methods to assist
- (void)appendToResponse:(WOResponse *)_response inContext:(WOContext *)_ctx {
WOComponent *sComponent = [_ctx component];
- NSString *content;
- NSString *targetView;
- NSString *queryString = nil;
+ NSString *content;
+ BOOL doNotDisplay;
if ([[_ctx request] isFromClientComponent])
return;
- content = [self->string valueInContext:_ctx];
- targetView = [self->target stringValueInComponent:sComponent];
-
- WOResponse_AddCString(_response, "<a href=\"");
-
- if ([self _appendHrefToResponse:_response inContext:_ctx]) {
- queryString = [self queryStringForQueryDictionary:
- [self->queryDictionary valueInComponent:sComponent]
- andQueryParameters:self->queryParameters
- inContext:_ctx];
- }
-
- if (self->fragmentIdentifier) {
- [_response appendContentCharacter:'#'];
- WOResponse_AddString(_response,
- [self->fragmentIdentifier stringValueInComponent:sComponent]);
- }
- if (queryString) {
- [_response appendContentCharacter:'?'];
- WOResponse_AddString(_response, queryString);
- }
- [_response appendContentCharacter:'"'];
+ content = [self->string valueInContext:_ctx];
+ doNotDisplay = [self->disabled boolValueInComponent:sComponent];
+
+ if (!doNotDisplay) {
+ NSString *targetView;
+ NSString *queryString = nil;
+
+ targetView = [self->target stringValueInComponent:sComponent];
- if (targetView) {
- WOResponse_AddCString(_response, " target=\"");
- WOResponse_AddString(_response, targetView);
+ WOResponse_AddCString(_response, "<a href=\"");
+
+ if ([self _appendHrefToResponse:_response inContext:_ctx]) {
+ queryString = [self queryStringForQueryDictionary:
+ [self->queryDictionary valueInComponent:sComponent]
+ andQueryParameters:self->queryParameters
+ inContext:_ctx];
+ }
+
+ if (self->fragmentIdentifier) {
+ [_response appendContentCharacter:'#'];
+ WOResponse_AddString(_response,
+ [self->fragmentIdentifier stringValueInComponent:sComponent]);
+ }
+ if (queryString) {
+ [_response appendContentCharacter:'?'];
+ WOResponse_AddString(_response, queryString);
+ }
[_response appendContentCharacter:'"'];
+
+ if (targetView) {
+ WOResponse_AddCString(_response, " target=\"");
+ WOResponse_AddString(_response, targetView);
+ [_response appendContentCharacter:'"'];
+ }
+
+ [self appendExtraAttributesToResponse:_response inContext:_ctx];
+
+ if (self->otherTagString) {
+ WOResponse_AddChar(_response, ' ');
+ WOResponse_AddString(_response,
+ [self->otherTagString stringValueInComponent:
+ [_ctx component]]);
+ }
+ [_response appendContentCharacter:'>'];
}
-
- [self appendExtraAttributesToResponse:_response inContext:_ctx];
-
- if (self->otherTagString) {
- WOResponse_AddChar(_response, ' ');
- WOResponse_AddString(_response,
- [self->otherTagString stringValueInComponent:
- [_ctx component]]);
- }
- [_response appendContentCharacter:'>'];
-
+
/* content */
[self->template appendToResponse:_response inContext:_ctx];
if (content) [_response appendContentHTMLString:content];
if ((self->src != nil) || (self->filename != nil))
[self _addImageToResponse:_response inContext:_ctx];
- /* closing tag */
- WOResponse_AddCString(_response, "</a>");
+ if (!doNotDisplay) {
+ /* closing tag */
+ WOResponse_AddCString(_response, "</a>");
+ }
}
/* description */
);
buildSettings = {
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 4.5.195;
+ DYLIB_CURRENT_VERSION = 4.5.199;
FRAMEWORK_SEARCH_PATHS = "$(LOCAL_LIBRARY_DIR)/Frameworks";
FRAMEWORK_VERSION = A;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
buildSettings = {
COPY_PHASE_STRIP = NO;
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 4.5.195;
+ DYLIB_CURRENT_VERSION = 4.5.199;
FRAMEWORK_SEARCH_PATHS = "$(LOCAL_LIBRARY_DIR)/Frameworks";
FRAMEWORK_VERSION = A;
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
DEPLOYMENT_POSTPROCESSING = YES;
DSTROOT = /;
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 4.5.195;
+ DYLIB_CURRENT_VERSION = 4.5.199;
DYLIB_INSTALL_NAME_BASE = "@executable_path/../Frameworks/";
FRAMEWORK_SEARCH_PATHS = "$(USER_LIBRARY_DIR)/EmbeddedFrameworks";
FRAMEWORK_VERSION = A;
isa = XCBuildConfiguration;
buildSettings = {
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 4.5.195;
+ DYLIB_CURRENT_VERSION = 4.5.199;
FRAMEWORK_SEARCH_PATHS = "$(LOCAL_LIBRARY_DIR)/Frameworks";
FRAMEWORK_VERSION = A;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
);
buildSettings = {
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 4.5.195;
+ DYLIB_CURRENT_VERSION = 4.5.199;
FRAMEWORK_SEARCH_PATHS = "$(LOCAL_LIBRARY_DIR)/Frameworks";
FRAMEWORK_VERSION = A;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
OTHER_CFLAGS = (
"-DSOPE_MAJOR_VERSION=4",
"-DSOPE_MINOR_VERSION=5",
- "-DSOPE_SUBMINOR_VERSION=195",
+ "-DSOPE_SUBMINOR_VERSION=199",
);
OTHER_LDFLAGS = (
"-seg1addr",
buildSettings = {
COPY_PHASE_STRIP = NO;
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 4.5.195;
+ DYLIB_CURRENT_VERSION = 4.5.199;
FRAMEWORK_SEARCH_PATHS = "$(LOCAL_LIBRARY_DIR)/Frameworks";
FRAMEWORK_VERSION = A;
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
OTHER_CFLAGS = (
"-DSOPE_MAJOR_VERSION=4",
"-DSOPE_MINOR_VERSION=5",
- "-DSOPE_SUBMINOR_VERSION=195",
+ "-DSOPE_SUBMINOR_VERSION=199",
);
OTHER_LDFLAGS = (
"-seg1addr",
DEPLOYMENT_POSTPROCESSING = YES;
DSTROOT = /;
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 4.5.195;
+ DYLIB_CURRENT_VERSION = 4.5.199;
DYLIB_INSTALL_NAME_BASE = "@executable_path/../Frameworks/";
FRAMEWORK_SEARCH_PATHS = "$(USER_LIBRARY_DIR)/EmbeddedFrameworks";
FRAMEWORK_VERSION = A;
OTHER_CFLAGS = (
"-DSOPE_MAJOR_VERSION=4",
"-DSOPE_MINOR_VERSION=5",
- "-DSOPE_SUBMINOR_VERSION=195",
+ "-DSOPE_SUBMINOR_VERSION=199",
);
OTHER_LDFLAGS = (
"-seg1addr",
isa = XCBuildConfiguration;
buildSettings = {
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 4.5.195;
+ DYLIB_CURRENT_VERSION = 4.5.199;
FRAMEWORK_SEARCH_PATHS = "$(LOCAL_LIBRARY_DIR)/Frameworks";
FRAMEWORK_VERSION = A;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
OTHER_CFLAGS = (
"-DSOPE_MAJOR_VERSION=4",
"-DSOPE_MINOR_VERSION=5",
- "-DSOPE_SUBMINOR_VERSION=195",
+ "-DSOPE_SUBMINOR_VERSION=199",
);
OTHER_LDFLAGS = (
"-seg1addr",
);
buildSettings = {
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 4.5.195;
+ DYLIB_CURRENT_VERSION = 4.5.199;
FRAMEWORK_SEARCH_PATHS = "$(LOCAL_LIBRARY_DIR)/Frameworks";
FRAMEWORK_VERSION = A;
GCC_PRECOMPILE_PREFIX_HEADER = NO;
buildSettings = {
COPY_PHASE_STRIP = NO;
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 4.5.195;
+ DYLIB_CURRENT_VERSION = 4.5.199;
FRAMEWORK_SEARCH_PATHS = "$(LOCAL_LIBRARY_DIR)/Frameworks";
FRAMEWORK_VERSION = A;
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
DEPLOYMENT_POSTPROCESSING = YES;
DSTROOT = /;
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 4.5.195;
+ DYLIB_CURRENT_VERSION = 4.5.199;
DYLIB_INSTALL_NAME_BASE = "@executable_path/../Frameworks/";
FRAMEWORK_SEARCH_PATHS = "$(USER_LIBRARY_DIR)/EmbeddedFrameworks";
FRAMEWORK_VERSION = A;
isa = XCBuildConfiguration;
buildSettings = {
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 4.5.195;
+ DYLIB_CURRENT_VERSION = 4.5.199;
FRAMEWORK_SEARCH_PATHS = "$(LOCAL_LIBRARY_DIR)/Frameworks";
FRAMEWORK_VERSION = A;
GCC_PRECOMPILE_PREFIX_HEADER = NO;
# version file
-SUBMINOR_VERSION:=198
+SUBMINOR_VERSION:=199
# v4.5.122 requires libNGExtensions v4.5.153
# v4.5.91 requires libNGExtensions v4.5.134
);
buildSettings = {
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 4.5.195;
+ DYLIB_CURRENT_VERSION = 4.5.199;
FRAMEWORK_SEARCH_PATHS = "$(LOCAL_LIBRARY_DIR)/Frameworks";
FRAMEWORK_VERSION = A;
GCC_PRECOMPILE_PREFIX_HEADER = NO;
buildSettings = {
COPY_PHASE_STRIP = NO;
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 4.5.195;
+ DYLIB_CURRENT_VERSION = 4.5.199;
FRAMEWORK_SEARCH_PATHS = "$(LOCAL_LIBRARY_DIR)/Frameworks";
FRAMEWORK_VERSION = A;
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
DEPLOYMENT_POSTPROCESSING = YES;
DSTROOT = /;
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 4.5.195;
+ DYLIB_CURRENT_VERSION = 4.5.199;
DYLIB_INSTALL_NAME_BASE = "@executable_path/../Frameworks/";
FRAMEWORK_SEARCH_PATHS = "$(USER_LIBRARY_DIR)/EmbeddedFrameworks";
FRAMEWORK_VERSION = A;
isa = XCBuildConfiguration;
buildSettings = {
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 4.5.195;
+ DYLIB_CURRENT_VERSION = 4.5.199;
FRAMEWORK_SEARCH_PATHS = "$(LOCAL_LIBRARY_DIR)/Frameworks";
FRAMEWORK_VERSION = A;
GCC_PRECOMPILE_PREFIX_HEADER = NO;