Skip to main content



      Home
Home » Eclipse Projects » Eclipse Scout » Exception with anchors in HtmlField
Exception with anchors in HtmlField [message #1133210] Fri, 11 October 2013 13:44 Go to next message
Eclipse UserFriend
Hello,

I have an HtmlField displaying html containing local links of the form


<A href="#anchor">
...
<A name="anchor">


When clicking on the link I get

java.lang.NullPointerException
       at org.eclipse.scout.rt.client.ui.form.fields.htmlfield.AbstractHtmlField.doHyperlinkAction(AbstractHtmlField.java:128)
       at org.eclipse.scout.rt.client.ui.form.fields.htmlfield.AbstractHtmlField$P_UIFacade.fireHyperlinkActionFromUI(AbstractHtmlField.java:239)
       at org.eclipse.scout.rt.ui.swing.form.fields.htmlfield.SwingScoutHtmlField$2.run(SwingScoutHtmlField.java:286)
       at org.eclipse.scout.rt.ui.swing.concurrency.SwingScoutSynchronizer$1.runVoid(SwingScoutSynchronizer.java:66)
       at org.eclipse.scout.rt.client.ClientJob.runStatus(ClientJob.java:189)
       at org.eclipse.scout.rt.client.ClientJob.runTransactionWrapper(ClientJob.java:172)
       at org.eclipse.scout.rt.client.ClientJob.run(ClientJob.java:159)
       at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)



In standard browsers everything works perfect. What can I do to get this work in the HtmlField?
Re: Exception with anchors in HtmlField [message #1197158 is a reply to message #1133210] Tue, 19 November 2013 14:43 Go to previous message
Eclipse UserFriend
Hi Uli

It seems that your use case is simply not implemented for the Swing UI Sad (I verified that it works with the SWT and RAP clients.)

The current implementation for the Swing UI always assumes a valid URL as the link target, ignoring the possibility of local anchors. It should be technically feasible to implement this feature (scrolling to a local anchor) also for the Swing client.

Would you mind opening a Bugzilla ticket?

Lukas
Previous Topic:Switch Tabs programatically
Next Topic:Table in Table Column
Goto Forum:
  


Current Time: Mon Jul 14 22:16:37 EDT 2025

Powered by FUDForum. Page generated in 0.36724 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top