Hancock, David (DHANCOCK) wrote:
We're investigating the marriage of ZPT (via ZPTKit) and FormEncode (via a component to be written or FEComponent found on the list).

A couple initial questions:

1. Is ComponentKit designed to handle more than one component for a page/servlet? (Seems like it is, just not sure.)

Yep, that's the idea.

2. If you add to the components list, how does the servlet know which awake/asleep/writeHTML to call? Should those methods be overridden in the class that how the two components?

awakeEvent and sleepEvent get called for every component. writeHTML isn't overridden, which is why you set it in your SitePage to use ZPTKit. I think there was a reason for that, but I can't remember what it is now.

3. Is there any "prior art" on merging ZPT and FormEncode?
4. Is there any "prior art" on using two components at once?

I do this regularly, using ZPTKit, LoginKit, and NotifyComponent together. But I wrote them all, so it's not surprising they work together; I haven't tried other components, so I don't know how they'll work. But it's a bug if any component doesn't work with another component.

5. Are there any instructions for writing your own component?

Look in the docstrings of Component.  It's a pretty minimal interface.

I will admit that I'm not the sharpest tool in the shed, and I don't understand how ComponentKit works. It seems (intuitively) like the right solution, but I just don't know how to make it work.

It's basically a combination of mix-ins (_servletMethods) and events.

--
Ian Bicking  /  [EMAIL PROTECTED]  /  http://blog.ianbicking.org


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to