[Seaside] trouble with submit buttons
Mart-Mari Breedt
breedt_m at aircom.co.za
Tue Aug 2 15:25:40 CEST 2005
I figured it out. It is the classical form inside form problem. The
parent component had a form tag enclosing the contents.
Thanks,
Mart-Mari
_____
From: Mart-Mari Breedt
Sent: 02 Augustus 2005 11:20
To: The Squeak Enterprise Aubergines Server - general discussion.
Subject: [Seaside] trouble with submit buttons
Hi,
I have a child component that can populate a list containing various
items. The rendering selectors look something like this:
html form: [
html
text: 'Select value';
space;
selectFromList: items asArray
selected: items asArray first
callback: [:value |
items add: value.
];
space;
submitButtonWithAction: [] text:
'Add'.
]
Or
html form: [
html
textInputWithValue: 'None'
callback: [:value |
(value isValid)
ifTrue: [
items add: value.
]
ifFalse: [
self inform: 'The value you have entered is not valid.' ]
];
submitButtonWithAction: [] text:
'Add'
]
I need to include the submit button in this fashion, since the callback
doesn't take place until the submit button has been clicked.
On its own this component works fine, but as soon as I make it part of a
parent component by calling "html render: component" on it, clicking on
the submit button causes the whole website to expiry and return to
start.
What am I doing wrong?
Thanks,
Mart-Mari
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20050802/941b6b4d/attachment.htm
More information about the Seaside
mailing list