Page 1 of 1

Using Barcelona theme without material inputs functionality

Posted: 05 Dec 2018, 16:45
by hasantolak
Hi
I would like to know about the PrimeFaces Barcelona theme, is that possible to use normal input without material inputs functionality? Before the licensing, I need to know this information. Thanks in advance.

Re: Using Barcelona theme without material inputs functionality

Posted: 06 Dec 2018, 09:03
by aragorn
Hi,

You can easily override it using SASS files.

Best Regards,

Re: Using Barcelona theme without material inputs functionality

Posted: 06 Dec 2018, 13:46
by hasantolak
Thanks for the answer.

I understan, we need to modify SASS file to do this.

The main question, is that possible to extend PrimeFaces name space directly to use

<p:inputText, <p:selectOneMenu etc. by using PrimeFaces name space

xmlns:p=http://primefaces.org/ui without involving Barcelona name space

xmlns:pa=http://primefaces.org/barcelona?
Because, most of to time I need to use normal input boxes such as <p:inputText.

I understand that, there is no restriction to use Barcoleno name space or PrimeFaces name space to use at the same time in the same pages.

Re: Using Barcelona theme without material inputs functionality

Posted: 07 Dec 2018, 09:01
by aragorn
I understan, we need to modify SASS file to do this.
- Yes. It is very easy to do.
...
xmlns:p=http://primefaces.org/ui without involving Barcelona name space

xmlns:pa=http://primefaces.org/barcelona?
...
- Barcelona Layout have a custom menu component to use sidebar. If you want to use it, please add xmlns:pa=http://primefaces.org/barcelona namespace. Note: You can use it in the only menu.xhtml under WEB-INF.
For all PrimeFaces components, please use xmlns:p=http://primefaces.org/ui.

Re: Using Barcelona theme without material inputs functionality

Posted: 10 Dec 2018, 13:54
by hasantolak
Hi aragon ,
Thanks for your helpful answer to my questions.

Re: Using Barcelona theme without material inputs functionality

Posted: 10 Dec 2018, 14:24
by aragorn
Hi,

You're welcome!