• 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 Embedded Component Questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: D2W Embedded Component Questions


  • Subject: Re: D2W Embedded Component Questions
  • From: Jesse Tayler <email@hidden>
  • Date: Fri, 01 Mar 2013 15:04:48 -0500

I don't follow, but if your page comes up without any wrapper, you'll know you needed it, eh?

but, yes, "magic rules" go down and down in frameworks - read the lowest level rules and you'll see the entire thing is all the same kind of magic done everywhere.

you might think of a d2wcontext as really just a dictionary -- a dictionary with some logic behind the key/value pairs and a few significant keys that get recalculated each request - but most are just cached responses that end up being a really lightweight and centralized representation of UI logic.

so, d2wContext knows X is this entity, and Y is the task type, then the response for what's my page component must be Z right?

since most pages represent a series of attributes, an iteration through property keys sets each of the key/value responses on down the line.

more specific rules, fire during more specific contexts.

go ahead! write a rule that accesses your object model's properties for an attribute -- e.g.  like maybe a string's column width, and use that to set the size of an editor for any string attribute. This one rule can decide for all.



On Mar 1, 2013, at 2:50 PM, Johnny Miller <email@hidden> wrote:

> Thanks Jesse,
>
> So is it just the "magic" of D2W that says "OK, this is an embedded component so I can skip the PageWrapper"?
>
> Best,
>
> Johnny
>
> On Mar 1, 2013, at 9:41 AM, Jesse Tayler <email@hidden> wrote:
>
>>
>> sure, you'll likely need your page wrapper in a page level component.
>>
>> and these steps sound about right.
>>
>> I don't think you'd need to make a whole new look framework unless you're going to do an entire, shared look -- others know better I'm sure but you can create just a few components that override the basic edit and inspect and list pages and design them to your liking.
>>
>> I think you'll have a GREAT time creating your own components for use with D2W rules!
>>
>> Got for it!
>>
>> you'll realize that you can write some java code and design your templates very specifically, and thus reduce dramatically the number of components and rules you actually need to create.
>>
>> write code to reduce rules, then write rules specific to your UI to reduce code - you'll end up with something really tight.
>>
>> I've seen a lot of D2W designs where to add a new attribute, you end up writing three rules for this, two rules for that and you make a tiny component to link here or there and so on -- if you take this level of control you have decided upon, you can really design super-tightly to your UI concept.
>>
>> Have fun!
>>
>> On Mar 1, 2013, at 2:28 PM, Johnny Miller <email@hidden> wrote:
>>
>>> Hi,
>>>
>>> I'm having a little trouble wrapping my head around this (no surprise I know)...
>>>
>>> I would like to start small and just use the ERXD2WInspect component to combat the component explosion Ramsey talks about in his Custom and Embedded D2W component presentation.
>>>
>>> I would like to use my own look...
>>>
>>> So to get started I should:
>>>
>>> 1. Create my own look framework.
>>> 2. Create a component that subclasses ERD2WInspectPageTemplate
>>> 3. In the framework's rule file create a rule that the component created in the step above is the right hand assignment for templateNameForInspectPage
>>> 4. In my app I wouldn't reference the component I created I would just bind my embedded component to ERXD2WInspect.
>>>
>>> So far so good?
>>>
>>> If so when authoring my component...  do I still wrap the component content with the PageWrapper?
>>>
>>> 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
>>
>


 _______________________________________________
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 Embedded Component Questions
      • From: Johnny Miller <email@hidden>
References: 
 >D2W Embedded Component Questions (From: Johnny Miller <email@hidden>)
 >Re: D2W Embedded Component Questions (From: Jesse Tayler <email@hidden>)
 >Re: D2W Embedded Component Questions (From: Johnny Miller <email@hidden>)

  • Prev by Date: Re: D2W Embedded Component Questions
  • Next by Date: Re: D2W Embedded Component Questions
  • Previous by thread: Re: D2W Embedded Component Questions
  • Next by thread: Re: D2W Embedded Component Questions
  • Index(es):
    • Date
    • Thread