Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I think break and continue are not natively supported but you can always create your own tags to handle these cases. Take a look at <a href="http://www.playframework.org/documentation/1.1.1/templates#fasttags" rel="nofollow">http://www.playframework.org/documentation/1.1.1/templates#fasttags</a> for details.</p> <p>The default implementation of #list is GroovyInlineTags#_list - this should give you everything you need to customise it for extra arguments.</p> <p>Personally, I would handle this logic on the server side and only pass into the view what you want to show. break is then no longer needed, and continue can be implemented as an if-else statement using the existing tags.</p> <p>As for calling methods on objects, certainly. You can use, for example, #{if myList.contains('whatever')} or even put Groovy elvis operator in there for null-safety, e.g. #{if myList?.contains('whatever')}</p> <p>Incidentally, which version of the Play framework are you using? 1.0.2 is pretty old now! 1.1.1 is the latest version of the 1.1 branch, and 1.2.4 is the latest version of the trunk. There's also Play 2 (<a href="http://www.playframework.org/2.0" rel="nofollow">http://www.playframework.org/2.0</a>) which is good for experimentation but you may want to hold off on using it for production for a while. Later versions of the framework have much better documentation. When running in dev mode, you can also access the version-specific documentation at <a href="http://localhost:9000/@documentation" rel="nofollow">http://localhost:9000/@documentation</a> (correct the port number as necessary).</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload