我有这样的rowEdit:http://www.primefaces.org/showcase/ui/data/datatable/edit.xhtml
点击铅笔后,我必须集中输入“id”。有什么想法吗?<p:rowEditor onclick="setFocus()">
...
</p:rowEditor>
<f:facet name="input">
<p:calendar id="startShiftFocus" value="#{oneRow.startShift}" locale="cs" pattern="#{i18n['dateTimeFormat']}" showOn="" timeOnly="true"></p:calendar>
</f:facet>
function setFocus(){
document.getElementById("startShiftFocus").focus();
}