tag:blogger.com,1999:blog-8492059842142356488.post2196195811757602280..comments2023-09-23T16:46:57.616+02:00Comments on Thoughts on software development: Dynamic forms, JSF world was long waiting forOleg Varaksinhttp://www.blogger.com/profile/13872270134068047346noreply@blogger.comBlogger18125tag:blogger.com,1999:blog-8492059842142356488.post-32897016869880143992014-04-14T19:50:15.631+02:002014-04-14T19:50:15.631+02:00pe:dynaFormControl type="input" for=&quo...pe:dynaFormControl type="input" for="#{data.id}" styleClass="dynaControl"<br /> p:inputText id="#{data.id}" name="#{data.name}" value="#{data.value}" required="#{data.required}" maxlength="#{data.maxLength}" placeholder="#{data.placeHolder}"<br />pe:dynaFormControl<br /><br />This is the post that I was referring to in my previous post.Ananthahttps://www.blogger.com/profile/01754140688197065382noreply@blogger.comtag:blogger.com,1999:blog-8492059842142356488.post-18650330212949187812014-04-11T23:12:52.520+02:002014-04-11T23:12:52.520+02:00Hi Oleg, It's me again. I have a doubt on what...Hi Oleg, It's me again. I have a doubt on what I am doing. I am trying to configure the id/name attribute through the model class(DynamicUIProperty) to avoid the rendering of - id="mainForm:dynaForm:r1c1reg:txt" name="mainForm:dynaForm:r1c1reg:txt". So, that we can do our java script stuff based on the id/name that we sent from the model class. I am trying something like this <br /><br /> <br /> <br /> <br /><br />Please look at the for, id and name attributes. But I end up with the following error:<br />Caused by: java.lang.IllegalArgumentException: Empty id attribute is not allowed<br /> at javax.faces.component.UIComponentBase.validateId(UIComponentBase.java:542)<br /> at javax.faces.component.UIComponentBase.setId(UIComponentBase.java:369)<br /> at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.assignUniqueId(ComponentTagHandlerDelegateImpl.java:369)<br /><br />Is there a way to solve my problem statement? I would to like to have id/name defined for each of my control rendered through my model class. Let me know your thoughts.<br /><br />Thanks in advance.<br />Ananthahttps://www.blogger.com/profile/01754140688197065382noreply@blogger.comtag:blogger.com,1999:blog-8492059842142356488.post-4355527078479722192014-03-25T23:56:07.654+01:002014-03-25T23:56:07.654+01:00Thanks Oleg for your prompt reply. Yes, you are co...Thanks Oleg for your prompt reply. Yes, you are correct i can do that as you suggested. I over thought about my problem statement after seeing rowspan and colspan in the addcontrol.Ananthahttps://www.blogger.com/profile/01754140688197065382noreply@blogger.comtag:blogger.com,1999:blog-8492059842142356488.post-59855379517446363142014-03-25T18:57:12.046+01:002014-03-25T18:57:12.046+01:00Again. You can create a model class, say MyEntry, ...Again. You can create a model class, say MyEntry, and define min. / max. length properties there. These properties can be accessed in XHTML via data object. See examples in the showcase please.Oleg Varaksinhttps://www.blogger.com/profile/13872270134068047346noreply@blogger.comtag:blogger.com,1999:blog-8492059842142356488.post-21359129201956948532014-03-25T18:53:15.748+01:002014-03-25T18:53:15.748+01:00We are trying to build a Dynamic UI based on the c...We are trying to build a Dynamic UI based on the configuration setup configured in database. (something similar like this - http://stackoverflow.com/questions/22197537/generate-a-dynamic-form-based-on-primefaces-extensions-dynaform-from-database-at) Since, the required and the value attributes are dynamic for the dynaFormControl of type = input. Since, different input fields have different min and max length and if we tie these two attributes dynamically to it. It will be useful to configure and load it on the fly. Correct me if i am wrong with this idea.<br /><br />Ananthahttps://www.blogger.com/profile/01754140688197065382noreply@blogger.comtag:blogger.com,1999:blog-8492059842142356488.post-35496160903565251592014-03-25T10:13:18.024+01:002014-03-25T10:13:18.024+01:00Why do you need min. / max. length in Java model? ...Why do you need min. / max. length in Java model? You can set min. / max. in XHTML via tag attributes. Model is only for layout.Oleg Varaksinhttps://www.blogger.com/profile/13872270134068047346noreply@blogger.comtag:blogger.com,1999:blog-8492059842142356488.post-16457332074892524102014-03-24T23:10:49.623+01:002014-03-24T23:10:49.623+01:00Hi Oleg,
Is there any thoughts to implement setti...Hi Oleg,<br /><br />Is there any thoughts to implement setting of min and max length in the addControl() API that you are exposing in near future?<br /><br />Thanks,<br />AnanthAnanthahttps://www.blogger.com/profile/01754140688197065382noreply@blogger.comtag:blogger.com,1999:blog-8492059842142356488.post-54763564311459301032013-12-22T07:36:11.989+01:002013-12-22T07:36:11.989+01:00Excellent work GuysExcellent work GuysAnonymoushttps://www.blogger.com/profile/15169747522019754391noreply@blogger.comtag:blogger.com,1999:blog-8492059842142356488.post-10621123833522830982013-11-08T12:14:50.265+01:002013-11-08T12:14:50.265+01:00Ajax behavior inside the dynaform is not a problem...Ajax behavior inside the dynaform is not a problem for all components which are placed within the dynaform. But the pe:dynaForm itself doesn't have any Ajax behaviors. That means, attaching p:ajax to the pe:dynaForm doesn't make sense.Oleg Varaksinhttps://www.blogger.com/profile/13872270134068047346noreply@blogger.comtag:blogger.com,1999:blog-8492059842142356488.post-47867356992599720622013-11-08T09:48:57.367+01:002013-11-08T09:48:57.367+01:00Hi Oleg,
You are doing very good work. I have the ...Hi Oleg,<br />You are doing very good work. I have the very same question as the one before. It's about Ajax behaviour inside the dynaform. Is it possible ? Are there any thoughts about it.<br />Kindly yours<br />LaabidiLaabidi Raissihttps://www.blogger.com/profile/08451854179058499942noreply@blogger.comtag:blogger.com,1999:blog-8492059842142356488.post-42366063521625257182013-08-23T10:23:34.823+02:002013-08-23T10:23:34.823+02:00Hi Oleg,
is it possible to have dependent inputs (...Hi Oleg,<br />is it possible to have dependent inputs (like postcode and city) via ajax events in a dynaform?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8492059842142356488.post-26195931436263499982013-01-17T09:48:01.325+01:002013-01-17T09:48:01.325+01:00Hi Oleg,
Really nice post to checkout for my requ...Hi Oleg,<br />Really nice post to checkout for my requirementAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8492059842142356488.post-89457156875948559302012-11-14T22:02:17.090+01:002012-11-14T22:02:17.090+01:00Oleg,
How can i implement ajax on a dynaFormContr...Oleg,<br /><br />How can i implement ajax on a dynaFormControl?<br /><br />MahendranMahendranhttps://www.blogger.com/profile/06104516448692067281noreply@blogger.comtag:blogger.com,1999:blog-8492059842142356488.post-73874210508939703612012-09-11T19:40:37.692+02:002012-09-11T19:40:37.692+02:00Hi Oleg,
I can resolve the last problem, but now...Hi Oleg, <br /><br />I can resolve the last problem, but now , I have other problem . I can reload one <p:selectOneMenu from other <p:selectOneMenu? with pe:dynaForm? you know something about it?Anonymoushttps://www.blogger.com/profile/14630047573555086056noreply@blogger.comtag:blogger.com,1999:blog-8492059842142356488.post-29131795826465998782012-09-11T16:27:18.567+02:002012-09-11T16:27:18.567+02:00Hi Oleg,
I have problems with _mainForm_dynaForm...Hi Oleg,<br /><br />I have problems with _mainForm_dynaFormGroup, this ": Cannot find component with identifier "_mainForm_dynaFormGroup" referenced from "dynaForm:j_idt101"."<br /><br />can you help me?Anonymoushttps://www.blogger.com/profile/14630047573555086056noreply@blogger.comtag:blogger.com,1999:blog-8492059842142356488.post-87950023742088827682012-09-04T08:03:44.114+02:002012-09-04T08:03:44.114+02:00Hi Oleg,
you did the post clearly. Love to be her...Hi Oleg,<br /><br />you did the post clearly. Love to be here and hook up with your post. keep blogging.<br /><br /><br /> <a href="www.nanowebtech.com/" rel="nofollow"> offshore software development company india </a><br /> Anonymoushttps://www.blogger.com/profile/18142196793735794649noreply@blogger.comtag:blogger.com,1999:blog-8492059842142356488.post-17030441886169313312012-07-17T19:46:33.453+02:002012-07-17T19:46:33.453+02:00Thanks Oleg. This is really good component and I w...Thanks Oleg. This is really good component and I will use it in my product !!. Keep up the great job !!Subraya Mallyahttps://www.blogger.com/profile/18307472550767181650noreply@blogger.comtag:blogger.com,1999:blog-8492059842142356488.post-51855844808711879292012-06-17T14:59:24.436+02:002012-06-17T14:59:24.436+02:00You guys(PF + PF ext) are doing a great job and co...You guys(PF + PF ext) are doing a great job and contribution to the JSF community, people are migrating from other plataforms because of your work!.<br /><br />Thanks for the GREAT work!rmpestanohttps://twitter.com/realpestanonoreply@blogger.com