[JBoss Seam] - selectOneMenu and processValidation
by koatto
I'm using a selectOneMenu with a custom converter, feeded by a f:selectItems which returns selectItems containing my custom objects.
It seems that the jsf lifecycle stops at the processValidation phase, without upating my model, event if my page does not define any validator :
| 16:43:57,593 TRACE [LifecycleImpl] entering processValidations in org.apache.myfaces.lifecycle.LifecycleImpl
| 16:43:57,734 DEBUG [LifecycleImpl] exiting from lifecycle.execute in processValidations because getRenderResponse is true from one of the after listeners
| 16:43:57,734 TRACE [LifecycleImpl] entering renderResponse in org.apache.myfaces.lifecycle.LifecycleImpl
No exception is thrown and i can't undertand what prevents the validation.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4013090#4013090
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4013090
19Â years, 2Â months
[JBoss Seam] - Foreign Keys and changing Seam Gen templates
by damianharvey
Hi,
I'm using Seam Gen to generate the CRUD pages for my application using Seam 1.1.5, however one thing that I find odd with the generated pages is that if you have a foreign key, the generated pages do not allow you to enter it in a normal fashion.
For example: If you have one table COUNTRY with a primary key of COUNTRYCODE and another table PERSON with a foreign key of COUNTRYCODE, the generated pages make you enter in a COUNTRY and then the PERSONs associated with that country. When entering in PERSON you cannot select a country.
In reality you would enter in a COUNTRY and then be able to select a country when entering the PERSON.
I've tried to modify the Seam Template edit.xhtml.ftl and change the line:
<#if !c2h.isCollection(property) && !c2h.isManyToOne(property) && property.columnSpan==1>
to remove the restriction on "isManytoOne", however this results in an error:
property.value.typeName is undefined. It cannot be assigned to propertyType
I don't know the Seam gen package and Freemarker well enough to jump into it.
Can anybody suggest how to modify the template so that all fields in the table are displayed? Even better would be having some means of automating the lookup? eg using ice:selectInputText or similar?
Thanks,
Damian.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4013087#4013087
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4013087
19Â years, 2Â months
[JBoss jBPM] - Re: Error testing Hello World BPEL on JBoss 4.0.5
by crussell42
I was getting something similar and needed to point my runtime classpath at jboss/client jars.
| [java] javax.naming.CommunicationException [Root exception is java.io.InvalidClassException: org.jboss.remoting.InvokerLocator; local class incompatible: stream classdesc serialVersionUID = -2909329895029296248, local class serialVersionUID = -4977622166779282521]
| [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:723)
| [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:588)
| [java] at javax.naming.InitialContext.lookup(InitialContext.java:351)
| [java] at client.EjbClient.main(EjbClient.java:37)
| [java] Caused by: java.io.InvalidClassException: org.jboss.remoting.InvokerLocator; local class incompatible: stream classdesc serialVersionUID = -2909329895029296248, local class serialVersionUID = -4977622166779282521
| [java] at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:546)
| [java] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
| [java] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
|
SO Here was the fix to make sure the jboss/client/*.jar is in classpath first.
This was a snippet of the ant task for running my client.
| <fileset dir="/usr/local/jboss/client">
| <include name="*.jar"/>
| </fileset>
| </path>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4013062#4013062
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4013062
19Â years, 2Â months