jakartaee / jakartaee/faces

h:button,h:commandButton: generate an HTML BUTTON if there is content.

Open
#1,018 5 comments 0 reactions 0 assignees View on GitHub
button Component: Components/Renderers HTML input Priority: Minor render Type: New Feature
Dominant language
Java
Stars
127
Forks
59
Avg merge
23h
Merged PRs (30d)
7

Description

Visual representations of buttons appear to be presently crippled by the inability to include mixed content, e.g. a standard with an image and a label. h:button and h:commandButton are presently specified only to render as an INPUT with an appropriate type. If there is content inside the tag could they please render as a BUTTON instead? so it works intuitively as expected? Or some other feature to the same end?
#### Environment
All
#### Affected Versions
[2.2 Sprint 8]

Contributor guide

Open the contributing guide

Research direction

Start at the rendering entry points for h:button and h:commandButton and inspect their current HTML output, then review the Jakarta Faces component and renderer expectations for content-bearing buttons. Done should be a documented, tested behavior that renders a BUTTON when content is present while retaining the existing behavior where appropriate.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.