session values on modelconstruct done

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

session values on modelconstruct done

Prameela R

Hello,

 

I am trying to get the session values using the following.

 

<xforms:insert ev:event="xforms-model-construct-done" nodeset="instance('city-instance')" origin="xxforms:get-session-attribute('geodata')"/>

 

On DOMActivate event its working.Why it’s not working under model-construct-done event?

 

I tried to setfocus to an input tag and tried to get the session values.But it did not work.

 

How can we get the session values on xforms page load.

 

Thanks,

Prameela.

 

 



--
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
Reply | Threaded
Open this post in threaded view
|

Re: session values on modelconstruct done

Vinith Gowda1
Prameela,

Hope you are not placing this event in BODY if you are place this in MODEL should definitely work :)

Prameela R wrote
Hello,

 

I am trying to get the session values using the following.

 

<xforms:insert ev:event="xforms-model-construct-done"
nodeset="instance('city-instance')"
origin="xxforms:get-session-attribute('geodata')"/>

 

On DOMActivate event its working.Why it's not working under
model-construct-done event?

 

I tried to setfocus to an input tag and tried to get the session values.But
it did not work.

 

How can we get the session values on xforms page load.

 

Thanks,

Prameela.

 

 



--
You receive this message as a subscriber of the ops-users@ow2.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
For general help: mailto:sympa@ow2.org?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Re: session values on modelconstruct done

Prameela R
Hello Vinith,

Its aleady placed in the model.Insert with attributes nodeset and index is
working undermodel construct done.But with origin attribute is not working.

I tried to focus an input using xforms:setfocus as it did not work I tried
to focus the input element with javascript

document.getElementById("_organizeby_WAR_organizeby_second$xforms-input-1").
focus ();

it worked in one portlet.The same is not working in another. And also I
observed that if we have more than one portlet, javascript of last focused
porlet is working, remaining portlet's javascript is not working.

Can any body give the suggession.Its an urgent requirement, please do
suggest

How javascript of all xforms of different portlets work? Or How to get
session values on model construct done.

Thanks,
Prameela

-----Original Message-----
From: VinithGowda [mailto:[hidden email]]
Sent: Sunday, May 17, 2009 10:48 AM
To: [hidden email]
Subject: [ops-users] Re: session values on modelconstruct done


Prameela,

Hope you are not placing this event in BODY if you are place this in MODEL
should definitely work :)


Prameela R wrote:

>
> Hello,
>
>  
>
> I am trying to get the session values using the following.
>
>  
>
> <xforms:insert ev:event="xforms-model-construct-done"
> nodeset="instance('city-instance')"
> origin="xxforms:get-session-attribute('geodata')"/>
>
>  
>
> On DOMActivate event its working.Why it's not working under
> model-construct-done event?
>
>  
>
> I tried to setfocus to an input tag and tried to get the session
> values.But
> it did not work.
>
>  
>
> How can we get the session values on xforms page load.
>
>  
>
> Thanks,
>
> Prameela.
>
>  
>
>  
>
>
>
> --
> 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
>
>
--
View this message in context:
http://www.nabble.com/session-values-on-modelconstruct-done-tp23543719p23580
333.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
Reply | Threaded
Open this post in threaded view
|

Re: session values on modelconstruct done

Alessandro Vernet
Administrator
In reply to this post by Prameela R
Prameela,

Prameela R wrote
<xforms:insert ev:event="xforms-model-construct-done"
nodeset="instance('city-instance')"
origin="xxforms:get-session-attribute('geodata')"/>
I don't see why using xxforms:get-session-attribute() wouldn't work on xforms-model-construct-done. Do you have a small test case that you can share with us and that we can run here to reproduce this? I guess it could be done with one form that sets the value in the session and uses xxforms:get-session-attribute() on xforms-model-construct-done to retrieve the value.

Alex