On 25-Oct-06, at 4:35 PM, Chip Myers wrote:

Mark: Thanks for your reply. I was able to get the setItemSelected () method to execute. I have one more issue, as follows:

Basically, the WOCheckBox is embedded in a WORepetition. These are part of one page, let's call it Display.wo. Display.wo the functionality of showing a list of individual names, with checkboxes appearing beside them.

___________________________________________________________________
Display.wo

CheckBox 1         Individual 1
CheckBox 2         Individual 2
CheckBox 3         Individual 3
etc....
____________________________________________________________________


Display.wo is then called from a separate WebObjects file, let's call it Edit.wo. This is done for the purpose of generating a nice scrolling bar to help navigate through the list. Edit.wo offers several modfication buttons... Edit, Delete, Add.

____________________________________________________________________
Edit.wo

    Please search for your individual ___TEXTBOX__________

********************************************************************** *************************
Display.wo

CheckBox 1         Individual 1
CheckBox 2         Individual 2
CheckBox 3         Individual 3
etc....


********************************************************************** ***********************

EditButton      DeleteButton     AddButton

_____________________________________________________________________

The problem lies here. Clicking edit, delete, or add... will not submit the form for Display.wo, since they are part of a separate .wo file. Instead of I've added an onClick attribute to my WOCheckBox, which successfully is able to invoke the setItemSelected() method.... but only when it is checked (not when unchecked). How do I call setItem Selected() when unchecking a WOCheckBox? Or, is there a way to submit an inner page, by clicking a button from the outer page?

Move your WOForm to the Edit.wo component so it wraps both the WORepetition *and* the edit/add/delete buttons.

You make repeated mention of an onClick binding. What would that look like? onClick is a javascript hook, so unless you are doing something funky, it is only going to have an effect in the clients browser. It's not going to be able to call server side methods unless you are using AJAX.

--
;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site:   http://www.codeferous.com
blog: http://david.codeferous.com
--
Toronto Area Cocoa / WebObjects developers group:
http://www.tacow.org


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to