H:commandButton relative image url

h:commandButton is not storing relative path..also if I don't know y I have to put at the same position else values from properties file won't be displayed <f:view> & <f:loadBundle>
below is the code..Thankx..
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
     xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns:rich="http://richfaces.ajax4jsf.org/rich"
     xmlns:h="http://java.sun.com/jsf/html"
     xmlns:f="http://java.sun.com/jsf/core"
     xmlns:a4j="https://ajax4jsf.dev.java.net/ajax">
<body>
This text above will not be displayed.
<ui:composition template="/layout/template.xhtml">
     <ui:define name="header">
          <h:outputText value="#{msg['orderList.header']}" />
     </ui:define>
     <ui:define name="body">
<f:view>
<f:loadBundle basename="com.superpages.mediaPro.resources.UIResources" var="msg" />
          <h:form>
<h:dataTable value='#{order.orders}' var='dataTableOrder'
     rowClasses="list-row-odd,list-row-even" headerClass="table-header"
     border="1" cellpadding="2" cellspacing="0">
<h:column>
<f:facet name="header">
<h:panelGroup>
                              <h:commandLink actionListener="#{order.sortByOrderId}"
                                   immediate="true">
                                   <h:outputText value="#{msg['orderList.orderId']}"/>
                              </h:commandLink>
                              <h:graphicImage url="#{order.sortOrderIdAsc ? '/images/arrow-up.gif' : '/images/arrow-down.gif'}" height="13"
                                   width="9" rendered="#{order.showSortOrderIdIcon}"/>
                         </h:panelGroup>
                         </f:facet>
                         <h:outputText value="#{dataTableOrder.orderId}"/>
                    </h:column>
</h:dataTable>
               <h:graphicImage url="/images/firstDisabled.gif" rendered="#{order.firstOrder lt order.batchSize}"/>
               <h:commandButton image="/images/first.gif" rendered="#{order.firstOrder ge order.batchSize}"/> 
               <h:graphicImage url="/images/prevDisabled.gif" rendered="#{order.firstOrder lt order.batchSize}"/>
               <h:commandButton action="#{order.prev}" image="/images/prev.gif" rendered="#{order.firstOrder ge order.batchSize}"/> 
               <h:outputText value="Page"/>  
               <h:panelGroup>
                    <h:inputText id="pageNo">
                         <!--<a4j:support event=""/>-->
                    </h:inputText>
               </h:panelGroup> 
               <h:outputText value="of #{order.orderCount}"/>  
               <h:graphicImage url="/images/nextDisabled.gif" rendered="#{order.lastOrder ge order.orderCount}"/>
               <h:commandButton action="#{order.next}" image="/images/next.gif" rendered="#{order.lastOrder lt order.orderCount}"/> 
               <h:graphicImage url="/images/lastDisabled.gif" rendered="#{order.lastOrder ge order.orderCount}"/>
               <h:commandButton image="/images/last.gif" rendered="#{order.lastOrder lt order.orderCount}"/> 
          </h:form>
</f:view>
     </ui:define>
</ui:composition>
This text below will also not be displayed.
</body>
</html>

