-
15. Re: Calendar and ajax
sergeysmirnov May 8, 2008 8:37 PM (in response to magbyr)wrap the calendar with:
<a4j:outputPanel layout="none">
-
16. Re: Calendar and ajax
sergeysmirnov May 8, 2008 8:43 PM (in response to magbyr)oh, I see one more details. Why you try to re-render itself, if you want to re-render the calendar? Say reRender="supplierShipDate" instead.
What is the scope for #{pcnRequest} ? -
17. Re: Calendar and ajax
locutusut May 8, 2008 9:10 PM (in response to magbyr)Ok, if I understood you right the code should look something like:
<a4j:form id="landingForm"> <h:panelGroup id="supplierInfo" columns="2"> <h:selectOneRadio id="initiator" value="#{pcnRequest.qctSupplier}"> <a4j:support event="onclick" reRender="supplierInfo" /> <f:selectItem id="initiator1" itemLabel="QCT" itemValue="false" /> <f:selectItem id="initiator2" itemLabel="QCT Supplier" itemValue="true" /> </h:selectOneRadio> <a4j:outputPanel layout="none"> <rich:calendar id="supplierShipDate" popup="true" width="100%" rendered="#{pcnRequest.qctSupplier}" value="#{pcnRequest.supplierShipDate}" datePattern="dd-MMM-yy" style="width:200px" enableManualInput="true"> </rich:calendar> </a4j:outputPanel> </h:panelGroup> </a4j:form>
To answer your questions, I must reRender the panel grid in order for the rich:calendar to show. Also, note that I am using Spring Web Flow so the scope of pcnRequest is "flowScope" which means that the backing bean lives as long as the flow (session) is alive. You can sort of think of it as "session" scope except it is managed by SWF. -
18. Re: Calendar and ajax
locutusut May 8, 2008 11:02 PM (in response to magbyr)Just to rule out that Spring Web Flow might be the issue, I created the same app with straight JSF, using MyFaces 1.2.2. This yields the same results. I can send a sample if you wish to look further.
Please let me know...my boss is killin' me over this!
Thanks,
Lou -
19. Re: Calendar and ajax
locutusut May 9, 2008 11:54 PM (in response to magbyr)The issue is resolved by not using MyFaces and using the reference implementation. Hope that may be help to others.
-
20. Re: Calendar and ajax
amontobin May 23, 2008 12:26 PM (in response to magbyr)Hi,
I'm using RichFaces 3.2.0.GA.
I'm trying to create an HtmlCalendar dynamically but i have got this javascript error when i click on the button to show the popup.
Erreur : Prototype.Browser has no properties
Fichier source : http://www.xxxx.fr/faces/rfRes/org/ajax4jsf/framework.pack.js
Ligne : 903
Here is the fragment of framework.pack.js :
Line 1 :
var Prototype={Version:"1.6.0",Browser:{IE:!!(window.attachEvent&&!window.opera),Opera:!!window.opera,WebKit:navigator.userAgent.indexOf("AppleWebKit/")>-1,Gecko:navigator.userAgent.indexOf("Gecko")>-1&&navigator.userAgent.indexOf("KHTML")==-1,MobileSafari:!!navigator.userAgent.match(/Apple.*Mobile.*Safari/)},BrowserFeatures:{XPath:!!document.evaluate,ElementExtensions:!!window.HTMLElement,SpecificElementExtensions:document.createElement("div").__proto__&&document.createElement("div").__proto__!==document.createElement("form").__proto__},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(A){return A
}};
Line 903 :
do{if(!Prototype.Browser.Opera||B.tagName=="BODY"){A-=B.scrollTop||0;
I'm using Firefox 2.0.0.14.
Any Ideas ?
Thanks,
Sebastien -
21. Re: Calendar and ajax
evaldo.junior Feb 24, 2011 9:10 PM (in response to magbyr)in rich calendar as it will catch a bean the value clicked on the cell of the calendar.