Subject: How to add a dynamic image to ice:outputResource. Subject: Re:How to add a dynamic image to ice:outputResource. How to add a dynamic image to ice:outputResource. I'm populating a ice:outputResource from a list of documents.

Author:Maut Brashura
Language:English (Spanish)
Published (Last):10 September 2011
PDF File Size:6.97 Mb
ePub File Size:9.42 Mb
Price:Free* [*Free Regsitration Required]

The outputResource component can be used to expose resources to the page. These resources can be rendered as links that trigger the browser to open the resource as an attachment, or open directly from the current page. Any class that implements the com.

Resource can be used to expose the resource. If true, specifies that the resource should be downloaded as an attachment. See also the resource attribute. The file name to be used for the attachment header. If the label is not specified the file name will be used. The component identifier for this component.

This value must be unique within the closest parent component that is a naming container. The label to be displayed for the resource. The label will be used for the text of the link or button. If an image is used, the label will be used as the alt attribute value of the image element. The java. Data object specifying the last modified header that will be sent to the browser for this resource.

The mime-type for the resource. If not specified, and available from the backing Resource, the Resource's mime-type will be used. Flag indicating whether or not this component should be rendered during Render Response Phase , or processed on any subsequent form submit. If user is in given role, this component will be rendered normally.

If not, nothing is rendered and the body of this tag will be skipped. The object of type com. Resource that will be used. It can be use to override the attachment, fileName, lastModified and mimeType attributes via the withOptions method. If true default , specifies that the resource should be cached by the resource registry.

If cached, resources having the same signature see Resource. Therefore, if the developer has to dynamically set any properties on the outputResource component, and have those properties applied dynamically to individual users, then the 'shared' attribute should be set to false. Space-separated list of CSS style class es to be applied when this element is rendered. This value is passed through as the "class" attribute on generated markup.

The base name for all style classes. Default value is iceOutLnk if rendered as a link, or iceCmdBtn if rendered as a button. Value of the target attribute when resource is rendered as a link. The type of link to render: link default image: renders a link with an image must be used with the image attribute button: renders a button with the text from value.


outputResource « IceFaces « JSF Q&A

I'm using the ice:outputResource component in my page. Instead of hard-coding the mime type attribute in the page, I'm using an EL expression to retrieve it from the managed bean. In the managed bean, the getter method returns the mime type as a string. But the page throws a null pointer exception saying that EL expression for the mime Hi, I'm currently trying to implement a customer's requirement to show the download location on a web page after a file has been downloaded using the ice:outputresource component.


Subscribe to RSS

By using our site, you acknowledge that you have read and understand our Cookie Policy , Privacy Policy , and our Terms of Service. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. I am trying to generate an export file out of some items, which should conform to some "criteria" in order to be able to be exported. The thing is: the user should select some items by using checkboxes and then click on the ICEFaces' OutputResource in order to export hopefully all the selected items.



Subject: Initialize ice:outputResource dynamically. Subject: Re:Initialize ice:outputResource dynamically. Initialize ice:outputResource dynamically. Hi, I'm using Icefaces 1. So please help me how can I do specific task when ice:outputResource button or link is clicked. I'm agree with you.



Related Articles