We have a page that accepts report parameters, and a button on the page that
launches the report.  The button is actually a commandLink with target =
_blank so the PDF report opens in a new window.  The button code is like
this:

<h:commandLink action="#{endOfStudyReport.createEndOfStudyPdf}"
target="_blank">
    <h:commandButton value="Generate Report" styleClass="buttonSimple"/>
</h:commandLink>

The problem is, we want to validate the parameters before launching the
report, and if there is an error, we want to re-open the parameter page with
the error message.  If no error, we want the report to open in a new window,
because it is PDF.  Does anyone know a technique for this?
-- 
View this message in context: 
http://www.nabble.com/validation-with-commandLink-and-target-%3D-_blank-tf3601961.html#a10061859
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to