Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature proposal: A stand-alone controller #45

Open
daniel-ac-martin opened this issue May 20, 2016 · 5 comments
Open

Feature proposal: A stand-alone controller #45

daniel-ac-martin opened this issue May 20, 2016 · 5 comments

Comments

@daniel-ac-martin
Copy link
Contributor

We tend to think about HOF and the HMPO form stack as being all about multi-page forms, but actually HOF provides a lot besides that, including:

  • a good pattern for form validation
  • good UX in general
  • a leg up on accessibility

For that reason, it would be nice to leverage HOF even on very small, single page forms. Also, it would be nice to do so:

  • without providing a steps definition - which would be silly!
  • without requiring a session - as information does not necessarily need to persist across requests
  • with support for method="GET"

I have been writing a controller to provide this functionality. Initially I intend to wrap the whole of HOF but in the long run it would be nice to make this controller available publicly. To my mind, the best place for this controller to live would be hof-controllers but it could otherwise be provided as a separate module wrapping all of HOF.

What do people think?

@JoeChapman
Copy link
Contributor

Is there currently a use-case for this?

@daniel-ac-martin
Copy link
Contributor Author

daniel-ac-martin commented Jun 3, 2016

Yes, LEV.

@JoeChapman
Copy link
Contributor

@daniel-ac-martin what would the controller look like, would it form the basis for the hof-controllers or be entirely separate?

@daniel-ac-martin
Copy link
Contributor Author

daniel-ac-martin commented Jun 3, 2016

No it needs to wrap around HOF's base-controller. (Well it could just about get by without it but it does need to wrap the wizard's controller.)

It could either be a special controller in hof-controllers or it could wrap the whole of HOF. - Which might be cleaner as it's quite a specific use case. - Search forms. I'd image one would either want a multi-step form OR they would want a search form. But I haven't given it too much thought.

Would be interested to know what people think about this.

@daniel-ac-martin
Copy link
Contributor Author

The annoying thing is that it is very hard to avoid pulling down the wizard. (The standalone controller doesn't need it.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants