core/com.nokia.carbide.templatewizard/src/com/nokia/carbide/internal/api/templatewizard/ui/TemplateWizardPage.java
--- a/core/com.nokia.carbide.templatewizard/src/com/nokia/carbide/internal/api/templatewizard/ui/TemplateWizardPage.java Wed Dec 02 13:49:43 2009 -0600
+++ b/core/com.nokia.carbide.templatewizard/src/com/nokia/carbide/internal/api/templatewizard/ui/TemplateWizardPage.java Wed Dec 02 14:33:28 2009 -0600
@@ -117,9 +117,10 @@
values.put(type.getId(), value);
if (type instanceof UidFieldType) {
+ values.put(type.getId(), value.toLowerCase());
// least hacky way to support this without creating a language out of templates
values.put(type.getId() + UIDComposite.WITHOUT_0X_PREFIX,
- UIDComposite.getWithout0x(value));
+ UIDComposite.getWithout0x(value).toLowerCase());
}
}
@@ -284,7 +285,10 @@
@Override
public String getValue() {
- return UIDComposite.makeCanonicalHexString(super.getValue().trim());
+ String value = super.getValue().trim();
+ if (!UIDComposite.isValidHexString(value))
+ return value;
+ return UIDComposite.makeCanonicalHexString(value);
}
@Override