Hi!

I am trying to do a very basic test with unidirectional one-to-one and
one-to-many relationships, and doing something wrong.  I have useed "mvn
appfuse:gen" to generate the CRUD actions, UI and tests.

I have three models, the basic definitions uploaded.  First I has problems
with CLEAN_INSERT and foreign keys, so I added
"&sessionVariables=FOREIGN_KEY_CHECKS=0" to my jdbc.url property.  This
got further, but still the "delete()" tests are failing, still with foreign
key constraints http://www.nabble.com/file/p13458251/Rate.java Rate.java 
http://www.nabble.com/file/p13458251/AdmissionCategory.java
AdmissionCategory.java 
http://www.nabble.com/file/p13458251/DiscountCategory.java
DiscountCategory.java .  So, I just ran with "mvn -Dmaven.test.skip=true"
and ran the webapp.

If I click "Rate List" in the menu, a table shows up.  But if I click any
record, or click "Add" button, I get:

Value binding '#{rateForm.rate.admissionCategory}'of UISelectItems with
component-path {Component-Path : [Class:
org.ajax4jsf.framework.ajax.AjaxViewRoot,ViewId: /rateForm.xhtml][Class:
javax.faces.component.html.HtmlForm,Id: rateForm][Class:
javax.faces.component.html.HtmlPanelGrid,Id: j_id2][Class:
javax.faces.component.html.HtmlSelectOneMenu,Id: admissionCategory][Class:
javax.faces.component.UISelectItems,Id: j_id4]} does not reference an Object
of type SelectItem, SelectItem[], Collection or Map but of type : null

If I click on "AdmissionCategory List" or "DiscountCategory List" I get:
Caused by: javax.faces.el.EvaluationException: ELResolver cannot handle a
null b
ase Object with identifier 'errors'
        at
org.apache.myfaces.el.VariableResolverImpl.resolveVariable(VariableRe
solverImpl.java:76)
        at
org.springframework.web.jsf.DelegatingVariableResolver.resolveVariabl
e(DelegatingVariableResolver.java:108)
        at
org.apache.myfaces.el.convert.VariableResolverToELResolver.getValue(V
ariableResolverToELResolver.java:93)
        ... 126 more
Caused by: javax.el.PropertyNotFoundException: ELResolver cannot handle a
null b
ase Object with identifier 'errors'
        at com.sun.el.lang.ELSupport.throwUnhandled(ELSupport.java:63)
        at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:88)
        at
com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:206)

        at
org.apache.myfaces.el.VariableResolverImpl.resolveVariable(VariableRe
solverImpl.java:67)
        ... 128 more
2007-10-28 16:34:12.214::WARN:  Nested in org.apache.jasper.JasperException:
jav
ax.el.ELException: ELResolver cannot handle a null base Object with
identifier '
errors':

Any help would be appreciated.  Is there a full example with one-to-one and
one-to-many relationships?

Thanks!

Shash
-- 
View this message in context: 
http://www.nabble.com/Need-help-with-basic-relationship---JPA-%2B-MySQL-%2B-JSF-tf4708504s2369.html#a13458251
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to