So far, this is what I have that is partially working:

*copy faces-config.xml to sun-faces-config.xml
*change the following for 'htmlDate' as an example in
sun-faces-config.xml:

=============================================
....
 <component>
    <component-type>org.apache.myfaces.HtmlInputDate</component-type>
 
<component-class>org.apache.myfaces.custom.date.HtmlInputDate</component
-class>
    <!-- Hide the non-typesafe Value property -->
    <property>
      <property-name>value</property-name>
      <property-extension>
        <category>DATA</category>
        <is-hidden>false</is-hidden>
        <is-bindable>true</is-bindable>
      </property-extension>
    </property>
    
    <component-extension>
      <component-family>javax.faces.Input</component-family>
      <renderer-type>org.apache.myfaces.Date</renderer-type>
    </component-extension>
  </component>

.....
        <renderer>
            <component-family>javax.faces.Input</component-family>
            <renderer-type>org.apache.myfaces.Date</renderer-type>
 
<renderer-class>org.apache.myfaces.custom.date.HtmlDateRenderer</rendere
r-class>
                      <renderer-extension>
                        <instance-name>htmlDate</instance-name>
                        <tag-name>htmlDate</tag-name>
                        <taglib-prefix>x</taglib-prefix>
        
<taglib-uri>http://myfaces.apache.org/extensions</taglib-uri>
                      </renderer-extension>
        </renderer>
=============
Add the following to the MANIFEST.MF used to create the
myfaces-extensions.complib:

================
X-Rave-API-Compatibility-Version: 1.0
X-Rave-Library-URI: http://myfaces.apache.org/extensions
X-Rave-Library-Version: 1.0.9
X-Rave-Library-Title: MyFacesExtensions
X-Rave-Runtime-Path: myfaces-extensions.jar
X-Rave-Design-Time-Path: myfaces-extensions-dt.jar
====================

And lastly, the RAVE tool in JSC does autogenerate the BeanInfoBase
classes (and there are also some ANT examples that you can use from the
JSC examples I think).  However, you still need to manually create the
BeanInfo that extends the base:

===================

> -----Original Message-----
> From: Bruno Aranda [mailto:[EMAIL PROTECTED] 
> Sent: Saturday, June 11, 2005 6:00 AM
> To: MyFaces Discussion; [EMAIL PROTECTED]
> Subject: Re: Java Studio Creator and MyFaces
> 
> Yes, you just plant a seed and the tree will grow if 
> developers water it... ;-)
> 
> Bruno
> 
> 2005/6/10, Craig McClanahan <[EMAIL PROTECTED]>:
> > On 6/10/05, Darren Hartford <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > After reading through the thread on this mailing list, on the JSC 
> > > forums, and googling, it seems that it could theoritcally be 
> > > possible to simply update the existing 
> myfaces-extensions.jar file 
> > > with a modified MANIFEST.MF and sun-faces-config.xml file.
> > >
> > > Jar -uf myfaces-extensions.jar META-INF/sun-faces-config.xml
> > >
> > 
> > If the components themselves obey the other rules listed on Edwin's 
> > wiki (such as all the component properties having getters 
> and setters 
> > instead of using the generic attributes capability), that is indeed 
> > all it should take.
> > 
> > > With the 'correct' sun-faces-config.xml, this should 
> alleviate the 
> > > IntrospectionError that normally happens.  Has anyone created a 
> > > sun-faces-config.xml file for use with myfaces-extensions?
> > >
> > 
> > I'd be happy to assist, but won't have time to do the whole thing.
> > Maybe I can do a starter for one or two components as an 
> example, and 
> > let you guys hammer out the rest of them.
> > 
> > Craig
> > 
> > > -D
> >
> 

Reply via email to