-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make <div> a first-class citizen of JSF #47
Comments
Did you try to use a |
A |
Why do you think, that should work? As far as I understand, <b:inputText> spans the whole container. A component to 'group' other components such as |
Thanks for your upvote! I'll raise the priority of this ticket. |
if you want the |
That didn't work when I tried (see http://www.beyondjava.net/blog/jsf-2-2-html5-cheat-sheet/). Does it work for you? |
The feature has been implemented, but it has not been documented yet. |
While documenting the feature, I noticed it needs some polishing. Currently, it's marked as "experimental". |
Probably it's not perfect, but I've polished the feature enough to call in done and implemented. |
Divs play a crucial role in Bootstrap, but they aren't part of JSF's DOM tree. This mismatch often leads to difficulties. AngularFaces has the same problem, so I invented a way to make divs and spans first-class citizens of JSF. I'd like to donate the code to the BootsFaces project.
First-class divs would be an option that has to be activated in the web.xml, so it's the programmers' choice if they want to use the feature or not.
Demonstration of the problem:
The idea is to display the two field zipcode and city in a single column, so that they align nicely with the wider fields, such as the street names. Unfortunately, JSF converts both the opening <div> and the closing </div> to text nodes. As a result, the form looks, well, confused.
It's possible to solve the problem in JSF using <h:panelGroup display="block"> instead of <div>. But that's verbose and ugly. Adding insult to injury, hardly anybody knows this trick.
The text was updated successfully, but these errors were encountered: