A control that navigates to a portlet URL in response to a parent control's (or the specified for
control's) client-side event.
You can place the Portlet URL Script control inside other input controls such as links or buttons. The Portlet URL Script control is invoked as a response to a corresponding action. You can also use it to define a parameter for a Custom Script control, com.webmethods.caf.faces.scripts.CustomScript
.
Set the context
property to one of the following to define the behavior:
link
navigates to the target portlet URL as an HTML link.form
navigates to the target portlet URL as a form submit. Note that the portlet URL must be an "action" type URL instead of the default "render" type.href
returns the value of the portlet URL that is used from other script components.
Children
Use the Parameter control or Portlet Url Script Parameter control, com.webmethods.caf.faces.script.PortletUrlScriptParameter
, children to specify parameters to set on the portlet URL.
Info | Value |
---|---|
Component Type | com.webmethods.caf.faces.component.portleturl.PortletUrlScript |
Handler Class | None |
Renderer Type | com.webmethods.caf.faces.component.portleturl.PortletUrlScript |
Description | Parameterized JavaScript block to invoke portlet urls from client |
Palette Location | CAF Portlet Html/Control/Scripts/Portlet Url Script |
Name | Description |
---|---|
portleturl | Drop portlet url component here |
Name | Required | Type | Description |
---|---|---|---|
context | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
|
Portlet URL context: href or form
Valid values are:
|
event | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
|
Client side event type to respond
Valid values are:
|
for | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| ID of control to which to apply this behavior |
formMethod | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
|
Which HTTP method to use POST or GET when using 'form' context
If not specified, the default value is "POST". Valid values are:
|
formTarget | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Target for submitted form when using 'form' context. |
id | false | java.lang.String | Control identifier |
rendered | false | javax.el.ValueExpression
(must evaluate to boolean )
|
True to render control; false to ignore it
If not specified, the default value is "true". |
rowvariable | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Expression that resolves to the current row when using inside tables |
Output generated by Vdldoc View Declaration Language Documentation Generator.