Extenal component not rendering file links properly

Hi Adobe CQ expert,
We need to include an external web app (based on asp) into our new CQ website. The asp web app is a search engine which searches another internal document database and returnes a list of files such as powerpoints, pdfs etc. These documents cannot be migrated into our CQ database due to various reasons.
We are using the default 'external' component to include our web app. All works fine until we realise CQ prefixes it's own url to the file hyperlinks which are returned by as search results.
For example,
When the asp app running standalone, a file hyperlink looks like this:
<a href="http://companywebsite.com/search/display.asp?id=FC/07/000009">meeting document</a>
And clicking on that link will prompt using to download the file.
But when it is included in CQ using 'external' component, we got:
<a href="http://companywebsite.com/content/companywebsite/search-documents.html?CFC__target=http%3A %2F%2F10.xx.xxx.xxx%2Fsearch%2Fnew-intranet-display.asp%3Fid%3DFC%2F07%2F000009>meeting document</a>
// I hid the actually ip address using 'xx' in this post
How can we strip the CQ url and also format the rest to make sure it doesn't come with all these %2 etc?
Thanks!

You are passing the url in querystring and needs to escaped as per standards[1].  So it is  correct.
I am not sure Try adding an optionally attribute [2] in the <a> helps & note that attribute makes link checker not even check for validity for link.
[1]   http://en.wikipedia.org/wiki/Query_string#URL_encoding
[2]   x-cq-linkchecker="skip"

