public static class ERXPatcher.DynamicElementsPatches extends Object
Note: WOForm
is not replaced, because it is ok if you don't use ?
-bindings.
If you need additional parameters, just insert WOHiddenField
s.
Also WOJavaScript
is not replaced, even if it is not XHTML-conform.
Modifier and Type | Field and Description |
---|---|
static boolean |
cleanupXHTML |
static boolean |
suppressValueBindingSlow |
Modifier and Type | Method and Description |
---|---|
static String |
addQuotes(String atts)
This method adds missing quotes to the given attribute string.
|
static boolean |
appendComponentIdentifier() |
static void |
appendIdentifierTagAndValue(WODynamicElement element,
WOAssociation id,
WOResponse response,
WOContext context)
Allows you to set the component ID without actually touching the HTML code, by adding a
componentIdentifier entry in the context's mutableUserInfo. |
static void |
correctResponse(WOResponse response,
int start)
Corrects the response of dynamic elements to be XHTML-conformant.
|
static void |
processResponse(WODynamicElement element,
WOResponse response,
WOContext context,
int priorOffset,
String name)
Fixing up the response for XHTML and adding the element to the array of generated element IDs, so we can use
JavaScript later on.
|
public static boolean cleanupXHTML
public static boolean suppressValueBindingSlow
public static void appendIdentifierTagAndValue(WODynamicElement element, WOAssociation id, WOResponse response, WOContext context)
componentIdentifier
entry in the context's mutableUserInfo. This is useful for setting CSS
entries you don't have to code for.public static boolean appendComponentIdentifier()
public static void processResponse(WODynamicElement element, WOResponse response, WOContext context, int priorOffset, String name)
public static final void correctResponse(WOResponse response, int start)
input
- and img
-tags
will be closed correctly, all attribute values will be quoted and attributes without a value like
disabled
will get a quoted value. All attribute-values with uncorrectly escaped ampersands
(&) will be corrected. E.g. "wählen"
will become
"wählen"
.
This method would normally be called in the following way:
public void appendToResponse(WOResponse woresponse, WOContext wocontext) {
String pre = woresponse.contentString();
super.appendToResponse(woresponse, wocontext);
correctResponse(woresponse, pre.length(), pre);
}
response
- the response to be corrected.start
- the offset to start from.Copyright © 2002 – 2024 Project Wonder.