2013-04-30 64 views
0

我試圖創建一個鏈接到新創建的記錄,鏈接我包括在成功創建鏈接後的成功消息面板中,但我無法致電使用標籤的操作。<a4j:commandLink>它沒有調用動作

以下是我的代碼和平:

<div class="panel-success"> 
<a4j:outputPanel id="succes_submit"> 
<rich:notify stayTime="1000" rendered="#{user.accountsSaved}" 
       styleClass="panel-success fsgui-input-panel-success"> 
<f:facet name="summary"> 
    <a4j:commandLink ajaxSingle="true" action="#{user.metod}" 
     value="#{user.accSeriesInfo.number} :"oncomplete="#{rich:component('details-update')}.show();">         

<f:setPropertyActionListener target="#{orgseries.accSeriesInfo}" value="#{dataItem}" /> 
</a4j:commandLink> 
<h:outputText value="Record updated successfully "></h:outputText> 
</f:facet> 
</rich:notify> 
</a4j:outputPanel> 
</div> 

,而不是A4J:commandLink我試着用H:commandLink我在這裏能夠調用動作,但無法呈現或執行的onComplete操作。

任何機構可以告訴我哪裏是錯誤的,提前

感謝。

+0

而不是action屬性嘗試的ActionListener – pudaykiran 2013-04-30 08:57:15

+0

嗨感謝您的答覆,不過其沒有工作:( – user2319276 2013-04-30 09:06:32

+0

使用A4J:在之間的支撐部件a4j:commandLink組件並嘗試一次 \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t時 – pudaykiran 2013-04-30 09:10:00

回答

0

我找到了解決方案,包括豐富的鏈接:通知標籤

<div class="panel-success" id="success_submit_div"> 
<a4j:outputPanel id="stru_succes_submit"> 
<rich:notify stayTime="1000" rendered="#{emp.saveSuccess}"> 
<f:facet name="summary"> 
<h:form> 
<a4j:commandLink immediate="true" action="#{emp.getInfo}" value="# {emp.empId}:" oncomplete="#{rich:component('edit-Emp-Details')}.show();"> 
</a4j:commandLink> 
<h:outputText value="#{ isEdit ? messages['common.app.save.success'] : messages['employee.create.success']}"></h:outputText> 
</h:form> 
</f:facet> 
</rich:notify> 
</a4j:outputPanel> 
</div> 
相關問題