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 ?
--
Stéphane Decleire
05 56 57 99 20
06 63 78 69 06