Re: [xwiki-devs] [Proposal] Port Actions to component model

2010-01-10 Thread Caleb James DeLisle
I would like to use ActionManager for implementing captchas. I have a possible interface for actions: Response execute(Response output) throws ActionException; Response execute(Response output, Object additionalData) throws ActionException; the Response parameter (output) will be the real

[xwiki-devs] [Proposal] Port Actions to component model

2010-01-04 Thread Caleb James DeLisle
This has been discussed on IRC but I wanted to send out an email before creating a design proposal and JIRA issue. Summary: Actions need to be ported out of the old core into their own components. It is important that the new Action model be in place so that newly added actions do not have to be

Re: [xwiki-devs] [Proposal] Port Actions to component model

2010-01-04 Thread Asiri Rathnayake
Hi Caleb, If I understand correctly, I would be able to add a new action by implementing an Action component with this approach (hope I'm correct). - How will I be able to bind my action to a particular URL pattern? (like download, view, edit actions we have right now) - Is there a way to

Re: [xwiki-devs] [Proposal] Port Actions to component model

2010-01-04 Thread Caleb James DeLisle
Everything is very much subject to change but as it stands: Asiri Rathnayake wrote: Hi Caleb, If I understand correctly, I would be able to add a new action by implementing an Action component with this approach (hope I'm correct). Yes, and you can piggyback off of other actions (to be