Hello,
I am trying to use an ajaxZone element around some components that include
textfields and a button.
I do not want the textfields to be ajaxified.
So I tried using the inspectElement attribute and provided the
inspectElement method (same as in jsf extensions tutorial with a bit of
modification)
However it seems that the method I provided is not being called and the
default behavior of ajaxZone (ajaxifying inputs, buttons and options) is
taking place. Hence everytime I click on the textfield an ajax request is
being generated.
Below is my code snippet (Note: I am also using woodstock components in this
example).
<webuijsf:script type="text/JavaScript">
function inspectElement(element) {
var result=false;
if (null != element) {
var tagName = element.id;
alert(nodeName);
if (null != tagName) {
if (tagName.equals("loadBtn")) {
result = true;
}
}
}
return false;}
</webuijsf:script>
<jsfExt:ajaxZone id="zone1" inspectElement="inspectElement">
<table>
<tr>
<td><webuijsf:label for="txtID" id="label1" text="ID:" /></td>
<td><webuijsf:textField text="#{backingBean.id}" id="txtId"
valueChangeListenerExpression="#{backingBean.someAction}" columns="30"
/></td>
</tr>
<tr>
<td colspan="2"><webuijsf:button id="loadBtn" text="Load"
/></td>
</tr>
</table>
</jsfExt:ajaxZone>
Am I missing something? Or am I misunderstanding the role of the
inspectElement?
Thanks a lot
Rasha
--
View this message in context: http://www.nabble.com/ajaxZone%3A-inspectElement-problem-tp14319340p14319340.html
Sent from the jsf-extensions users mailing list archive at Nabble.com.