-
1. Re: Display a pdf document in my page
anisj1m Sep 29, 2009 3:41 AM (in response to anisj1m)"anisj1m" wrote:
Hi,
i tried alot of method to display an automatically generated pdf document in my page but i didnt succeed.
i tried with object , iframe and a4j:mediaOutput.
did anyone have an example that is working
thanks in advance. -
2. Re: Display a pdf document in my page
ilya_shaikovsky Sep 29, 2009 4:12 AM (in response to anisj1m)was checked with this https://jira.jboss.org/jira/browse/RF-7669. Some missed attributes were corrected. So please check under 3.3.2 latest snapshot and using mediaOutput sample project in 3.3.x/samples SVN folder. (links to sources in my signature and howto's related to dev samples usage at wiki)
-
3. Re: Display a pdf document in my page
anisj1m Sep 29, 2009 4:50 AM (in response to anisj1m)thank you ilya_shaikovsky, so as i understood, i have to use the 3.3.2 version of richfaces,
right?
if yes, do you have a sample example so i can use it to display the pdf file in my page.
thnaks, -
4. Re: Display a pdf document in my page
ilya_shaikovsky Sep 29, 2009 5:00 AM (in response to anisj1m)1) yes
2) as I written above try mediaOutput project from 3.3.x samples folder. http://anonsvn.jboss.org/repos/richfaces/branches/community/3.3.X/samples/mediaOutput -
5. Re: Display a pdf document in my page
anisj1m Sep 29, 2009 5:18 AM (in response to anisj1m)Great thank for you ilya_shaikovsky, really you are always my savior
you are the King .
;) -
6. Re: Display a pdf document in my page
anisj1m Sep 30, 2009 5:30 AM (in response to anisj1m)Hi,
I am convinced that this solution is the correct solution, but I found a problem in his start, I had this exception: "pain" property not found
can you help me, thanks -
7. Re: Display a pdf document in my page
anisj1m Sep 30, 2009 6:41 AM (in response to anisj1m)in the example :
<a4j:mediaOutput element="object" cacheable="false" session="true" value="rc044-010d-richfaces_3.pdf" createContent="#{bean.paint}" type="application/pdf">something</a4j:mediaOutput>
do i have to put the flow (that contain pdf) that i will generate in
value="rc044-010d-richfaces_3.pdf"
or
put it in parameter out in method pain ?
thanks -
8. Re: Display a pdf document in my page
ilya_shaikovsky Oct 1, 2009 6:46 AM (in response to anisj1m)msthod paint has strictly defined signature, check the sample method code please again.