• Post Reply Bookmark Topic Watch Topic
  • New Topic

Trinidad commandButton needs clicked twice to fire bean

 
Gabriele Giambartolomei
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have a JSF/Trinidad simple web page with a form that contains some inputText fields, some selectOneChoice windows, a selectOneRadio buttons and a "submit" button of type <commandButton>. What happens is that once the form is complete with all information (correct and valid) and I click the Submit button (once) nothing happens: the managedBean is not invoked, no errors are generated, it just does nothng. If I click again the same submitButton then it fires the managedBean succesfully and it all works fine. I read that other people have had this same problem and that it maybe linked to the use of "valueChangeListener" but I still don't have a fix for it.

Can anybody help me with this issue ?

The selectOneChoice windows use the valueChangeListener and look like this:
<tr:selectOneChoice id="product" value="#{prospectsMgdBean.productIdSelected}"
autoSubmit="true"
valueChangeListener="#{prospectsMgdBean.productSelectionValueChange}"
immediate="false"
simple="true"
required="true">
<f:selectItems id="productsSelectItems" value="#{prospectsMgdBean.productSelectItemList}" />
</tr:selectOneChoice>

and the commandButton code looks like this:
<tr:commandButton id="submit" text="#{messages.pageProspectsFormButtonSubmit}"
action="#{prospectsMgdBean.submitForm}" partialSubmit="true" onclick="addBlockingListener();">
</tr:commandButton>


Thanks a lot !
Gab
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!