Re: xform:setfocus for redirecting the page
Posted by
Alessandro Vernet on
URL: https://discuss.orbeon.com/xform-setfocus-for-redirecting-the-page-tp42966p42967.html
Prameela,
<quote author="Prameela R">
<xforms:setfocus ev:event="xforms-ready"
control="_eventdetails_WAR_eventdetails_redirector" />/* liferay id*/
or
<xforms:setfocus ev:event="xforms-ready" control="redirector" />
<xforms:trigger id="redirector" appearance="minimal">
<xforms:label>Add </xforms:label>
<xforms:action ev:event="DOMFocusIn"
if="instance('createdby-instance')/loginuser = 'false'">
<xforms:load
resource="
http://localhost:8080/web/guest/home" />
</xforms:action>
</xforms: trigger>
I wanted to redirect the page depending on the user login. <xforms:setfocus
is working fine with orbeon.But
When I integrated with liferay, it is not working.What could be the wrong?
</quote>
1) Does the <xforms:load> work at all in the portlet? I.e. if you run it on DOMActivate instead of DOMFocusIn and click on the button, does it got to the page you specified?
2) If it does, what about doing the <xforms:load> directly in the handler for xforms-ready. Does that work for you?
Alex