[JBoss Seam] - Re: Design Question and Seam/JSF question
by jkrupka
Something else I just noticed, on the request that seems to go to the wrong page, the following line gets printed to the console:
"[HtmlRendererUtils] There should always be a submitted value for an input if it is rendered, its form is submitted, and it is not disabled or read-only."
Not sure if this has anything to do with it or not..
Here's part of the code for the seam component, the Editor for what would be table B in the hierarchy:
| @Name("eTStatusEditor")
| @Stateful
| @Interceptors(SeamInterceptor.class)
| public class ETStatusEditorBean implements ETStatusEditor {
|
| @In(create = true)
| private EntityManager entityManager;
|
| @Valid
| private ETStatus instance = new ETStatus();
|
| @TransactionAttribute(NOT_SUPPORTED)
| @Out(scope=ScopeType.CONVERSATION, required = false, value="parentEtStatus")
| public ETStatus getInstance() {
|
| initStatus();
| return instance;
| }
|
| @TransactionAttribute(NOT_SUPPORTED)
| @Begin(join=true)
| private void initStatus() {
| if (parentEtMaster != null) {
| instance.getId().setPartkey(parentEtMaster.getPartkey());
| isChild = true;
| }
| else {
| isChild = false;
| }
| }
|
| public void setInstance(ETStatus instance) {
| this.instance = instance;
|
| }
|
| @Out(required = false, scope=ScopeType.CONVERSATION)
| @In(required = false, value="parentEtMaster", scope=ScopeType.CONVERSATION)
| private ETMaster parentEtMaster;
|
| @TransactionAttribute(NOT_SUPPORTED)
| public ETMaster getParentEtMaster() {
| return parentEtMaster;
| }
|
| public void setParentEtMaster(ETMaster eTMaster) {
| this.parentEtMaster = eTMaster;
| }
|
| private boolean isNew = true;
|
| @TransactionAttribute(NOT_SUPPORTED)
| public boolean isNew() {
| return isNew;
| }
|
| public void setNew(boolean isNew) {
| this.isNew = isNew;
| }
|
| private boolean isChild = true;
|
| @TransactionAttribute(NOT_SUPPORTED)
| public boolean isChild() {
| return isChild;
| }
|
| public void setChild(boolean isChild) {
| this.isChild = isChild;
| }
|
| private String doneOutcome = "find";
|
| public void setDoneOutcome(String outcome) {
| doneOutcome = outcome;
| }
|
| private String doneChildOutcome = "doneChild";
|
| public void setDoneChildOutcome(String outcome) {
| doneChildOutcome = outcome;
| }
| ...
| /*this is the action method that gets called the first time the button is hit, but seems to get skipped the second time it's hit...*/
| public String updateAndCreateChild() {
| refreshFinder();
| return "child";
| }
| ....
|
Thanks again, I'm running out of ideas on this one...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965535#3965535
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965535
19 years, 9 months
[JBoss Eclipse IDE (users)] - Re: help on Fibo Tutorial --> tutorial.web.ComputeServlet
by ivan_penuelas
the problem its already solved but another problem appears now there´s a fourum where explain it but a´m having the same cane you help me this is the error:
10:56:44,455 WARN [verifier] EJB spec violation:
Bean : Fibo
Section: 22.2
Warning: The Bean Provider must specify the fully-qualified name of the Java class that implements the enterprise bean's business methods in the <ejb-class> element.
Info : Class not found on 'tutorial.ejb.FiboBean': No ClassLoaders found for: tutorial.ejb.FiboBean
10:56:44,455 ERROR [MainDeployer] Could not create deployment: file:/C:/jboss-4.0.4.GA/server/default/tmp/deploy/tmp35315FiboApp.ear-contents/FiboEJB.jar
org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:610)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@8dab2d02 { url=file:/C:/jboss-4.0.4.GA/server/default/deploy/FiboApp.ear }
deployer: org.jboss.deployment.EARDeployer@1afae45
status: Deployment FAILED reason: Verification of Enterprise Beans failed, see above for error messages.
state: FAILED
watch: file:/C:/jboss-4.0.4.GA/server/default/deploy/FiboApp.ear
altDD: null
lastDeployed: 1155743804299
lastModified: 1155743804205
mbeans:
my .jar file has:
META-INF/
META-INF/MANIFEST.MF
META-INF/ejb-jar.xml
META-INF/jboss.xml
META-INF/FiboBean.class
META-INF/Fibo.class
META-INF/FiboHome.class
and the war:
0 Wed Aug 16 10:56:04 CDT 2006 META-INF/
106 Wed Aug 16 10:56:02 CDT 2006 META-INF/MANIFEST.MF
0 Wed Aug 16 10:56:04 CDT 2006 WEB-INF/
3489 Wed Aug 16 09:41:06 CDT 2006 WEB-INF/web.xml
735 Wed Aug 16 09:41:06 CDT 2006 WEB-INF/jboss-web.xml
0 Wed Aug 16 10:56:04 CDT 2006 WEB-INF/classes/
3067 Wed Aug 16 10:22:14 CDT 2006 WEB-INF/classes/ComputeServlet.class
811 Wed Aug 16 09:43:34 CDT 2006 index.html
best regards!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965530#3965530
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965530
19 years, 9 months