Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added AVT support to navindex attribute #2130

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tjoris
Copy link

@tjoris tjoris commented Mar 17, 2015

A proposed implementation for this question because we wanted to use navindexes in repeats as well.
http://discuss.orbeon.com/Tabindex-in-repeating-region-help-td44715.html

Tabindex attributes are still copied to the HTML output (if there is no navindex attribute), but do not support AVTs.

This patch probably needs some cleanup and rework:

  1. src/main/scala/org/orbeon/oxf/xforms/control/ControlExtensionAttributesSupport.scala
    => The method name addExtensionAttributesExceptClassAndAcceptForHandler doesn't reflect its behavior anymore. The extra check to exclude the navindex attribute was needed, because otherwise the control's span element received a navindex attribute. It needs to processed when sending an ajax response however (in addExtensionAttributesExceptClassAndAcceptForAjax)
  2. src/resources-packaged/ops/javascript/orbeon/xforms/server/AjaxServer.js
    => Not sure if this is the way to change the tabindex attribute of a child. We couldn't find another example of an ajax response that set an attribute on a child HTML-element of the control. We also tried to specify the ID of the child-element in the server, but couldn't find an example of that either. This code also does the translation from navindex to tabindex in Javascript, which might not be desirable as well.

@ebruchez
Copy link
Collaborator

Thanks for this, I plan to review the changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants