[JBoss Seam] - Re: Cannot find the entityconverter taglib
by jeffconstantin
I have this working except for one problem. I get my <s:selectItems> populated in the "create form" but some "250-char-serialized-string" is save in the database for my "car" column. I am sure I am missing a converter somewhere but I don't know what or where it goes.
Your entityConverter works great. It takes my Entity ( SeamtestCars ) and builds the correct options as string. I am guessing hibernate is controlling the insert/update and it is not converting my "car" column to a string before inserting.
Am I way off base? Any suggestion?
Situation SEAM-GEN application with 2 tables: ( no foreign-key enabled )
Oracle Database 9i
1. SEAMTEST ( column called car ) PK= ID
| 2. SEAMTEST_CARS ( id ) PK = ID
|
I have added the code as suggested in your example.
IN: components.xml
<!-- this will create the ejb objects for the selectItems -->
| <framework:entity-query name="cars" ejbql="select d from SeamtestCars d" />
|
IN: Seamtest.java
@ManyToOne
| private SeamtestCars car = new SeamtestCars();
|
| getters and setters....
|
IN: editSeamtest.jsp
<h:selectOneMenu value="#{seamtestEditor.instance.car}" id="car">
| <s:selectItems value="#{cars.resultList}" var="car" label="#{car.name}" />
| <ec:convertEntity />
| </h:selectOneMenu>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028138#4028138
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028138
19Â years, 1Â month
[Installation, Configuration & Deployment] - Re: Deployment ordering
by jaikiran
Dimitris ,
I am bit confused after reading the Forum Reference (http://www.jboss.com/index.html?module=bb&op=viewtopic&t=78376&postdays=0...) mentioned in that JIRA.
In one of the posts in that forum reference, you mention that
anonymous wrote : Maybe a simpler/better solution is to add in jboss-app.xml a new tag:
|
| <module-order>implicit|strict</module-order>
|
| with 'implicit' being the legacy behaviour, and 'strict' work by simply putting the the application.xml & jboss-app.xml modules in that order.
|
| If modules from the 2 descriptors need to be arbitrarily mixed (e.g. a -ds.xml before an ejb jar), they can always be moved to jboss-app.xml (we already support this).
|
| The only restriction is a module must appear only once in the 2 descriptors.
|
| This is essentially the same with adding a new list (like unified-order) but we reuse the existing one, and add the extra flag to specify what we want.
|
| On the other hand, I would argue that 'strict' should be the default, which is the "correct" behaviour, especially in the absence of a jboss-app.xml descriptor. If an old deployment gets broken, they can simply add the 'implicit' flag.
1) Has this been implemented, in the jboss-app dtd at http://www.jboss.org/j2ee/dtd/jboss-app_4_0.dtd i could not find a mention about this.
2) Considering the following entries in application.xml and jboss-app.xml:
application.xml:
<module>
| <ejb>myEjb.jar</ejb>
| </module>
jboss-app.xml:
| <module>
| <har>myHar.har</har>
| <module>
Which module will be loaded first when:
a) module-order is 'strict'
b) module-order is 'implicit'
Thanks.
-Jaikiran
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028135#4028135
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028135
19Â years, 1Â month