Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 59421 invoked from network); 11 May 2005 15:07:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 May 2005 15:07:26 -0000 Received: (qmail 17092 invoked by uid 500); 11 May 2005 15:11:06 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 17029 invoked by uid 500); 11 May 2005 15:11:04 -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 16945 invoked by uid 99); 11 May 2005 15:11:03 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 11 May 2005 08:11:03 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 6D38A2E1 for ; Wed, 11 May 2005 17:07:15 +0200 (CEST) Message-ID: <1721742742.1115824035445.JavaMail.jira@ajax.apache.org> Date: Wed, 11 May 2005 17:07:15 +0200 (CEST) From: "Boris Kovalenko (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Commented: (MYFACES-192) inputParam component Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/MYFACES-192?page=comments#action_65010 ] Boris Kovalenko commented on MYFACES-192: ----------------------------------------- Nice and very usefull component. Hope it (or something like) will be included in the next release of MyFaces. > inputParam component > -------------------- > > Key: MYFACES-192 > URL: http://issues.apache.org/jira/browse/MYFACES-192 > Project: MyFaces > Type: New Feature > Versions: 1.0.9 beta > Environment: All > Reporter: Rob Decker > Attachments: inputParam.tar.gz > > inputParam extends inputHidden by adding an attribute, paramValue, which allows value binding predefined form values to a managed bean. For example, if you have a managed bean named searchBean with a setLastModified(Date d) method you can create a hidden form element with a preset date: > > > > > > > > renders: > > When the form is submitted searchBean.setLastModified is called with the Date object. When the link is clicked there is no need to look in the request for the parameters of the search. There is no need to modify the bean if a different search is required. Just create a new form/commandLink and specify the new parameters. I used it to create quick searches: New in last Day/Week/Month using the same bean for a full fledged form that let's the user specify the dates without having to modify the bean or tie it to faces/request to populate it. > The attached archive contains the component package and the required xml fragments for the tld and faces-config. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira