2007/12/15, Kevin Windham <[EMAIL PROTECTED]>:
>
>
> On Dec 14, 2007, at 11:08 AM, Kevin Windham wrote:
>
> > I have a popup menu inside WORepetition which has an iterator
> > object as it's item binding. The popup has a displayString binding.
> > I want the displayString to be stored in a property of the
> > repetitions iterator item. Everything displays properly but I
> > always get null in the iterator's string property when submitting
> > the form.  I think it might have something to do with not setting
> > my bindings right, but it seems like it should work.
> >
> > I have selectedValue bound to iterator.stringProperty.
>
> I have figured out a way around this, but I'm confused about why I
> need to do this. I think I am not understanding how WOPopups are
> supposed to work or am just confused about what the bindings mean.
>
> What I ended up doing was using the selection binding and not the
> selectedValue binding. All I really needed was to get the string that
> displayed on the popup into a variable. So even though WO didn't
> complain when I used selectedValue, it always gave me null.


I changed my binding to selection and then got an error message that
> pointed me in the right direction. What WO wanted to do was give me
> an object back from the popup. I kind of knew that was what selection
> was for and was why I wanted to use the selectedValue in the first
> place. I decided not to fight with it and took the object, pulled out
> the displayString from it and put it into the variable I was trying
> to bind in the first place.


Sorry, but I don't understand what kind of object did you bind to the item
binding. Was a java.util.Iterator instance?

Is there an easier way to do this, or is this just what WO does so it
> can handle a more generic case based on objects?
>
> Regards,
> Kevin
> _______________________________________________
> 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/ildenae%40gmail.com
>
> This email sent to [EMAIL PROTECTED]
>



-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
"advertising", "can't log in", "power switch" and "what backup?"
--Alistair Young
 _______________________________________________
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