AnsweredAssumed Answered

Condition on objectType

Question asked by jeremys on Apr 13, 2007
Latest reply on Apr 16, 2007 by gavinc
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 !

Outcomes