Forums Register Login

Programatically adding Trinidad components

+Pie Number of slices to send: Send
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 have a knack for fixing things like this ... um ... sorry ... here is a consilitory tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1614 times.
Similar Threads
TomCat and SSL cert
Please help me tomcat on solaris 10
Resource not found
How to user Struts Tags in a WebApplication
Can two filters use the same filter-class?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 17:54:47.