Hi, Srinivas,

I think the problem you're having is due to the fact that during the Request-Response cycle, you're changing the component template between the appendToResponse that generates the page, and the final invokeAction that uses that generated page.

For more information about this problem, see:

http://lists.apple.com/archives/Webobjects-dev/2005/Jul/ msg00509.html

Regards,
Jerry

On Mar 31, 2007, at 6:21 AM, Chantigadu wrote:


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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/jerrywwalker% 40gmail.com

This email sent to [EMAIL PROTECTED]


--
__ Jerry W. Walker,
WebObjects Developer/Instructor for High Performance Industrial Strength Internet Enabled Systems

    [EMAIL PROTECTED]
    203 278-4085        office



_______________________________________________
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