er.ajax
Class AjaxModalContainer
java.lang.Object
com.webobjects.appserver.WOElement
com.webobjects.appserver.WODynamicElement
com.webobjects.appserver._private.WODynamicGroup
er.ajax.AjaxDynamicElement
er.ajax.AjaxModalContainer
- All Implemented Interfaces:
- IAjaxElement
- Direct Known Subclasses:
- AjaxIBoxComponentContent
public class AjaxModalContainer
- extends AjaxDynamicElement
Shows a link and wraps an area that is later presented as a modal window. Alternately, when you bind action then the content is used as the link.
- Author:
- timo, ak
| Bindings |
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. |
| Fields inherited from class com.webobjects.appserver._private.WODynamicGroup |
_children |
| Methods inherited from class er.ajax.AjaxDynamicElement |
addScriptResourceInHead, addScriptResourceInHead, addStylesheetResourceInHead, addStylesheetResourceInHead, appendTagAttributeToResponse, associations, bindingNamed, booleanValueForBinding, hasBinding, setValueForBinding, shouldHandleRequest, stringValueForBinding, stringValueForBinding, takeValuesFromRequest, valueForBinding, valueForBinding |
| Methods inherited from class com.webobjects.appserver._private.WODynamicGroup |
addChildElement, appendChildrenToResponse, childrenElements, EmptyGroup, hasChildrenElements, invokeChildrenAction, takeChildrenValuesFromRequest, toString |
AjaxModalContainer
public AjaxModalContainer(String name,
NSDictionary associations,
WOElement children)
shouldHandle
public boolean shouldHandle(WOContext context)
invokeAction
public WOActionResults invokeAction(WORequest worequest,
WOContext wocontext)
- Description copied from class:
AjaxDynamicElement
- 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()).
- Overrides:
invokeAction in class AjaxDynamicElement
- Parameters:
worequest - the current requestwocontext - the current context
- Returns:
- the action results
appendToResponse
public void appendToResponse(WOResponse response,
WOContext context)
- Description copied from class:
AjaxDynamicElement
- Overridden to call
AjaxDynamicElement.addRequiredWebResources(WOResponse, WOContext).
- Overrides:
appendToResponse in class AjaxDynamicElement
- Parameters:
response - the current responsecontext - the current context
addRequiredWebResources
protected void addRequiredWebResources(WOResponse response,
WOContext context)
- Description copied from class:
AjaxDynamicElement
- Override this method to append the needed scripts for this component.
- Specified by:
addRequiredWebResources in class AjaxDynamicElement
context - the current context
_containerID
protected String _containerID(WOContext context)
- Overrides:
_containerID in class AjaxDynamicElement
handleRequest
public WOActionResults handleRequest(WORequest request,
WOContext context)
- Description copied from class:
AjaxDynamicElement
- Override this method to return the response for an Ajax request.
- Specified by:
handleRequest in interface IAjaxElement- Specified by:
handleRequest in class AjaxDynamicElement
- Parameters:
request - the current requestcontext - the current context
Copyright © 2002 – 2011 Project Wonder.