You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Frederic Do Couto <fr...@gmail.com> on 2005/01/05 09:42:09 UTC
dynamic path building
Hello,
I want to build dynamicly the path of my css :
<link rel="stylesheet" type="text/css"
href="/styles/<span jwcid='@Insert'
value='ognl:company.name'/>.css"/>
but it doesn't work... Tapestry doesn't interpret the <span
jwcid='@Insert' value='ognl:company.name'/>
Anyone could help me ?
Thank you
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: dynamic path building
Posted by Frederic Do Couto <fr...@gmail.com>.
It works now, mea culpa, the getCompany method was protected ....
thanks a lot.
On Wed, 5 Jan 2005 13:04:49 +0200, Marius Siegas <in...@gmail.com> wrote:
> maybe the getCompany() method isn't public or its return type is void
> or some mistype... it should work
>
> On Wed, 5 Jan 2005 11:55:27 +0100, Frederic Do Couto
> <fr...@gmail.com> wrote:
> > Thank you Marius, but I still have a problem :
> > --------------------
> > org.apache.tapestry.BindingException
> > Unable to resolve expression '"/styles/" + company.name + ".css"' for
> > com.bla.bla.webapp.action.offer.OffersActionPage$Enhance_0@d713fe[offers].
> > binding: ExpressionBinding[offers "/styles/" + company.name + ".css"]
> > location: context:/WEB-INF/pages/offer/offers.page, line 23, column 30
> >
> > ognl.NoSuchPropertyException
> > company
> > ---------------------
> >
> > my .page :
> > <page-specification class="com.bla.bla.webapp.action.offer.OffersActionPage">
> >
> > <bean name="delegate" class="com.bla.bla.webapp.action.Validator"/>
> > ...
> > <component id="linkStyle" type="Any">
> > <static-binding name="element">link</static-binding>
> > <binding name="href">"/styles/" + company.name + ".css"</binding>
> > </component>
> > ...
> > </page-specification>
> >
> > I also have a getCompany() in the OffersActionPage class, so why the
> > property is not found ?
> >
> > thank you
> >
> >
> > On Wed, 5 Jan 2005 11:40:29 +0200, Marius Siegas <in...@gmail.com> wrote:
> > > I think you should use the Any component for this.
> > > .page (or .jwc):
> > > <component id="linkStyle" type="Any">
> > > <static-binding name="element">link</static-binding>
> > > <binding name="href">"/styles/" + company.name + ".css"</binding>
> > > </component>
> > > .html
> > > <link jwcid="linkStyle" rel="stylesheet" type="text/css"/>
> > >
> > > Looks good, works good :) I hate those jwcid="name@Type" in templates!
> > > That is the most annoying thing in Tapestry, drop it :).
> > >
> > > On Wed, 5 Jan 2005 09:42:09 +0100, Frederic Do Couto
> > > <fr...@gmail.com> wrote:
> > > > Hello,
> > > >
> > > > I want to build dynamicly the path of my css :
> > > >
> > > > <link rel="stylesheet" type="text/css"
> > > > href="/styles/<span jwcid='@Insert'
> > > > value='ognl:company.name'/>.css"/>
> > > >
> > > > but it doesn't work... Tapestry doesn't interpret the <span
> > > > jwcid='@Insert' value='ognl:company.name'/>
> > > >
> > > > Anyone could help me ?
> > > >
> > > > Thank you
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> > > >
> > > >
> > >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: dynamic path building
Posted by Marius Siegas <in...@gmail.com>.
maybe the getCompany() method isn't public or its return type is void
or some mistype... it should work
On Wed, 5 Jan 2005 11:55:27 +0100, Frederic Do Couto
<fr...@gmail.com> wrote:
> Thank you Marius, but I still have a problem :
> --------------------
> org.apache.tapestry.BindingException
> Unable to resolve expression '"/styles/" + company.name + ".css"' for
> com.bla.bla.webapp.action.offer.OffersActionPage$Enhance_0@d713fe[offers].
> binding: ExpressionBinding[offers "/styles/" + company.name + ".css"]
> location: context:/WEB-INF/pages/offer/offers.page, line 23, column 30
>
> ognl.NoSuchPropertyException
> company
> ---------------------
>
> my .page :
> <page-specification class="com.bla.bla.webapp.action.offer.OffersActionPage">
>
> <bean name="delegate" class="com.bla.bla.webapp.action.Validator"/>
> ...
> <component id="linkStyle" type="Any">
> <static-binding name="element">link</static-binding>
> <binding name="href">"/styles/" + company.name + ".css"</binding>
> </component>
> ...
> </page-specification>
>
> I also have a getCompany() in the OffersActionPage class, so why the
> property is not found ?
>
> thank you
>
>
> On Wed, 5 Jan 2005 11:40:29 +0200, Marius Siegas <in...@gmail.com> wrote:
> > I think you should use the Any component for this.
> > .page (or .jwc):
> > <component id="linkStyle" type="Any">
> > <static-binding name="element">link</static-binding>
> > <binding name="href">"/styles/" + company.name + ".css"</binding>
> > </component>
> > .html
> > <link jwcid="linkStyle" rel="stylesheet" type="text/css"/>
> >
> > Looks good, works good :) I hate those jwcid="name@Type" in templates!
> > That is the most annoying thing in Tapestry, drop it :).
> >
> > On Wed, 5 Jan 2005 09:42:09 +0100, Frederic Do Couto
> > <fr...@gmail.com> wrote:
> > > Hello,
> > >
> > > I want to build dynamicly the path of my css :
> > >
> > > <link rel="stylesheet" type="text/css"
> > > href="/styles/<span jwcid='@Insert'
> > > value='ognl:company.name'/>.css"/>
> > >
> > > but it doesn't work... Tapestry doesn't interpret the <span
> > > jwcid='@Insert' value='ognl:company.name'/>
> > >
> > > Anyone could help me ?
> > >
> > > Thank you
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> > >
> > >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: dynamic path building
Posted by Frederic Do Couto <fr...@gmail.com>.
Thank you Marius, but I still have a problem :
--------------------
org.apache.tapestry.BindingException
Unable to resolve expression '"/styles/" + company.name + ".css"' for
com.bla.bla.webapp.action.offer.OffersActionPage$Enhance_0@d713fe[offers].
binding: ExpressionBinding[offers "/styles/" + company.name + ".css"]
location: context:/WEB-INF/pages/offer/offers.page, line 23, column 30
ognl.NoSuchPropertyException
company
---------------------
my .page :
<page-specification class="com.bla.bla.webapp.action.offer.OffersActionPage">
<bean name="delegate" class="com.bla.bla.webapp.action.Validator"/>
...
<component id="linkStyle" type="Any">
<static-binding name="element">link</static-binding>
<binding name="href">"/styles/" + company.name + ".css"</binding>
</component>
...
</page-specification>
I also have a getCompany() in the OffersActionPage class, so why the
property is not found ?
thank you
On Wed, 5 Jan 2005 11:40:29 +0200, Marius Siegas <in...@gmail.com> wrote:
> I think you should use the Any component for this.
> .page (or .jwc):
> <component id="linkStyle" type="Any">
> <static-binding name="element">link</static-binding>
> <binding name="href">"/styles/" + company.name + ".css"</binding>
> </component>
> .html
> <link jwcid="linkStyle" rel="stylesheet" type="text/css"/>
>
> Looks good, works good :) I hate those jwcid="name@Type" in templates!
> That is the most annoying thing in Tapestry, drop it :).
>
> On Wed, 5 Jan 2005 09:42:09 +0100, Frederic Do Couto
> <fr...@gmail.com> wrote:
> > Hello,
> >
> > I want to build dynamicly the path of my css :
> >
> > <link rel="stylesheet" type="text/css"
> > href="/styles/<span jwcid='@Insert'
> > value='ognl:company.name'/>.css"/>
> >
> > but it doesn't work... Tapestry doesn't interpret the <span
> > jwcid='@Insert' value='ognl:company.name'/>
> >
> > Anyone could help me ?
> >
> > Thank you
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: dynamic path building
Posted by Marius Siegas <in...@gmail.com>.
I think you should use the Any component for this.
.page (or .jwc):
<component id="linkStyle" type="Any">
<static-binding name="element">link</static-binding>
<binding name="href">"/styles/" + company.name + ".css"</binding>
</component>
.html
<link jwcid="linkStyle" rel="stylesheet" type="text/css"/>
Looks good, works good :) I hate those jwcid="name@Type" in templates!
That is the most annoying thing in Tapestry, drop it :).
On Wed, 5 Jan 2005 09:42:09 +0100, Frederic Do Couto
<fr...@gmail.com> wrote:
> Hello,
>
> I want to build dynamicly the path of my css :
>
> <link rel="stylesheet" type="text/css"
> href="/styles/<span jwcid='@Insert'
> value='ognl:company.name'/>.css"/>
>
> but it doesn't work... Tapestry doesn't interpret the <span
> jwcid='@Insert' value='ognl:company.name'/>
>
> Anyone could help me ?
>
> Thank you
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org