我是JSF Primefaces的新手
我正在使用Primeface向导,需要在其中使用Java禁用/启用向导中的Next / Back按钮。我已经尝试使用以下代码,但是失败
禁用下一个按钮:
PrimeFaces.current().executeScript(" PF('" + clientId + "').nextNav.css('disabled', 'true');");
PrimeFaces.current().executeScript(" PF('" + clientId + "').nextNav.css('disabled', 'disabled');");
启用下一个按钮:
PrimeFaces.current().executeScript(" PF('" + clientId + "').nextNav.css('disabled', 'false');");
PrimeFaces.current().executeScript(" PF('" + clientId + "').nextNav.css('disabled', 'none');");
但是当我尝试使用可见性时,它会起作用
对于“下一步”按钮隐藏:PrimeFaces.current().executeScript(" PF('" + clientId + "').nextNav.css('visibility', 'hidden');");
对于下一个按钮显示:PrimeFaces.current().executeScript(" PF('" + clientId + "').nextNav.css('visibility', 'visible');");
问题:如何使用Java代码段在向导中启用/禁用“下一步” /“后退”按钮? (需要禁用并且不隐藏按钮)
我是JSF Primefaces的新手,我正在使用Primeface向导,在这里我需要使用Java在向导中禁用/启用Next / Back按钮。我已经尝试使用以下代码,但“下一个按钮”失败了...
禁用按钮不是CSS的事情。它是按钮的属性。因此,您需要通过