Navigability problem using Button in Bootstrap

3

I created a JSF project and I'm using Bootstrap, and I'm trying to implement buttons in my project and I'm not able to put navigability in them, see below;

so it works;

<li ><a href="/Terezinha.Bandeira" >Inicio</a></li>

so it does not work;

<button type="button" class="btn btn-primary btn-lg" outcome="/Terezinha.Bandeira/" >Inicio</button>

I want to use this guy down here, but I can not;

 <button type="button" class="btn btn-primary btn-lg">Large button</button>
    
asked by anonymous 18.09.2015 / 13:31

2 answers

2

Use the jsf components like this:

<h:commandButton action="/Terezinha.bandeira" value="Inicio" styleClass="btn btn-primary btn-lg" />

    
18.09.2015 / 13:54
4

Try this way:

<a href="/Terezinha.Bandeira">
    <button type="button" class="btn btn-primary btn-lg">Large button</button>
</a> 
    
18.09.2015 / 13:50