On my webpage, I have labels and input text fields for users to enter data to send back to the server. Sometimes, the server sends over 50 rows of information, which causes the user to scroll multiple times to see all the fields. I'm thinking of creating 2 or 3 divs, each containing around 20 fields so that everything can be displayed without scrolling. Any suggestions?
Take a look at my code below:
<div class="container">
<div class="row">
<f:view>
<h:form>
<h:dataTable value="#{Message.bits}" var="bit">
<h:column>
<div class="col-lg-4">
<h:outputText value="#{bit.id} #{bit.name}" />
<div class="input-group">
<h:inputText styleClass="form-control" size="100"
maxlength="100" value="#{bit.value}" />
</div>
</p>
</div>
</h:column>
</h:dataTable>
</h:form>
</f:view>
</div>
</div>
The Message class serves as a container for bits, managed by the bean manager.
@ManagedBean
@ViewScoped
public class Message implements Serializable {
/**
*
*/
private static final long serialVersionUID = 2712306195992874273L;
private List<Bit> bits = null;
public List<Bit> getBits() {
return bits;
}
//Do more things
The Bit class looks like this:
public class Bit implements Serializable {
/**
*
*/
private static final long serialVersionUID = -6341896264030346040L;
private String name = null;
private String value = null;
private int id = 0;
//Business logic
I am open to using HTML, CSS, any JS framework, JSP, Java, etc. Thank you for your assistance.