cancel
Showing results for 
Search instead for 
Did you mean: 

Adding a custom field with a link

chantren
Champ in-the-making
Champ in-the-making
Hello everyone,

I have created a new field for my documents which purpose is to link to a Jira Issue. I am able to edit that field using webservices but I would like to have a link in that field instead of a simple String, to directly point the Jira issue. Is that possible ?

Thanks.

Nathan.

ps : I am using Alfresco 3.0
7 REPLIES 7

invictus9
Champ in-the-making
Champ in-the-making
By "link", do you mean the URL of the Jira issue? It would still be just a string type.

chantren
Champ in-the-making
Champ in-the-making
Yes I want to put the URL of the Jira Issue, but ideally i would like this url not to be displayed. I want to have the key of the issue (such as JRA-1020) containing an hypertext link to that issue.

hsohaib
Champ on-the-rise
Champ on-the-rise
in your web-client-config-custom.xml, instead of using the Component-generator "TextFieldGenerator" , use 'LinkGenerator" , that should solve it

chantren
Champ in-the-making
Champ in-the-making
Hello,

thank you hsohaib, that's what I was looking for. But I still have the following problem, how do I configure the link ? The link is currently http://localhost:8080/alfresco/faces/jsp/dialog/FAH-729 and I would like it to be http://localhost:8080/jira/browse/FAH-729.

hsohaib
Champ on-the-rise
Champ on-the-rise
in the propery's value you need to specify the whole link (http://localhost:8080/jira/browse/FAH-729), not just (FAH-729) .
But if you want only "FAH-729" to be displayed you might wanna create your custom version of "LinkGenerator" class that you can find in the SDK.

cristian
Champ in-the-making
Champ in-the-making
Hi there.
I'm trying to use LinkGenerator in an association tag:
<show-association name="my:parents" component-generator="LinkGenerator" />
but something goes wrong when the details item is opened….
javax.faces.FacesException: java.lang.ClassCastException: javax.faces.component.UIOutput cannot be cast to org.alfresco.web.ui.repo.component.property.BaseAssociationEditor
caused by:
org.apache.jasper.JasperException: java.lang.ClassCastException: javax.faces.component.UIOutput cannot be cast to org.alfresco.web.ui.repo.component.property.BaseAssociationEditor
caused by:
java.lang.ClassCastException: javax.faces.component.UIOutput cannot be cast to org.alfresco.web.ui.repo.component.property.BaseAssociationEditor

Does anyone have an idea what I'm missing?? thanks

billo
Champ in-the-making
Champ in-the-making
Hi Christian,

Have you found how to solve this issue. I am having the same error. If so, could you please help me.

Thanks in advance