forked from stephanrauh/BootsFaces-Examples
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added an example for naviation with and without AJAX
- Loading branch information
1 parent
c374d4f
commit bb431aa
Showing
4 changed files
with
70 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<ui:fragment xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:h="http://java.sun.com/jsf/html" | ||
xmlns:ui="http://java.sun.com/jsf/facelets" | ||
xmlns:b="http://bootsfaces.net/ui" | ||
xmlns:f="http://java.sun.com/jsf/core" | ||
xmlns:p="http://primefaces.org/ui"> | ||
|
||
|
||
<h:form id="navigation_form"> | ||
<b:row> | ||
<b:column col-sm="6"> | ||
<b:panelGrid colSpans="12"> | ||
<b:commandButton value="Navigate (AJAX - action)" | ||
ajax="true" onclick="ajax:AJAXBean.onClick()" | ||
action="#{AJAXBean.navigationAction}" | ||
update="@form:**:messages" /> | ||
<b:commandButton value="Navigate (AJAX - onclick)" | ||
ajax="true" onclick="ajax:AJAXBean.onClickNavigate()" | ||
|
||
update="@form:**:messages" /> | ||
<b:commandButton value="Navigate (Non-AJAX)" | ||
action="#{AJAXBean.navigationAction}" /> | ||
</b:panelGrid> | ||
</b:column> | ||
<b:column col-sm="6"> | ||
<b:well id="messages"> | ||
Last action: | ||
<ul> | ||
<ui:repeat var="message" value="#{AJAXBean.messages}"> | ||
<li>#{message}</li> | ||
</ui:repeat> | ||
</ul> | ||
</b:well> | ||
</b:column> | ||
</b:row> | ||
</h:form> | ||
</ui:fragment> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters