mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-04-25 08:21:08 +00:00
* Testing/DynamicElements
Ported to WO names. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@30689 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
514d24d161
commit
21d987fbdc
84 changed files with 735 additions and 753 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2010-06-11 David Wetzel <dave@turbocat.de>
|
||||||
|
* Testing/DynamicElements
|
||||||
|
Ported to WO names.
|
||||||
|
|
||||||
2010-06-10 David Wetzel <dave@turbocat.de>
|
2010-06-10 David Wetzel <dave@turbocat.de>
|
||||||
* GSWeb.framework/GNUmakefile
|
* GSWeb.framework/GNUmakefile
|
||||||
* GSWeb.framework/WOKeyValueUnarchiver.m/h
|
* GSWeb.framework/WOKeyValueUnarchiver.m/h
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
#ifndef _BasePage_h__
|
#ifndef _BasePage_h__
|
||||||
#define _BasePage_h__
|
#define _BasePage_h__
|
||||||
|
|
||||||
@interface BasePage: GSWComponent
|
@interface BasePage: WOComponent
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -28,13 +28,13 @@
|
||||||
</license>
|
</license>
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#include <GSWeb/GSWeb.h>
|
#include <WebObjects/WebObjects.h>
|
||||||
#include "BasePage.h"
|
#include "BasePage.h"
|
||||||
|
|
||||||
|
|
||||||
@implementation BasePage
|
@implementation BasePage
|
||||||
|
|
||||||
-(GSWComponent*)submitAction
|
-(WOComponent*)submitAction
|
||||||
{
|
{
|
||||||
return nil;
|
return nil;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>GSWBrowser Test 1</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h2>GSWBrowser Test 1 (With value)</h2>
|
|
||||||
<br/>
|
|
||||||
Selected items : <gsweb name="SelectedItems"></gsweb><br/>
|
|
||||||
Selected item values : <gsweb name="SelectedValues"></gsweb><br/>
|
|
||||||
<br/>
|
|
||||||
<gsweb name="Form">
|
|
||||||
<gsweb name="ABrowser"></gsweb>
|
|
||||||
<gsweb name="SubmitButton"></gsweb>
|
|
||||||
</gsweb>
|
|
||||||
<hr/>
|
|
||||||
<gsweb name="MainPageLink"></gsweb>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -28,7 +28,7 @@
|
||||||
</license>
|
</license>
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#include <GSWeb/GSWeb.h>
|
#include <WebObjects/WebObjects.h>
|
||||||
#include "BasePage.h"
|
#include "BasePage.h"
|
||||||
#include "Browser1Page.h"
|
#include "Browser1Page.h"
|
||||||
|
|
||||||
|
|
17
Testing/DynamicElements/Browser1Page.wo/Browser1Page.html
Normal file
17
Testing/DynamicElements/Browser1Page.wo/Browser1Page.html
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>GSWBrowser Test 1</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h2>GSWBrowser Test 1 (With value) (currently broken DON'T use as examle, use Browser 2)</h2>
|
||||||
|
<br/>
|
||||||
|
Selected items : <webobject name="SelectedItems"></webobject><br/>
|
||||||
|
<br/>
|
||||||
|
<webobject name="Form">
|
||||||
|
<webobject name="ABrowser"></webobject>
|
||||||
|
<webobject name="SubmitButton"></webobject>
|
||||||
|
</webobject>
|
||||||
|
<hr/>
|
||||||
|
<webobject name="MainPageLink"></webobject>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -1,25 +1,34 @@
|
||||||
#include "Base"
|
|
||||||
|
|
||||||
ABrowser: GSWBrowser
|
ABrowser: WOBrowser
|
||||||
{
|
{
|
||||||
list = application.bundleInfo.Browser.list;
|
list = application.bundleInfo.Browser.list;
|
||||||
item = anItem;
|
item = anItem;
|
||||||
value = anItem.value;
|
value = anItem.value;
|
||||||
displayString = anItem.label;
|
displayString = anItem.label;
|
||||||
selections = selectedItems;
|
selections = selectedItems;
|
||||||
selectionValues = selectedValues;
|
|
||||||
selectedValues = selectedValues;
|
|
||||||
multiple = YES;
|
multiple = YES;
|
||||||
name = "BROWSERNAME";
|
name = "BROWSERNAME";
|
||||||
};
|
};
|
||||||
|
|
||||||
SelectedItems: GSWString
|
SelectedItems: WOString
|
||||||
{
|
{
|
||||||
value = selectedItems;
|
value = selectedItems;
|
||||||
};
|
};
|
||||||
|
|
||||||
SelectedValues: GSWString
|
MainPageLink: WOHyperlink
|
||||||
{
|
{
|
||||||
value = selectedValues;
|
pageName = "Main";
|
||||||
|
string = "Main Page";
|
||||||
|
};
|
||||||
|
|
||||||
|
Form: WOForm
|
||||||
|
{
|
||||||
|
enctype = "multipart/form-data";
|
||||||
|
};
|
||||||
|
|
||||||
|
SubmitButton: WOSubmitButton
|
||||||
|
{
|
||||||
|
action = submitAction;
|
||||||
|
value = "Submit";
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,24 +0,0 @@
|
||||||
#include "Base"
|
|
||||||
|
|
||||||
ABrowser: GSWBrowser
|
|
||||||
{
|
|
||||||
list = application.bundleInfo.Browser.list;
|
|
||||||
item = anItem;
|
|
||||||
displayString = anItem.label;
|
|
||||||
selections = selectedItems;
|
|
||||||
selectionValues = selectedValues;
|
|
||||||
selectedValues = selectedValues;
|
|
||||||
multiple = YES;
|
|
||||||
name = "BROWSERNAME";
|
|
||||||
};
|
|
||||||
|
|
||||||
SelectedItems: GSWString
|
|
||||||
{
|
|
||||||
value = selectedItems;
|
|
||||||
};
|
|
||||||
|
|
||||||
SelectedValues: GSWString
|
|
||||||
{
|
|
||||||
value = selectedValues;
|
|
||||||
};
|
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>GSWBrowser Test 2</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h2>GSWBrowser Test 2 (Without value: AutoValue)</h2>
|
|
||||||
<br/>
|
|
||||||
Selected items : <gsweb name="SelectedItems"></gsweb><br/>
|
|
||||||
Selected item values : <gsweb name="SelectedValues"></gsweb><br/>
|
|
||||||
<br/>
|
|
||||||
<gsweb name="Form">
|
|
||||||
<gsweb name="ABrowser"></gsweb>
|
|
||||||
<gsweb name="SubmitButton"></gsweb>
|
|
||||||
</gsweb>
|
|
||||||
<hr/>
|
|
||||||
<gsweb name="MainPageLink"></gsweb>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -28,7 +28,7 @@
|
||||||
</license>
|
</license>
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#include <GSWeb/GSWeb.h>
|
#include <WebObjects/WebObjects.h>
|
||||||
#include "BasePage.h"
|
#include "BasePage.h"
|
||||||
#include "Browser2Page.h"
|
#include "Browser2Page.h"
|
||||||
|
|
||||||
|
|
17
Testing/DynamicElements/Browser2Page.wo/Browser2Page.html
Normal file
17
Testing/DynamicElements/Browser2Page.wo/Browser2Page.html
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>GSWBrowser Test 2</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h2>GSWBrowser Test 2 (Without value: AutoValue)</h2>
|
||||||
|
<br/>
|
||||||
|
Selected items : <webobject name="SelectedItems"></webobject><br/>
|
||||||
|
<br/>
|
||||||
|
<webobject name="Form">
|
||||||
|
<webobject name="ABrowser"></webobject>
|
||||||
|
<webobject name="SubmitButton"></webobject>
|
||||||
|
</webobject>
|
||||||
|
<hr/>
|
||||||
|
<webobject name="MainPageLink"></webobject>
|
||||||
|
</body>
|
||||||
|
</html>
|
33
Testing/DynamicElements/Browser2Page.wo/Browser2Page.wod
Normal file
33
Testing/DynamicElements/Browser2Page.wo/Browser2Page.wod
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
|
||||||
|
ABrowser: WOBrowser
|
||||||
|
{
|
||||||
|
list = application.bundleInfo.Browser.list;
|
||||||
|
item = anItem;
|
||||||
|
displayString = anItem.label;
|
||||||
|
selections = selectedItems;
|
||||||
|
multiple = YES;
|
||||||
|
name = "BROWSERNAME";
|
||||||
|
};
|
||||||
|
|
||||||
|
SelectedItems: WOString
|
||||||
|
{
|
||||||
|
value = selectedItems;
|
||||||
|
};
|
||||||
|
|
||||||
|
MainPageLink: WOHyperlink
|
||||||
|
{
|
||||||
|
pageName = "Main";
|
||||||
|
string = "Main Page";
|
||||||
|
};
|
||||||
|
|
||||||
|
Form: WOForm
|
||||||
|
{
|
||||||
|
enctype = "multipart/form-data";
|
||||||
|
};
|
||||||
|
|
||||||
|
SubmitButton: WOSubmitButton
|
||||||
|
{
|
||||||
|
action = submitAction;
|
||||||
|
value = "Submit";
|
||||||
|
};
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
#include "Base"
|
|
||||||
|
|
||||||
ACheckBox: GSWCheckBox
|
|
||||||
{
|
|
||||||
value = "MyValue";
|
|
||||||
selection = checkBoxValue;
|
|
||||||
checked = isChecked;
|
|
||||||
};
|
|
||||||
|
|
||||||
CheckValue: GSWString
|
|
||||||
{
|
|
||||||
value = checkBoxValue;
|
|
||||||
};
|
|
||||||
|
|
||||||
IsCheckedValue: GSWString
|
|
||||||
{
|
|
||||||
value = isChecked;
|
|
||||||
};
|
|
|
@ -1,18 +0,0 @@
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>GSWCheckBox Test 1</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h2>GSWCheckBox Test 1</h2>
|
|
||||||
<br/>
|
|
||||||
Value : <gsweb name="CheckValue"></gsweb><br/>
|
|
||||||
Is Checked : <gsweb name="IsCheckedValue"></gsweb><br/>
|
|
||||||
<br/>
|
|
||||||
<gsweb name="Form">
|
|
||||||
<gsweb name="ACheckBox"></gsweb>Check Me !
|
|
||||||
<gsweb name="SubmitButton"></gsweb>
|
|
||||||
</gsweb>
|
|
||||||
<hr/>
|
|
||||||
<gsweb name="MainPageLink"></gsweb>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -28,7 +28,7 @@
|
||||||
</license>
|
</license>
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#include <GSWeb/GSWeb.h>
|
#include <WebObjects/WebObjects.h>
|
||||||
#include "BasePage.h"
|
#include "BasePage.h"
|
||||||
#include "CheckBox1Page.h"
|
#include "CheckBox1Page.h"
|
||||||
|
|
||||||
|
|
17
Testing/DynamicElements/CheckBox1Page.wo/CheckBox1Page.html
Normal file
17
Testing/DynamicElements/CheckBox1Page.wo/CheckBox1Page.html
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>GSWCheckBox Test 1</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h2>GSWCheckBox Test 1</h2>
|
||||||
|
<br/>
|
||||||
|
Value : <webobject name="CheckValue"></webobject><br/>
|
||||||
|
<br/>
|
||||||
|
<webobject name="Form">
|
||||||
|
<webobject name="ACheckBox"></webobject>Check Me !
|
||||||
|
<webobject name="SubmitButton"></webobject>
|
||||||
|
</webobject>
|
||||||
|
<hr/>
|
||||||
|
<webobject name="MainPageLink"></webobject>
|
||||||
|
</body>
|
||||||
|
</html>
|
29
Testing/DynamicElements/CheckBox1Page.wo/CheckBox1Page.wod
Normal file
29
Testing/DynamicElements/CheckBox1Page.wo/CheckBox1Page.wod
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
|
||||||
|
ACheckBox: WOCheckBox
|
||||||
|
{
|
||||||
|
value = "MyValue";
|
||||||
|
selection = checkBoxValue;
|
||||||
|
};
|
||||||
|
|
||||||
|
CheckValue: WOString
|
||||||
|
{
|
||||||
|
value = checkBoxValue;
|
||||||
|
};
|
||||||
|
|
||||||
|
MainPageLink: WOHyperlink
|
||||||
|
{
|
||||||
|
pageName = "Main";
|
||||||
|
string = "Main Page";
|
||||||
|
};
|
||||||
|
|
||||||
|
Form: WOForm
|
||||||
|
{
|
||||||
|
enctype = "multipart/form-data";
|
||||||
|
};
|
||||||
|
|
||||||
|
SubmitButton: WOSubmitButton
|
||||||
|
{
|
||||||
|
action = submitAction;
|
||||||
|
value = "Submit";
|
||||||
|
};
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
#include "Base"
|
|
||||||
|
|
||||||
ACheckBox: GSWCheckBox
|
|
||||||
{
|
|
||||||
selection = checkBoxValue;
|
|
||||||
checked = isChecked;
|
|
||||||
};
|
|
||||||
|
|
||||||
CheckValue: GSWString
|
|
||||||
{
|
|
||||||
value = checkBoxValue;
|
|
||||||
};
|
|
||||||
|
|
||||||
IsCheckedValue: GSWString
|
|
||||||
{
|
|
||||||
value = isChecked;
|
|
||||||
};
|
|
|
@ -1,18 +0,0 @@
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>GSWCheckBox Test 2</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h2>GSWCheckBox Test 2</h2>
|
|
||||||
<br/>
|
|
||||||
Value : <gsweb name="CheckValue"></gsweb><br/>
|
|
||||||
Is Checked : <gsweb name="IsCheckedValue"></gsweb><br/>
|
|
||||||
<br/>
|
|
||||||
<gsweb name="Form">
|
|
||||||
<gsweb name="ACheckBox"></gsweb>Check Me !
|
|
||||||
<gsweb name="SubmitButton"></gsweb>
|
|
||||||
</gsweb>
|
|
||||||
<hr/>
|
|
||||||
<gsweb name="MainPageLink"></gsweb>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -28,7 +28,7 @@
|
||||||
</license>
|
</license>
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#include <GSWeb/GSWeb.h>
|
#include <WebObjects/WebObjects.h>
|
||||||
#include "BasePage.h"
|
#include "BasePage.h"
|
||||||
#include "CheckBox2Page.h"
|
#include "CheckBox2Page.h"
|
||||||
|
|
||||||
|
|
17
Testing/DynamicElements/CheckBox2Page.wo/CheckBox2Page.html
Normal file
17
Testing/DynamicElements/CheckBox2Page.wo/CheckBox2Page.html
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>GSWCheckBox Test 2</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h2>GSWCheckBox Test 2</h2>
|
||||||
|
<br/>
|
||||||
|
Is Checked : <webobject name="IsCheckedValue"></webobject><br/>
|
||||||
|
<br/>
|
||||||
|
<webobject name="Form">
|
||||||
|
<webobject name="ACheckBox"></webobject>Check Me !
|
||||||
|
<webobject name="SubmitButton"></webobject>
|
||||||
|
</webobject>
|
||||||
|
<hr/>
|
||||||
|
<webobject name="MainPageLink"></webobject>
|
||||||
|
</body>
|
||||||
|
</html>
|
28
Testing/DynamicElements/CheckBox2Page.wo/CheckBox2Page.wod
Normal file
28
Testing/DynamicElements/CheckBox2Page.wo/CheckBox2Page.wod
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
|
||||||
|
ACheckBox: WOCheckBox
|
||||||
|
{
|
||||||
|
selection = checkBoxValue;
|
||||||
|
checked = isChecked;
|
||||||
|
};
|
||||||
|
|
||||||
|
IsCheckedValue: WOString
|
||||||
|
{
|
||||||
|
value = isChecked;
|
||||||
|
};
|
||||||
|
MainPageLink: WOHyperlink
|
||||||
|
{
|
||||||
|
pageName = "Main";
|
||||||
|
string = "Main Page";
|
||||||
|
};
|
||||||
|
|
||||||
|
Form: WOForm
|
||||||
|
{
|
||||||
|
enctype = "multipart/form-data";
|
||||||
|
};
|
||||||
|
|
||||||
|
SubmitButton: WOSubmitButton
|
||||||
|
{
|
||||||
|
action = submitAction;
|
||||||
|
value = "Submit";
|
||||||
|
};
|
||||||
|
|
|
@ -1,22 +0,0 @@
|
||||||
#include "Base"
|
|
||||||
|
|
||||||
ACheckBoxList: GSWCheckBoxList
|
|
||||||
{
|
|
||||||
list = application.bundleInfo.CheckBoxList.list;
|
|
||||||
item = anItem;
|
|
||||||
value = anItem.value;
|
|
||||||
displayString = anItem.label;
|
|
||||||
selections = selectedItems;
|
|
||||||
name = "CHECKNAME";
|
|
||||||
};
|
|
||||||
|
|
||||||
SelectedItems: GSWString
|
|
||||||
{
|
|
||||||
value = selectedItems;
|
|
||||||
};
|
|
||||||
|
|
||||||
SelectedValues: GSWString
|
|
||||||
{
|
|
||||||
value = selectedValues;
|
|
||||||
};
|
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>GSWCheckBoxList Test 1</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h2>GSWCheckBoxList Test 1 (With value)</h2>
|
|
||||||
<br/>
|
|
||||||
Selected items : <gsweb name="SelectedItems"></gsweb><br/>
|
|
||||||
<br/>
|
|
||||||
<gsweb name="Form">
|
|
||||||
<gsweb name="ACheckBoxList"></gsweb>
|
|
||||||
<gsweb name="SubmitButton"></gsweb>
|
|
||||||
</gsweb>
|
|
||||||
<hr/>
|
|
||||||
<gsweb name="MainPageLink"></gsweb>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,16 +0,0 @@
|
||||||
#include "Base"
|
|
||||||
|
|
||||||
ARadioButtonList: GSWRadioButtonList
|
|
||||||
{
|
|
||||||
list = application.bundleInfo.RadioButtonList.list;
|
|
||||||
item = anItem;
|
|
||||||
value = anItem.value;
|
|
||||||
displayString = anItem.label;
|
|
||||||
selection = selectedItem;
|
|
||||||
};
|
|
||||||
|
|
||||||
SelectedItem: GSWString
|
|
||||||
{
|
|
||||||
value = selectedItem;
|
|
||||||
};
|
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
</license>
|
</license>
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#include <GSWeb/GSWeb.h>
|
#include <WebObjects/WebObjects.h>
|
||||||
#include "BasePage.h"
|
#include "BasePage.h"
|
||||||
#include "CheckBoxList1Page.h"
|
#include "CheckBoxList1Page.h"
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>GSWCheckBoxList Test 1</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h2>GSWCheckBoxList Test 1 (With value)</h2>
|
||||||
|
<br/>
|
||||||
|
Selected items : <webobject name="SelectedItems"></webobject><br/>
|
||||||
|
<br/>
|
||||||
|
<webobject name="Form">
|
||||||
|
<webobject name="ACheckBoxList"></webobject>
|
||||||
|
<webobject name="SubmitButton"></webobject>
|
||||||
|
</webobject>
|
||||||
|
<hr/>
|
||||||
|
<webobject name="MainPageLink"></webobject>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,38 @@
|
||||||
|
|
||||||
|
ACheckBoxList: WOCheckBoxList
|
||||||
|
{
|
||||||
|
list = application.bundleInfo.CheckBoxList.list;
|
||||||
|
item = anItem;
|
||||||
|
value = anItem.value;
|
||||||
|
displayString = anItem.label;
|
||||||
|
selections = selectedItems;
|
||||||
|
name = "CHECKNAME";
|
||||||
|
};
|
||||||
|
|
||||||
|
SelectedItems: WOString
|
||||||
|
{
|
||||||
|
value = selectedItems;
|
||||||
|
};
|
||||||
|
|
||||||
|
SelectedValues: WOString
|
||||||
|
{
|
||||||
|
value = selectedValues;
|
||||||
|
};
|
||||||
|
|
||||||
|
MainPageLink: WOHyperlink
|
||||||
|
{
|
||||||
|
pageName = "Main";
|
||||||
|
string = "Main Page";
|
||||||
|
};
|
||||||
|
|
||||||
|
Form: WOForm
|
||||||
|
{
|
||||||
|
enctype = "multipart/form-data";
|
||||||
|
};
|
||||||
|
|
||||||
|
SubmitButton: WOSubmitButton
|
||||||
|
{
|
||||||
|
action = submitAction;
|
||||||
|
value = "Submit";
|
||||||
|
};
|
||||||
|
|
|
@ -1,16 +0,0 @@
|
||||||
#include "Base"
|
|
||||||
|
|
||||||
ACheckBoxList: GSWCheckBoxList
|
|
||||||
{
|
|
||||||
list = application.bundleInfo.CheckBoxList.list;
|
|
||||||
item = anItem;
|
|
||||||
displayString = anItem.label;
|
|
||||||
selections = selectedItems;
|
|
||||||
name = "CHECKNAME";
|
|
||||||
};
|
|
||||||
|
|
||||||
SelectedItems: GSWString
|
|
||||||
{
|
|
||||||
value = selectedItems;
|
|
||||||
};
|
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>GSWCheckBoxList Test 2</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h2>GSWCheckBoxList Test 2 (Without value: AutoValue)</h2>
|
|
||||||
<br/>
|
|
||||||
Selected items : <gsweb name="SelectedItems"></gsweb><br/>
|
|
||||||
<br/>
|
|
||||||
<gsweb name="Form">
|
|
||||||
<gsweb name="ACheckBoxList"></gsweb>
|
|
||||||
<gsweb name="SubmitButton"></gsweb>
|
|
||||||
</gsweb>
|
|
||||||
<hr/>
|
|
||||||
<gsweb name="MainPageLink"></gsweb>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,15 +0,0 @@
|
||||||
#include "Base"
|
|
||||||
|
|
||||||
ARadioButtonList: GSWRadioButtonList
|
|
||||||
{
|
|
||||||
list = application.bundleInfo.RadioButtonList.list;
|
|
||||||
item = anItem;
|
|
||||||
displayString = anItem.label;
|
|
||||||
selection = selectedItem;
|
|
||||||
};
|
|
||||||
|
|
||||||
SelectedItem: GSWString
|
|
||||||
{
|
|
||||||
value = selectedItem;
|
|
||||||
};
|
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
</license>
|
</license>
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#include <GSWeb/GSWeb.h>
|
#include <WebObjects/WebObjects.h>
|
||||||
#include "BasePage.h"
|
#include "BasePage.h"
|
||||||
#include "CheckBoxList2Page.h"
|
#include "CheckBoxList2Page.h"
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>GSWCheckBoxList Test 2</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h2>GSWCheckBoxList Test 2 (Without value: AutoValue)</h2>
|
||||||
|
<br/>
|
||||||
|
Selected items : <webobject name="SelectedItems"></webobject><br/>
|
||||||
|
<br/>
|
||||||
|
<webobject name="Form">
|
||||||
|
<webobject name="ACheckBoxList"></webobject>
|
||||||
|
<webobject name="SubmitButton"></webobject>
|
||||||
|
</webobject>
|
||||||
|
<hr/>
|
||||||
|
<webobject name="MainPageLink"></webobject>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,32 @@
|
||||||
|
|
||||||
|
ACheckBoxList: WOCheckBoxList
|
||||||
|
{
|
||||||
|
list = application.bundleInfo.CheckBoxList.list;
|
||||||
|
item = anItem;
|
||||||
|
displayString = anItem.label;
|
||||||
|
selections = selectedItems;
|
||||||
|
name = "CHECKNAME";
|
||||||
|
};
|
||||||
|
|
||||||
|
SelectedItems: WOString
|
||||||
|
{
|
||||||
|
value = selectedItems;
|
||||||
|
};
|
||||||
|
|
||||||
|
MainPageLink: WOHyperlink
|
||||||
|
{
|
||||||
|
pageName = "Main";
|
||||||
|
string = "Main Page";
|
||||||
|
};
|
||||||
|
|
||||||
|
Form: WOForm
|
||||||
|
{
|
||||||
|
enctype = "multipart/form-data";
|
||||||
|
};
|
||||||
|
|
||||||
|
SubmitButton: WOSubmitButton
|
||||||
|
{
|
||||||
|
action = submitAction;
|
||||||
|
value = "Submit";
|
||||||
|
};
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#include <WebObjects/WebObjects.h>
|
||||||
|
|
||||||
//====================================================================
|
//====================================================================
|
||||||
@interface DynamicElements : GSWApplication
|
@interface DynamicElements : WOApplication
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -1,12 +1,23 @@
|
||||||
#include <GSWeb/GSWeb.h>
|
#include <WebObjects/WebObjects.h>
|
||||||
#include "DynamicElements.h"
|
#include "DynamicElements.h"
|
||||||
|
|
||||||
|
/* Those are just empty to make the demo work.
|
||||||
|
* In an real application, you might want to add real code to these classes
|
||||||
|
* and split them into separate files.
|
||||||
|
*/
|
||||||
|
|
||||||
@implementation DynamicElements
|
@implementation DynamicElements
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@interface Session: GSWSession
|
@interface Session: WOSession
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@implementation Session
|
@implementation Session
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
@interface DirectAction: WODirectAction
|
||||||
|
@end
|
||||||
|
|
||||||
|
@implementation DirectAction
|
||||||
|
@end
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#include <GSWeb/GSWeb.h>
|
#include <WebObjects/WebObjects.h>
|
||||||
|
|
||||||
int main(int argc, const char *argv[])
|
int main(int argc, const char *argv[])
|
||||||
{
|
{
|
||||||
int ret=0;
|
int ret=0;
|
||||||
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
||||||
ret=GSWApplicationMain(@"DynamicElements", argc, argv);
|
ret=WOApplicationMain(@"DynamicElements", argc, argv);
|
||||||
[arp release];
|
[arp release];
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,23 +0,0 @@
|
||||||
#include "Base"
|
|
||||||
|
|
||||||
AFileUpload: GSWFileUpload
|
|
||||||
{
|
|
||||||
filePath=aFilePath;
|
|
||||||
data=aFileData;
|
|
||||||
};
|
|
||||||
|
|
||||||
FileName: GSWString
|
|
||||||
{
|
|
||||||
value = aFilePath;
|
|
||||||
};
|
|
||||||
|
|
||||||
FileSize: GSWString
|
|
||||||
{
|
|
||||||
value = aFileData.length.description;
|
|
||||||
};
|
|
||||||
|
|
||||||
FileContent: GSWString
|
|
||||||
{
|
|
||||||
value = aFileData.description;
|
|
||||||
};
|
|
||||||
|
|
|
@ -1,19 +0,0 @@
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>GSWFileUpload Test 1</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h2>GSWFileUpload Test 1</h2>
|
|
||||||
<br/>
|
|
||||||
FileName : <gsweb name="FileName"></gsweb><br/>
|
|
||||||
FileSize : <gsweb name="FileSize"></gsweb><br/>
|
|
||||||
FileContent : <gsweb name="FileContent"></gsweb><br/>
|
|
||||||
<br/>
|
|
||||||
<gsweb name="Form">
|
|
||||||
<gsweb name="AFileUpload"></gsweb>
|
|
||||||
<gsweb name="SubmitButton"></gsweb>
|
|
||||||
</gsweb>
|
|
||||||
<hr/>
|
|
||||||
<gsweb name="MainPageLink"></gsweb>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -28,7 +28,7 @@
|
||||||
</license>
|
</license>
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#include <GSWeb/GSWeb.h>
|
#include <WebObjects/WebObjects.h>
|
||||||
#include "BasePage.h"
|
#include "BasePage.h"
|
||||||
#include "FileUpload1Page.h"
|
#include "FileUpload1Page.h"
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>GSWFileUpload Test 1</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h2>GSWFileUpload Test 1</h2>
|
||||||
|
<br/>
|
||||||
|
FileName : <webobject name="FileName"></webobject><br/>
|
||||||
|
FileSize : <webobject name="FileSize"></webobject><br/>
|
||||||
|
FileContent : <webobject name="FileContent"></webobject><br/>
|
||||||
|
<br/>
|
||||||
|
<webobject name="Form">
|
||||||
|
<webobject name="AFileUpload"></webobject>
|
||||||
|
<webobject name="SubmitButton"></webobject>
|
||||||
|
</webobject>
|
||||||
|
<hr/>
|
||||||
|
<webobject name="MainPageLink"></webobject>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,39 @@
|
||||||
|
|
||||||
|
AFileUpload: WOFileUpload
|
||||||
|
{
|
||||||
|
filePath=aFilePath;
|
||||||
|
data=aFileData;
|
||||||
|
};
|
||||||
|
|
||||||
|
FileName: WOString
|
||||||
|
{
|
||||||
|
value = aFilePath;
|
||||||
|
};
|
||||||
|
|
||||||
|
FileSize: WOString
|
||||||
|
{
|
||||||
|
value = aFileData.length.description;
|
||||||
|
};
|
||||||
|
|
||||||
|
FileContent: WOString
|
||||||
|
{
|
||||||
|
value = aFileData.description;
|
||||||
|
};
|
||||||
|
|
||||||
|
MainPageLink: WOHyperlink
|
||||||
|
{
|
||||||
|
pageName = "Main";
|
||||||
|
string = "Main Page";
|
||||||
|
};
|
||||||
|
|
||||||
|
Form: WOForm
|
||||||
|
{
|
||||||
|
enctype = "multipart/form-data";
|
||||||
|
};
|
||||||
|
|
||||||
|
SubmitButton: WOSubmitButton
|
||||||
|
{
|
||||||
|
action = submitAction;
|
||||||
|
value = "Submit";
|
||||||
|
};
|
||||||
|
|
|
@ -22,12 +22,8 @@
|
||||||
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
#
|
#
|
||||||
|
|
||||||
include ../../config.mak
|
|
||||||
include $(GNUSTEP_MAKEFILES)/common.make
|
include $(GNUSTEP_MAKEFILES)/common.make
|
||||||
include $(GNUSTEP_MAKEFILES)/Auxiliary/gsweb.make
|
include $(GNUSTEP_MAKEFILES)/Auxiliary/gsweb.make
|
||||||
ifeq ($(GDL2),yes)
|
|
||||||
include $(GNUSTEP_MAKEFILES)/Auxiliary/gdl2.make
|
|
||||||
endif
|
|
||||||
|
|
||||||
GSWAPP_NAME=DynamicElements
|
GSWAPP_NAME=DynamicElements
|
||||||
DynamicElements_HAS_GSWCOMPONENTS=YES
|
DynamicElements_HAS_GSWCOMPONENTS=YES
|
||||||
|
@ -37,7 +33,6 @@ DynamicElements_GSWAPP_INFO_PLIST=Resources/Info-DynamicElements.plist
|
||||||
# The bundle resource files and directories
|
# The bundle resource files and directories
|
||||||
DynamicElements_RESOURCE_FILES = \
|
DynamicElements_RESOURCE_FILES = \
|
||||||
Resources/Info-DynamicElements.plist \
|
Resources/Info-DynamicElements.plist \
|
||||||
Resources/Base.gswd \
|
|
||||||
|
|
||||||
|
|
||||||
# The Objective-C source files to be compiled
|
# The Objective-C source files to be compiled
|
||||||
|
@ -58,29 +53,33 @@ PopUpButton2Page.m \
|
||||||
TextField1Page.m \
|
TextField1Page.m \
|
||||||
CheckBox1Page.m \
|
CheckBox1Page.m \
|
||||||
CheckBox2Page.m \
|
CheckBox2Page.m \
|
||||||
RadioButton1Page.m \
|
RadioButton1Page.m
|
||||||
RadioButton2Page.m \
|
|
||||||
|
|
||||||
DynamicElements_COMPONENTS = \
|
DynamicElements_COMPONENTS = \
|
||||||
Main.gswc \
|
Main.wo \
|
||||||
FileUpload1Page.gswc \
|
FileUpload1Page.wo \
|
||||||
RadioButtonList1Page.gswc \
|
RadioButtonList1Page.wo \
|
||||||
RadioButtonList2Page.gswc \
|
RadioButtonList2Page.wo \
|
||||||
CheckBoxList1Page.gswc \
|
CheckBoxList1Page.wo \
|
||||||
CheckBoxList2Page.gswc \
|
CheckBoxList2Page.wo \
|
||||||
Browser1Page.gswc \
|
Browser1Page.wo \
|
||||||
Browser2Page.gswc \
|
Browser2Page.wo \
|
||||||
PopUpButton1Page.gswc \
|
PopUpButton1Page.wo \
|
||||||
PopUpButton2Page.gswc \
|
PopUpButton2Page.wo \
|
||||||
TextField1Page.gswc \
|
TextField1Page.wo \
|
||||||
CheckBox1Page.gswc \
|
CheckBox1Page.wo \
|
||||||
CheckBox2Page.gswc \
|
CheckBox2Page.wo \
|
||||||
RadioButton1Page.gswc \
|
RadioButton1Page.wo
|
||||||
RadioButton2Page.gswc \
|
|
||||||
|
|
||||||
|
|
||||||
-include Makefile.preamble
|
-include Makefile.preamble
|
||||||
|
|
||||||
include $(GNUSTEP_MAKEFILES)/gswapp.make
|
include $(GNUSTEP_MAKEFILES)/gswapp.make
|
||||||
|
|
||||||
|
ifneq ($(FOUNDATION_LIB),gnu)
|
||||||
|
AUXILIARY_GSW_LIBS = -framework WebObjects -framework WOExtensions
|
||||||
|
else
|
||||||
|
AUXILIARY_GSW_LIBS += -lWebObjects -lWOExtensions
|
||||||
|
endif
|
||||||
|
|
||||||
-include Makefile.postamble
|
-include Makefile.postamble
|
||||||
|
|
|
@ -10,9 +10,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <GSWeb/GSWeb.h>
|
#include <WebObjects/WebObjects.h>
|
||||||
|
|
||||||
@interface Main: GSWComponent
|
@interface Main: WOComponent
|
||||||
{
|
{
|
||||||
id tmpDynamicElement;
|
id tmpDynamicElement;
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,9 +5,9 @@
|
||||||
<body>
|
<body>
|
||||||
<h2>GNUstepWeb Dynamic Elements Testing</h2>
|
<h2>GNUstepWeb Dynamic Elements Testing</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<gsweb name="Repetition">
|
<webobject name="Repetition">
|
||||||
<li><gsweb name="Link"></gsweb> <gsweb name="Comment"></gsweb></li>
|
<li><webobject name="Link"></webobject> <webobject name="Comment"></webobject></li>
|
||||||
</gsweb>
|
</webobject>
|
||||||
</ul>
|
</ul>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
|
@ -9,19 +9,19 @@
|
||||||
* DynamicElements Testing application.
|
* DynamicElements Testing application.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Repetition: GSWRepetition
|
Repetition: WORepetition
|
||||||
{
|
{
|
||||||
item = tmpDynamicElement;
|
item = tmpDynamicElement;
|
||||||
list = application.bundleInfo.dynamicElements;
|
list = application.bundleInfo.dynamicElements;
|
||||||
};
|
};
|
||||||
|
|
||||||
Link: GSWHyperlink
|
Link: WOHyperlink
|
||||||
{
|
{
|
||||||
pageName = tmpDynamicElement.pageName;
|
pageName = tmpDynamicElement.pageName;
|
||||||
string = tmpDynamicElement.label;
|
string = tmpDynamicElement.label;
|
||||||
};
|
};
|
||||||
|
|
||||||
Comment: GSWString
|
Comment: WOString
|
||||||
{
|
{
|
||||||
value = tmpDynamicElement.comment;
|
value = tmpDynamicElement.comment;
|
||||||
};
|
};
|
|
@ -1,25 +0,0 @@
|
||||||
#include "Base"
|
|
||||||
|
|
||||||
APopUpButton: GSWPopUpButton
|
|
||||||
{
|
|
||||||
list = application.bundleInfo.PopUpButton.list;
|
|
||||||
item = anItem;
|
|
||||||
value = anItem.value;
|
|
||||||
displayString = anItem.label;
|
|
||||||
selection = selectedItem;
|
|
||||||
selectedValue = selectedValue;
|
|
||||||
selectionValue = selectedValue;
|
|
||||||
noSelectionString = "Nothing Selected";
|
|
||||||
name = "POPNAME";
|
|
||||||
};
|
|
||||||
|
|
||||||
SelectedItem: GSWString
|
|
||||||
{
|
|
||||||
value = selectedItem;
|
|
||||||
};
|
|
||||||
|
|
||||||
SelectedValue: GSWString
|
|
||||||
{
|
|
||||||
value = selectedValue;
|
|
||||||
};
|
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>GSWPopUpButton Test 1</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h2>GSWPopUpButton Test 1 (With value)</h2>
|
|
||||||
<br/>
|
|
||||||
Selected item : <gsweb name="SelectedItem"></gsweb><br/>
|
|
||||||
Selected value : <gsweb name="SelectedValue"></gsweb><br/>
|
|
||||||
<br/>
|
|
||||||
<gsweb name="Form">
|
|
||||||
<gsweb name="APopUpButton"></gsweb>
|
|
||||||
<gsweb name="SubmitButton"></gsweb>
|
|
||||||
</gsweb>
|
|
||||||
<hr/>
|
|
||||||
<gsweb name="MainPageLink"></gsweb>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -28,7 +28,7 @@
|
||||||
</license>
|
</license>
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#include <GSWeb/GSWeb.h>
|
#include <WebObjects/WebObjects.h>
|
||||||
#include "BasePage.h"
|
#include "BasePage.h"
|
||||||
#include "PopUpButton1Page.h"
|
#include "PopUpButton1Page.h"
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>GSWPopUpButton Test 1</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h2>GSWPopUpButton Test 1 (With value)</h2>
|
||||||
|
<br/>
|
||||||
|
Selected item : <webobject name="SelectedItem"></webobject><br/>
|
||||||
|
Selected value : <webobject name="SelectedValue"></webobject><br/>
|
||||||
|
<br/>
|
||||||
|
<webobject name="Form">
|
||||||
|
<webobject name="APopUpButton"></webobject>
|
||||||
|
<webobject name="SubmitButton"></webobject>
|
||||||
|
</webobject>
|
||||||
|
<hr/>
|
||||||
|
<webobject name="MainPageLink"></webobject>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,39 @@
|
||||||
|
|
||||||
|
APopUpButton: WOPopUpButton
|
||||||
|
{
|
||||||
|
list = application.bundleInfo.PopUpButton.list;
|
||||||
|
item = anItem;
|
||||||
|
value = anItem.value;
|
||||||
|
displayString = anItem.label;
|
||||||
|
selection = selectedItem;
|
||||||
|
noSelectionString = "Nothing Selected";
|
||||||
|
name = "POPNAME";
|
||||||
|
};
|
||||||
|
|
||||||
|
SelectedItem: WOString
|
||||||
|
{
|
||||||
|
value = selectedItem;
|
||||||
|
};
|
||||||
|
|
||||||
|
SelectedValue: WOString
|
||||||
|
{
|
||||||
|
value = selectedItem.value;
|
||||||
|
};
|
||||||
|
|
||||||
|
MainPageLink: WOHyperlink
|
||||||
|
{
|
||||||
|
pageName = "Main";
|
||||||
|
string = "Main Page";
|
||||||
|
};
|
||||||
|
|
||||||
|
Form: WOForm
|
||||||
|
{
|
||||||
|
enctype = "multipart/form-data";
|
||||||
|
};
|
||||||
|
|
||||||
|
SubmitButton: WOSubmitButton
|
||||||
|
{
|
||||||
|
action = submitAction;
|
||||||
|
value = "Submit";
|
||||||
|
};
|
||||||
|
|
|
@ -1,24 +0,0 @@
|
||||||
#include "Base"
|
|
||||||
|
|
||||||
APopUpButton: GSWPopUpButton
|
|
||||||
{
|
|
||||||
list = application.bundleInfo.PopUpButton.list;
|
|
||||||
item = anItem;
|
|
||||||
displayString = anItem.label;
|
|
||||||
selection = selectedItem;
|
|
||||||
selectedValue = selectedValue;
|
|
||||||
selectionValue = selectedValue;
|
|
||||||
noSelectionString = "Nothing Selected";
|
|
||||||
name = "POPNAME";
|
|
||||||
};
|
|
||||||
|
|
||||||
SelectedItem: GSWString
|
|
||||||
{
|
|
||||||
value = selectedItem;
|
|
||||||
};
|
|
||||||
|
|
||||||
SelectedValue: GSWString
|
|
||||||
{
|
|
||||||
value = selectedValue;
|
|
||||||
};
|
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>GSWPopUpButton Test 2</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h2>GSWPopUpButton Test 2 (Without value: AutoValue)</h2>
|
|
||||||
<br/>
|
|
||||||
Selected item : <gsweb name="SelectedItem"></gsweb><br/>
|
|
||||||
Selected value : <gsweb name="SelectedValue"></gsweb><br/>
|
|
||||||
<br/>
|
|
||||||
<gsweb name="Form">
|
|
||||||
<gsweb name="APopUpButton"></gsweb>
|
|
||||||
<gsweb name="SubmitButton"></gsweb>
|
|
||||||
</gsweb>
|
|
||||||
<hr/>
|
|
||||||
<gsweb name="MainPageLink"></gsweb>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -28,7 +28,7 @@
|
||||||
</license>
|
</license>
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#include <GSWeb/GSWeb.h>
|
#include <WebObjects/WebObjects.h>
|
||||||
#include "BasePage.h"
|
#include "BasePage.h"
|
||||||
#include "PopUpButton2Page.h"
|
#include "PopUpButton2Page.h"
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>GSWPopUpButton Test 2</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h2>GSWPopUpButton Test 2 (Without value: AutoValue)</h2>
|
||||||
|
<br/>
|
||||||
|
Selected item : <webobject name="SelectedItem"></webobject><br/>
|
||||||
|
Selected value : <webobject name="SelectedValue"></webobject><br/>
|
||||||
|
<br/>
|
||||||
|
<webobject name="Form">
|
||||||
|
<webobject name="APopUpButton"></webobject>
|
||||||
|
<webobject name="SubmitButton"></webobject>
|
||||||
|
</webobject>
|
||||||
|
<hr/>
|
||||||
|
<webobject name="MainPageLink"></webobject>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,38 @@
|
||||||
|
|
||||||
|
APopUpButton: WOPopUpButton
|
||||||
|
{
|
||||||
|
list = application.bundleInfo.PopUpButton.list;
|
||||||
|
item = anItem;
|
||||||
|
displayString = anItem.label;
|
||||||
|
selection = selectedItem;
|
||||||
|
noSelectionString = "Nothing Selected";
|
||||||
|
name = "POPNAME";
|
||||||
|
};
|
||||||
|
|
||||||
|
SelectedItem: WOString
|
||||||
|
{
|
||||||
|
value = selectedItem;
|
||||||
|
};
|
||||||
|
|
||||||
|
SelectedValue: WOString
|
||||||
|
{
|
||||||
|
value = selectedItem.value;
|
||||||
|
};
|
||||||
|
|
||||||
|
MainPageLink: WOHyperlink
|
||||||
|
{
|
||||||
|
pageName = "Main";
|
||||||
|
string = "Main Page";
|
||||||
|
};
|
||||||
|
|
||||||
|
Form: WOForm
|
||||||
|
{
|
||||||
|
enctype = "multipart/form-data";
|
||||||
|
};
|
||||||
|
|
||||||
|
SubmitButton: WOSubmitButton
|
||||||
|
{
|
||||||
|
action = submitAction;
|
||||||
|
value = "Submit";
|
||||||
|
};
|
||||||
|
|
|
@ -1,46 +0,0 @@
|
||||||
#include "Base"
|
|
||||||
|
|
||||||
|
|
||||||
RadioButton1: GSWRadioButton
|
|
||||||
{
|
|
||||||
value = "MyValue1";
|
|
||||||
selection = value;
|
|
||||||
checked = isChecked1;
|
|
||||||
name = "RadioButton";
|
|
||||||
};
|
|
||||||
|
|
||||||
RadioButton2: GSWRadioButton
|
|
||||||
{
|
|
||||||
value = "MyValue2";
|
|
||||||
selection = value;
|
|
||||||
checked = isChecked2;
|
|
||||||
name = "RadioButton";
|
|
||||||
};
|
|
||||||
|
|
||||||
RadioButton3: GSWRadioButton
|
|
||||||
{
|
|
||||||
value = "MyValue3";
|
|
||||||
selection = value;
|
|
||||||
checked = isChecked3;
|
|
||||||
name = "RadioButton";
|
|
||||||
};
|
|
||||||
|
|
||||||
CheckValue: GSWString
|
|
||||||
{
|
|
||||||
value = value;
|
|
||||||
};
|
|
||||||
|
|
||||||
IsCheckedValue1: GSWString
|
|
||||||
{
|
|
||||||
value = isChecked1;
|
|
||||||
};
|
|
||||||
|
|
||||||
IsCheckedValue2: GSWString
|
|
||||||
{
|
|
||||||
value = isChecked2;
|
|
||||||
};
|
|
||||||
|
|
||||||
IsCheckedValue3: GSWString
|
|
||||||
{
|
|
||||||
value = isChecked3;
|
|
||||||
};
|
|
|
@ -1,22 +0,0 @@
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>GSWRadioButton Test 1</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h2>GSWRadioButton Test 1</h2>
|
|
||||||
<br/>
|
|
||||||
Value : <gsweb name="CheckValue"></gsweb><br/>
|
|
||||||
Is Checked 1 : <gsweb name="IsCheckedValue1"></gsweb><br/>
|
|
||||||
Is Checked 2 : <gsweb name="IsCheckedValue2"></gsweb><br/>
|
|
||||||
Is Checked 3 : <gsweb name="IsCheckedValue3"></gsweb><br/>
|
|
||||||
<br/>
|
|
||||||
<gsweb name="Form">
|
|
||||||
<gsweb name="RadioButton1"></gsweb>Check Me 1 !
|
|
||||||
<gsweb name="RadioButton2"></gsweb>Check Me 2 !
|
|
||||||
<gsweb name="RadioButton3"></gsweb>Check Me 3 !
|
|
||||||
<gsweb name="SubmitButton"></gsweb>
|
|
||||||
</gsweb>
|
|
||||||
<hr/>
|
|
||||||
<gsweb name="MainPageLink"></gsweb>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -28,7 +28,7 @@
|
||||||
</license>
|
</license>
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#include <GSWeb/GSWeb.h>
|
#include <WebObjects/WebObjects.h>
|
||||||
#include "BasePage.h"
|
#include "BasePage.h"
|
||||||
#include "RadioButton1Page.h"
|
#include "RadioButton1Page.h"
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>GSWRadioButton Test 1</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h2>GSWRadioButton Test 1</h2>
|
||||||
|
<br/>
|
||||||
|
Is Checked 1 : <webobject name="IsCheckedValue1"></webobject><br/>
|
||||||
|
Is Checked 2 : <webobject name="IsCheckedValue2"></webobject><br/>
|
||||||
|
Is Checked 3 : <webobject name="IsCheckedValue3"></webobject><br/>
|
||||||
|
<br/>
|
||||||
|
<webobject name="Form">
|
||||||
|
<webobject name="RadioButton1"></webobject>Check Me 1 !
|
||||||
|
<webobject name="RadioButton2"></webobject>Check Me 2 !
|
||||||
|
<webobject name="RadioButton3"></webobject>Check Me 3 !
|
||||||
|
<webobject name="SubmitButton"></webobject>
|
||||||
|
</webobject>
|
||||||
|
<hr/>
|
||||||
|
<webobject name="MainPageLink"></webobject>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,54 @@
|
||||||
|
|
||||||
|
|
||||||
|
RadioButton1: WORadioButton
|
||||||
|
{
|
||||||
|
selection = value;
|
||||||
|
checked = isChecked1;
|
||||||
|
name = "RadioButton";
|
||||||
|
};
|
||||||
|
|
||||||
|
RadioButton2: WORadioButton
|
||||||
|
{
|
||||||
|
selection = value;
|
||||||
|
checked = isChecked2;
|
||||||
|
name = "RadioButton";
|
||||||
|
};
|
||||||
|
|
||||||
|
RadioButton3: WORadioButton
|
||||||
|
{
|
||||||
|
selection = value;
|
||||||
|
checked = isChecked3;
|
||||||
|
name = "RadioButton";
|
||||||
|
};
|
||||||
|
|
||||||
|
IsCheckedValue1: WOString
|
||||||
|
{
|
||||||
|
value = isChecked1;
|
||||||
|
};
|
||||||
|
|
||||||
|
IsCheckedValue2: WOString
|
||||||
|
{
|
||||||
|
value = isChecked2;
|
||||||
|
};
|
||||||
|
|
||||||
|
IsCheckedValue3: WOString
|
||||||
|
{
|
||||||
|
value = isChecked3;
|
||||||
|
};
|
||||||
|
MainPageLink: WOHyperlink
|
||||||
|
{
|
||||||
|
pageName = "Main";
|
||||||
|
string = "Main Page";
|
||||||
|
};
|
||||||
|
|
||||||
|
Form: WOForm
|
||||||
|
{
|
||||||
|
enctype = "multipart/form-data";
|
||||||
|
};
|
||||||
|
|
||||||
|
SubmitButton: WOSubmitButton
|
||||||
|
{
|
||||||
|
action = submitAction;
|
||||||
|
value = "Submit";
|
||||||
|
};
|
||||||
|
|
|
@ -1,43 +0,0 @@
|
||||||
#include "Base"
|
|
||||||
|
|
||||||
|
|
||||||
RadioButton1: GSWRadioButton
|
|
||||||
{
|
|
||||||
selection = value;
|
|
||||||
checked = isChecked1;
|
|
||||||
name = "RadioButton";
|
|
||||||
};
|
|
||||||
|
|
||||||
RadioButton2: GSWRadioButton
|
|
||||||
{
|
|
||||||
selection = value;
|
|
||||||
checked = isChecked2;
|
|
||||||
name = "RadioButton";
|
|
||||||
};
|
|
||||||
|
|
||||||
RadioButton3: GSWRadioButton
|
|
||||||
{
|
|
||||||
selection = value;
|
|
||||||
checked = isChecked3;
|
|
||||||
name = "RadioButton";
|
|
||||||
};
|
|
||||||
|
|
||||||
CheckValue: GSWString
|
|
||||||
{
|
|
||||||
value = value;
|
|
||||||
};
|
|
||||||
|
|
||||||
IsCheckedValue1: GSWString
|
|
||||||
{
|
|
||||||
value = isChecked1;
|
|
||||||
};
|
|
||||||
|
|
||||||
IsCheckedValue2: GSWString
|
|
||||||
{
|
|
||||||
value = isChecked2;
|
|
||||||
};
|
|
||||||
|
|
||||||
IsCheckedValue3: GSWString
|
|
||||||
{
|
|
||||||
value = isChecked3;
|
|
||||||
};
|
|
|
@ -1,22 +0,0 @@
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>GSWRadioButton Test 2</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h2>GSWRadioButton Test 2</h2>
|
|
||||||
<br/>
|
|
||||||
Value : <gsweb name="CheckValue"></gsweb><br/>
|
|
||||||
Is Checked 1 : <gsweb name="IsCheckedValue1"></gsweb><br/>
|
|
||||||
Is Checked 2 : <gsweb name="IsCheckedValue2"></gsweb><br/>
|
|
||||||
Is Checked 3 : <gsweb name="IsCheckedValue3"></gsweb><br/>
|
|
||||||
<br/>
|
|
||||||
<gsweb name="Form">
|
|
||||||
<gsweb name="RadioButton1"></gsweb>Check Me 1 !
|
|
||||||
<gsweb name="RadioButton2"></gsweb>Check Me 2 !
|
|
||||||
<gsweb name="RadioButton3"></gsweb>Check Me 3 !
|
|
||||||
<gsweb name="SubmitButton"></gsweb>
|
|
||||||
</gsweb>
|
|
||||||
<hr/>
|
|
||||||
<gsweb name="MainPageLink"></gsweb>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,44 +0,0 @@
|
||||||
/** RadioButton2Page.h - <title>GSWeb Testing: Class RadioButton2Page</title>
|
|
||||||
|
|
||||||
Copyright (C) 2002 Free Software Foundation, Inc.
|
|
||||||
|
|
||||||
Written by: Manuel Guesdon <mguesdon@orange-concept.com>
|
|
||||||
Date: Dec 2002
|
|
||||||
|
|
||||||
$Revision$
|
|
||||||
$Date$
|
|
||||||
$Id$
|
|
||||||
|
|
||||||
This file is part of the GNUstep Web Library.
|
|
||||||
|
|
||||||
<license>
|
|
||||||
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.
|
|
||||||
</license>
|
|
||||||
**/
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef _RadioButton2Page_h__
|
|
||||||
#define _RadioButton2Page_h__
|
|
||||||
|
|
||||||
@interface RadioButton2Page: BasePage
|
|
||||||
{
|
|
||||||
id _value;
|
|
||||||
id _isChecked1;
|
|
||||||
id _isChecked2;
|
|
||||||
id _isChecked3;
|
|
||||||
}
|
|
||||||
@end
|
|
||||||
|
|
||||||
#endif //_RadioButton2Page_h__
|
|
|
@ -1,39 +0,0 @@
|
||||||
/** RadioButton2Page.m - <title>GSWeb Testing: Class RadioButton2Page</title>
|
|
||||||
|
|
||||||
Copyright (C) 2002 Free Software Foundation, Inc.
|
|
||||||
|
|
||||||
Written by: Manuel Guesdon <mguesdon@orange-concept.com>
|
|
||||||
Date: Dec 2002
|
|
||||||
|
|
||||||
$Revision$
|
|
||||||
$Date$
|
|
||||||
$Id$
|
|
||||||
|
|
||||||
This file is part of the GNUstep Web Library.
|
|
||||||
|
|
||||||
<license>
|
|
||||||
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.
|
|
||||||
</license>
|
|
||||||
**/
|
|
||||||
|
|
||||||
#include <GSWeb/GSWeb.h>
|
|
||||||
#include "BasePage.h"
|
|
||||||
#include "RadioButton2Page.h"
|
|
||||||
|
|
||||||
|
|
||||||
@implementation RadioButton2Page
|
|
||||||
|
|
||||||
@end
|
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
#include "Base"
|
|
||||||
|
|
||||||
ARadioButtonList: GSWRadioButtonList
|
|
||||||
{
|
|
||||||
list = application.bundleInfo.RadioButtonList.list;
|
|
||||||
item = anItem;
|
|
||||||
value = anItem.value;
|
|
||||||
displayString = anItem.label;
|
|
||||||
selection = selectedItem;
|
|
||||||
name = "RADIONAME";
|
|
||||||
};
|
|
||||||
|
|
||||||
SelectedItem: GSWString
|
|
||||||
{
|
|
||||||
value = selectedItem;
|
|
||||||
};
|
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>GSWRadioButtonList Test 1</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h2>GSWRadioButtonList Test 1 (With value)</h2>
|
|
||||||
<br/>
|
|
||||||
Selected item : <gsweb name="SelectedItem"></gsweb><br/>
|
|
||||||
<br/>
|
|
||||||
<gsweb name="Form">
|
|
||||||
<gsweb name="ARadioButtonList"></gsweb>
|
|
||||||
<gsweb name="SubmitButton"></gsweb>
|
|
||||||
</gsweb>
|
|
||||||
<hr/>
|
|
||||||
<gsweb name="MainPageLink"></gsweb>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -28,7 +28,7 @@
|
||||||
</license>
|
</license>
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#include <GSWeb/GSWeb.h>
|
#include <WebObjects/WebObjects.h>
|
||||||
#include "BasePage.h"
|
#include "BasePage.h"
|
||||||
#include "RadioButtonList1Page.h"
|
#include "RadioButtonList1Page.h"
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>GSWRadioButtonList Test 1</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h2>GSWRadioButtonList Test 1 (With value)</h2>
|
||||||
|
<br/>
|
||||||
|
Selected item : <webobject name="SelectedItem"></webobject><br/>
|
||||||
|
<br/>
|
||||||
|
<webobject name="Form">
|
||||||
|
<webobject name="ARadioButtonList"></webobject>
|
||||||
|
<webobject name="SubmitButton"></webobject>
|
||||||
|
</webobject>
|
||||||
|
<hr/>
|
||||||
|
<webobject name="MainPageLink"></webobject>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,33 @@
|
||||||
|
|
||||||
|
ARadioButtonList: WORadioButtonList
|
||||||
|
{
|
||||||
|
list = application.bundleInfo.RadioButtonList.list;
|
||||||
|
item = anItem;
|
||||||
|
value = anItem.value;
|
||||||
|
displayString = anItem.label;
|
||||||
|
selection = selectedItem;
|
||||||
|
name = "RADIONAME";
|
||||||
|
};
|
||||||
|
|
||||||
|
SelectedItem: WOString
|
||||||
|
{
|
||||||
|
value = selectedItem;
|
||||||
|
};
|
||||||
|
|
||||||
|
MainPageLink: WOHyperlink
|
||||||
|
{
|
||||||
|
pageName = "Main";
|
||||||
|
string = "Main Page";
|
||||||
|
};
|
||||||
|
|
||||||
|
Form: WOForm
|
||||||
|
{
|
||||||
|
enctype = "multipart/form-data";
|
||||||
|
};
|
||||||
|
|
||||||
|
SubmitButton: WOSubmitButton
|
||||||
|
{
|
||||||
|
action = submitAction;
|
||||||
|
value = "Submit";
|
||||||
|
};
|
||||||
|
|
|
@ -1,16 +0,0 @@
|
||||||
#include "Base"
|
|
||||||
|
|
||||||
ARadioButtonList: GSWRadioButtonList
|
|
||||||
{
|
|
||||||
list = application.bundleInfo.RadioButtonList.list;
|
|
||||||
item = anItem;
|
|
||||||
displayString = anItem.label;
|
|
||||||
selection = selectedItem;
|
|
||||||
name = "RADIONAME";
|
|
||||||
};
|
|
||||||
|
|
||||||
SelectedItem: GSWString
|
|
||||||
{
|
|
||||||
value = selectedItem;
|
|
||||||
};
|
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>GSWRadioButtonList Test 2</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h2>GSWRadioButtonList Test 2 (Without value: AutoValue)</h2>
|
|
||||||
<br/>
|
|
||||||
Selected item : <gsweb name="SelectedItem"></gsweb><br/>
|
|
||||||
<br/>
|
|
||||||
<gsweb name="Form">
|
|
||||||
<gsweb name="ARadioButtonList"></gsweb>
|
|
||||||
<gsweb name="SubmitButton"></gsweb>
|
|
||||||
</gsweb>
|
|
||||||
<hr/>
|
|
||||||
<gsweb name="MainPageLink"></gsweb>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -28,7 +28,7 @@
|
||||||
</license>
|
</license>
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#include <GSWeb/GSWeb.h>
|
#include <WebObjects/WebObjects.h>
|
||||||
#include "BasePage.h"
|
#include "BasePage.h"
|
||||||
#include "RadioButtonList2Page.h"
|
#include "RadioButtonList2Page.h"
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>GSWRadioButtonList Test 2</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h2>GSWRadioButtonList Test 2 (Without value: AutoValue)</h2>
|
||||||
|
<br/>
|
||||||
|
Selected item : <webobject name="SelectedItem"></webobject><br/>
|
||||||
|
<br/>
|
||||||
|
<webobject name="Form">
|
||||||
|
<webobject name="ARadioButtonList"></webobject>
|
||||||
|
<webobject name="SubmitButton"></webobject>
|
||||||
|
</webobject>
|
||||||
|
<hr/>
|
||||||
|
<webobject name="MainPageLink"></webobject>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,32 @@
|
||||||
|
|
||||||
|
ARadioButtonList: WORadioButtonList
|
||||||
|
{
|
||||||
|
list = application.bundleInfo.RadioButtonList.list;
|
||||||
|
item = anItem;
|
||||||
|
displayString = anItem.label;
|
||||||
|
selection = selectedItem;
|
||||||
|
name = "RADIONAME";
|
||||||
|
};
|
||||||
|
|
||||||
|
SelectedItem: WOString
|
||||||
|
{
|
||||||
|
value = selectedItem;
|
||||||
|
};
|
||||||
|
|
||||||
|
MainPageLink: WOHyperlink
|
||||||
|
{
|
||||||
|
pageName = "Main";
|
||||||
|
string = "Main Page";
|
||||||
|
};
|
||||||
|
|
||||||
|
Form: WOForm
|
||||||
|
{
|
||||||
|
enctype = "multipart/form-data";
|
||||||
|
};
|
||||||
|
|
||||||
|
SubmitButton: WOSubmitButton
|
||||||
|
{
|
||||||
|
action = submitAction;
|
||||||
|
value = "Submit";
|
||||||
|
};
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
MainPageLink: GSWHyperlink
|
|
||||||
{
|
|
||||||
pageName = "Main";
|
|
||||||
string = "Main Page";
|
|
||||||
};
|
|
||||||
|
|
||||||
Form: GSWForm
|
|
||||||
{
|
|
||||||
enctype = "multipart/form-data";
|
|
||||||
};
|
|
||||||
|
|
||||||
SubmitButton: GSWSubmitButton
|
|
||||||
{
|
|
||||||
action = submitAction;
|
|
||||||
value = "Submit";
|
|
||||||
};
|
|
||||||
|
|
|
@ -78,11 +78,6 @@
|
||||||
pageName = "RadioButton1Page";
|
pageName = "RadioButton1Page";
|
||||||
label = "RadioButton 1";
|
label = "RadioButton 1";
|
||||||
comment = "GSWRadioButton Test 1";
|
comment = "GSWRadioButton Test 1";
|
||||||
},
|
|
||||||
{
|
|
||||||
pageName = "RadioButton2Page";
|
|
||||||
label = "RadioButton 2";
|
|
||||||
comment = "GSWRadioButton Test 2";
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
RadioButtonList = {
|
RadioButtonList = {
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
#include "Base"
|
|
||||||
|
|
||||||
ATextField: GSWTextField
|
|
||||||
{
|
|
||||||
value = aString;
|
|
||||||
};
|
|
||||||
|
|
||||||
EnteredString: GSWString
|
|
||||||
{
|
|
||||||
value = aString;
|
|
||||||
};
|
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>GSWTextField Test 1</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h2>GSWTextField Test 1</h2>
|
|
||||||
<br/>
|
|
||||||
Entered String : <gsweb name="EnteredString"></gsweb><br/>
|
|
||||||
<br/>
|
|
||||||
<gsweb name="Form">
|
|
||||||
<gsweb name="ATextField"></gsweb>
|
|
||||||
<gsweb name="SubmitButton"></gsweb>
|
|
||||||
</gsweb>
|
|
||||||
<hr/>
|
|
||||||
<gsweb name="MainPageLink"></gsweb>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -28,7 +28,7 @@
|
||||||
</license>
|
</license>
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#include <GSWeb/GSWeb.h>
|
#include <WebObjects/WebObjects.h>
|
||||||
#include "BasePage.h"
|
#include "BasePage.h"
|
||||||
#include "TextField1Page.h"
|
#include "TextField1Page.h"
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>GSWTextField Test 1</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h2>GSWTextField Test 1</h2>
|
||||||
|
<br/>
|
||||||
|
Entered String : <webobject name="EnteredString"></webobject><br/>
|
||||||
|
<br/>
|
||||||
|
<webobject name="Form">
|
||||||
|
<webobject name="ATextField"></webobject>
|
||||||
|
<webobject name="SubmitButton"></webobject>
|
||||||
|
</webobject>
|
||||||
|
<hr/>
|
||||||
|
<webobject name="MainPageLink"></webobject>
|
||||||
|
</body>
|
||||||
|
</html>
|
28
Testing/DynamicElements/TextField1Page.wo/TextField1Page.wod
Normal file
28
Testing/DynamicElements/TextField1Page.wo/TextField1Page.wod
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
|
||||||
|
ATextField: WOTextField
|
||||||
|
{
|
||||||
|
value = aString;
|
||||||
|
};
|
||||||
|
|
||||||
|
EnteredString: WOString
|
||||||
|
{
|
||||||
|
value = aString;
|
||||||
|
};
|
||||||
|
|
||||||
|
MainPageLink: WOHyperlink
|
||||||
|
{
|
||||||
|
pageName = "Main";
|
||||||
|
string = "Main Page";
|
||||||
|
};
|
||||||
|
|
||||||
|
Form: WOForm
|
||||||
|
{
|
||||||
|
enctype = "multipart/form-data";
|
||||||
|
};
|
||||||
|
|
||||||
|
SubmitButton: WOSubmitButton
|
||||||
|
{
|
||||||
|
action = submitAction;
|
||||||
|
value = "Submit";
|
||||||
|
};
|
||||||
|
|
Loading…
Reference in a new issue