<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: multiview Select via attribute or methode</title><link>https://answers.axonivy.com/questions/1097/multiview-select-via-attribute-or-methode</link><description>&lt;p&gt;I want to use mutliple view's in a componente.
The MulitViewDeme shows selecting views by using p:commandButton action="...
Is there a posibillity to select a view via attribut or a methode ?&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/1097/multiview-select-via-attribute-or-methode" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 06 Jan 2015 16:27:24 -0500</lastBuildDate><item><title>Answer by Reto Weiss</title><link>https://answers.axonivy.com/questions/1097/multiview-select-via-attribute-or-methode/1108</link><description>&lt;p&gt;You can try to use the method &lt;code&gt;redirect&lt;/code&gt; of the &lt;code&gt;ExternalContext&lt;/code&gt; interface. E.g.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;FacesContext ctx = FacesContext.getCurrentInstance();

ExternalContext extContext = ctx.getExternalContext();
String url = extContext.encodeActionURL(ctx.getApplication().getViewHandler().getActionURL(ctx, "myView.xhtml"));

extContext.redirect(url);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Hope this solves your problem.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reto Weiss</dc:creator><pubDate>Tue, 06 Jan 2015 16:27:24 -0500</pubDate><guid>https://answers.axonivy.com/questions/1097/multiview-select-via-attribute-or-methode/1108</guid></item></channel></rss>