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
_children
_ConstructorParameters
Constructor and Description |
---|
AjaxModalContainer(String name,
NSDictionary associations,
WOElement children) |
Modifier and Type | Method and Description |
---|---|
protected String |
_containerID(WOContext context)
Override this method and return an update container ID this element should react on.
|
protected void |
addRequiredWebResources(WOResponse response,
WOContext context)
Override this method to append the needed scripts for this component.
|
void |
appendToResponse(WOResponse response,
WOContext context)
Overridden to call
AjaxDynamicElement.addRequiredWebResources(WOResponse, WOContext) . |
WOActionResults |
handleRequest(WORequest request,
WOContext context)
Override this method to return the response for an Ajax request.
|
WOActionResults |
invokeAction(WORequest worequest,
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(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, WOElement children)
public boolean shouldHandle(WOContext context)
public WOActionResults invokeAction(WORequest worequest, 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(WOResponse response, WOContext context)
AjaxDynamicElement
AjaxDynamicElement.addRequiredWebResources(WOResponse, WOContext)
.appendToResponse
in class AjaxDynamicElement
response
- the current responsecontext
- context of the transactionprotected void addRequiredWebResources(WOResponse response, WOContext context)
AjaxDynamicElement
addRequiredWebResources
in class AjaxDynamicElement
response
- the current responsecontext
- context of the transactionprotected String _containerID(WOContext context)
AjaxDynamicElement
_containerID
in class AjaxDynamicElement
context
- context of the transactionnull
public WOActionResults handleRequest(WORequest request, WOContext context)
AjaxDynamicElement
handleRequest
in interface IAjaxElement
handleRequest
in class AjaxDynamicElement
request
- the current requestcontext
- context of the transactionCopyright © 2002 – 2024 Project Wonder.