cancel
Showing results for 
Search instead for 
Did you mean: 

Adding a new wizard in the browse.jsp in alfresco 1.3.0

unknown-user
Champ on-the-rise
Champ on-the-rise
Hello everyone.

I have a question about the new version 1.3. I will explain all i did in the version 1.2.

I included a new funcionality in the version 1.2, in the part of create, i added a new wizard, like the one that is created, but changing.

In Alfresco 1.2, i just put an action in the browse.jsp,
<a:actionLink value="Crear document" image="/images/icons/create_space.gif" action="createDoc" actionListener="#{NewDocWizard.startWizard}" id="myLink" />‍‍‍
But this code-line is not possible to be included in the browse.jsp. So my problem, or what i am not able to discover is in which file do i indicate the same thing. I can include the label so i am able to click on the title, but i get no result, because it is not linked with the .jsp

I have the problem that i added things in the alfresco 1.2, and now, i follow all the steps, and i realise that the code has been changed, so it makes me lose lot of time.

Can anyone help me?

Thanks in advanced

Bird
5 REPLIES 5

kevinr
Star Contributor
Star Contributor
The actions on the browse screen and most other screens are now externalised to XML files. This means you no longer have to modify the browse screen JSP to add/change/remove an action from the UI. Taking a look at this page before starting customisations will save you from wasting time:
http://wiki.alfresco.com/wiki/Web_Client_Customisation_Guide

Take a look at this page for specific info on externalised actions:
http://wiki.alfresco.com/wiki/Externalised_Client_Actions

Thanks,

Kevin

unknown-user
Champ on-the-rise
Champ on-the-rise
Thank you very much!
If only i new before, i would not have waste one week of working.
Thx
Bird

unknown-user
Champ on-the-rise
Champ on-the-rise
ok there.

i have been reading the pages you posted me. But i don't want to Customize the Create Content Wizard. What i want to do is add a new wizard. so, when i click into that in the menu, it opens me a diferent .jsp.

So one question is… where do i indicate which .jsp is? Because it makes nothing. Previos version was easily Smiley Sad

Another question is do i have to add in the web-client-config-custom.xml file? or i have to make a new web-client-config-wizard.xml but instead of "web-client-config-wizard.xml" change the name into "web-client-config-doc.xml" or just add in web-client-config-wizard.xml a new config - wizard…

Thanks
Bird

unknown-user
Champ on-the-rise
Champ on-the-rise
another thing about that.

I know that i have to put the action in the web-client-config-actions.xml, but i have a doubt. The next code..
<!– Create Advanced Space Wizard –>         <action id="create_space_wizard">            <permissions>               <permission allow="true">ChangePermissions</permission>            </permissions>            <label-id>advanced_space_wizard</label-id>            <image>/images/icons/create_space.gif</image>            <action>wizard:createSpace</action>         </action>‍‍‍‍‍‍‍‍‍‍‍
is in the file, but in the <action> label… what does it means 'wizard:.."
I mean, the directori? the name of the classe? because if i create a new one such as follows
<!– Create Doc –>         <action id="create_doc">            <!–permissions>               <permission allow="true">ChangePermissions</permission>            </permissions–>            <label-id>create_doc</label-id>            <image>/images/icons/create_space.gif</image>            <action>wizard:createDoc</action>            <action-listener>#{NewDocWizard.startWizard}</action-listener>         </action>‍‍‍‍‍‍‍‍‍‍‍‍
Then, i don't know what to put before createDoc, wizard: ? or doc:? that's because i don't understand what it means. Also in other actions there is "dialog: " and other things…

Can you help me?

I think that the applications does not work because the action doesn't know where to find the createDoc…. because the action-listener works.

Thanks very much
Bird

gavinc
Champ in-the-making
Champ in-the-making
Hi,

The easiest thing to do is to add your custom config to web-client-config-custom.xml, however, you don't have to, read the information in this article for details on adding extra config files: http://wiki.alfresco.com/wiki/Web_Client_Configuration_Guide

The wizard: prefix on an action will make the web client look for a wizard defined in your configuration with the name following the : In your example the web client will be looking for a wizard called "createDoc". Have a look at the following wiki pages for information on the new dialog and wizard framework: http://wiki.alfresco.com/wiki/Dialog_And_Wizard_Framework and http://wiki.alfresco.com/wiki/Wizard_Framework

You will not need the action-listener config with the new dialogs and wizards, the framework now does this automatically.

Hope this helps.