Re: WOComponent - Sub-Component Form Design Question
Re: WOComponent - Sub-Component Form Design Question
- Subject: Re: WOComponent - Sub-Component Form Design Question
- From: Mark Morris <email@hidden>
- Date: Wed, 16 Aug 2006 13:23:31 -0500
Hello,
On Aug 16, 2006, at 1:06 PM, Baiss Eric Magnusson wrote:
I had a <footer> Sub-Component on all my pages and I decided I had
to have a
<onchange> "submit();"
as a binding for a WOPopup in the Sub-Component.
I'm not sure what that will do as typed. submit() is a method on the
form, not the document, so I would use "this.form.submit();"
Since I had the <footer> inside a WOForm for all the enclosing
WOComponents, I will now have to go back and change all the
WOComponents as I now get conflicts with the super WOForm enclosing
the footer Sub-Component.
What kind of conflicts?
So my question is,
"Do you always put Sub-Components, which may have a <submit();>
now or in the future, inside their own WOForm?
to avoid this problem.
No, sometimes they need to be in the parent form. Only values in the
form that is submitted will be returned to the app, so you have to
group them based on the particular needs of the page. (Does that
make sense?)
----
Baiss Eric Magnusson
<http://www.Track-Your-Finances.com>
<http://www.CascadeWebDesign.com>
Perhaps you could explain what's happening in a little more detail?
Regards,
Mark
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden