2002-05-14 11:28:50 +00:00
|
|
|
/** GSWForm.m - <title>GSWeb: Class GSWForm</title>
|
|
|
|
|
2005-04-05 15:54:24 +00:00
|
|
|
Copyright (C) 1999-2005 Free Software Foundation, Inc.
|
2000-01-22 12:49:49 +00:00
|
|
|
|
2002-05-14 11:28:50 +00:00
|
|
|
Written by: Manuel Guesdon <mguesdon@orange-concept.com>
|
2000-01-22 12:49:49 +00:00
|
|
|
Date: Jan 1999
|
|
|
|
|
2002-05-14 11:28:50 +00:00
|
|
|
$Revision$
|
|
|
|
$Date$
|
|
|
|
|
2000-01-22 12:49:49 +00:00
|
|
|
This file is part of the GNUstep Web Library.
|
|
|
|
|
2002-05-14 11:28:50 +00:00
|
|
|
<license>
|
2000-01-22 12:49:49 +00:00
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Library General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2 of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Library General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Library General Public
|
|
|
|
License along with this library; if not, write to the Free
|
|
|
|
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
2002-05-14 11:28:50 +00:00
|
|
|
</license>
|
|
|
|
**/
|
2000-01-22 12:49:49 +00:00
|
|
|
|
2003-03-21 14:32:57 +00:00
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
RCS_ID("$Id$")
|
2000-01-22 12:49:49 +00:00
|
|
|
|
2003-01-22 Manuel Guesdon <mguesdon@orange-concept.com>
* GSWeb.framework/Makefile.postamble:
o use $(LN_S) -f in install-WO-headers
o added $(MKDIRS) $(GNUSTEP_HEADERS)/$(GSWExtensions_wo_HEADER_FILES_INSTALL_DIR);
* GSWExtensionsGSW.framework/Makefile.postamble: use $(LN_S) -f in install-WO-headers
2003-01-20 David Ayers <d.ayers@inode.at>
* Makefile.postamble
o added support for make gswnames=(gsw,wo,all) (corrected
typo)
o reinserted support for $(INSTALL_ROOT_DIR)
* config.h.in
o added HAVE_GDL2
* configure
o added support for --with-gswnames=(gsw,wo,all)
o set LIBWRAP during configure
o added config.mak.in as configurable file
* configure.ac
o (see configure)
* config.mak: removed (replaced by config.mak.in)
* config.mak.in: new file
o added support for make gswnames=(gsw,wo,all)
* gsweb.make.in
o add GSANTLR as auxiliary lib
o add gsweb libs to AUXILIARY_GSW_LIBS
o include correct extensions for GSW/WO-libs
* gsweb_wo.make: new file
* GSWeb/GSWConfig.h
o changed support for GSWEB_WONAMES
o conditionally import file GSWWOCompatiblity
here instead of in GSWeb.h
* GSWeb/GNUMakefile
o added support for make gswnames=(gsw,wo,all)
o ensure each lib gets built with its own object files
o removed deactivated framework extension determination code
o removed reference to unused files:
GSWeb.m, GSWWOCompatibility.m
o added references to new files:
GSWExtenstions.h, GSWExtWOCompatibility.h
o added support to create WO header files
* GSWeb/Makefile.postamble
o changed support to install WO header files according to
make gswnames=(gsw,wo,all)
o remove Makefile.preamble during distclean
* GSWeb/Makefile.preamble.in
o fixed typo
* GSWeb/GSWeb.h
o moved GSW/WO-Name-mapping to GSWWOCompatibility.h
o replaced inclusions of
<GSWeb/file.h> with "file.h"
* GSWeb/GSWeb.m: removed
* GSWeb/GSWWOCompatibility.h
o changed GSWEB_WONAMES handling
o removed hybrid namespace WO subclasses
o moved & reorganized GSW/WO-Name-mapping from GSWeb.h
o inlucluded missing GSW/WO-Name-mappings
* GSWeb/GSWWOCompatibility.m: removed
* GSWeb/*.m
o replaced inclusions of
<GSWeb/file.h> with "file.h"
* GSWeb/GSWApplication.m
o remove special GSW/WO handling of WOApp
* GSWeb/WebObject/WO*: removed
* GSWeb/WebObject/WebObjects
o replaced inclusions of
<GSWeb/file.h> with "file.h"
* GSWExtensions/GNUMakefile
o added support for make gswnames=(gsw,wo,all)
o ensure each lib gets built with its own object files
o removed deactivated framework extension determination code
o added references to new files:
GSWExtenstions.h, GSWExtWOCompatibility.h
o added support to create WO header files
* GSWExtensions/Makefile.preamble
o let gnustep make figure whether to link agains debug libs
o added support for make gswnames=(gsw,wo,all)
* GSWExtensions/Makefile.postamble
o changed support to install WO header files according to
make gswnames=(gsw,wo,all)
* GSWExtensions/*.m
o replaced inclusions of
<GSWeb/GSWeb.h> with "GSWExtWOCompatibility.h"
o replaces inclusions of
<GSWExtensions/file.h> with "file.h"
* GSWExtensions/GSWExtensions.h: new file
* GSWExtensions/WOExtensions.h: new file
* GSWExtensions/GSWExtWOCompatibility.h: new file
* GSWExtensionsGSW/GNUMakefile
o added support for make gswnames=(gsw,wo,all)
o ensure each lib gets built with its own object files
o removed deactivated framework extension determination code
o added references to new file GSWExtGSWWOCompatibility.h
o added support to create WO header files
* GSWExtensionsGSW/Makefile.pramble
o let gnustep make figure whether to link agains debug libs
o added support for make gswnames=(gsw,wo,all)
o removed GSWExtensions from ADDITIONAL_LIB_DIRS
* GSWExtensionsGSW/*.m
o replaced inclusions of
<GSWeb/GSWeb.h> with "GSWExtGSWWOCompatibility.h"
* GSWExtensions/GSWExtGSWWOCompatibility.h: new file
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@15675 72102866-910b-0410-8b05-ffd578937521
2003-01-22 12:24:26 +00:00
|
|
|
#include "GSWeb.h"
|
2000-01-22 12:49:49 +00:00
|
|
|
|
2004-12-31 14:33:16 +00:00
|
|
|
static GSWIMP_BOOL standardEvaluateConditionInContextIMP = NULL;
|
|
|
|
|
|
|
|
static Class standardClass = Nil;
|
|
|
|
|
2000-01-22 12:49:49 +00:00
|
|
|
//====================================================================
|
|
|
|
@implementation GSWForm
|
|
|
|
|
2004-12-31 14:33:16 +00:00
|
|
|
//--------------------------------------------------------------------
|
|
|
|
+ (void) initialize
|
|
|
|
{
|
|
|
|
if (self == [GSWForm class])
|
|
|
|
{
|
|
|
|
standardClass=[GSWForm class];
|
|
|
|
|
|
|
|
standardEvaluateConditionInContextIMP =
|
|
|
|
(GSWIMP_BOOL)[self instanceMethodForSelector:evaluateConditionInContextSEL];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2000-01-22 12:49:49 +00:00
|
|
|
//--------------------------------------------------------------------
|
2002-05-14 11:28:50 +00:00
|
|
|
-(id)initWithName:(NSString*)aName
|
|
|
|
associations:(NSDictionary*)associations
|
|
|
|
contentElements:(NSArray*)elements
|
2000-01-22 12:49:49 +00:00
|
|
|
{
|
2002-05-14 11:28:50 +00:00
|
|
|
NSMutableDictionary* tmpAssociations=[NSMutableDictionary dictionaryWithDictionary:associations];
|
2000-01-22 12:49:49 +00:00
|
|
|
LOGObjectFnStartC("GSWForm");
|
2002-05-14 11:28:50 +00:00
|
|
|
NSDebugMLLog(@"gswdync",@"aName=%@ associations:%@ elements=%@",aName,associations,elements);
|
|
|
|
if (![tmpAssociations objectForKey:@"method"])
|
|
|
|
{
|
|
|
|
if ([tmpAssociations objectForKey:@"get"])
|
|
|
|
[tmpAssociations setObject:[GSWAssociation associationWithValue:@"get"]
|
|
|
|
forKey:@"method"];
|
|
|
|
else
|
|
|
|
[tmpAssociations setObject:[GSWAssociation associationWithValue:@"post"]
|
|
|
|
forKey:@"method"];
|
|
|
|
};
|
|
|
|
[tmpAssociations removeObjectForKey:action__Key];
|
|
|
|
[tmpAssociations removeObjectForKey:href__Key];
|
|
|
|
[tmpAssociations removeObjectForKey:multipleSubmit__Key];
|
|
|
|
[tmpAssociations removeObjectForKey:actionClass__Key];
|
2004-12-31 14:33:16 +00:00
|
|
|
[tmpAssociations removeObjectForKey:directActionName__Key];
|
2001-03-11 Manuel Guesdon <mguesdon@orange-concept.com>
* GSWeb.framework/GSWWOCompatibility.h/.m: added
* GSWeb.framework/GNUmakefile: added GSWWOCompatibility.h/.m
* GSWeb.framework/GSWApplication.h/m: added WOApplicationMain, handle WO/GSWeb names
* GSWeb.framework/GSWContext.m: handle WO/GSWeb names, added traces
* GSWeb.framework/GSWConstants.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWDynamicURLString.m: handle WO/GSWeb names
* GSWeb.framework/GSWProjectBundle.m/.h: handle WO/GSWeb names, suppress warnings
* GSWeb.framework/GSWSession.m: handle WO/GSWeb names
* GSWeb.framework/GSWRequest.m: handle WO/GSWeb names
* GSWeb.framework/GSWTemplateParser.m: handle WO/GSWeb names,
added tag counts to help errors hunt
* GSWeb.framework/GSWBundle.m: handle WO/GSWeb names, added traces
* GSWeb.framework/GSWResourceManager.m: handle WO/GSWeb names
* GSWeb.framework/GSWURLValuedElementData.m: handle WO/GSWeb names
* GSWeb.framework/GSWComponentRequestHandler.m: handle WO/GSWeb names
* GSWeb.framework/GSWDirectAction.m: handle WO/GSWeb names
* GSWeb.framework/GSWForm.m/.h: handle WO/GSWeb names
* GSWeb.framework/GSWHyperlink.m/.h: handle WO/GSWeb names
* GSWeb.framework/GSWResourceRequestHandler.m: handle WO/GSWeb names
* GSWeb.framework/GSWDirectActionRequestHandler.m: handle WO/GSWeb names
* GSWeb.framework/GSWActiveImage.m/.h: handle WO/GSWeb names
* GSWeb.framework/GSWBindingNameAssociation.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWBrowser.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWComponent.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWHTMLURLValuedElement.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWImageButton.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWInput.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWPopUpButton.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWString.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWAssociation.m: handle WO/GSWeb names
* GSWeb.framework/GSWCheckBox.m: handle WO/GSWeb names
* GSWeb.framework/GSWCheckBoxList.m: handle WO/GSWeb names
* GSWeb.framework/GSWComponentDefinition.m: handle WO/GSWeb names
* GSWeb.framework/GSWRadioButton.m: handle WO/GSWeb names
* GSWeb.framework/GSWRadioButtonList.m: handle WO/GSWeb names
* GSWeb.framework/GSWText.m: handle WO/GSWeb names
* GSWeb.framework/GSWTextField.m: handle WO/GSWeb names
* GSWeb.framework/GSWDeployedBundle.m: warnings
* GSWeb.framework/GSWeb.h: added include GSWeb/GSWSessionTimeOut.h, GSWWOCompatibility.h
* GSWeb.framework/GSWAdaptor.m: traces
* GSWeb.framework/GSWDefaultAdaptor.m: handle WO/GSWeb names, added traces
* GSWeb.framework/GSWDefaultAdaptorThread.m/.h: handle WO/GSWeb names
* GSWeb.framework/NSNonBlockingFileHandle.m: added traces
* GSWeb.framework/GSWTemplateParserANTLR.m: handle WO/GSWeb names
* GSWeb.framework/GSWTemplateParserXML.m: handle WO/GSWeb names
added tag count to help errors hunt
remove "Tag gsweb invalid" message
handle unicode strings in node content traces
remove html and body tags if they are not present in the template
* GSWeb.framework/GSWTemplateParseXML.h: added ivar _isHTMLTag, _isBodyTag
* GSWeb.framework/GSWSessionTimeOutManager.m: dealloc sessionOrderedTimeOuts instead
of deallocating 2 times sessionTimeOuts
* GSWExtensions.framework/French.lproj/GSWSessionRestorationErrorPage.gswc/GSWSessionRestorationErrorPage.html:
tag mismatch, Encode french characters
* GSWExtensions.framework/GSWSessionRestorationErrorPage.gswc/GSWSessionRestorationErrorPage.html:
tag mismatch
* GSWHTMLBareString.m: handle unicode strings in description
* GSWExtensions.framework/French.lproj/GSWExceptionPage.gswc/GSWExceptionPage.html:
Encode french characters, Tag Mismatch
* GSWExtensions.framework/French.lproj/GSWPageRestorationErrorPage.gswc/GSWPageRestorationErrorPage.html:
Encode french characters
* GSWExtensions.framework/French.lproj/GSWSessionCreationErrorPage.gswc/GSWSessionCreationErrorPage.html:
Encode french characters
* GSWExtensions.framework/GSWExceptionPage.gswc/GSWExceptionPage.html:
Tag Mismatch
* GSWExtensions.framework/GSWExceptionPage.gswc/GSWExceptionPage.gswd:
added convertHTMLEntities for strings
* GSWeb.framework/GSWRepetition.m: added traces, fix "count" property bug, standardize ivars
* GSWeb.framework/NSObject+IVarAccess+PerformSel.m: added traces, handle underscored ivars search
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@9332 72102866-910b-0410-8b05-ffd578937521
2001-03-11 17:15:44 +00:00
|
|
|
|
|
|
|
if (!WOStrictFlag)
|
|
|
|
{
|
2002-05-14 11:28:50 +00:00
|
|
|
[tmpAssociations removeObjectForKey:disabled__Key];
|
|
|
|
[tmpAssociations removeObjectForKey:enabled__Key];
|
2001-03-11 Manuel Guesdon <mguesdon@orange-concept.com>
* GSWeb.framework/GSWWOCompatibility.h/.m: added
* GSWeb.framework/GNUmakefile: added GSWWOCompatibility.h/.m
* GSWeb.framework/GSWApplication.h/m: added WOApplicationMain, handle WO/GSWeb names
* GSWeb.framework/GSWContext.m: handle WO/GSWeb names, added traces
* GSWeb.framework/GSWConstants.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWDynamicURLString.m: handle WO/GSWeb names
* GSWeb.framework/GSWProjectBundle.m/.h: handle WO/GSWeb names, suppress warnings
* GSWeb.framework/GSWSession.m: handle WO/GSWeb names
* GSWeb.framework/GSWRequest.m: handle WO/GSWeb names
* GSWeb.framework/GSWTemplateParser.m: handle WO/GSWeb names,
added tag counts to help errors hunt
* GSWeb.framework/GSWBundle.m: handle WO/GSWeb names, added traces
* GSWeb.framework/GSWResourceManager.m: handle WO/GSWeb names
* GSWeb.framework/GSWURLValuedElementData.m: handle WO/GSWeb names
* GSWeb.framework/GSWComponentRequestHandler.m: handle WO/GSWeb names
* GSWeb.framework/GSWDirectAction.m: handle WO/GSWeb names
* GSWeb.framework/GSWForm.m/.h: handle WO/GSWeb names
* GSWeb.framework/GSWHyperlink.m/.h: handle WO/GSWeb names
* GSWeb.framework/GSWResourceRequestHandler.m: handle WO/GSWeb names
* GSWeb.framework/GSWDirectActionRequestHandler.m: handle WO/GSWeb names
* GSWeb.framework/GSWActiveImage.m/.h: handle WO/GSWeb names
* GSWeb.framework/GSWBindingNameAssociation.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWBrowser.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWComponent.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWHTMLURLValuedElement.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWImageButton.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWInput.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWPopUpButton.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWString.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWAssociation.m: handle WO/GSWeb names
* GSWeb.framework/GSWCheckBox.m: handle WO/GSWeb names
* GSWeb.framework/GSWCheckBoxList.m: handle WO/GSWeb names
* GSWeb.framework/GSWComponentDefinition.m: handle WO/GSWeb names
* GSWeb.framework/GSWRadioButton.m: handle WO/GSWeb names
* GSWeb.framework/GSWRadioButtonList.m: handle WO/GSWeb names
* GSWeb.framework/GSWText.m: handle WO/GSWeb names
* GSWeb.framework/GSWTextField.m: handle WO/GSWeb names
* GSWeb.framework/GSWDeployedBundle.m: warnings
* GSWeb.framework/GSWeb.h: added include GSWeb/GSWSessionTimeOut.h, GSWWOCompatibility.h
* GSWeb.framework/GSWAdaptor.m: traces
* GSWeb.framework/GSWDefaultAdaptor.m: handle WO/GSWeb names, added traces
* GSWeb.framework/GSWDefaultAdaptorThread.m/.h: handle WO/GSWeb names
* GSWeb.framework/NSNonBlockingFileHandle.m: added traces
* GSWeb.framework/GSWTemplateParserANTLR.m: handle WO/GSWeb names
* GSWeb.framework/GSWTemplateParserXML.m: handle WO/GSWeb names
added tag count to help errors hunt
remove "Tag gsweb invalid" message
handle unicode strings in node content traces
remove html and body tags if they are not present in the template
* GSWeb.framework/GSWTemplateParseXML.h: added ivar _isHTMLTag, _isBodyTag
* GSWeb.framework/GSWSessionTimeOutManager.m: dealloc sessionOrderedTimeOuts instead
of deallocating 2 times sessionTimeOuts
* GSWExtensions.framework/French.lproj/GSWSessionRestorationErrorPage.gswc/GSWSessionRestorationErrorPage.html:
tag mismatch, Encode french characters
* GSWExtensions.framework/GSWSessionRestorationErrorPage.gswc/GSWSessionRestorationErrorPage.html:
tag mismatch
* GSWHTMLBareString.m: handle unicode strings in description
* GSWExtensions.framework/French.lproj/GSWExceptionPage.gswc/GSWExceptionPage.html:
Encode french characters, Tag Mismatch
* GSWExtensions.framework/French.lproj/GSWPageRestorationErrorPage.gswc/GSWPageRestorationErrorPage.html:
Encode french characters
* GSWExtensions.framework/French.lproj/GSWSessionCreationErrorPage.gswc/GSWSessionCreationErrorPage.html:
Encode french characters
* GSWExtensions.framework/GSWExceptionPage.gswc/GSWExceptionPage.html:
Tag Mismatch
* GSWExtensions.framework/GSWExceptionPage.gswc/GSWExceptionPage.gswd:
added convertHTMLEntities for strings
* GSWeb.framework/GSWRepetition.m: added traces, fix "count" property bug, standardize ivars
* GSWeb.framework/NSObject+IVarAccess+PerformSel.m: added traces, handle underscored ivars search
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@9332 72102866-910b-0410-8b05-ffd578937521
2001-03-11 17:15:44 +00:00
|
|
|
};
|
2002-05-14 11:28:50 +00:00
|
|
|
[tmpAssociations removeObjectForKey:queryDictionary__Key];
|
2000-01-22 12:49:49 +00:00
|
|
|
|
|
|
|
//call isValueSettable sur value (return YES)
|
2002-05-14 11:28:50 +00:00
|
|
|
_action = [[associations objectForKey:action__Key
|
|
|
|
withDefaultObject:[_action autorelease]] retain];
|
|
|
|
NSDebugMLLog(@"gswdync",@"GSWForm: action=%@",_action);
|
|
|
|
|
|
|
|
_href = [[associations objectForKey:href__Key
|
|
|
|
withDefaultObject:[_href autorelease]] retain];
|
|
|
|
NSDebugMLLog(@"gswdync",@"GSWForm: href=%@",_href);
|
|
|
|
|
|
|
|
_multipleSubmit = [[associations objectForKey:multipleSubmit__Key
|
|
|
|
withDefaultObject:[_multipleSubmit autorelease]] retain];
|
|
|
|
NSDebugMLLog(@"gswdync",@"GSWForm: multipleSubmit=%@",_multipleSubmit);
|
|
|
|
|
|
|
|
_actionClass = [[associations objectForKey:actionClass__Key
|
|
|
|
withDefaultObject:[_actionClass autorelease]] retain];
|
|
|
|
NSDebugMLLog(@"gswdync",@"GSWForm: actionClass=%@",_actionClass);
|
|
|
|
|
|
|
|
_directActionName = [[associations objectForKey:directActionName__Key
|
|
|
|
withDefaultObject:[_directActionName autorelease]] retain];
|
|
|
|
NSDebugMLLog(@"gswdync",@"GSWForm: directActionName=%@",_directActionName);
|
2000-01-22 12:49:49 +00:00
|
|
|
|
2001-03-11 Manuel Guesdon <mguesdon@orange-concept.com>
* GSWeb.framework/GSWWOCompatibility.h/.m: added
* GSWeb.framework/GNUmakefile: added GSWWOCompatibility.h/.m
* GSWeb.framework/GSWApplication.h/m: added WOApplicationMain, handle WO/GSWeb names
* GSWeb.framework/GSWContext.m: handle WO/GSWeb names, added traces
* GSWeb.framework/GSWConstants.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWDynamicURLString.m: handle WO/GSWeb names
* GSWeb.framework/GSWProjectBundle.m/.h: handle WO/GSWeb names, suppress warnings
* GSWeb.framework/GSWSession.m: handle WO/GSWeb names
* GSWeb.framework/GSWRequest.m: handle WO/GSWeb names
* GSWeb.framework/GSWTemplateParser.m: handle WO/GSWeb names,
added tag counts to help errors hunt
* GSWeb.framework/GSWBundle.m: handle WO/GSWeb names, added traces
* GSWeb.framework/GSWResourceManager.m: handle WO/GSWeb names
* GSWeb.framework/GSWURLValuedElementData.m: handle WO/GSWeb names
* GSWeb.framework/GSWComponentRequestHandler.m: handle WO/GSWeb names
* GSWeb.framework/GSWDirectAction.m: handle WO/GSWeb names
* GSWeb.framework/GSWForm.m/.h: handle WO/GSWeb names
* GSWeb.framework/GSWHyperlink.m/.h: handle WO/GSWeb names
* GSWeb.framework/GSWResourceRequestHandler.m: handle WO/GSWeb names
* GSWeb.framework/GSWDirectActionRequestHandler.m: handle WO/GSWeb names
* GSWeb.framework/GSWActiveImage.m/.h: handle WO/GSWeb names
* GSWeb.framework/GSWBindingNameAssociation.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWBrowser.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWComponent.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWHTMLURLValuedElement.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWImageButton.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWInput.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWPopUpButton.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWString.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWAssociation.m: handle WO/GSWeb names
* GSWeb.framework/GSWCheckBox.m: handle WO/GSWeb names
* GSWeb.framework/GSWCheckBoxList.m: handle WO/GSWeb names
* GSWeb.framework/GSWComponentDefinition.m: handle WO/GSWeb names
* GSWeb.framework/GSWRadioButton.m: handle WO/GSWeb names
* GSWeb.framework/GSWRadioButtonList.m: handle WO/GSWeb names
* GSWeb.framework/GSWText.m: handle WO/GSWeb names
* GSWeb.framework/GSWTextField.m: handle WO/GSWeb names
* GSWeb.framework/GSWDeployedBundle.m: warnings
* GSWeb.framework/GSWeb.h: added include GSWeb/GSWSessionTimeOut.h, GSWWOCompatibility.h
* GSWeb.framework/GSWAdaptor.m: traces
* GSWeb.framework/GSWDefaultAdaptor.m: handle WO/GSWeb names, added traces
* GSWeb.framework/GSWDefaultAdaptorThread.m/.h: handle WO/GSWeb names
* GSWeb.framework/NSNonBlockingFileHandle.m: added traces
* GSWeb.framework/GSWTemplateParserANTLR.m: handle WO/GSWeb names
* GSWeb.framework/GSWTemplateParserXML.m: handle WO/GSWeb names
added tag count to help errors hunt
remove "Tag gsweb invalid" message
handle unicode strings in node content traces
remove html and body tags if they are not present in the template
* GSWeb.framework/GSWTemplateParseXML.h: added ivar _isHTMLTag, _isBodyTag
* GSWeb.framework/GSWSessionTimeOutManager.m: dealloc sessionOrderedTimeOuts instead
of deallocating 2 times sessionTimeOuts
* GSWExtensions.framework/French.lproj/GSWSessionRestorationErrorPage.gswc/GSWSessionRestorationErrorPage.html:
tag mismatch, Encode french characters
* GSWExtensions.framework/GSWSessionRestorationErrorPage.gswc/GSWSessionRestorationErrorPage.html:
tag mismatch
* GSWHTMLBareString.m: handle unicode strings in description
* GSWExtensions.framework/French.lproj/GSWExceptionPage.gswc/GSWExceptionPage.html:
Encode french characters, Tag Mismatch
* GSWExtensions.framework/French.lproj/GSWPageRestorationErrorPage.gswc/GSWPageRestorationErrorPage.html:
Encode french characters
* GSWExtensions.framework/French.lproj/GSWSessionCreationErrorPage.gswc/GSWSessionCreationErrorPage.html:
Encode french characters
* GSWExtensions.framework/GSWExceptionPage.gswc/GSWExceptionPage.html:
Tag Mismatch
* GSWExtensions.framework/GSWExceptionPage.gswc/GSWExceptionPage.gswd:
added convertHTMLEntities for strings
* GSWeb.framework/GSWRepetition.m: added traces, fix "count" property bug, standardize ivars
* GSWeb.framework/NSObject+IVarAccess+PerformSel.m: added traces, handle underscored ivars search
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@9332 72102866-910b-0410-8b05-ffd578937521
2001-03-11 17:15:44 +00:00
|
|
|
if (!WOStrictFlag)
|
|
|
|
{
|
2002-05-14 11:28:50 +00:00
|
|
|
_disabled = [[associations objectForKey:disabled__Key
|
|
|
|
withDefaultObject:[_disabled autorelease]] retain];
|
|
|
|
NSDebugMLLog(@"gswdync",@"GSWForm disabled=%@",_disabled);
|
|
|
|
_enabled = [[associations objectForKey:enabled__Key
|
|
|
|
withDefaultObject:[_enabled autorelease]] retain];
|
|
|
|
NSDebugMLLog(@"gswdync",@"GSWForm enabled=%@",_enabled);
|
|
|
|
if (_disabled && _enabled)
|
2000-01-22 12:49:49 +00:00
|
|
|
{
|
|
|
|
ExceptionRaise(@"GSWForm",@"You can't specify 'disabled' and 'enabled' together. componentAssociations:%@",
|
2002-05-14 11:28:50 +00:00
|
|
|
associations);
|
2000-01-22 12:49:49 +00:00
|
|
|
};
|
2004-03-01 16:47:04 +00:00
|
|
|
|
|
|
|
_fragmentIdentifier = [[associations objectForKey:fragmentIdentifier__Key
|
|
|
|
withDefaultObject:[_fragmentIdentifier autorelease]] retain];
|
|
|
|
NSDebugMLLog(@"gswdync",@"fragmentIdentifier=%@",_fragmentIdentifier);
|
|
|
|
|
|
|
|
[tmpAssociations removeObjectForKey:fragmentIdentifier__Key];
|
2004-12-14 12:54:40 +00:00
|
|
|
|
|
|
|
_displayDisabled = [[associations objectForKey:displayDisabled__Key
|
|
|
|
withDefaultObject:[_displayDisabled autorelease]] retain];
|
|
|
|
NSDebugMLLog(@"gswdync",@"displayDisabled=%@",_displayDisabled);
|
|
|
|
[tmpAssociations removeObjectForKey:displayDisabled__Key];
|
|
|
|
|
2001-03-11 Manuel Guesdon <mguesdon@orange-concept.com>
* GSWeb.framework/GSWWOCompatibility.h/.m: added
* GSWeb.framework/GNUmakefile: added GSWWOCompatibility.h/.m
* GSWeb.framework/GSWApplication.h/m: added WOApplicationMain, handle WO/GSWeb names
* GSWeb.framework/GSWContext.m: handle WO/GSWeb names, added traces
* GSWeb.framework/GSWConstants.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWDynamicURLString.m: handle WO/GSWeb names
* GSWeb.framework/GSWProjectBundle.m/.h: handle WO/GSWeb names, suppress warnings
* GSWeb.framework/GSWSession.m: handle WO/GSWeb names
* GSWeb.framework/GSWRequest.m: handle WO/GSWeb names
* GSWeb.framework/GSWTemplateParser.m: handle WO/GSWeb names,
added tag counts to help errors hunt
* GSWeb.framework/GSWBundle.m: handle WO/GSWeb names, added traces
* GSWeb.framework/GSWResourceManager.m: handle WO/GSWeb names
* GSWeb.framework/GSWURLValuedElementData.m: handle WO/GSWeb names
* GSWeb.framework/GSWComponentRequestHandler.m: handle WO/GSWeb names
* GSWeb.framework/GSWDirectAction.m: handle WO/GSWeb names
* GSWeb.framework/GSWForm.m/.h: handle WO/GSWeb names
* GSWeb.framework/GSWHyperlink.m/.h: handle WO/GSWeb names
* GSWeb.framework/GSWResourceRequestHandler.m: handle WO/GSWeb names
* GSWeb.framework/GSWDirectActionRequestHandler.m: handle WO/GSWeb names
* GSWeb.framework/GSWActiveImage.m/.h: handle WO/GSWeb names
* GSWeb.framework/GSWBindingNameAssociation.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWBrowser.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWComponent.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWHTMLURLValuedElement.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWImageButton.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWInput.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWPopUpButton.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWString.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWAssociation.m: handle WO/GSWeb names
* GSWeb.framework/GSWCheckBox.m: handle WO/GSWeb names
* GSWeb.framework/GSWCheckBoxList.m: handle WO/GSWeb names
* GSWeb.framework/GSWComponentDefinition.m: handle WO/GSWeb names
* GSWeb.framework/GSWRadioButton.m: handle WO/GSWeb names
* GSWeb.framework/GSWRadioButtonList.m: handle WO/GSWeb names
* GSWeb.framework/GSWText.m: handle WO/GSWeb names
* GSWeb.framework/GSWTextField.m: handle WO/GSWeb names
* GSWeb.framework/GSWDeployedBundle.m: warnings
* GSWeb.framework/GSWeb.h: added include GSWeb/GSWSessionTimeOut.h, GSWWOCompatibility.h
* GSWeb.framework/GSWAdaptor.m: traces
* GSWeb.framework/GSWDefaultAdaptor.m: handle WO/GSWeb names, added traces
* GSWeb.framework/GSWDefaultAdaptorThread.m/.h: handle WO/GSWeb names
* GSWeb.framework/NSNonBlockingFileHandle.m: added traces
* GSWeb.framework/GSWTemplateParserANTLR.m: handle WO/GSWeb names
* GSWeb.framework/GSWTemplateParserXML.m: handle WO/GSWeb names
added tag count to help errors hunt
remove "Tag gsweb invalid" message
handle unicode strings in node content traces
remove html and body tags if they are not present in the template
* GSWeb.framework/GSWTemplateParseXML.h: added ivar _isHTMLTag, _isBodyTag
* GSWeb.framework/GSWSessionTimeOutManager.m: dealloc sessionOrderedTimeOuts instead
of deallocating 2 times sessionTimeOuts
* GSWExtensions.framework/French.lproj/GSWSessionRestorationErrorPage.gswc/GSWSessionRestorationErrorPage.html:
tag mismatch, Encode french characters
* GSWExtensions.framework/GSWSessionRestorationErrorPage.gswc/GSWSessionRestorationErrorPage.html:
tag mismatch
* GSWHTMLBareString.m: handle unicode strings in description
* GSWExtensions.framework/French.lproj/GSWExceptionPage.gswc/GSWExceptionPage.html:
Encode french characters, Tag Mismatch
* GSWExtensions.framework/French.lproj/GSWPageRestorationErrorPage.gswc/GSWPageRestorationErrorPage.html:
Encode french characters
* GSWExtensions.framework/French.lproj/GSWSessionCreationErrorPage.gswc/GSWSessionCreationErrorPage.html:
Encode french characters
* GSWExtensions.framework/GSWExceptionPage.gswc/GSWExceptionPage.html:
Tag Mismatch
* GSWExtensions.framework/GSWExceptionPage.gswc/GSWExceptionPage.gswd:
added convertHTMLEntities for strings
* GSWeb.framework/GSWRepetition.m: added traces, fix "count" property bug, standardize ivars
* GSWeb.framework/NSObject+IVarAccess+PerformSel.m: added traces, handle underscored ivars search
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@9332 72102866-910b-0410-8b05-ffd578937521
2001-03-11 17:15:44 +00:00
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
|
2002-05-14 11:28:50 +00:00
|
|
|
_queryDictionary = [[associations objectForKey:queryDictionary__Key
|
|
|
|
withDefaultObject:[_queryDictionary autorelease]] retain];
|
|
|
|
NSDebugMLLog(@"gswdync",@"GSWForm: queryDictionary=%@",_queryDictionary);
|
2000-01-22 12:49:49 +00:00
|
|
|
|
2003-01-19 15:33:07 +00:00
|
|
|
if ([tmpAssociations count]>0)
|
|
|
|
{
|
|
|
|
ASSIGN(_otherQueryAssociations,([tmpAssociations extractObjectsForKeysWithPrefix:@"?"
|
|
|
|
removePrefix:YES]));
|
|
|
|
if ([_otherQueryAssociations count]==0)
|
|
|
|
DESTROY(_otherQueryAssociations);
|
2003-11-24 11:47:45 +00:00
|
|
|
|
|
|
|
if (!WOStrictFlag)
|
|
|
|
{
|
|
|
|
ASSIGN(_otherPathQueryAssociations,([tmpAssociations extractObjectsForKeysWithPrefix:@"!"
|
|
|
|
removePrefix:YES]));
|
|
|
|
if ([_otherPathQueryAssociations count]==0)
|
|
|
|
DESTROY(_otherPathQueryAssociations);
|
|
|
|
};
|
2003-01-19 15:33:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
NSDebugMLLog(@"gswdync",@"_otherQueryAssociations=%@",_otherQueryAssociations);
|
2003-11-24 11:47:45 +00:00
|
|
|
NSDebugMLLog(@"gswdync",@"_otherPathQueryAssociations=%@",_otherPathQueryAssociations);
|
2003-01-19 15:33:07 +00:00
|
|
|
|
2002-05-14 11:28:50 +00:00
|
|
|
if ((self=[super initWithName:aName
|
|
|
|
attributeAssociations:tmpAssociations
|
|
|
|
contentElements:elements]))
|
|
|
|
{
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
return self;
|
|
|
|
};
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
-(void)dealloc
|
|
|
|
{
|
2002-05-14 11:28:50 +00:00
|
|
|
DESTROY(_action);
|
|
|
|
DESTROY(_href);
|
|
|
|
DESTROY(_multipleSubmit);
|
|
|
|
DESTROY(_actionClass);
|
|
|
|
DESTROY(_directActionName);
|
|
|
|
DESTROY(_queryDictionary);
|
|
|
|
DESTROY(_disabled);
|
|
|
|
DESTROY(_enabled);
|
2004-03-01 16:47:04 +00:00
|
|
|
DESTROY(_fragmentIdentifier);
|
2004-12-14 12:54:40 +00:00
|
|
|
DESTROY(_displayDisabled);
|
2002-05-14 11:28:50 +00:00
|
|
|
DESTROY(_otherQueryAssociations);
|
2003-11-24 11:47:45 +00:00
|
|
|
DESTROY(_otherPathQueryAssociations);
|
2000-01-22 12:49:49 +00:00
|
|
|
[super dealloc];
|
|
|
|
};
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
-(id)description
|
|
|
|
{
|
|
|
|
return [NSString stringWithFormat:@"<%s %p>",
|
2002-05-14 11:28:50 +00:00
|
|
|
object_get_class_name(self),
|
|
|
|
(void*)self];
|
2000-01-22 12:49:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
-(id)elementName
|
|
|
|
{
|
|
|
|
//OK
|
|
|
|
return @"form";
|
|
|
|
};
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
@implementation GSWForm (GSWFormA)
|
|
|
|
|
2001-03-11 Manuel Guesdon <mguesdon@orange-concept.com>
* GSWeb.framework/GSWWOCompatibility.h/.m: added
* GSWeb.framework/GNUmakefile: added GSWWOCompatibility.h/.m
* GSWeb.framework/GSWApplication.h/m: added WOApplicationMain, handle WO/GSWeb names
* GSWeb.framework/GSWContext.m: handle WO/GSWeb names, added traces
* GSWeb.framework/GSWConstants.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWDynamicURLString.m: handle WO/GSWeb names
* GSWeb.framework/GSWProjectBundle.m/.h: handle WO/GSWeb names, suppress warnings
* GSWeb.framework/GSWSession.m: handle WO/GSWeb names
* GSWeb.framework/GSWRequest.m: handle WO/GSWeb names
* GSWeb.framework/GSWTemplateParser.m: handle WO/GSWeb names,
added tag counts to help errors hunt
* GSWeb.framework/GSWBundle.m: handle WO/GSWeb names, added traces
* GSWeb.framework/GSWResourceManager.m: handle WO/GSWeb names
* GSWeb.framework/GSWURLValuedElementData.m: handle WO/GSWeb names
* GSWeb.framework/GSWComponentRequestHandler.m: handle WO/GSWeb names
* GSWeb.framework/GSWDirectAction.m: handle WO/GSWeb names
* GSWeb.framework/GSWForm.m/.h: handle WO/GSWeb names
* GSWeb.framework/GSWHyperlink.m/.h: handle WO/GSWeb names
* GSWeb.framework/GSWResourceRequestHandler.m: handle WO/GSWeb names
* GSWeb.framework/GSWDirectActionRequestHandler.m: handle WO/GSWeb names
* GSWeb.framework/GSWActiveImage.m/.h: handle WO/GSWeb names
* GSWeb.framework/GSWBindingNameAssociation.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWBrowser.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWComponent.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWHTMLURLValuedElement.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWImageButton.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWInput.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWPopUpButton.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWString.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWAssociation.m: handle WO/GSWeb names
* GSWeb.framework/GSWCheckBox.m: handle WO/GSWeb names
* GSWeb.framework/GSWCheckBoxList.m: handle WO/GSWeb names
* GSWeb.framework/GSWComponentDefinition.m: handle WO/GSWeb names
* GSWeb.framework/GSWRadioButton.m: handle WO/GSWeb names
* GSWeb.framework/GSWRadioButtonList.m: handle WO/GSWeb names
* GSWeb.framework/GSWText.m: handle WO/GSWeb names
* GSWeb.framework/GSWTextField.m: handle WO/GSWeb names
* GSWeb.framework/GSWDeployedBundle.m: warnings
* GSWeb.framework/GSWeb.h: added include GSWeb/GSWSessionTimeOut.h, GSWWOCompatibility.h
* GSWeb.framework/GSWAdaptor.m: traces
* GSWeb.framework/GSWDefaultAdaptor.m: handle WO/GSWeb names, added traces
* GSWeb.framework/GSWDefaultAdaptorThread.m/.h: handle WO/GSWeb names
* GSWeb.framework/NSNonBlockingFileHandle.m: added traces
* GSWeb.framework/GSWTemplateParserANTLR.m: handle WO/GSWeb names
* GSWeb.framework/GSWTemplateParserXML.m: handle WO/GSWeb names
added tag count to help errors hunt
remove "Tag gsweb invalid" message
handle unicode strings in node content traces
remove html and body tags if they are not present in the template
* GSWeb.framework/GSWTemplateParseXML.h: added ivar _isHTMLTag, _isBodyTag
* GSWeb.framework/GSWSessionTimeOutManager.m: dealloc sessionOrderedTimeOuts instead
of deallocating 2 times sessionTimeOuts
* GSWExtensions.framework/French.lproj/GSWSessionRestorationErrorPage.gswc/GSWSessionRestorationErrorPage.html:
tag mismatch, Encode french characters
* GSWExtensions.framework/GSWSessionRestorationErrorPage.gswc/GSWSessionRestorationErrorPage.html:
tag mismatch
* GSWHTMLBareString.m: handle unicode strings in description
* GSWExtensions.framework/French.lproj/GSWExceptionPage.gswc/GSWExceptionPage.html:
Encode french characters, Tag Mismatch
* GSWExtensions.framework/French.lproj/GSWPageRestorationErrorPage.gswc/GSWPageRestorationErrorPage.html:
Encode french characters
* GSWExtensions.framework/French.lproj/GSWSessionCreationErrorPage.gswc/GSWSessionCreationErrorPage.html:
Encode french characters
* GSWExtensions.framework/GSWExceptionPage.gswc/GSWExceptionPage.html:
Tag Mismatch
* GSWExtensions.framework/GSWExceptionPage.gswc/GSWExceptionPage.gswd:
added convertHTMLEntities for strings
* GSWeb.framework/GSWRepetition.m: added traces, fix "count" property bug, standardize ivars
* GSWeb.framework/NSObject+IVarAccess+PerformSel.m: added traces, handle underscored ivars search
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@9332 72102866-910b-0410-8b05-ffd578937521
2001-03-11 17:15:44 +00:00
|
|
|
//GSWeb Additions {
|
2000-01-22 12:49:49 +00:00
|
|
|
//--------------------------------------------------------------------
|
2002-05-14 11:28:50 +00:00
|
|
|
-(BOOL)disabledInContext:(GSWContext*)context
|
2000-01-22 12:49:49 +00:00
|
|
|
{
|
2002-05-14 11:28:50 +00:00
|
|
|
if (_enabled)
|
2004-12-31 14:33:16 +00:00
|
|
|
{
|
|
|
|
return !GSWDynamicElement_evaluateValueInContext(self,standardClass,
|
|
|
|
standardEvaluateConditionInContextIMP,
|
|
|
|
_enabled,context);
|
|
|
|
}
|
2000-01-22 12:49:49 +00:00
|
|
|
else
|
2004-12-31 14:33:16 +00:00
|
|
|
{
|
|
|
|
return GSWDynamicElement_evaluateValueInContext(self,standardClass,
|
|
|
|
standardEvaluateConditionInContextIMP,
|
|
|
|
_disabled,context);
|
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
};
|
2001-03-11 Manuel Guesdon <mguesdon@orange-concept.com>
* GSWeb.framework/GSWWOCompatibility.h/.m: added
* GSWeb.framework/GNUmakefile: added GSWWOCompatibility.h/.m
* GSWeb.framework/GSWApplication.h/m: added WOApplicationMain, handle WO/GSWeb names
* GSWeb.framework/GSWContext.m: handle WO/GSWeb names, added traces
* GSWeb.framework/GSWConstants.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWDynamicURLString.m: handle WO/GSWeb names
* GSWeb.framework/GSWProjectBundle.m/.h: handle WO/GSWeb names, suppress warnings
* GSWeb.framework/GSWSession.m: handle WO/GSWeb names
* GSWeb.framework/GSWRequest.m: handle WO/GSWeb names
* GSWeb.framework/GSWTemplateParser.m: handle WO/GSWeb names,
added tag counts to help errors hunt
* GSWeb.framework/GSWBundle.m: handle WO/GSWeb names, added traces
* GSWeb.framework/GSWResourceManager.m: handle WO/GSWeb names
* GSWeb.framework/GSWURLValuedElementData.m: handle WO/GSWeb names
* GSWeb.framework/GSWComponentRequestHandler.m: handle WO/GSWeb names
* GSWeb.framework/GSWDirectAction.m: handle WO/GSWeb names
* GSWeb.framework/GSWForm.m/.h: handle WO/GSWeb names
* GSWeb.framework/GSWHyperlink.m/.h: handle WO/GSWeb names
* GSWeb.framework/GSWResourceRequestHandler.m: handle WO/GSWeb names
* GSWeb.framework/GSWDirectActionRequestHandler.m: handle WO/GSWeb names
* GSWeb.framework/GSWActiveImage.m/.h: handle WO/GSWeb names
* GSWeb.framework/GSWBindingNameAssociation.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWBrowser.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWComponent.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWHTMLURLValuedElement.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWImageButton.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWInput.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWPopUpButton.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWString.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWAssociation.m: handle WO/GSWeb names
* GSWeb.framework/GSWCheckBox.m: handle WO/GSWeb names
* GSWeb.framework/GSWCheckBoxList.m: handle WO/GSWeb names
* GSWeb.framework/GSWComponentDefinition.m: handle WO/GSWeb names
* GSWeb.framework/GSWRadioButton.m: handle WO/GSWeb names
* GSWeb.framework/GSWRadioButtonList.m: handle WO/GSWeb names
* GSWeb.framework/GSWText.m: handle WO/GSWeb names
* GSWeb.framework/GSWTextField.m: handle WO/GSWeb names
* GSWeb.framework/GSWDeployedBundle.m: warnings
* GSWeb.framework/GSWeb.h: added include GSWeb/GSWSessionTimeOut.h, GSWWOCompatibility.h
* GSWeb.framework/GSWAdaptor.m: traces
* GSWeb.framework/GSWDefaultAdaptor.m: handle WO/GSWeb names, added traces
* GSWeb.framework/GSWDefaultAdaptorThread.m/.h: handle WO/GSWeb names
* GSWeb.framework/NSNonBlockingFileHandle.m: added traces
* GSWeb.framework/GSWTemplateParserANTLR.m: handle WO/GSWeb names
* GSWeb.framework/GSWTemplateParserXML.m: handle WO/GSWeb names
added tag count to help errors hunt
remove "Tag gsweb invalid" message
handle unicode strings in node content traces
remove html and body tags if they are not present in the template
* GSWeb.framework/GSWTemplateParseXML.h: added ivar _isHTMLTag, _isBodyTag
* GSWeb.framework/GSWSessionTimeOutManager.m: dealloc sessionOrderedTimeOuts instead
of deallocating 2 times sessionTimeOuts
* GSWExtensions.framework/French.lproj/GSWSessionRestorationErrorPage.gswc/GSWSessionRestorationErrorPage.html:
tag mismatch, Encode french characters
* GSWExtensions.framework/GSWSessionRestorationErrorPage.gswc/GSWSessionRestorationErrorPage.html:
tag mismatch
* GSWHTMLBareString.m: handle unicode strings in description
* GSWExtensions.framework/French.lproj/GSWExceptionPage.gswc/GSWExceptionPage.html:
Encode french characters, Tag Mismatch
* GSWExtensions.framework/French.lproj/GSWPageRestorationErrorPage.gswc/GSWPageRestorationErrorPage.html:
Encode french characters
* GSWExtensions.framework/French.lproj/GSWSessionCreationErrorPage.gswc/GSWSessionCreationErrorPage.html:
Encode french characters
* GSWExtensions.framework/GSWExceptionPage.gswc/GSWExceptionPage.html:
Tag Mismatch
* GSWExtensions.framework/GSWExceptionPage.gswc/GSWExceptionPage.gswd:
added convertHTMLEntities for strings
* GSWeb.framework/GSWRepetition.m: added traces, fix "count" property bug, standardize ivars
* GSWeb.framework/NSObject+IVarAccess+PerformSel.m: added traces, handle underscored ivars search
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@9332 72102866-910b-0410-8b05-ffd578937521
2001-03-11 17:15:44 +00:00
|
|
|
// }
|
2000-01-22 12:49:49 +00:00
|
|
|
//--------------------------------------------------------------------
|
|
|
|
-(BOOL)compactHTMLTags
|
|
|
|
{
|
|
|
|
LOGObjectFnNotImplemented(); //TODOFN
|
|
|
|
return NO;
|
|
|
|
};
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2004-12-31 14:33:16 +00:00
|
|
|
-(void)_appendHiddenFieldsToResponse:(GSWResponse*)aResponse
|
|
|
|
inContext:(GSWContext*)aContext
|
2000-01-22 12:49:49 +00:00
|
|
|
{
|
2003-01-19 15:33:07 +00:00
|
|
|
NSDictionary* hiddenFields = nil;
|
|
|
|
LOGObjectFnStart();
|
2000-01-22 12:49:49 +00:00
|
|
|
|
2004-12-31 14:33:16 +00:00
|
|
|
hiddenFields = [self computeQueryDictionaryInContext:aContext];
|
2003-01-19 15:33:07 +00:00
|
|
|
if([hiddenFields count]>0)
|
2002-05-14 11:28:50 +00:00
|
|
|
{
|
2003-01-19 15:33:07 +00:00
|
|
|
NSEnumerator* enumerator=[hiddenFields keyEnumerator];
|
|
|
|
id key=nil;
|
|
|
|
while((key=[enumerator nextObject]))
|
|
|
|
{
|
|
|
|
id value=[hiddenFields objectForKey:key];
|
2004-12-31 14:33:16 +00:00
|
|
|
GSWResponse_appendContentAsciiString(aResponse,@"<input type=hidden");
|
|
|
|
GSWResponse_appendTagAttributeValueEscapingHTMLAttributeValue(aResponse,
|
|
|
|
@"name",
|
|
|
|
key,
|
|
|
|
NO);//Don't escape name
|
|
|
|
GSWResponse_appendTagAttributeValueEscapingHTMLAttributeValue(aResponse,
|
|
|
|
@"value",
|
|
|
|
value,
|
|
|
|
NO);//Don't escape value (should be escaped before !)
|
|
|
|
GSWResponse_appendContentCharacter(aResponse,'>');
|
2003-01-19 15:33:07 +00:00
|
|
|
};
|
2002-05-14 11:28:50 +00:00
|
|
|
};
|
2003-01-19 15:33:07 +00:00
|
|
|
LOGObjectFnStop();
|
2000-01-22 12:49:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-05-14 11:28:50 +00:00
|
|
|
-(NSDictionary*)computeQueryDictionaryInContext:(GSWContext*)context
|
2000-01-22 12:49:49 +00:00
|
|
|
{
|
2003-01-19 15:33:07 +00:00
|
|
|
NSDictionary* queryDictionary=nil;
|
|
|
|
LOGObjectFnStart();
|
|
|
|
queryDictionary=[self computeQueryDictionaryWithActionClassAssociation:_actionClass
|
|
|
|
directActionNameAssociation:_directActionName
|
|
|
|
queryDictionaryAssociation:_queryDictionary
|
|
|
|
otherQueryAssociations:_otherQueryAssociations
|
|
|
|
inContext:context];
|
|
|
|
LOGObjectFnStop();
|
|
|
|
return queryDictionary;
|
|
|
|
};
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
-(NSString*)computeActionStringInContext:(GSWContext*)context
|
|
|
|
{
|
|
|
|
NSString* actionString=nil;
|
|
|
|
LOGObjectFnStart();
|
|
|
|
actionString=[self computeActionStringWithActionClassAssociation:_actionClass
|
|
|
|
directActionNameAssociation:_directActionName
|
2003-11-24 11:47:45 +00:00
|
|
|
otherPathQueryAssociations:_otherPathQueryAssociations
|
2003-01-19 15:33:07 +00:00
|
|
|
inContext:context];
|
|
|
|
LOGObjectFnStop();
|
|
|
|
return actionString;
|
2000-01-22 12:49:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2004-12-31 14:33:16 +00:00
|
|
|
-(void)appendToResponse:(GSWResponse*)aResponse
|
|
|
|
inContext:(GSWContext*)aContext
|
2000-01-22 12:49:49 +00:00
|
|
|
{
|
|
|
|
//OK
|
2004-12-14 12:54:40 +00:00
|
|
|
BOOL disabledInContext=NO;
|
|
|
|
BOOL displayDisabledValue=YES;
|
2004-12-31 14:33:16 +00:00
|
|
|
GSWDeclareDebugElementIDsCount(aContext);
|
2004-12-14 12:54:40 +00:00
|
|
|
|
2000-01-22 12:49:49 +00:00
|
|
|
LOGObjectFnStartC("GSWForm");
|
2004-12-14 12:54:40 +00:00
|
|
|
|
2004-12-31 14:33:16 +00:00
|
|
|
GSWStartElement(aContext);
|
|
|
|
GSWSaveAppendToResponseElementID(aContext);
|
2004-12-14 23:48:51 +00:00
|
|
|
|
2004-12-31 14:33:16 +00:00
|
|
|
GSWResponse_appendDebugCommentContentString(aResponse,
|
|
|
|
([NSString stringWithFormat:@"declarationName=%@ ID=%@",
|
|
|
|
[self declarationName],
|
|
|
|
GSWContext_elementID(aContext)]));
|
2000-02-14 10:57:55 +00:00
|
|
|
|
2001-03-11 Manuel Guesdon <mguesdon@orange-concept.com>
* GSWeb.framework/GSWWOCompatibility.h/.m: added
* GSWeb.framework/GNUmakefile: added GSWWOCompatibility.h/.m
* GSWeb.framework/GSWApplication.h/m: added WOApplicationMain, handle WO/GSWeb names
* GSWeb.framework/GSWContext.m: handle WO/GSWeb names, added traces
* GSWeb.framework/GSWConstants.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWDynamicURLString.m: handle WO/GSWeb names
* GSWeb.framework/GSWProjectBundle.m/.h: handle WO/GSWeb names, suppress warnings
* GSWeb.framework/GSWSession.m: handle WO/GSWeb names
* GSWeb.framework/GSWRequest.m: handle WO/GSWeb names
* GSWeb.framework/GSWTemplateParser.m: handle WO/GSWeb names,
added tag counts to help errors hunt
* GSWeb.framework/GSWBundle.m: handle WO/GSWeb names, added traces
* GSWeb.framework/GSWResourceManager.m: handle WO/GSWeb names
* GSWeb.framework/GSWURLValuedElementData.m: handle WO/GSWeb names
* GSWeb.framework/GSWComponentRequestHandler.m: handle WO/GSWeb names
* GSWeb.framework/GSWDirectAction.m: handle WO/GSWeb names
* GSWeb.framework/GSWForm.m/.h: handle WO/GSWeb names
* GSWeb.framework/GSWHyperlink.m/.h: handle WO/GSWeb names
* GSWeb.framework/GSWResourceRequestHandler.m: handle WO/GSWeb names
* GSWeb.framework/GSWDirectActionRequestHandler.m: handle WO/GSWeb names
* GSWeb.framework/GSWActiveImage.m/.h: handle WO/GSWeb names
* GSWeb.framework/GSWBindingNameAssociation.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWBrowser.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWComponent.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWHTMLURLValuedElement.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWImageButton.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWInput.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWPopUpButton.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWString.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWAssociation.m: handle WO/GSWeb names
* GSWeb.framework/GSWCheckBox.m: handle WO/GSWeb names
* GSWeb.framework/GSWCheckBoxList.m: handle WO/GSWeb names
* GSWeb.framework/GSWComponentDefinition.m: handle WO/GSWeb names
* GSWeb.framework/GSWRadioButton.m: handle WO/GSWeb names
* GSWeb.framework/GSWRadioButtonList.m: handle WO/GSWeb names
* GSWeb.framework/GSWText.m: handle WO/GSWeb names
* GSWeb.framework/GSWTextField.m: handle WO/GSWeb names
* GSWeb.framework/GSWDeployedBundle.m: warnings
* GSWeb.framework/GSWeb.h: added include GSWeb/GSWSessionTimeOut.h, GSWWOCompatibility.h
* GSWeb.framework/GSWAdaptor.m: traces
* GSWeb.framework/GSWDefaultAdaptor.m: handle WO/GSWeb names, added traces
* GSWeb.framework/GSWDefaultAdaptorThread.m/.h: handle WO/GSWeb names
* GSWeb.framework/NSNonBlockingFileHandle.m: added traces
* GSWeb.framework/GSWTemplateParserANTLR.m: handle WO/GSWeb names
* GSWeb.framework/GSWTemplateParserXML.m: handle WO/GSWeb names
added tag count to help errors hunt
remove "Tag gsweb invalid" message
handle unicode strings in node content traces
remove html and body tags if they are not present in the template
* GSWeb.framework/GSWTemplateParseXML.h: added ivar _isHTMLTag, _isBodyTag
* GSWeb.framework/GSWSessionTimeOutManager.m: dealloc sessionOrderedTimeOuts instead
of deallocating 2 times sessionTimeOuts
* GSWExtensions.framework/French.lproj/GSWSessionRestorationErrorPage.gswc/GSWSessionRestorationErrorPage.html:
tag mismatch, Encode french characters
* GSWExtensions.framework/GSWSessionRestorationErrorPage.gswc/GSWSessionRestorationErrorPage.html:
tag mismatch
* GSWHTMLBareString.m: handle unicode strings in description
* GSWExtensions.framework/French.lproj/GSWExceptionPage.gswc/GSWExceptionPage.html:
Encode french characters, Tag Mismatch
* GSWExtensions.framework/French.lproj/GSWPageRestorationErrorPage.gswc/GSWPageRestorationErrorPage.html:
Encode french characters
* GSWExtensions.framework/French.lproj/GSWSessionCreationErrorPage.gswc/GSWSessionCreationErrorPage.html:
Encode french characters
* GSWExtensions.framework/GSWExceptionPage.gswc/GSWExceptionPage.html:
Tag Mismatch
* GSWExtensions.framework/GSWExceptionPage.gswc/GSWExceptionPage.gswd:
added convertHTMLEntities for strings
* GSWeb.framework/GSWRepetition.m: added traces, fix "count" property bug, standardize ivars
* GSWeb.framework/NSObject+IVarAccess+PerformSel.m: added traces, handle underscored ivars search
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@9332 72102866-910b-0410-8b05-ffd578937521
2001-03-11 17:15:44 +00:00
|
|
|
if (!WOStrictFlag)
|
|
|
|
{
|
2004-12-31 14:33:16 +00:00
|
|
|
disabledInContext=[self disabledInContext:aContext];
|
|
|
|
[aContext setInForm:!disabledInContext];
|
2004-12-14 12:54:40 +00:00
|
|
|
if (!disabledInContext)
|
|
|
|
{
|
2004-12-31 14:33:16 +00:00
|
|
|
if ([aContext isInEnabledForm])
|
2004-12-14 12:54:40 +00:00
|
|
|
{
|
|
|
|
NSWarnLog(@"Enabled Form %@ ID=%@ in an enbled form. This usually doesn't works well",
|
|
|
|
[self declarationName],
|
2004-12-31 14:33:16 +00:00
|
|
|
GSWContext_elementID(aContext));
|
|
|
|
//GSWResponse_appendContentString(aResponse,@"FORM in a FORM"];//TEMP
|
|
|
|
[aContext setInEnabledForm:YES];
|
2004-12-14 12:54:40 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
if (disabledInContext && _displayDisabled)
|
|
|
|
{
|
2004-12-31 14:33:16 +00:00
|
|
|
displayDisabledValue=GSWDynamicElement_evaluateValueInContext(self,standardClass,
|
|
|
|
standardEvaluateConditionInContextIMP,
|
|
|
|
_displayDisabled,aContext);
|
2004-12-14 12:54:40 +00:00
|
|
|
};
|
2001-03-11 Manuel Guesdon <mguesdon@orange-concept.com>
* GSWeb.framework/GSWWOCompatibility.h/.m: added
* GSWeb.framework/GNUmakefile: added GSWWOCompatibility.h/.m
* GSWeb.framework/GSWApplication.h/m: added WOApplicationMain, handle WO/GSWeb names
* GSWeb.framework/GSWContext.m: handle WO/GSWeb names, added traces
* GSWeb.framework/GSWConstants.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWDynamicURLString.m: handle WO/GSWeb names
* GSWeb.framework/GSWProjectBundle.m/.h: handle WO/GSWeb names, suppress warnings
* GSWeb.framework/GSWSession.m: handle WO/GSWeb names
* GSWeb.framework/GSWRequest.m: handle WO/GSWeb names
* GSWeb.framework/GSWTemplateParser.m: handle WO/GSWeb names,
added tag counts to help errors hunt
* GSWeb.framework/GSWBundle.m: handle WO/GSWeb names, added traces
* GSWeb.framework/GSWResourceManager.m: handle WO/GSWeb names
* GSWeb.framework/GSWURLValuedElementData.m: handle WO/GSWeb names
* GSWeb.framework/GSWComponentRequestHandler.m: handle WO/GSWeb names
* GSWeb.framework/GSWDirectAction.m: handle WO/GSWeb names
* GSWeb.framework/GSWForm.m/.h: handle WO/GSWeb names
* GSWeb.framework/GSWHyperlink.m/.h: handle WO/GSWeb names
* GSWeb.framework/GSWResourceRequestHandler.m: handle WO/GSWeb names
* GSWeb.framework/GSWDirectActionRequestHandler.m: handle WO/GSWeb names
* GSWeb.framework/GSWActiveImage.m/.h: handle WO/GSWeb names
* GSWeb.framework/GSWBindingNameAssociation.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWBrowser.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWComponent.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWHTMLURLValuedElement.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWImageButton.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWInput.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWPopUpButton.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWString.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWAssociation.m: handle WO/GSWeb names
* GSWeb.framework/GSWCheckBox.m: handle WO/GSWeb names
* GSWeb.framework/GSWCheckBoxList.m: handle WO/GSWeb names
* GSWeb.framework/GSWComponentDefinition.m: handle WO/GSWeb names
* GSWeb.framework/GSWRadioButton.m: handle WO/GSWeb names
* GSWeb.framework/GSWRadioButtonList.m: handle WO/GSWeb names
* GSWeb.framework/GSWText.m: handle WO/GSWeb names
* GSWeb.framework/GSWTextField.m: handle WO/GSWeb names
* GSWeb.framework/GSWDeployedBundle.m: warnings
* GSWeb.framework/GSWeb.h: added include GSWeb/GSWSessionTimeOut.h, GSWWOCompatibility.h
* GSWeb.framework/GSWAdaptor.m: traces
* GSWeb.framework/GSWDefaultAdaptor.m: handle WO/GSWeb names, added traces
* GSWeb.framework/GSWDefaultAdaptorThread.m/.h: handle WO/GSWeb names
* GSWeb.framework/NSNonBlockingFileHandle.m: added traces
* GSWeb.framework/GSWTemplateParserANTLR.m: handle WO/GSWeb names
* GSWeb.framework/GSWTemplateParserXML.m: handle WO/GSWeb names
added tag count to help errors hunt
remove "Tag gsweb invalid" message
handle unicode strings in node content traces
remove html and body tags if they are not present in the template
* GSWeb.framework/GSWTemplateParseXML.h: added ivar _isHTMLTag, _isBodyTag
* GSWeb.framework/GSWSessionTimeOutManager.m: dealloc sessionOrderedTimeOuts instead
of deallocating 2 times sessionTimeOuts
* GSWExtensions.framework/French.lproj/GSWSessionRestorationErrorPage.gswc/GSWSessionRestorationErrorPage.html:
tag mismatch, Encode french characters
* GSWExtensions.framework/GSWSessionRestorationErrorPage.gswc/GSWSessionRestorationErrorPage.html:
tag mismatch
* GSWHTMLBareString.m: handle unicode strings in description
* GSWExtensions.framework/French.lproj/GSWExceptionPage.gswc/GSWExceptionPage.html:
Encode french characters, Tag Mismatch
* GSWExtensions.framework/French.lproj/GSWPageRestorationErrorPage.gswc/GSWPageRestorationErrorPage.html:
Encode french characters
* GSWExtensions.framework/French.lproj/GSWSessionCreationErrorPage.gswc/GSWSessionCreationErrorPage.html:
Encode french characters
* GSWExtensions.framework/GSWExceptionPage.gswc/GSWExceptionPage.html:
Tag Mismatch
* GSWExtensions.framework/GSWExceptionPage.gswc/GSWExceptionPage.gswd:
added convertHTMLEntities for strings
* GSWeb.framework/GSWRepetition.m: added traces, fix "count" property bug, standardize ivars
* GSWeb.framework/NSObject+IVarAccess+PerformSel.m: added traces, handle underscored ivars search
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@9332 72102866-910b-0410-8b05-ffd578937521
2001-03-11 17:15:44 +00:00
|
|
|
}
|
|
|
|
else
|
2004-12-31 14:33:16 +00:00
|
|
|
[aContext setInForm:YES];
|
2002-05-14 11:28:50 +00:00
|
|
|
|
2004-12-14 12:54:40 +00:00
|
|
|
if (!disabledInContext || displayDisabledValue)
|
|
|
|
{
|
2004-12-31 14:33:16 +00:00
|
|
|
[self appendToResponse:aResponse
|
|
|
|
inContext:aContext
|
2004-12-14 12:54:40 +00:00
|
|
|
elementsFromIndex:0
|
|
|
|
toIndex:[_elementsMap length]-2];
|
|
|
|
|
2004-12-31 14:33:16 +00:00
|
|
|
[self _appendHiddenFieldsToResponse:aResponse
|
|
|
|
inContext:aContext];
|
|
|
|
|
|
|
|
[self appendToResponse:aResponse
|
|
|
|
inContext:aContext
|
2004-12-14 12:54:40 +00:00
|
|
|
elementsFromIndex:[_elementsMap length]-1
|
|
|
|
toIndex:[_elementsMap length]-1];
|
2004-12-31 14:33:16 +00:00
|
|
|
|
|
|
|
[aContext setInForm:NO];
|
2004-12-14 12:54:40 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
if ([_elementsMap length]>2)
|
|
|
|
{
|
2004-12-31 14:33:16 +00:00
|
|
|
[self appendToResponse:aResponse
|
|
|
|
inContext:aContext
|
2004-12-14 12:54:40 +00:00
|
|
|
elementsFromIndex:1 // omit <form>
|
|
|
|
toIndex:[_elementsMap length]-2]; // omit </form>
|
|
|
|
};
|
|
|
|
};
|
|
|
|
if (!disabledInContext)
|
|
|
|
{
|
2004-12-31 14:33:16 +00:00
|
|
|
[aContext setInForm:NO];
|
|
|
|
[aContext setInEnabledForm:NO];
|
2004-12-14 12:54:40 +00:00
|
|
|
};
|
|
|
|
|
2004-12-31 14:33:16 +00:00
|
|
|
GSWStopElement(aContext);
|
|
|
|
GSWAssertDebugElementIDsCount(aContext);
|
2004-12-14 12:54:40 +00:00
|
|
|
|
2000-01-22 12:49:49 +00:00
|
|
|
LOGObjectFnStopC("GSWForm");
|
|
|
|
};
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-05-14 11:28:50 +00:00
|
|
|
-(GSWElement*)invokeActionForRequest:(GSWRequest*)request
|
2004-12-31 14:33:16 +00:00
|
|
|
inContext:(GSWContext*)aContext
|
2000-01-22 12:49:49 +00:00
|
|
|
{
|
|
|
|
//OK
|
2002-05-14 11:28:50 +00:00
|
|
|
GSWElement* element=nil;
|
|
|
|
NSString* senderID=nil;
|
2004-12-14 23:48:51 +00:00
|
|
|
NSString* elementID=nil;
|
2002-05-14 11:28:50 +00:00
|
|
|
BOOL isFormSubmited=NO;
|
|
|
|
BOOL multipleSubmitValue=NO;
|
2004-12-31 14:33:16 +00:00
|
|
|
GSWDeclareDebugElementIDsCount(aContext);
|
2004-03-01 16:47:04 +00:00
|
|
|
|
2000-01-22 12:49:49 +00:00
|
|
|
LOGObjectFnStartC("GSWForm");
|
2004-03-01 16:47:04 +00:00
|
|
|
|
2004-12-31 14:33:16 +00:00
|
|
|
GSWStartElement(aContext);
|
2004-12-14 23:48:51 +00:00
|
|
|
|
2004-12-31 14:33:16 +00:00
|
|
|
senderID=GSWContext_senderID(aContext);
|
|
|
|
elementID=GSWContext_elementID(aContext);
|
2002-05-16 18:01:40 +00:00
|
|
|
NSDebugMLLog(@"gswdync",@"senderId=%@",senderID);
|
2004-03-01 16:47:04 +00:00
|
|
|
|
2000-02-12 13:08:41 +00:00
|
|
|
NS_DURING
|
2002-01-26 10:43:23 +00:00
|
|
|
{
|
2004-12-31 14:33:16 +00:00
|
|
|
GSWAssertCorrectElementID(aContext);// Debug Only
|
|
|
|
if ([self prefixMatchSenderIDInContext:aContext]) //Avoid trying to find action if we are not the good component
|
2002-01-26 10:43:23 +00:00
|
|
|
{
|
2002-05-14 11:28:50 +00:00
|
|
|
isFormSubmited=[elementID isEqualToString:senderID];
|
2004-04-06 11:15:53 +00:00
|
|
|
NSDebugMLLog(@"gswdync",@"ET=%@ declarationName=%@ \n id=%@ \nsenderId=%@ \nisFormSubmited=%s",
|
2002-01-26 10:43:23 +00:00
|
|
|
[self class],
|
2004-04-06 11:15:53 +00:00
|
|
|
[self declarationName],
|
2002-05-16 18:01:40 +00:00
|
|
|
elementID,
|
2002-05-14 11:28:50 +00:00
|
|
|
senderID,
|
|
|
|
(isFormSubmited ? "YES" : "NO"));
|
2004-12-31 14:33:16 +00:00
|
|
|
if (!WOStrictFlag && isFormSubmited && [self disabledInContext:aContext])
|
2002-05-14 11:28:50 +00:00
|
|
|
isFormSubmited=NO;
|
2002-01-26 10:43:23 +00:00
|
|
|
|
2002-05-14 11:28:50 +00:00
|
|
|
if (isFormSubmited)
|
2002-01-26 10:43:23 +00:00
|
|
|
{
|
2004-12-31 14:33:16 +00:00
|
|
|
[aContext setInForm:YES];
|
|
|
|
[aContext setInEnabledForm:YES];
|
|
|
|
[aContext _setFormSubmitted:YES];
|
|
|
|
multipleSubmitValue=GSWDynamicElement_evaluateValueInContext(self,standardClass,
|
|
|
|
standardEvaluateConditionInContextIMP,
|
|
|
|
_multipleSubmit,aContext);
|
2004-04-06 11:15:53 +00:00
|
|
|
NSDebugMLLog(@"gswdync",@"ET=%@ declarationName=%@ \n id=%@ \nsenderId=%@ \nmultipleSubmit=%s",
|
2002-01-26 10:43:23 +00:00
|
|
|
[self class],
|
2004-04-06 11:15:53 +00:00
|
|
|
[self declarationName],
|
2002-05-16 18:01:40 +00:00
|
|
|
elementID,
|
2002-05-14 11:28:50 +00:00
|
|
|
senderID,
|
|
|
|
(multipleSubmitValue ? "YES" : "NO"));
|
2004-12-31 14:33:16 +00:00
|
|
|
[aContext _setIsMultipleSubmitForm:multipleSubmitValue];
|
2002-01-26 10:43:23 +00:00
|
|
|
};
|
2003-01-19 15:33:07 +00:00
|
|
|
|
|
|
|
NSDebugMLLog(@"gswdync",@"isFormSubmited=%d",isFormSubmited);
|
|
|
|
|
2002-05-16 18:01:40 +00:00
|
|
|
element=[super invokeActionForRequest:request
|
2004-12-31 14:33:16 +00:00
|
|
|
inContext:aContext];
|
2003-03-21 14:32:57 +00:00
|
|
|
NSAssert2(!element || [element isKindOfClass:[GSWElement class]],
|
|
|
|
@"Element is a %@ not a GSWElement: %@",
|
|
|
|
[element class],
|
|
|
|
element);
|
2003-01-19 15:33:07 +00:00
|
|
|
|
|
|
|
NSDebugMLLog(@"gswdync",@"isFormSubmited=%d",isFormSubmited);
|
2004-12-31 14:33:16 +00:00
|
|
|
NSDebugMLLog(@"gswdync",@"[aContext _wasActionInvoked]=%d",[aContext _wasActionInvoked]);
|
2003-01-19 15:33:07 +00:00
|
|
|
|
2002-05-14 11:28:50 +00:00
|
|
|
if (isFormSubmited)
|
2002-01-26 10:43:23 +00:00
|
|
|
{
|
2004-12-31 14:33:16 +00:00
|
|
|
NSDebugMLLog(@"gswdync",@"ET=%@ declarationName=%@ \n id=%@ \nsenderId=%@ \nmultipleSubmit=%s \n[aContext _wasActionInvoked]=%d",
|
2003-01-19 15:33:07 +00:00
|
|
|
[self class],
|
2004-04-06 11:15:53 +00:00
|
|
|
[self declarationName],
|
2003-01-19 15:33:07 +00:00
|
|
|
elementID,
|
|
|
|
senderID,
|
|
|
|
(multipleSubmitValue ? "YES" : "NO"),
|
2004-12-31 14:33:16 +00:00
|
|
|
[aContext _wasActionInvoked]);
|
|
|
|
if (_action && ![aContext _wasActionInvoked])
|
2002-01-26 10:43:23 +00:00
|
|
|
{
|
2004-12-31 14:33:16 +00:00
|
|
|
GSWComponent* component=GSWContext_component(aContext);
|
2003-01-19 15:33:07 +00:00
|
|
|
element = (GSWElement*)[_action valueInComponent:component];
|
2004-12-31 14:33:16 +00:00
|
|
|
[aContext _setActionInvoked:YES];
|
2002-01-26 10:43:23 +00:00
|
|
|
};
|
2004-12-31 14:33:16 +00:00
|
|
|
[aContext setInForm:NO];
|
|
|
|
[aContext setInEnabledForm:NO];
|
|
|
|
[aContext _setFormSubmitted:NO];
|
|
|
|
[aContext _setIsMultipleSubmitForm:NO];
|
2002-01-26 10:43:23 +00:00
|
|
|
};
|
2004-12-31 14:33:16 +00:00
|
|
|
elementID=GSWContext_elementID(aContext);
|
|
|
|
GSWStopElement(aContext);
|
2002-05-16 18:01:40 +00:00
|
|
|
};
|
2004-12-14 23:48:51 +00:00
|
|
|
|
2004-12-31 14:33:16 +00:00
|
|
|
GSWAssertDebugElementIDsCount(aContext);
|
2002-01-26 10:43:23 +00:00
|
|
|
}
|
2000-02-12 13:08:41 +00:00
|
|
|
NS_HANDLER
|
2002-01-26 10:43:23 +00:00
|
|
|
{
|
|
|
|
LOGException0(@"exception in GSWForm invokeActionForRequest:inContext");
|
|
|
|
LOGException(@"exception=%@",localException);
|
|
|
|
localException=ExceptionByAddingUserInfoObjectFrameInfo(localException,
|
|
|
|
@"In GSWForm invokeActionForRequest:inContext");
|
|
|
|
LOGException(@"exception=%@",localException);
|
|
|
|
[localException raise];
|
|
|
|
}
|
2000-02-12 13:08:41 +00:00
|
|
|
NS_ENDHANDLER;
|
2004-03-01 16:47:04 +00:00
|
|
|
|
2004-12-31 14:33:16 +00:00
|
|
|
if (![aContext _wasActionInvoked] && GSWContext_isSenderIDSearchOver(aContext))
|
2002-01-26 10:43:23 +00:00
|
|
|
{
|
2004-04-06 11:15:53 +00:00
|
|
|
LOGError(@"Action not invoked at the end of %@ (declarationName=%@) (id=%@) senderId=%@",
|
2002-01-26 10:43:23 +00:00
|
|
|
[self class],
|
2004-04-06 11:15:53 +00:00
|
|
|
[self declarationName],
|
2004-12-31 14:33:16 +00:00
|
|
|
GSWContext_elementID(aContext),
|
|
|
|
GSWContext_senderID(aContext));
|
2002-01-26 10:43:23 +00:00
|
|
|
};
|
2004-03-01 16:47:04 +00:00
|
|
|
|
2000-01-22 12:49:49 +00:00
|
|
|
LOGObjectFnStopC("GSWForm");
|
2004-03-01 16:47:04 +00:00
|
|
|
|
2002-05-14 11:28:50 +00:00
|
|
|
return element;
|
2000-01-22 12:49:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2002-05-14 11:28:50 +00:00
|
|
|
-(void)takeValuesFromRequest:(GSWRequest*)request
|
2004-12-31 14:33:16 +00:00
|
|
|
inContext:(GSWContext*)aContext
|
2000-01-22 12:49:49 +00:00
|
|
|
{
|
|
|
|
//OK
|
2002-05-14 11:28:50 +00:00
|
|
|
NSString* senderID=nil;
|
|
|
|
NSString* elementID=nil;
|
|
|
|
BOOL isFormSubmited=NO;
|
2004-12-31 14:33:16 +00:00
|
|
|
GSWDeclareDebugElementIDsCount(aContext);
|
2004-12-14 23:48:51 +00:00
|
|
|
|
2000-01-22 12:49:49 +00:00
|
|
|
LOGObjectFnStartC("GSWForm");
|
2004-12-14 23:48:51 +00:00
|
|
|
|
2004-12-31 14:33:16 +00:00
|
|
|
GSWStartElement(aContext);
|
|
|
|
GSWAssertCorrectElementID(aContext);
|
2002-05-16 18:01:40 +00:00
|
|
|
|
2004-12-31 14:33:16 +00:00
|
|
|
senderID=GSWContext_senderID(aContext);
|
|
|
|
elementID=GSWContext_elementID(aContext);
|
2002-05-14 11:28:50 +00:00
|
|
|
NSDebugMLLog(@"gswdync",@"senderID=%@",senderID);
|
2004-12-31 14:33:16 +00:00
|
|
|
if ([self prefixMatchSenderIDInContext:aContext]) //Avoid taking values if we are not the good form
|
2002-05-14 11:28:50 +00:00
|
|
|
{
|
|
|
|
isFormSubmited=[elementID isEqualToString:senderID];
|
|
|
|
NSDebugMLLog(@"gswdync",@"isFormSubmited=%d",(int)isFormSubmited);
|
2004-12-31 14:33:16 +00:00
|
|
|
if (!WOStrictFlag && isFormSubmited && [self disabledInContext:aContext])
|
2002-05-14 11:28:50 +00:00
|
|
|
isFormSubmited=NO;
|
2000-02-12 13:08:41 +00:00
|
|
|
|
2004-12-31 14:33:16 +00:00
|
|
|
NSDebugMLLog(@"gswdync",@"Starting GSWForm TV ET=%@ id=%@",[self class],GSWContext_elementID(aContext));
|
2002-05-14 11:28:50 +00:00
|
|
|
if (isFormSubmited)
|
|
|
|
{
|
2004-12-31 14:33:16 +00:00
|
|
|
[aContext setInForm:YES];
|
|
|
|
[aContext setInEnabledForm:YES];
|
|
|
|
[aContext _setFormSubmitted:YES];
|
2002-05-14 11:28:50 +00:00
|
|
|
};
|
2002-05-16 18:01:40 +00:00
|
|
|
NSDebugMLLog(@"gswdync",@"\n\ndynamicChildren=%@",_dynamicChildren);
|
|
|
|
NSDebugMLLog(@"gswdync",@"[dynamicChildren count]=%d",[_dynamicChildren count]);
|
|
|
|
|
|
|
|
[super takeValuesFromRequest:request
|
2004-12-31 14:33:16 +00:00
|
|
|
inContext:aContext];
|
2002-05-16 18:01:40 +00:00
|
|
|
|
2002-05-14 11:28:50 +00:00
|
|
|
if (isFormSubmited)
|
|
|
|
{
|
2004-12-31 14:33:16 +00:00
|
|
|
[aContext setInForm:NO];
|
|
|
|
[aContext setInEnabledForm:NO];
|
|
|
|
[aContext _setFormSubmitted:NO];
|
2002-05-14 11:28:50 +00:00
|
|
|
};
|
|
|
|
};
|
2004-12-14 23:48:51 +00:00
|
|
|
|
2004-12-31 14:33:16 +00:00
|
|
|
GSWStopElement(aContext);
|
|
|
|
GSWAssertDebugElementIDsCount(aContext);
|
2004-12-14 23:48:51 +00:00
|
|
|
|
2000-01-22 12:49:49 +00:00
|
|
|
LOGObjectFnStopC("GSWForm");
|
|
|
|
};
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
@implementation GSWForm (GSWFormB)
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2004-12-31 14:33:16 +00:00
|
|
|
-(void)appendGSWebObjectsAssociationsToResponse:(GSWResponse*)aResponse
|
|
|
|
inContext:(GSWContext*)aContext
|
2000-01-22 12:49:49 +00:00
|
|
|
{
|
2002-05-14 11:28:50 +00:00
|
|
|
BOOL disabledInContext=NO;
|
2000-01-22 12:49:49 +00:00
|
|
|
LOGObjectFnStartC("GSWForm");
|
2001-03-11 Manuel Guesdon <mguesdon@orange-concept.com>
* GSWeb.framework/GSWWOCompatibility.h/.m: added
* GSWeb.framework/GNUmakefile: added GSWWOCompatibility.h/.m
* GSWeb.framework/GSWApplication.h/m: added WOApplicationMain, handle WO/GSWeb names
* GSWeb.framework/GSWContext.m: handle WO/GSWeb names, added traces
* GSWeb.framework/GSWConstants.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWDynamicURLString.m: handle WO/GSWeb names
* GSWeb.framework/GSWProjectBundle.m/.h: handle WO/GSWeb names, suppress warnings
* GSWeb.framework/GSWSession.m: handle WO/GSWeb names
* GSWeb.framework/GSWRequest.m: handle WO/GSWeb names
* GSWeb.framework/GSWTemplateParser.m: handle WO/GSWeb names,
added tag counts to help errors hunt
* GSWeb.framework/GSWBundle.m: handle WO/GSWeb names, added traces
* GSWeb.framework/GSWResourceManager.m: handle WO/GSWeb names
* GSWeb.framework/GSWURLValuedElementData.m: handle WO/GSWeb names
* GSWeb.framework/GSWComponentRequestHandler.m: handle WO/GSWeb names
* GSWeb.framework/GSWDirectAction.m: handle WO/GSWeb names
* GSWeb.framework/GSWForm.m/.h: handle WO/GSWeb names
* GSWeb.framework/GSWHyperlink.m/.h: handle WO/GSWeb names
* GSWeb.framework/GSWResourceRequestHandler.m: handle WO/GSWeb names
* GSWeb.framework/GSWDirectActionRequestHandler.m: handle WO/GSWeb names
* GSWeb.framework/GSWActiveImage.m/.h: handle WO/GSWeb names
* GSWeb.framework/GSWBindingNameAssociation.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWBrowser.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWComponent.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWHTMLURLValuedElement.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWImageButton.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWInput.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWPopUpButton.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWString.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWAssociation.m: handle WO/GSWeb names
* GSWeb.framework/GSWCheckBox.m: handle WO/GSWeb names
* GSWeb.framework/GSWCheckBoxList.m: handle WO/GSWeb names
* GSWeb.framework/GSWComponentDefinition.m: handle WO/GSWeb names
* GSWeb.framework/GSWRadioButton.m: handle WO/GSWeb names
* GSWeb.framework/GSWRadioButtonList.m: handle WO/GSWeb names
* GSWeb.framework/GSWText.m: handle WO/GSWeb names
* GSWeb.framework/GSWTextField.m: handle WO/GSWeb names
* GSWeb.framework/GSWDeployedBundle.m: warnings
* GSWeb.framework/GSWeb.h: added include GSWeb/GSWSessionTimeOut.h, GSWWOCompatibility.h
* GSWeb.framework/GSWAdaptor.m: traces
* GSWeb.framework/GSWDefaultAdaptor.m: handle WO/GSWeb names, added traces
* GSWeb.framework/GSWDefaultAdaptorThread.m/.h: handle WO/GSWeb names
* GSWeb.framework/NSNonBlockingFileHandle.m: added traces
* GSWeb.framework/GSWTemplateParserANTLR.m: handle WO/GSWeb names
* GSWeb.framework/GSWTemplateParserXML.m: handle WO/GSWeb names
added tag count to help errors hunt
remove "Tag gsweb invalid" message
handle unicode strings in node content traces
remove html and body tags if they are not present in the template
* GSWeb.framework/GSWTemplateParseXML.h: added ivar _isHTMLTag, _isBodyTag
* GSWeb.framework/GSWSessionTimeOutManager.m: dealloc sessionOrderedTimeOuts instead
of deallocating 2 times sessionTimeOuts
* GSWExtensions.framework/French.lproj/GSWSessionRestorationErrorPage.gswc/GSWSessionRestorationErrorPage.html:
tag mismatch, Encode french characters
* GSWExtensions.framework/GSWSessionRestorationErrorPage.gswc/GSWSessionRestorationErrorPage.html:
tag mismatch
* GSWHTMLBareString.m: handle unicode strings in description
* GSWExtensions.framework/French.lproj/GSWExceptionPage.gswc/GSWExceptionPage.html:
Encode french characters, Tag Mismatch
* GSWExtensions.framework/French.lproj/GSWPageRestorationErrorPage.gswc/GSWPageRestorationErrorPage.html:
Encode french characters
* GSWExtensions.framework/French.lproj/GSWSessionCreationErrorPage.gswc/GSWSessionCreationErrorPage.html:
Encode french characters
* GSWExtensions.framework/GSWExceptionPage.gswc/GSWExceptionPage.html:
Tag Mismatch
* GSWExtensions.framework/GSWExceptionPage.gswc/GSWExceptionPage.gswd:
added convertHTMLEntities for strings
* GSWeb.framework/GSWRepetition.m: added traces, fix "count" property bug, standardize ivars
* GSWeb.framework/NSObject+IVarAccess+PerformSel.m: added traces, handle underscored ivars search
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@9332 72102866-910b-0410-8b05-ffd578937521
2001-03-11 17:15:44 +00:00
|
|
|
if (!WOStrictFlag)
|
|
|
|
{
|
2004-12-31 14:33:16 +00:00
|
|
|
disabledInContext=[self disabledInContext:aContext];
|
2002-05-14 11:28:50 +00:00
|
|
|
NSDebugMLLog(@"gswdync",@"disabledInContext=%s",(disabledInContext ? "YES" : "NO"));
|
|
|
|
};
|
2004-12-14 12:54:40 +00:00
|
|
|
if (disabledInContext)
|
|
|
|
{
|
|
|
|
// Mainly for debugginf purpose as it is not
|
|
|
|
// handled by browsers
|
2004-12-31 14:33:16 +00:00
|
|
|
GSWResponse_appendContentAsciiString(aResponse,@" disabled");
|
2004-12-14 12:54:40 +00:00
|
|
|
}
|
|
|
|
else
|
2002-05-14 11:28:50 +00:00
|
|
|
{
|
2004-12-31 14:33:16 +00:00
|
|
|
GSWComponent* component=GSWContext_component(aContext);
|
2002-05-14 11:28:50 +00:00
|
|
|
if (_href)
|
2003-01-19 15:33:07 +00:00
|
|
|
{
|
|
|
|
id actionValue=[_href valueInComponent:component];
|
2004-03-01 16:47:04 +00:00
|
|
|
if (_fragmentIdentifier)
|
|
|
|
{
|
|
|
|
id fragment=[_fragmentIdentifier valueInComponent:component];
|
|
|
|
NSDebugMLLog(@"gswdync",@"fragment=%@",fragment);
|
|
|
|
if (fragment)
|
2005-04-05 15:54:24 +00:00
|
|
|
{
|
|
|
|
if (actionValue)
|
|
|
|
actionValue=[NSStringWithObject(actionValue) stringByAppendingString:@"#"];
|
|
|
|
else
|
|
|
|
actionValue=@"#";
|
|
|
|
actionValue=[actionValue stringByAppendingString:NSStringWithObject(fragment)];
|
|
|
|
};
|
2004-03-01 16:47:04 +00:00
|
|
|
};
|
|
|
|
NSDebugMLLog(@"gswdync",@"actionValue=%@",actionValue);
|
2003-01-19 15:33:07 +00:00
|
|
|
//TODO emit a warning !
|
2004-12-31 14:33:16 +00:00
|
|
|
GSWResponse_appendTagAttributeValueEscapingHTMLAttributeValue(aResponse,
|
|
|
|
@"action",
|
|
|
|
actionValue,
|
|
|
|
NO);
|
2003-01-19 15:33:07 +00:00
|
|
|
}
|
|
|
|
else if (_directActionName || _actionClass)
|
|
|
|
{
|
2004-12-31 14:33:16 +00:00
|
|
|
[self _appendCGIActionToResponse:aResponse
|
|
|
|
inContext:aContext];
|
2003-01-19 15:33:07 +00:00
|
|
|
}
|
2002-05-14 11:28:50 +00:00
|
|
|
else
|
2003-01-19 15:33:07 +00:00
|
|
|
{
|
2004-12-31 14:33:16 +00:00
|
|
|
id actionValue=[aContext componentActionURL];
|
2004-03-01 16:47:04 +00:00
|
|
|
if (_fragmentIdentifier)
|
|
|
|
{
|
|
|
|
id fragment=[_fragmentIdentifier valueInComponent:component];
|
|
|
|
NSDebugMLLog(@"gswdync",@"fragment=%@",fragment);
|
|
|
|
if (fragment)
|
|
|
|
actionValue=[NSString stringWithFormat:@"%@#%@",
|
|
|
|
actionValue,fragment];
|
|
|
|
};
|
|
|
|
NSDebugMLLog(@"gswdync",@"actionValue=%@",actionValue);
|
2004-12-31 14:33:16 +00:00
|
|
|
GSWResponse_appendTagAttributeValueEscapingHTMLAttributeValue(aResponse,
|
|
|
|
@"action",
|
|
|
|
actionValue,
|
|
|
|
NO);
|
2003-01-19 15:33:07 +00:00
|
|
|
};
|
2001-03-11 Manuel Guesdon <mguesdon@orange-concept.com>
* GSWeb.framework/GSWWOCompatibility.h/.m: added
* GSWeb.framework/GNUmakefile: added GSWWOCompatibility.h/.m
* GSWeb.framework/GSWApplication.h/m: added WOApplicationMain, handle WO/GSWeb names
* GSWeb.framework/GSWContext.m: handle WO/GSWeb names, added traces
* GSWeb.framework/GSWConstants.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWDynamicURLString.m: handle WO/GSWeb names
* GSWeb.framework/GSWProjectBundle.m/.h: handle WO/GSWeb names, suppress warnings
* GSWeb.framework/GSWSession.m: handle WO/GSWeb names
* GSWeb.framework/GSWRequest.m: handle WO/GSWeb names
* GSWeb.framework/GSWTemplateParser.m: handle WO/GSWeb names,
added tag counts to help errors hunt
* GSWeb.framework/GSWBundle.m: handle WO/GSWeb names, added traces
* GSWeb.framework/GSWResourceManager.m: handle WO/GSWeb names
* GSWeb.framework/GSWURLValuedElementData.m: handle WO/GSWeb names
* GSWeb.framework/GSWComponentRequestHandler.m: handle WO/GSWeb names
* GSWeb.framework/GSWDirectAction.m: handle WO/GSWeb names
* GSWeb.framework/GSWForm.m/.h: handle WO/GSWeb names
* GSWeb.framework/GSWHyperlink.m/.h: handle WO/GSWeb names
* GSWeb.framework/GSWResourceRequestHandler.m: handle WO/GSWeb names
* GSWeb.framework/GSWDirectActionRequestHandler.m: handle WO/GSWeb names
* GSWeb.framework/GSWActiveImage.m/.h: handle WO/GSWeb names
* GSWeb.framework/GSWBindingNameAssociation.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWBrowser.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWComponent.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWHTMLURLValuedElement.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWImageButton.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWInput.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWPopUpButton.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWString.h/.m: handle WO/GSWeb names
* GSWeb.framework/GSWAssociation.m: handle WO/GSWeb names
* GSWeb.framework/GSWCheckBox.m: handle WO/GSWeb names
* GSWeb.framework/GSWCheckBoxList.m: handle WO/GSWeb names
* GSWeb.framework/GSWComponentDefinition.m: handle WO/GSWeb names
* GSWeb.framework/GSWRadioButton.m: handle WO/GSWeb names
* GSWeb.framework/GSWRadioButtonList.m: handle WO/GSWeb names
* GSWeb.framework/GSWText.m: handle WO/GSWeb names
* GSWeb.framework/GSWTextField.m: handle WO/GSWeb names
* GSWeb.framework/GSWDeployedBundle.m: warnings
* GSWeb.framework/GSWeb.h: added include GSWeb/GSWSessionTimeOut.h, GSWWOCompatibility.h
* GSWeb.framework/GSWAdaptor.m: traces
* GSWeb.framework/GSWDefaultAdaptor.m: handle WO/GSWeb names, added traces
* GSWeb.framework/GSWDefaultAdaptorThread.m/.h: handle WO/GSWeb names
* GSWeb.framework/NSNonBlockingFileHandle.m: added traces
* GSWeb.framework/GSWTemplateParserANTLR.m: handle WO/GSWeb names
* GSWeb.framework/GSWTemplateParserXML.m: handle WO/GSWeb names
added tag count to help errors hunt
remove "Tag gsweb invalid" message
handle unicode strings in node content traces
remove html and body tags if they are not present in the template
* GSWeb.framework/GSWTemplateParseXML.h: added ivar _isHTMLTag, _isBodyTag
* GSWeb.framework/GSWSessionTimeOutManager.m: dealloc sessionOrderedTimeOuts instead
of deallocating 2 times sessionTimeOuts
* GSWExtensions.framework/French.lproj/GSWSessionRestorationErrorPage.gswc/GSWSessionRestorationErrorPage.html:
tag mismatch, Encode french characters
* GSWExtensions.framework/GSWSessionRestorationErrorPage.gswc/GSWSessionRestorationErrorPage.html:
tag mismatch
* GSWHTMLBareString.m: handle unicode strings in description
* GSWExtensions.framework/French.lproj/GSWExceptionPage.gswc/GSWExceptionPage.html:
Encode french characters, Tag Mismatch
* GSWExtensions.framework/French.lproj/GSWPageRestorationErrorPage.gswc/GSWPageRestorationErrorPage.html:
Encode french characters
* GSWExtensions.framework/French.lproj/GSWSessionCreationErrorPage.gswc/GSWSessionCreationErrorPage.html:
Encode french characters
* GSWExtensions.framework/GSWExceptionPage.gswc/GSWExceptionPage.html:
Tag Mismatch
* GSWExtensions.framework/GSWExceptionPage.gswc/GSWExceptionPage.gswd:
added convertHTMLEntities for strings
* GSWeb.framework/GSWRepetition.m: added traces, fix "count" property bug, standardize ivars
* GSWeb.framework/NSObject+IVarAccess+PerformSel.m: added traces, handle underscored ivars search
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@9332 72102866-910b-0410-8b05-ffd578937521
2001-03-11 17:15:44 +00:00
|
|
|
};
|
2000-01-22 12:49:49 +00:00
|
|
|
LOGObjectFnStopC("GSWForm");
|
|
|
|
};
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
2004-12-31 14:33:16 +00:00
|
|
|
-(void)_appendCGIActionToResponse:(GSWResponse*)aResponse
|
|
|
|
inContext:(GSWContext*)aContext
|
2000-01-22 12:49:49 +00:00
|
|
|
{
|
2003-01-19 15:33:07 +00:00
|
|
|
NSString* actionString=nil;
|
|
|
|
NSString* anUrl=nil;
|
|
|
|
LOGObjectFnStartC("GSWForm");
|
|
|
|
|
2004-12-31 14:33:16 +00:00
|
|
|
actionString=[self computeActionStringInContext:aContext];
|
2003-01-19 15:33:07 +00:00
|
|
|
NSDebugMLLog(@"gswdync",@"actionString=%@",actionString);
|
|
|
|
|
2004-12-31 14:33:16 +00:00
|
|
|
anUrl=(NSString*)[aContext directActionURLForActionNamed:actionString
|
2005-04-05 15:54:24 +00:00
|
|
|
queryDictionary:nil];
|
2003-01-19 15:33:07 +00:00
|
|
|
NSDebugMLLog(@"gswdync",@"anUrl=%@",anUrl);
|
|
|
|
|
2004-03-01 16:47:04 +00:00
|
|
|
if (_fragmentIdentifier)
|
|
|
|
{
|
2004-12-31 14:33:16 +00:00
|
|
|
id fragment=[_fragmentIdentifier valueInComponent:GSWContext_component(aContext)];
|
2004-03-01 16:47:04 +00:00
|
|
|
NSDebugMLLog(@"gswdync",@"fragment=%@",fragment);
|
|
|
|
if (fragment)
|
2005-04-05 15:54:24 +00:00
|
|
|
{
|
|
|
|
if (anUrl)
|
|
|
|
anUrl=[NSStringWithObject(anUrl) stringByAppendingString:@"#"];
|
|
|
|
else
|
|
|
|
anUrl=@"#";
|
|
|
|
anUrl=[anUrl stringByAppendingString:NSStringWithObject(fragment)];
|
|
|
|
};
|
2004-03-01 16:47:04 +00:00
|
|
|
};
|
|
|
|
NSDebugMLLog(@"gswdync",@"anUrl=%@",anUrl);
|
|
|
|
|
2004-12-31 14:33:16 +00:00
|
|
|
GSWResponse_appendTagAttributeValueEscapingHTMLAttributeValue(aResponse,
|
|
|
|
@"action",
|
|
|
|
anUrl,
|
|
|
|
NO);
|
2003-01-19 15:33:07 +00:00
|
|
|
|
|
|
|
LOGObjectFnStopC("GSWForm");
|
2000-01-22 12:49:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
@implementation GSWForm (GSWFormC)
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
+(BOOL)hasGSWebObjectsAssociations
|
|
|
|
{
|
|
|
|
return YES;
|
|
|
|
};
|
|
|
|
|
|
|
|
@end
|
|
|
|
|