Okay guys, I got it!
Mike, I tried your setup and it worked. This puzzled me because I know
that I (and probably you too) actually have the custom selectItems class
in the sandbox.jar. So why would it work as t:selectItems and not
s:selectItems? The answer was that my sandbox taglib was failing to
parse. Somehow I missed that error in the logs.
"java.lang.ClassNotFoundException:
facelets.GraphicImageDynamicComponentHandler"
The error was caused by some sandbox components that I copied from the
wiki, but are not in my version of the jar. I guess you're right, that
for sandbox a piecemeal approach to building your own taglib file is the
only sane approach. The "complete and accurate" goal is only attainable
for Tomahawk, which has releases.
I have a beef with facelets though, in that it gave me no error message
when I tried to use a namespace that wasn't loaded. I get a nice little
error message when I try to use a component that's not in a supported
namespace:
<t:selectItems> Tag Library supports namespace:
http://myfaces.apache.org/tomahawk, but no tag was defined for name:
selectItems
Not a big deal, but it would have told me what I was screwing up a whole
lot quicker. Maybe I'll suggest it to them.
Sorry for bothering you with something I should have caught myself!
Thanks again,
Jeff Bischoff
Kenneth L Kurz & Associates, Inc.
Mike Kienenberger wrote:
> Ok. I'm using exactly one t:selectItems
>
> Maybe this is of some help:
>
> xmlns:t="http://myfaces.apache.org/tomahawk"
> [...]
> <t:selectItems
> value="#{locationServicePage.currentService.location.serviceList}"
> var="locationService"
> itemLabel="#{locationService.serviceType.UIDisplayLabel}"
> itemValue="#{locationService}"
>
> />
> <facelettaglib>
> <namespace>http://myfaces.apache.org/tomahawk</namespace>
> [...]
> <tag>
> <tagname>selectItems</tagname>
> <component>
>
> <componenttype>org.apache.myfaces.UISelectItems</componenttype>
> </component>
> </tag>
>
>
>
> On 2/8/07, Mike Kienenberger <mkienenb@gmail.com> wrote:
>> I'm using a 1.1.520060818 tomahawk snapshot, so I'm not sure how
>> helpful I can be.
>> I've also switched to using an internal orderedSelectItems component,
>> so I'm not even sure if I'm using s:selectItems anywhere in my code at
>> present.
>>
>> On 2/8/07, Jeff Bischoff <jbischoff@klkurz.com> wrote:
>> > Alright. I'm working off of the Release Candidates now, so once they
>> are
>> > released and I've tested my taglib entries out more, I'll update
>> both wikis.
>> >
>> > On a side note, I do need to test these more before reposting them
>> > anywhere. Specifically, I still can't get s:selectItems to work in
>> > facelets. (It is in sandbox for me, since I am using the release
>> > candidates) Did the class name change at all when it was promoted?
>> > Perhaps it was in another package, and I need to revert that?
>> >
>> > Hmm maybe someone other than Mike can comment, as I'm sure by now I'm
>> > giving him gray hairs. ;)
>> >
>> > Mike Kienenberger wrote:
>> > > I see my answer wasn't clear. Sorry. Yes, that's what I understood
>> > > you to mean.
>> > >
>> > > After thinking about it a little more, my suggestion would be to
>> > > update for the current release. Anyone using the current trunk
>> > > should be knowledgeable enough to handle the differences between
>> trunk
>> > > and release.
>> > >
>> > > On 2/8/07, Jeff Bischoff <jbischoff@klkurz.com> wrote:
>> > >> Mike,
>> > >>
>> > >> Sorry for the confusion.
>> > >>
>> > >> I have these tags, and already added them to my appropriate
>> taglibs. But
>> > >> I wanted to update the wiki to include them also. I just didn't know
>> > >> whether to update the wiki to reflect the current release or the
>> current
>> > >> trunk. :)
>> > >>
>> > >> Mike Kienenberger wrote:
>> > >> > Jeff, I add tags as I need them. That way I always know that
>> they
>> > >> work.
>> > >> > Actually, I think I have tags for convertNumber
>> > >> >
>> > >> > <tag>
>> > >> > <tagname>convertDateTime</tagname>
>> > >> > <converter>
>> > >> >
>> > >> >
>> > >>
>> <converterid>org.apache.myfaces.custom.convertDateTime.DateTimeConverter</converterid>
>>
>> > >>
>> > >> >
>> > >> > </converter>
>> > >> > </tag>
>> > >> >
>> > >> > I have selectItems in my tomahawk config file:
>> > >> >
>> > >> > <tag>
>> > >> > <tagname>selectItems</tagname>
>> > >> > <component>
>> > >> >
>> > >> > <componenttype>org.apache.myfaces.UISelectItems</componenttype>
>> > >> > </component>
>> > >> > </tag>
>> > >> >
>> > >> > Andrew's tool can also be useful. I think there's a similar
tool
>> > >> > already checked into Myfaces (pulled over from Trinidad) as well.
>> > >> >
>> > >> > The promotion between sandbox and tomahawk definitely causes
>> issues
>> > >> > and is probably the best reason for resolving
>> > >> > http://issues.apache.org/jira/browse/TOMAHAWK79.
>> > >> >
>> > >> >
>> > >> > On 2/8/07, Jeff Bischoff <jbischoff@klkurz.com> wrote:
>> > >> >> Thanks Mike, I see your changes. :)
>> > >> >>
>> > >> >> There are a few more sandbox tags not listed on the facelets
wiki
>> > >> (only
>> > >> >> listed on our wiki, beyond the tomahawk one). Think I should
add
>> > >> them to
>> > >> >> this facelets wiki? I don't want to mistakenly add something
>> that's
>> > >> been
>> > >> >> promoted. Examples: convertDateTime, convertNumber
>> > >> >>
>> > >> >> Then there is selectItems, which was recently promoted. It's
>> currently
>> > >> >> in our wiki's sandbox section, and not in either of the major
>> taglib
>> > >> >> sections. Not sure which one to add it to. Stable releases
>> have this
>> > >> >> component in sandbox, the trunk has it in tomahawk.
>> > >> >>
>> > >> >> I'm willing to make these changes myself, just wanted to check
>> before
>> > >> >> screwing it up for somebody else. Do we normally keep these
wikis
>> > >> >> current for the trunk or the latest release?
>> > >> >>
>> > >> >> Regards,
>> > >> >>
>> > >> >> Jeff Bischoff
>> > >> >> Kenneth L Kurz & Associates, Inc.
>> > >> >>
>> > >> >> Mike Kienenberger wrote:
>> > >> >> > I stand corrected. It's not there. Weird.
>> > >> >> >
>> > >> >> > I've realphabetized the sandbox taglib file and added
subForm.
>> > >> >> >
>> > >> >> > On 2/8/07, Mike Kienenberger <mkienenb@gmail.com>
wrote:
>> > >> >> >> <tag>
>> > >> >> >> <tagname>subForm</tagname>
>> > >> >> >> <component>
>> > >> >> >>
>> > >> >> <componenttype>org.apache.myfaces.SubForm</componenttype>
>> > >> >> >>
>> > >> <renderertype>org.apache.myfaces.SubForm</renderertype>
>> > >> >> >> </component>
>> > >> >> >> </tag>
>> > >> >> >>
>> > >> >> >>
>> > >> >> >> I'm pretty sure it's on the sandbox wiki because
I think
>> that's
>> > >> where
>> > >> >> >> I got it, but I'll doublecheck.
>> > >> >> >>
>> > >> >> >>
>> > >> >> >> On 2/8/07, Jeff Bischoff <jbischoff@klkurz.com>
wrote:
>> > >> >> >> > speaking of which, does anybody have the correct
taglib
>> tag for
>> > >> >> >> > s:subform? It's not on either wiki. :)
>> > >> >> >> >
>> > >> >> >> > Jeff Bischoff wrote:
>> > >> >> >> > > That's true Mike, but here's where it gets
dangerous.
>> Those tag
>> > >> >> files
>> > >> >> >> > > are being copied probably from one of the
wikis. At best,
>> > >> they are
>> > >> >> >> > > complete and accurate for the latestandgreatest
>> version, i.e.
>> > >> >> >> the trunk.
>> > >> >> >> > >
>> > >> >> >> > > Even if that's true, the user of a stable
build is
>> still tasked
>> > >> >> with
>> > >> >> >> > > figuring out which components were added
or promoted
>> since his
>> > >> >> >> build and
>> > >> >> >> > > altering the tag files to match. If this
is not done,
>> facelets
>> > >> >> >> does not
>> > >> >> >> > > seem to complain but simply lets those
components fail
>> > >> >> silently. I'm
>> > >> >> >> > > going through this process today, as I've
noticed some
>> > >> components
>> > >> >> >> are in
>> > >> >> >> > > the wrong taglib file. (e.g. s:selectItems)
>> > >> >> >> > >
>> > >> >> >> > > So yes, because the project is volunteer,
nothing will
>> get done
>> > >> >> until
>> > >> >> >> > > somebody decides to do it. But I think
that if someone did
>> > >> >> choose to
>> > >> >> >> > > tackle this task, their efforts would be
quite worthwhile.
>> > >> These
>> > >> >> >> things
>> > >> >> >> > > (taglibs, tag handlers, etc) really do
belong in the jar
>> > >> itself.
>> > >> >> >> > >
>> > >> >> >> > > I'm not complaining that nobody has done
it yet, just
>> > >> pointing out
>> > >> >> >> that
>> > >> >> >> > > I feel it is worth doing. :)
>> > >> >> >> > >
>> > >> >> >> > > Regards,
>> > >> >> >> > >
>> > >> >> >> > > Jeff Bischoff
>> > >> >> >> > > Kenneth L Kurz & Associates, Inc.
>> > >> >> >> > >
>> > >> >> >> > > Mike Kienenberger wrote:
>> > >> >> >> > >> The easeofuse is part of the problem.
:)
>> > >> >> >> > >>
>> > >> >> >> > >> When it only takes 5 minutes to copy
the sandbox and
>> > >> tomahawk tag
>> > >> >> >> > >> files to your application, and then
another 10 to
>> download
>> > >> >> >> > >> t:updateActionListener, it's really
hard to justify
>> spending a
>> > >> >> week
>> > >> >> >> > >> trying to figure out how to integrate
automatic file
>> > >> generation
>> > >> >> >> > >> support into MyFaces in a volunteerdriven
project.
>> > >> >> >> > >>
>> > >> >> >> > >> On 2/7/07, Jeff Bischoff <jbischoff@klkurz.com>
wrote:
>> > >> >> >> > >>> Thanks for responding guys.
>> > >> >> >> > >>>
>> > >> >> >> > >>> Really, no official facelets support?
That would
>> explain the
>> > >> >> >> taglib.xml
>> > >> >> >> > >>> not being bundled. I had wondered
about that too. :)
>> > >> >> >> > >>>
>> > >> >> >> > >>> Having been on this mailing list
for quite a while, I
>> can
>> > >> tell
>> > >> >> >> that many
>> > >> >> >> > >>> other users do use facelets with
myfaces and tomahawk 
>> > >> which is
>> > >> >> >> the big
>> > >> >> >> > >>> reason why I'm comfortable converting
my application to
>> > >> >> >> facelets. It
>> > >> >> >> > >>> does involve a few extra steps,
and a few things don't
>> > >> work as
>> > >> >> >> expected,
>> > >> >> >> > >>> but overall it's not a big switch
from the user
>> standpoint.
>> > >> >> >> > >>>
>> > >> >> >> > >>> Well thanks for the code, it does
seem to work nicely.
>> > >> >> >> > >>>
>> > >> >> >> > >>> Regards,
>> > >> >> >> > >>>
>> > >> >> >> > >>> Jeff Bischoff
>> > >> >> >> > >>> Kenneth L Kurz & Associates,
Inc.
>> > >> >> >> > >>>
>> > >> >> >> > >>> Andrew Robinson wrote:
>> > >> >> >> > >>> > I tried to get MyFaces to
support Facelets a while
>> ago,
>> > >> but I
>> > >> >> >> think
>> > >> >> >> > >>> > the result was something along
the line of no tomahawk
>> > >> >> >> developers want
>> > >> >> >> > >>> > to bother. So, not being a
MyFaces developer and
>> not having
>> > >> >> the
>> > >> >> >> > >>> > patience to wait for others
to help and me not knowing
>> > >> enough
>> > >> >> >> about
>> > >> >> >> > >>> > the autogeneration and other
aspects of the build
>> process
>> > >> >> >> that would
>> > >> >> >> > >>> > affect this, I decided to
make the jsfcomp version
>> > >> which was
>> > >> >> >> very
>> > >> >> >> > >>> > easy to get out fast.
>> > >> >> >> > >>> >
>> > >> >> >> > >>> > We can hope for a kind volunteer
of the MyFaces
>> developer
>> > >> >> team to
>> > >> >> >> > >>> > champion facelets support,
but until then I guess
>> this will
>> > >> >> do.
>> > >> >> >> > >>> >
>> > >> >> >> > >>> > FYI  I am not trying to put
down anyone on the
>> MyFaces
>> > >> team
>> > >> >> >> > >>> >
>> > >> >> >> > >>> > On 2/7/07, Jeff Bischoff <jbischoff@klkurz.com>
wrote:
>> > >> >> >> > >>> >> Hey this tag handler works
great!
>> > >> >> >> > >>> >>
>> > >> >> >> > >>> >> ...So why hasn't it been
donated to Tomahawk? :)
>> > >> >> >> > >>> >>
>> > >> >> >> > >>> >> Or is Tomahawk not supposed
to have tag handler
>> classes
>> > >> >> for some
>> > >> >> >> > >>> reason?
>> > >> >> >> > >>> >> Andrew? Mike? :)
>> > >> >> >> > >>> >>
>> > >> >> >> > >>> >> Thanks for writing it!
>> > >> >> >> > >>> >>
>> > >> >> >> > >>> >> Regards,
>> > >> >> >> > >>> >>
>> > >> >> >> > >>> >> Jeff Bischoff
>> > >> >> >> > >>> >> Kenneth L Kurz & Associates,
Inc.
>> > >> >> >> > >>> >>
>> > >> >> >> > >>> >> Matthias Wessendorf wrote:
>> > >> >> >> > >>> >> > Thomas,
>> > >> >> >> > >>> >> >
>> > >> >> >> > >>> >> > check [1] for more
on it (search for
>> > >> updateActionListener),
>> > >> >> >> > >>> since you
>> > >> >> >> > >>> >> > need a *taghandler*
>> > >> >> >> > >>> >> >
>> > >> >> >> > >>> >> > M
>> > >> >> >> > >>> >> >
>> > >> >> >> > >>> >> >
>> > >> >> [1]http://wiki.apache.org/myfaces/Use_Facelets_with_Tomahawk
>> > >> >> >> > >>> >> >
>> > >> >> >> > >>> >> > On 2/2/07, Thomas
Chang <thomas2004ch@yahoo.de>
>> wrote:
>> > >> >> >> > >>> >> >> Hi Aleksandr,
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >> You are right.
I do use Facelets. But I can use
>> other
>> > >> >> ttags
>> > >> >> >> > >>> such as
>> > >> >> >> > >>> >> >> <t:commandLink/>
<t:selectOneMenu/> etc. in xHtml
>> > >> and they
>> > >> >> >> work
>> > >> >> >> > >>> well.
>> > >> >> >> > >>> >> >> Besides, I have
the followings on the top of my
>> files.
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >> Thanks
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >> Thomas
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >> <html xmlns="http://www.w3.org/1999/xhtml"
>> > >> >> >> > >>> >> >> xmlns:ui="http://java.sun.com/jsf/facelets"
>> > >> >> >> > >>> >> >> xmlns:h="http://java.sun.com/jsf/html"
>> > >> >> >> > >>> >> >> xmlns:f="http://java.sun.com/jsf/core"
>> > >> >> >> > >>> >> >> xmlns:t="http://myfaces.apache.org/tomahawk">
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >> Aleksandr Mazur
<mazur@reksoft.ru> schrieb:
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >> Hi Thomas,
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >> As I see you
are using faceletes.
>> updateActionListener
>> > >> >> >> should be
>> > >> >> >> > >>> >> >> presented in
tomahawk.taglib.xml. Is it?
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >> Best regards,
>> > >> >> >> > >>> >> >> Aleksandr
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >> Thomas Chang
<thomas2004ch@yahoo.de>
>> > >> >> >> > >>> >> >> 02.02.2007 12:14
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >> Please respond
to
>> > >> >> >> > >>> >> >> "MyFaces Discussion"
<users@myfaces.apache.org>
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >> To MyFaces Discussion
<users@myfaces.apache.org>
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >> cc
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >> Subject Error
by using <t:updateActionListener/>
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >> Hi all,
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >> My code look
as follow:
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >> myPage.xHtml
>> > >> >> >> > >>> >> >> ***************
>> > >> >> >> > >>> >> >> ...
>> > >> >> >> > >>> >> >> <t:commandLink
>> > >> >> >> > >>> >> >> action="openNewBrowser"
>> > >> >> >> > >>> >> >> immediate="true"
>> > >> >> >> > >>> >> >> value="Open
New Browser"
>> > >> >> >> > >>> >> >> target="readMessageWindow">
>> > >> >> >> > >>> >> >> <t:updateActionListener
property="property"
>> > >> >> >> > >>> >> >> value="message"></t:updateActionListener>
>> > >> >> >> > >>> >> >> </t:commandLink>
>> > >> >> >> > >>> >> >> ...
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >> But I get following
error when try to open
>> > >> myPage.xHtml.
>> > >> >> >> What's
>> > >> >> >> > >>> >> wrong?
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >> <t:updateActionListener>
Tag Library supports
>> > >> namespace:
>> > >> >> >> > >>> >> >> http://myfaces.apache.org/tomahawk,
but no tag was
>> > >> defined
>> > >> >> >> for
>> > >> >> >> > >>> name:
>> > >> >> >> > >>> >> >> updateActionListener
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >> Thanks
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >> Thomas
>> > >> >> >> > >>> >> >> ________________________________
>> > >> >> >> > >>> >> > Yahoo! 360° –
Bloggen und Leute treffen.
>> Erstellen Sie
>> > >> >> >> jetzt Ihre
>> > >> >> >> > >>> >> > eigene Seite –
kostenlos!.
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >> ________________________________
>> > >> >> >> > >>> >> > Yahoo! Messenger
 kostenlos* mit Familie und
