0 Replies Latest reply on May 6, 2010 10:42 AM by chbdubois

    Error in video training - Implementing two-way binding

    chbdubois

      During the Video training for Implementing two-way binding you have a slight error.

       

      If you follow along with the video training the instructor misses the step of assigning the Value Object(DTO) as Bindable.

       

      The instructor goes from adding the "@" symbol to the bound selectedEmployee.salary to running the application and it runs fine. To do this in the code you need to add [Bindable] to the Value Object(DTO) Employee.

       

       

      <s:TextInput id="salaryInput"
                               text="@{selectedEmp.salary}"/>

       

      package valueObjects
      {
          [Bindable]  <!-- missing adding this line to the Value Object before running  to get it to actually work -->
          public class Employee
          {
           ....