This content has been marked as final.
Show 2 replies
-
1. Re: rich:calendar dataModel in seam
pedalshoe Apr 15, 2009 8:54 PM (in response to pedalshoe)in order to resolve the issue I moved common-beanutils.jar and richfaces-api.jar to the lib directory of the ear file.
I'm now able to see the calendarDataModel working initially and all the day items get loaded correctly.
Now, I tried to update a day item, I get the following error after I click on "Store" on the "Edit day:" popup:
Caused by javax.el.PropertyNotFoundException with message: "/acct/calendar/calendarIndex.xhtml @69,84 value="#{calendarDataModel.currentShortDescription}": Target Unreachable, identifier 'calendarDataModel' resolved to null"
It seems like the calendarDataModel went out of scope and seam can't find it. -
2. Re: rich:calendar dataModel in seam
pedalshoe Apr 16, 2009 12:06 AM (in response to pedalshoe)I answered my own post.
Like I said it seems like the calendarDataModel went out of scope and it did.
Just set the scope type when outjecting the data model:
@Out(scope=ScopeType.SESSION)
private CalendarDataModel calendarDataModel = CalendarDataModelImpl.getInstance();
-Christopher