DynaFormControl set disabled

Community Driven Extensions Project
User avatar
Melloware
Posts: 765
Joined: 22 Apr 2013, 15:48

18 May 2018, 15:14

But yes go ahead and create an issue here: https://github.com/primefaces-extension ... com/issues
PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 6.2.10 / PF Extensions 6.2.9

pzoli
Posts: 100
Joined: 27 Feb 2012, 20:52
Location: Hungary
Contact:

18 May 2018, 16:48

Reproducable with sample. He try only with content clear. Why didn't you try my homework sample? I made it for you for nothing? I don't understund you.
If you say that "we don't have money" I say that "why do you play with free and open source project?" You didn't say that, but I feel this. I made this project for represent your dyna form force and not a showcase but useable project. And you say "use space instead a comma" ? Sorry, it is ridiculous!
JBoss Developer Studio 11.3.0.GA
Eclipse Oxygen
Wildfly 11
PrimeFaces 6.2.3, PrimaFaces Extensions 6.2.3
Mojarra 2.2.11-jbossorg-1, MyFaces 2.2.8, Deltaspike 1.7.1
MySQL, Oracle, MS-SQL, PostgreSQL, NoSQL

pzoli
Posts: 100
Joined: 27 Feb 2012, 20:52
Location: Hungary
Contact:

18 May 2018, 17:51

Sorry, I made this project since about 3 years, and it was not so easy. I'm tired now. Please help in my work.
JBoss Developer Studio 11.3.0.GA
Eclipse Oxygen
Wildfly 11
PrimeFaces 6.2.3, PrimaFaces Extensions 6.2.3
Mojarra 2.2.11-jbossorg-1, MyFaces 2.2.8, Deltaspike 1.7.1
MySQL, Oracle, MS-SQL, PostgreSQL, NoSQL

Rapster
Posts: 16
Joined: 08 May 2018, 21:58

19 May 2018, 17:27

Despite the fact I didn't understand your statement I would ask you to be more "diplomatic" in your posts. You have to understand that we use our free time and our good will when it comes to work on PF or PFE (and we also get tired :D )

How do you want people try your sample if you don't write a procedure to run it? (That on the other hand is ridiculous ;) ) Since I have no clue how to do it, I used primefaces-test (https://github.com/primefaces/primefaces-test) and it works like a charm. BTW, you're using Servlet 3.1 with JSF API 2.2 and JSF Impl 2.1.3 and JEE 7, your dependencies are completely messed up... Fix that for the good of your project

I managed to reproduce your problem based on your sample. I'll try to find the problem ASAP, but be aware it can take some time. I understand how frustrating it is not getting a reply, I've been there (typically regarding a DynaForm problem and many other) but instead of waiting of answer I tried to find the solution by myself...

pzoli
Posts: 100
Joined: 27 Feb 2012, 20:52
Location: Hungary
Contact:

19 May 2018, 18:34

Yes, I know I'm not perfect. But I try growing.
Thanks for your patience. Several times I report and solve errors in PF but I not compiled PFE from source until now.
JBoss Developer Studio 11.3.0.GA
Eclipse Oxygen
Wildfly 11
PrimeFaces 6.2.3, PrimaFaces Extensions 6.2.3
Mojarra 2.2.11-jbossorg-1, MyFaces 2.2.8, Deltaspike 1.7.1
MySQL, Oracle, MS-SQL, PostgreSQL, NoSQL

Rapster
Posts: 16
Joined: 08 May 2018, 21:58

20 May 2018, 22:47

Disable attribute is not saved by the "Restorable saving state" mechanism set up in DynaForm. I have to figure something out about that... But you can workaround problem doing these 2 simple steps:
  1. Removing "update" attribute" set on Disable button
  2. Instead, use partial update in your visitor, right after you disable the component (e.g PrimeFaces.current().ajax().update(input.getClientId());)
Let me know if it works for you

pzoli
Posts: 100
Joined: 27 Feb 2012, 20:52
Location: Hungary
Contact:

21 May 2018, 11:01

It works for me, but it's not perfect workaround because new component addition must update the form.
Please see youtube here.
Maybe I can solve it with another Visitor that must run after each update but it's horrible extra effort.
I'll check and compile from source myself. Where should I search for this in source?
JBoss Developer Studio 11.3.0.GA
Eclipse Oxygen
Wildfly 11
PrimeFaces 6.2.3, PrimaFaces Extensions 6.2.3
Mojarra 2.2.11-jbossorg-1, MyFaces 2.2.8, Deltaspike 1.7.1
MySQL, Oracle, MS-SQL, PostgreSQL, NoSQL

Rapster
Posts: 16
Joined: 08 May 2018, 21:58

21 May 2018, 23:24

I fixed the issue on my side, I'll try to push that ASAP. If you plan to modify more properties like disabled programmatically, let me know

Rapster
Posts: 16
Joined: 08 May 2018, 21:58

22 May 2018, 20:32

Fixed. I don't know when the next version will be released. You can test it by building from source

pzoli
Posts: 100
Joined: 27 Feb 2012, 20:52
Location: Hungary
Contact:

22 May 2018, 21:17

Thank you! The encodeStatic method is your modification for style encoding? So, can I use readonly, too?
JBoss Developer Studio 11.3.0.GA
Eclipse Oxygen
Wildfly 11
PrimeFaces 6.2.3, PrimaFaces Extensions 6.2.3
Mojarra 2.2.11-jbossorg-1, MyFaces 2.2.8, Deltaspike 1.7.1
MySQL, Oracle, MS-SQL, PostgreSQL, NoSQL

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest