Med vennlig hilsen
Hermod Opstvedt
Webmaster
Seiling.org/Norlys.org
Hi
When you use the Tld2ClayCfg tool to generate the config file, you need to
add a search criteria to the mbFilter block for stuff ending in Method. That
way it will set it to MB instead of VB:
<tld implementation="org.apache.shale.Tld">
<name>META-INF/myfaces_sandbox.tld</name>
<version>1.1.6-SNAPSHOT</version>
<mbFilter>(?i).*Listener.*,(?i).*Validate.*,(?i).*Convert.*,(?i).*Method.*</
mbFilter>
<acFilter>(?i).*Listener.*,(?i).*Validate.*,(?i).*Convert.*</acFilter>
</tld>
Med vennlig hilsen
Hermod Opstvedt
Webmaster
Seiling.org/Norlys.org
-----Opprinnelig melding-----
Fra: Gary VanMatre [mailto:[EMAIL PROTECTED]
Sendt: 3. mai 2007 23:20
Til: [email protected]
Emne: Re: s:inputSuggestAjax an Shale/Clay - ValidatorInputRenderer Type
problem, the defaultRenderer wrapped is of the needed type - how to expose?
>Hm - its a method binding expression - not a value binding one, so it
>should be MB, shouldn't it?
>
The binding type should be MB but there is more to it. The method binding
requires defining the formal parameter list. The custom bindings are
configured by attribute name.
You will need to register your own command to create the custom binding.
This requires adding a chain to the "clayCustomization" catalog. The name
of the chain should correspond to the attribute name.
WEB-INF/chain-config.xml
<catalog name="clayCustomization">
<chain name="suggestedItemsMethod">
<command className="acme.PropertyListenerCommand" />
</chain>
</catalog>
The shale-clay-trinidad project in the sandbox has an example[1][2].
[1]
http://svn.apache.org/viewvc/shale/sandbox/shale-clay-trinidad/src/main/weba
pp/WEB-INF/chain-config.xml?view=markup
[2]
http://svn.apache.org/viewvc/shale/sandbox/shale-clay-trinidad/src/main/java
/org/apache/shale/clay/component/chain/trinidad/PropertyListenerCommand.java
?view=markup
>Torsten
>
Gary
>Am Donnerstag, den 03.05.2007, 19:01 +0200 schrieb Torsten Krah:
>> Did some code do get this wrapped functionality in.
>>
>> Ajay encode call is made now - however, on the InputAjax class - the
>> method binding was not set.
>>
>> What else have i have to do, to get a method binding expression on a
>> attribute working?
>>
>> My clay sandbox xml got:
>>
>> <set name="suggestedItemsMethod" bindingType="VB">
>>
>> Should be enough, shouldn't it?
>>
>> Torsten
>>