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

Faces method to get the short viewId of view #205

Closed
julianomqs opened this Issue Feb 1, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@julianomqs

Hello,

I checked Faces class docs about methods to get the current view id of view root.

If I'm not wrong, Faces class only have the method getViewId(), which gets the full path of viewId, like this:

/pages/product/product-add.xhtml

I think it will be nice to have a method to get only the "real name" of the view (in other words, the file name), like this:

product-add

Then I will can use it in the view with o:importFunctions for showing a button only in a certain page.

What you think?

@BalusC

This comment has been minimized.

Show comment
Hide comment
@BalusC

BalusC Feb 6, 2016

Member

Makes sense.

Member

BalusC commented Feb 6, 2016

Makes sense.

@BalusC BalusC closed this in 62b0be8 Feb 6, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment