You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Mark Hunter <mh...@bigpond.net.au> on 2003/09/24 02:54:21 UTC
Tacos-Tree & Wierd Page-Render Problem
I am having some interesting things occur when i am rendering some
information based on a selected node of the tree.
i do not believe it is a problem with the tree - rather something
associated with the "@Insert" commands being called.
1st some background
--- Background ---
I have a page which, amongst other things, contains a (Tacos)tree and
other components which contain values derived from the currently
selected node.
The .page and .html stuff is shown below.
--- NetworkTree.page ---
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE page-specification PUBLIC
"-//Apache Software Foundation//Tapestry Specification 3.0//EN"
"http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd">
<page-specification
class="au.com.alcatel.ONMS.UserInterface.NIMgr.ContainmentNavigator.NetworkTree">
<component id="body" type="Body"/>
<private-asset name="stylesheet" resource-path="/pages/css/onmsUI.css"/>
<component id="shell" type="Shell">
<binding name="stylesheet" expression='assets.stylesheet'/>
<static-binding name="title">Home</static-binding>
</component>
<component id="treeData" type="tacos:TreeDataView">
<binding name="treeView" expression='components.treeView'/>
<binding name="value" expression='value'/>
</component>
<component id="treeNodeValue" type="tacos:TreeNodeView">
<binding name="makeNodeDirect" expression="true"/>
<binding name="nodeRenderFactory" expression='renderFactory'/>
<binding name="showNodeImages" expression="false"/>
<binding name="treeDataView" expression='components.treeData'/>
</component>
<component id="treeView" type="tacos:TreeView">
<binding name="sessionStateManager"
expression='sessionStateManager'/>
<binding name="treeModel" expression='treeModel'/>
</component>
<component id="viewentity" type="ViewEntity">
<binding name="entityName"
expression='components.treeView.treeModel.treeStateModel.selectedNode'/>
</component>
<component id="subnetworklist" type="SubNetworkListView">
<binding name="entityName"
expression='components.treeView.treeModel.treeStateModel.selectedNode'/>
</component>
<component id="terminationlist" type="TerminationListView">
<binding name="entityName"
expression='components.treeView.treeModel.treeStateModel.selectedNode'/>
</component>
<component id="physicallinklist" type="PhysicalLinkListView">
<binding name="entityName"
expression='components.treeView.treeModel.treeStateModel.selectedNode'/>
</component>
</page-specification>
--- End NetworkTree.page ---
--- NetworkTree.html ---
<html>
<span jwcid="@TopBorder">
<div class="nav">
<span class="tree" jwcid="treeView">
<span jwcid="treeData">
<span jwcid="treeNodeValue"/>
</span>
</span>
</div>
<div class="topbit">
<span jwcid="viewentity" >
</span>
</div>
<div class="midleft">
<span jwcid="subnetworklist" >
</span>
</div>
<div class="midmiddle">
<span jwcid="terminationlist" >
</span>
</div>
<div class="midright">
<span jwcid="physicallinklist" >
</span>
</div>
</span>
</html>
--- End NetworkTree.html ---
The component that is not rendering problem is the ViewEntity one, which
is defined as:
--- ViewEntity.jwc ---
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE component-specification PUBLIC
"-//Apache Software Foundation//Tapestry Specification 3.0//EN"
"http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd">
<component-specification
class="au.com.alcatel.ONMS.UserInterface.NIMgr.Components.ViewEntity"
allow-informal-parameters="yes">
<parameter
name="entityName"
type="java.lang.String"
direction="in"
property-name="entityFDN"
required="no"/>
</component-specification>
--- End ViewEntity.jwc ---
--- ViewEntity.html ---
<html>
<table class="topbit" cols="4">
<tr valign="top" height="20">
<td class="topbit" colspan="4" align="center">
<span jwcid="@Insert" value="ognl:entityTag.fDN">
DummyFDN
</span>
</td>
</tr>
<tr>
<td class="topbit" width="15%"> Creation Date </td>
<td class="topbit" width="35%">
<span jwcid="@Insert" value="ognl:entityTag.creationDate">
10/02/2020
</span>
</td>
<td class="topbit" width="15%"> RDN </td>
<td class="topbit" width="35%">
<span jwcid="@Insert" value="ognl:entityTag.rDN">
DummyRDN
</span>
</td>
</tr>
<tr>
<td class="topbit"> Release </td>
<td class="topbit">
<span jwcid="@Insert" value="ognl:entityTag.release">
1.0
</span>
</td>
<td class="topbit"> Manufacturer </td>
<td class="topbit">
<span jwcid="@Insert" value="ognl:entityTag.manufacturer">
Acme Manufacturing
</span>
</td>
</tr>
</table>
</html>
--- End ViewEntity.html ---
--- End Background ---
Now, the problem is that when you bring up the page, the "release" value
is never updated (but all the others are updated inline with the
selected node on the tree).
If you "refresh" the page, then the "release" value is the only one that
is displayed and all the others are cleared to default values.
Any ideas from anyone?
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org