Pass parameter to dialog in the same page

前端 未结 2 1777
别那么骄傲
别那么骄傲 2020-12-18 22:06

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


2条回答
  •  梦毁少年i
    2020-12-18 22:30

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

提交回复
热议问题