Ajax can not be used with paytrail
-
25 <f:convertDateTime pattern="#{sessionHandler.datetimeFormat}" timeZone="#{sessionHandler.timezone}" /> 26 </h:outputText> 27 </ui:fragment> 28 <br /> 29 30 <bill:showBill bill="#{billEditView.bill}" /> 31 <bill:verkkomaksubuttons rendered="#{!billEditView.bill.paid and !billEditView.bill.expired}"/> 32 33 34 <p:outputPanel rendered="#{billEditView.bill.foodwaveBill}"> 35 <span class="notify"><h:outputText value="#{i18n['foodshop.canBuyToCounter']}" /></span> 36 </p:outputPanel> 37 <br /> 38 <p:outputPanel rendered="#{!billEditView.bill.paid and !billEditView.bill.expired}"> 31 <f:convertDateTime pattern="#{sessionHandler.datetimeFormat}" 32 timeZone="#{sessionHandler.timezone}" /> -
Owner
jollain on wrapp-päällä xhtml-filuissa
-
-
79 92 </p:column> 80 93 <p:columnGroup type="footer"> 81 94 <p:row> 82 <p:column style="text-align: right;" colspan="#{productShopView.hasLimits?5:4}" footerText="#{i18n['productshop.total']}" /> 95 <p:column style="text-align: right;" 96 colspan="#{productShopView.hasLimits?5:4}" 97 footerText="#{i18n['productshop.total']}" /> -
Owner
ota se pois, plz
-
-
37 45 <h:outputText id="count" value="${i18n['product.cart.count']}" /> 38 46 </f:facet> 39 47 40 <h:commandButton action="#{productShopView.addMinusOne}" value="#{i18n['productshop.minusOne']}"> 48 <h:commandButton action="#{productShopView.addMinusOne}" 49 value="#{i18n['productshop.minusOne']}"> 41 50 <f:ajax render="@form" /> 42 51 </h:commandButton> 43 <p:inputText size="2" id="cartcount" escape="false" value="#{cart.count}"> 44 <f:ajax render="@form" listener="#{productShopView.countChangeListener}" /> 52 <p:inputText size="2" id="cartcount" escape="false" 53 value="#{cart.count}"> -
Owner
ei pahalla, mut tä on kaameeta :D
-
-
123 <p:inputTextarea cols="50" value="#{productShopView.otherInfo}" 124 label="#{i18n['otherInfo']}" /> 106 125 </h:panelGroup> 107 126 <br /> 108 127 109 <!-- Paytrail needs to initialize after the ajax call is complete --> 110 <!-- This function is to be override by the paytrail init function --> 111 <script type="text/javascript"> 112 function initPaymentButtons(){}; 113 </script> 114 <p:commandButton oncomplete="initPaymentButtons()" onerror="location.reload(true);" action="#{cc.attrs.commitaction}" id="commitbutton-botton" value="#{cc.attrs.commitValue}" /> 128 <!-- Paytrail needs to initialize after the ajax call is complete --> 129 <!-- This function is to be override by the paytrail init function --> 130 <script type="text/javascript"> 131 function initPaymentButtons() { 132 }; -
Owner
Mitä tässä tapahtuu, joskus myöhemmin js-filussa tulee javascript-koodi joka yliajaa tän?
-
-
123 <p:inputTextarea cols="50" value="#{productShopView.otherInfo}" 124 label="#{i18n['otherInfo']}" /> 106 125 </h:panelGroup> 107 126 <br /> 108 127 109 <!-- Paytrail needs to initialize after the ajax call is complete --> 110 <!-- This function is to be override by the paytrail init function --> 111 <script type="text/javascript"> 112 function initPaymentButtons(){}; 113 </script> 114 <p:commandButton oncomplete="initPaymentButtons()" onerror="location.reload(true);" action="#{cc.attrs.commitaction}" id="commitbutton-botton" value="#{cc.attrs.commitValue}" /> 128 <!-- Paytrail needs to initialize after the ajax call is complete --> 129 <!-- This function is to be override by the paytrail init function --> 130 <script type="text/javascript"> 131 function initPaymentButtons() { 132 }; -
Owner
Itse itselleni vastaten, tä on täällä jotta ei tulisi js-virhettä jostain napeista.
-
-
-
Please register or sign in to post a comment