>> Freunden
>> > >> >> >> von PC
>> > >> >> >> > >>> zu PC
>> > >> >> >> > >>> >> > telefonieren .
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >>
>> > >> >> >> > >>> >> >
>> > >> >> >> > >>> >> >
>> > >> >> >> > >>> >> >
>> > >> >> >> > >>> >>
>> > >> >> >> > >>> >>
>> > >> >> >> > >>> >>
>> > >> >> >> > >>> >
>> > >> >> >> > >>> >
>> > >> >> >> > >>> >
>> > >> >> >> > >>>
>> > >> >> >> > >>>
>> > >> >> >> > >>>
>> > >> >> >> > >>
>> > >> >> >> > >>
>> > >> >> >> > >>
>> > >> >> >> > >
>> > >> >> >> > >
>> > >> >> >> > >
>> > >> >> >> > >
>> > >> >> >> > >
>> > >> >> >> >
>> > >> >> >> >
>> > >> >> >> >
>> > >> >> >>
>> > >> >> >
>> > >> >> >
>> > >> >> >
>> > >> >>
>> > >> >>
>> > >> >>
>> > >> >
>> > >> >
>> > >> >
>> > >>
>> > >>
>> > >>
>> > >
>> > >
>> > >
>> >
>> >
>> >
>>
>
>
>
