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

Documentation #83

Open
6 of 12 tasks
kevindeyne opened this issue Nov 8, 2021 · 4 comments
Open
6 of 12 tasks

Documentation #83

kevindeyne opened this issue Nov 8, 2021 · 4 comments

Comments

@kevindeyne
Copy link
Member

kevindeyne commented Nov 8, 2021

  • Path variables for controller
  • Request parameters for controller
  • References to ids
  • :{this}
  • Installation (standard spring security, hydra)
  • on enter, on key, change samples
  • Everything should point to render
  • Rules around static resources
  • Hydra tags (TODO)
  • Internal working of fragments
  • Internal working of order of execution
  • Update main website https://www.getmedusa.io/ to match showcase info
@kevindeyne
Copy link
Member Author

@UIEventPage(path ="/test/upper/{up}/normal/{nrml}", file = "pages/integration-tests/path-query-params")
public class PathQueryParamsEventHandler {

    final PeopleService service;

    public PathQueryParamsEventHandler(PeopleService service) {
        this.service = service;
    }

    public PageAttributes setupAttributes(ServerRequest request) {
        System.out.println(request.queryParams());
        System.out.println(service.findById("2").getName());
        return new PageAttributes()
                .with("path-to-upper", request.pathVariable("up"), String::toUpperCase)
                .with("path-as-is", request.pathVariable("nrml"))
                .with("query-as-is", request.queryParam("value").orElse("nothing"))
                .with("query-person", request.queryParam("person").orElse("1"), service::findById);
    }
}

@kevindeyne
Copy link
Member Author

@kevindeyne
Copy link
Member Author

Add docs on $$

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

1 participant