using absolute path works..but is there any other solution...as in my other file it works fine but I am not being able to figure out the difference..
here is the working file...
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">
<body>
This text above will not be displayed.
<ui:composition template="../template.xhtml">
This text will not be displayed.
<ui:define name="title">
List Item
</ui:define>
This text will also not be displayed.
<ui:define name="body">
<f:view>
<h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
<h2>Listing Items</h2>
<h:form>
Back to index
               <h:graphicImage url="/images/firstDisabled.gif" rendered="#{item.firstItem lt item.batchSize}"/>
               <h:commandButton image="/images/first.gif" rendered="#{item.firstItem ge item.batchSize}"/> 
               <h:graphicImage url="/images/prevDisabled.gif" rendered="#{item.firstItem lt item.batchSize}"/>
               <h:commandButton action="#{item.prev}" image="/images/prev.gif" rendered="#{item.firstItem ge item.batchSize}"/> 
               <h:outputText value="Page"/>  
               <h:panelGroup>
                    <h:inputText id="pageNo">
                         <!--<a4j:support event=""/>-->
                    </h:inputText>
               </h:panelGroup> 
               <h:outputText value="of #{item.itemCount}"/>  
               <h:graphicImage url="/images/nextDisabled.gif" rendered="#{item.lastItem ge item.itemCount}"/>
               <h:commandButton action="#{item.next}" image="/images/next.gif" rendered="#{item.lastItem lt item.itemCount}"/> 
               <h:graphicImage url="/images/lastDisabled.gif" rendered="#{item.lastItem ge item.itemCount}"/>
               <h:commandButton image="/images/last.gif" rendered="#{item.lastItem lt item.itemCount}"/>      
<h:dataTable value='#{item.items}' var='dataTableItem'
     rowClasses="list-row-odd,list-row-even" headerClass="table-header"
     border="1" cellpadding="2" cellspacing="0">
<h:column>
<f:facet name="header">
<h:panelGroup>
     <h:commandLink actionListener="#{item.sortByName}"
                                        immediate="true">
     <h:outputText value="Name"/>
     </h:commandLink>
                                   <h:graphicImage url="#{item.sortNameAsc ? '/images/arrow-up.gif' : '/images/arrow-down.gif'}" height="13"
                                        width="9" rendered="#{item.showSortNameIcon}"/>
</h:panelGroup>
</f:facet>
<h:commandLink action="#{item.detailSetup}" value="#{dataTableItem.name}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Price"/>
</f:facet>
<h:outputText value="#{dataTableItem.price}"/>
</h:column>
</h:dataTable>
</h:form>
</f:view>
</ui:define>
This text will not be displayed.
</ui:composition>
This text below will also not be displayed.
</body>
</html>l>
Message was edited by:
MurtuzaKhan

