If you click a trigger with changing icon you lose the focus.

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

If you click a trigger with changing icon you lose the focus.

richhl
When you want to change the visual aspect of a trigger when this trigger is, for example, used like a trigger (icon for 'to be done' and icon for 'done'), you lost the focus everytime you activate the trigger.

this occurs when using a 'group technique' like the one used by 'To-Do Lists'

To reproduce:

-Open 'To-Do Lists' example.
-Move the cursor to any To-Do item.
-Click it

You lose the focus.

thx

rich


--
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: If you click a trigger with changing icon you lose the focus.

Alessandro Vernet
Administrator
Richard,

On Jan 23, 2008 3:33 AM, Richard C. Hidalgo Lorite <[hidden email]> wrote:

> When you want to change the visual aspect of a trigger when this trigger is, for example, used like a trigger (icon for 'to be done' and icon for 'done'), you lost the focus everytime you activate the trigger.
>
> this occurs when using a 'group technique' like the one used by 'To-Do Lists'
>
> To reproduce:
>
> -Open 'To-Do Lists' example.
> -Move the cursor to any To-Do item.
> -Click it
>
> You lose the focus.
Good point. If focus is important for you (and it should!), you can either:

1. Instead of having 2 groups, have 1 trigger that contains in the
label a <xforms:output mediatype="text/html" value="concat(...)"/>
where you dynamically generate the <img src="..."> with a different
image depending on the situation. In this particular example you would
have to change some more code as you can't test in XPath on the
relevance of a node. So you would have to test on the to-do being done
or not.
2. Add an ID to each trigger, and when a trigger is pressed, manually
do a <xforms:setfocus> on the other trigger. This is a tricky one as
you are in a repeat. You will have to test this to check if this
really works.

My preference would be for option #1, as it seems simpler. And it will
be become better once we support AVTs in XHTML, so you will be able to
write <xhtml:img src="../apps/xforms-todo/images/status-{if (...) then
'in-progress' else 'done'}.gif.">.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.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: If you click a trigger with changing icon you lose the focus.

richhl
>
> Good point. If focus is important for you (and it should!), you can either:
>
> 1. Instead of having 2 groups, have 1 trigger that contains in the
> label a <xforms:output mediatype="text/html" value="concat(...)"/>
> where you dynamically generate the <img src="..."> with a different
> image depending on the situation. In this particular example you would
> have to change some more code as you can't test in XPath on the
> relevance of a node. So you would have to test on the to-do being done
> or not.

good! it's what I'm trying and it works but I've found the problem http://www.ow2.org/wws/arc/ops-users/2008-01/msg00349.html that prevents me to obtain the image.

> 2. Add an ID to each trigger, and when a trigger is pressed, manually
> do a <xforms:setfocus> on the other trigger. This is a tricky one as
> you are in a repeat. You will have to test this to check if this
> really works.

yes, I need this anyway because in order to improve user experience I need that once the user select one value, the cursor goes to next control. And the answer is that it doen not work...trying to prepare an example....

thx

rich

>
> My preference would be for option #1, as it seems simpler. And it will
> be become better once we support AVTs in XHTML, so you will be able to
> write <xhtml:img src="../apps/xforms-todo/images/status-{if (...) then
> 'in-progress' else 'done'}.gif.">.
>
> Alex
> --
> Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
> http://www.orbeon.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: If you click a trigger with changing icon you lose the focus.

Alessandro Vernet
Administrator
Richard,

On Thu, Jan 24, 2008 at 1:02 AM, Richard C. Hidalgo Lorite
<[hidden email]> wrote:
>  good! it's what I'm trying and it works but I've found the problem http://www.ow2.org/wws/arc/ops-users/2008-01/msg00349.html that prevents me to obtain the image.

This link doesn't seem to work right now. Is this something relative
to URL rewrite? I know there is an annoying bug with that, and we are
planning to fix it very soon. Would it work for you to use a relative
URL to point to the image in this case (e.g.
../../images/my-image.png).

>  yes, I need this anyway because in order to improve user experience I need that once the user select one value, the cursor goes to next control. And the answer is that it doen not work...trying to prepare an example....

Sure, I would be interested in testing this.

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/


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