This content has been marked as final.
Show 20 replies
-
15. Re: rich:editor input locked
ajanz Aug 26, 2009 6:53 AM (in response to ajanz)hm. the page is dynamically generated by java code
the page is like<?xml version="1.0" encoding="ISO-8859-1"?> <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:rich="http://richfaces.org/rich" xmlns:a4j="http://richfaces.org/a4j" > <style type="text/css"> .colStyle1 { width: 145px; } .colStyle2 { width: 480px; } .colStyle3 { width: 160px; } </style> <h:form> <a4j:status id="idstatus" startText="Begin...." stopText="Ende"></a4j:status> <rich:messages id="messages" /> <br/> <h:outputLabel value="TEST 5.6.2009 00:01" for="" /> <h:panelGrid columns="4" columnClasses="colStyle1,colStyle1,colStyle1,colStyle1" > <h:outputLabel value="Betrag" for="" /> <h:inputText value="#{TestBean.n}" > <f:convertNumber type="number" maxFractionDigits="2" minFractionDigits="2" groupingUsed="true" /> </h:inputText> <h:outputLabel value="Test" for="" /> <h:inputText value="1443" > <a4j:support event="onblur" status="idstatus" > <a4j:actionparam name="sqlid" value="kreditor" /> <a4j:actionparam name="mandant" value="ekom21" /> </a4j:support> <f:validator validatorId="NSKValidator"/> </h:inputText> <h:outputLabel value="Feld3" for="" /> <h:inputText value="" /> <h:outputLabel value="Feld4" for="" /> <h:inputText value="1213123" style="align:left" /> <h:outputLabel value="Feld5" for="" /> <h:inputText value="" /> <h:outputLabel value="Feld5" for="" /><rich:calendar value="" inputStyle="width:120px" style="width:120px" /> </h:panelGrid> <h:panelGrid columns="2" columnClasses="" > <h:outputLabel value="Test" for="" style="width:160px" /> <h:inputText value="2323" style="width:480px" /> </h:panelGrid> <h:commandButton value="Submit" ></h:commandButton> </h:form> </ui:composition>
but in this example this works
only difference, in my dynamically page rich:calendar is first disabled and then on a button click enabled -
16. Re: rich:editor input locked
ilya_shaikovsky Aug 26, 2009 7:10 AM (in response to ajanz)code snippet looks ok and working. Something wrong in your dynamicall creation.
-
17. Re: rich:editor input locked
ajanz Aug 26, 2009 7:22 AM (in response to ajanz)hm...don't see any further difference...and it worked with 3.3.1
-
18. Re: rich:editor input locked
ilya_shaikovsky Aug 26, 2009 7:47 AM (in response to ajanz)Do you able to provide complete sample for 3.3.2 were calendar not working ? share it to sendspace.com please.
-
19. Re: rich:editor input locked
ajanz Aug 26, 2009 8:55 AM (in response to ajanz)ok found the java code which is responsible
calendar.setLabel(dt.getLabel()); log.debug("setLabel =" + dt.getLabel()); HtmlAjaxSupport ajaxValidator = new HtmlAjaxSupport(); ajaxValidator.setBypassUpdates(true); ajaxValidator.setEvent("onchanged"); ajaxValidator.setAjaxSingle(true); calendar.getChildren().add(ajaxValidator); ajaxValidator = new HtmlAjaxSupport(); ajaxValidator.setBypassUpdates(false); ajaxValidator.setEvent("oninputblur"); ajaxValidator.setAjaxSingle(true); //ajaxValidator.setReRender(calendar.getId()); calendar.getChildren().add(ajaxValidator);
tried to repoduce in test page,but without success
if i comment this code out everthing is fine -
20. Re: rich:editor input locked
ilya_shaikovsky Aug 26, 2009 9:42 AM (in response to ajanz)You should create two support objects and add to tree, And you modifing the same one which already added to tree instead and trying to add it again.