Render « playframework « Java Enterprise Q&A





1. Play Framework Template Engine, static member passed to render cause NullPointerException    stackoverflow.com

I've struggled with a NullPointerException in my template for a while and haven't been able to find any help online so I'm hoping that someone here can shed some light on ...

2. How can I render a variable globaly in play framework    stackoverflow.com

I want to use a List of Objects globally for all views so that I can use that in all views to create navigation with the #list tag. I thought I ...

3. In Play, when rendering JSON can I use anonymous types and/or object initializers?    stackoverflow.com

I'm writing a Play application that will have dozens of controller actions that return JSON. The format of each JSON result is slightly different, built up from a few primitives. I would ...

4. Play! framework calling the render() action from controller    stackoverflow.com

I've been customising a template generated by the CRUD module and now need to override the save method to save the custom data from the template. I can save all the ...

5. Is it possible to load a template dynamically and include it in render process    stackoverflow.com

I try to develop a kind of report generator with play framework. every report could have a specific template. A report creator puts all necessary elements including the depending template part ...

6. Render a boolean as 0 or 1 in Play template    stackoverflow.com

This is a simple question. What is the best way to render a boolean value of an object as '0' or '1' in a template in the Play Framework. I am creating ...

7. Need to render HTML with Play parameters    stackoverflow.com

I have an object that has a title and some text (item.itmTitle and item.itmText) which I am passing to an HTML template using Play's render() method. Within the template (which in ...

8. Why isn't the template rendering the correct values?    stackoverflow.com

I have a template which iterates through a map and displays the info as such:


       #{list items:report.getCategoryMap()?.keySet(), as:'cat'}
        ...