<?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>Fri, 16 Jan 2015 16:26:57 -0500</lastBuildDate><item><title>Comment by rschreiter on Reto Weiss's answer</title><link>https://answers.axonivy.com/questions/1097/multiview-select-via-attribute-or-methode#1124</link><description>&lt;p&gt;Thank You very mutch.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">rschreiter</dc:creator><pubDate>Fri, 16 Jan 2015 16:26:57 -0500</pubDate><guid>https://answers.axonivy.com/questions/1097/multiview-select-via-attribute-or-methode#1124</guid></item><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><item><title>Comment by rschreiter on rschreiter's question</title><link>https://answers.axonivy.com/questions/1097/multiview-select-via-attribute-or-methode#1099</link><description>&lt;p&gt;My Problem is that i don't want use a CommanButton to Change the View - I want select the View on the start of the component or by using JAVA in am Methode.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">rschreiter</dc:creator><pubDate>Thu, 18 Dec 2014 15:30:39 -0500</pubDate><guid>https://answers.axonivy.com/questions/1097/multiview-select-via-attribute-or-methode#1099</guid></item><item><title>Comment by HaraldWeber on rschreiter's question</title><link>https://answers.axonivy.com/questions/1097/multiview-select-via-attribute-or-methode#1098</link><description>&lt;p&gt;In the Demo the method "nextView" is called. The return value is the name of the next view. It doesn't matter how you call this method.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">HaraldWeber</dc:creator><pubDate>Thu, 18 Dec 2014 15:21:26 -0500</pubDate><guid>https://answers.axonivy.com/questions/1097/multiview-select-via-attribute-or-methode#1098</guid></item></channel></rss>