在网页的页面上有时回存在几个不同的按钮,他们要调用到同一个页面来显示,香港空间,那么我们应该怎么区分他们呢,又怎么根据不同需要作出不同的反应呢。
下面一个是最近遇到的问题。
add时它却没有数据?
<jf:table var=”row” value=”#{roomCodePageBean.roomCodeList}” rows=”10″ rowBandingInterval=”1″
binding=”#{roomCodeHandler.comTable}” partialTriggers=”comTable:rows comTable:editButton” immediate=”true” autoSubmit=”true” >
<jf:column headerText=”” sortable=”true”>
<jf:commandButton text=”#{res[‘btn.edit’]}”
immediate=”true” partialSubmit=”true” rendered=”true”
action=”#{roomCodeHandler.initForm}”>
<jf:setActionListener from=”#{row}” to=”#{roomCodePageBean.roomCode}”/>
//其中setActionListener具有把这行数据保存到一个对象里面的功能,香港虚拟主机,在调到另外一个页面的时候,我们只需要用value=”#{roomCodePageBean.roomCode.code}”既可以把该值
//取到,美国服务器,当然也可以使用readOnly=”true”把它设置为只读状态,另外还具有把数据保存到对象里面的功能,所以点击edit时就把数据保存到对象里面,点击add时就不需要啦
//<jf:inputText value=”#{roomCodePageBean.roomCode.code}” label=”#{codeMainRes[‘authorisedSignatory.from.name’]}”/>
</jf:commandButton>
</jf:column>
<jx:navigationPaneEx
hint=”buttons” rendered=”true” inlineStyle=”text-align: right;width: 97%”>
<jf:commandNavigationItem text=”#{res[‘btn.add’]}”
immediate=”true” partialSubmit=”true” rendered=”true”
action=”#{roomCodeHandler.add}”>
</jf:commandNavigationItem>
</jx:navigationPaneEx>
所以就是这个原因了
思念是一种幸福的忧伤,是一种甜蜜的惆怅,是一种温馨的痛苦;