Which MyFaces/Trinidad version do you use? There was an issue in MyFaces-1.1.6 in combination with Trinidad 1.1.x that prevented commadButtons to fire there action (https://issues.apache.org/jira/browse/MYFACES-2160).

Luca


Richard Yee wrote:
The method signature for putOneBack is wrong. It should retun null and the parameter is actionListenerEvent

-R

Sent from my iPhone

On Oct 8, 2009, at 8:50 AM, [email protected] <mailto:[email protected]> wrote:


I have the most primitive program here and I cannot for the life of me understand why a commandbutton in trinidad won't work. Am I missing some congiguration?

Here is the code???

<f:view>

<tr:form id=/"a222b"/>

        <tr:commandButton text=/"Put One Back"/
actionListener="#{quantityBean.putOneBack}">
   </tr:commandButton>

        </tr:form>
</f:view>



*public* *class* QuantityBean
{
        *private* *int* quantity=-1;

        *public* *int* getQuantity() {
                *return* quantity;
        }

        *public* *void* setQuantity(*int* quantity) {
                *this*.quantity = quantity;
        }
*public* String putOneBack(ActionEvent e){
                System./out/.println("QuantityBean.putOneBack()");
                quantity--;
                *return* "success";
        }
}


=============================================
Patrick Breen
Web Software Developer, Corporate Systems
Johnson Inc.
Phone..: (709) 737-1173
Email....: [email protected] <mailto:[email protected]>
=============================================
Quote of the month...
I have often repented speaking, but never of holding my tongue.
  Xenocrates


--
Junior Software Developer

------------------------------------------------------

Inxmail GmbH
Wentzingerstr. 21, 79106 Freiburg, Germany
Tel: +49 761 296979-404, Fax: -9
[email protected], www.inxmail.de

Handelsregister Freiburg, HRB 5870
Ust.-ID: DE198371679
Geschäftsleitung: Martin Bucher, Peter Ziras
------------------------------------------------------

Inxmail Professional kostenlos testen:
http://www.inxmail.de/jetzt-testen

Tipps und Tricks für E-Mail-Marketers:
http://www.inxmail.de/newsletter

Inxmail kompakt in 140 Zeichen:
http://www.twitter.com/inxmail_gmbh

Reply via email to