public UIJointContainer evolveTextInput(UIInput toevolve) { UIJointContainer joint = new UIJointContainer(toevolve.parent, toevolve.ID, COMPONENT_ID); toevolve.parent.remove(toevolve); toevolve.ID = SEED_ID; joint.addComponent(toevolve); return joint; } }
public UIJointContainer evolveSelect(UISelect toevolve) { UIJointContainer joint = new UIJointContainer(toevolve.parent, toevolve.ID, COMPONENT_ID); toevolve.parent.remove(toevolve); toevolve.ID = "select"; joint.addComponent(toevolve); return joint; } }
toevolve.parent.remove(toevolve); UIJointContainer joint = new UIJointContainer(parent, toevolve.ID, COMPONENT_ID);
toevolve.parent.remove(toevolve); UIJointContainer joint = new UIJointContainer(parent, toevolve.ID, COMPONENT_ID);
/** Render a template message into an "ad hoc" UIMessage component * */ public UIMessage renderMessage(UIContainer basecontainer, String id, String key) { // attach to base container so that full ID can be computed by default algorithm - // RSF-71 String addId = id == null? "" : id; UIComponent existing = basecontainer.getComponent(addId); if (existing != null) { basecontainer.remove(existing); } UIMessage togo = UIMessage.make(basecontainer, addId, key); String message = messagelocator.getMessage(togo.messagekeys, togo.arguments); if (message == null) { message = MessageUtil.renderDefaultMessage(key); } togo.setValue(message); return togo; }
public UIJointContainer evolve(UIInputMany toevolve) { UIJointContainer togo = new UIJointContainer(toevolve.parent, toevolve.ID, COMPONENT_ID); toevolve.parent.remove(toevolve); toevolve.ID = "list-control"; togo.addComponent(toevolve);
public UIJointContainer evolve(UIInputMany toevolve) { UIJointContainer togo = new UIJointContainer(toevolve.parent, toevolve.ID, COMPONENT_ID); toevolve.parent.remove(toevolve); toevolve.ID = "list-control"; togo.addComponent(toevolve);
public UIJointContainer evolveDateInput(UIInput toEvolve, Date value) { // Pull in the template UIJointContainer togo = new UIJointContainer(toEvolve.parent, toEvolve.ID, COMPONENT_ID); // Remove the existing component from the tree toEvolve.parent.remove(toEvolve); String transitBean = transitBase + "." + togo.getFullID(); // Need ISO9601 support. ISO8601FieldDateTransit transit = (ISO8601FieldDateTransit) rbg.getBean(transitBean); if (value == null) { // The UIInput we're evolving must have a OTP bean for this to work. value = (Date) rbg.getBean(toEvolve.valuebinding.value); } if (value != null) { transit.setDate(value); } String ttb = transitBean + "."; UIOutput display = UIOutput.make(togo, "display"); UIInput field = UIInput.make(togo, "iso8601", ttb + "ISO8601", transit.getISO8601()); field.mustapply = true; // Bind the value back through to the transitBase. // This generates a custom hidden HTML UIForm form = RSFUtil.findBasicForm(togo); form.parameters.add(new UIELBinding(toEvolve.valuebinding.value, new ELReference(ttb + "date"))); UIInitBlock.make(togo, "init-date", "rsfDatePicker", new Object[] { display.getFullID(), field.getFullID(), // If we just supply a boolean it is output as a string // which doesn't work. (style.equals(DATE_TIME_INPUT) || style.equals(TIME_INPUT)) ? "1" : "0" }); return togo; }
messagerenderer.renderMessageList(basecontainer, messageFlyweight, messages); renderContainer(messageFlyweight.rsfMessages, messagelump); basecontainer.remove(messageFlyweight.rsfMessages);
public UIJointContainer evolveDateInput(UIInput toevolve, Date value) { UIJointContainer togo = new UIJointContainer(toevolve.parent, toevolve.ID, COMPONENT_ID); toevolve.parent.remove(toevolve);
public UIJointContainer evolveDateInput(UIInput toevolve, Date value) { UIJointContainer togo = new UIJointContainer(toevolve.parent, toevolve.ID, COMPONENT_ID); toevolve.parent.remove(toevolve);
public UIJointContainer evolveDateInput(UIInput toevolve, Date date) { UIJointContainer togo = new UIJointContainer(toevolve.parent, toevolve.ID, COMPONENT_ID); toevolve.parent.remove(toevolve);
public UIJointContainer evolveDateInput(UIInput toevolve, Date date) { UIJointContainer togo = new UIJointContainer(toevolve.parent, toevolve.ID, COMPONENT_ID); toevolve.parent.remove(toevolve);
public UIJointContainer evolveSelect(UISelect toevolve) { UIJointContainer togo = new UIJointContainer(toevolve.parent, toevolve.ID, COMPONENT_ID); toevolve.parent.remove(toevolve);
public UIJointContainer evolveSelect(UISelect toevolve) { UIJointContainer togo = new UIJointContainer(toevolve.parent, toevolve.ID, COMPONENT_ID); toevolve.parent.remove(toevolve);