Faces method to get the short viewId of view #205

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

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
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