How to correctly sort a JSF <ui:repeat> tag

Asked

Viewed 512 times

2

I have a code put in the view view it’s coming out disfigured.

<ui:define name="conteudo">
            <h:form id="content">
                <ui:repeat value="#{mbProduto.resultado}" var="prod">
                    <div class="row">
                        <div class="col-lg-4">
                            <h2>Leia Mais</h2>
                            <h:graphicImage library="images" name="familia.jpg" class="img-thumbnail" /><br></br>
                            #{prod.nomeProduto}<br></br>
                            #{prod.especificacaoProduto}<br></br>
                            #{prod.precoDeMetroVenda}
                            <p><h:commandButton class="btn btn-primary" role="button"
                                value="Quero este" /></p>

                        </div>
                    </div>
                </ui:repeat>
            </h:form>
        </ui:define>

I’m wearing the bootstrap in this case. thank you.

  • This question is being discussed at the Meta: Complete edition of questions c/c @Patrick

  • A screen print showing the mess would help @Andremartins.

1 answer

3

hello as I am using the bootstrap, so it was just an error of placing some tags follows as it got the code.

<ui:define name="conteudo">
            <h:form id="content">
                <div class="row">
                    <ui:repeat value="#{mbProduto.resultado}" var="prod">
                        <div class="col-lg-4">
                            <h2>Leia Mais</h2>
                            <h:graphicImage library="images" name="familia.jpg"
                                class="img-thumbnail" />
                            <br></br> #{prod.nomeProduto}<br></br>
                            #{prod.especificacaoProduto}<br></br> #{prod.precoDeMetroVenda}

                            <h:commandButton class="btn btn-primary" role="button"
                                value="Quero este" />


                        </div>
                    </ui:repeat>
                </div>
            </h:form>
        </ui:define>

thank you.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.