Re: [TRINIDAD] [SEAM] tr:commandButton does not fire in tr:form

2010-02-06 Thread A. Nieves
Yes, thanks. It works perfectly now. I'm sorry for the delay I had to be
offline a few days.

On Wed, Feb 3, 2010 at 3:14 AM, Matthias Wessendorf mat...@apache.orgwrote:

 so, works ?

 On Wed, Feb 3, 2010 at 12:46 AM, A. Nieves daraii.t...@gmail.com wrote:
  Right after I sent the test project I found the culprit. I was using a
  hyphen in the id of the tr:form and it generated a invalid javascript
  function to validate the form (_pos-formValidator). I didn't notice the
  javascript error until now.
 
 
  On Tue, Feb 2, 2010 at 7:18 PM, A. Nieves daraii.t...@gmail.com wrote:
 
  I uploaded a test project (split in war/ear/ejb) for Weblogic 10.3 (the
  environment I'm using):
 
 
 
 https://docs.google.com/leaf?id=0B1ms0mMJOqpPNWE4OThhNjEtMzA3OS00NDBlLWFiODUtOGNkMTUxYzAzYzk4hl=en
 
  If I need to create a project with different specifications let me know.
 
  I have the posTestJSF.jspx that works and the posTestTrinidad.jspx that
  doesn't.
 
  Thanks.
 
 
  On Tue, Feb 2, 2010 at 3:47 PM, A. Nieves daraii.t...@gmail.com
 wrote:
 
  I placed a breakpoint using Firebug on the submitForm function of the
  Common1_2_12.js but the function is not called when I press the
  tr:commandButton.
 
 
  On Tue, Feb 2, 2010 at 2:46 PM, Matthias Wessendorf mat...@apache.org
 wrote:
 
  +1
 
  also, what does firebug say? on pressing the submit button, is at
  least some JS exectued ?
 
  -Matthias
 
  On Tue, Feb 2, 2010 at 7:43 PM, A. Nieves daraii.t...@gmail.com
 wrote:
   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
titleTest 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 

[TRINIDAD] [SEAM] tr:commandButton does not fire in tr:form

2010-02-02 Thread A. Nieves
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
titleTest/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=0B1ms0mMJOqpPMDA1YTBiMzYtMzVjNi00YmVhLWFmOTItNGIyNjU1NDdlNjE2hl=en
).

Am I missing something on the pos.xhtml example?


Thanks in advance.


Re: [TRINIDAD] [SEAM] tr:commandButton does not fire in tr:form

2010-02-02 Thread Matthias Wessendorf
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
    titleTest/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=0B1ms0mMJOqpPMDA1YTBiMzYtMzVjNi00YmVhLWFmOTItNGIyNjU1NDdlNjE2hl=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


Re: [TRINIDAD] [SEAM] tr:commandButton does not fire in tr:form

2010-02-02 Thread A. Nieves
 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
 titleTest 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.orgwrote:

 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
 titleTest/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} 

Re: [TRINIDAD] [SEAM] tr:commandButton does not fire in tr:form

2010-02-02 Thread Matthias Wessendorf
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
         titleTest 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.orgwrote:

 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
     titleTest/title
     link href=#{theme['css']} rel=stylesheet type=text/css /
     meta http-equiv=Content-Type content=text/html; charset=UTF-8 /
  /head
  body 

Re: [TRINIDAD] [SEAM] tr:commandButton does not fire in tr:form

2010-02-02 Thread A. Nieves
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.orgwrote:

 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
  titleTest 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.
  
  
 
 

Re: [TRINIDAD] [SEAM] tr:commandButton does not fire in tr:form

2010-02-02 Thread Matthias Wessendorf
+1

also, what does firebug say? on pressing the submit button, is at
least some JS exectued ?

-Matthias

On Tue, Feb 2, 2010 at 7:43 PM, A. Nieves daraii.t...@gmail.com wrote:
 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.orgwrote:

 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
          titleTest 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
  
 
 

Re: [TRINIDAD] [SEAM] tr:commandButton does not fire in tr:form

2010-02-02 Thread A. Nieves
I placed a breakpoint using Firebug on the submitForm function of the
Common1_2_12.js but the function is not called when I press the
tr:commandButton.

On Tue, Feb 2, 2010 at 2:46 PM, Matthias Wessendorf mat...@apache.orgwrote:

 +1

 also, what does firebug say? on pressing the submit button, is at
 least some JS exectued ?

 -Matthias

 On Tue, Feb 2, 2010 at 7:43 PM, A. Nieves daraii.t...@gmail.com wrote:
  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
   titleTest 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}
 

