[JBoss Seam] - Remove or update entity from a EntityHome.resultList
by erik.d.hellman@gmail.com
Hi,
I'm generating a table with a list of entities. For each row (entity) I put the values in h:inputText and I then have two links (or buttons, tried both), one for updating the entity and one for removing it. Basically this:
| <ui:repeat value="#{workShifts.resultList}" var="ws">
| <tr>
| <td><h:inputText value="#{ws.name}" /></td>
| <td><s:link action="#{workShiftHome.update}" value="Save" /></td>
| <td><s:link action="#{workShiftHome.remove}" value="Remove" /></td>
| </tr>
| </ui:repeat>
|
I've tried setting a parameter for the s:link using f:param with the name workShiftId and value #{ws.id} and workShiftId declared in components.xml. Also, I tried using h:form and h:commandButton, without any success.
I've been looking through the examples and cannot find anything to demostrate how to display a lsit of entities and provide a save or remove button/link for each row.
Anyone know how to do this? Please help. :)
Thanks!
// Erik
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086730#4086730
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4086730
18 years, 9 months
[EJB 3.0] - ejb-ql question (extending the constraint in an outer join)
by jdijkmeijer
Hi,
I would like to rewrite "select * from role r left outer join actor a on (r.id = a.roleid and a.personid=1);" in a ejb-ql form.
Some more background info:
the query intends to serve a usecase for retrieving a many to many relation, modeled in 2 one-to-mny relations and a join table:
a person may performing many roles.
a role might be performed by many persons.
a person having a role is an actor.
database shows like:
| create table person (id, number(10));
| create table role (id, number(10));
| create table actor (personid Number(10), roleid number(10));
|
The query should retrieve ALL roles with, the associated actors if present for a given person.
I first tried a outer left join query together with a where statement but that failed, because not all roles where retrieved or more than the present actors for the particular subject where retrieved. In oracle the query above does what's expected, but i see no way to have a double condition in the join statement in ejb-ql, i'm not even sure its ansi sql.
Any help would be appreciated.
regards,
Jeroen.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086719#4086719
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4086719
18 years, 9 months
jboss hangs
by Asif Iqbal
Hi All
I am trying to start jboss and it hangs. It was working. Few users
have access to the system so not sure what changed
Here is how it gets started
sh -x ./bin/run.sh
[...]
/usr/jdk/jdk1.5.0_11/bin/java -Dprogram.name=run.sh -server -Xms256m
-Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000
-Djava.endorsed.dirs=/opt/jboss-4.0.5.GA/lib/endorsed -classpath
/opt/jboss-4.0.5.GA/bin/run.jar:/usr/jdk/jdk1.5.0_11/lib/tools.jar
org.jboss.Main
00:35:11,577 INFO [Server] Starting JBoss (MX MicroKernel)...
00:35:11,578 INFO [Server] Release ID: JBoss [Zion] 4.0.5.GA (build:
CVSTag=Branch_4_0 date=200610162339)
00:35:11,580 INFO [Server] Home Dir: /opt/jboss-4.0.5.GA
00:35:11,580 INFO [Server] Home URL: file:/opt/jboss-4.0.5.GA/
00:35:11,581 INFO [Server] Patch URL: null
00:35:11,581 INFO [Server] Server Name: default
00:35:11,581 INFO [Server] Server Home Dir: /opt/jboss-4.0.5.GA/server/default
00:35:11,581 INFO [Server] Server Home URL:
file:/opt/jboss-4.0.5.GA/server/default/
00:35:11,581 INFO [Server] Server Log Dir:
/opt/jboss-4.0.5.GA/server/default/log
00:35:11,582 INFO [Server] Server Temp Dir:
/opt/jboss-4.0.5.GA/server/default/tmp
00:35:11,582 INFO [Server] Root Deployment Filename: jboss-service.xml
00:35:11,887 INFO [ServerInfo] Java version: 1.5.0_11,Sun Microsystems Inc.
00:35:11,887 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM
1.5.0_11-b03,Sun Microsystems Inc.
00:35:11,887 INFO [ServerInfo] OS-System: SunOS 5.10,x86
00:35:12,271 INFO [Server] Core system initialized
And it hangs there
--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
18 years, 9 months