Both codes I mentioned previously are working fine in the jsp page. But I need this functionality from the java code.
Actually I have created a richfaces tab in the jsp page, it consists of an input box, a commandlink etc. Using the information entered by the user in the input box the results are to be retrieved from the database and to be placed in a new tab generated dynamically.
I have successfully created new tab in the back end in java, and placed some panels and panelgrids to the newly created tab with the information extracted from the database. And in one of the panels to be added in the tab I need this functionality to be embedded.
And I don't understand how to do it!
I have also tried to put the above mentioned code in a jsp page and include the page itself dynamically as shown below:
A small panel kind of thing is displayed but content of page included is not shown. It does not show any errors either.