textField width

Developers
2012-01-30
2013-04-29
  • Fabiana Bugli
    Fabiana Bugli
    2012-01-30

    Hi, I'm new to the Roma Framework,
    I'm using the 2.1.0 version, I've searched on the pdf document but I couldn't find it,
    how can I set a larger width for my text fields which appears a bit small for the descriptions of my db?
    ex. 80, 100 character…
    Thank you :-)

     
  • Luca Molino
    Luca Molino
    2012-01-30

    Hi,

    what view aspect are you using? Janiculum or Echo2? (style changes is really different between the two)

     
  • Fabiana Bugli
    Fabiana Bugli
    2012-01-30

    Hi, I'm using Echo2, I've used the >roma project create command, as explained in the tutorial,
    and I got the applicationContext-echo2.xml generated in the META-INF/components folder,
    Thanks

     
  • Luca Molino
    Luca Molino
    2012-01-30

    Ok, <pathToYourSrc>/view/style
    you'll find a file named default.stylesheet inside

    search for this

    <style name="Object" type="nextapp.echo2.app.text.TextComponent">
    <properties>
    .....
    </properties>
    </style>
    

    and add or edit the width property

    <property name="width" value="<yourWidth>px" />
    
     
  • Fabiana Bugli
    Fabiana Bugli
    2012-01-30

    Thank you,
    I've tryed to define a new style in my application.stylesheet  file and I've used it on my entity field with the @ViewField annotation and it's ok, now I better understand how it works :-)