Rules and custom property-level components (D2W)
Holzner Roman <[email protected]>
| Newsgroups | gmane.comp.web.webobjects.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi list I just wanted to make a new custom property-level component for my D2W project. In my component, I need to make some access to values, which are written in my rule file (e.g. the value for task, but also some custom values). To pump this information from the component I need, as I understand it, some access to the d2wContext or something similar. So I just tried to extend my class of a D2WCustomComponent instead of a simple WOComponent, because the D2WCustomComponent has a method called d2wContext(). But this was not successful, because I always receive a null value. (So it seems that the D2WCustomComponent is only for whole pages and not for property-components) My question is: is there a possibility to get access to the d2wContext in a property component? Or should It normally work and it's only my code which has some failure? For me, it's seems to be completely impossible, but I won't believe that at the moment. So I'm glad to read your answers and thanks in advance for your proposals Have a nice weekend Roman