cancel
Showing results for 
Search instead for 
Did you mean: 

Condition on objectType

jeremys
Champ in-the-making
Champ in-the-making
Hi there,

I want to custom my wizard with two different ways. So I add this step :
<step name="content" title-id="enter_content" description-id="create_content_step2_desc">               <condition if="#{CreateContentWizard.objectType == '{my.ref.model}ref'}">                  <page path="/jsp/content/create-content-wizard/create-html.jsp"                        title-id="create_content_step2_title"                        description-id="create_content_step2_desc"                        instruction-id="default_instruction" />               </condition>               <!– Default to the inline text editor –>               <page path="/jsp/content/create-content-wizard/create-text.jsp"                     title-id="create_content_step2_title"                     description-id="create_content_step2_desc"                     instruction-id="default_instruction" />            </step>‍‍‍‍‍‍‍‍‍‍‍‍‍

But it seems like the condition don't work.  I think it's because of the { caracteres but I'm not sure. In the first step I have this code for the "type" select :

<select name="wizard:wizard-body:_id29" size="1">   <option value="{http://www.alfresco.org/model/content/1.0}content">Contenu</option>   <option value="{my.ref.model}ref" selected="selected">Reference</option></select>‍

Thanks in advance for your help !
1 REPLY 1

gavinc
Champ in-the-making
Champ in-the-making
You're right, you need to use the prefix form of the namespace i.e. my:ref