i suppose not. Each component without an explicit set id get's a generated id. In your case you put the exampleText in some container without an id. There is a possibility for enabling/disabling adding some Id stuff (h:form prependId="false"), but i guess it won't help you.
i think you have probably something like a4j:include between form and textbox.
I tried the (h:form prependId="false") code and that didnt work and the textbox is part of an include.
Any more ideas??
use ui:include to replace a4j:include if you dont want the id extra.
whoops, i read that wrong it was an insert not an include I was looking at. I dont see any includes in this code.
This is a
then closing tags, any of these causing it??
i would guess its the simpleTogglePanel, but why do you care about IDs anyway? JSF is all about not caring about ids anyway, everything has it's setters and getters. There are hardly any cases you should need to care about client IDs.
well I am trying to set a focus on the inputText, I have gotten it so that I may set the focus on a different page but when I try to do the same here it doesnt work. So I assumed it was caused be the ID being wrong.
you might want to use
rich:clientId('inputId')in that case.
where 'inputId' is the id which you provided at the id= on the inputText.
Documentation is here:
google for some examples on that one.
rich:element is what you might want to use, you should be able to directly call .focus on the returned element.