From: Anjo K. <an...@kr...> - 2010-07-28 11:44:48
|
All, I found myself having to do a wizard page with a bunch of all-custom property editors. So *normally* you'd have to create one editor for every property, but then it occurred to me that you can munge them all in one page: EditVariantProperty.java: public class EditVariantProperty extends ERDCustomEditComponent { public EditVariantProperty(WOContext context) { super(context); } } EditVariantProperty.wo: <wo:ERXEqualConditional value1="$key" value2="prop1"> some stuff </wo:ERXEqualConditional> <wo:ERXEqualConditional value1="$key" value2="prop2"> other stuff </wo:ERXEqualConditional> <wo:else> <wo:textfield value ="$objectPropertyValue" /> </wo:else> and a rule: pageConfiguration = "CreateFoo" => componentName = "EditVariantProperty" I'm fully aware that this is not exactly recommended, but then again, it's not that different the way you'd write a plain Tab page. Given that the alternative was either a bunch of components I wouldn't ever touch again, this was a bit less effort. And you of course get all the benefits you get from a D2W page. Maybe someone can use this :) Cheers, Anjo |