dynamic setfocus.

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

dynamic setfocus.

gerard calliet
Hi,

Is there a way to use setfocus dynamicaly ? Having the control value
calculated ?

Thanks,

Gérard Calliet
esad-id



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: dynamic setfocus.

Erik Bruchez
Administrator
Gerard,

Can you please provide more details? I don't understand your question.

-Erik

gerard calliet wrote:
> Hi,
>
> Is there a way to use setfocus dynamicaly ? Having the control value
> calculated ?
>
> Thanks,
>
> Gérard Calliet
> esad-id

--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: dynamic setfocus.

Gérard Calliet-2
The question is : in setfocus action, the value of the control attribute
could be a calcuted value, like a value of an instance element or
attribute, a calculated value, ...

(The issue is emulating a cell based terminal, controlled by a
procedural program. An interaction control instance between xforms and
the application program is used to get a total control of the focus. It
is a long way from classical use of xforms. But it is a first step
towards a wiser integration).

Thanks,

Gérard Calliet
esad-id



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: dynamic setfocus.

Erik Bruchez
Administrator
Gerard,

I understand. Strictly as per the XForms spec, this is not possible: the
value of the @control attribute has to be statically determined. This is
a case where Attribute Value Templates (AVTs) would be handy, i.e. you
could write things like:

   <xforms:setfocus control="my-control-{instance('foo')/bar}"/>

Discussions about AVTs have been going on in the XForms Working Group,
but we know that those won't be in XForms 1.1. However some
implementations use them already. In particular we already support them
in places like xforms:submission.

Supporting AVTs on xforms:setvalue would actually be fairly easy for us
to implement.

Another solution, without AVTs, and if you don't have many controls to
set focus to, is to use conditional actions:

   <xforms:setfocus if="condition-1" control="my-control-foo"/>
   <xforms:setfocus if="condition-2" control="my-control-bar"/>
   etc.

-Erik

Gérard Calliet wrote:

> The question is : in setfocus action, the value of the control attribute
> could be a calcuted value, like a value of an instance element or
> attribute, a calculated value, ...
>
> (The issue is emulating a cell based terminal, controlled by a
> procedural program. An interaction control instance between xforms and
> the application program is used to get a total control of the focus. It
> is a long way from classical use of xforms. But it is a first step
> towards a wiser integration).
>
> Thanks,
>
> Gérard Calliet
> esad-id
--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws