File component usage question
<depstein-6g8wRflRTwWrN/MWgto1swC/[email protected]> Fri, 8 Oct 2010 19:32:12 +0400
| Newsgroups | gmane.comp.java.smartfrog.user |
|---|---|
| Message-ID | <29F36C7C98AB09499B1A209D48EAA615B4ED6CF4CD@mail2a.alliedtesting.com> |
--===============6307950168631966242==
Content-Language: en-US
Content-Type: multipart/alternative;
boundary="_000_29F36C7C98AB09499B1A209D48EAA615B4ED6CF4CDmail2aalliedt_"
--_000_29F36C7C98AB09499B1A209D48EAA615B4ED6CF4CDmail2aalliedt_
Content-Type: text/plain; charset="koi8-r"
Content-Transfer-Encoding: quoted-printable
Hi,
I have the following component:
#include "org/smartfrog/services/filesystem/components.sf"
MyComp extends Prim {
sfClass "MyCompImpl"
[sfLocal] myFile extends File {
filename LAZY PARENT:fileName
dir LAZY PARENT:dir
mustBeFile true
mustExist true
testOnStartup true
}
filePath LAZY myFile:absolutePath
}
MyComp:fileName and MyComp:dir are later given as LAZY PROPERTY.
When I try to resolve "filePath" in my component implementation, I get the =
link resolution exception. I can resolve myFile:filename and myFile:dir tho=
ugh.
What am I doing wrong?
Thanks,
Dmitry
--_000_29F36C7C98AB09499B1A209D48EAA615B4ED6CF4CDmail2aalliedt_
Content-Type: text/html; charset="koi8-r"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3DContent-Type content=3D"text/html; charset=3Dkoi8-r">
<meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:8.5in 11.0in;
margin:56.7pt 42.5pt 56.7pt 85.05pt;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3DEN-US link=3Dblue vlink=3Dpurple>
<div class=3DSection1>
<p class=3DMsoNormal>Hi,<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>I have the following component:<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>#include
"org/smartfrog/services/filesystem/components.sf"<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>MyComp extends Prim {<o:p></o:p></p>
<p class=3DMsoNormal>=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A sfClass =
"MyCompImpl"<o:p></o:p></p>
<p class=3DMsoNormal>=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A <o:p></o=
:p></p>
<p class=3DMsoNormal>=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A [sfLocal=
] myFile extends File {<o:p></o:p></p>
<p class=3DMsoNormal>=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=
=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A filename LAZY
PARENT:fileName<o:p></o:p></p>
<p class=3DMsoNormal>=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=
=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A dir LAZY PARENT:dir<o:p></o:p></p>
<p class=3DMsoNormal>=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=
=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A mustBeFile true<o:p></o:p></p>
<p class=3DMsoNormal>=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=
=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A mustExist true<o:p></o:p></p>
<p class=3DMsoNormal>=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=
=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A testOnStartup true<o:p></o:p></p>
<p class=3DMsoNormal>=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A }<o:p></=
o:p></p>
<p class=3DMsoNormal>=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A <o:p></o=
:p></p>
<p class=3DMsoNormal>=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A=9A filePath=
LAZY myFile:absolutePath<o:p></o:p></p>
<p class=3DMsoNormal>}<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>MyComp:fileName and MyComp:dir are later given as LAZY
PROPERTY.<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>When I try to resolve “filePath” in my com=
ponent
implementation, I get the link resolution exception. I can resolve
myFile:filename and myFile:dir though.<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>What am I doing wrong?<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>Thanks,<o:p></o:p></p>
<p class=3DMsoNormal>Dmitry<o:p></o:p></p>
</div>
</body>
</html>
--_000_29F36C7C98AB09499B1A209D48EAA615B4ED6CF4CDmail2aalliedt_--
--===============6307950168631966242==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
--===============6307950168631966242==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Smartfrog-users mailing list
Smartfrog-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/smartfrog-users
--===============6307950168631966242==--