RE: Re: xform:setfocus for redirecting the page

Posted by Prameela R on
URL: https://discuss.orbeon.com/xform-setfocus-for-redirecting-the-page-tp42966p42968.html


Hi Alex,

>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?

        Yes it works with DOMActivate.

>2) If it does, what about doing the <xforms:load> directly in the handler
>for xforms-ready. Does that work for you?
   
     <xforms:load> directly with xforms ready is not working. It works with
DOM FocusIn So we are trying to set focus on a control .Even I tried with
the event xform-focus.But it didn't work. I just want to allow the user to
add details if he is logged in else redirect to Login page.

-----Original Message-----
From: Alessandro Vernet [mailto:[hidden email]]
Sent: Tuesday, March 17, 2009 6:05 AM
To: [hidden email]
Subject: [ops-users] Re: xform:setfocus for redirecting the page


Prameela,


Prameela R wrote:

>
>    <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?
>
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

-----
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet
--
View this message in context:
http://www.nabble.com/xform%3Asetfocus-for-redirecting-the-page-tp22510238p2
2550488.html
Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.com.




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws