Tomasz Mazan napisał(a):

Philipp Bracher napisał(a):

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


OK, but how to _set_ this customParam from jsp code?

Beniamin

Philip, thanks for all. The issue is resolved.
I use :
1) storageNode.getNodeData("customParam") within createDialog(...) method, and 2) Resource.getLocalContentNode((HttpServletRequest)pageContext.getRequest()).createNodeData("customParam").setValue("paramValue") hidden under custom tag for JSP

best wishes
Beniamin


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

Reply via email to