I have a page contains a form and other form nested in a dialog. I need to pass parameter to dialog when button clicked in the main form
Assuming that the bean is in the view scope, just set it as a bean property direclty in the action method of the command button in the datatable column.
If you have a cancel button in the dialog, you need to let its action method set it to null.
There's no need to fiddle around with raw HTTP request parameters in POST requests. The should as much as possible be used in GET requests only (e.g. , , etc).