|
Project Wonder 2.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object er.extensions.ERXPatcher.DynamicElementsPatches
This class holds patches for WebObjects dynamic elements, which have always a closing tag and all
attribute values are enclosed in quotes. The patches are automatically registered if this framework gets loaded.
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.
Field Summary | |
static boolean |
cleanupXHTML
|
Method Summary | |
static String |
addQuotes(String atts)
This method adds missing quotes to the given attribute string. |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static boolean cleanupXHTML
Method Detail |
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 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"
.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.public static final String addQuotes(String atts)
type=text name="mytext"
will be corrected to
type="text" name="mytext"
atts
- a string of attributes.
|
Last updated: Do, Dez 9, 2004 12:46 PM CET | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |