Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 39911 invoked from network); 3 Sep 2009 15:59:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Sep 2009 15:59:20 -0000 Received: (qmail 75652 invoked by uid 500); 3 Sep 2009 15:59:19 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 75596 invoked by uid 500); 3 Sep 2009 15:59:19 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 75588 invoked by uid 99); 3 Sep 2009 15:59:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Sep 2009 15:59:19 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Sep 2009 15:59:17 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7717E234C004 for ; Thu, 3 Sep 2009 08:58:57 -0700 (PDT) Message-ID: <1063124555.1251993537475.JavaMail.jira@brutus> Date: Thu, 3 Sep 2009 08:58:57 -0700 (PDT) From: "Jakob Korherr (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Commented: (TOMAHAWK-1444) document how to set a focus on the first field of a dynamically generated set of input fields In-Reply-To: <1869862932.1251992818215.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/TOMAHAWK-1444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12751066#action_12751066 ] Jakob Korherr commented on TOMAHAWK-1444: ----------------------------------------- you can use , set forceId="true" and forceIdIndex="false", then you'll get those kind of Ids for your textfields: yourAssignedId[0] yourAssignedId[1] ... then just put a after . I guess this should work! > 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 > var="propSubItem" > value="#{propItem.subItems}" > layout="simple" > rowCountVar="x" > rowIndexVar="y"> > > > > > 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.