public class AjaxModalContainer extends AjaxDynamicElement
Name | Description |
---|---|
label | label for the link |
class | class for the link |
style | style for the link |
value | value for the link (??) |
id | id for the link |
containerID | container ID for non-Ajax WOComponentContent |
closeLabel | string for the close link |
title | title string for the link label and the window |
href | when it is bound, the content of the url will be fetched into an iframe. |
directActionName | the direct action to fetch |
action | when it is bound, the content of the url will be fetched into a div |
ajax | (optional) when true, the contents are only rendered during the Ajax request, using ajax=true is the preferred way to use this |
open | if true, the container is rendered already opened (currently only workings, i think, with ajax=true) |
locked | if true, the container will be "locked" and will not close unless you explicitly close it |
secure | (only applicable for directAtionName) if true, the generated url will be https |
skin | the name of the skin to use (lightbox or darkbox right now) If your content changes height and you want to autosize your iBox, you can add <script>iBox.contentChanged()</script> into your AjaxUpdateContainer to trigger an iBox resize. |
ERXDynamicElement.ContextData<T>
log
Constructor and Description |
---|
AjaxModalContainer(String name,
NSDictionary associations,
com.webobjects.appserver.WOElement children) |
Modifier and Type | Method and Description |
---|---|
protected String |
_containerID(com.webobjects.appserver.WOContext context)
Override this method and return an update container ID this element should react on.
|
protected void |
addRequiredWebResources(com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context)
Override this method to append the needed scripts for this component.
|
void |
appendToResponse(com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context)
Overridden to call
AjaxDynamicElement.addRequiredWebResources(WOResponse, WOContext) . |
com.webobjects.appserver.WOActionResults |
handleRequest(com.webobjects.appserver.WORequest request,
com.webobjects.appserver.WOContext context)
Override this method to return the response for an Ajax request.
|
com.webobjects.appserver.WOActionResults |
invokeAction(com.webobjects.appserver.WORequest worequest,
com.webobjects.appserver.WOContext wocontext)
Execute the request, if it's coming from our action, then invoke the ajax handler and put the key
AJAX_REQUEST_KEY in the request userInfo dictionary (request.userInfo() ). |
boolean |
shouldHandle(com.webobjects.appserver.WOContext context) |
addScriptResourceInHead, addScriptResourceInHead, addStylesheetResourceInHead, addStylesheetResourceInHead, shouldHandleRequest
afterProcessing, appendTagAttributeToResponse, arrayValueForBinding, arrayValueForBinding, associations, beforeProcessing, bindingIsSettable, bindingNamed, booleanValueForBinding, booleanValueForBinding, hasBinding, id, integerValueForBinding, nameInContext, secureInContext, setValueForBinding, stringValueForBinding, stringValueForBinding, valueForBinding, valueForBinding
addChildElement, appendChildrenToResponse, childrenElements, EmptyGroup, hasChildrenElements, invokeChildrenAction, takeChildrenValuesFromRequest, takeValuesFromRequest, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
valueForBinding, valueForBinding
public AjaxModalContainer(String name, NSDictionary associations, com.webobjects.appserver.WOElement children)
public boolean shouldHandle(com.webobjects.appserver.WOContext context)
public com.webobjects.appserver.WOActionResults invokeAction(com.webobjects.appserver.WORequest worequest, com.webobjects.appserver.WOContext wocontext)
AjaxDynamicElement
AJAX_REQUEST_KEY
in the request userInfo dictionary (request.userInfo()
).invokeAction
in class AjaxDynamicElement
worequest
- the current requestwocontext
- context of the transactionpublic void appendToResponse(com.webobjects.appserver.WOResponse response, com.webobjects.appserver.WOContext context)
AjaxDynamicElement
AjaxDynamicElement.addRequiredWebResources(WOResponse, WOContext)
.appendToResponse
in class AjaxDynamicElement
response
- the current responsecontext
- context of the transactionprotected void addRequiredWebResources(com.webobjects.appserver.WOResponse response, com.webobjects.appserver.WOContext context)
AjaxDynamicElement
addRequiredWebResources
in class AjaxDynamicElement
response
- the current responsecontext
- context of the transactionprotected String _containerID(com.webobjects.appserver.WOContext context)
AjaxDynamicElement
_containerID
in class AjaxDynamicElement
context
- context of the transactionnull
public com.webobjects.appserver.WOActionResults handleRequest(com.webobjects.appserver.WORequest request, com.webobjects.appserver.WOContext context)
AjaxDynamicElement
handleRequest
in interface IAjaxElement
handleRequest
in class AjaxDynamicElement
request
- the current requestcontext
- context of the transactionCopyright © 2002 – 2020 Project Wonder.