• 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: Quick Q regarding D2W smartAttributes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quick Q regarding D2W smartAttributes


  • Subject: Re: Quick Q regarding D2W smartAttributes
  • From: Jesse Tayler via Webobjects-dev <email@hidden>
  • Date: Wed, 2 Dec 2020 08:00:59 -0500

Did you make certain your className does indeed report as that form of boolean?
These things resolve from your model and you can fish around those attributes
for information.

Honestly, I’ve found that in these cases with D2W I resort to simply reporting
things from the D2WContext right onto the display (since you are a list there,
put a string reporting values into your html repetition there)

You should also generally open up the various D2Ws loading from frameworks to
see where your last firing rule really is.

Although there are better tools for this, I never really learned to use them -
more like avoid these things where I can and generally just interrogate at
runtime to see what rules are firing and what values are in the context and
when.

I’m sure others know how to use the rule firing tools in a more suitable manner.





> On Dec 2, 2020, at 6:15 AM, Markus Ruggiero via Webobjects-dev
> <email@hidden> wrote:
>
> Quick question:
> Why does this rule
>
> 200 : (smartAttribute.className = 'java.lang.Boolean' and task = 'list') =>
> componentName = "D2WDisplayBoolean" [com.webobjects.directtoweb.Assignment]
>
> not fire (even with a bumped-up prio)? A more specific rule however works but
> is a nuisance because I have tons of such isXyz propertyKeys.
>
> 100 : (propertyKey = 'isActive' and task = 'list') => componentName =
> "D2WDisplayBoolean" [com.webobjects.directtoweb.Assignment]
>
> I must be missing something trivial (it's always the trivial things that ruin
> the day).
>
> Thanks a lot
> ---markus---
>
>
> _______________________________________________
> 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

 _______________________________________________
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

References: 
 >Quick Q regarding D2W smartAttributes (From: Markus Ruggiero via Webobjects-dev <email@hidden>)

  • Prev by Date: Quick Q regarding D2W smartAttributes
  • Next by Date: Re: Quick Q regarding D2W smartAttributes
  • Previous by thread: Quick Q regarding D2W smartAttributes
  • Next by thread: Re: Quick Q regarding D2W smartAttributes
  • Index(es):
    • Date
    • Thread