Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Hyperlink Action not working in RAP
Hyperlink Action not working in RAP [message #1074356] Fri, 26 July 2013 15:07 Go to next message
Jason Fauble is currently offline Jason FaubleFriend
Messages: 10
Registered: June 2011
Location: Tallahassee, Florida
Junior Member
The AbstractHtmlField.execHyperlinkAction(...) does not fire in RAP. It appears to be working in SWT and Swing, but I am unable to detect when the user selects a hyperlink in RAP.
Re: Hyperlink Action not working in RAP [message #1085081 is a reply to message #1074356] Mon, 12 August 2013 12:31 Go to previous messageGo to next message
Claudio Guglielmo is currently offline Claudio GuglielmoFriend
Messages: 128
Registered: March 2010
Senior Member
Hi Jason

I made a quick test and noticed the following:
- If the link points to an ordinary url, execHyperlinkAction doesn't get called
- If the link points to a local url, execHyperlinkAction gets called properly

I think execHyperlinkAction should be called in both cases. I opened Bug 414866. But you can easily workaround it by just using local urls.

@Order(10.0)
public class HtmlField extends AbstractHtmlField {

  @Override
  protected String getConfiguredLabel() {
    return TEXTS.get("Abc");
  }

  @Override
  protected int getConfiguredGridH() {
    return 2;
  }

  @Override
  protected void execInitField() throws ProcessingException {
    // setValue("<a href=\"http://local/person/123\">Open Person</a>");
    setValue("<a href=\"http://www.google.com\">Google</a>");
  }
}


Regards
Claudio
Re: Hyperlink Action not working in RAP [message #1089996 is a reply to message #1085081] Mon, 19 August 2013 15:02 Go to previous message
Jason Fauble is currently offline Jason FaubleFriend
Messages: 10
Registered: June 2011
Location: Tallahassee, Florida
Junior Member
Thanks Claudio, I will give that a try.
Previous Topic:Webservice content type
Next Topic:Store files on server with the RemoteFileService
Goto Forum:
  


Current Time: Fri Nov 28 01:46:37 GMT 2014

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

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