Ticket #237 (closed task: fixed)
Additional items for Routes
| Reported by: | peterfarrell | Owned by: | kurtwiersma |
|---|---|---|---|
| Priority: | critical | Milestone: | Mach-II 1.8.0 alpha |
| Component: | framework - core | Version: | 1.8.0 - Framework |
| Keywords: | UrlRoutesProperty route buildRoute routes URL | Cc: | |
| Blocking: | Blocked By: |
Description (last modified by peterfarrell) (diff)
A few items to be addressed for routes:
- Change requiredArguments parameter name to requiredParameters
- Change optionalArguments parameter name to optionalParameters
- Allow for nested arrays in addition to the current value (for lists) for optionalParameters and requiredParameters
- Allow for EL syntax when defining default values for arguments (i.e. <key name="requiredParameters" value="displayType:${properties.someProp}" />)
- Ensure that all optional arguments have a default value define as this is a requirement.
- Added buildUnescapedCurrentUrl() to match all the other build methods that have an unescaped version of itself
- Add optional third argument in buildRoute() to indicate query string parameters as discussed in the m2sfp
- Ensure that buildRoute() throws an error if a required argument is not passed and it does not have a default value defined in the route configuration.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
