Re: I need help with D2W templates

"Guido Neitzer" <[email protected]>
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
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 <[email protected]> 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 <[email protected]> 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
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.