• 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
Non-model attributes and visibility
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Non-model attributes and visibility


  • Subject: Non-model attributes and visibility
  • From: Pascal Robert <email@hidden>
  • Date: Tue, 13 Sep 2011 10:21:29 -0400

I have an EO entity that I use to store the value and the type of a report parameter. The EO have a couple of EO attributes that is stored in a database, but the « value » attribute is a non-EO attribute, because I only need to ship the value to a REST service, I don't need to save the value of the parameter to the database.

So I did the usual. In the ReportParam class, I have a bunch of methods like this:

  public void setBooleanValue(Boolean booleanValue) {
    if (booleanValue == null) {
      booleanValue = false;
    }
    this.booleanValue = booleanValue;
  }

And my component, I have a condition that set the value of all boolean parameters to true:

      if (isShowAll) {
        for (ReportParam param: printDetailsReport.studentPrintDetailsParametersForDisplay()) {
          param.setBooleanValue(true);
        }
      }

Problem is, right after that condition, all parameters value is set to "false" even if I set them to true. But I change the value of an attribute that is part of the model in the same For loop, I get the correct value after the condition. So I guess EOF is doing some magic when it's attributes from the model?

BTW, the boolean parameters are also used for WOCheckbox in the component, and if I set it there, the value stays.

 _______________________________________________
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: Non-model attributes and visibility
      • From: Ramsey Gurley <email@hidden>
  • Prev by Date: Fwd: FrontBasePlugIn & EOQualifier.QualifierOperatorContains
  • Next by Date: [OFF-TOPIC] LinkedIn WebObjects contacts
  • Previous by thread: Timer already cancelled Exception
  • Next by thread: Re: Non-model attributes and visibility
  • Index(es):
    • Date
    • Thread