Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
╚ Groups Home
Block page rendering
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
YoZH  
View profile  
 More options Sep 28 2012, 5:19 am
From: YoZH <dsakant...@gmail.com>
Date: Fri, 28 Sep 2012 02:19:25 -0700 (PDT)
Local: Fri, Sep 28 2012 5:19 am
Subject: [2.0] Block page rendering

Hello!

What is a must have approach when designing an application with easily
distinctive zones?
For example, I have 4 zones in my app: "Header", which may contain some
static info (app logo, etc), top-level navigator, login information, "Left"
which contain low-level navigation, some options, may be tag cloud, or
survey, etc
"Center" zone, which is for current page content, and "Footer" zone, which
may contain static and non-static content.

I'm new to Play, and cannot figure out, how to design controllers and
templates, and to compose them so, that I could make one change in, for
example, top zone content rendering, including change in types of data
which is rendered and would not be forced to change dozens of other views
which, for example, render Center zone, etc., passing new parameters to
main template which in its turn will include other templates etc.

TY in advance


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James Roper  
View profile  
 More options Sep 28 2012, 6:07 am
From: James Roper <jrop...@gmail.com>
Date: Fri, 28 Sep 2012 03:07:18 -0700 (PDT)
Local: Fri, Sep 28 2012 6:07 am
Subject: Re: [2.0] Block page rendering

Are you using Java or Scala?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
YoZH  
View profile   Translate to Translated (View Original)
 More options Sep 28 2012, 6:24 am
From: YoZH <dsakant...@gmail.com>
Date: Fri, 28 Sep 2012 03:24:22 -0700 (PDT)
Local: Fri, Sep 28 2012 6:24 am
Subject: Re: [2.0] Block page rendering

Sorry, Java

пятница, 28 сентября 2012 г., 14:07:18 UTC+4 пользователь James Roper
написал:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James Roper  
View profile  
 More options Sep 28 2012, 8:07 am
From: James Roper <jrop...@gmail.com>
Date: Fri, 28 Sep 2012 05:07:42 -0700 (PDT)
Local: Fri, Sep 28 2012 8:07 am
Subject: Re: [2.0] Block page rendering

Currently there are two "nice" (or not so nice) ways to do this:

1) Have a god object, that you pass into every template, and provides all
the data needed by each part.  You can change the types of data in that
template without changing what gets passed through.
2) Write static methods, that look up the data you need, and call them from
the templates.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
YoZH  
View profile   Translate to Translated (View Original)
 More options Sep 28 2012, 8:11 am
From: YoZH <dsakant...@gmail.com>
Date: Fri, 28 Sep 2012 05:11:13 -0700 (PDT)
Local: Fri, Sep 28 2012 8:11 am
Subject: Re: [2.0] Block page rendering

Kinda non-system approach, imo, but  tyvm
Any more suggestions?

пятница, 28 сентября 2012 г., 16:07:42 UTC+4 пользователь James Roper
написал:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "[2.0] Block page rendering" by Mathias Clerc
Mathias Clerc  
View profile  
 More options Oct 1 2012, 2:11 am
From: Mathias Clerc <tlarhi...@gmail.com>
Date: Mon, 1 Oct 2012 15:11:01 +0900
Local: Mon, Oct 1 2012 2:11 am
Subject: Re: [play-framework] Re: [2.0] Block page rendering
Create "header", "left" and "footer" each in their own template.
Create a "main" template which will include and set those 3 parts as
well as the page content.

For each page of your website, you can then wrap the content with your
main template like:
@main(/* you can pass your page dependent parameters here */){
   <!-- Your page html code -->

}

Same idea as behind the helloworld sample (hello.scala.html and
index.scala.html have their html wrapped by the 'main' template
containing the common layout).

2012/9/28 YoZH <dsakant...@gmail.com>:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions Older topic »