cancel
Showing results for 
Search instead for 
Did you mean: 

webscript framework and BaseProcessorExtension with HEAD ver

pierre_duracel
Champ in-the-making
Champ in-the-making
Dear reader,

I was trying the webscript framework war to see how it behaves.

The good news is that the javascript debugger is packaged inside it.  Smiley Very Happy

At this stage, I try to add some springs beans  to the webscript context in order to be able to acces them from inside javascript.

In Alfresco (the whole product) , I used to do this by extending the BaseProcessorExtension which is not available in the webscript framework web application.

Any idea if this would be possible an other way ?

What I'm trying to do, is to see if it would be possible to use the webscript framework as a basis for some web application without the need of the repository.

Thanks in advance for your help and advices.

Pierre
2 REPLIES 2

pierre_duracel
Champ in-the-making
Champ in-the-making
Hello,

After digging inside the source code it seems that the DeclarativeWebScript class sets up the models in use inside the javascript and the template.

Maybe a good starting point could be to work around it in order to have the possibility to access to some Springs Beans and associated them to the model.

What do you think about it ?

Thanks for your comment.

(I hope to be not too much off topic here ?)

Pierre.

pierre_duracel
Champ in-the-making
Champ in-the-making
To get this behaviour, you should add your beans inside  the webscripts.abstractcontainer .
More precisly inside the <property name="scriptObjects"> which objects are made available to the DeclarativeWebScript without much more effort.
Smiley Very Happy