开发者

Primefaces Picklist problem

开发者 https://www.devze.com 2023-04-03 08:11 出处:网络
I am having a text field in my xhtml whose property i have set to required=\"true\" and then i have primefaces picklist.

I am having a text field in my xhtml whose property i have set to required="true" and then i have primefaces picklist.

Now when validations fails like mandatory "textbox" is not fi开发者_运维问答lled. I throws an error and my page picklist becomes corrupted (all alignment) and if i see in generated html there will be no imports for primefaces like imports for picklist css and js.


I found the answere for the problem myself. It was actually bcoz of a very silly problem. One needs to do "render={SomeId of form element}" in the CommandButton. All the things will work fine then.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号