Hello Jamie,
  thanks for your reply...... i m curious about your setup...
let me see if i understand it correctly..
 
you would have something like this in tiles-defs.xml ?
 
<definition name="budgetLayout" path="/layout/default">
   <put name="title"  value="MM's JSF Application" />
   <put name="header" value="/common/header.jsp" />
   <put name="header" value="/common/menu.jsf" />
   <put name="footer" value="/common/footer.jsp" />
   <put name="body"   value="/main.jsp" />
</definition>
 
?
 
so would it be menu.jsp or menu.jsf when declaring it in tiles-defs.xml?
 
 
 thanx and regards
   marco
 


 
On 1/18/06, Cash, Jamie <[EMAIL PROTECTED]> wrote:
I have used this setup (jsf & tiles and jscookmenu) and my setup was as follows:

Used struts.jar which includes the tiles stuff.
Created my default.jsp (tiles template) file as a standard tiles layout, minimialising the use of jsf tags (This works well, as you have much more control over the site layout).
Put the jscookmenu code in a menu.jsp file, that was one of the tiles declared in my tiles-config file and added in my default.jsp.

I found that I experienced problems when trying to use more than one jscookmenu per page though.

My website ( www.ecommerce-consultancy.co.uk) has been build using this approach, I can send you some of the files if you need them.

I hope this helps.

Jamie

-----Original Message-----
From: Wei Chiang [mailto:[EMAIL PROTECTED]]
Sent: 18 January 2006 11:59
To: MyFaces Discussion
Subject: Re: Tiles & jsCookMenu


I have  a different problem regarding tile + jscookmenu.  Please see
yesterday's mail (jscookmenu problem?).  I have not solved the problem yet.

In my case,  the jscookmenu tags are in the "mina.jsp" , the main layout
(corresponding to your jscookmenu.jsp) does not have jscookmenu tags but have
view related jsf tags. As far as I can tell, my problem is not directly
related to tiles.

Wei


On Wednesday 18 January 2006 13:41, Marco Mistroni wrote:
> Hello all,
>     i am trying to use jscookmenu inside tiles layout...
>
> basically what ihave done is take the jscookmenu.jsp and declare it in
> tiles-config.xml as follows
>
> <definition name="budgetLayout" path="/layout/jscookmenu.jsf">
>    <put name="title"  value="MM's JSF Application" />
>    <put name="header" value="/common/header.jsp" />
>    <put name="footer" value="/common/footer.jsp" />
>    <put name="body"   value="/main.jsp" />
> </definition>
>
> obviously, teh fact that we have tiles and jsf tags at same time causes
> problems, and in fact
> i am receiving the following exception
>
>
> [ServletException in:/layout/jscookmenu.jsf] Cannot forward after response
> has been committed'
>
> which if i remember correctly is the one that you find if you use tiles
> along with jsf tags
>
> i am currently usign tiles.jar (not the one coming from myfaces)
>
> will the use of myfaces tiles solve the problem?
>
> or do ihave to 'restructure' my tiles layout not to include jsf pages?
>
> anyone has had similar situation?
>
> thanks in advance and regards
>  marco


INTERNATIONAL FINANCIAL DATA SERVICES (UK) LTD Tel: +44 1268 44 3000
********************** N O T I C E *********************************

This message and any attachments is intended only for the individual or company to which it is addressed and may contain
information which is privileged, confidential or prohibited from disclosure or unauthorised use. If the recipient of this
transmission is not the intended recipient, or the employee or agent responsible for delivering such materials to the
intended recipient, you are hereby notified that any use, any form of reproduction, dissemination, copying, disclosure,
modification, distribution and/or publication of this e-mail message or its attachments other than by it's intended
recipient is strictly prohibited by the sender. If you have received it in error, please notify us immediately by
telephone on the number above and destroy the message and all copies in your possession.

International Financial Data Services (UK) Ltd is authorised and regulated by the Financial Services Authority.

This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses.

**********************************************************************


Reply via email to