JEditorPane: Some HTML-Links not clickable

Hello,
I have a problem using JEditorPane to display HTML-pages. I implementes a HyperlinkListener to load other documents. But there is a strange thing. Links starting with "http" are handled correct, but those with a relative URL and therefore without the prefix "http" can not be activated. Even the mouse cursor doesn't change. Below is my code.
void htmlContent_hyperlinkUpdate(HyperlinkEvent e) {
try{
if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED){
String url = e.getURL().toExternalForm();
if (url.toLowerCase().startsWith("http") | url.toLowerCase().startsWith("mailto"))
ObjectFactory.getObjectFactory().showURL(url);
else
this.htmlContent.setPage(url);
catch (Exception ex) {
ex.printStackTrace();
ObjectFactory is a class that handles requests for documents that are note located on my local hard drive. htmlContent is an instance of JEditorPane.
Thanks for any help.
Matthias

I'm sorry for the delay in responding to this post. My understanding is that the problem is a known issue with our previewer on Acrobat.com. That is, the links are there but don't display correctly on Acrobat.com. If you view the file using Acrobat or Reader, you should be able to click the links.Thank you for your patience with us while we get this fixed.
Best,
Michelle

Similar Messages

  • URL link not clickable on APLEX html page

    I create a Page, type is HTML Text. I have a Region with template "Reports Region"
    In region source, I have text looks similar to :
    [td] [a herf="http://yahoo.come"] http://yahoo.com [a][td]
    ([] means less than and greater then sign )
    But after run the page, the url link is not clickable to take me to the website. How can I fix this problem?
    - Denis
    Edited by: Denis Sun on Jun 5, 2012 2:45 PM

    You should wrap your code in {noformat} {noformat} tags
    Always include the following information when asking a question:
    <ul>
    <li>Full APEX version</li>
    <li>Full DB/version/edition/host OS</li>
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)</li>
    <li>Browser(s) and version(s) used</li>
    <li>Theme</li>
    <li>Template(s)</li>
    <li>Region/item type(s)</li>
    </ul>
    Denis Sun wrote:
    I create a Page, type is HTML Text. I have a Region with template "Reports Region"
    In region source, I have text looks similar to :
    [td] [a herf="http://yahoo.come"] http://yahoo.com [a][td]
    ([] means less than and greater then sign )
    But after run the page, the url link is not clickable to take me to the website. How can I fix this problem? The correct syntac of an anchor tag is this, and where did you enter this HTML code?
    //notice the href typo
    <a href="http://yahoo.com">http://yahoo.com</a>

  • Html:link not working in struts project driving me mad, please help...

    Afternoon all,
    Can anyone help me with an issue I'm having with my first struts project, I'm learning as I go.
    Anyway, I'm trying to create a bog standard hypertext link which passes a value back to a specified struts action. The flow of the application
    is as follows:
    1) search.jsp
    User enters a name and postcode to search on, then click submit
    2) searchAction
    Struts action 'search' is called and does the search in a back-end db.
    Each result found from search is created as a javabean (named resultsBean), and added to a list object. The list object is set as a request
    attribute named 'SearchResults'.
    The action is then forwarded on to another jsp page named results.jsp
    3) results.jsp
    The results.jsp page retrieves the list object from the 'SearchResults' attribute and loops through each entry
    in the list and converts each entry to the 'resultsBean' javabean object.
    Each resultsBean object has a getVirtualID method which stores a string value. This value is retrieved and a hypertext link is created which
    passes this value on to another struts action named 'select'.
    When this link is clicked on, the select struts action is called and the value passed as a parameter is retrieved.
    This is the part I can't get to work, I can't get the link to render properly. When I click the link the select action retrieves
    & lt;%= resultsBean.getVirtualID() & gt; as the value of the parameter 'vid' instead of the value stored in the getVirtualID method of the resultsBean.
    Listed below is the code from my results.jsp page. If anyone can help me get this to work I would be very grateful.
    Thanks in advance,
    Alex
    results.jsp code
    <%
       List searchResults = (List)portletRequest.getPortletSession().getAttribute("SearchResults");
    %>
    <div id="table_layout" style="width: 713px; margin: 0px 0px 0px 3px;">
      <div id="row">
        <div id="column"><img src='<%= response.encodeURL("/images/results.gif") %>' alt="" width="223" height="159" border="0" /></div>
         <div id="column" style="width: 30px;"></div>
         <div id="column">
          <div id="table_layout" style="width: 460px;">
            <div id="row" style="width: 430px; border-bottom: 1px solid #4e137d;">
              <div id="column" style="width: 155px;">Name</div>
              <div id="column" style="width: 10px;"> </div>
              <div id="column" style="width: 130px;">Address</div>
              <div id="column" style="width: 10px;"> </div>
              <div id="column" align="right" style="width: 120px;">References</div>
            </div>
    <% if (searchResults.size() > 0) {
           Iterator it = searchResults.subList(0, searchResults.size()).iterator();
           ResultsBean resultsBean = new ResultsBean();
           while (it.hasNext()) {
                resultsBean = (ResultsBean)it.next(); %>
            <div id="row" style="padding: 5px 0px 10px 0px;">
              <div id="column" style="width: 155px;"><html:link styleClass="results"  page="/select.do?vid='<%= resultsBean.getVirtualId() %>'" title="<%= resultsBean.getFullName() %>"><%= resultsBean.getFullName() %></html:link></div>
              <div id="column" style="width: 10px;"></div>
              <div id="column" style="width: 130px;"><%= resultsBean.getFullAddress() %></div>
              <div id="column" style="width: 10px;"></div>
              <div id="column" align="right" style="width: 120px;"><%= resultsBean.getReferenceIcons(portletResponse) %></div>
              <div id="column" style="width: 13px;"></div>
              <div id="column" style="width: 22px;"><input id="<%= resultsBean.getVirtualId() %>" name="ckbox" type="checkbox" value="" title="tick to select for merging" style="border: 0px solid #ffffff;"></div>
            </div>
    <%     }
       } %>
           </div>
         </div>
      </div>
    </div>
    <br />
    <br />
    <html:link forward="/searchpage">Return to search page</html:link>

    If you have part of an attribute dynamic, you need to make the entire attribute an expression.
    ie instead of
    page="/select.do?vid='<%= resultsBean.getVirtualId() %>'"
    it has to be
    page="<%= "/select.do?vid=" + resultsBean.getVirtualID() %>"
    However for my approach, I would aim for zero scriptlets, and use the struts tags even more. For instance instead of an iterator, use the struts logic:iterate tag (or the JSTL c:forEach>
    Also instead of div tags, I would use html table tags - <table> <tr><td> etc etc. Thats what its for right?
    Here is at least some of it rewritten with struts tags.
    I left out the div tags so I could focus on the "important" stuff.
    <logic:iterate id="resultsBean" name="SearchResults">
      <html:link styleClass="results"  page="/select.do" paramId="vid" paramName = "resultsBean" paramProperty="virtualId">
        <bean:write name="resultsBean" property="fullName"/>
      </html:link>
      <bean:write name="resultsBean" property="fullAddress"/>
    <%= resultsBean.getReferenceIcons(portletResponse) %>
    <input id="<%= resultsBean.getVirtualId() %>" name="ckbox" type="checkbox" value="" title="tick to select for merging" style="border: 0px solid #ffffff;">
    </logic:iterate>I'm not entirely certain what you are doing with that checkbox at the end. They all have the same name, but no value. You couldn't identify at the server end which one was clicked.
    Hope this helps some,
    evnafets

  • Html link not visible as table header in jsp

    Hi,
    I am not sure if this question belongs to JSP forum, since it's happening in JSP page I am posting it here.
    I am seeing this strange problem, in my JSP page all the link are looking fine except some links in Table header. Here is the code snippet:
    <th align="left" width="30%"><html:link action="/myAction.do?sortBy=org&all=${param.all}">Organization Name</html:link></th>
    ENV is struts, jstl, html.
    Now the problem is the text Organization Name is not visible, although it's there and I can click it. If I click and drag mouse over it I can see it.
    Also if I put this link anywhere else e.g. <TD> I can see it.
    I am not sure why it's happening.
    Please help me.
    Abhishek

    Sounds like a style issue - is it the same colour as the background for some reason?
    What styles have you got applied to your <th> columns? The text in them?
    Are you using css?

  • Some CSS Links not displaying correctly

    Hi folks,
    I've been building a new site, but am having problems with some of the CSS links.
    The normal links are working fine.
    However, I've created a class that should display some of the links in bold - but it doesn't work!
    This is the CSS:
    .bold-larger a:link {
    font-weight: bold;
    color: #4E8AD2;
    font-size: 16px;
    .bold-larger a:visited {
    font-weight: bold;
    color: #4E8AD2;
    font-size: 16px;
    .bold-larger a:hover {
    font-weight: bold;
    color: #F47C01;
    font-size: 16px;
    text-decoration: none;
    .bold-larger a:active {
    font-weight: bold;
    color: #4E8AD2;
    font-size: 16px;
    And this is the code as it appears on the page:
    <span class="bold-larger">You can buy cool and interesting decorations and accessories from <a href="http://www.test.com">PartyBox</a>.</span></p>
    It doesn't display them in bold though!
    The test page is here:
    http://www.iainmoran.com/40/40th-birthday-gift-ideas.html
    Any idea why this might not be working please? I'm sure it's very simple, but I can't seem to work what it is!
    Many thanks,
    Iain.

    Thank you both so much for your quick replies!
    I'm pleased to say the links are now working correctly, so no more tearing my hair out is required!
    Thanks again,
    Iain.

  • Link not clickable in MSN/Hotmail emails

    I have a page that sends users a link to click to be
    'removed' from our
    registration page. In Yahoo the link shows up just fine, is
    clickable, etc.
    In Hotmail/MSN, no go. I've seen some pages come across in
    MSN/Hotmail that
    if you TRY to click the link, it asks if you want to enable
    this.
    How is this done?? Or how can I get my link to be enabled in
    Hotmail?
    I am sending the email as:
    cfmail from="[email protected]" to="#Cancel.u_email#"
    server="mail.sb.com"
    port="25" mailerid="sb.com" subject="Withdrawl from
    tournament"
    failto="[email protected]" type="html" charset="utf-8">
    Thanks.....

    http://ask-leo.com/links_in_hotmail_emails_why_arent_they_active.html
    Ken Ford
    Adobe Community Expert - Dreamweaver
    Fordwebs, LLC
    http://www.fordwebs.com
    "Steve Grosz" <[email protected]> wrote in
    message
    news:fs3cra$cem$[email protected]..
    > I'm already using SPF/SenderID, the issue isn't one
    where my emails go to
    > a spam/junk folder, its that the links aren't being
    displayed as links,
    > just text....
    >
    >
    > "Ken Ford" <[email protected]> wrote in
    message
    > news:fs38aq$814$[email protected]..
    >> The answer is probably at this site somewhere:
    >>
    >>
    http://postmaster.live.com/
    >>
    >> --
    >> Ken Ford
    >> Adobe Community Expert - Dreamweaver
    >> Fordwebs, LLC
    >>
    http://www.fordwebs.com
    >>
    >>
    >> "Steve Grosz" <[email protected]> wrote
    in message
    >> news:fs387c$7uv$[email protected]..
    >>>I have a page that sends users a link to click to
    be 'removed' from our
    >>>registration page. In Yahoo the link shows up
    just fine, is clickable,
    >>>etc.
    >>>
    >>> In Hotmail/MSN, no go. I've seen some pages come
    across in MSN/Hotmail
    >>> that if you TRY to click the link, it asks if
    you want to enable this.
    >>>
    >>> How is this done?? Or how can I get my link to
    be enabled in Hotmail?
    >>>
    >>> I am sending the email as:
    >>>
    >>> cfmail from="[email protected]" to="#Cancel.u_email#"
    server="mail.sb.com"
    >>> port="25" mailerid="sb.com" subject="Withdrawl
    from tournament"
    >>> failto="[email protected]" type="html"
    charset="utf-8">
    >>>
    >>> Thanks.....
    >>
    >>
    >

  • Some browser links not working - any browser, but just on my mac

    I have a strange issue. Over the last while certain page links on browser pages (which seem to be Java script links) won't work in any of my 5 browsers. If I put the same page in to any of my laptop's or my wife's browsers, the links work fine.
    For example, I just tried to order some stuff via Staples, and whenever I tried to go to the next screen via a button, nothing happened. Even if I switched User Agents in Safari or Firefox, the "next" button didn't work. Same in Chrome, Camino, Flock and Opera on the same pages. I have noticed lots of drop down menus are not working properly either on many sites.
    I figure some bit of OS code must be either blocking or misreading the instruction, but what?
    Any ideas? Any input would be greatly appreciated!!

    errmm... i'm not sure why you are fiddling with java and system extensions...
    java has nothing to do with javascript despite the name (you can blame sun for that) the javascript engine is an integral part of the browser not a separate extension.
    Java on the other hand is an entirely separate entity and language that is independent of any one browser and is installed on the OS.
    Javascript is commonly used in webpages (all most all these days) where as java is hardly used at all and is usually confined to little "applets" that run separately from the rest of the page.
    If you suspect that it is something to do with your settings/preferences in your library then the easiest way to find out is by creating a new User account (go to system preferences> users> and add a user.) Then log into that account and try the browsers in there.
    If you really think that it has something to do with system extensions then you can disable them by moving them out of the extensions directory (/System/Library/Extensions/) However i must stress that unless you know what you are doing and know what the extension does that you are moving to not do so... you can easily render your system unbootable if you move the wrong extension... unless you have installed a 3rd party system extension there shouldn't be anything in that directory that isn't meant to be there (this is a very different system from OS 9).
    However there are internet plugins that may be interfering with your browsers, you can find these in /Library/Internet Plugins/ you can disable these by moving them also... the defaults are various flash, java, shockwave, quartz and quicktime files.
    Message was edited by: Thomas Brierley

  • Wmode mozilla links not clickable below swf

    I have a flash file overlapping the html. and wmode is
    transparent. the link belo wthe swf work fine in IE but not working
    in mozzila..what can be done

    >I have a flash file overlapping the html. and wmode is
    transparent.
    There's your main problem. wmode=transparent is incredibly
    buggy. It makes
    things seemingly unrelated to transparency fail.
    DO NOT USE IT !!
    Try wmode=opaque (its a little less buggy) or redesign so
    that you do not
    have your SWF over the top of (or underneath) other content.
    THAT is the
    best solution
    Jeckyl

  • Some page links not working when I publish iweb site to desktop folder?

    I just created a photo website using iweb. All the links to pages, etc. work fine in the programme but when I go to publish it to folder to check it on a web page some of the page links don't work?
    Any help would be greatly appreciated!
    - Ricky

    Even though you have deactivated the iWeb navigation menu, the navigation layer still exists and is blocking your custom links. Open the Inspector Page tab and try changing the value for Header Height to zero. See if this does anything for you. If not, then try increasing the Header Height value incrementally. This pushes the navigation layer down your page and maybe out of the way of your custom links.
    Of course, there is also the question of whether you custom links are placed on the page as a header element or as a regular page element. You can put elements into the header or footer layers by holding down the Apple key while dragging the elements until you see the header/footer outline highlight in blue.
    If your custom links are header elements, then increasing the header height to push the navigation layer down will probably help. If your custom links are page elements, then decreasing the header height to zero might be more likely to help.

  • Some text links not working some are

    I got a website I've created hosted tonight and I have one problem I cant figure out. www.northeasternprobeowners.com is the site. The problem I have is the links bar at the top of each page doesn't work. The are the same as the links on the left-hand side of the home page except they dont work. When I look at it in the Inspector>Link toolbar everything seems correct. Any ideas? Is it something to do with how the template is made? This is my first time using iWeb and other than this its been a great program. I cant wait to explore more of its features.

    I got it figured out to my satisfaction. I kinda misunderstood the "include page in nav bar", "display nav bar features" so I'll be able to get good enough. I wish when I was on the home page, the home link would be "dead", past meets page the past meets link would be "dead" but its not that big a deal. Not like it the worlds greatest website. Thanks for help.
    EDIT The links are "dead" when I want them to be,even better. Now I feel dumb for even asking this. lol
    Message was edited by: AKProbeGT

  • Links not clickable

    No matter what I do, I cannot get the links I make in a Word
    document to convert to clickable links in the PDFs I generate. I've
    used Word 2000 and Zoho Writer. I've tried different forms of PDF
    writer software, but all I can get is a blue underlined word that
    does nothing when you click on it in the PDF.
    Any help you can offer is most appreciated. Thanks.

    mandib123,
    Sorry, since you posted on the Acrobat.com forums I assumed
    you were using Acrobat.com. You can find the Acrobat/Reader forums
    here:
    http://www.adobeforums.com/cgi-bin/webx/.3bbeda8b/

  • Some tools are not clickable (direct and indirect tool f.ex). what's the problem?

     

    What do you mean?
    Kind regards
    Malou Doumen
    Communications web/events
    World Savings Banks Institute aisbl /European Savings Banks Group aisbl
    Rue Marie-Thérèse, 11
    B-1000 Bruxelles
    Phone  + 32 2  211 11 11;  Fax  + 32 2 211 11 99
    [email protected]
    www.savings-banks.com
    P Before printing, think about the environment

  • Google links are not clickable in safari

    Hi,
    First of all Happy New Year.
    Almost 2 day the google search page links not clickable in safari.
    For the beginning its work ok but in about 2 min its stops to working.
    I have to open the new tab and the same issue happens very soon.
    I have 10.6.5 and safari 5.
    Actually I have installed some safari extensions...
    Yahoo seems to work O.K.

    Hi,
    Turn off the Extensions in Safari / Preferences - Extensions.
    Quit Safari. (Command + Q) Relaunch Safari. If that helped, then it's one of the Extensions causing the link issue.
    Carolyn

  • I can't add simple HTML link to HTMLDocument in jEditorPane

    h5. How to construct a link to make it work?
    HTMLDocument doc = (HTMLDocument) jEditorPane.getDocument();
    String link = dialogSlownikEkranow.getLink();
    SimpleAttributeSet tag = new SimpleAttributeSet();
    SimpleAttributeSet attrs = new SimpleAttributeSet();
    tag.addAttribute(HTML.Tag.A, attrs);
    attrs.addAttribute(HTML.Attribute.HREF, link);
    +try {+
    + doc.insertString(jEditorPane.getCaretPosition(), "some link", tag);+
    +} catch (BadLocationException e1) {+
    + e1.printStackTrace();+
    +}+
    h5. As a result I get
    <+a href="\mw\client\cd\plytacd.html"><p></a>+
    h5. but I require something like
    <+a href="\mw\client\cd\plytacd.html">some link</a>+

    Hi,
    nirgal wrote:
    h5. How to construct a link to make it work?
    HTMLDocument doc = (HTMLDocument) jEditorPane.getDocument();
    SimpleAttributeSet tag = new SimpleAttributeSet();
    SimpleAttributeSet attrs = new SimpleAttributeSet();
    tag.addAttribute(HTML.Tag.A, attrs);
    attrs.addAttribute(HTML.Attribute.HREF, link);
    I don't believe that SimpleAttributeSet is right for HTMLDocument. In your code, you regard a HTML.Tag as a AttributeSet. Apparently this is not the absolute truth. May be I'm wrong, then one may correct me.
    My suggest�on is to use string concatenation to make the HTML for the link and then use HTMLEditorKit.read to put this HTML into the HTMLDocument on caret position.
    import java.awt.*;
    import javax.swing.*;
    import java.io.*;
    import javax.swing.text.*;
    public class JEditorPaneSample {
      private static void createAndShowGUI() {
        JFrame frame = new JFrame("FrameDemo");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        JEditorPane jeditorpane = new JEditorPane();
        jeditorpane.setContentType("text/html");
        jeditorpane.setText("<p>Hello World</p>");
    //insert a link on caret position
    String link = "mw/client/cd/plytacd.html";
    String htmlstring = "<a href=\"";
    htmlstring += link + "\">";
    htmlstring += "some link" + "</a>";
    try {
      jeditorpane.getEditorKit().read(new StringReader(htmlstring), jeditorpane.getDocument(), jeditorpane.getCaretPosition());
    } catch (BadLocationException e) {
      e.printStackTrace();
    } catch (IOException e) {
      e.printStackTrace();
        System.out.println(jeditorpane.getText());
        frame.getContentPane().add(jeditorpane, BorderLayout.CENTER);
        frame.pack();
        frame.setVisible(true);
      public static void main(String[] args) {
        javax.swing.SwingUtilities.invokeLater(new Runnable() {
          public void run() {
            createAndShowGUI();
    }greetings
    Axel

  • Some links look clickable but don't work - Word 2010 with Acrobat PDF creation

    Windows 7
    Latest Acrobat subscription
    Word - Office home and student 2010
    I can create PDFs via Acrobat and Word on Windows 7,  but after editing the PDF with Acrobat on Mavericks OS X, only in-document links remain clickable. External web hyperlinks, both exposed URLs and blue text with URLs hidden under link text do not work in the PDFs that are edited on MacOS. They look like they work, because in the PDFs the hand cursor appears and you can click the links, but nothing happens in the browser.
    I can't find any troubleshooting information about this.
    My process:
    Word: Options: Advanced - remove check in "use ctrl-click to follow hyperlinks"
    Convert file using the Acrobat tab in the Word ribbon.
    Set compatibility to Acrobat 8
    Create PDF (icon)
    Click Options
    Check "create bookmarks"
    Convert Word Headings to Bookmarks
    Accept defaults, which are:
    Convert document information
    Enable Accessiblity
    Reflow the tagged Adobe PDF.
    The PDF is converted. Links all seem to work as expected.
    Take the PDF to MacOS Mavericks, add pages, optimize, using Acrobat on MacOS.
    Afterward, only some kinds of links in the PDF work.
    This is a new problem that seemed to start when I recently began to use Acrobat's subscription version on Windows instead of FoxIt to convert the Word docs on Windows.
    Q: Is this a known limitation that MacOS Acrobat creates unusable links despite the initial PDF conversion being done on Windows Acrobat?
    Q: Should I do something additional so that external links remain clickable after processing on MacOs?
    Thanks for any clues.

    Thanks for your reply.
    After some experimentation, it seems that the place where *some* links stop working is when I take a PDF file from Windows and optimize it on MacOS with Mac Acrobat Pro. All the links work *except* the kind where the URL is hidden behind blue underlined text. These look like they work but when you click them nothing happens.
    So to fix it, I think I need to optimize the PDFs on Windows Acrobat Pro.
    The MacOs Acrobat Pro, which I paid many hundreds of dollars for is therefore completely useless for documents with this kind of normal hypertext link.
    Also, Windows Acrobat Pro is required in order to ensure that table-of-contents links made in Word (MacOS) continue to work in the PDF. The trick there is to regenerate the TOC on Windows Word before using CreatePDF to convert it.
    I hope someone else benefits from this insight, because I wasted weeks of my life trying to troubleshoot this undocumented problem.

Maybe you are looking for

  • Reg: creation of return deliveries and Post goods recipt..... urgent...

    Hi, I have to create delivery for return sales order and i am not able to find bapi or function module to create return order deliveries. in my case it is serilized materials. I am trying to create return orders with BAPI_DELIVERYPROCESSING_EXEC... B

  • Trying to determine if we need the Java stack for ERP 6.0 upgrade

    An issue we have regarding our research of a potential ERP upgrade to 6.0 has to do with the potential requirement to add the Java stack to the WAS engine that support our ERP.  This appears significant due to the impact on infrastructure requirement

  • Raw file image...

    I was importing raw file image to lightroom, after few seconds the image automatic help me to change the original colour but when I'm using JEPG doesn't have this problem. How to fix it?

  • Please help me in Calculating Sybase IQ Daily,WTD,MTD, YTD,QTD,SPLM,SPLY

    Hi Team, Need to Calculate No of Customers from a particular dimension table on these measures Daily,WTD,MTD, YTD,QTD,SPLM,SPLY Can anybody help me with the Logic its extremely urgent. Thanks all for your help Regards, Yedu

  • Bug in org.xml.sax???

    Hi, we're doing this big project for school and it seems as if there is a bug in the sax-pargers (org.xml.sax). I was writing tests and i wanted to fail a test so, i made shure there was a parse error in a certain xml-file. when i ran the test, the p