I have a problem referencing a component inside an ajax update so it can get updated. Here`s the scenario.
I have a p:tabView that has a dynamic creation of tabs. Inside that tabView I have a p:panel and a p:dataTable 1. In the panel I have a text field that needs to be updated called cached-articles-text. When I check its id using firebug I see that it is "tabs:0:cached-articles-text".
I need it to be updated on dataTable pagination. So inside the dataTable I have the following code:
<p:ajax event="page" update="something_goes_here"/>
That should update the text field.
How could I update that textField or the panel that contains the textField? The problem is that when I change the tab the id also changes:
"tabs:0:cached-articles-text"
"tabs:1:cached-articles-text"
"tabs:2:cached-articles-text"