I tried also with tr:document, same problem. My web.xml was taken from the wiki, using the exact same order of the servlets/filters/listeners. I found a similar problem in the mailing list but they seem to be unrelated to this one (different version of Trinidad and is marked as resolved in the JIRA).
I can try to create a sample project. On Tue, Feb 2, 2010 at 2:25 PM, Matthias Wessendorf <mat...@apache.org>wrote: > hrm, tr:document ? > > i see your web.xml has the Trinidad filter and its ressource servlet. > > we have some infos on the wiki. checked there ? > Also there were some mails, searched the archives of this list ? > (and the dev@, though the users@ is the correct list...) > > -Matthias > > On Tue, Feb 2, 2010 at 7:13 PM, A. Nieves <daraii.t...@gmail.com> wrote: > >> Sorry Matthias, > >> > >> I've also tried using the trh:html/trh:head/trh:body combo but I'm > having > >> the same problem. > >> > >> > >> > >> > --------------------------------------------------------------------------------------------- > >> > >> <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > >> " > >> http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > >> <trh:html xmlns="http://www.w3.org/1999/xhtml" > >> > >> xmlns:f="http://java.sun.com/jsf/core" > >> xmlns:h="http://java.sun.com/jsf/html" > >> xmlns:tr="http://myfaces.apache.org/trinidad" > >> xmlns:trh="http://myfaces.apache.org/trinidad/html" > >> xmlns:c="http://java.sun.com/jstl/core"> > >> <trh:body> > >> <trh:head> > >> <title>Test Title</title> > >> </trh:head> > >> > >> <div id="content"> > >> <tr:form id="pos-form"> > >> <tr:panelFormLayout id="pos-form-panel"> > >> <tr:selectOneChoice styleClass="simpleInput" > >> required="true" > >> label="#{messages['channel']}" > >> value="#{pos.currChannel}"> > >> <c:forEach items="#{pos.availableChannels}" > var="chan"> > >> <f:selectItem itemLabel="#{chan.name}" > >> itemValue="#{chan.id}" /> > >> </c:forEach> > >> </tr:selectOneChoice> > >> </tr:panelFormLayout> > >> <tr:commandButton id="pos-next" text="Push" > >> action="#{pos.next}" ></tr:commandButton> > >> </tr:form> > >> </div> > >> </trh:body> > >> </trh:html> > >> > >> > --------------------------------------------------------------------------------------------- > >> > >> * I can see the the JS included in the resulting HTML. > >> > >> Thanks. > >> > >> > >> > >> On Tue, Feb 2, 2010 at 1:16 PM, Matthias Wessendorf <mat...@apache.org > >wrote: > >> > >>> you need to use <tr:document>. > >>> that component is responsible to render out the JS/CSS for Trinidad > >>> > >>> If you don't want <tr:document> you have to use <trh:head/body>. > >>> Please read the documentation on them. > >>> > >>> thx, > >>> matthias > >>> > >>> On Tue, Feb 2, 2010 at 5:49 PM, A. Nieves <daraii.t...@gmail.com> > wrote: > >>> > Hello, > >>> > > >>> > I have a very small page using Trinidad 1.2.12, Seam 2.2, and > Facelets > >>> > 1.1.15 (it is configured but I'm not using any Facelets tags in the > >>> page) > >>> > the page displays correctly but the *tr:commandButton* doesn't do > >>> anything. > >>> > I've started the server in DEBUG mode and the action method is never > >>> > invoked. > >>> > > >>> > The "pos" object is a Seam component. I've tried changing the > component > >>> for > >>> > a JSF Managed Bean and the method doesn't get fired either. > >>> > Also, I've tried changing the* tr:commandButton* with an* s:button* > and > >>> the > >>> > form works, so I guess is something that I'm missing. > >>> > > >>> > > >>> > --------------------------------------------------------------------------------------------------------------------------- > >>> > *pos.xhtml:* > >>> > > >>> > <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > >>> > " > >>> > http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > >>> > <html xmlns="http://www.w3.org/1999/xhtml" > >>> > xmlns:f="http://java.sun.com/jsf/core" > >>> > xmlns:h="http://java.sun.com/jsf/html" > >>> > xmlns:tr="http://myfaces.apache.org/trinidad" > >>> > xmlns:trh="http://myfaces.apache.org/trinidad/html" > >>> > xmlns:c="http://java.sun.com/jstl/core"> > >>> > <body> > >>> > <div id="content"> > >>> > <tr:form id="pos-form"> > >>> > <tr:panelFormLayout id="pos-form-panel"> > >>> > <tr:selectOneChoice styleClass="simpleInput" > >>> required="true" > >>> > label="#{messages['channel']}" > >>> > value="#{pos.currChannel}"> > >>> > <c:forEach items="#{pos.availableChannels}" > >>> var="chan"> > >>> > <f:selectItem itemLabel="#{chan.name}" > >>> > itemValue="#{chan.id}" /> > >>> > </c:forEach> > >>> > </tr:selectOneChoice> > >>> > </tr:panelFormLayout> > >>> > <tr:commandButton id="pos-next" text="Push" > >>> action="#{pos.next}" > >>> >></tr:commandButton> > >>> > </tr:form> > >>> > </div> > >>> > </body> > >>> > </html> > >>> > > >>> > --------------------------------------------------------------------------------------------------------------------------- > >>> > > >>> > I also tried using only JSF tags and it also worked correctly. > >>> > > >>> > > >>> > --------------------------------------------------------------------------------------------------------------------------- > >>> > *pos2.xhtml:* > >>> > > >>> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " > >>> > http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > >>> > <html xmlns="http://www.w3.org/1999/xhtml" > >>> > xmlns:f="http://java.sun.com/jsf/core" > >>> > xmlns:h="http://java.sun.com/jsf/html" > >>> > xmlns:c="http://java.sun.com/jstl/core"> > >>> > <head> > >>> > <title>Test</title> > >>> > <link href="#{theme['css']}" rel="stylesheet" type="text/css" /> > >>> > <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" > /> > >>> > </head> > >>> > <body id="main-body" class="main-body"> > >>> > <div> > >>> > <h:form> > >>> > <h:selectOneListbox value="#{pos.currChannel.id}"> > >>> > <c:forEach items="#{pos.availableChannels}" var="chan"> > >>> > <f:selectItem itemLabel="#{chan.name}" > >>> > itemValue="#{chan.id}" /> > >>> > </c:forEach> > >>> > </h:selectOneListbox> > >>> > <h:commandButton action="#{pos.next}" value="Push" /> > >>> > </h:form> > >>> > </div> > >>> > </body> > >>> > </html> > >>> > > >>> > --------------------------------------------------------------------------------------------------------------------------- > >>> > > >>> > Here is my *web.xml* ( > >>> > > >>> > https://docs.google.com/leaf?id=0B1ms0mMJOqpPMDA1YTBiMzYtMzVjNi00YmVhLWFmOTItNGIyNjU1NDdlNjE2&hl=en > >>> > ). > >>> > > >>> > Am I missing something on the pos.xhtml example? > >>> > > >>> > > >>> > Thanks in advance. > >>> > > >>> > >>> > >>> > >>> -- > >>> Matthias Wessendorf > >>> > >>> blog: http://matthiaswessendorf.wordpress.com/ > >>> sessions: http://www.slideshare.net/mwessendorf > >>> twitter: http://twitter.com/mwessendorf > >>> > >> > >> > > > > > > -- > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > sessions: http://www.slideshare.net/mwessendorf > twitter: http://twitter.com/mwessendorf >