问题标签 [commandbutton]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
javascript - jsf commandbutton setenabled onclick
当用户单击它时,如何禁用命令按钮(ajaxbutton)?
我试过了:
和
但没有任何作用?
events - 为剑道网格命令按钮添加事件监听器
我正在开发 ASP.NET MVC4 应用程序。我在其中使用 Kendo UI 控件。
我正在使用 Kendo Grid。我想在 Kendo Grid 工具栏的“添加新项目”按钮上添加事件侦听器。
下面是网格命令按钮的一段代码:
我想覆盖它的点击事件。实际上我想检查它的点击事件的一些条件。如果条件返回真那么我希望这个按钮应该启用,否则它应该被禁用。
我试图用下面的一些代码覆盖它,但它不起作用。
例子:
但以上都不起作用。
任何人都可以建议我这样做吗?
谢谢
primefaces - p:commandButton 动作未在动态页面中调用
我有一个应用程序,它的布局带有左侧和中心布局单元(demoLayout.xhtml)。在主页 (main.xhtml) 上,我在左侧布局单元 (demoTree.xhtml) 上有 p:tree,在中心布局单元 (first.xhtml、second.xhtml、third.xhtml) 上有三种不同的形式。中心表单使用树节点单击进行切换。我的默认中心表单是 first.xhtml 并且当我没有将 p:commandButton 放在 first.xhtml 上时 second.xhtml 上的命令按钮和 third.xhtml 上的操作没有被调用。当我将 p:commandButton 放在 first.xhtml 上时,其他命令按钮可以工作,但我不想将 p:commandButton 放在 first.xhtml 上。我能怎么做?
demoLayout.xhtml
main.xhtml
演示树.xhtml
第一个.xhtml
第二个.xhtml
第三个.xhtml
Demo3MBean.java
DemoTreeBean.java
我还阅读了这些:
jsf - Primefaces commandButton not called when panel visibled
i have some problem when calling commandButton in primefaces
here's my code
#xA;The problem is the button can't be called when the panel is showed, but if i put the panel visible="true"
from the start, the button can be called. Any idea why ?
And how should i make the button works when the panel is showed. Thanks
richfaces - RichFaces a4j:commandButton 未定义标签
,我有一个单页 RichFaces 应用程序(RichFaces 4.2.3,JSF 2.0.3),它有一个单一的表单,我通过用 a4j:ajax 包装面板来“ajaxified”所有组件。提交按钮在这个包装之外,但我使用的是 a4j:commandButton。通过调用 bean isValid() 方法有条件地禁用该按钮。当 bean 中的条件正确时,按钮将被启用。
我已经在可能影响有效性的各个字段上呈现了属性。当条件正确时,按钮启用,但不是提交按钮,它看起来像这样:
所以标签从“保存到数据库”变为“未定义”。如果我单击该按钮,则不会发生任何事情(未调用 submitAnnotations 方法)。在此过程中的任何时候都没有 javascript 错误,但看起来有 ajax 错误:
从这个调试输出中我一点也不聪明。有没有人见过这样的事情?
excel - 工作表上的 Excel VBA 分组命令按钮
我已经看到很多关于让几个命令按钮执行类似操作的信息,但我所看到的一切都是关于用户表单的。
我想让一组命令按钮将数据从一个单元格移动到另一个单元格。我只是不想将相同的代码复制并粘贴到每个命令按钮中。
这是我想要对每个命令按钮执行的部分操作:
我尝试使用类模块,但似乎根本无法让它发挥作用。我希望能够将该代码放入一个类或某个类中以在某个组中的所有命令按钮上运行。然后,我希望在同一张工作表上使用不同的命令按钮组来执行不同的代码。
我应该走什么路线?
apex-code - Apex 命令按钮样式类不适用
我有两个 VF 页面。一个是常规页面,另一个是样式页面。样式页面中定义的样式类 'button1' 不能应用于常规页面中的 commandButton。我调查了翻译后的 HTML 代码。这些commandButton 的样式类是'btn button1',而不是我定义的'button1'。为什么 SalesForce 编译器会在其中添加“btn”?谢谢。
常规的是:
样式页面是
jsf - Can not generate p:datatable in h:panelgrid values on ajax p:commandbutton update
I am developing a project in JSF2.1 ,prettyfaces, hibernate 4 , primefaces I am getting a problem here… I ve one p:commandbutton which calls ajax request where condition checks that, financial year is opened or not
There are 3 value… if financial year is opened then ‘1’ if financial year is closed then ‘0’ if invalid then ‘ -1’ If financial year is closed or invalid then an image is loaded with some text ,but problem is here If financial year is opened then I want to generate a p:dataTable
When I submit the command button update=” isFinancialYearBooleanPanelGridId scenarioTabViewId:budgetAnalysisDataTableId” It will process successfully when financial year is closed or invalid But it will not generate p:dataTable id="budgetAnalysisDataTableId values when financial year is opened
but when i put
outside the
p:dataTable works fine for me
Any idea thanks (Y)
Here is my full xhtml file
excel - Excel VBA combobox locked property issue
I'm having an issue with the .locked property when I add a combobox to a sheet. I'm using the following code:
When I enter design mode and look at the properties of the button, it shows Locked being True still. Is there something incorrect with how I'm editing the property?
Thanks for your time, I have 86 comboboxes, so manually unlocking them would be tedious.
-Aaron
jsf-2 - 不会触发任何动作
我<h:form>
里面有一个<p:dialog>
. 在对话框中设置<p:commandButton>
时不会触发任何操作。dynamic="true"
当我取出 时dynamic="true"
,它就起作用了。
我的 bean 是视图范围的,命令按钮在对话框之外工作。我已经验证了表单没有嵌套。
这是视图:
这是豆子:
这是如何引起的,我该如何通过保留来解决它<p:dialog dynamic="true">
?