I made a few changes to the Velocity template and posted a new change
bundle. Based on my limited testing, things seem to be working. I
figured out the sortable table problem: my table wasn't in a form.
With the standard commandLink, I would get a message on the page telling
me that the link was disabled because it was not in a form. The
IconHyperlink, however, seems to fail silently if there is not enclosing
form. Not a big deal. Just took some digging to find it. :)
As far as what I has to do to make the components work in a Facelets
app, there's not a whole beyond the standard Facelets setup (assuming,
of course, /META-INF/woodstock.taglibs.xml is in the classpath, as it is
with my modified webuijsf.jar file). I took the basic and sortable
table mark up (just whe webuijsf:table tag) from the examples and pasted
it in my Facelets page. That rendered, but it wasn't pretty, so I had
to add the theme servlet to my web.xml and map it, then change my <head>
tags in my template to <webuijsf:head> to get it to add the links for
the CSS and JS the components need.
Our most pressing need is the sortable table (we have a project whose UI
is blocking on that ;), so that's all I've focused on. When I get a
chance, I'll try to recreate the example web app using all Facelets and
see what breaks. :) I'm pretty sure the <webuijsf:page> is going to
cause issues with the XHTML nature of Facelets output (at least it did
with the Creator2 components), but I'll double check that.
-----
Jason Lee, SCJP
Programmer/Analyst
http://www.iec-okc.com
> -----Original Message-----
> From: Jason Lee
> Sent: Friday, February 16, 2007 5:29 PM
> To: dev_at_woodstock.dev.java.net
> Subject: RE: Re: Facelets support
>
> I just tried the sortable table. It renders but doesn't
> sort, so I'll have to dig a bit there.
>
> I have to head out now, but I'll try to write those steps up
> over the weekend or Monday morning.
>
> -----
> Jason Lee, SCJP
> Programmer/Analyst
> http://www.iec-okc.com
>
>
> > -----Original Message-----
> > From: Jayashri.Visvanathan_at_Sun.COM
> > [mailto:Jayashri.Visvanathan_at_Sun.COM]
> > Sent: Friday, February 16, 2007 5:22 PM
> > To: dev_at_woodstock.dev.java.net
> > Subject: Re: Facelets support
> >
> > hi Jason,
> > Thanks a lot for the patch. Thats great progress. Have you tried
> > components other than table ? Also,would you mind posting the steps
> > you followed to get components working in a facelets app ?
> That way,
> > we can try it and post it as a tech tip for the benefit of others.
> >
> > Thanks
> > -Jayashri
> >
> > Jason Lee wrote:
> >
> > >Well, I think have it working. It took longer than I
> > thought, but it
> > >seems to work to the extent that I've gotten to test, which
> > is pretty
> > >much just a basic table on a Facelets page. After mapping
> the theme
> > >servlet and replacing <head> with <webuijsf:head>, the
> table renders
> > >all 10 rows (I just copied the example MBs) and looks as
> > pretty as the
> > >JSP example on the Woodstock site. :)
> > >
> > >I created a change bundle like we use on the JSF RI, so you
> > can see the
> > >added files and the diffs. Please let me know if you have any
> > >questions. I hope this all works for you, as we really need
> > Facelets
> > >support to use these components. :)
> > >
> > >I've posted the change bundle on the issue #3 below.
> > >
> > >Feedback is welcome! :)
> > >
> > >-----
> > >Jason Lee, SCJP
> > >Programmer/Analyst
> > >http://www.iec-okc.com
> > >
> > >
> > >
> > >
> > >>-----Original Message-----
> > >>From: Jason Lee
> > >>Sent: Friday, February 16, 2007 11:43 AM
> > >>To: dev_at_woodstock.dev.java.net; users_at_woodstock.dev.java.net
> > >>Subject: Facelets support
> > >>
> > >>Just an FYI. I opened an issue on the tracker for
> Facelets support
> > >>(https://woodstock.dev.java.net/issues/show_bug.cgi?id=3,
> > and another
> > >>that I found that may or may not be valid
> > >>https://woodstock.dev.java.net/issues/show_bug.cgi?id=4).
> > I have the
> > >>FileGenerator class and velocity template written, and have
> > modified
> > >>the build system to bundle the taglib with the jar. I
> just have to
> > >>write a quick and dirty app to make sure it all works,
> > which may mean
> > >>porting the demos to Facelets. We'll see. :)
> > >>
> > >>-----
> > >>Jason Lee, SCJP
> > >>JSF RI Dev Team
> > >>Programmer/Analyst
> > >>http://www.iec-okc.com
> > >>
> > >>------------------------------------------------------------
> > ---------
> > >>To unsubscribe, e-mail: dev-unsubscribe_at_woodstock.dev.java.net
> > >>For additional commands, e-mail: dev-help_at_woodstock.dev.java.net
> > >>
> > >>
> > >>
> > >>
> > >
> >
> >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: dev-unsubscribe_at_woodstock.dev.java.net
> > >For additional commands, e-mail: dev-help_at_woodstock.dev.java.net
> > >
> > >
> > >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe_at_woodstock.dev.java.net
> > For additional commands, e-mail: dev-help_at_woodstock.dev.java.net
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_woodstock.dev.java.net
> For additional commands, e-mail: dev-help_at_woodstock.dev.java.net
>
>