<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Child Pages/Sort Pages tags"]]></title>
		<link>http://www.infoglue.org/forum/posts/list/3.page</link>
		<description><![CDATA[Latest messages posted in the topic "Child Pages/Sort Pages tags"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Child Pages/Sort Pages tags</title>
				<description><![CDATA[ I have been happily using the ChildPages tag and the JSTL c:forEach tag, now that I've tried to integrate the SortPages tag things are falling apart.<br /> <br /> My code is as follows:<br /> <br /> [code]<br /> &lt;structure:childPages id="childPages" propertyName="pagesFolder"/&gt;<br /> &lt;structure:sortPages id="childPages" input="${childPages}"/&gt;<br /> &lt;c:forEach var="childPage" items="${childPages}" varStatus="count"&gt;<br /> 	&lt;!-- do stuff --&gt;<br /> &lt;/c:forEach&gt;<br /> [/code]<br /> <br /> If I remove the sortPages tag this code works perfectly, I've also changed the id for the sortPages to sortedChildPages and it still doesn't work.  The issue appears to be with the output of the childPages tag.  I'm getting the following stacktrace:<br /> <br /> [code]<br /> An error occurred while evaluating custom action attribute "input" with value "[org.infoglue.deliver.applications.databeans.WebPage@1420a24, org.infoglue.deliver.applications.databeans.WebPage@a7f986, org.infoglue.deliver.applications.databeans.WebPage@1eed1e1, org.infoglue.deliver.applications.databeans.WebPage@151814, org.infoglue.deliver.applications.databeans.WebPage@dfd045]": Attempt to convert String "[org.infoglue.deliver.applications.databeans.WebPage@1420a24, org.infoglue.deliver.applications.databeans.WebPage@a7f986, org.infoglue.deliver.applications.databeans.WebPage@1eed1e1, org.infoglue.deliver.applications.databeans.WebPage@151814, org.infoglue.deliver.applications.databeans.WebPage@dfd045]" to type "java.util.List", but there is no PropertyEditor for that type (null)<br /> [/code]<br /> <br /> I've tried stepping through the sortPages tag in debug and this is happening on the setInput method.<br /> <br /> Any thoughts?<br /> <br /> Thanks,<br /> <br /> Mark.]]></description>
				<guid isPermaLink="true">http://www.infoglue.org/forum/posts/preList/94/311.page</guid>
				<link>http://www.infoglue.org/forum/posts/preList/94/311.page</link>
				<pubDate><![CDATA[Thu, 2 Sep 2010 14:37:35]]> GMT</pubDate>
				<author><![CDATA[ arcotc]]></author>
			</item>
			<item>
				<title>Re:Child Pages/Sort Pages tags</title>
				<description><![CDATA[ My immediate thought is that the input parameter isn't supposed to get a List. Maybe it should get the id of a list? That is, removed the ${}. Just a guess.]]></description>
				<guid isPermaLink="true">http://www.infoglue.org/forum/posts/preList/94/313.page</guid>
				<link>http://www.infoglue.org/forum/posts/preList/94/313.page</link>
				<pubDate><![CDATA[Fri, 3 Sep 2010 10:07:48]]> GMT</pubDate>
				<author><![CDATA[ jaric]]></author>
			</item>
			<item>
				<title>Re:Child Pages/Sort Pages tags</title>
				<description><![CDATA[ After checking the manual, I must admit I don't think my guess is correct... I see that you've basically followed their example exactly, and yet it fails? Strange.<br /> <br /> ]]></description>
				<guid isPermaLink="true">http://www.infoglue.org/forum/posts/preList/94/314.page</guid>
				<link>http://www.infoglue.org/forum/posts/preList/94/314.page</link>
				<pubDate><![CDATA[Fri, 3 Sep 2010 10:10:22]]> GMT</pubDate>
				<author><![CDATA[ jaric]]></author>
			</item>
			<item>
				<title>Re:Child Pages/Sort Pages tags</title>
				<description><![CDATA[ What happens if you, instead of using a property as root for the child pages, instead use a site node? As in the example:<br /> [code]&lt;structure:childPages id="childPages" siteNodeId="${menuBasePageSiteNodeId}"/&gt;<br /> &lt;structure:sortPages id="childPages" input="${childPages}"/&gt;<br /> [/code]]]></description>
				<guid isPermaLink="true">http://www.infoglue.org/forum/posts/preList/94/315.page</guid>
				<link>http://www.infoglue.org/forum/posts/preList/94/315.page</link>
				<pubDate><![CDATA[Fri, 3 Sep 2010 10:14:02]]> GMT</pubDate>
				<author><![CDATA[ jaric]]></author>
			</item>
			<item>
				<title>Re:Child Pages/Sort Pages tags</title>
				<description><![CDATA[ There is no difference.  It fails in exactly the same way, when trying to set the 'input' property in SortPagesTag - failing with the conversion to type List!]]></description>
				<guid isPermaLink="true">http://www.infoglue.org/forum/posts/preList/94/319.page</guid>
				<link>http://www.infoglue.org/forum/posts/preList/94/319.page</link>
				<pubDate><![CDATA[Sat, 4 Sep 2010 08:59:53]]> GMT</pubDate>
				<author><![CDATA[ arcotc]]></author>
			</item>
			<item>
				<title>Re:Child Pages/Sort Pages tags</title>
				<description><![CDATA[ In the source (for my version, which I think is 2.9.8.2), the input parameter is handled like this:<br /> [code]	public void setInput(final String input) throws JspException<br /> 	{<br /> 		this.input = evaluateList("contentSort", "input", input);<br /> 	}<br /> [/code]<br /> Which finally boils down to:<br /> [code]	protected Object evaluate(String tagName, String attributeName, String expression, Class expectedType) throws JspException<br /> 	{<br /> 		return ExpressionUtil.evalNotNull(tagName, attributeName, expression, expectedType, this, pageContext);<br /> 	}<br /> [/code]<br /> To me it looks like that the input should be an expression, ${...something...}, (like you have) that should evaluate to a List. And that would mean that childPages is not a List... Which is bizarre, but who knows? If you use the code below (not tested), what does it say?<br /> [code]&lt;%= pageContext.getAttribute("childPages").getClass().getName() %&gt;<br /> [/code]]]></description>
				<guid isPermaLink="true">http://www.infoglue.org/forum/posts/preList/94/321.page</guid>
				<link>http://www.infoglue.org/forum/posts/preList/94/321.page</link>
				<pubDate><![CDATA[Mon, 6 Sep 2010 09:32:26]]> GMT</pubDate>
				<author><![CDATA[ jaric]]></author>
			</item>
			<item>
				<title>Re:Child Pages/Sort Pages tags</title>
				<description><![CDATA[ Jaric,<br /> <br /> I total agreed with your deductions and had come to the same conclusion, and the code in my version 2.9.7.3 is the same.<br /> <br /> When I output the debug message I get:<br /> <br /> [code]java.util.ArrayList[/code]<br /> <br /> As should be expected!<br /> <br /> Mark.]]></description>
				<guid isPermaLink="true">http://www.infoglue.org/forum/posts/preList/94/322.page</guid>
				<link>http://www.infoglue.org/forum/posts/preList/94/322.page</link>
				<pubDate><![CDATA[Mon, 6 Sep 2010 09:47:47]]> GMT</pubDate>
				<author><![CDATA[ arcotc]]></author>
			</item>
			<item>
				<title>Re:Child Pages/Sort Pages tags</title>
				<description><![CDATA[ The stock IG Sitemap component at <a class="snap_shots" href="http://www.infoglue.org/Developers/Components/Component_detail_page/?contentId=539" target="_blank" rel="nofollow">http://www.infoglue.org/Developers/Components/Component_detail_page/?contentId=539</a> uses sortPages. Does that one work for you (i.e. do you still have it in your repositories somewhere)? If it does, then you can try to find the difference between your component and that one, otherwise it looks like something broke at some point, I guess.]]></description>
				<guid isPermaLink="true">http://www.infoglue.org/forum/posts/preList/94/323.page</guid>
				<link>http://www.infoglue.org/forum/posts/preList/94/323.page</link>
				<pubDate><![CDATA[Mon, 6 Sep 2010 09:59:15]]> GMT</pubDate>
				<author><![CDATA[ jaric]]></author>
			</item>
			<item>
				<title>Re:Child Pages/Sort Pages tags</title>
				<description><![CDATA[ Jaric,<br /> <br /> This is really strange, the Site Map demo does work, when I trap the setInput method on the SortPagesTag the value being passed in is an expression to be evaluated, i.e. [code]${childPages}[/code]<br /> When I debug my own code the input property is being set with the already evaluated expression, i.e. [code][org.infoglue.deliver.applications.databeans.WebPage@182454, org.infoglue.deliver.applications.databeans.WebPage@f94672, org.infoglue.deliver.applications.databeans.WebPage@17ff11f, org.infoglue.deliver.applications.databeans.WebPage@af688a, org.infoglue.deliver.applications.databeans.WebPage@1f85c2c][/code]<br /> Any thoughts?<br /> <br /> Mark.]]></description>
				<guid isPermaLink="true">http://www.infoglue.org/forum/posts/preList/94/324.page</guid>
				<link>http://www.infoglue.org/forum/posts/preList/94/324.page</link>
				<pubDate><![CDATA[Mon, 6 Sep 2010 10:26:55]]> GMT</pubDate>
				<author><![CDATA[ arcotc]]></author>
			</item>
			<item>
				<title>Re:Child Pages/Sort Pages tags</title>
				<description><![CDATA[ Do you have anything in the beginning of your page that affects how expressions are treated? Some JSP directive or something?]]></description>
				<guid isPermaLink="true">http://www.infoglue.org/forum/posts/preList/94/325.page</guid>
				<link>http://www.infoglue.org/forum/posts/preList/94/325.page</link>
				<pubDate><![CDATA[Mon, 6 Sep 2010 11:34:04]]> GMT</pubDate>
				<author><![CDATA[ jaric]]></author>
			</item>
			<item>
				<title>Re:Child Pages/Sort Pages tags</title>
				<description><![CDATA[ That sorted it!  I'm not certain what I had before but I overwrote the taglib declarations and everything else at the top of the component and it now works.<br /> <br /> Thanks, I knew it would be something simple, I just didn't know what.<br /> <br /> Mark.]]></description>
				<guid isPermaLink="true">http://www.infoglue.org/forum/posts/preList/94/326.page</guid>
				<link>http://www.infoglue.org/forum/posts/preList/94/326.page</link>
				<pubDate><![CDATA[Mon, 6 Sep 2010 11:58:00]]> GMT</pubDate>
				<author><![CDATA[ arcotc]]></author>
			</item>
			<item>
				<title>Re:Child Pages/Sort Pages tags</title>
				<description><![CDATA[ Great!<br /> ]]></description>
				<guid isPermaLink="true">http://www.infoglue.org/forum/posts/preList/94/327.page</guid>
				<link>http://www.infoglue.org/forum/posts/preList/94/327.page</link>
				<pubDate><![CDATA[Mon, 6 Sep 2010 12:22:17]]> GMT</pubDate>
				<author><![CDATA[ jaric]]></author>
			</item>
	</channel>
</rss>
