Menu

<jt:forEach> shifts cells style in 0.10 version

2017-02-14
2017-02-14
  • Paolo Dibitonto

    Paolo Dibitonto - 2017-02-14

    Hello all,
    I just want to ask if I founded some strange bug or I'm missing some configuration.
    I have a forEach in xls file (with 3-4 values) that need to be repeated 10 times (ten columns).
    I have just called the transform(pathIn, pathOut, beans) to translate the template but with the last version of jett core the cells style of the cell populated by the forEach loop get shifted and copied.
    I've tried the 0.8 version and this thing it's not happening (I've tried it beacuse i work on a platform that already implement that version).
    Is there some new setting I'm missing?
    Below I add the screenshoots for best understandig, don't look at the values they are just as example.
    Please excuse me for mine bad english.
    Thanks all in advance.
    Paolo

     

    Last edit: Paolo Dibitonto 2017-02-14
  • Etienne Canaud

    Etienne Canaud - 2017-02-15

    Hi Paolo,

    If you don't want cells to be shifted (along with their formatting), just add attribute fixed="true" to your forEach tag.

    Not sure why behavior is different in 0.8 and 0.10, in my memory this attribute is always false by default, even in old JETT versions...

     
  • Paolo Dibitonto

    Paolo Dibitonto - 2017-02-15

    Hi Etienne,
    Thank you very much, that was the missing attribute.

     

Log in to post a comment.

MongoDB Logo MongoDB