Re: [TRINIDAD] [SEAM] tr:commandButton does not fire in tr:form

2010-02-02 Thread A. Nieves
I uploaded a test project (split in war/ear/ejb) for Weblogic 10.3 (the
environment I'm using):

https://docs.google.com/leaf?id=0B1ms0mMJOqpPNWE4OThhNjEtMzA3OS00NDBlLWFiODUtOGNkMTUxYzAzYzk4hl=en

If I need to create a project with different specifications let me know.

I have the posTestJSF.jspx that works and the posTestTrinidad.jspx that
doesn't.

Thanks.

On Tue, Feb 2, 2010 at 3:47 PM, A. Nieves daraii.t...@gmail.com wrote:

 I placed a breakpoint using Firebug on the submitForm function of the
 Common1_2_12.js but the function is not called when I press the
 tr:commandButton.


 On Tue, Feb 2, 2010 at 2:46 PM, Matthias Wessendorf mat...@apache.orgwrote:

 +1

 also, what does firebug say? on pressing the submit button, is at
 least some JS exectued ?

 -Matthias

 On Tue, Feb 2, 2010 at 7:43 PM, A. Nieves daraii.t...@gmail.com wrote:
  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
   titleTest 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;
   

Re: [TRINIDAD] [SEAM] tr:commandButton does not fire in tr:form

2010-02-02 Thread A. Nieves
Right after I sent the test project I found the culprit. I was using a
hyphen in the id of the tr:form and it generated a invalid javascript
function to validate the form (_pos-formValidator). I didn't notice the
javascript error until now.


On Tue, Feb 2, 2010 at 7:18 PM, A. Nieves daraii.t...@gmail.com wrote:

 I uploaded a test project (split in war/ear/ejb) for Weblogic 10.3 (the
 environment I'm using):


 https://docs.google.com/leaf?id=0B1ms0mMJOqpPNWE4OThhNjEtMzA3OS00NDBlLWFiODUtOGNkMTUxYzAzYzk4hl=en

 If I need to create a project with different specifications let me know.

 I have the posTestJSF.jspx that works and the posTestTrinidad.jspx that
 doesn't.

 Thanks.


 On Tue, Feb 2, 2010 at 3:47 PM, A. Nieves daraii.t...@gmail.com wrote:

 I placed a breakpoint using Firebug on the submitForm function of the
 Common1_2_12.js but the function is not called when I press the
 tr:commandButton.


 On Tue, Feb 2, 2010 at 2:46 PM, Matthias Wessendorf mat...@apache.orgwrote:

 +1

 also, what does firebug say? on pressing the submit button, is at
 least some JS exectued ?

 -Matthias

 On Tue, Feb 2, 2010 at 7:43 PM, A. Nieves daraii.t...@gmail.com wrote:
  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
   titleTest 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
 

Re: [TRINIDAD] [SEAM] tr:commandButton does not fire in tr:form

2010-02-02 Thread Matthias Wessendorf
so, works ?

On Wed, Feb 3, 2010 at 12:46 AM, A. Nieves daraii.t...@gmail.com wrote:
 Right after I sent the test project I found the culprit. I was using a
 hyphen in the id of the tr:form and it generated a invalid javascript
 function to validate the form (_pos-formValidator). I didn't notice the
 javascript error until now.


 On Tue, Feb 2, 2010 at 7:18 PM, A. Nieves daraii.t...@gmail.com wrote:

 I uploaded a test project (split in war/ear/ejb) for Weblogic 10.3 (the
 environment I'm using):


 https://docs.google.com/leaf?id=0B1ms0mMJOqpPNWE4OThhNjEtMzA3OS00NDBlLWFiODUtOGNkMTUxYzAzYzk4hl=en

 If I need to create a project with different specifications let me know.

 I have the posTestJSF.jspx that works and the posTestTrinidad.jspx that
 doesn't.

 Thanks.


 On Tue, Feb 2, 2010 at 3:47 PM, A. Nieves daraii.t...@gmail.com wrote:

 I placed a breakpoint using Firebug on the submitForm function of the
 Common1_2_12.js but the function is not called when I press the
 tr:commandButton.


 On Tue, Feb 2, 2010 at 2:46 PM, Matthias Wessendorf 
 mat...@apache.orgwrote:

 +1

 also, what does firebug say? on pressing the submit button, is at
 least some JS exectued ?

 -Matthias

 On Tue, Feb 2, 2010 at 7:43 PM, A. Nieves daraii.t...@gmail.com wrote:
  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
           titleTest 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