eclipse-ee4j / mojarra

Mojarra, a Jakarta Faces implementation
Other
158 stars 107 forks source link

h:commandButton change the rendering to html button instead of input #5382

Closed pizzi80 closed 5 months ago

pizzi80 commented 6 months ago

Why not render the html <button type="submit" /> tag instead of the <input type="submit" />

Also the name "commandButton" suggests that a button will be rendered like the "commandLink" renders an html "link" (anchor)

eventually the input type submit could be rendered on a new component ... something like <h:command /> or <h:submit />

BalusC commented 5 months ago

This is already set in stone since JSF 1.0 spec. Rather open an issue in jakartaee/faces. I looked around there and found that this was previously already requested: https://github.com/jakartaee/faces/issues/1018

I'm not sure why input is chosen instead of button, I wasn't involved in the JSF 1.0 works.

pizzi80 commented 5 months ago

Thanks for the reply,

I commented on the issue in the Faces API, even if it seems like an abandoned ticket...

Someone commented that it would be implemented in JSF 2.3 but I think that's been completely forgotten

I don't know what the procedure is to get it reconsidered ...