h:html instead of f:view and/or f:metadata
- Dominant language
- Java
- Stars
- 127
- Forks
- 59
- Avg merge
- 23h
- Merged PRs (30d)
- 7
Description
As stated many times during the last 10+ years JSF is a framework generating HTML, and
should not be used to generate json/xml reponse....
> JSF is a MVC framework generating HTML, not some kind of a REST web service framework.
> You're essentially abusing JSF
> as a web service. Your concrete problem is simply caused by placing tags and so on > in the view file yourself.
https://stackoverflow.com/questions/10982762/how-to-generate-json-response-from-jsf
Is this still true?
If it's true why not simply create an h:html tag which should be like f:view
and remove the f:metadata tag ?
In this way it would be possible to create a template or a page in a simpler and more linear way, for example:
```
```
```
Hello templating
Hello templating
```
Contributor guide
Research direction
Start by reviewing the linked Stack Overflow discussion and the existing JSF behavior around f:view and f:metadata. The issue proposes a new h:html element and a different metadata structure, but names no source files or tests; done would require an agreed design, implementation scope, and validation criteria.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100