I’m still trying to figure this input validation stuff out…
I got some of it working, but I have had to add a .page specification which
I’d rather do without.
This is all that's in the page specification:
<page-specification>
<description>Some page</description>
<component id="myField" type="TextField">
<binding name="value" value="myField"/>
<binding name="translator" value="translator:number"/>
</component>
</page-specification>
Is there some way to do this using (only) annotations?
I tried putting this in my java class:
@Component(type="TextField", bindings={"translator=translator:number"})
public abstract int getMyField();
resulting in this:
org.apache.hivemind.ApplicationRuntimeException
Failure enhancing class
com.bmd.bs400tapestryKlient.pages.VedligeholdBunkefilter: (class:
$VedligeholdBunkefilter_22, method: finishLoad signature:
(Lorg/apache/tapestry/IRequestCycle;Lorg/apache/tapestry/engine/IPageLoader;
Lorg/apache/tapestry/spec/IComponentSpecification;)V) Expecting to find
integer on stack
Is there some way to get this working?
Best regards
Claus Nielsen
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.10/120 - Release Date: 05-10-2005
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]