|
Struts example source code file (example6.jsp)
The Struts example6.jsp source code<%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ taglib prefix="s" uri="/struts-tags" %> <%@ taglib prefix="sx" uri="/struts-dojo-tags" %> <html> <head> <title>Ajax examples - tabbled panel <jsp:include page="/ajax/commonInclude.jsp"/> </head> <script> dojo.event.topic.subscribe('/before', function(event, tab, tabContainer) { alert("Before selecting tab. Set 'event.cancel=true' to prevent selection"); }); dojo.event.topic.subscribe('/after', function(tab, tabContainer) { alert("After tab was selected"); }); </script> <body> <sx:tabbedpanel id="tabContainer" cssStyle="width: 500px; height: 300px;" doLayout="true" beforeSelectTabNotifyTopics="/before" afterSelectTabNotifyTopics="/after"> <sx:div id="tab1" label="test1" > Tab 1 </sx:div > <sx:div id="tab2" label="test2" > Tab 2 </sx:div > </sx:tabbedpanel> <br /> Other Struts examples (source code examples)Here is a short list of links related to this Struts example6.jsp source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.