dialogFramework can have accesibility?

UI Components for JSF
Post Reply
warriorshadow
Posts: 42
Joined: 12 Sep 2013, 15:34

14 Jul 2015, 16:22

Hi,

I'm trying to make the dialog framework works with accesibility, but there are a few problems, that don't make this component accessible. First, I lost the navigation, when I use the tab button, it doesn't respect the modal option. This is an example:


this is the CommandButton

Code: Select all

   <p:commandButton id="dialogFrameworkDataCommandButton"
                         title="#{i18n.crud_list_dialog_show_button_title}" 
                         value="#{i18n.crud_list_dialog_show_button_title}" 
                         disabled="#{cc.attrs.disabled}"
                         icon="ui-icon-extlink" 
                         styleClass="actions"
                         actionListener="#{cc.attrs.lOVBean.choseEntity}"
                         process="@this">
    <p:ajax event="dialogReturn" listener="#{cc.attrs.lOVBean.onEntityChosen}" 
                    oncomplete="#{cc.attrs.id}();#{cc.attrs.oncomplete}"  />  
 </p:commandButton>  

this is the method that calls the commandButton

Code: Select all

public void choseEntity(ActionEvent event) {
        String contentWidth = (String) event.getComponent().getAttributes().get("contentWidth");
        String contentHeight = (String) event.getComponent().getAttributes().get("contentHeight");
        List<E> targetMultiple = null;
        E target = null;

        String multipleValue = (String) event.getComponent().getAttributes().get("multiple");
        Boolean multipleMode = Boolean.parseBoolean(multipleValue);
        setMultiple(multipleMode);

        if (isMultiple()) {
            targetMultiple = (List<E>) event.getComponent().getAttributes().get("target");
        } else {
            target = (E) event.getComponent().getAttributes().get("target");
        }

        Map<String, List<String>> params = new HashMap();
        List<String> values = new ArrayList();
        values.add(this.getClass().getName());
        params.put("bean", values);
        Map<String, Object> options = new HashMap<String, Object>();
        options.put("modal", true);
        options.put("draggable", false);
        options.put("dynamic", true);
        options.put("resizable", true);
        if (contentWidth != null) {
            options.put("contentWidth", contentWidth);
        }
        if (contentWidth != null) {
            options.put("contentHeight", contentHeight);
        }

        if (isMultiple()) {
            this.entities = targetMultiple;
            this.selectedEntities = entities;
        } else {
            this.entity = target;
            this.selectedEntity = entity;
        }

        RequestContext.getCurrentInstance().openDialog("/pages/selectEntity.jsf", options, params);
    }

I would like to know how to make this dialog with accesibility. There are properties to implement?

Thanks in advance,
Primefaces 5.2
Apache Tomcat 7.0.34
NetBeans 7.3.1
Linux Ubuntu

warriorshadow
Posts: 42
Joined: 12 Sep 2013, 15:34

17 Jul 2015, 23:00

I appreciate your help with this issue.
Primefaces 5.2
Apache Tomcat 7.0.34
NetBeans 7.3.1
Linux Ubuntu

warriorshadow
Posts: 42
Joined: 12 Sep 2013, 15:34

20 Jul 2015, 17:34

I make an issue for this request. I appreciate your help for this, because it's a important solution for the dialog accesible. there's the primefaces issue http://code.google.com/p/primefaces/iss ... il?id=8206
Primefaces 5.2
Apache Tomcat 7.0.34
NetBeans 7.3.1
Linux Ubuntu

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

20 Jul 2015, 23:08

google code is not used anymore. Use github and report things there

warriorshadow
Posts: 42
Joined: 12 Sep 2013, 15:34

20 Jul 2015, 23:40

kukeltje wrote:google code is not used anymore. Use github and report things there

this is the new issue https://github.com/primefaces/primefaces/issues/545

thanks kukeltje
Primefaces 5.2
Apache Tomcat 7.0.34
NetBeans 7.3.1
Linux Ubuntu

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 42 guests