`
xichao007521
  • 浏览: 43491 次
  • 性别: Icon_minigender_1
  • 来自: 长春
社区版块
存档分类
最新评论

commandButton action not executed

    博客分类:
  • seam
阅读更多

problem description:

I have a page that has the following commandButton.

<h:commandButton value="Update List" action="#{todoListBean.update}"
rendered="#{todoListBean.todoList.listId ne 0}" />

When I click on the button it doesn't execute the action it just
refreshes the page.  But if I remove the rendered property so the
commanButton tag looks like:

<h:commandButton value="Update List" action="#{todoListBean.update}" />

jsf will execute the action #{todoListBean.update}.  Does anyone know
why when I have the rendered property in the jsf tag the action doesn't
get executed?

http://203.208.39.132/search?q=cache:WZkHHRpUdvMJ:www.nabble.com/commandButton-action-not-executed-td16456333.html+commandButton+rendered&cd=11&hl=zh-CN&ct=clnk&gl=cn&st_usg=ALhdy2-0IFh3SVY7lduxLQYW3xJkGUVFYg

 

http://203.208.37.132/search?q=cache:M1K5BMl8PK8J:forums.sun.com/thread.jspa%3FthreadID%3D5285344+commandButton+rendered+action&cd=10&hl=zh-CN&ct=clnk&gl=cn&st_usg=ALhdy2_CbIRHOTzFBf44a0kPd9K7ZptYxw

分享到:
评论

相关推荐

    CommandButton按钮文字布局及换色使用实例

    在“CommandButton按钮文字布局及换色使用实例”中,我们可以深入探讨如何有效地利用`CommandButton`控件,包括调整按钮上的文字布局和改变其颜色,以提升用户界面的可读性和美观度。 1. **文字布局**: - **Text...

    在CommandButton上显示进度条-精品源代码

    "在CommandButton上显示进度条"这个主题是关于如何在按钮控件上集成或者在点击按钮后显示一个进度条,以提升用户对程序运行状态的认知。 首先,我们需要理解"CommandButton"是什么。在VB环境中,CommandButton是一...

    第二章,第四节——CommandButton 控件

    在VB (Visual Basic) 或其他类似编程环境中,`CommandButton`控件是用户界面(UI)设计中的一个重要元素。它是用户与应用程序交互的一种方式,通常表现为一个可点击的按钮,用于执行特定的操作或触发事件。在本节中...

    Hook程序-无焦点的CommandButton控件(6KB)...

    标题中的"Hook程序-无焦点的CommandButton控件"是一个关于Windows编程的专题,主要涉及的是在用户界面(UI)设计中如何处理无焦点状态下的按钮控件。在Windows应用程序中,CommandButton控件通常用于响应用户的点击...

    改变CommandButton字体颜色 VB源代码

    在VB(Visual Basic)编程环境中,用户界面的交互性是至关重要的,而CommandButton控件是其中常用的元素,用于响应用户的点击操作。本知识点主要关注如何通过VB源代码来改变CommandButton的字体颜色,以增强按钮的...

    Private-Sub-CommandButton3.rar_sub

    在GIS(地理信息系统)环境中,"Private Sub CommandButton3.rar_sub"这个压缩包可能包含了一个与GIS应用相关的宏命令或自定义功能。标题中的"Private Sub"通常在VBA(Visual Basic for Applications)编程中表示一...

    Hook程序-无焦点的CommandButton控件.zip_COMMAND_hook

    在这个名为"Hook程序-无焦点的CommandButton控件.zip_COMMAND_hook"的压缩包中,我们可以推测它包含了一个示例,展示了如何在没有焦点的情况下处理CommandButton控件的点击事件。这种技术通常在开发用户界面时很有用...

    微软的CommandButton下课了[VsCmd.rar]-精品源代码

    【标题】"微软的CommandButton下课了[VsCmd.rar]" 暗示了一个与微软传统的CommandButton控件相关的开发工具或技术替代方案。在Windows应用程序开发中,CommandButton是常用的用户界面元素,用于触发一个特定的动作或...

    VB按钮制作实例:文字对齐和按钮换色.rar

    VB按钮制作实例:文字对齐和按钮换色,使用CommandButton按钮控件制作按钮的例子,分别可以定义按钮三种状态下的样式,比如按钮默认状态、按钮按下、按钮滑过,另外还可设置按钮上面文字的对齐方式、载入外部图像、...

    详细用法jsf in action

    本书对JSF中的标准组件进行了详尽的介绍,包括`&lt;h:inputText&gt;`、`&lt;h:commandButton&gt;`、`&lt;h:dataTable&gt;`等。这些组件不仅简化了HTML元素的使用,还提供了数据绑定、事件处理等功能。例如,`&lt;h:dataTable&gt;`用于展示...

    JSF标签库快速参考

    &lt;h:commandButton value="Submit" action="#{bean.submit}" /&gt; ``` **说明:** 上述示例中的`#{bean.submit}`是一个EL表达式,指向一个名为`submit`的方法,当用户点击“Submit”按钮时,将执行该方法。 --- ####...

    JSF与Struts的区别.doc

    JSF则采用事件监听器,用户操作如按钮点击或值更改会触发事件,通过CommandButton的action属性关联到Backing Bean的方法,允许每个按钮关联不同的处理方法。 总结来说,JSF和Struts虽然在很多方面有相似之处,但...

    jsf入门和jsf+in+action

    **JSF动作**,如`&lt;h:commandButton&gt;`,是用户界面中触发服务器端事件的元素。当用户点击这些按钮时,对应的动作方法会在后台被调用,从而执行特定的业务逻辑。 **Facelets** 是JSF 2.0引入的默认视图技术,它取代了...

    ifix的按钮发脉冲

    Private Sub CommandButton1_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single) writevalue "1", "UNITY_START" End Sub ``` - 当鼠标弹起时: ```vb ...

    adf BEAN传参数

    &lt;h:commandButton action="#{viewScope.documentView.handleSign}" binding="#{viewScope.documentView.pod}" partialSubmit="true" text="Sign"&gt; &lt;/h:commandButton&gt; ``` 在Java Bean中获取参数值: ```java @...

    一个ActiveX控件的使用方法的例子

    ActiveX控件是一种在Windows平台上广泛使用的组件技术,它基于微软的COM(Component Object Model)组件对象模型。ActiveX控件允许开发者创建可重用的软件模块,这些模块可以嵌入到网页、应用程序或者其他的软件中,...

    struts课件7

    JSF还提供了UI组件如`h:commandButton`,它的`action`属性可以设置为`from-outcome`的值。 在实际应用中,开发者可能会结合Struts和JSF的优点,例如使用Struts进行控制层的处理,利用JSF的强大UI组件和国际化支持。...

    JSF标签详解.docx

    同样,`&lt;h:commandButton action="#{bean.actionMethod}" /&gt;`会在点击按钮时调用`actionMethod`。 5. 验证和转换 JSF提供内置的验证机制,可以对用户输入进行检查。例如,`&lt;h:inputText required="true" /&gt;`确保...

    椭圆.三角.星...形按钮控件

    Private Sub CommandButton1_Paint(sender As Object, e As PaintEventArgs) Handles CommandButton1.Paint Dim g As Graphics = e.Graphics g.FillEllipse(Brushes.Blue, CommandButton1.ClientRectangle) End ...

    JSF In Action

    - **`&lt;h:commandButton&gt;`**:命令按钮。 - **`&lt;h:outputLabel&gt;`**:静态文本标签。 - **`&lt;h:dataTable&gt;`**:数据表格展示组件。 ### 5. 输入组件与数据表格的应用 #### 输入组件 - **`&lt;h:inputText&gt;`**:最常用的...

Global site tag (gtag.js) - Google Analytics