Re: JS 2.2.2: cannot add portlets from toolbox

Frank Otto <[email protected]>
Newsgroups gmane.comp.jakarta.jetspeed.user
Message-ID <[email protected]>
additional info:

in toolbox.jsp the variable editAccess is false...

I had no idea and set it temporality to true. But the next Problem 
occurs. Because userInAdminRole is false too. It will not remove the 
clone-Link, but my add-Link.

clone.all("a").item(1).remove();

I think you have to check if item size is three and than remove second 
index.


Am 17.10.2011 09:25, schrieb Frank Otto:
> hi,
>
> thanks for your answer.
>
> I have checked the toolbox.jsp. If the user has no admin role, the 
> "clone"-button will not be shown.
>
> For the "add"-button you need edit access. I have defined in 
> jetspeed-portlet.xml following security constraint:
>
> <portlet>
> <portlet-name>JetspeedToolbox</portlet-name>
> <js:security-constraint-ref>user-edit</js:security-constraint-ref>
> </portlet>
>
> But the I don't see it. :-( Any idea?
>
>
> best regards,
>
> Frank
>
> Am 14.10.2011 09:59, schrieb David Taylor:
>> On Thu, Oct 13, 2011 at 6:48 AM, Frank Otto<[email protected]>  wrote:
>>> hi,
>>>
>>> I see available portlets in toolbox, but the button "add" is not 
>>> shown. Only
>>> buttons "preview" and "clone" was shown.
>>>
>>> How can I disable the clone-button?
>>>
>> There doesn't seem to be a configurable way to do this short of
>> editing the jsp and removing it
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.