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