Single f: viewParam fails validation on postback requests (ajax) on a ViewS…

I’m passing one request parameter to a facelet page which is processed in the corresponding preRenderView
event/listener :

    
        
        
    

Init method is properly accessed and the page is rendered normally. I have a commandLink (RichFaces component) that show a modal panel via an ajax request:

    

The modal panel snippet:




    
        
    

    

        

            

            

In this panel a comment is inserted in a h:inputTextArea
field, but when the corresponding Accept button is pressed instead of calling #{essayDetails.saveComment}
method the post-back request fails in validating f:viewParam
id parameter saying that this fields needs a value.

If we make no changes to original code but adds an extra f:viewParam
:

    
        
        
        
    

There is no validation error and the behaviour is as expected. What am I doing wrong in using f:viewParam and/or preRenderView event?

Thanks in advance!

try this:

Hello, buddy!责编内容来自:Hello, buddy! (源链) | 更多关于

阅读提示:酷辣虫无法对本内容的真实性提供任何保证,请自行验证并承担相关的风险与后果!
本站遵循[CC BY-NC-SA 4.0]。如您有版权、意见投诉等问题,请通过eMail联系我们处理。
酷辣虫 » 前端开发 » Single f: viewParam fails validation on postback requests (ajax) on a ViewS…

喜欢 (0)or分享给?

专业 x 专注 x 聚合 x 分享 CC BY-NC-SA 4.0

使用声明 | 英豪名录