How to put an HTML form next to a text?

Here is my code:

Topic one: <h:form> <h:commandButton value="+" /> <h:commandButton value="-" /> 
</h:form>

I want the + and - buttons to be on same line next to the the text Topic one:.

Answers


Use a css class like this on your form:

.your-class {
    display: inline;
}

Wrap your buttons with <h:panelGroup>:

<h:panelGroup>
    <h:commandButton value="+" /> <h:commandButton value="-" />
</h:panelGroup>

Need Your Help

Reskit mapping array without Key Paths

ios json restkit

I've been following the Restkit instructions on object mapping (https://github.com/RestKit/RestKit/wiki/Object-mapping) and I admit I'm still at a loss at how to map a JSON array - I find the whole

Defining table structure for a database?

sql database linux database-design

Up until now, my experience with databases has always been working with an intermediate definition layer that we have where I work. i.e. SQL wasn't directly written for the table definitions, but