12-20-2006 01:58 PM
<action id="create_myspace">
<permissions>
<permission allow="true">CreateChildren</permission>
</permissions>
<label-id>create_myspace</label-id>
<image>/images/icons/create_myspace.gif</image>
<action>dialog:createMySpace</action>
</action>
and for the dialog here is the code<dialog name="createMySpace" page="/jsp/app/space/create-myspace-dialog.jsp" managed-bean="CreateMySpaceDialog"
icon="/images/icons/create_myspace_large.gif" title-id="create_myspace"
description-id="create_myspace_description" error-message-id="error_create_myspace_dialog" />
public String getSummary() {
ResourceBundle bundle = Application.getBundle(FacesContext
.getCurrentInstance());
return buildSummary(new String[] { bundle.getString("name"),
bundle.getString("myspace_fieldOne"),
bundle.getString("myspace_fieldTwo"),
bundle.getString("description") }, new String[] { this.name,
this.fieldOne,this.fieldTwo, this.description });
}
12-21-2006 04:30 PM
12-22-2006 12:39 PM
Are saying that the custom dialog is working ok - but you can't see the resulting custom properties in the Details screen?in fact i don't know if it's really working, but i don't have any errors, neither can i display the custom fields…
01-09-2007 04:31 PM
<config evaluator="node-type" condition="custom:myspace">
<property-sheet>
<show-property name="name"/>
<show-property name="title"/>
<show-property name="custom:fieldOne" />
<show-property name="custom:fieldOne" />
</property-sheet>
</config>
02-06-2007 10:58 AM
In the finishImpl method, call the super class version and then using the this.createdNode member variable set the other properties i.e. "custom:fieldOne" and "custom:fieldTwo". This would look something like:
02-07-2007 06:16 AM
protected String finishImpl(FacesContext context, String outcome) throws Exception
{
super.finishImpl(context, outcome);
this.nodeService.setProperty(this.createdNode, <QName for custom:fieldOne>, value);
this.nodeService.setProperty(this.createdNode, <QName for custom:fieldTwo>, value);
return outcome;
}
02-08-2007 06:48 AM
super.finishImpl(context,outcome);
Map<QName, Serializable> props = new HashMap<QName, Serializable>(3);
props.put(<QName for custom:fieldOne>, value);
props.put(<QName for custom:fieldTwo>, value);
this.nodeService.setProperties(this.createdNode, props);
return outcome;
02-09-2007 06:14 AM
02-09-2007 06:33 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.