JSF 片段是否没有客户端加载事件?
Is there no client-side load event for a JSF fragment?
我一直在寻找一种在片段加载时触发某些 JS 函数的方法。不幸的是,我似乎找不到可以在 af:clientListener
标签内使用的事件,从字面意义上说,
Run this javascript function when the fragment loads
这让我相信(虽然可能是错误的)没有可用的。这是真的吗?
您可以使用只触发一次的 af:poll。
请看看您是否觉得这有用:
http://andrejusb.blogspot.co.uk/2015/03/automatic-adf-popup-opening-on-fragment.html
我一直在寻找一种在片段加载时触发某些 JS 函数的方法。不幸的是,我似乎找不到可以在 af:clientListener
标签内使用的事件,从字面意义上说,
Run this javascript function when the fragment loads
这让我相信(虽然可能是错误的)没有可用的。这是真的吗?
您可以使用只触发一次的 af:poll。
请看看您是否觉得这有用:
http://andrejusb.blogspot.co.uk/2015/03/automatic-adf-popup-opening-on-fragment.html