Similar Messages

  • JSF - UICommand component not rendering properly

    2:12 PM 7/11/2007
    by Nirav Assar
    Overview
    It was discovered that in certain situations a UICommand component does not bind properly to its associated action method in the managed bean. The symptoms of this situation occur when you have a page with an action, and you click the action and nothing occurs. The page seems like it submits, but no code inside the action method of the managed bean gets executed and no errors are generated in the console!
    Problem
    The problem arises when you have a managed bean in request scope and you have a UICommand, either a commandLink or commandButton, associated to the bean. In addition this UICommand component has a rendered attribute tag (boolean value) that uses a managed bean method to tell it whether is renders or not. Even if the component gets rendered to the screen, the component does not get binded to the action method in the request scoped bean. This is a problem with JSF and may be due to the fact that the component gets rendered, but since the bean is not created until a request is submitted, the component never gets binded to an action. Therefore, nothing in the action method ever gets executed.
    Analysis
    Thus is seems like if you want to dynamically render a submit type component, such as a button or a link, you cannot effectivley do that with a bean in request scope. You'll have to place it session scope, which will work fine. Another option is to render the buttons all the time, but based on some scenario, using the "disabled" attribute to prevent a user from using the action. The "disable" attribute can access a boolean method in the managed bean.
    You could also use Javascript to hide the already rendered button on certain circumstance. However this would require javascript knowing the state of the domain objects/and or managed bean state.
    References:
    http://forum.java.sun.com/thread.jspa?threadID=5127437&messageID=9461810

    RamondDeCampo hit the nail on the head. If the bean used for the rendered attribute is request scope and the value differs between requests, you're going to see this type of behavior.
    Search the forums, there have been many similar reports as well as suggested solutions.

  • Component not rendering in Stand Alone Skin editor

    I downloaded the stand alone skin editor and I wanted to play around with it.
    But I notice that my controls are not rendering.
    Kindly see sample image that I am getting. Image
    Not sure why, but I cant seem to see my changes even If I change it in my property inspector.
    Any hints?

    Hi,
    did you check the CSS source of the file to see if invalid styles are added. The visual editor is broken in the image, so there must be something causing it. Ifthe CSS was empty, would the editor render properly ?
    Frank

  • Child component values submitted when parent component not rendered

    This pertains to the standard JSF components, but may carry over into Sun JSC.
    I have a column in a dataTable that contains a checkbox. The rendered attribute on that column is tied to a backing bean property. The column is/is not displayed as appropriate per the value of that property - great.
    Here's the rub: When that column is not rendered and the form is submitted the values for the checkboxes are still being submitted and my data model is being updated for those non-rendered components. Seems like this shouldn't happen, but the real problem is that the values submitted for those checkboxes are always 'false'. Seems like JSF is out of sync in this case in what it does between when the form is loaded and when it is submitted (perhaps it is not loading the values from the data model yet it is updating them on the submit - with garbage).
    To get this to work as I expected I had to set the rendered attribute on the checkbox components to match the rendered attribute on the column that contains them.
    Is there a bug here?

    This pertains to the standard JSF components, but may carry over into Sun JSC.
    I have a column in a dataTable that contains a checkbox. The rendered attribute on that column is tied to a backing bean property. The column is/is not displayed as appropriate per the value of that property - great.
    Here's the rub: When that column is not rendered and the form is submitted the values for the checkboxes are still being submitted and my data model is being updated for those non-rendered components. Seems like this shouldn't happen, but the real problem is that the values submitted for those checkboxes are always 'false'. Seems like JSF is out of sync in this case in what it does between when the form is loaded and when it is submitted (perhaps it is not loading the values from the data model yet it is updating them on the submit - with garbage).
    To get this to work as I expected I had to set the rendered attribute on the checkbox components to match the rendered attribute on the column that contains them.
    Is there a bug here?

  • Mapviewer not rendering color regions properly after obiee upgrade

    Hello!
    After upgrade my OBIEE installation from 11.1.1.5 to 11.1.1.6.2 all dashboads with GEO maps stop rendering properly.
    The color layer fails when you move the mouse over states or country. The same dashboads map works fine on 11.1.1.5 version.
    When access a dashboard with maps on OBIEE 11.1.1.6.2 using the Browser dev tools (tracking the HTTP requests) I can see some http 404 error for some images. The same not occurs on OBIEE 11.1.1.5.
    I'm using the same database schema, the same mapviewer config file, etc.
    How can I deal with this issue?
    Thanks.

    Hi,
    check with the below link:
    http://allaboutobiee.blogspot.in/2012/03/creating-agent-in-obiee-11g.html
    It may helpful to solve your issue..

  • Custom faces component not rendering at runtime

    I'm new to the JSF Framework. So I thought that starting a custom component/tag library would be a good start to jump in and get familiar with it. My goal is to have a project separate from my web-apps that I could compile into a jar which I could include wherever I needed it. So I started simple with two projects: the first is the custom tags project, the second is a simple webapp using jsf / facelets / seam which I am running in a Tomcat 5.5 container.
    I've included the complete projects in a zip file here: http://burtoncarl.com/share/CustomProof.zip
    I build the components project with ant and include it in the /WEB-INF/lib folder of the web project. But when I open a browser to the web app it doesn't render my tag at all. It leaves my new tag in the rendered HTML which leads me to believe that the parser isn't matching my taglib or something.
    And of course I get no errors in any of the log files.
    ANY help would be appreciated...

    It sounds like the component library is not registered on the page. Assuming you are using facelets, did you define an xmlns for it? E.g. see the definition for the tomahawk library below within the facelet xhtml file:
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
          xmlns:ui="http://java.sun.com/jsf/facelets"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:t="http://myfaces.apache.org/tomahawk">
        <!-- facelets view code goes here -->
    </html>You also need to tell facelets about the library in the web.xml:
        <!-- Additional tag libaries for facelets -->
        <context-param>
            <param-name>facelets.LIBRARIES</param-name>
            <param-value>
                /WEB-INF/tomahawk.taglib.xml
            </param-value>
        </context-param>

  • "Preview in Firefox" for pdf web pages but not for file links ?

    Hi,
    I like the preview pdf in Firefox feature but I seem to be having a bit of a problem with it.
    In options>applications I have the pdf entry set to preview in Firefox and when I click a link to pdf webpages they load in Firefox just fine.
    The problem seems to be with download links to pdf files. When I click a link to a pdf file the only options are to save the file, open with my pdf viewer (Foxit Reader) or other. Preview with Firefox is not an option any more.
    I've been trying everything to get that option back.
    I know I have seen it there before but I've no idea how it disappeared.
    Any suggestions?

    The build-in PDF Viewer only works for files that are send as application/pdf and not for other MIME types.<br />
    So it won't work for links that open a download dialog and you would need an extension to open such a file as application/pdf.
    *Open in Browser: https://addons.mozilla.org/firefox/addon/open-in-browser/

  • Preview does not recognize long links properly

    When I create a document in Word, and save it as a PDF, any long links (more than a line) do NOT open in the PDF file in Preview, but work just fine in Adobe Reader. These links are created using Insert/Hyperlink in Word. Any ideas about how to get Preview to recognize the entire link? The particular link I am having problems with this time is:
    http://resourcecentre.savethechildren.se/content/library/documents/un-convention -rights-child-child-friendly-language
    The link "breaks" after the hyphen after convention...
    Thanks for any help you can provide.

    http://resourcecentre.savethechildren.se/content/library/documents/un-convention -rights-child-child-friendly-language
    The link "breaks" after the hyphen after convention...
    You do realize that there is a space between "convention" and "-rights", yes?  That's probably what's giving Preview fits.  Is the space supposed to be there?  When I click on your link, the webpage does not have a space in the URL.

  • Community Portlets not rendering valid links

    I've created several of the Community portlets in an organization other than the Community Sample, and when they render, the links to get to the different communities are not valid. When I click on them, I just go back to the same page. For example:
    http://myserver:8080/portal/dt?=jdo__MyTestCommunity_Container&com.sun.portal.desktop.current.membership=jdo__MyTestCommunity___owner____jdo__MyTestCommunity___member&com.sun.portal.desktop.temporary.membership=NONE
    It appears that the container attribute is missing after the "?". Has anybody seen this before, and if so, any solution. Thanks.
    Message was edited by:
    GDCTG

    Hi GDCTG,
    Some thoughts.
    * make sure that you have the Portal Desktop Community Service attributes set for the user's organization and every role that the user belongs to. The attributes and default values are:
    CommunityHomeContainer=CommunityHomeContainer
    CommunityCreateContainer=CommunityCreatePortlet
    CommunityParentContainerURLParameter=CommunityParentContainer.selectedChannel
    Here's an example of setting the CommunityHomeContainer attribute using the psadmin utility,
    /opt/SUNWportal/bin/psadmin set-attribute --adminuser amadmin --passwordfile passwordfile
    --dn  "o=EnterpriseSample,dc=sun,dc=com" --portal portal1  --component desktop
    --attribute-name CommunityHomeContainer CommunityHomeContainer* add the Sun Java Web User Interface theme and JavaScript utilities to the portal desktop parent container.*
    Specifically, add the:
    - Tag Library URI
    <%@ taglib uri="/tld/portletSetupTags.tld" prefix="pui"%>- Sun Java Web User Interface Theme tag and JavaScript utilities to the HTML HEAD as follows:
    <HEAD>
    <pui:setupTheme themeName="defaulttheme" supportedLocales="en,en_US"
    sessionDataStrategyClass="com.sun.web.ui.portletSetup.PSSessionDataStrategy"/>
    </HEAD>hope this helps, dean.

  • CS6 not closing files out properly?

    I have a 2009 15" MacBook Pro (version 10.9.5)  that I take to work each day for my job. At work, we are connected to a 2012 server via an ethernet cable. I have issues overwriting files I'm currently working on (from Illustrator OR Photoshop, both CS6). An error message will pop up either saying I don't have permission, or a file error has occurred. To get around this issue, I save file locally to my computer then copy and paste them over, or I have to save multiple copies of a file under different names (ie: file_V1, file_V2) to the server. This will happen randomly and infrequently but not all the time - sometimes it's not an issue to save as I go or rename a file. Other issues outside of using Adobe software is renaming folders and files within the server as I will have similar results - sometimes I'm able and sometimes I don't have access/permission. I've spoken countless times to our IT guy who suggested I hit the forums. Any help would be great.

    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • Command links are not rendering properly in panel collection toolbar facet

    Hi
    I am using jdev 11.1.2.3.0
    I added toolbar component to the toolbar Facet of panel collection component .
    Under the tool bar I added two command link components with name create and delete,
    the problem is at run time the buttons are not rendering properly,they are hiding,instead of links
    this symbol(>>) is displaying.
    On clicking the symbol,I am able to see the links,I used <af:spacer> after the links but not worked.
    what I have to do to render the links properly in the panel collection toolbar facet

    Hi Timo
    This is the code and I am using 11.1.2.3.0
         <f:facet name="toolbar">
                    <af:toolbar id="t1">
                            <af:commandImageLink icon="#{resource['images:create.png']}" text="Create" id="cbInsert">
                            <af:showPopupBehavior popupId="p1"/>
                        </af:commandImageLink>
              </af:toolbar>

  • Command links are not rendering properly in the toolbar facet of panel collection

    Hi
    I am using jdev 11.1.2.3.0
    I added toolbar component to the toolbar Facet of panel collection component .
    Under the tool bar I added two command link components with name create and delete,
    the problem is at run time the buttons are not rendering properly,they are hiding,instead of links
    this symbol(>>) is displaying.
    On clicking the symbol,I am able to see the links,I used <af:spacer> after the links but not worked.
    what I have to do to render the links properly in the panel collection toolbar facet

    Hi Timo
    This is the code and I am using 11.1.2.3.0
         <f:facet name="toolbar">
                    <af:toolbar id="t1">
                            <af:commandImageLink icon="#{resource['images:create.png']}" text="Create" id="cbInsert">
                            <af:showPopupBehavior popupId="p1"/>
                        </af:commandImageLink>
              </af:toolbar>

  • OLE embedded Adobe Illustrator Artwork files not rendering properly

      I'm using BroadVision's Quicksilver.  I've attempted to embed AI Artwork
    files as OLE objects (linked and not linked), but they don't render within
    Quicksilver.  After working with their support team, they came to the
    conclusion that it was an Adobe Illustrator issue because they were
    able to reproduce the issue in Wordpad (not MS Word).
      The problem can be reproduced by the following steps (tested in Vista,
    XP, & Server 2008):
    :- Open Wordpad
    :- Click Insert -> Object -> Create From File -> Browse -> Find and select a file -> Open
      Other variations on this theme encounter the same problem, including
    pasting it from the clipboard.
      If you open a Wordpad document in MS Word and embed the OLE
    object, it saves a preview of the image which is visible from Wordpad
    if you open it later on (as long as you don't link to the original; if you do,
    and attempt to update the link, the preview image will go away).  However,
    subsequent alterations of the OLE object don't show up in Wordpad -- rather,
    the image that was rendered in Word continues to be displayed (unless, of
    course, you open it in MS Word again and re-save after the link is updated).
      It appears the support team at another company encountered a user
    experiencing the same or similar issues with their product, but on
    Illustrator CS2 as opposed to CS4:
    http://www.graphpad.com/faq/viewfaq.cfm?faq=1309
      Unfortunately, the "export to another format" workaround won't suffice.
    We're working with thousands of Illustrator artwork files that need to be
    version controlled, and other technical documents will link to the same
    Illustrator file.  When an AI file is updated, all technical documents
    need to use the altered version; linking to an exported version of the
    file just creates one more link in the chain that can create problems
    or confusion.
      Even if the version control stuff wasn't an issue, exporting to other
    formats seems rather limited.  If we export to other formats (eg, pdf)
    the images render poorly compared to what they look like in AI.
      We've tried a number of things to work around this:
    * Make sure AI [is/is not] already running
    * Rasterize paths
    * Alter the size of the image in AI
    * Alter the size of the object in the target application
    * 'Save as' with a different version of AI selected (for all versions)
    * Saving as an EPS or PDF -- the former has the same rendering issue
      as AI files; the latter renders but the drawing is blocky, probably because
      the graphics are being rendered at a very low resolution and scaled up
      after the fact.
    * Looking for or changing preferences in Illustrator that might affect it
    * Altering color scheme and various other similar settings
    * CS5 trial version -- same problem as CS4
    * Save the [wordpad] document -> close -> re-open
    * Switching between 'display as icon' and displaying the image
    * Copy & paste from various sources (from AI -> Wordpad,
      MS Word -> Wordpad, etc)
      The only way I can get it to render in Wordpad (or quicksilver for that matter)
    is if I embed the AI file in a Word/RTF document, then embed that in
    the target application (which is awfully convoluted).  Furthermore, if the
    embedded Word/RTF file links to the original file, when you open the
    document containing the embedded Word/RTF it doesn't attempt to
    update from the linked AI file, just the linked Word/RTF file.
      I'm sure there's other things we've tried to resolve this, but that's what comes
    to mind right now.
      If anyone can help with this, or clue me in that it's a bug in AI, I'd sincerely
    appreciate it.
    -Brian

    Well, no offense
    -=-=-=-=-=-=-=-=-=-=-=-=-
    None taken.  I'm helping someone else solve a technical problem, I'm just not questioning their approach; I'm not a tech writer, so I'll pass your suggestions on.
    -=-=-=-=-=-=-=-=-=-=-=-=-
    (...) you are trying  to solve one hell of a crooked workflow on the wrong end and the one  fatal flaw being that you insist on using an office tool to create  layouts and expecting it to render print-ready documents.  That just  cannot work. Even the most stubborn tech writers I occasionally work  with, recognize the need for eventually firing this at InDesign/ InCopy/  Framemaker and associated server versions and fuse the imported RTF/  Word documents and illustrations based on template layouts, scripting  and rule-based formatting, which can all happen automnatically on a  server with the respective software.
    -=-=-=-=-=-=-=-=-=-=-=-=-
    I was mistaken when I described how things are version controlled.  They would prefer to embed the AI images in each document and have each document be version controlled (that is, if the image changes it should /not/ affect other documents).
    However, I wasn't mistaken when I said there are thousands of already developed AI images.  The team working with these images has already procured a volume license for Framemaker and is hesitant to purchase other software unless there's no alternative, or the time savings would justify it.  I wish I could comment on the efficacy of your suggestion, but I'm not a tech writer; I'm unfamiliar with InDesign, InCopy, and FrameMaker.
    -=-=-=-=-=-=-=-=-=-=-=-=-
    So for what it's worth, you are  probably wasting your time and resources on something that by its nature  starts out with a limited process. I'm not even sure if AI fully  supports OLE. I seem to remember having read about it not supporting  several features and commands....
    -=-=-=-=-=-=-=-=-=-=-=-=-
    -=-=-=-=-=-=-=-=-=-=-=-=-
    If we export to other formats (eg, pdf) the images render poorly compared to what they look like in AI.
    What  do you mean? If they look "bad" in Acrobat or something, then you are  simply using the wrong export settings. which is perfectly fixable.
    -=-=-=-=-=-=-=-=-=-=-=-=-
     In Acrobat the SV graphics look beautiful at any scale, but if the PDF is OLE embedded in another application it looks terrible.
    -=-=-=-=-=-=-=-=-=-=-=-=-
    If  they look "bad" within your word documents, then we pretty much return  to what I said in the first paragraph - there's a good chance it's  simply Word rendering the artwork poorly due to its limited abilities of  dealing with graphics of any kind. I would even think that manually  changing the graphics properties would improve appearance then....
    -=-=-=-=-=-=-=-=-=-=-=-=-
    I'm not an expert on OLE; I made the [potentially bad] assumption that Acrobat would be responsible for rendering the graphic when a PDF is OLE embedded, so the application making use of the object would have limited control over the quality of the image it receives (if my assumption were correct anyway).
    I know the host process can specify whether the image is rendered as an EMF or WMF image, otherwise I know very little about the OLE API and what limitations the host process can impose.
    I'll keep tinkering to see if the PDF solution can be made to work.
    In the meantime, would anyone like to make a determination as to whether this is a real bug in AI or not?
    -Brian

  • MyFaces schedule component is not rendering properly.

    Hello everybody.
    I am trying to use the Tomahawk schedule component with Jdeveloper 10.1.3.2. It is not rendering properly.
    The schedule entries and the header line are mising for weeks.
    I removed the default-render-kit-id element from the faces-config.xml. Nothing changed.
    Used versions:
    - Jdeveloper 10.1.3.2
    - myFaces 1.5.1
    - tomahawk 1.5.1
    Any suggestions?
    Thanks.

    Hi,
    did you post this question on the MyFaces open source list?
    Frank

  • KM, HTML file, Not rendering correctly

    Hi Everyone
    I have an html file that is stored in knowledge management.  The html file references few folders/images that are also stored in KM. When I create a KM Document iView, the HTML file shows; however, the various images/style sheet that is stored along with the html file KM do not appear.  Thus the html file is not rendering properly. 
    With this being said, I can create an URL iview and everything works as it should (the html file appears correctly with the necessary images).  The problem is that I am developing a solution for an external and internal facing portal, thus the URL iView option is not going to work for me.  I need to have a way for this KM html iView to display properly...perhaps with the KM Document iView template.
    Has anyone encountered an issue such as this and can offer assistance.  Again, the KM Document iView template will work, if the html file it is calling in KM can correctly reference other folders in KM that contain various images/style sheets that are a part of the html file.
    Any help is greatly appreciated.
    Best Regards,
    Scott

    Hi Scott.
    In order to solve your problem with relative links to image and css files inside KM I suggest two variants:
    1. Replace relative links as I mentioned in this message Re: JavaScript and CSS info in WPC.
    2.The second solution is:
    a. Create an blank html file inside KM folder where the base.html file is stored.
    b. Download the newly created file for local editing.
    c. Place an iframe that points to your base html file between <BODY></BODY> tags. Use a following code as an example:
    <iframe width="100%" height="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="base.html"></iframe>
    d. Upload this file back to KM.
    e. Point your KM Document  iView to the created html file.
    Best regards,
    Aliaksandr Zhukau
    Edited by: Aliaksandr Zhukau on Dec 3, 2009 11:04 AM

Maybe you are looking for