Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

Codecrew / Moya

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 30
  • Merge Requests 2
  • Wiki
  • Snippets
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Commits
  • Issue Boards
Merged
Merge Request !145 opened Dec 08, 2014 by Tuomas Riihimäki@tuomari

Ajax can not be used with paytrail

Edited Dec 08, 2014
Request to merge tuomari:neomap into master

Merged

  • The changes were merged into master.
  • The source branch has been removed.
  • Discussion 5
  • Commits 2
  • Changes 6
  • {{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
  • 2a54e04ac87f85d4d091c3be1c8f9cea?s=80&d=identicon
    Tuukka Kivilahti
    @tkfftk started a discussion on the diff Dec 08, 2014
    code/moya-web/WebContent/bill/showBill.xhtml
    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}" />
    • Tuukka Kivilahti @tkfftk commented Dec 08, 2014
      Owner

      jollain on wrapp-päällä xhtml-filuissa

  • 2a54e04ac87f85d4d091c3be1c8f9cea?s=80&d=identicon
    Tuukka Kivilahti
    @tkfftk started a discussion on the diff Dec 08, 2014
    code/moya-web/WebContent/resources/cditools/products/shop.xhtml
    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']}" />
    • Tuukka Kivilahti @tkfftk commented Dec 08, 2014
      Owner

      ota se pois, plz

  • 2a54e04ac87f85d4d091c3be1c8f9cea?s=80&d=identicon
    Tuukka Kivilahti
    @tkfftk started a discussion on the diff Dec 08, 2014
    code/moya-web/WebContent/resources/cditools/products/shop.xhtml
    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}">
    • Tuukka Kivilahti @tkfftk commented Dec 08, 2014
      Owner

      ei pahalla, mut tä on kaameeta :D

  • 2a54e04ac87f85d4d091c3be1c8f9cea?s=80&d=identicon
    Tuukka Kivilahti
    @tkfftk started a discussion on the diff Dec 08, 2014
    code/moya-web/WebContent/resources/cditools/products/shop.xhtml
    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 };
    • Tuukka Kivilahti @tkfftk commented Dec 08, 2014
      Owner

      Mitä tässä tapahtuu, joskus myöhemmin js-filussa tulee javascript-koodi joka yliajaa tän?

  • 2a54e04ac87f85d4d091c3be1c8f9cea?s=80&d=identicon
    Tuukka Kivilahti
    @tkfftk started a discussion on the diff Dec 08, 2014
    code/moya-web/WebContent/resources/cditools/products/shop.xhtml
    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 };
    • Tuukka Kivilahti @tkfftk commented Dec 08, 2014
      Owner

      Itse itselleni vastaten, tä on täällä jotta ei tulisi js-virhettä jostain napeista.

  • Tuukka Kivilahti @tkfftk

    mentioned in commit 09fd35b4

    Dec 08, 2014

    mentioned in commit 09fd35b4

    Toggle commit list
  • Write
  • Preview
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
  • Please register or sign in to post a comment
Assignee
No assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
0
Labels
None
Assign labels
  • View labels
2
2 participants
Reference: codecrew/moya!145