incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mistry, Apurva" <>
Subject Problem with action attribute in jsf commandbutton
Date Tue, 13 Feb 2007 16:13:50 GMT
I am having the problem with action attribute with trinidad
commandbutton link. 
I have two action buttons, edit and update. Edit is visible first when
the page is loaded with the 4 related fields in read-only mode.

When the user clicks Edit button, a flag is set in backing bean to
render the Update button instead of Edit, and the fields are editable.
However, when the Update button is clicked, to update the modified data,
the binded action is not called.

The backing bean for these actions is in request scope, and as far as I
know, anytime the request is made the corresponding backingbean object
instance is created and the action is performed. After the request is
serviced, that instance is killed. 

I am not sure why is the action is not called upon. 
Below is the code snippet. 
I would appreciate any help. 

<tr:commandButton inlineStyle="x6m xag" text="Edit"
rendered="#{editCustBB.certifiedEntity != null and
EditCusLinksBB.corpEditable}" />

<tr:commandButton inlineStyle="x6m xag" text="Update"



 Confidentiality Notice:  This email message, including any attachments,
is for the sole use of the intended recipient(s) and may contain 
 confidential and privileged information. Any unauthorized review, use, 
 disclosure or distribution is prohibited. If you are not the intended 
 recipient, please contact the sender by email and destroy all copies of
the original message. 

  • Unnamed multipart/alternative (inline, 7-Bit, 0 bytes)
View raw message