Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.7
-
None
-
Tapestry 4.1.2-SNAPSHOT, Tacos 4.1.0-SNAPSHOT
dependencies: http://flickr.com/photo_zoom.gne?id=426708374&size=o
Description
Exception page:
Unable to parse OGNL expression 'offsetAttribute + ': ' +
(((contentProvider.hasChildren(value) ? 0 : 1) + treeIterator.depth) *
offset) + 'px;'': Error compiling expression on object
$Tree_8@6ce7781[SimpleTree/tree] with expression node offsetAttribute +
": " + (((contentProvider.hasChildren(value) ? 0 : 1) +
treeIterator.depth) * offset) + "px;" getter body:
{ return ($w) ((($Tree_8)$2).getOffsetAttribute() + ": " + ognl.OgnlOps.booleanValue(((net.sf.tacos.model.ITreeContentProvider)(($Tree_8)$2).getContentProvider()).hasChildren((($Tree_8)$2).getValue())) ? 0 : 1 + .getTreeIterator().getDepth() * (($Tree_8)$2).getOffset() + "px;");}setter body: null
syntax error near "0 : 1 + .getTreeIter"
-
-
- SimpleTree.html ###
-
<html>
<body>
<h1>Simple Tree</h1>
<div jwcid="tree" id="tree" style="overflow: auto; width: auto; height: auto;">
<span jwcid="@Insert" value="ognl:item.name"/>
</div>
</body>
</html>
-
-
- SimpleTree.page ###
-
<page-specification class="org.apache.tapestry.html.BasePage">
<property name="item" />
<component id="tree" type="tacos:Tree">
<binding name="contentProvider" value="new com.acme.simpletree.SimpleTreeContentProvider()"/>
<binding name="value" value="item"/>
<binding name="nodeLinkAjax" value="ognl:false" />
</component>
</page-specification>
-
-
- SimpleTreeContentProvider.java ###
-
-
-
- Folder.java ###
-
-
-
- Item.java ###
-
All three copied from Tacos-demo 4.0.1 sources.