<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Technotrance, Illusions and Perspectives &#187; jsf</title>
	<atom:link href="http://myblog.shriharisc.com/tag/jsf/feed/" rel="self" type="application/rss+xml" />
	<link>http://myblog.shriharisc.com</link>
	<description>A dose of everyday bruises with Java/JEE</description>
	<lastBuildDate>Mon, 12 Jul 2010 17:55:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to open a new window from JSF commandLink tag?</title>
		<link>http://myblog.shriharisc.com/2009/12/02/how-to-open-a-new-window-from-jsf-commandlink-tag/</link>
		<comments>http://myblog.shriharisc.com/2009/12/02/how-to-open-a-new-window-from-jsf-commandlink-tag/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 18:06:41 +0000</pubDate>
		<dc:creator>Shrihari</dc:creator>
				<category><![CDATA[jee-light]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jsf]]></category>

		<guid isPermaLink="false">http://myblog.shriharisc.com/?p=223</guid>
		<description><![CDATA[Some of the JSF reference implementations (including jsf-html) do not provide commandLink option with a target attribute, which we could use as in &#60;a href=&#8221;myurl&#8221; target=&#8221;_blank&#8221;/&#62;. This quick tip would explore 2 ways to do that
1) If there in only single commandLink in the form, you could specify it the enclosing form level as given [...]]]></description>
			<content:encoded><![CDATA[<p>Some of the JSF reference implementations (including jsf-html) do not provide commandLink option with a target attribute, which we could use as in &lt;a href=&#8221;myurl&#8221; target=&#8221;_blank&#8221;/&gt;. This quick tip would explore 2 ways to do that</p>
<p>1) If there in only single commandLink in the form, you could specify it the enclosing form level as given below:</p>
<pre class="brush: xml">
&lt;h:form id=&quot;form1&quot; target=&quot;blank&quot;&gt;
...
&lt;h:commandLink action=&quot;#{mybean.myaction}&quot; id=&quot;link&quot; value=&quot;Click here to open new window&quot;&gt;
&lt;/h:commandLink&gt;
...
&lt;/h:form&gt;
</pre>
<p>2) If there are multiple commandLink tags in the enclosing form, you could use onclick attribute to navigate in a new page:</p>
<pre class="brush: xml">
&lt;h:form id=&quot;form2&quot;&gt;
...
&lt;h:commandLink action=&quot;#{mybean.myaction1}&quot; id=&quot;link1&quot; value=&quot;Click here to open new window1&quot; onclick=&quot;javascript:window.open(&#039;#{request.contextPath}/myview.1jsf&#039;);&quot;&gt;
&lt;/h:commandLink&gt;
....
&lt;h:commandLink action=&quot;#{mybean.myaction2}&quot; id=&quot;link2&quot; value=&quot;Click here to open new window2&quot; onclick=&quot;javascript:window.open(&#039;#{request.contextPath}/myview2.jsf&#039;);&quot;&gt;
&lt;/h:commandLink&gt;
...
&lt;/h:form&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://myblog.shriharisc.com/2009/12/02/how-to-open-a-new-window-from-jsf-commandlink-tag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
