<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Request parameter of a xhtml page</title><link>https://answers.axonivy.com/questions/3683/request-parameter-of-a-xhtml-page</link><description>&lt;p&gt;Hi Ivy Team&lt;/p&gt;
&lt;p&gt;I have the following setup: A process is started to display a dialog. In the dialog (..../MyDialog.xhtml) a redirect to another site is executed and the site calls again .../MyDialog.xhtml?myParam=xyz&lt;/p&gt;
&lt;p&gt;myParam should be read in a script box - usually one would use&lt;/p&gt;
&lt;p&gt;... FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("myParam")&lt;/p&gt;
&lt;p&gt;but looks like this doesn't work. Importantly I can not use the start/param mapping feature.&lt;/p&gt;
&lt;p&gt;So is there another way to read the parameter or the request path ?&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards
John&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/3683/request-parameter-of-a-xhtml-page" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 01 Mar 2019 09:41:40 -0500</lastBuildDate><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/3683/request-parameter-of-a-xhtml-page/3720</link><description>&lt;p&gt;Hey John, &lt;/p&gt;
&lt;p&gt;thanks for your sample flow. I think the issues with it arise as you check the OAuth token within an existing UserDialog. And you can't safely redirect to another page within that JSF Dialog without loosing context information.&lt;/p&gt;
&lt;p&gt;To work around for that problem: I think it would be easier to work with extra screens/Ui Dialogs in case the OAuth token is not present/valid. You could even stick to your current solution and leave the already running dialog with an ErrorEnd event, which you catch outside the dialog and if necessary delegate the request to the OAuth form UI.&lt;/p&gt;
&lt;p&gt;A solution very similar to my proposal can be found in the official 'ConnectivityDemos', which are shipped as Designer sample. See Import -&amp;gt; Axon.ivy &amp;gt; Samples &amp;gt; ConnectivityDemos : 
&lt;img alt="alt text" src="https://answers.axonivy.com/upfiles/oauthConnectivityDemos.png"&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Fri, 01 Mar 2019 09:41:40 -0500</pubDate><guid>https://answers.axonivy.com/questions/3683/request-parameter-of-a-xhtml-page/3720</guid></item><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/3683/request-parameter-of-a-xhtml-page/3689</link><description>&lt;p&gt;&lt;code&gt;Ivy.request.getFirstParameterXssAware("myParam")&lt;/code&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Fri, 22 Feb 2019 10:10:27 -0500</pubDate><guid>https://answers.axonivy.com/questions/3683/request-parameter-of-a-xhtml-page/3689</guid></item></channel></rss>