View Source

h2. Overview
_Since 3.1_

You can use the _icecore:redirect_ tag to trigger a redirect immediately upon page load, upon any user interaction causing a render of the component, or at the server's discretion using push.

{tip}See the ICEfaces Showcase [Live Demo|] of this component, complete with source code.{tip}

h2. Getting Started

To use the _icecore:redirect_ tag, first declare the core namespace:

{code:html|borderStyle=dashed}<html ... xmlns:icecore="">
{panel}Then add the _icecore:redirect_ tag to your page markup, setting the required _href_ attribute. Typically an EL expression would be used, so that server code may update the bean's href value and then do a push.

<icecore:redirect href="#{redirectBean.href}"/>

h2. Attributes

{tip:title=TagLib Documentation}This section covers attributes involved in the typical use-cases for this component. For reference, the complete taglib documentation for this component is available [here|].{tip}

*href* - Allows control of the absolute or relative location to redirect to. This is a mandatory attribute specifying the href to redirect to. No redirect will happen while using an EL expression that evaluates to null or an empty string.