• 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: D2W / repetitionComponentName Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: D2W / repetitionComponentName Question


  • Subject: Re: D2W / repetitionComponentName Question
  • From: Johnny Miller <email@hidden>
  • Date: Wed, 13 Mar 2013 15:25:40 -1000

Hi David,

Please see below.

On Mar 13, 2013, at 3:16 PM, David Holt <email@hidden> wrote:

Hi Johnny,

On 2013-03-13, at 5:14 PM, Johnny Miller <email@hidden> wrote:

Hi,

I'm trying to do the following:

I have an inspect page and inside of that I have an inspect page repetition.  That all works fine and it looks like the ERD2W equivalents.

In the inspect page repetition I want to have a switch component that uses a rule to determine what kind of component to display i.e. if it is a string put one kind of component, if it's an ERAttachment put another.

aren't you just describing the behaviour of D2W?

I thought so and it all seemed good.  But all of a sudden it's all blown up on me and it's left me really scratching my head.  Just seems like certain rules are getting cached and it stops trying to resolve things like displayNameForProperty.  If you look at the second screen shot it gets the right property but the displayNameForProperty matches the first property.  I thought maybe i had a rule that always shows "name" for displayNameForProperty but on different forms it does the same thing with a different display name.

Thanks,

Johnny




Now here is where the strange things start occurring.  I've defined my own key "propertyComponentName".  For some odd reason whatever rule resolves to in the first property is what it displays for every property?

And what is equally strange is that suppose they all resolve to the same type of component so it doesn't matter... it will display the right property value but the property value for key always resolves to whatever the answer would be for the first property.

It's hard to describe so I created a couple of screenshots:

http://www.kahalawai.com/displaying-same-component.png // It always shows the component for viewing an ERAttachment
http://www.kahalawai.com/displaying-same-property-name.png // Gets the property key right but the display name for property value wrong

One of my questions is can you just arbitrarily create keys or do you need to register them somewhere?

If you mean arbitrarily create keys in the rule model, then yes.


Another Is localcontext and d2wcontext completely synonymous?

localContext is a page's d2wContext. 


Thanks in advance,

Aloha,
Mr. Johnny Miller
Web Development Manager
Kahalawai Media Company
Lahaina, HI 96761
tel: (808) 661-7962 | mobile: (808) 283-0791
website | e-mail
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: D2W / repetitionComponentName Question
      • From: David Holt <email@hidden>
References: 
 >D2W / repetitionComponentName Question (From: Johnny Miller <email@hidden>)
 >Re: D2W / repetitionComponentName Question (From: David Holt <email@hidden>)

  • Prev by Date: Re: D2W / repetitionComponentName Question
  • Next by Date: Re: D2W / repetitionComponentName Question
  • Previous by thread: Re: D2W / repetitionComponentName Question
  • Next by thread: Re: D2W / repetitionComponentName Question
  • Index(es):
    • Date
    • Thread