I'm using radio buttons to select between two criterias. If I click on one of them, there'S a partial refresh to a panel containing a date field with a date picker. If I switch between the two radio button criterias, the date picker icon disappears and there's only a simple edit box left.
Here's the code of the radio buttons:
<xp:radioGroup layout="lineDirection" value="#{docApplication.Productivity}" id="rbgProductivity">
<xp:selectItem itemLabel="direkt" itemValue="1"></xp:selectItem>
<xp:selectItem itemLabel="indirekt" itemValue="2"></xp:selectItem>
<xp:eventHandler event="onclick" submit="true" refreshMode="partial" refreshId="panelGeneral"></xp:eventHandler>
</xp:radioGroup>
That's the code of my date picker edit box:
<xp:inputText value="#{docApplication.RequestDate}" id="RequestDate">
<xp:dateTimeHelper id="dateTimeHelper1"></xp:dateTimeHelper>
<xp:this.converter>
<xp:convertDateTime type="date" dateStyle="short"></xp:convertDateTime>
</xp:this.converter>
</xp:inputText>
Before doing the partial refresh (it have to be more than one):
After doing the partial refreshs:
Can anybody help me with this? What do I have to do, to keep the date picker?