Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3341884
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T00:46:27+00:00 2026-05-18T00:46:27+00:00

I read the documentation http://www.playframework.org/documentation/1.1/tags#ageta and I don’t get it. Can someone provide a

  • 0

I read the documentation http://www.playframework.org/documentation/1.1/tags#ageta and I don’t get it.

Can someone provide a better, easier to understand example ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T00:46:27+00:00Added an answer on May 18, 2026 at 12:46 am

    This is essentially a way to avoid copying and pasting a bunch of HTML repeatedly and then changing a dozen little details in it.

    The starting example they give in the documentation (which I know you’ve read, but which I’l quote here for ease of reference) is this:

    <p>
      <label>&{'user.name'}</label>
      <input type="text" id="user_name" name="user.name" value="${user?.name}" class="${errors.forKey('user.name') ? 'has_error' : ''}">
      <span class="error">${errors.forKey('user.name')}</span>
    </p>
    

    If you imagine starting with that markup on your page and then adding a second field to the form, you’d have to copy/paste that entire block and then change &{'user.name'}, user_name, user.name, ${user?.name}, user.name, and user.name (each a separate reference to the same basic field) just to get the new markup to apply to your new field.

    And that’s just more typing than some of us are willing to undertake merely to add a field to a darn form.

    The replacement #{field 'foo'} allows is this:

    #{field 'user.name'}
    <p>
      <label>&{field.name}</label>
      <input type="text" id="${field.id}" name="${field.name}" value="${field.value}" class="${field.errorClass}">
      <span class="error">${field.error}</span>
    </p>
    #{/}
    

    The advantage here is that user.name appears in exactly one place. If you were to copy/paste this markup to add another field, you’d have to make only one replacement: the one in the #{field ...} tag.

    The end result is that it’s easier to develop standard markup for the many fields on your form without having to do a lot of error-prone manual replacement of the labels, names, IDs, current values, error messages, classes, et cetera.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new for playframework. and I read this tutorial. http://www.playframework.org/documentation/1.1/i18n#messages but I didn't understand
although I read through the manual here: http://www.doctrine-project.org/documentation/manual/1_2/hu/hierarchical-data I couldn't find a way to
I have read the documentation for Grails and Webtest in this site: http://www.grails.org/plugin/webtest And
I read the documentation @ http://www.sqlite.org/lang_select.html , but could not understand if LIMIT works
First of all, yes I've read documentation for DO statement :) http://www.postgresql.org/docs/9.1/static/sql-do.html So my
After running into the Yii asset engine I've read the official documentation (http://www.yiiframework.com/wiki/148/understanding-assets/). I
I read this page: http://www.djangoproject.com/documentation/models/custom_pk/ , and the example doesn't list unique=True. I'm wondering
I read the guide http://www.apple.com/itunes/affiliates/resources/documentation/itunes-store-web-service-search-api.html and tried http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStoreServices.woa/wa/itmsSearch?limit=100&term=finance&output=json&media=all&entity=software&country=us it returns nothing, why ?
I have read the documentation ( http://dev.mysql.com/doc/refman/5.1/en/partitioning.html ), but I would like, in your
Having read Apple's numerous documentation on icon guidelines: http://developer.apple.com/library/ios/#documentation/UserExperience/Conceptual/MobileHIG/IconsImages/IconsImages.html#//apple_ref/doc/uid/TP40006556-CH14-SW2 http://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/App-RelatedResources/App-RelatedResources.html#//apple_ref/doc/uid/TP40007072-CH6-SW1 http://developer.apple.com/library/ios/#qa/qa1686/_index.html I was wondering

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.