Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

a4j button constrain  RSS feed

 
Avik Mazunder
Ranch Hand
Posts: 39
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any constrain that we cannot use two a4j:command button in a common a4j:region??
 
Tim Holloway
Bartender
Posts: 18713
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Avik Mazunder wrote:Is there any constrain that we cannot use two a4j:command button in a common a4j:region??


No. Just as in a regular non-java, non-AJAX HTML form, you can have as many SUBMIT buttons as you like.

Furthermore, each a4j:commandButton can bind to any action method it likes, so two or more buttons can share a single method or each button can have its own action method or any combination.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!