Hello Daniele,
The WOCOnditional binding is correct and its behaving as desired, i dont
know why the settter method of the variable binded to "value" binding of
WOText is getting called with the NULL value.
Regards,
Srinivas
On 4/2/07, Daniele Corti <[EMAIL PROTECTED]> wrote:
2007/3/31, Chantigadu <[EMAIL PROTECTED]>:
>
> 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 ( [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]
_______________________________________________
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]