Sorry if this question is very basic but I've just started my course and I have a really basic issue with the JFS navigation.
<f:view>
<h:dataTable
<h:column>
<f:facet name ="header">
Booking
</f:facet>
<h:commandLink onclick ="if (! confirm('Do you want to book a lesson?')) return false;"
value="Book Your Lesson"
action="#{ptBean.setAvailable(item)}"
rendered="#{item.ticketsAvailable>0}">
</h:commandLink>
</h:column>
</h:dataTable>
</f:view>
As you can see I have a columm with the title booking, and a commandLink which promotes the user with a popup box once they click "Book your lesson", but after this happens, they remain on the page.
How can I make it so the user it redirected to another page once they've clicked book your lesson and then confirmed it on the popup?
Sorry for the newbie question. Thank you.
Aucun commentaire:
Enregistrer un commentaire