Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

get component's id in code

Habib EslamiJan 8 2013 — edited Jan 8 2013
Hi everybody
excuse me, my english isn't very good
I use Jdeveloper 11.1.1.3.0

I need to get the Id of components related to a specified class in a bean.
for example in my page I have more than 10 InputFile componets and in code I should get the Id of these components and add them to a List.

I know that I can add one by one :
List<UIComponent> inputFile_comp = (List)new ArrayList<UIComponent>();
inputFile_comp.add(0, if1);
inputFile_comp.add(1, if2);
inputFile_comp.add(2, if3);
inputFile_comp.add(3, if4);
inputFile_comp.add(4, if5);
.
.
.

but I want to know that there is any way to take the entire InputFile's ids simultaneously and add them to a list?

Habib
This post has been answered by Timo Hahn on Jan 8 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 5 2013
Added on Jan 8 2013
1 comment
310 views