I want to insert outputText in the value attribute of a commandButton. The problem I am facing here is that the 'value' attribute of the commandButton only takes static text as value but I want this text to change according to the value assigned to that list and the whole value should be displayed inside the commandbutton.
<h:commandButton id="submit-button" styleClass="click_button1"
type="submit" value="Yes"
action="#{xyz.deleteAction(o)}" update="msgs" />
In this, instead of "yes", I want something like this
Yes, I want this thing <h:outputText size="15" value="#{o.name}" /></b> from <h:outputText size="15" value="#{o.detals}" /></b>
as the value.