-
1. Re: Turning off auto IDs??
mp911de Nov 3, 2011 3:38 AM (in response to joeskull)Hi there,
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.
Best regards,
Mark Paluch
-
2. Re: Turning off auto IDs??
liuliu Nov 3, 2011 4:10 AM (in response to joeskull)hi,
i think you have probably something like a4j:include between form and textbox.
-
3. Re: Turning off auto IDs??
joeskull Nov 3, 2011 4:39 PM (in response to liuliu)I tried the (h:form prependId="false") code and that didnt work and the textbox is part of an include.
Any more ideas??
-
4. Re: Turning off auto IDs??
liuliu Nov 4, 2011 4:16 AM (in response to joeskull)use ui:include to replace a4j:include if you dont want the id extra.
-
5. Re: Turning off auto IDs??
joeskull Nov 4, 2011 3:48 PM (in response to liuliu)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
<ui:define
<h:form
<rich:simpleTogglePanel
<s:decorate
<ui:define
<h:imputText
then closing tags, any of these causing it??
-
6. Re: Turning off auto IDs??
slite Nov 5, 2011 9:07 PM (in response to joeskull)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.
-
7. Re: Turning off auto IDs??
joeskull Nov 5, 2011 9:24 PM (in response to slite)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.
-
8. Re: Turning off auto IDs??
slite Nov 5, 2011 10:01 PM (in response to joeskull)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.
-
9. Re: Turning off auto IDs??
slite Nov 5, 2011 10:04 PM (in response to slite)rich:element is what you might want to use, you should be able to directly call .focus on the returned element.