document how to set a focus on the first field of a dynamically generated set
of input fields
---------------------------------------------------------------------------------------------
Key: TOMAHAWK-1444
URL: https://issues.apache.org/jira/browse/TOMAHAWK-1444
Project: MyFaces Tomahawk
Issue Type: Improvement
Components: Data List
Reporter: Ralf Hauser
this should be added to http://myfaces.apache.org/sandbox/focus.html
My code to generate the fields looks like
<t:dataList
var="propSubItem"
value="#{propItem.subItems}"
layout="simple"
rowCountVar="x"
rowIndexVar="y">
<h:inputText value="#{propSubItem.name}" size="5"
style="width:65px"></h:inputText>
</t:dataList>
As opposed to otherwise, I omit the inputText tag's id field. I noticed that
just hardcoding the
"*formName*:_idJsp9:0:_idJsp13:0:_idJsp14"
appears to work in quick-and-dirty tests, but there must be a better way to
focus on the first of the generated input fields and I didn't find anything in
the mailing lists.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.