How to select JSF components using jQuery?

后端 未结 4 1460
时光取名叫无心
时光取名叫无心 2020-11-21 22:26

I am trying to implement jQuery with PrimeFaces and JSF components, but it\'s not working properly. When I tried to do the same with HTML tags it;s working properly.

4条回答
  •  北海茫月
    2020-11-21 23:25

    If you're using RichFaces you can check rich:jQuery comonent. It allows you to specify server side id for jQuery component. For example, you have component with specified server id, then you can apply any jQuery related stuff to in next way:

    
    

    For more info, please check doumentation.

    Hope it helps.

提交回复
热议问题