-
1. Re: 2 times a4j:include on 1 page
ilya_shaikovsky Apr 17, 2009 7:34 AM (in response to tom_sch)something wrong with just your page markup.. Could you please paste the snippets for page and includes fully. And check please the generated page with tidy validator plugin for FF.
Also which RF version used? -
2. Re: 2 times a4j:include on 1 page
tom_sch Apr 17, 2009 7:46 AM (in response to tom_sch)I use 3.2.2 SR1
this is the code of the full page:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:c="http://java.sun.com/jstl/core"> <head> <title>Reservations</title> <script type="text/javascript" src="scripts/jquery.js"></script> <script type="text/javascript" src="scripts/jquery.layout.js"></script> <script type="text/javascript"> jQuery.noConflict(); jQuery(document).ready(function () { jQuery('body').layout({ applyDefaultStyles: true }); }); </script> <style> .links { text-decoration: none; color: black; } </style> </head> <body> <div class="ui-layout-north"> <ui:include src="menuBoven.xhtml" /> </div> <div class="ui-layout-west"> <ui:include src="#{dropDownMenuBean.link}" /> </div> <div class="ui-layout-center"> <a4j:include viewId="#{treeBean.link}" /> </div> </body> </html>
thank you! -
3. Re: 2 times a4j:include on 1 page
tom_sch Apr 17, 2009 7:48 AM (in response to tom_sch)sorry, that was the wrong code, with only 1 ajax include, which works, this is the one with 2 ajax includes:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:c="http://java.sun.com/jstl/core">
Reservations
jQuery.noConflict();
jQuery(document).ready(function () {
jQuery('body').layout({ applyDefaultStyles: true });
});
.links {
text-decoration: none;
color: black;
}
<ui:include src="menuBoven.xhtml" />
<a4j:include id="submenu" viewId="#{dropDownMenuBean.link}" />
<a4j:include id="contentpanel" viewId="#{treeBean.link}" /> -
4. Re: 2 times a4j:include on 1 page
tom_sch Apr 17, 2009 7:49 AM (in response to tom_sch)I seem to have forgot code tags, and editing posts doesn't work:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:c="http://java.sun.com/jstl/core"> <head> <title>Reservations</title> <script type="text/javascript" src="scripts/jquery.js"></script> <script type="text/javascript" src="scripts/jquery.layout.js"></script> <script type="text/javascript"> jQuery.noConflict(); jQuery(document).ready(function () { jQuery('body').layout({ applyDefaultStyles: true }); }); </script> <style> .links { text-decoration: none; color: black; } </style> </head> <body> <div class="ui-layout-north"> <ui:include src="menuBoven.xhtml" /> </div> <div class="ui-layout-west"> <a4j:include id="submenu" viewId="#{dropDownMenuBean.link}" /> </div> <div class="ui-layout-center"> <a4j:include id="contentpanel" viewId="#{treeBean.link}" /> </div> </body> </html>
-
5. Re: 2 times a4j:include on 1 page
ilya_shaikovsky Apr 17, 2009 7:57 AM (in response to tom_sch)please pack the sample into war and share.
-
6. Re: 2 times a4j:include on 1 page
tom_sch Apr 17, 2009 8:04 AM (in response to tom_sch)is it ok if I email it? Do you also need a .sql file for the database?
-
7. Re: 2 times a4j:include on 1 page
ilya_shaikovsky Apr 17, 2009 8:10 AM (in response to tom_sch)sure you could send it. Also simplify please as possible. (at least to use mock data)
-
8. Re: 2 times a4j:include on 1 page
tom_sch Apr 17, 2009 8:24 AM (in response to tom_sch)before bugging you with the whole project, I tried doing the same thing on a simple page:
1 panel with 2 buttons (which changed the value of the link variable in de backing beans). Same result. The page I want to include just includes in the first panel.
Anyone has example code of 2 a4j:includes on 1 page (where you get the viewId from a value in the backing bean)?