click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "florin.g" <flo...@bytenotes.com>
Subject Re: HTML5: data-* atrributes
Date Fri, 01 Oct 2010 23:53:37 GMT

It so appears but not quite.

The serverside will repeat the html fragment that is provided by the web
designer.

The easiest to illustrate this is with is a list: <ul id="xyz"
class="c1"><li class="c2"></li></ul>. 

The designer provides the html that is the true template for the data. All
that the serverside needs to do is repeat the <li> as formatted. The
following is the logical flow:

HtmlList hList = renderedPage.getElement("myListId");
List<String> items = db.getItems();
foreach (item: items) {
     hList.add(item);
}

So, the serverside does not really build the html but repeats the html
provided. In this case, no component will ever have it's own html embedded
as it is the case in most frameworks.

In the case that there is text needs to be repeated in each <li>, the
designer will provided inside the <li> as such: <li>Item span id="someId"
</li>

The ultimate goal is that the html code is never hidden in java code. 
    

-- 
View this message in context: http://click.1134972.n2.nabble.com/HTML5-data-atrributes-tp5583298p5593298.html
Sent from the click-development mailing list archive at Nabble.com.

Mime
View raw message