Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 95970 invoked from network); 1 Jul 2009 18:38:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Jul 2009 18:38:06 -0000 Received: (qmail 15284 invoked by uid 500); 1 Jul 2009 18:38:16 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 15214 invoked by uid 500); 1 Jul 2009 18:38:16 -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 15206 invoked by uid 99); 1 Jul 2009 18:38:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jul 2009 18:38:16 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mconcini@gmail.com designates 209.85.219.221 as permitted sender) Received: from [209.85.219.221] (HELO mail-ew0-f221.google.com) (209.85.219.221) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jul 2009 18:38:06 +0000 Received: by ewy21 with SMTP id 21so1313878ewy.12 for ; Wed, 01 Jul 2009 11:37:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=pPhK9UbXcQGI+mufefvmWZNeCmBb55yYFAomSHz4qXU=; b=PZY5I5RjI1MUjtbM9dFLVeuiiTGJ36J/9WmNculjNMfdEguWkaEMOG+0/udmmETYhY zWJCKX1nFdcRc6/EiP8Df+VEJHoHmWzEABCGLDocNF360etHQdSXcp0+ZJDmqWWa4IlZ PWoLip41c8Qag3RW56ZjHJ0ox/WwEfeRYBwe0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=J4ujtwT4MgW0B7Vxia0BmboPT8Wj1yeYTBNb9+nD9bCm0v0ZsW1W22Z38ZZ0BRkcuQ WeqA1CWJ8RL3I5+/Dey/qzj0JMl2BhoMQLuz5d8wcD/PDc21a3j7HdoUbarsijLHgSwv 2hMxwr4ZZIXzObztpzaa1bmLkp05fCcB7T8dw= Received: by 10.210.34.2 with SMTP id h2mr5606463ebh.99.1246473465197; Wed, 01 Jul 2009 11:37:45 -0700 (PDT) Received: from ?9.37.244.145? (bi01p1.nc.us.ibm.com [129.33.49.251]) by mx.google.com with ESMTPS id 7sm2824135eyg.7.2009.07.01.11.37.44 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 01 Jul 2009 11:37:44 -0700 (PDT) Message-ID: <4A4BACF3.40208@gmail.com> Date: Wed, 01 Jul 2009 14:37:39 -0400 From: Michael Concini User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 To: MyFaces Development Subject: help with renderer implementation Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I'm currently working on implementing the renderers for UIOutcomeTarget for the JSF 2.0 spec and need some help in figuring out how the builder is performing the code generation for other components so I can then create my own. So far, I've written the following classes for org.apache.myfaces.shared_impl.renderkit.html to handle the encoding/decoding: HtmlOutcomeTargetRendererBase - parent class to handle common actions for both buttons and links (e.g. calling into getBookmarkableURL, etc) HtmlOutcomeTargetLinkRendererBase - bookmarable link renderer HtmlOutcomeTargetButtonRendererBase - bookmarkable button renderer What I need some assistance with is the builder plugin work. I see several potential places where I'd need to implement code, but its hard to tell what is really necessary, what might be generated in addition to the javax.faces.component.html classes, and what may be remnants of older versions of myfaces. There are builder xml files: src/main/resources/META-INF/maven-faces-plugin/components/javax/faces/html/Html*.xml src/main/resources/META-INF/maven-faces-plugin/renderers/javax/faces/html/Html.xml annotated impl files: org.apache.myfaces.renderkit.html.HtmlRenderer and there are also tag related classes: org.apache.myfaces.taglib.html.HtmlTag org.pache.myfaces.shared_impl.taglib.html.HtmlELTagBase Is there someone who has worked on this before who could help me out with how to do this? Is there a step by step documented somewhere? I did some searches on the myfaces wiki and was unable to find anything that was much help. Any help would be much appreciated. Thanks, Mike