Similar Messages

  • Sharing image URL on Twitter from Adobe AIR Desktop

    Hi All,
    Does anyone has worked with sharing image URL on Twitter from Adobe AIR Desktop. I am able to post data but with multiple libraries still not able to post images over twitter. Any help will be appreciated.
    Thanks,
    Sunil Rana

    Can you help ?
    I can't use scout because my other systems are 32 bit and it doesn't seem to be working with them.
    The problem seems to come from the fullscreen mode from adobe air since in windowed mode it runs smoothly (even on a 7 years old notebook).
    I even have 3 different rendering options in fullscreen and all of them are lagging (no scale, show all, exact fit). Not sure what the issue can be when even the no scale mode lags, so i'm guessing it's related to the fullscreen.interactive mode of air.
    edit: Or not.
    I managed to get it run smoothly by using CPU mode as renderer option for adobe air.
    Not sure what the issue was with direct but i will test it some more (on the other computers as well) and will get back to you.
    edit²: it only helped on one computer. The mac still has big slowdowns in fullscreen and the core2duo now has screen tearing with that option.
    edit^3: I tried using the fullScreenSourceRect on the stage for hardware scaling. It seems to run smoothly. Sadly, everything is a bit blurry with it and i can't chose other rendering options (no scale or exact fit), those don't work anymore with the sourcerect.
    I would like to be able to use the hardware scaling and change the aspect ratio, is that possible ?

  • Custom Image(URL) not showing up in PDF

    Hi,
    We have created a standard webi-report where a company logo is part of the report header.
    We would like to keep the company logo in a database, so we've creáted a simple webapp to retrieve the image from an Oracle database. When we insert the logo into our report we just use the following link as the Image(URL): http://<Servername>/plsqlapp/docs/Company.JPG
    The logo now shows up as expected in the report as long as we view the report through InfoView. However, when we export the report as a PDF document, the logo will vanish.
    If we use boimg://Company.jpg as the Image(URL) instead, it works OK even when exported to a PDF document.
    We would however prefer to keep our images used in reports in a database.
    BR
    Carsten

    From SAP BO support:
    Upon further investigation of the issue, I found that there was a Technical Escalation raised for Enterprise under the Technical Escalation Id 5000072075. However, the product group rejected the TE stating that it is by Design.
    Mentioned below is the Knowledge based Article which supports the above.
    1324404 - Webintelligence report images are lost after save the report as PDF
    Symptom
    Webintelligence report images are lost after save the report as PDF
    Reproducing the Issue
    ·         Create a new WebI report from Infoview using example efashion universe
    ·         Do any query and add a blank cell to the report
    ·         Select the cell and input "http://tomcat.apache.org/images/tomcat.gif"
    ·         Right click on cell and select Properties>Display>Read cell content as-->image URL
    ·         Save the report as PDF
    ·         Open the PDF file. The image is not included in the PDF
    This issue reproduced on both XIR2 & XI3.0 & XI3.1
    Cause
    Presently, we donu2019t support URL picture from the internet for PDF.
    Only embedded images as background cell can be exported in PDF.
    Resolution
    Only embedded images as background cell can be exported in PDF.

  • Can anyone tell me how to upload a url to an image onto facebook the way you could with a pc. Recently switched over to Mac and this is one thing I can't seem to figure out. Basically in Windows you could right click on an image, click copy the image url

    I've recently switched over to a Mac and before in Windows on a pc if you wanted to post an image on facebook you would right click the image you found on the post you wanted to share, then click copy url. You'd simply take that url and put it into the facebook post when uploading an image and that's all. Can not seem to find a way to do it now, other than saving the image to the computer and then uploading that which is not what I want to do. I've searched and searched but can't seem to find a solution other then posting in Parallels Window.
    Any suggestions??

    Thanks brody, I had been able to do that but on my business fb page I often post images and put in the links myself in the descriptions. In Windows you're able to post images by simply pasting in the url but on the Mac I'd have to download someone's image which I'm not comfortable doing so I find myself switching back and forth between the Mac and Windows.
    This link explains what I'm trying to do on the Mac probably in a less confusing way than I just did: http://howto.cnet.com/8301-11310_39-57496509-285/quickly-upload-photos-to-facebo ok-by-pasting-the-image-url/

  • Problem with image url

    Hello,
    today I have a problem with image url. I wanted Image to change when mouse dragged over it. But nothing happened. Any ideas?
    def maxIco: ImageView = ImageView{
    image: Image{
    url: "{__DIR__}ikony/max.png"
    onMouseDragged: function(event: MouseEvent){
    maxIco.image = Image{
    url: "{__DIR__}ikony/max2.png"
    }

    This is working for me:
    src/main/Main.fx
    src/main/icon/image1.bmp
    src/main/icon/image2.bmp
    //Main.fx
    package main;
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.image.Image;
    import javafx.scene.image.ImageView;
    import javafx.scene.input.MouseEvent;
    var changed = false;
    def imgView: ImageView = ImageView {
        image: Image {
            url: "{__DIR__}icon/image1.bmp"
        onMouseDragged: function (e: MouseEvent): Void {
            if (not changed) {
                imgView.image = Image {
                    url: "{__DIR__}icon/image2.bmp"
                changed = true;
                println(imgView.image.url);
        onMouseReleased: function (e: MouseEvent): Void {
            imgView.image = Image {
                url: "{__DIR__}icon/image1.bmp"
            changed = false;
            println(imgView.image.url);
    Stage {
        title: "ImageTest"
        scene: Scene {
            width: 700
            height: 600
            content: [
                imgView
    }I've changed few things to switch image only one time on mouseDragged event.
    It print the image URL.

  • [Help Plz]Image URL in PDF

    Hello,
    We have a report to produce using IText API
    Everything is fine in test phase but few days ago we tryied to test the report using the server name ALIAS and we get error :/
    Server returned HTTP error code 503, I search in the net and I found that it's due to a temporary inavailability of the server but It still not working so we tried to find another solution :
    I used the code below :
    //url is the dynamically generated url of the image.
    java.awt.Image awtImg = java.awt.Toolkit.getDefaultToolkit().createImage(url);
    //I get error here
    com.lowagie.text.Image image2 = com.lowagie.text.Image.getInstance(awtImg, null);
    document.add(image2);
    but I get the following error : java.awt.Image fetch aborted or errored
    I search in the internet, too many people asking the same question but no one seems to have the answer
    (people facing the same problem say that the problem is due to the fact that we have an url in parameter).
    When I try to access the image on the server using the generated url (copy paste to the browser), it works, I can see the image.
    Any ideas? Any suggestions?
    It's really important.
    Thanks in advance for your help.
    Edited by: ImaneA on Jul 12, 2011 5:46 PM

    Hello Saleem Mohammed,
    Thanks a lot for your reply.
    For the storage of image in database, I'm not sure that we can do that but for using the image from KM, I'll try it on a server which have a unique node.
    When you say "read image from KM", you mean hardcode the KM image url, is that right?
    For the http code error 503, I got it when using the code below :
    com.lowagie.text.Image image = com.lowagie.text.Image.getInstance(url);
    document.add(image);
    The code I've mentionned in my previous post returned the error : java.awt.Image fetch aborted or errored
    Again, thanks a lot for your help.
    PS : I've assigned points
    Edited by: ImaneA on Jul 13, 2011 9:48 AM

  • Image URL

    hi, I tried to use the 'Link File' in the layout model to create a dynamic URL link to image object, then Under the Link File Boilerplate node i did:
    1 Set the Source File Format property to Image URL.
    2 Set the Source Filename property to the URL (http://...)where the image is located with the required protocol.
    then i run the report on the web, the URL shows up within link file box instead of showing the image object. Does any one know how to do that? please help me. Thanks.
    Joe

    Need a little more informaiton, but istead, please first check out the "Reports Advanced Web Publishing Demo" available for download in the Reports section on OTN (under Sample Code). This demo uses this feature and the source should help you out. If you just want to look at the RDF for image URL help you don't have to go through the setup instructions.
    Regards
    The Oracle Reports Team http://technet.oracle.com
    null

  • JavaFX image url

    Hello everybody!
    I have troubles understanding the way image urls work in JavaFX.
    The tutorials only use __DIR__, which of course references the package the script lies in or an absolute URL.
    But i dont want to place an image folder inside my package structure but on project level instead.
    Is there something like e.g: "platform:img/image.pgn" ?
    or is it absolutely necessary to place images inside the package itself?
    Thank in advance for your answers!
    Flowqi

    you can use an image URL instead of __DIR__ and path of image
    Stage {
        scene: Scene {
            width: 500
            height: 400
            content: [
                ImageView {
                    image: Image {
                        url: "http://farm2.static.flickr.com/1357/855466139_2c7537e555.jpg"
    }

  • Dynamic Image Url html view

    Hi all,
    I am currentyl trying to display an image, which can be accessed by a http-url refering to an external server.
    The problem is, that that the displayed image is linked with the content...that means, that the image url has to be dynamic.
    Does anybody know how to solve this problem. I am currently mapping an url to the url-input of the html-view, but by starting the application the following error occurs:
    com.sap.tc.wd4vc.intapi.info.exception.WD4VCRuntimeException: No parser configuration entry for the tag HtmlView
    Does anybody know how to solve this problem?
    Thank you in advance.
    Kind regards, Patrick

    Hi Patrick,
    Are you still looking for the answer?
    Did you try the expression editor of the image control, where based on expression (ie., your content), image will be displayed.
    Are you storing the data (from where you pass the content to next UI component or next screen) in a data store; and taking the data store value in the expression editor of the image component?
    Let me know if it helps
    Regards,
    Vani

  • Why does my custom HTML newsletters absolute image urls get changed into imap: urls

    I made a custom newsletter email in which all my images are absolute URLS. I use Thunderbird to send it out through my imapped google email account. Once I send it the URLs get changed and for some reason brings my tracking URL into the image URL as well from the bottom of the page.
    See link below in reply

    [https://gist.github.com/justawebbie/9240967 My Code to look at]

  • The value should be set for Base image URL and Image file directory

    Hi experts
    Now customer has the following issue.
    XML Publisher concurrent request, using RTF layout template with LOGO, does not generate the LOGO for Excel output.
    but in output formats PDF, it is shown normally.
    from the debug log, we can found the following error message
    ======
    [051812_054716051][][ERROR] Could not create an image. Set html-image-dir and html-image-base-uri correctly.
    ======
    so I tell the customer to do the following action plan.
    1. in XML Publisher Administrator resp > Administration expand the HTML Output section.
    2a. enter a value for 'Base image URI'
    2b. enter a value for 'Image file directory'
    Customer set the value as following and retest this issue,but he found the issue is not solved.
    Base image URI: /u01/r12/ebssnd/apps/apps_st/comn/java/classes/oracle/apps/media/XXSLI_SONY_LIFE_LOGO.gif
    Image file directory: /u01/r12/ebssnd/apps/apps_st/comn/java/classes/oracle/apps/media
    I verified 'Base image URI' and 'Image file directory' settings:
    1) Change output type to HTML.
    2) Click the Preview.
    but the image is correctly displayed on HTML, so I think the issue is caused by user's uncorrectly setting of the base image URL and/or image file directory
    but could anyone give me some advice on which value should be set for Base image URL and Image file directory
    Regards
    shuangfei

    First thing to do is to edit the post and use some tags to format the code as it is unreadable and too much!
    Read the FAQ (https://forums.oracle.com/forums/help.jspa) to find out how to do this.
    Next we need to know the jdev version you are using!
    As the code is generated I would first try to generate it again after the db change.
    Timo

  • Signature image url

    hi
    if i were to put the signature image file for a check in a unix directory (under $CUSTOM_TOP) , can i set the url as url:{’${CUSTOM_TOP}/IMGFILE’} for the image in the rtf(web property).
    What I am trying to do is, to have this image in a secure directory in unix and setting up the url as this env. variable.
    Thanks
    J

    You have to give the full path to the image. In the XML file, you should send something like:
    <CP_SIGNIMAGEPATH>/d01/appldev/devcomn/admin/cert/jsn70p.jpg</CP_SIGNIMAGEPATH>
    Then in the template, put the following in the alternate text section under the WEB tab for the placeholder image:
    url:{CP_SIGNIMAGEPATH}
    Hope that helps,
    Brett

  • Sending HTML + related images + attachments

    Hello,
    I want to send an HTML file + related images + attachments.
    I actually succeeds in sending HTML content + related images.
    I also know how to attach files in a mail.
    But when I want to have both of those functionnalities in the same mail, I miserably fail... ;)
    Does anyone have a simple example that sends an HTML file + related images + attachments??
    HELP!!!!
    Denis.

    USe this as a **guide**.
    Its sends images + altText(similar to attachment, except that its embedded + html)
    public static void sendC()throws Exception{
              String host = "xx";
              String from = "xxx";
              String to = "xxx";
              String file = "logo.gif";
              Properties props = System.getProperties();
              props.put("mail.smtp.host", host);
              Session session = Session.getDefaultInstance(props, null);
              Message message = new MimeMessage(session);
              message.setSubject("Embedded Image");
              message.setFrom(new InternetAddress(from));
              message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));
              MimeMultipart multipart1 =new MimeMultipart("related");
              //multipart1.setSubType("alternative");
              MimeMultipart multipartBody = new MimeMultipart("alternative");
              MimeBodyPart part=new MimeBodyPart();
              part.setContent("textMessage","text/plain");
              multipartBody.addBodyPart(part);
              part=new MimeBodyPart();
              String htmlText = "<H1>Hello</H1>" +"<img src=\"cid:memememe\">";
              part.setContent(htmlText,"text/html");
              multipartBody.addBodyPart(part);
              MimeBodyPart mbpBody = new MimeBodyPart();
              mbpBody.setContent(multipartBody);
              multipart1.addBodyPart(mbpBody);
              MimeBodyPart imagePart = new MimeBodyPart();
              DataSource fds = new FileDataSource(file);
              imagePart.setDataHandler(new DataHandler(fds));
              imagePart.setHeader("Content-ID","<"+"memememe"+">");
              imagePart.setDisposition("inline");
              multipart1.addBodyPart(imagePart);
              message.setContent(multipart1);
              Transport.send(message);
    You will have to make modifications so that the attchmetns are not embedded.

  • How to extract all images url just by specifying a url of a website?

    Hello
    i wanted to know if there is any add-on available or any other trick where i can EXTRACT/COPY all "Images url" just by specifying a website?
    For example:
    Consider this website:http://freeprintable-cards.com/free-printable-birthday-cards/
    Now is there any "Add-on" or any other way where i just paste the url of above website(say in the text box) & it automatically copies all images url at once simply by specifying "only" the website name..
    Thanks

    Addon ''save images 1.0.3'' https://addons.mozilla.org/firefox/addon/save-images may do something similar.
    See also my answer to your question
    * ''How to copy url of all images present in a tab?'' [/questions/1015761#answer-616667]
    Many other addons are available.

  • Image URL from publishing Image Site column ?

    Hi techies,
    I have created one column say PublishingImage of PublishingImage
    Type and added it in custom list.
    Used this column to upload image. But not able to fetch its URL.
    Used the below line to fetch the Url:
    SPFieldUrlValue oUrl = new SPFieldUrlValue(Convert.ToString(item["PublishingImage"]));
    and assigned the oUrl to Datarow like this:
    dr["Image"] =oUrl.Url;
    but still not getting the proper URL.
    Any help will be appreciated

    Find the similar post
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/bafb60d5-38a3-4985-a10f-46ceca576cdb/how-can-i-read-publishing-image-url-field-programmatically
    ImageFieldValue _field = Item[FieldId.PublishingPageImage] as ImageFieldValue
    Now you can access the properties of the field using this object i.e.
    _field.ImageUrl
    will give you the url stored.

Maybe you are looking for

  • Condition type in Purchase Order

    Hi, I have a scenario in which I am paying extra money to vendor other than material price in PO. Is there any condition type in SAP for Expeditory charges? For a now I have created z condition type but in this scenario extra amount is debited on inv

  • How to get data from PostgresSQL to Oracle 11g

    I have a general idea on the topic but need more information on the procedure to get data from Postgres (version 8.2 on Linux) database to Oracle 11g (on AIX Unix). Thanks very much in advance!

  • Indesign framed edges

    Is anyone experiencing framed edges around text and vector art work after creating a PDF of the Indesign work? It only show up on the PDF and not on the Indesign file. Im running CS3, MAC 10.4.11 Thanks, -Z

  • KM Document iview  is fine in preview but not with role

    HI, I am facing problem with KM Document iview . I have uploaded .gif file in root/documents/myfolder/text.jif I have cereated  Km document iview and set the parameter    path to documnet : /documents/myfolder/text.jif when i preview the iview it si

  • Alphabetizing vectors

    Does java have a class that alphabetizes strings? Say I had a list of 20 words, can I run those through a built in method? If not, can someone loan a "black box" alphabetizing algorithm? A algorithm that did numbers would get extra dukes! Thanks!