Results 1 to 2 of 2

Thread: Custom forms

  1. #1

    Default Custom forms

    Hi everyone,

    How can I create custom forms using Spring Roo? I tried to add a custom field in the view for retyping the email address (this is just an example).

    Code:
    <field:input field="email" id="c_ch_fhnw_edu_wodss_reminder_models_dtos_AccountDTO_email2" required="true" validationMessageCode="field_invalid_email" z=""/>
    I also had to create the language definition to avoid errors. The field shows up but incorrectly formatted (style is different). I don't really understand why. Is there a tutorial regarding this or do I need to create the whole form from scratch?

  2. #2
    Join Date
    Mar 2008
    Location
    Sydney, AU
    Posts
    974

    Default

    Roo uses a tagx library (installed into each project) which you can customize or extend as needed. If you think this is too much for your purpose there is nothing holding you back from writing normal (x)html code directly in your jspx files to customize a form. So you could add div tags and decorate them with custom CSS etc.

    HTH,
    Stefan
    Stefan Schmidt
    Software Engineer, Spring Roo
    SpringSource - a division of VMware
    twitter @schmidtstefan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •