Okay maybe I can frame the question better in Pseudo
Code,
I
have a backing bean that's like this:
public BackingBean(){
super();
setModelView(new Date());
}
public setModelView(Date x){
...Set Calendar Model selected date to show month
based on date parameter and fill in entries
}
public handleAction(){
...Get clicked entry and forward to new
page
}
My page looks like this
<t:selectBox value="otherMonths" />
<t:button action="" />
<s:schedule action=""
value="#{setModel}" (other parameters not important to question)
/>
I
store the model in the session and change it in the backing
bean
When the page first loads and initializes, clicking an entry works fine
(I get the selected entry in my schedules action), but when I change the month
and click on an entry the selected entry is null from the model. I have tracked
what is going on and it seems initializing in the constructor is causing the
undesired results. Does anyone have a good method of doing this or an
example.
From: Ian Johnson
Sent: Friday, June 09, 2006 10:57 AM
To: MyFaces Discussion
Subject: Need some help with the Schedule Component
I was wondering if
anyone could give me some advice on how to use the scheduling component for what
I'm trying to do.
I want to be able to
initialize the component (fill it with entries) but there are some problems
with doing that in the constructor of the backing bean. This is because
when I try to get the selected or submitted entry, because
the model gets reinitialized, I lose the selected
entry.
Does anyone know the
best way to do this?

