Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Exception with anchors in HtmlField
Exception with anchors in HtmlField [message #1133210] Fri, 11 October 2013 13:44 Go to next message
Uli B is currently offline Uli B
Messages: 25
Registered: January 2012
Junior Member
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
Lukas Huser is currently offline Lukas Huser
Messages: 39
Registered: March 2010
Member
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: Thu Apr 24 01:55:27 EDT 2014

Powered by FUDForum. Page generated in 0.02364 seconds