Re: Problem in using WOConditional with in a WORepitition
Re: Problem in using WOConditional with in a WORepitition
- Subject: Re: Problem in using WOConditional with in a WORepitition
- From: "Daniele Corti" <email@hidden>
- Date: Mon, 2 Apr 2007 09:21:52 +0200
2007/3/31, Chantigadu <email@hidden>:
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.
So, it seems that the problem is the WOConditional condition bind. Are you sure you have set it propertly?
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 (
--
Daniele Corti
AIM: S0CR4TE5
Messenger:
email@hidden
_______________________________________________
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