Ken,
Thanks for the reply. I was using Facelets (actual, not the jsftemplating
syntax) but decided to switch over to jsftemplating. A sample file is below.
I've been trying different components. Is the table component the Woodstock
one? I seem to get errors when I add attributes to the table.
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.
(also, is there a mailing list signup.. I'm just reading the archive and
sending direct to the list)
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.doFilterI
nternal(OpenSessionInViewFilter.java:198)
>
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestF
ilter.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.
>