tapestry-user@jakarta.apache.org
[Top] [All Lists]

Re: Is this the right syntax

Subject: Re: Is this the right syntax
From: Robert Zeigler
Date: Wed, 25 May 2005 10:58:31 -0700
Edward Scanzano wrote:
> I tried that and got this exception
> 
>   
> ognl.NoSuchPropertyException 
> com.intaglio.client.api.impl.RepositoryImpl.allFacilities
> 
> name: allFacilities 
> 
> 
> 
> Here is a snipit of the java code.
> 
> 
> public Collection allFacilities() throws
                    ^^^^^^^^^^^^^^^

That's not a java-beans property, so the
repository.allFacilities fails and so does the
repository.getAllFacilities(). It's a method; method
invocations in ognl are just like in java, so, you want:
repository.allFacilities()
Or, change the method signature to getAllFacilities to make the
repository.allFacilities syntax work.

Robert

> IntaglioRepositoryException {
>    facilities.removeAllElements();
>    try {
> 
> ......
> 
> 
> 
> --- "Jean C. Favila" <jfavila@xxxxxxxxxxxxxxx> wrote:
> 
>>The source attribute should be:
>>
>>"ognl:currentRepository.allFacilities"
>>
>>or
>>
>>"ognl:currentRepository.getAllFacilities()"
>>
>>
>>
>>
>>>-----Original Message-----
>>>From: Edward Scanzano [mailto:escanzano@xxxxxxxxx]
>>>Sent: Wednesday, May 25, 2005 12:32 PM
>>>To: tapestry-user
>>>Subject: Is this the right syntax
>>>
>>><span jwcid="@Foreach"
>>>source="ognl:currentRepository.getAllFacilities"
>>>value="ognl:currentFacility"
>>>index="ognl:currentFacilityIndex">
>>>
>>>I have an object called currentRepository that has
>>
>>a
>>
>>>method called getAllFacilities and it returns a
>>>Collection object.
>>>
>>>I have nothing defined in the .page file. Do I
>>
>>need
>>
>>>support for these variables as a
>>>property-specification?
>>>
>>>The error I get
>>>
>>>
>>>ognl.NoSuchPropertyException
>>>
>>
> com.intaglio.client.api.impl.RepositoryImpl.getAllFacilities
> 
>>>
>>>
>>>
>>>
>>>
>>>
> ---------------------------------------------------------------------
> 
>>>To unsubscribe, e-mail:
>>
>>tapestry-user-unsubscribe@xxxxxxxxxxxxxxxxxx
>>
>>>For additional commands, e-mail:
>>
>>tapestry-user-help@xxxxxxxxxxxxxxxxxx
>>
>>
>>
> 
> ---------------------------------------------------------------------
> 
>>To unsubscribe, e-mail:
>>tapestry-user-unsubscribe@xxxxxxxxxxxxxxxxxx
>>For additional commands, e-mail:
>>tapestry-user-help@xxxxxxxxxxxxxxxxxx
>>
>>
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@xxxxxxxxxxxxxxxxxx
> For additional commands, e-mail: tapestry-user-help@xxxxxxxxxxxxxxxxxx


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@xxxxxxxxxxxxxxxxxx
For additional commands, e-mail: tapestry-user-help@xxxxxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>