PrimeFaces nested form inside p:dialog with appendTo="@(body)

后端 未结 2 878
醉梦人生
醉梦人生 2021-01-05 10:14

I have this fragment:



    

    
        

        
2条回答
  •  被撕碎了的回忆
    2021-01-05 10:58

    Finally, I found a way using OmniFaces, with :

    page:

    
    
        
    
        
    
        
    
    
    

    fragment:

        
        
    
        
        
            
                
                    
    
                    
                        
                    
                
            
        
    
    

    This will cause some warning:

    WARNING Unable to save dynamic action with clientId 'form:innerForm:dialog' because the UIComponent cannot be found
    WARNING Unable to save dynamic action with clientId 'form:innerForm:innerText' because the UIComponent cannot be found
    WARNING Unable to save dynamic action with clientId 'form:innerForm:confirmButton' because the UIComponent cannot be found
    

    because the restored components are not re-removed on subsequent RESTORE_VIEW for postback.

    These warnings, as for my experiments, are harmless and could be safely ignored.

    However I opened a pull request to eventually fix it.

提交回复
热议问题