well, it should work - check if tapestry is actually using your border's
class, it might be you have a configuration error somewhere...
This should be quite clear if you examine the exception page tapestry
generates: NoSuchPropertyException - look on which class there is no
such property...
Cheers,
Ron
Thx1011 wrote:
Hi!
Thanks for your help, but I think that this is not quite the problem that I
have...
Let's suppose one component named XPTO, that takes one parameter PARM.
So in my "normal" Home page I use it like this:
<span jwcid="@XPTO" PARM="ognl:xmlAsset'">
This is ok, I think.
Now I move that line to inside the HTML new component named Border.
So my Home page becomes:
<span jwcid="@Border">
And Inside the new Border HTML, I put the same line above:
<span jwcid="@XPTO" PARM="ognl:xmlAsset">
What happens now is that I get an exception saying that can't parse the OGNL
Expression....
I've moved the property accessors to the Border.java, but still it doesn't
work.
The exception is:
# ognl.ObjectPropertyAccessor.getProperty(ObjectPropertyAccessor.java:123)
# ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1616)
# ognl.ASTProperty.getValueBody(ASTProperty.java:96)
# ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)
# ognl.SimpleNode.getValue(SimpleNode.java:210)
# ognl.Ognl.getValue(Ognl.java:333)
# ognl.Ognl.getValue(Ognl.java:310)
So what I'm missing?
I really can't figure it out...
Ron Piterman-2 wrote:
you put it in the template of the component, and thats it.
if you want it to be configured from the page/container you use
parameter chain.
for example:
your border might contain (and probably will):
<html jwcid="@Shell" title="ognl:title">...
since the title is different in every page you add
a title parameter to your border:
@Parameter(required=true) public abstract String getTitle();
and when using the border:
<html jwcid="@Border" title="...">
the title will be "passed through" to the shell.
Quite easy :)
Cheers,
Ron
This High Xvision wrote:
Hi! (I'm a newbie, so please bear with me...)
I'm trying to build a Border Component.
So far so good, it works as long as I don't embed
another component.
For example if on my Home.Html page I add
<span jwcid="@Border">
<span jwcid="@menu:jsCookMenu ....>
It works.
But I want to move the jscookmenu inside the Border
component, and oh
boy, I am beginning to give up and go to JSF... :-)
So my question is very simple:
How to instantiate a component inside of a component?
I've tried everything that I remember of and read the
forums, but no
solution...
Inside the .JWC file on the <Component-specification>,
I've put the
jscookmenu asset, but I need to instanciate the
jscookmenu, right?
How?
Thanks!
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]