Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem in using WOConditional with in a WORepitition



 
Hi Group,

I have a component , which have couple of WODynamic emlements, the page looks like as shown below:

Form

  Popup Button       Submit Button

  Table
     Repitition
     TR
        TD
              WO Text wrapped in a WO Conditional
        End of TD
     End Of TR
  End Of Table
End Of Form

The list binding of Popup in the top has following values ("Text & Graphic", "Only Graphic" and "Only Text").

1) Now when the user selects "Text & Graphic" in the drop down and submits form using the submit button beside the dropdown as shown above, the WO Conditional gets satisfied and WO Text in that is shown to the user.

2) The value binding of the WO Text is binded using the object which is binded to the "item" binding of WO Repitition (lets say if I have binded students list to "list" binding of repitition and student variable to "item" binding then the "value" binding for WO Text will be " student.description").

Now since the WO Conditional got satisfied the WO Text element is shown but the data is not displayed with in the WO Text even though there is some data present. whats happening is, when I submit the form since the WO COnditional is satisfied the WO Text is displayed and the set method of Student.description (description is an attribute of Student entity) is called with a null value and the actual value present in the description is overridden by the null value.

I didn't write any code to change the value of the desciption field of Student.

The above problem is not seen if I dont have a WO COnditional at all , that is if I simply have a WO Text in the repitition  then value is displayed appropriately.

Could anyone help me out finding out the problem and probable solution for the above scenario.

Thanks & Regards,
Srinivas








 
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.