[
https://issues.apache.org/jira/browse/ISIS-1588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Keir Haywood updated ISIS-1588:
--------------------------------------
Component/s: Isis Viewer Wicket
Fix Version/s: (was: 2.7.0)
> Extend support for dependent choices for dates
> ----------------------------------------------
>
> Key: ISIS-1588
> URL: https://issues.apache.org/jira/browse/ISIS-1588
> Project: Isis
> Issue Type: Improvement
> Components: Isis Viewer Wicket
> Affects Versions: 1.13.2.1
> Reporter: Daniel Keir Haywood
> Priority: Minor
>
> eg
> {code}
> public Occupancy newOccupancy(
> final @Parameter(optionality = Optionality.OPTIONAL) LocalDate
> startDate,
> final Unit unit) {
> Occupancy occupancy = occupancyRepository.newOccupancy(this, unit,
> startDate);
> occupancies.add(occupancy);
> return occupancy;
> }
> public List<Unit> choices1NewOccupancy(final LocalDate startDate) {
> Property property = getProperty();
> if (property != null) {
> return unitRepository.findByPropertyAndActiveOnDate(property,
> startDate);
> } else {
> return unitRepository.findByActiveOnDate(startDate);
> }
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)