You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shale.apache.org by Wendy Smoak <ws...@gmail.com> on 2006/09/25 03:50:17 UTC

Shale-related Tiles 2 issue

Can someone take a look at SB-47 [1]?  It's a Tiles 2 issue
complaining about content appearing out of order, and the example app
uses Shale.

[1] http://issues.apache.org/struts/browse/SB-47

Thanks,
-- 
Wendy

Re: Shale-related Tiles 2 issue - NOT solved

Posted by gsl1 <gs...@erols.com>.
It looks like I spoke too soon. Although, I now have the title text being
displayed inside the html title start and end tags, the title start and end
tags and now their contents are still being displayed OUTSIDE the tile. The
tilestest webapp that I referenced previously demonstrates this problem
although it is not easy to see (thus the reason I missed it before). To
accentuate the problem, I changed the htmlHeaderTile.jsp file as shown
below. I have tried using f:verbatim in several different configurations,
but nothing seems to solve the problem.

If you substitute the following for tile file htmlHeaderTile.jsp, it clearly
shows the problem:

-------------------------- begin htmlHeaderTile.jsp

<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>

<meta name="keywords" content="keyword1 keyword2">
<f:verbatim><title></f:verbatim><h:outputText value="Some title
text."/><f:verbatim></title></f:verbatim>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">

-------------------------- end htmlHeaderTile.jsp

Here is a pertinent snippet from the page source from the browser:

------------------------------- begin snippet

<html lang="en">
	<head>
		<base href="http://localhost:8080/TilesBug/tiles/layouts/siteLayout.jsp">
		
		<!-- There seems to be ....
		 -->
		<!-- title --><!-- h:outputText value="This is a title that causes a tiles
core failure."/ --><!-- /title -->
		<title>Some title text.</title>

                <meta name="keywords" content="keyword1 keyword2">
                                                                                                       
<================== title should show up here
                <link rel="shortcut icon" href="favicon.ico"
type="image/x-icon">
	</head>

...
------------------------------- end snippet

I also tried:

<f:verbatim><title><h:outputText value="Some title
text."/></title></f:verbatim> 

and I tried putting a single pair of verbatim tags around the entire group
of header tags.

Can anyone see what I am doing wrong?

                              -=> Gregg <=-
-- 
View this message in context: http://www.nabble.com/Shale-related-Tiles-2-issue-tf2328985.html#a6579258
Sent from the Shale - Dev mailing list archive at Nabble.com.


Re: Shale-related Tiles 2 issue

Posted by gsl1 <gs...@erols.com>.
I am the originator of Tiles Core issue SB-47. Ms. Smoak asked for a follow
up on my exploits with it. The issue is posted at the following location :

  http://issues.apache.org/struts/browse/SB-47

I have attempted to upload a file tilestest.tar.bz2 through Nabble
containing an exploded war sans libs that I used for my experimentation that
finally works. Since I'm not sure if the file uploaded, I have also uploaded
the same file to the issue link above. The libs I used were as follows:

gsl@aragorn:~/tilestest/WEB-INF/lib> ls -l
total 2609
-rw-r--r--  1 gsl users  36342 2006-09-26 23:21
commons-attributes-api-2.1.jar
-rw-r--r--  1 gsl users  29216 2006-09-26 23:21
commons-attributes-compiler-2.1.jar
-rw-r--r--  1 gsl users 188671 2006-09-26 23:21 commons-beanutils-1.7.0.jar
-rw-r--r--  1 gsl users  90001 2006-09-26 23:21 commons-chain-1.1.jar
-rw-r--r--  1 gsl users 139966 2006-09-26 23:21 commons-digester-1.7.jar
-rw-r--r--  1 gsl users  52915 2006-09-26 23:21 commons-logging-1.1.jar
-rw-r--r--  1 gsl users  20682 2006-09-26 23:21 jstl-1.1.2.jar
-rw-r--r--  1 gsl users 249563 2006-09-26 23:21 myfaces-api-1.1.4.jar
-rw-r--r--  1 gsl users 524089 2006-09-26 23:21 myfaces-impl-1.1.4.jar
-rw-r--r--  1 gsl users 152249 2006-09-26 23:21 shale-core-1.0.3.jar
-rw-r--r--  1 gsl users  10346 2006-09-26 23:21 shale-spring-1.0.3.jar
-rw-r--r--  1 gsl users  13320 2006-09-26 23:21 shale-tiles-1.0.3.jar
-rw-r--r--  1 gsl users 232536 2006-09-26 23:21 spring-beans-1.2.8.jar
-rw-r--r--  1 gsl users 109661 2006-09-26 23:21 spring-context-1.2.8.jar
-rw-r--r--  1 gsl users 121686 2006-09-26 23:21 spring-core-1.2.8.jar
-rw-r--r--  1 gsl users 143473 2006-09-26 23:21 spring-web-1.2.8.jar
-rw-r--r--  1 gsl users 393259 2006-09-26 23:21 standard-1.1.2.jar
-rw-r--r--  1 gsl users 125663 2006-09-26 23:21
tiles-core-2.0-SNAPSHOT-20060922.jar

I am using MyFaces 1.1.4 at this point which, based on my understanding, is
JSF 1.1 compatible, not JSF 1.2. I found that it _was_ necessary to use the
verbatim tag around the html title tags in order to force the outputText tag
output to lie within the html title tags even after upgrading to MyFaces
1.1.4 from 1.1.1. I also was able to use the tiles:insert tag, something
that I was unable to do previously after carefully studying:

 
http://www.nabble.com/Shale-1.0.3-and-Tiles-Question---Tag-Question-t2204571.html#a6288731

and adapting it to my needs.

My previous inability to use tiles:insert caused me to move to tiles:get. At
this point, I believe that my inability to use tiles:insert was a
misunderstanding on my part and was not related to moving to MyFaces 1.1.4
and I am now able to use it as evidenced by the files included in the
uploaded archive.

Thank you all very much for your help.

                           -=> Gregg Leichtman <=-
-- 
View this message in context: http://www.nabble.com/Shale-related-Tiles-2-issue-tf2328985.html#a6520440
Sent from the Shale - Dev mailing list archive at Nabble.com.