10 Replies Latest reply: Dec 6, 2012 8:37 AM by Mriem-Oracle RSS

    composite components and order in the form

    977886
      Hello,

      We have a strange problem when mixing composite components with plain html/text in a form.
      When we do a form submit f.ex. with a commandLink then the page comes back where all composite components are placed at the end of the form.

      ex:
      <h:form>
           <mna:mandatoryLabel forField="office" value="Office" />
           <h:outputLabel value="blabla" id="blabla"/>
           <h:commandLink id="test" actionlistener="test" value="test"/>
      </h:form>

      When you submit this form with the commandlink "test", then it comes back with the mandatoryLabel "Office" at the end of the form and no longer as the first field in the form.
      Pressing F5 put everything back as normal.

      Via ajax everything works fine and the composite component stays at the first place

      Can anyone help?
      Perhaps it has something to d with the time of rendering the different elements when comming back to the client.

      Thanks!

      Edited by: user7182559 on 4-dec-2012 5:08