Spicefactory Forum Index Spicefactory
Forum Archive
 
 SearchSearch    Log inLog in 

What's the correct way to autowire views in a module?

 
Post new topic   Reply to topic    Spicefactory Forum Index -> Spicefactory
View previous topic :: View next topic  
Author Message
devinh



Joined: 25 Jun 2010
Posts: 49

PostPosted: Sat Sep 14, 2013 4:39 pm    Post subject: What's the correct way to autowire views in a module? Reply with quote

In the main application I'm configuring the context like so:

<parsley:ContextBuilder>
<parsley:ViewSettings autowireComponents="true"/>
<parsley:FlexConfig type="{Context}"/>
</parsley:ContextBuilder>

And using the <View> tag in context. That works fine for any view in the main application.

I have a module with it's own context which uses the same configuration above, except that it binds to its own context. However, using the <View> tag inside the module's context doesn't seem to work.

This is the first time I've tried using Parsley with a modular application, so some guidance on the best approach would be appreciated.
Back to top
View user's profile Send private message
devinh



Joined: 25 Jun 2010
Posts: 49

PostPosted: Sun Sep 15, 2013 12:44 am    Post subject: Reply with quote

If I use a <Configure> tag inside the module's view, it works. But I'm trying to get this to work using the <View> tag inside the module's context instead.
Back to top
View user's profile Send private message
devinh



Joined: 25 Jun 2010
Posts: 49

PostPosted: Sun Sep 15, 2013 12:56 am    Post subject: Reply with quote

It looks like I have this working now. I believe the problem was that I had both the main application's context and the module's context named the same: 'Context'. I renamed the module's context and everything started working as expected.
Back to top
View user's profile Send private message
rattkin



Joined: 10 May 2011
Posts: 154
Location: Poznan, PL

PostPosted: Mon Sep 30, 2013 9:19 am    Post subject: Reply with quote

Glad you've solved it.
_________________
Sebastian Zarzycki
Feerie Software
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Spicefactory Forum Index -> Spicefactory All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group