Hiya,
here is my problem:

I have added a new parameter for the CoreChooseDate component. I can 
easily access this new parameter (concerning weekendSelectable) while 
developping using JDev. I set this parameter value at "false" since its a 
boolean value of either true or false (code example:)

  <f:view>
    <af:document title="All purposes tests">
      <af:form>
        <af:chooseDate weekendSelectable="false" id="testDateSelector" 
minValue="1983-05-24" maxValue="1986-05-24" rendered="true"/>
        <af:selectInputDate chooseId="testDateSelector" />

Now, I've also added into the renderer (ChooseDateRenderer) a new method 
doing :
  private String _getWeekendSelectable(FacesBean bean)
  {
    return toString(bean.getProperty(_weekendSelectableKey));
  }

Of course, _weekendSelectableKey is a private propertyKey and is fetched 
in the findTypeConstants method with :
    _weekendSelectableKey = type.findKey("weekendSelectable");

Now in the EncodeAll method (the method using for rendering) I'm calling 
this method to _getWeekendSelectable(bean) and I'm correctly returned the 
value (which I set at false).
My problem is when I'm testing the page and when I change the month in the 
chooseDate calendar, somehow the property is lost. I've added a println in 
the code, and what gets returned from _getWeekendSelectable(bean) is 
"null".
I have no clue at what happens for why this propertyKey get lost when I 
try to navigate in the chooseDate calendar. (by get lost I mean that the 
bean passed to EncodeAll doesn't contain a reference on the 
_weekendSelectable key I can retrieve the first time the page is rendered)

Anybody got a small idea why this happen and/or where should I look to 
understand/correct this behavior?

Reply via email to