I want to be able to access an element in composite component within javascript. Since there may be several instances of this component on the page. how do I access some specific element within a specific instance of that component?
<ui:component
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:cc="http://java.sun.com/jsf/composite"
xmlns:p="http://primefaces.org/ui">
<cc:implementation>
<script type='text/javascript'>
function getAddedTagsInputField(){
return ...;
}
</script>
...
...
...
<h:inputHidden id="tagsToAdd_in" />
</cc:implementation>
</ui:component>