2 Copyright (C) 2000-2003 SKYRIX Software AG
4 This file is part of OGo
6 OGo is free software; you can redistribute it and/or modify it under
7 the terms of the GNU Lesser General Public License as published by the
8 Free Software Foundation; either version 2, or (at your option) any
11 OGo is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14 License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with OGo; see the file COPYING. If not, write to the
18 Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
26 @interface WOHiddenField : WOInput
28 // WODynamicElement: extraAttributes
29 // WODynamicElement: otherTagString
35 @end /* WOHiddenField */
37 @implementation WOHiddenField
41 - (void)appendToResponse:(WOResponse *)_response inContext:(WOContext *)_ctx {
42 if (![[_ctx request] isFromClientComponent]) {
45 isDisabled = [self->disabled boolValueInComponent:[_ctx component]];
50 s = [self->value stringValueInComponent:[_ctx component]];
51 [_response appendContentHTMLString:s];
56 v = [self->value stringValueInComponent:[_ctx component]];
58 WOResponse_AddCString(_response, "<input type=\"hidden\" name=\"");
59 [_response appendContentHTMLAttributeValue:OWFormElementName(self, _ctx)];
60 WOResponse_AddCString(_response, "\" value=\"");
61 [_response appendContentHTMLAttributeValue:v];
62 WOResponse_AddChar(_response, '"');
63 [self appendExtraAttributesToResponse:_response inContext:_ctx];
64 if (self->otherTagString) {
65 WOResponse_AddString(_response,
66 [self->otherTagString stringValueInComponent:
69 WOResponse_AddCString(_response, " />");
74 @end /* WOHiddenField */