[JBoss Seam] - Re: Seam Tools, Project Structures, and IDEs
by tony.herstellï¼ gmail.com
I work in MyEclipse (as I found eclipse sucked!) and didn't really know of any others at the time.
I started the personal IceFaces enabled project before the SeamGen was as good as it is now; but I really don't like having a build/deploy step so try to avoid Ant scripts (which is bad I suppose) :( also this is a problem as all the examples are ant based and configured in an odd way for moving into a "normal" project structure.
I use exploded deployment (as MyEclipse does it very well) and with the moves in Seam (see Michael Yuans blog) to get hotdeploy working better, it will need a server re-start less often.
I never run an ant script (I have included an awful one for people that needed to run ant build on the project) during the code/try cycle.
I have three ( J2EE ;) ) projects in MyEclipse
xxxx_ear
xxxx_jar
xxxx_war
The ear references the jar and war modules.
The jars needed in the JAR and WAR that are in the EAR reference them (import jar from workspace) (never have two of same jars in the projects).
Disable MyEclispe from "helping" with application.xml as it gets it wrong (properties on the ear and check to box to tell MyEclipse NOT to manage the application.xml)
Which file went where was discovered by hacking apart a generated .ear from an example!!! so anyone could actually do it!
Anyhow, thats it..
Run Jboss from inside the IDE (one click and no attaching to some Server somewhere!).
Debug directly inside the IDE.
xhtml changes don't require a restart, some code changes do but MyEclipse tells you to do it... and you click the button! - Easy!
MyEclipse are soon to put in Exploded deployments that can pick and choose files (i.e. A test suite of jars for one deploy etc... so that really will make a difference as you can pick.choose files for each deployment [Test, Development, Live etc.]).
I have had a LOT of issues along the way (IceFaces mainly) and they are sorting them out quite quickly now... even getting changes put into Facelets to support their model better!
Since I had to learn, and am still learning, Facelets, EJB3, JSF, Seam, Transactions, IceFaces, etc. etc. etc. it's not that great pretty project... In fact it's organized quite differently to the seam examples but more logical for simple old ME!
But... Send me an email and I can send the whole darn project to you to play with... fix and defects then I would liek to hear about it :)
One day I might ask if it can be added to the wiki here but thats scary!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030019#4030019
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030019
19Â years, 1Â month
[JBoss Seam] - Re: Seam Tools, Project Structures, and IDEs
by gavin.kingï¼ jboss.com
anonymous wrote : We felt that the final incarnation of Exadel studio as RHDS would be more in tune with our technology choices of JSF, Seam, Hibernate, Jbpm and probably JBoss.
Yes, of course, but this will take several months of work.
anonymous wrote : However, we are somewhat perplexed as to what type of project to use.
There really are a LOT of advantages to starting with the seam-gen structure. I did a lot of work on things that will take you a while to reproduce if you try to do it all from scratch. (like, weeks of work!)
However, there's nothing magical about it, and other structures can work just as well.
anonymous wrote : We tried starting with an Java Enterprise Application project, but couldn't get Eclipse to deploy it with the jboss-seam.jar & other jars in the root directory of the ear.
Yes, the Eclipse WTP is crap, and doesn't work, AFAICT. They have no concept of an EAR, which is just totally broken and nonsense. I refuse to use this broken stuff.
anonymous wrote : Our only other concern is whether we need to go with an Ant driven project so we can get the benefits of exploded deployments.
Now that I use this stuff every day, I can't imagine not having it.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030018#4030018
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030018
19Â years, 1Â month
[JBoss Seam] - Master/Detail Problem
by gzoller
Hello,
I am having trouble with a Master/Detail relationship between Project/Expense. I have a Project screen containing a list of expenses (<h:dataTable>) and a computed total expense (@Formula field in Project ).
* After adding a new expense I'm redirected back to Project.xhtml but my computed total expense value is wrong...its the old value--until I manually reload the page using the browser.
* Deleting an Expense always works great for some reason--calculated totals updated and display w/o crashing.
* If I edit an expense and redirect back to Project.xhtml sometimes the computed total value is correctly shown and other times I get a Hibernate exception like this:
| 15:52:17,327 ERROR [AbstractFlushingEventListener] Could not synchronize database state with session
| org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [com.paragon.spurs.model.Capex#11]
| at org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:1699)
| (clip)
|
I'm not sure if these are two issues are part of the same problem or not.
Do I need to invalidate objects in Project.xhtml when I redirect back so the read fresh from the db? (If so, how can I do that?)
Am I handling conversation scope right?
>From Project.xhtml (initiate edit and create new Expense)
| <s:button view="/CapexEdit.xhtml"
| id="capex"
| value="Edit"
| propagation="none">
| <f:param name="projectProjectId" value="#{projectHome.instance.projectId}"/>
| <f:param name="capexCapexId" value="#{capex.capexId}"/>
| <f:param name="capexFrom" value="Project.xhtml"/>
| </s:button>
|
| <!-- SNIP! -->
|
| <s:button view="/CapexEdit.xhtml"
| value="Add Capex"
| propagation="begin">
| <f:param name="projectProjectId" value="#{projectHome.instance.projectId}"/>
| <f:param name="capexFrom" value="Project.xhtml"/>
| <f:param name="capexCapexId"/>
| </s:button>
|
Lots more code--Let me know if it would help to see something in particular.
Thanks for any hints--getting a bit warped after several days not being able to get anywhere with this.
Greg
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030010#4030010
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030010
19Â years, 1Â month