JSF: automatic id generation
843844May 24 2007 — edited May 25 2007Hello all,
I use MyFaces Tomahawk and have a t:dataTable containing a t:inputText (also other ones but not appropriate here). i have a property in my bean that's returning a unique value for each row in the data-table
the method getId of the backing-bean is returning values like 0_1 or 2_5_12_3.
i want the id of the inputText to be rendered as e.g. qty_2_5_12_3, so i use the el-expression "qty_#{bean.id}" but no success
if i use this expression in an outputText it generates the correct output but if i use it in the id-attribute of t:inputText it's nothing like the outputText and i want to use the id in javascript-functions, so he won't find that id.
i tried with forceId=true and forceIdIndex=false on the t:inputText, also tried with prependId=false on the form, but with no success.
how can i get the id like i want, because i'm trying it for a whole day now and it's driving me insane
Every tip/suggestion/sample code is more than appreciated.
Many thanks
Roel