DynaFormControl set disabled

Community Driven Extensions Project
Rapster
Posts: 17
Joined: 08 May 2018, 21:58

13 May 2018, 17:11

Thanks,

but how am I suppose to run it? (by the way, try with the latest version please)

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

13 May 2018, 18:16

You can run it with any EJB container. I used wildfly 11.There is no JPA or other
dependencies. Maybe a Jetty or Tomcat can run it. Maven buildable, you don't need IDE.
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: 17
Joined: 08 May 2018, 21:58

13 May 2018, 18:33

First, try with the latest version of PFE (you'll need PF 6.2). And then, if it still does not work, you can make it run with jetty, it would be even better as I don't want to install anything on my machine to make it work...

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

13 May 2018, 22:10

Ok, I simplified the project. Please help me to setup correct pom.xml. I try to configure for Tomcat 9, but it isn't fully correct.

Code: Select all

java.lang.NullPointerException
	at org.primefaces.extensions.component.dynaform.DynaFormRenderer.preRenderLabel(DynaFormRenderer.java:312)
This is because model is null at preRenderLabel.

Code: Select all

	@PostConstruct
	public void init() {
		model = new DynaFormModel();
		conditions = new ArrayList<Condition>();

		Condition condition = new Condition("", "", 0);
		conditions.add(condition);
		
		DynaFormRow row = model.createRegularRow();
		DynaFormLabel label = row.addLabel(condition.getName());
		DynaFormControl control = row.addControl(condition, "value");
		control.setKey(condition.getName());
		label.setForControl(control);
	}
WorkflowBean @PostConstruct init and constructor not done. Please help finish test on Tomcat or Jetty. I'm not so perfect in those.
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:

13 May 2018, 22:38

Ok, I changed @SessionScoped annotation to @ManagedBean and it's start working. But this homework not finished jet. I pushed changes to github.
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:

14 May 2018, 17:37

Okay, I finished the test project. Please visit on github (link)
I tried it with Tomcat 9 and Jetty 9. I made a video again to youtube.
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, 11:49

Should I make an issue ticket?
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

Melloware
Posts: 3716
Joined: 22 Apr 2013, 15:48

18 May 2018, 13:28

You have simplified your example but on your index.html isn't your process="@this,peDynaForm" wrong? It should be a space not a comma process="@this peDynaForm"?
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

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

18 May 2018, 13:42

You mean the result of space or comma is the solution? I don't think so. The peDynaForm updated and processed well, and I used it since years ago without problem.
I'll make an issue report. Can anyone help me? What do you think?
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

Melloware
Posts: 3716
Joined: 22 Apr 2013, 15:48

18 May 2018, 15:13

Rapster is the maintainer of this control so if anyone can help you it will be him and he said he could not reproduce it with the PrimeFaces Extension Showcase.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests