[JBoss Seam] - -Seam-gen PropertyNotFoundException after generate-entities
by nharrison
Hi,
I'm evaluating Seam and trying to deploy a simple app using seam-gen with a preexisting MySQL database (also tried the same with MSSQL).
I've tried to deploy with JBoss 4.2.0 and 4.2.2 with both seam 1.2 and 2.0CR3.
The empty shell seam-gen runs fine. After running "generate-entites" the , generated entities match the DB schema and the pages are created. But upon accessing the home page a PropertyNotFound exception occurs:
| javax.el.PropertyNotFoundException: Property 'sApplications' not found on type shippingapp.SApplicationsList_$$_javassist_0
| at javax.el.BeanELResolver$BeanProperties.get(BeanELResolver.java:193)
The problem occurs when an <s:link> tag is rendered in the menu. This links to a page called: SApplicationsList.xhtml (corresponding to the SApplictions.java entity - see DDL below). Along with the xhtml page there is a SApplicationsList.page.xml file. The problem occurs there when the following is rendered, specifically, when the sApplicationsList.sApplications.shipmentCode EL is processed. This seems to suggest an issue with EJB3 / Hibernate... but I'm new to this..
<?xml version="1.0" encoding="UTF-8"?>
| <page xmlns="http://jboss.com/products/seam/pages"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.0.xsd">
|
| <param name="firstResult" value="#{sApplicationsList.firstResult}"/>
| <param name="order" value="#{sApplicationsList.order}"/>
| <param name="from"/>
| <param name="shipmentCode" value="#{sApplicationsList.sApplications.shipmentCode}"/>
| <param name="projectBrief" value="#{sApplicationsList.sApplications.projectBrief}"/>
|
| </page>
DROP TABLE IF EXISTS `dbo`.`s_applications`;
| CREATE TABLE `dbo`.`s_applications` (
| `applicationId` int(10) unsigned NOT NULL AUTO_INCREMENT,
| `shipmentCode` varchar(45) DEFAULT NULL,
| `dateInitialContact` datetime DEFAULT NULL,
| `projectBrief` text,
| PRIMARY KEY (`applicationId`)
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Any clues?
Thanks,
Neville
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102053#4102053
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102053
18 years, 8 months
[JBoss Seam] - Failed Validation Reload
by davidfed
Seam 1.2.1, JBoss 4.0.5
I see that when a form page fails validation or an action method returns null that the conversational parameters on the URL disappear.
e.g.
http://localhost/edit/provider.seam?cid=5&clr=true
becomes
http://localhost/edit/provider.seam
when the page is reloaded with validation messages.
The same is true when I return null from an action of a submit button.
Generally speaking, the pages still appear to behave properly, but this doesn't work so well in the back stack because we are using non-cached pages to keep the data presentation accurate and that doesn't work so well when the conversation id isn't present.
I've gotten around the problem in the case of an action method by returning a string which triggers a pages.xml action handler that redirects the page to itself.
return "reload";
<page view-id="/edit/*">
| <navigation>
| <rule if-outcome="reload">
| <redirect/>
| </rule>
| </navigation>
| </page>
This works but means that I can't conditionally use @End annotations because I'm never returning null. And it makes our code inconsistent since we use annotations for everything else.
This also doesn't solve the failed validation case. And leads to inconsistent browser behavior as the failed validation adds a page to the history and the redirect technique doesn't.
So is this all expected behavior? Is there a way to get the parameters in the URL more consistently? Especially the validation case since I have a work around for the action case.
thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102050#4102050
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102050
18 years, 8 months
[JBoss jBPM] - Re: I am probably missing something but ....
by Hurtdp
Ronald,
Thanks for the quick response and I am sorry if my description is a little lacking.
Exactly what happens at each step is going to vary - our system will have to support a lot of different kinds of steps - but in general it is just adding additional information to the request.
The main issue is that the requests should be able to proceed through the workflow instance all together, in groups or individually depending on the operating procedures and available staff in place. So in simple terms of
A->B->C->D
500 requests are created at step A and move to B.
A->B(500)->C->D
50 are processed (information added) at B and move to C
A->B(450)->C(50)->D
Some time later 10 of the 50 at C are processed and 100 at B are processed
A->B(350)-C(140)->D(10)
This would continue (any number of requests getting processed at any step at any time) until all have been processed or they are canceled.
I hope this makes sense.
Dave
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102049#4102049
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102049
18 years, 8 months
[JBoss Seam] - Custom Converter
by terryb
I have simple jsf converter, which works fine and throws ConverterException(facesMsg) exception when conversion failes.
However, when exception is thrown Seam debug page comes up rather than faces message being show on jsf page using h:messages tag ?
| MyConverter.java
| ...
| if (conversionFailed) {
| FacesMessage facesMsg = new FacesMessage("Conversion error.", String.format("Invalid member status %s.", ((String) value)));
| facesMsg.setSeverity(FacesMessage.SEVERITY_ERROR);
| FacesMessages.instance().add(facesMsg);
|
| throw new ConverterException(facesMsg);
| }
|
|
| JSF Page
| ...
| <h:messages id="globalMessages" globalOnly="true" layout="table" errorClass="message-error" infoClass="message-info"/>
| ...
| ...
| <s:span id="source">
| <h:outputText value="#{clientHome.instance.source}" converter="#{onlineConverters.memberSource}"></h:outputText>
| </s:span>
| ...
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102042#4102042
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102042
18 years, 8 months