2000-02-12 Manuel Guesdon <mguesdon@sbuilders.com>

* GSWForm.m: Added senderId test in -invokeActionForRequest:inContext:
		and -takeValuesFromRequest:inContext:
	* GSWComponentReference.m: Added senderId test in
		-invokeActionForRequest:inContext:
		and -takeValuesFromRequest:inContext:


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@5988 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mguesdon 2000-02-12 13:08:41 +00:00
parent 17a08632bb
commit b54fa56d67
8 changed files with 202 additions and 108 deletions

View file

@ -237,9 +237,18 @@ static char rcsId[] = "$Id$";
[self pushRefComponentInContext:context_];
if ([context_ component])
{
_component=[context_ component];
_element=[_component invokeActionForRequest:request_
inContext:context_];
NSString* _senderID=nil;
NSString* _elementID=nil;
_senderID=[context_ senderID];
_elementID=[context_ elementID];
NSDebugMLLog(@"gswdync",@"_senderID=%@",_senderID);
NSDebugMLLog(@"gswdync",@"_elementID=%@",_elementID);
if ([_senderID hasPrefix:_elementID]) //Avoid trying to find action if we are not the good component
{
_component=[context_ component];
_element=[_component invokeActionForRequest:request_
inContext:context_];
};
[self popRefComponentInContext:context_];
}
else