You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by hn...@apache.org on 2019/09/16 13:43:38 UTC

[myfaces-tobago] branch master updated: fix: ajaxListener and tc:tree

This is an automated email from the ASF dual-hosted git repository.

hnoeth pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git


The following commit(s) were added to refs/heads/master by this push:
     new f890631  fix: ajaxListener and tc:tree
f890631 is described below

commit f8906314716dd01a46b2d643b7b804af94fc59ea
Author: Henning Noeth <hn...@apache.org>
AuthorDate: Mon Sep 16 15:43:28 2019 +0200

    fix: ajaxListener and tc:tree
    
    The name-attribute must be used to get the ajax element ID. This makes
    sure, that the ajaxListener and single selection on tc:tree works as
    intended.
---
 tobago-theme/tobago-theme-standard/src/main/npm/ts/tobago-command.ts | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tobago-theme/tobago-theme-standard/src/main/npm/ts/tobago-command.ts b/tobago-theme/tobago-theme-standard/src/main/npm/ts/tobago-command.ts
index d998774..94dcca6 100644
--- a/tobago-theme/tobago-theme-standard/src/main/npm/ts/tobago-command.ts
+++ b/tobago-theme/tobago-theme-standard/src/main/npm/ts/tobago-command.ts
@@ -38,8 +38,7 @@ export class CommandMap {
 
     if (change.execute || change.render) {
       jsf.ajax.request(
-          element,
-          // element.getAttribute("name"),
+          element.getAttribute("name"),
           event,
           {
             "javax.faces.behavior.event": "change",