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.
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.