Re: WOPupUpButton Question

Joshua Marker <[email protected]>
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
I think he wanted an update without submission, or automatic  
submission. (I could be mistaken.)

You could use javascript to submit the form onSelect.



On 6 Jul  2006, at 13:33, David LeBer wrote:

>
> On 6-Jul-06, at 4:16 PM, Jeff Dunnett wrote:
>
> > Hello Everyone,
> >
> > I was wondering if anyone out there could give me a bit of a hand.
> > I have a WOPopUpButton that has a list bound to it.  The button has
> > an object for the binding item called aEvent and a object for the
> > selection binding called aSelectedEvent.  I also have various
> > strings on the component with various fields from aSelectedEvent
> > bound to them.  I was wondering if there is any way once a user
> > selects an option from the WOPopUpButton to call a method that will
> > updated the strings on the page in addition to doing some other
> > things behind the scenes?
> >
> > Thanks for you help in advance?
> >
> > Regards,
> > Jeff
>
> Change your aSelectedEvent ivar to a setter/getter pair:
>
> private Object theSelectedEvent;
>
> public Object aSelectedEvent() {
>         return theSelectedEvent;
> }
>
> public void setASelectedEvent(Object event) {
>         theSelectedEvent = event;
>         // Do some stuff here
> }
>
> --
> ;david
>
> --
> David LeBer
> Codeferous Software
> 'co-defer-ous' adj. producing or containing code
> site:   http://www.codeferous.com
> blog: http://david.codeferous.com
>
>
>
>
>
> _______________________________________________
> WebObjects-dev mailing list
> [email protected]
> http://www.omnigroup.com/mailman/listinfo/webobjects-dev

_______________________________________________
WebObjects-dev mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/webobjects-dev
PGP.sig (application/pgp-signature, 513 B) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.