incubator-adffaces-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Büttner (JIRA) <>
Subject [jira] Created: (ADFFACES-456) javasript in Core.js is broken, app stops working if components have special names
Date Wed, 18 Apr 2007 05:53:15 GMT
javasript in Core.js is broken, app stops working if components have special names

                 Key: ADFFACES-456
             Project: MyFaces ADF-Faces
          Issue Type: Bug
         Environment: adf
            Reporter: Peter Büttner

I found a strange bug in our application:

In some 'very' special cases the app doesn't accepts any user interaction.
The browser (IE6, Mozilla 1.7.x) reports javascript errors. 
e.g. in formSubmit, still found in the (newest?) version:


Reason is something like
where form is the real and correct html-form element.

But: if one has a component with e.g. <input id='name' name='name' ...> those 
browsers doesn't calculate "" to the form-nodes attribute 'name', 
but to the (html) input  element!

This also occures on components with id='target'  in another core function.

Other attributes of a <form> maybe (from

I think it is not a good solution to let programmers avoid component id's 
like 'name, target, action, title, method' since that are common names
of input data components. The attributes doesn't make problems if the javascript 
code don't use those names like 'form.attribute' ( and are 
used, but i haven't searched for the others)

a solution maybe to use the dom functions and wrap them for easy usage:
   function getFormName(form){return form.getAttribute('name');}
   function getFormTarget(form){return form.getAttribute('target');}

And probably tell other js developers about this pitfall.

As a quick solution for our application i renamed those components.

Well, i really wondered how such a bug lives for years:-) But that seems to happen.

Peter Büttner

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message