Ok but I, too, want to set NodeData dynamically. However,

applying

setValue(java.lang.String value)

on a DataNode instance didn't work for me :(


-Nicolai

-----------------------------------------------------
Philipp Bracher wrote 2005:

I think you are mixing the concept of dialogs and templates: Hope this helps - the jsp (template) is independent of the dialog (no way to pass a parameter)
- the dialog gets the information directly from the repository
- since the dialog has access to the repository and has a pointer to the current node, you are able to read any property of a page

Plan A
======
here some pseudo:

drawHtml(out){
String value = getWebsiteNode().getParent().getNodeData("customParam");
out.println(value);
}

the method DialogSuper.getWebsiteNode() returns the node the dialog is working with

Philipp

On 19.09.2005, at 15:19, Tomasz Mazan wrote:

    Hi

    I need for my dialog custom attribute depended on page.
    Something like :

    <cms:set dataNode="customParam" value="paramValue"/>
<cms:newBar contentNodeCollectionName="myCollection" paragraph="customParagraph"/>
    <cms:contentNodeIterator contentNodeCollectionName="myCollection">
    <cms:adminOnly>
      <cms:editBar/>
    </cms:adminOnly>
    <cms:includeTemplate/>
    </cms:contentNodeIterator>

and then I need to have access to that param inside code of my custom control (for example drawHtml(Writer) method) included in dialog for customParagraph.

    Beniamin


    ----------------------------------------------------------------
    for list details see
    http://www.magnolia.info/en/magnolia/developer.html
    ----------------------------------------------------------------



----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------

Reply via email to