Hi,
This is really a hivemind question, but it's my tapestry usage that
probably is wrong :)
My service looks like this:
<service-point id="FormProcessingFilter" interface="javax.servlet.Filter">
<invoke-factory>
<construct
class="nu.localhost.bwatch.filters.FormProcessingFilter"
initialize-method="afterPropertiesSet">
<set property="authenticationFailureUrl"
value="/LoginFailed.html" />
<set property="defaultTargetUrl" value="/app" />
<set property="filterProcessesUrl"
value="/j_acegi_security_check" />
</construct>
</invoke-factory>
</service-point>
I inject it in tapestry like this:
@InjectObject("service:bwatch.FormProcessingFilter")
public abstract Filter getProcessingFilter();
But when I cast it to my class which I know it is, I get a ClassCastException.
FormProcessingFilter filter = (FormProcessingFilter) getProcessingFilter();
What am I doing wrong and how should I solve it? :)
--
regards,
Robin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]