You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ba...@apache.org on 2006/02/15 02:06:47 UTC
svn commit: r377910 -
/myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/statechangednotifier/resource/stateChangedNotifier.js
Author: baranda
Date: Tue Feb 14 17:06:46 2006
New Revision: 377910
URL: http://svn.apache.org/viewcvs?rev=377910&view=rev
Log:
Now the stateChangedNotifier can exclude components using its component Ids using some javascript regex
Modified:
myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/statechangednotifier/resource/stateChangedNotifier.js
Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/statechangednotifier/resource/stateChangedNotifier.js
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/statechangednotifier/resource/stateChangedNotifier.js?rev=377910&r1=377909&r2=377910&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/statechangednotifier/resource/stateChangedNotifier.js (original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/statechangednotifier/resource/stateChangedNotifier.js Tue Feb 14 17:06:46 2006
@@ -57,16 +57,15 @@
{
processComponent(x[y]);
}
- else
+
+ if (arrCommandIds != null)
{
- if (arrCommandIds != null)
- {
- var elementId = x[y].id;
+ var elementId = x[y].id;
+ var onclick = x[y].onclick;
- if (elementId != null && elementId != '')
- {
- checkExclusion(elementId);
- }
+ if (elementId != null && onclick != null && elementId != '')
+ {
+ checkExclusion(elementId);
}
}
}
@@ -102,11 +101,11 @@
if (elementId.indexOf(":") > -1)
{
- idRegex = new RegExp(".*"+excludedId)
+ idRegex = new RegExp(".*"+excludedId+"([\\d+])?")
}
else
{
- idRegex = new RegExp(excludedId)
+ idRegex = new RegExp(excludedId+"([\\d+])?")
}
if (elementId.match(idRegex))