{"id":1252,"date":"2016-04-28T14:16:59","date_gmt":"2016-04-28T12:16:59","guid":{"rendered":"http:\/\/oracle.malin.pl\/?p=1252"},"modified":"2018-07-05T11:55:52","modified_gmt":"2018-07-05T09:55:52","slug":"oaf-przekazywanie-wartosci-pomiedzy-stronami","status":"publish","type":"post","link":"https:\/\/oracle.malin.pl\/?p=1252","title":{"rendered":"OAF &#8211; przekazywanie warto\u015bci poprzez parametr\/zmienne pomi\u0119dzy stronami"},"content":{"rendered":"<p>Witam,<\/p>\n<p>Wi\u0119cej informacji na temat zmiennych sesyjnych itp. w dokumentacji <\/p>\n<p>Correctly Communicate State Across Pages (Controller Coding Standards C20, C17)<\/p>\n<p>Na stronie A ustawiamy zmienne:<\/p>\n<p>String vpar1= String.valueOf(result[0]); \/\/ Capturing value from Array<br \/>\nString vpar2= String.valueOf(result[1]); \/\/ Capturing value from Array<\/p>\n<p>pageContext.putTransactionValue(&#8222;par1&#8243;,&#8221;vpar1&#8221;);<br \/>\n&#8222;Adds a value to a special page cache that persists for a single request.<br \/>\nNote: If, for example, users navigate to the Personalizations module or Preferences and then return to your page,<br \/>\nit will not rebuild correctly if you depend solely on a value set with putParameter().<br \/>\nThis is because navigation flow entails multiple requests.&#8221;<\/p>\n<p>Na stronie B docelowej pobieramy zmienne:<\/p>\n<p>String par1 = (String)pageContext.getTransactionValue(&#8222;par1&#8221;);<br \/>\nString par2 = (String)pageContext.getTransactionValue(&#8222;par2&#8221;);<\/p>\n<p>Pozdrawiam,<br \/>\nLuko<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Witam, Wi\u0119cej informacji na temat zmiennych sesyjnych itp. w dokumentacji Correctly Communicate State Across Pages (Controller Coding Standards C20, C17) Na stronie A ustawiamy zmienne: String vpar1= String.valueOf(result[0]); \/\/ Capturing value from Array String vpar2= String.valueOf(result[1]); \/\/ Capturing value from &hellip; <a href=\"https:\/\/oracle.malin.pl\/?p=1252\">Czytaj dalej <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":37,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[96],"tags":[58],"_links":{"self":[{"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=\/wp\/v2\/posts\/1252"}],"collection":[{"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=\/wp\/v2\/users\/37"}],"replies":[{"embeddable":true,"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1252"}],"version-history":[{"count":3,"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=\/wp\/v2\/posts\/1252\/revisions"}],"predecessor-version":[{"id":1346,"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=\/wp\/v2\/posts\/1252\/revisions\/1346"}],"wp:attachment":[{"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1252"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oracle.malin.pl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}