• 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
displayGroup usage?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

displayGroup usage?


  • Subject: displayGroup usage?
  • From: Theodore Petrosky <email@hidden>
  • Date: Thu, 2 Apr 2009 05:32:27 -0700 (PDT)

I have started an project to track contacts... It is a very simple concept but I thought I would use it to learn something of displayGroups.

Here is how I am using them now:

in my .java I create a definition with:

public ERXDisplayGroup<User> userDG;

and in the constructor:

userListEO = ERXEC.newEditingContext();
userList = User.fetchByLastName(userListEO);

userDG = new ERXDisplayGroup<User>();
userDG.setObjectArray(userList);


In my HTML I am doing this:

<wo:WOTextField value = "$userDG.selectedObject.password" size = "35" />

I get an error: there is no key 'password' for keypath 'userDG.selectedObject' in AdminMain

userDG is of type User and User does indeed have a 'password'.

I notice there is a tab in Eclipse that says DisplayGroups but I am doing nothing here.

The app runs just fine and does what I expect. Why do I get this error?

BTW, I am using this same technique in a different component and I get no error.

Ted




 _______________________________________________
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: displayGroup usage?
      • From: David Avendasora <email@hidden>
  • Prev by Date: Re: Error message [Connection reset by peer: Amount read didn't match content-length]
  • Next by Date: Re: displayGroup usage?
  • Previous by thread: Re: Error message [Connection reset by peer: Amount read didn't match content-length]
  • Next by thread: Re: displayGroup usage?
  • Index(es):
    • Date
    • Thread