public TableNavRenderer(UIContainer tofill, String formID, String scriptID, ViewParameters vparams) { parameterForm = UIForm.make(tofill, formID, vparams); jscript = UIVerbatim.make(tofill, scriptID, ""); jscript.markup = new StringBuilder(); appendJS("theform = new SakaiProject.TableRenderer('"+parameterForm.getFullID()+"');"); }
/** Creates a form of the specified submission type, either * {@link EarlyRequestParser#ACTION_REQUEST} or {@link EarlyRequestParser#RENDER_REQUEST}. */ public static UIForm make(UIContainer parent, String ID, String type) { UIForm togo = make(parent, ID); togo.type = type; togo.noID = true; return togo; }
.accumulate(new IllegalArgumentException(), "Component with ID " + childid + " listed as submitting child of form " + toprocess.getFullID() + " is not valid (non-Command, non-Bound or " + "non-existent)");
/** Creates an "action" form that will receive an RSF submission */ public static UIForm make(UIContainer parent, String ID) { if (!(parent instanceof UIBranchContainer)) { throw UniversalRuntimeException.accumulate(new IllegalArgumentException("Immediate parent of UIForm must be a branch container")); } UIForm togo = new UIForm(); togo.ID = ID; togo.noID = true; parent.addComponent(togo); return togo; }
/** Creates an "unmanaged" GET ({@link EarlyRequestParser#RENDER_REQUEST}) * form, targetted at the supplied ViewParameters */ public static UIForm make(UIContainer parent, String ID, ViewParameters viewparams) { UIForm togo = make(parent, ID); togo.viewparams = viewparams.copyBase(); togo.type = EarlyRequestParser.RENDER_REQUEST; togo.noID = true; return togo; }
String fullID = child.getFullID(); if (bound.willinput) { String formID = toprocess.getFullID();
public TableNavRenderer(UIContainer tofill, String formID, String scriptID, ViewParameters vparams) { parameterForm = UIForm.make(tofill, formID, vparams); jscript = UIVerbatim.make(tofill, scriptID, ""); jscript.markup = new StringBuilder(); appendJS("theform = new SakaiProject.TableRenderer('"+parameterForm.getFullID()+"');"); }