Can someone with enough rights change the type of this FOR into Bug
please...
Cyriaque,
Cyriaque Dupoirieux (JIRA) a écrit :
Problem chaining hooks with the same name with dispatcher v3
------------------------------------------------------------
Key: FOR-788
URL: http://issues.apache.org/jira/browse/FOR-788
Project: Forrest
Type: New Feature
Components: Dispatcher (aka views)
Versions: 0.8-dev
Reporter: Cyriaque Dupoirieux
Assigned to: Cyriaque Dupoirieux
Fix For: 0.8-dev
There is a generation problem when chaining hooks with the same name.
I.e.
<forrest:hook class="logo">
<forrest:contract name="branding-logo"/> ...
</forrest:hook>
<forrest:hook class="logo">
<forrest:contract name="branding-logo"/> ...
</forrest:hook>
Gives this :
<div class="logo">
<!--+ start Logo +-->
...
<!--+ end group Logo +-->
<!--+ start Logo +-->
...
<!--+ end group Logo +-->
</div>
<div class="logo" />
The first div - that is hook - is not closed after the first logo but after the
second ?
The second hook generate an empty div tag - which is as we all know something that several browsers don't like at all :-) .
cf. http://www.mail-archive.com/dev%40forrest.apache.org/msg07498.html