Questions tagged [jsf]
23 questions
11
votes
3 answers
Should a complex EL expression be replaced by a single javabean getter?
In JSF if I have a component that conditionally renders based on a number of variables what is the optimal way to handle the render statement... should the logic live in the component declaration or in some form of helper class?
The text woof is…

TEL
- 143
- 1
- 1
- 7
5
votes
3 answers
Mobile Web App - combines with exist web app or separate them
The company I work for already has a fully functional web app that is written in java using JSF framework. I'm now in the process of creating a mobile version of this web app and having some general questions on where to put this mobile web…

HockChai Lim
- 159
- 1
3
votes
2 answers
Configuring a microservice landscape, should the view be monolithic or be attached to core services?
I'm migrating my monolithic web application to a microservice based one. I'm going to use Spring cloud and I've got a discovery service where all the rest of the services are registered. A simplified schema of the architecture is drawn here:
Both…

Aritz
- 353
- 4
- 16
3
votes
1 answer
JSF best practice for binding UI components to backing bean?
In JSF is it ok to bind UI components to backing bean just to render messages or we should only bind when we need to do lot more than just rendering messages?

user71561
- 31
- 2
2
votes
1 answer
Pass Objects or values as parameters to functions
I'm working with JEE standard. I have the following layers: JPA (Eclipse Link), Data Access, Business Logic, and JSF (Primefaces). Primefaces uses MVC design pattern, so the the presentation layer contains the ManagedBeans (controllers).
When I…

AFP_555
- 349
- 1
- 2
- 9
2
votes
1 answer
Internationalization on a service layer of an application
My specific problem is how to handle internationalization of specific messages from an architecture layer that is not the view layer(e.g service layer).
I've created an architecture based on technology to be used (e.g. jsf, primefaces, spring,…

Jorge Campos
- 278
- 3
- 11
2
votes
2 answers
Web application (Spring, JSF) forks, how to reuse existing code for subprojects?
my question is going to be somewhat philosophical and "architectural oriented" so bear with me.
Right now we have existing Java web application built on top of Spring and JSF(facelets) with maven. These are basically our tools that limit our scope…

Jan Mathauser
- 129
- 1
2
votes
1 answer
In JSF where do objects like PhaseListeners fit in the MVC pattern?
When it comes to JSF, I've had trouble distinguishing where certain objects I create fit into the overall MVC pattern. The View is simple enough since that's handled by the .xhtml template but when it comes to objects like:
Action/Change…

TEL
- 143
- 1
- 1
- 7
1
vote
1 answer
concept for de- and encrypting personal data in web portal
Issue: I provide a small web portal for customers with partial personal data like name, address etc. which is stored in the database in plain text. Now I need a safe concept to encrypt the personal data in the database. The encryption is no…

Daywalker123
- 11
- 1
1
vote
0 answers
Java dashboard for machine data
I am currently working on a project for a production facility. The machines in the production are saving so called 'Telemetry Data', measurements like water pressure, plastic volume or temperature into a database. In this case we are using a…

Curunir
- 119
- 3
1
vote
1 answer
Should I separate the REST sessions from the sessions in the rest of the application?
Assuming I have resources I restrict access to with a username + password login in my web application and in my REST API. Should I keep different sessions for both meaning that a login via the web UI doesn't grant access to resources accessible via…

Kalle Richter
- 222
- 1
- 7
1
vote
1 answer
CMT transactions on EJB versus @Transactional on CDI beans
Suppose you are designing today a JavaEE JSF web application. You have a choice on the one hand between making the methods of your CDI beans @Transactional, and on the other hand injecting (session stateless, or singleton) EJBs in the CDI beans, and…

John Donn
- 424
- 4
- 12
1
vote
1 answer
JSF problems due to shared server-side state
On it's latest technology radar, the guys at ThoughtWorks recommended avoiding JSF because it's attempt to create statefulness over HTTP ends up "causing a whole host of problems involving shared server-side state".
I've been using JSF 2.x for…

andrepnh
- 121
- 5
1
vote
2 answers
Record management system java web framework
We're currently reconsidering technologies and frameworks to get more agile with "simple" RMS CRUD-based projects. In short, short-living things like this
Right now we have a custom extension on top of SmartGWT but after some time it has proven not…

Kamil Tomšík
- 939
- 5
- 19
1
vote
1 answer
Execute a Managed bean from a JSF view in WEB-INF folder
We are initiating a Spring + Primefaces project and the first problem we have encountered concerns storing the XHTML pages into the WEB-INF folder.
When we use a faces form in a view located inside the WEB-INF folder, then the commandButton does not…

JonathanVila
- 21
- 5