JSF Ajax render lose CSS with Jquery Mobile

前端 未结 2 863
鱼传尺愫
鱼传尺愫 2020-12-21 10:20

I\'m using ajax to programming with Jquery Mobile, and it was good, ultil I try use ajax to render something :(

I\'m trying to do a h:selectOneMenu refresh the items

相关标签:
2条回答
  • 2020-12-21 10:47

    I remember having a similar problem that my JS guy solved, so I can only point you to possible a problem. I think it has todo that your CSS is somehow applied by JQuery on document.ready. JSF ajax will on execute this again, resulting on missing behaviour and appearance. Hope it helps.

    0 讨论(0)
  • 2020-12-21 10:49

    in jQuery Mobile 1.4, call .enhanceWithin() on parent div, adds jQM styles to children elements of all widgets.

    $( "parent_div_selector" ).enhanceWithin();
    
    0 讨论(0)
提交回复
热议问题