-
1. Re: a4j:mediaOutput non working with Trinidad on pdf objects
ilya_shaikovsky Apr 9, 2007 7:10 AM (in response to tomarenz)seems the problem isn't about Trinidad compatibility. I could reproduce your problem even on JSf 1.2 with facelets only.
http://jira.jboss.com/jira/browse/AJSF-34 added to jira for examination. -
2. Re: a4j:mediaOutput non working with Trinidad on pdf objects
alexsmirnov Apr 19, 2007 2:44 PM (in response to tomarenz)Html tag require classid and data attributes. See http://www.w3.org/TR/html401/struct/objects.html#h-13.3 .
mediaOutput component have attribute uriAttribute to define name of a html attribute for a url link ( default value is 'src' ). For a 'object' element it must be 'data' instead of default 'src' for a tag ( check in generated html code ).
Also, tag require 'classid' attribute to describe plugin for processing data. See example on http://support.microsoft.com/kb/293792 .
<a4j:mediaOutpit> component also have support for 'classid' attribute. -
3. Re: a4j:mediaOutput non working with Trinidad on pdf objects
tomarenz Apr 24, 2007 5:50 AM (in response to tomarenz)Alex, not sure I understand your reply.
Next chunk:<object data="logo-simple.pdf" type="application/pdf"/> <a4j:mediaOutput element="object" cacheable="false" session="true" value="logo-simple.pdf" createContent="#{testBean.paint}" mimeType="application/pdf"/>
renders as (URI truncated):<object data="logo-simple.pdf" type="application/pdf"></object> <object id="_id4" data="/AxxBrowser/a4j.res/org.ajax4jsf.framework.resource.UserResource/n/s/-1248334925/DATA/eAF1Uc9 ..._.faces;jsessionid=BD68529E4395924533AB420ADB2139D0"></object>
but on IE only the first obj appears rendered by the Adobe plugin.
Both miss "classid", both have "data" attribute.
However it seems that mediaOutput forgets to render the "type" attribute, although I specified mimeType.
Either this is critical (and the reason of this failure), or browsers don't like the rendered URI. -
4. Re: a4j:mediaOutput non working with Trinidad on pdf objects
tomarenz Apr 24, 2007 6:20 AM (in response to tomarenz)And - as someone else pointed out - size seems mandatory on FF for the Adobe plugin, while using "object".
This:<object data="file://C:/tmp/logo-simple.pdf" type="application/pdf" width="600" height="600"></object>
is rendered on both FF and IE, while removing width+height renders nothing on FF. -
5. Re: a4j:mediaOutput non working with Trinidad on pdf objects
sriramsudheer Mar 16, 2008 8:50 PM (in response to tomarenz)Hi tomerenz, I found that you are successful in displaying pdf in browser. could you please post your way of doing, As so many are waiting for some sort of answer :)
-
6. Re: a4j:mediaOutput non working with Trinidad on pdf objects
rigolissimo Aug 4, 2009 12:30 AM (in response to tomarenz)"sriramsudheer" wrote:
Hi tomerenz, I found that you are successful in displaying pdf in browser. could you please post your way of doing, As so many are waiting for some sort of answer :)
I would also appreciate an answer on this as I see this as critical for my project (I will not use a4j if this does not work on FF and MSIE). -
7. Re: a4j:mediaOutput non working on pdf objects
rigolissimo Aug 4, 2009 12:32 AM (in response to tomarenz)"Tomarenz" wrote:
Alex, not sure I understand your reply.
Next chunk:<object data="logo-simple.pdf" type="application/pdf"/> <a4j:mediaOutput element="object" cacheable="false" session="true" value="logo-simple.pdf" createContent="#{testBean.paint}" mimeType="application/pdf"/>
renders as (URI truncated):<object data="logo-simple.pdf" type="application/pdf"></object> <object id="_id4" data="/AxxBrowser/a4j.res/org.ajax4jsf.framework.resource.UserResource/n/s/-1248334925/DATA/eAF1Uc9 ..._.faces;jsessionid=BD68529E4395924533AB420ADB2139D0"></object>
but on IE only the first obj appears rendered by the Adobe plugin.
Both miss "classid", both have "data" attribute.
However it seems that mediaOutput forgets to render the "type" attribute, although I specified mimeType.
Either this is critical (and the reason of this failure), or browsers don't like the rendered URI.
I have the same problem (using classid does not help), the paint object (code) is called twice with FF 3.5 and never with MSIE 8.
I can't believe there is no clear answer or working example for such an typical use of Ajax and Richfaces... -
8. Re: a4j:mediaOutput non working with Trinidad on pdf objects
ilya_shaikovsky Aug 4, 2009 4:33 AM (in response to tomarenz)wrong forum.
-
9. Re: a4j:mediaOutput non working with Trinidad on pdf objects
ilya_shaikovsky Aug 4, 2009 4:33 AM (in response to tomarenz)wrong forum