ok. The list is filled within dojo req (and others) in the action(struts2)
isn“t ? No sounds good to me. Is there other way to put  a different head
for specific pages ?

Thanks

Herrera



Antonio Petrelli-3 wrote:
> 
> 2008/3/31, Pedro Herrera <[EMAIL PROTECTED]>:
>>  How I use dojo tags,  I have to put in the head for a specific page:
>>      <script type="text/javascript">
>>         dojo.require("dojo.parser");
>>         dojo.require("dijit.form.ComboBox");
>>      </script>
>>
>>  My problem is that each page(jsp) has differents dojo.requires(need
>> inside
>>  head tags). How do I resolve this, ie, each page has a specific head ?
> 
> You could use a list attribute, containing the needed Dojo
> requirement, and iterate in the JSP page:
> http://tiles.apache.org/tutorial/advanced/list-attributes.html
> In your case it could be:
> 
> 
> <script type="text/javascript">
> <c:forEach var="item" items="${list}">
>   dojo.require("${item.value}");
> </c:forEach>
> </script>
> 
> HTH
> Antonio
> 
> 

-- 
View this message in context: 
http://www.nabble.com/change-header-param-tp16396401p16417505.html
Sent from the tiles users mailing list archive at Nabble.com.

Reply via email to