get edit working again - looks like reading back model data got broken in a merge. still doesn't work %100 for repeats - need an xpath interpreter in order to do that.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3817 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Ariel Backenroth
2006-09-18 09:28:35 +00:00
parent 7658b1c616
commit e1a92d2983
2 changed files with 99 additions and 95 deletions

View File

@@ -46,7 +46,7 @@ final InstanceData instanceData = new InstanceData() {
{ {
try try
{ {
return ccb.getDocumentContent() != null ? ts.parseXML(ccb.getDocumentContent()) : null; return ccb.getEditorOutput() != null ? ts.parseXML(ccb.getEditorOutput()) : null;
} }
catch (Exception e) catch (Exception e)
{ {

View File

@@ -64,6 +64,10 @@ dojo.declare("alfresco.xforms.Widget",
var required = binding && binding.required == "true()"; var required = binding && binding.required == "true()";
return required; return required;
}, },
getModelNode: function()
{
///XXXarielb todo
},
getInitialValue: function() getInitialValue: function()
{ {
var b = this._getBinding(); var b = this._getBinding();
@@ -128,9 +132,9 @@ dojo.declare("alfresco.xforms.NumericStepper",
var nodeRef = document.createElement("div"); var nodeRef = document.createElement("div");
attach_point.appendChild(nodeRef); attach_point.appendChild(nodeRef);
var initial_value = this.getInitialValue() || ""; var initial_value = this.getInitialValue() || "";
var w = dojo.widget.createWidget(this.stepper_type == "double" var w = dojo.widget.createWidget((this.stepper_type == "double"
? "SpinnerRealNumberTextBox" ? "SpinnerRealNumberTextBox"
: "SpinnerIntegerTextBox", : "SpinnerIntegerTextBox"),
{ {
widgetId: this.id, widgetId: this.id,
required: this.isRequired(), required: this.isRequired(),