Re: I need help with D2W templates
Daniel Mejia <[email protected]>
| Newsgroups | gmane.comp.web.webobjects.devel |
|---|---|
| Message-ID | <[email protected]> |
Guido, I totally agree with you about the lost of the D2W advantages if you freeze some component, but in my case I'm not freezing any component, I'm freezing the template that is used to create the dynamic component. In this case you can keep the D2W advantages and modify the template (and the associated java code) to expand the functionality of the embeddable components (D2WSelect, D2WList, D2WEdit, D2WQuery and D2WInspect) with any lost in functionality or in flexibility to use the rule system to modify the resultant component created by D2W using your the modified template. Regards, Daniel. On Apr 17, 2008, at 4:32 PM, Guido Neitzer wrote: > Okay, I don't recall what they are doing in that tutorial but freezing > a component is about the worst thing you can do when you want the > power of D2W. You loose all the advantages you get from the dynamic > page building. > > I actually never used any frozen components in my app, so I can't > really comment on that. But still, you should be possible to just swap > out that component with your own subclass. > > cug > > On Thu, Apr 17, 2008 at 11:37 AM, Daniel Mejia <mejiad@evol- > tech.com> wrote: >> Guido, >> >> I'm following the documentation to modify the embeddable >> components that is >> explaned in the "WebObjects Direct to Web Guide" where they freeze >> the >> template to modify one of the embedabble components, in the guide >> example >> they modify the list to create a editable table, but the action is >> coded >> inside the template code and in my case that additional method >> should be >> binded to an external method as similar as is binded the "action" >> method to >> the return action. >> >> Regards, >> >> Daniel. >> >> >> >> On Apr 17, 2008, at 11:39 AM, Guido Neitzer wrote: >> >> On Thu, Apr 17, 2008 at 9:40 AM, Daniel Mejia <mejiad@evol- >> tech.com> wrote: >> >> >> I need some help to know how to modify the D2WSelect template to >> add an >> hyperlink and bind the action to a method define in the external >> component >> that contains the D2WSelect component. >> >> Do I miss something or why can't you subclass D2WSelect, implement >> your own HTML / additional Java and write a rule that is similar to: >> >> task = "edit" and entity.name = "MyObject" and propertyKey = >> "property" => componentName = "MyD2WSelect" [100] >> >> ? No need for freezing anything. >> >> cug >>