ERXDataHyperlink Class Reference

Inherits er::extensions::components::_private::ERXHyperlink.

Collaboration diagram for ERXDataHyperlink:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ERXDataHyperlink (String s, NSDictionary associations, WOElement woelement)
WOActionResults invokeAction (WORequest worequest, WOContext wocontext)

Private Attributes

NSMutableDictionary< String,
WOAssociation > 
_bindingAssociations

Static Private Attributes

static final NSArray< StringBINDINGS_HANDLED_BY_SUPER_CLASS = new NSArray<String>(new String[] {"id", "class", "onclick", "otherTagString"})


Detailed Description

ERXDataHyperlink works like a WOHyperlink except that instead of turning unknown bindings into tag attributes, it instead passes them to the page specified in pageName. For instance, if you have a pageName = "PersonPage" and person = "$currentPerson", when the link is clicked, the next page will be a PersonPage with setPerson(currentPerson) passed into it.

You can pass in as many bindings as you need, but there are some bindings that are used by this element by itself and thus are not passed to the page: The ones defined by WOHyperlink and additionally "id", "class", "onclick" and "otherTagString", which are handled like bindings on a stock WOHyperlink.

If the "pageName" binding is not set, ERXDataHyperlink will behave like a regular WOHyperlink.

Author:
mschrag

timo


Constructor & Destructor Documentation

ERXDataHyperlink ( String  s,
NSDictionary  associations,
WOElement  woelement 
)


Member Function Documentation

WOActionResults invokeAction ( WORequest  request,
WOContext  context 
)

Overriden to perform the logging, propagating the action to subelements and returning the current page if an empty page is returned from super.

Reimplemented from ERXHyperlink.


Member Data Documentation

NSMutableDictionary<String, WOAssociation> _bindingAssociations [private]

final NSArray<String> BINDINGS_HANDLED_BY_SUPER_CLASS = new NSArray<String>(new String[] {"id", "class", "onclick", "otherTagString"}) [static, private]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:03 2012 for Project Wonder by  doxygen 1.5.8