2015-06-20 175 views
-3
<s:if test='%{cust_id!=""}'> 
<s:submit cssclass="pagebutton" action="Custmer_ entry" theme="simple" value="update" on click="validate"/> 

加載頁面上,我想隱藏更新button.On點擊搜索按鈕顯示更新按鈕,隱藏保存按鈕。在點擊搜索按鈕顯示更新按鈕,隱藏保存按鈕

+1

當第一個按鈕? –

回答

-1

對不起,我錯了。
當您檢查

<s:if test='%{cust_id!=""}'> 

你需要檢查它是否是空喜歡

<s:if test='%{cust_id!="" || cust_id!=null}'> 

請檢查一下這樣