Menu

customize fields

Help
2009-08-28
2015-09-01
  • erdin omanovic

    erdin omanovic - 2009-08-28

    Hello everyone,

    I was asking myself about customizing fields :

    Well, every JTrac space is composed of at least summary, detail, comment, + optionaly custom fields :
    - Drop Down List
    - Free Text Field
    - Date Picker
    - (Decimal) Number

    I would like to not necesseraly use comment, summary or detail, and, on the other hand, customize display of some added text fields like they were textareas with more than one row (that would improve writing and displaying of fields with big content).

    Could this be easily done (i didn't find in wicket html files that would display customized fields) ?

     
  • Nicolas Crappe

    Nicolas Crappe - 2015-09-01

    Hi,

    I was able to do add custome fields like textarea : https://sourceforge.net/p/j-trac/discussion/552477/thread/be053fb9/

    You can also make some predefined fields (e.g. details) not required (or hide them) in
    ItemFormPage.java
    /

    * ===================================================
    * Detail
    * ===================================================
    /
    add(new TextArea("detail").setRequired(false).add(new ErrorHighlighter()));
    ItemFormPage.html

                                <tr>
                                    <td class="label">
                                        <wicket:message key="item_form.detail"/>
                                    </td>
                                    <td>
                                        <textarea wicket:id="detail" rows="10" style="width:51em"></text area>
                                    </td>
                                </tr>
    
     

    Last edit: Nicolas Crappe 2015-09-01

Log in to post a comment.