• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problem in using WOConditional with in a WORepitition
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem in using WOConditional with in a WORepitition


  • Subject: Re: Problem in using WOConditional with in a WORepitition
  • From: Chantigadu <email@hidden>
  • Date: Mon, 2 Apr 2007 13:52:03 +0530

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@hidden> wrote:


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

  • Follow-Ups:
    • Re: Problem in using WOConditional with in a WORepitition
      • From: "Daniele Corti" <email@hidden>
References: 
 >Re: Problem in using WOConditional with in a WORepitition (From: "Daniele Corti" <email@hidden>)

  • Prev by Date: Re: Problem in using WOConditional with in a WORepitition
  • Next by Date: Re: Problem in using WOConditional with in a WORepitition
  • Previous by thread: Re: Problem in using WOConditional with in a WORepitition
  • Next by thread: Re: Problem in using WOConditional with in a WORepitition
  • Index(es):
    • Date
    • Thread