Are you using the tapestry-spring jar? I think that works for me, using
this syntax:
<implementation service-id="tapestry.ComponentMessagesSource">
<invoke-factory>
<construct
class="com.mark_arnold.util.web.tapestry.SpringMessageSourceBasedComponentMessagesSource">
<set-object property="messageSource"
value="spring:messageSource"/>
</construct>
</invoke-factory>
</implementation>
Hope this helps you...
MARK
Stephane Decleire wrote:
I've tried to import my Spring bean User in Hivemind using
SpringLookupFactory without success.
Has anybody use this integration ? And could show me a sample of
hivemind configuration ?
Thanks in advance.
Stephane Decleire wrote:
Hi,
I need a User component in a Tapestry form like this :
@Persist("client")
public abstract void setUser(User user);
public abstract User getUser();
But my User component use Spring IoC to get its Address class.
Without a Spring declaration, the Address of my User isn't
instantiated so I get a null Error when I use it in my Form :
<component id="street" type="TextField">
<binding name="value" value="user.address.street"/>
<binding name="displayName" value="message:street-label"/>
<binding name="validators"
value="validators:required,maxLength=100"/>
</component>
So i should also have declaration in my page so that Spring could
inject the Address in my User object like :
@InjectSpring("user")
public abstract User getUser();
public abstract void setUser(User user);
How can i mix the Tapestry and Spring declarations in my page ?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]