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

Programatically adding Trinidad components  RSS feed

 
Ravi Chilakapati
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all.
I want to extend the Trinidad table component so that it has four custom buttons (like refresh, export to pdf etc) that always need to be present. I am dynamically rendering the required buttons in an extended Trinidad table renderer. The buttons also have some action listeners set dynamically. The buttons are being rendered just fine, but when I click on the them, the registered action listeners are not being invoked. Instead, I am getting the following lines in my console:

22:19:08,501 ERROR [STDERR] Feb 11, 2011 10:19:08 PM org.apache.myfaces.trinidadinternal.ui.action.ActionUtils getFormName
WARNING: Action can only be used within a form, or by specifying the formName attribute
22:19:08,517 ERROR [STDERR] Feb 11, 2011 10:19:08 PM org.apache.myfaces.trinidadinternal.ui.action.ActionUtils getFormName
WARNING: Action can only be used within a form, or by specifying the formName attribute
22:19:08,517 ERROR [STDERR] Feb 11, 2011 10:19:08 PM org.apache.myfaces.trinidadinternal.ui.action.ActionUtils getFormName
WARNING: Action can only be used within a form, or by specifying the formName attribute
22:19:08,517 ERROR [STDERR] Feb 11, 2011 10:19:08 PM org.apache.myfaces.trinidadinternal.ui.action.ActionUtils getFormName
WARNING: Action can only be used within a form, or by specifying the formName attribute


Please help!

Here is the code:




Thank you!
Ravi.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!