I am trying to set up a page that has comments listed in a big list surrounded 
by ul tags. Under certains conditions, I want to nest more ul tags. Like 
this:<ul>    <li>this is post 1</li>    <li>this is post 2</li>    <ul>        
<li>this is reply to post 2</li>        <li>this is another reply to post 
2</li>        <li>this it yet an additional reply</li>        <ul>            
<li>And this is a reply to the one above</li>        </ul>        <li>The last 
reply to post 2</li>    </ul>    <li>this is post 3</li></ul>However, I run 
into problem in Tapestry when I try to do something like this:<span 
jwcid="ifSomething">    </ul></span>Tapestry complains that I am improperly 
nesting a </ul> tag inside a span. One way I thought of getting arround this 
was to use an Insert so that the html would be:<span jwcid="ifSomething">    
<span jwcid="insertUlTag"/></span>Which sort of worked until I go to the page 
descriptor and I couldn't figure out how to put "<ul>" in the 
binding:<component id="insertUlTag" type="Insert">        <binding name="value" 
value="<ul>"/>           </component>The parser complained and using CDATA 
didn't help. So I ended up making a getUlOpenTag method on the java file for 
the page which return "<ul>" so then I had this:<component id="insertUlOpenTag" 
type="Insert">        <binding name="value" value="ulOpenTag"/>              
<binding name="raw" value="true"/>     </component>and that worked.But is there 
not an easier way? I actually ended up creating a new library that just had 
open and close HTML tags just for instances like this.Thanks
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

Reply via email to