cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Aspect JSP Access?

howejr77
Champ in-the-making
Champ in-the-making
Hello,

I have a custom aspect with a constraint declared on it. When I access this property via the Edit Properties page, it shows up as a drop down box with list of values declared in the constraint along with an add button next to it. Click the add button and the entry is declared down below.

Two Questions:

1. If you click add on the same entry multiple times, it will be added multiple times.

2. Is there a way I can generate the same UI Control on a custom JSP page? (ie: what is the tag I use?) and can I reference the aspect/constraint in the tag?

Thank You
Ryan
3 REPLIES 3

hogarth503
Champ in-the-making
Champ in-the-making
Would you mind posting the code how to create the drop down box where you can select from the list. I an trying to do the same thing using a custom aspect.

Thanks

howejr77
Champ in-the-making
Champ in-the-making
If you would like me to post the code, let me know but my code is really all from this following post with things just renamed for our businesses.

The following post describes how to create a custom constraint that dynamically retrieves items from database table. If you put the constraint on your custom aspect property, when you then add that property to the property sheet for a piece of content (and customize the web-client-config-custom.xml to show the property), it will automatically create a control in the Web UI that includes a drop down box and a "Add to List" button with the ability to add items from the drop down list or remove them from the items selected.

http://forums.alfresco.com/en/viewtopic.php?f=5&t=10101

Hope it helps…

hogarth503
Champ in-the-making
Champ in-the-making
Thanks for the link that Help.. Apreciate it..
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.