1

I want to access back-end bean's method without using any menu or link. For example, if I type http://localhost:8080/myproject/userObj/userNew, userNew method will be called. If I type http://localhost:8080/myproject/userObj/userList, userList method will be called. Are there any ways to setup like above?

At my current project, I use PrimeFaces Menubar. Attribute action is used to point to the bean's method. What I want is some mapping feature that will access bean's method based on the URL. Thanks!

Jasper de Vries
  • 19,370
  • 6
  • 64
  • 102
Thiha Maung
  • 171
  • 2
  • 9
  • Did you try http://www.ocpsoft.org/prettyfaces/ ? – Jasper de Vries Mar 20 '17 at 10:14
  • Possible duplicate of [How to reproduce specific Friendly URL?](http://stackoverflow.com/questions/5174487/how-to-reproduce-specific-friendly-url) – Jasper de Vries Mar 20 '17 at 10:23
  • Maybe some jsf annotation above the method will map with the specific URL? Actually I don't need the pretty URL. When there's no other solution, I'm gonna try prettyfaces. Thanks! :-) – Thiha Maung Mar 20 '17 at 10:27

0 Answers0