> And the commandLink on the other hand
> can support actions but can't open windows.

Gladly, this is not true. Just use the target attribute. You can even make a commandButton open in a new window, by wrapping it in a commandLink. Here's some working code from my actual application:

<h:commandLink id="showReportButton" action="#{trialBalanceForm.prepareReport}" target="_blank">
        <h:commandButton value="Create Report" styleClass="styleFont 
styleLabel"/>
</h:commandLink>

Regards,

Jeff Bischoff
Kenneth L Kurz & Associates, Inc.

Amit Kushwaha wrote:
Hi,

I need the best of command link and output link...ie execute an action and open a window.

AFAIK, the outputLink can open a new window on click but can't support actions. And the commandLink on the other hand
can support actions but can't open windows.

What I really need is both. So, when u click a link it executes an operation on a managed bean and the result of that is
included in the new window.

Much appreciated, TIA.

Amit







Reply via email to