[jQuery] Horizontal Splitter Problem
<div dir="ltr">Hi,
I have used vertical splitter along with JSF (facelets + richfaces) and YUI - it is working fine and PERFECT. however, I am unable to integerate the horizontal splitter in my code. Can any one plese help me out .. I am attaching the code below. Please someone help me in it ..
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote"><font size="2"><font face="courier new,monospace"><?xml version="1.0" encoding="ISO-8859-1"?></font></font>
<font size="2"><font face="courier new,monospace"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"</font></font>
<font size="2"><font face="courier new,monospace"> "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>"></font></font>
<font size="2"><font face="courier new,monospace"><html xmlns="<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>"</font></font>
<font size="2"><font face="courier new,monospace"> xmlns:ui="<a href="http://java.sun.com/jsf/facelets">http://java.sun.com/jsf/facelets</a>"</font></font>
<font size="2"><font face="courier new,monospace"> xmlns:h="<a href="http://java.sun.com/jsf/html">http://java.sun.com/jsf/html</a>"</font></font>
<font size="2"><font face="courier new,monospace"> xmlns:t="<a href="http://myfaces.apache.org/tomahawk">http://myfaces.apache.org/tomahawk</a>"</font></font>
<font size="2"><font face="courier new,monospace"> xmlns:f="<a href="http://java.sun.com/jsf/core">http://java.sun.com/jsf/core</a>"</font></font>
<font size="2"><font face="courier new,monospace"> xmlns:rich="<a href="http://richfaces.org/rich">http://richfaces.org/rich</a>"</font></font>
<font size="2"><font face="courier new,monospace"> xmlns:c="<a href="http://java.sun.com/jstl/core">http://java.sun.com/jstl/core</a>"</font></font>
<font size="2"><font face="courier new,monospace"> xmlns:a4j="<a href="http://richfaces.org/a4j">http://richfaces.org/a4j</a>"></font></font>
<font size="2"><font face="courier new,monospace"> </font></font>
<font size="2"><font face="courier new,monospace"> <ui:composition></font></font>
<font size="2"><font face="courier new,monospace"> <ui:debug hotkey="d"/></font></font>
<font size="2"><font face="courier new,monospace"> <c:set var="contextRoot" value="#{facesContext.externalContext.request.contextPath}" /></font></font>
<font size="2"><font face="courier new,monospace"> <head></font></font>
<font size="2"><font face="courier new,monospace"> <link type="text/css" rel="stylesheet" href="#{contextRoot}/css/palier.css"/></font></font>
<font size="2"><font face="courier new,monospace"> <link type="text/css" rel="stylesheet" href="#{contextRoot}/css/flexiblestyle.css"/></font></font>
<font size="2"><font face="courier new,monospace"> <link type="text/css" rel="stylesheet" href="#{contextRoot}/css/reset-fonts-grids.css"/></font></font>
<font size="2"><font face="courier new,monospace"> <script src="${contextRoot}/script/webScripts.js" type="text/javascript"></script></font></font>
<font size="2"><font face="courier new,monospace"> <script type="text/javascript" src="#{contextRoot}/script/jquery-1.2.6.js"></script></font></font>
<font size="2"><font face="courier new,monospace"> <script type="text/javascript" src="#{contextRoot}/script/splitter.js"></script></font></font>
<font size="2"><font face="courier new,monospace"> <link rel="stylesheet" type="text/css" href="#{contextRoot}/css/jquery-main.css" /></font></font>
<font size="2"><font face="courier new,monospace"> <title><ui:insert name="title">Default title</ui:insert></title></font></font>
<font size="2"><font face="courier new,monospace"> </head></font></font>
<font size="2"><font face="courier new,monospace"> <body style="margin: 0;padding: 0;"></font></font>
<font size="2"><font face="courier new,monospace"> <f:view></font></font>
<font size="2"><font face="courier new,monospace"> <script language="javascript"></font></font>
<font size="2"><font face="courier new,monospace"> var disableRowClick = false;</font></font>
<font size="2"><font face="courier new,monospace"> jQuery.noConflict();</font></font>
<font size="2"><font face="courier new,monospace"> </script></font></font>
<font size="2"><font face="courier new,monospace"> </font></font>
<font size="2"><font face="courier new,monospace"> <!-- h:form id="palierForm" enctype="multipart/form-data" styleClass="formWrap" --></font></font>
<font size="2"><font face="courier new,monospace"> <!-- start doc3 div --></font></font>
<font size="2"><font face="courier new,monospace"> <div id="doc3" class="yui-t1"></font></font>
<font size="2"><font face="courier new,monospace"> <a4j:region id="region"></font></font>
<font size="2"><font face="courier new,monospace"> <!-- start hd --></font></font>
<font size="2"><font face="courier new,monospace"> <div id="hd"></font></font>
<font size="2"><font face="courier new,monospace"> <ui:include src="header.xhtml"/></font></font>
<font size="2"><font face="courier new,monospace"> </div></font></font>
<font size="2"><font face="courier new,monospace"> <!-- start menu --></font></font>
<font size="2"><font face="courier new,monospace"> <div id="menu"></font></font>
<font size="2"><font face="courier new,monospace"> <ui:include src="menu.xhtml"/></font></font>
<font size="2"><font face="courier new,monospace"> </div></font></font>
<font size="2"><font face="courier new,monospace"> </font></font>
<font size="2"><font face="courier new,monospace"> <div id="bd"></font></font>
<font size="2"><font face="courier new,monospace"> <div id ="MyTestOne"></font></font>
<font size="2"><font face="courier new,monospace"> <!-- start top --></font></font>
<font size="2"><font face="courier new,monospace"> </font></font>
<font size="2"><font face="courier new,monospace"> <div id="flexible-top" class="yui-g"></font></font>
<font size="2"><font face="courier new,monospace"> <!-- start column1 --></font></font>
<font size="2"><font face="courier new,monospace"> <div id="flexible-col1" class="yui-u first"></font></font>
<font size="2"><font face="courier new,monospace"> <ui:include src="leftPage.xhtml"/></font></font>
<font size="2"><font face="courier new,monospace"> </div></font></font>
<font size="2"><font face="courier new,monospace"> </font></font>
<font size="2"><font face="courier new,monospace"> <!-- start column2 --></font></font>
<font size="2"><font face="courier new,monospace"> <div id="flexible-col2" class="yui-u"></font></font>
<font size="2"><font face="courier new,monospace"> <ui:include src="rightPage.xhtml"/></font></font>
<font size="2"><font face="courier new,monospace"> </div></font></font>
<font size="2"><font face="courier new,monospace"> </div></font></font>
<font size="2"><font face="courier new,monospace"> <!-- end top --></font></font>
<font size="2"><font face="courier new,monospace"> <!-- start bottom --></font></font>
<font size="2"><font face="courier new,monospace"> </font></font>
<font size="2"><font face="courier new,monospace"> </font></font>
<font size="2"><font face="courier new,monospace"> <div id="flexible-bottom" class="yui-g" ></font></font>
<font size="2"><font face="courier new,monospace"> <t:panelGroup id="bottomTabs" forceId="true" styleClass="fullHeight"></font></font>
<font size="2"><font face="courier new,monospace"> <c:choose></font></font>
<font size="2"><font face="courier new,monospace"> <c:when test="#{genericController.bottomDivStyle != 'flexible-bottom-default'}"></font></font>
<font size="2"><font face="courier new,monospace"> <div class="bottomColDiv"></font></font>
<font size="2"><font face="courier new,monospace"> <ui:include src="#{genericController.bottomPage}"/></font></font>
<font size="2"><font face="courier new,monospace"> </div></font></font>
<font size="2"><font face="courier new,monospace"> </c:when></font></font>
<font size="2"><font face="courier new,monospace"> <c:otherwise></font></font>
<font size="2"><font face="courier new,monospace"> <ui:include src="#{genericController.bottomPage}"/></font></font>
<font size="2"><font face="courier new,monospace"> </c:otherwise></font></font>
<font size="2"><font face="courier new,monospace"> </c:choose></font></font>
<font size="2"><font face="courier new,monospace"> </t:panelGroup></font></font>
<font size="2"><font face="courier new,monospace"> </div></font></font>
<font size="2"><font face="courier new,monospace"> <!-- end bottom --></font></font>
<font size="2"><font face="courier new,monospace"> </div></font></font>
<font size="2"><font face="courier new,monospace"> </div></font></font>
<font size="2"><font face="courier new,monospace"> <!-- bd --></font></font>
<font size="2"><font face="courier new,monospace"> <rich:jQuery selector="##{genericController.topDivStyle}" name="mysplit" query="splitter({type: 'v',initA: true, minA: 300,maxA: 800})" timing="onload"/></font></font>
<font size="2"><font face="courier new,monospace"> <rich:jQuery selector="#MyTestOne" name="horiSplit" query="splitter({type: 'h'})" timing="onload"/></font></font>
<font size="2"><font face="courier new,monospace"> <rich:jQuery selector="window" name="windowResize" query="bind('resize', function(){jQuery('##{genericController.topDivStyle}').trigger('resize');}).trigger('resize')" timing="onload"/></font></font>
<font size="2"><font face="courier new,monospace"> </font></font>
<font size="2"><font face="courier new,monospace"> <!--/t:panelGroup --></font></font>
<font size="2"><font face="courier new,monospace"> </font></font>
<font size="2"><font face="courier new,monospace"> <!-- start footer --></font></font>
<font size="2"><font face="courier new,monospace"> <div id="ft"></font></font>
<font size="2"><font face="courier new,monospace"> <ui:include src="footer.xhtml"/></font></font>
<font size="2"><font face="courier new,monospace"> </div></font></font>
<font size="2"><font face="courier new,monospace"> <!-- end footer --></font></font>
<font size="2"><font face="courier new,monospace"> </a4j:region></font></font>
<font size="2"><font face="courier new,monospace"> </div></font></font>
<font size="2"><font face="courier new,monospace"> <!-- /h:form --></font></font>
<font size="2"><font face="courier new,monospace"> </f:view></font></font>
<font size="2"><font face="courier new,monospace"> </body></font></font>
<font size="2"><font face="courier new,monospace"> </ui:composition></font></font>
<font size="2"><font face="courier new,monospace"> </font></font>
<font size="2"><font face="courier new,monospace"></html></font></font>
</blockquote>
<br clear="all">..alee
<a href="http://techboard.wordpress.com">http://techboard.wordpress.com</a>
</div>