Pages

Monday, 23 December 2013

Dialog Vs Design Dialog

Both dialog and design_dialog defines the interface allowing the user to configure the component.

The basic difference here is:

Dialog stores its data at component's/node's/page's level where as Design Dialog stores its data at template's level.

In other words, Dialog stores its data under /contnet and Design Dialog stores its data under /etc/designs by default.


Retrieving Dialog configurations:

String dialogConfig = properties.get("dialogConfig", "Dialog Configuration");

Retrieving Design Dialog configurations:

String designDialogConfig = currentStyle.get("designDialogConfig ", "Design Dialog Configuration");

Here,  dialogConfig and designDialogConfig are names of widgets.

No comments:

Post a Comment

Converting InputStream to String

    private String convertToString(InputStream inputStreamObj)             throws IOException {         if (inputStreamObj != null) {     ...