开发者

Remove Richfaces popup when is set to readonly

开发者 https://www.devze.com 2023-03-23 17:35 出处:网络
I want to render a richfaces calendar in readonly mod开发者_如何学运维e, when I use the readonly attribute it works, but is still displaying the calendar when clicking on the text input. I\'ve been lo

I want to render a richfaces calendar in readonly mod开发者_如何学运维e, when I use the readonly attribute it works, but is still displaying the calendar when clicking on the text input. I've been looking but I didn't find any property to disable this behaviour, with the popup attribute set to false the calendar is displayed all the time, and I also want to avoid this...

Is there any property (or combination of them) that basically allows the calendar to become a label?

Oh, I'd like to avoid using the disabled property

Thanks


I would use the rendered attribute and a textfield with the reversed rendered flag set. With seam you can easily format the displayed string.

Another solution could be to capture the mouseclick if readonly and consume it. This way the popup will not get the event.


Not sure if such attribute exists but you should be able to achieve this by using a custom calendar model and disable all days for selection in the custom model

0

精彩评论

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

关注公众号