Reply To: What is the correct way to use pattern values?

Splash Forums PrettyFaces Users What is the correct way to use pattern values? Reply To: What is the correct way to use pattern values?

#27201

Peter-TI
Participant

Well I have a JSF application for http handling and a seperated EJB app for Bussiness Logics.
The JSF application is just a templating system to represent the Bussiness Logics in a browser.
Depending on the modules I use in the EJB I want to represent this data with the JSF templating.
I do this with Injection and the abstract facade design pattern.
So without ever having to configure the JSF app I want to represent this EJB data depending on the modules available.

I.E.
Adding shoe store module to EJB (has also the logics for building urls).
So the JSF Bean moduleBean.geturl() Checks for modules and the module returns the url to the jsf app:

domain.com/store/shoes


<pattern value="/#{moduleBean.geturl}" />

So the view ID seperately checks session with another bean. When ok. the JSF app shows shoe store contents.

So basically I wanted to use the pattern value for ¨dynamic¨ urls

Thanks!

  • This reply was modified 6 years, 7 months ago by  Peter-TI.