dev@jsftemplating.java.net

Re: JSFTemplating: ComponentType 's:decorate' not defined!

From: Imre Oßwald <io_at_mx.jevelopers.com>
Date: Sat, 15 Sep 2007 01:34:38 +0200

Hi Barry,

i don't think seam ui components will work (at least some of them,
because i think they use tag-handlers) now.
I always wanted to have a look at using seam in jsft but i still have
had no spare time to do it.
I also think seam is using facelets to provide EL-extensions, like
calling functions with parameters...
So there is probably much to do, to get it work "seam"lessly...
Apart from that some of the features, that do not depend to much on
facelets should work.

Maybe its time to look at it now.

Have a nice day,
qoob (Imre)


On 14.09.2007, at 23:51, Ken Paulsen wrote:

>
>
> Barrie Selack wrote:
>> Ken,
>>
>> Thanks for the reply. I was using Facelets (actual, not the
>> jsftemplating syntax) but decided to switch over to jsftemplating.
> The Facelets support is "good" but not 100% (yet). If you find any
> bugs or issues, please let us know and we'll do what we can to fix
> them quickly.
>
> JSTL and "Facelets components" are a couple features from Facelets
> that are not supported.
>
> ui:composition, ui:define, ui:insert, ui:include... these types of
> tags should work as they do in Facelets.
>> A sample file is below. I’ve been trying different components. Is
>> the table component the Woodstock one?
> Yes.
>> I seem to get errors when I add attributes to the table.
> What type of errors?
>> I am interested in the Facelets syntax, is there an example of the
>> Facelets syntax with jsftemplating. I couldn’t seem to find one,
>> and can’t check out the source from the office.
> I don't have a good example... Jason Lee might, or Imre. There are
> a couple test cases in the source code... you can access the source
> code from the www at:
>
> https://jsftemplating.dev.java.net/source/browse/jsftemplating/
>
> Check the test/files directory for some very simple test cases...
> the files should look just like normal Facelets files.
>> (also, is there a mailing list signup.. I’m just reading the
>> archive and sending direct to the list)
> Yes, you can join by going to:
>
> https://jsftemplating.dev.java.net/servlets/ProjectMailingListList
>
> Make sure you're logged into java.net, then you'll be able to
> subscribe to the "dev" alias. Once you do that, it will send you
> an email which you must reply to before it will add you. (I added
> you to this reply so you'll get it right away.)
>
> Let me know what other questions / issues you run into.
>
> Thanks!
>
> Ken
>>
>> Regards,
>> Barrie
>>
>> <sun:page>
>> <sun:html>
>> <sun:head id="head" />
>> <sun:body>
>> "Hello!
>> "<p>
>> <h:outputText value="Main Page" />
>> "</p>
>> "<p>
>>
>> <h:outputText value="Main Page" />
>> <sun:staticText text="#{DisplayContentList.blockCount}"/>
>>
>> <!-- Basic Table -->
>> <sun:table id="table1" title="TABLE">
>> <sun:tableRowGroup id="rowGroup1"
>> sourceData="#(DisplayContentList.blockData)"
>> sourceVar="block">
>> <sun:tableColumn id="col1"
>> alignKey="last" headerText="Content ID">
>> <sun:staticText text="X"/>
>> </sun:tableColumn>
>> <sun:tableColumn id="col2" alignKey="first"
>> headerText="Block ID">
>> <sun:staticText text="Y"/>
>> </sun:tableColumn>
>> <sun:tableColumn id="col3" alignKey="first"
>> headerText="Data">
>> <sun:staticText text="Z"/>
>> </sun:tableColumn>
>> </sun:tableRowGroup>
>> </sun:table>
>>
>> <h:form>
>> <s:decorate>
>> <h:inputText id="username" value="#
>> {identity.username}" size="40" styleClass="text"/>
>> </s:decorate>
>> </h:form>
>>
>> "</p>
>>
>> </sun:body>
>> </sun:html>
>> </sun:page>
>>
>> --------
>>
>> Ken Paulsen wrote:
>>
>> Hi Barrie,
>>
>> I haven't yet tried to get Seam working w/ JSFTemplating. If you
>> send
>> your page (or part of the page) you are trying to do this with, it
>> may
>> shed some light on this (mostly I'm curious if you're using the
>> Facelets
>> syntax, or the "template" syntax). If you're using the Facelets
>> syntax,
>> you should be able to use any component defined in the Facelets
>> taglib.xml file (provided you have the correct XML mapping
>> information
>> for it at the top of your file). If you're using the "template"
>> syntax
>> you'll need a "Factory" for this (or you can use the generic
>> "component"
>> factory... and it too recognizes the facelets taglib.xml, but the
>> mapping to a reasonable name isn't there yet).
>>
>> You can see the list of "known" components by going to:
>>
>> http://localhost:8080/<your-context-root>/info.jsf
>>
>> This assumes you have JSFT's debug flag set to true in the web.xml
>> file. This list shows all "known" components, not just the
>> components
>> you have installed, which will be much less. Look for the
>> "s:decorate"
>> component there (which won't be there... but perhaps a longer name
>> one
>> will be there like: "http://jboss.com/products/seam/taglib:decorate".
>> If this is there, then you can use it directly (ugly), or map it
>> as you
>> would normally do in Facelets.
>>
>> You can also get faster help for JSFTemplating via IRC:
>>
>> irc.freenode.net
>> #jsftemplating
>>
>> Let me know if you need more help. I think I'll try to run Seam
>> myself
>> sometime next week.
>>
>> Good luck!
>>
>> Ken
>>
>> Barrie Selack wrote:
>> >
>> > Trying to use other components (e.g. Seam) with jsftemplating. I'm
>> > sure there is a configuration I need to use, but can't find it.
>> Where
>> > are they defined? Any suggestions?
>> >
>> >
>> >
>> > javax.servlet.ServletException: ComponentType 's:decorate' not
>> defined!
>> > javax.faces.webapp.FacesServlet.service
>> (FacesServlet.java:277)
>> >
>> org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.do
>> FilterInternal(OpenSessionInViewFilter.java:198)
>> >
>> org.springframework.web.filter.OncePerRequestFilter.doFilter
>> (OncePerRequestFilter.java:75)
>> >
>> >
>> >
>> > Regards,
>> >
>> > Barrie
>> >
>> >
>> >
>> > Disclaimer: This e-mail message is intended only for the
>> personal use of
>> > the recipient(s) named above. If you are not an intended
>> recipient, you
>> > may not review, copy or distribute this message. If you have
>> received this
>> > communication in error, please notify us immediately by e-mail
>> and delete
>> > the original message.
>> > This e-mail expresses views only of the sender, which are not to be
>> > attributed to Rite Aid Corporation and may not be copied or
>> distributed
>> > without this statement.
>> >
>>