[Seaside] trouble with submit buttons

Mart-Mari Breedt breedt_m at aircom.co.za
Tue Aug 2 11:19:36 CEST 2005


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/6f98098d/attachment-0001.htm


More information about the Seaside mailing list