Thanks for reply... i'm not tried with the test poiManager, is it necessary
to write to the test classes..
Sudhakar..
mraible wrote:
>
> Have you tried writing a test for PoiManager to make sure it's wired
> up in Spring correctly?
>
> Matt
>
> On Mon, Dec 1, 2008 at 9:55 PM, sudhakargupta
> <[EMAIL PROTECTED]> wrote:
>>
>> Hi.. Matt
>>
>>
>> in the uploadfile action class i want to upload a excel file to read
>> the
>> contents of the excel, for this i want create a one manager class and
>> pojo
>> class for data.
>>
>> in action class:
>>
>> public void setPoiManager(PoiManager poiManager) {
>> this.poiManager = poiManager;
>> }
>>
>> in applicationContext.xml
>>
>> <bean id="poiManager"
>> class="org.appfuse.service.impl.PoiManagerImpl"></bean>
>>
>> in faces-config.xml
>>
>> <managed-bean>
>> <managed-bean-name>fileUpload</managed-bean-name>
>>
>> <managed-bean-class>org.appfuse.webapp.action.FileUpload</managed-bean-class>
>> <managed-bean-scope>request</managed-bean-scope>
>> <managed-property>
>> <property-name>poiManager</property-name>
>> <value>#{poiManager}</value>
>> </managed-property>
>> </managed-bean>
>>
>>
>> declared like above, but in the action the poiManager object gives the
>> nullpointer exception
>>
>> please suggest me if any declarations are needed.. or give me the
>> solution
>> for this one.
>>
>> Sudhakar..
>> --
>> View this message in context:
>> http://www.nabble.com/manager-initiation-problem-in-appfuse2-jsf-tp20786143s2369p20786143.html
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/manager-initiation-problem-in-appfuse2-jsf-tp20786143s2369p20908572.html
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]