[JBoss Seam] - problem with <s:convertEntity/>
by tnfink
Hi,
I have a problem with the convertEntity-Tag. Maybe someone can help :-)
This is the XHTML-code:
| <h:selectOneMenu
| id="teamSelect"
| value="#{offerhead1.selectedTeam}"
| required="true">
| <s:convertEntity />
| <s:selectItems value="#{itemCache.allTeams}" var="team"
| label="#{team.mnemonic}"
| noSelectionLabel="Please choose.." />
| </h:selectOneMenu>
|
The data is loaded correctly from the database and displayed on the web page. This is the signature of the bean method:
| public class ItemCacheBean implements ItemCache {
| public List<Employee> getAllTeams() {
| ...
| }
| }
|
This is the signature of the bean method for saving the selected item:
| @Name(Offerhead1Bean.NAME)
| @Stateful
| public class Offerhead1Bean implements Offerhead1 {
| public Employee getSelectedTeam() {...}
| public void setSelectedTeam(final Employee selectedTeam) {...}
| }
|
Now the problem is that when I select an item and submit the form the validation fails and I get the message "Value is not a valid selection."
Any ideas?
Thanks,
Torsten
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051477#4051477
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051477
18Â years, 10Â months
[JBoss jBPM] - PropertyAccessException: could not get field value by reflec
by meghanai_99
Hello,
When I deploy BPEL definition zip file, I am getting following exception -
13:44:03,371 INFO [BpelReader] read wsdl document: resources/xml/SystemWorkflow
| .wsdl
| 13:44:07,433 INFO [BpelReader] read wsdl document: ServicePLWrapper.wsdl
| 13:44:07,902 INFO [BpelReader] read bpel document: SystemWorkflow.bpel
| 13:44:31,808 ERROR [STDERR] org.hibernate.PropertyAccessException: could not get
| a field value by reflection getter of com.ibm.wsdl.MessageImpl.parts
| at org.hibernate.property.DirectPropertyAccessor$DirectGetter.get(Direct
| PropertyAccessor.java:35)
| at org.hibernate.tuple.entity.AbstractEntityTuplizer.getPropertyValue(Ab
| stractEntityTuplizer.java:277)
| & nbsp; at org.hibernate.persister.entity.AbstractEntityPersister.getPropertyVal
| ue(AbstractEntityPersister.java:3514)
| at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
| at org.hibernate.event.def.AbstractSaveEventListener.cascadeBeforeSave(A
| bstractSaveEventListener.java:412)
| at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplic
| ate(AbstractSaveEventListener.java:261)
| at org.hibernate.event.def.AbstractSaveEventListener.performSave(Abstrac
|
Caused by: java.lang.IllegalArgumentException
| at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(UnsafeFieldAccessorImpl
| .java:37)
| at sun.reflect.UnsafeObjectFieldAccessorImpl.get(UnsafeObjectFieldAccess
| orImpl.java:18)
| at java.lang.reflect.Field.get(Field.java:357)
| at org.hibernate.property.DirectPropertyAccessor$DirectGetter.get(Direct
| PropertyAccessor.java:32)
| ... 82 more
|
What can cause this error? It happens on hibernate session.save() call. The wsdl4j jar contains the said class and the class has getParts() getter method returning java.util.map.
Thanks,
Meghana
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051473#4051473
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051473
18Â years, 10Â months
[JBoss Portal] - Re: Help: Instance of a existent portlet in my new container
by engela
You need to add a "NavigationWindow" which references an instance of the NavigationPortlet and is placed into the region "navigation" to your page description:
| <?xml version="1.0" encoding="UTF-8"?>
| <deployments>
| <deployment>
| <if-exists>overwrite</if-exists>
| <parent-ref>default</parent-ref>
| <page>
| <page-name>HelloWorldPContainerPage</page-name>
| <window>
| <window-name>NavigationPortletWindow</window-name>
| <instance-ref>NavigationPortletInstance</instance-ref>
| <region>navigation</region>
| <height>0</height>
| <!-- keep portal and page properties for this window -->
| <properties>
| <!-- use the window renderer from the emptyRenderer renderSet -->
| <property>
| <name>theme.windowRendererId</name>
| <value>emptyRenderer</value>
| </property>
| <!-- use the decoration renderer from the emptyRenderer renderSet -->
| <property>
| <name>theme.decorationRendererId</name>
| <value>emptyRenderer</value>
| </property>
| <!-- use the portlet renderer from the emptyRenderer renderSet -->
| <property>
| <name>theme.portletRendererId</name>
| <value>emptyRenderer</value>
| </property>
| </properties>
| </window>
| <window>
| <window-name>HelloWorldPortletWindow</window-name>
| <instance-ref>HelloWorldPortletInstance</instance-ref>
| <region>center</region>
| <height>1</height>
| </window>
| </page>
| </deployment>
| </deployments>
|
For an example have a look at:
jboss-portal.sar\portal-samples.war\WEB-INF\default-object.xml
Anette
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051463#4051463
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051463
18Â years, 10Â months