I have taskflow containing a .jsff page (Let's call this child page) in which we are calling javascript method on click of a button. The javascript methos is doing
element = findComponent("id")
and then doing some operation on that element. This javascript method is added to .jsff page as a resource.
This taskflow is inserted in another page (Let's call this page as parent page) as a region . Now the parent page also has an element with id ="id" which is being used in findComponent of child page, that is child page and parent page has the same id.
So does invoking of javascript from child page taskflow will find element of child page or parent page?