Ticket #237 (closed task: fixed)

Opened 13 months ago

Last modified 11 months ago

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:

  1. Change requiredArguments parameter name to requiredParameters
  2. Change optionalArguments parameter name to optionalParameters
  3. Allow for nested arrays in addition to the current value (for lists) for optionalParameters and requiredParameters
  4. Allow for EL syntax when defining default values for arguments (i.e. <key name="requiredParameters" value="displayType:${properties.someProp}" />)
  5. Ensure that all optional arguments have a default value define as this is a requirement.
  6. Added buildUnescapedCurrentUrl() to match all the other build methods that have an unescaped version of itself
  7. Add optional third argument in buildRoute() to indicate query string parameters as discussed in the m2sfp
  8. 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

Changed 13 months ago by peterfarrell

  • description modified (diff)

Changed 13 months ago by peterfarrell

  • description modified (diff)

Changed 13 months ago by peterfarrell

  • description modified (diff)

Changed 13 months ago by peterfarrell

  • description modified (diff)

Changed 12 months ago by peterfarrell

FYI, item number 7 is currently breaking the "a" tag in the view tag lib. Please uncomment that "a" test item in the test harness's testViewLib.cfm test page when completing this task.

Changed 11 months ago by kurtwiersma

  • status changed from new to closed
  • resolution set to fixed

- Enhancements for URL Routes closes #237

Changed 11 months ago by kurtwiersma

- More URL Route and redirect tests refs #237

Add/Change #237 (Additional items for Routes)

Author


E-mail address and user name can be saved in the Preferences.


Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.