Sign In/My Account | View Cart  

advertisement

AddThis Social Bookmark Button

Article:
  Using WebObjects: More Practical Tips and Tricks
Subject:   Full Name didn't work
Date:   2004-03-13 17:24:23
From:   stevechen
Hi:


I am half way through this article, but I'm stucked. When I add the Full Name in the Assitant and save, it would give error: com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException: valueForKey(): lookup of unknown key: 'nameFull'. This class does not have an instance variable of the name nameFull or _nameFull, nor a method of the name nameFull, _nameFull, getNameFull, or _getNameFull


What did I do wrong? Any help would be much appreciated.

Full Threads Oldest First

Showing messages 1 through 3 of 3.

  • Josh Paul photo Full Name didn't work
    2004-03-13 23:11:47  Josh Paul | O'Reilly Author [View]

    From the information you've provided, I think the error is coming from your EOModel. You should check your model and make sure there is an Attribute called nameFull. Make sure both the Name and Column fields are filled in. Also check to see if the Attribute has the diamond-symbol next to it.

    HTH.
    • Full Name didn't work
      2004-03-31 17:35:02  dgregory1 [View]

      I also am having this problem with fullName(). As I understand it, the reason for subclassing _User was so that an attribute for fullname was not needed in the database. What else could we be doing wrong?.....Dale
      • Josh Paul photo Full Name didn't work
        2004-03-31 20:09:40  Josh Paul | O'Reilly Author [View]

        You are correct. I mistakenly gave bad advice. SORRY!

        Hmm..the attribute of fullName should not be needed in the database nor the EOModel. Since I can't see your code, or project, I can only guess at a solution:
        <br/>
        <br/>check your EOModel and make sure your Entity's Name and Class Name is named User not _User
        <br/>
        <br/>
        If that doesn't solve it, please let me know.