2 Copyright (C) 2000-2005 SKYRIX Software AG
4 This file is part of SOPE.
6 SOPE 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 SOPE 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 SOPE; see the file COPYING. If not, write to the
18 Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
23 #include "WOElement+private.h"
26 @interface WOResetButton : WOInput
28 // WODynamicElement: extraAttributes
29 // WODynamicElement: otherTagString
35 @end /* WOResetButton */
37 @implementation WOResetButton
39 // ******************** responder ********************
41 - (void)appendToResponse:(WOResponse *)_response inContext:(WOContext *)_ctx {
42 NSString *v = [self->value stringValueInComponent:[_ctx component]];
44 if ((self->name != nil) || (self->disabled != nil)) {
45 NSLog(@"WARNING: 'name' and 'disabled' properties are "
46 @"not supported in WOResetButton !");
49 WOResponse_AddCString(_response, "<input type=\"reset\" value=\"");
50 [_response appendContentHTMLAttributeValue:v];
51 WOResponse_AddChar(_response, '"');
52 [self appendExtraAttributesToResponse:_response inContext:_ctx];
53 if (self->otherTagString) {
54 WOResponse_AddChar(_response, ' ');
55 WOResponse_AddString(_response,
56 [self->otherTagString stringValueInComponent:
60 WOResponse_AddEmptyCloseParens(_response, _ctx);
63 @end /* WOResetButton */