Hi all,
I want to implement some inputs for a person. I have therefore a detail jsp
which gets the selected person from the main jsp or create a new person.
I want to set some validFrom validTo Dates. I want to avoid that validFrom will
be bigger than validTo Date. So I thought
I set the minValue in the validTo from the binding in the validFrom date with
help of partial triggers.
If I create some new person the implementation below works fine. After
selecting the validFrom, the minValue in validTo works.
But if I want to change the date in a existing person, I have to change the
value in validFrom twice (and the second must differ from the first was set)
until the date PPR works and the
minValue is set. I do not get any errors.
<tr:inputDate value="#{person.validFrom}"
label="#{text['personManagement.validFrom']}"
autoSubmit="true" id="validFrom"/>
<tr:inputDate chooseId="cd1" value="#{person.validTo}"/>
<tr:chooseDate id="cd1" partialTriggers="validFrom"
minValue="#{person.validFrom}"/>
<!-Just for output-- >
<tr:inputText id="TestDate" label="test" partialTriggers="validFrom"
value="#{person.validFrom}"/>
</tr:inputText>
What could be the problem?
Thank you a lot of.
Kind regards
Martin