You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by MichaƂ 'Gandalf' Stawicki <st...@gmail.com> on 2007/02/18 01:40:07 UTC

[Tobago] target attribute not working

My code:

				    <tc:button
					label="Zapisz opisy i wygeneruj raport"
action="#{operatorManagedBean.operatorFilesController.saveDescriptionAndGenerateReport}">
					<f:facet name="popup">
					    <tc:popup
						id="kakofonix"
						width="300"
						height="100">
						
						<tc:box
						    label="Pobierz raport"
						    id="idefix">
						    <tc:button
							label="Raport"
							target="_blank"
							transition="false"
							link="GetRaport.jsf">
							<tc:attribute name="popupClose" value="afterSubmit" />
						    </tc:button>
						</tc:box>
					    </tc:popup>
					</f:facet>
				    </tc:button>

The inner button is supposed to close the popup and open page in new
window, but it seems that it ignores the target attribute and new page
is opened in current window. Should I change tc:butoon to tc:link,
then the page opens in new window, but the popup won't close.

Any hints how to deal with it?

regards,
michael

-- 
stawicki@gmail.com
http://stawicki.jasliska.pl
GG: 3691111
JID: stawicki@gmail.com