myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Robinson" <andrew.rw.robin...@gmail.com>
Subject Re: a4j:commandButton and tr:fileDownloadActionListener
Date Thu, 15 Nov 2007 16:10:57 GMT
Use tr:commandButton? A4J and Trinidad are not made to work together

On 11/15/07, Wolfgang <wkluge@ebi.ac.uk> wrote:
> Hi,
>
> I use tr:fileDownloadActionListener to download a xml file. If I use the
> <h:commandButton> everything works fine. But if I change the button to the
> <a4j:commandButton>, which I actually want to have, the file will be opened
> directly in the browser. So is there a way to go around this?
>
>
> <h:commandButton value="Download" styleClass="submit_button">
>                 <tr:fileDownloadActionListener filename="queryResult.xml"
>                                                contentType="text/plain;
> charset=utf-8"
>
> method="#{xmlPage.download}"/>
> </h:commandButton>
>
>

Mime
View raw message