[ROO-3240] dependency.tagx generates ERROR when exists a field with name different of the reference object. Created: 17/Aug/12  Updated: 27/Dec/13

Status: Open
Project: Spring Roo
Component/s: WEB MVC
Affects Version/s: 1.2.2.RELEASE
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Raphael Vilela Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: mvc
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

personnal computer


Attachments: JPEG File Error screen.jpg     Zip Archive ErrorDemoProject_2012-11-21.zip    
Issue Links:
Duplicate
is duplicated by ROO-3442 Creation page throws an internal serv... Resolved

 Description   

dependency.tagx generate ERROR when exists a field with name different of the reference object.

— FIELD REFERENCE
@ManyToOne
@NotNull
private Agent creator;

– CODE OF dependency.tagx
<field:reference field="${dependency[0]}" id="${fn:escapeXml(id)}_${dependency[0]}" path="/${dependency[1]}"/>

– GENERATED ERROR
javax.servlet.jsp.JspTagException: No message found under code 'label_com_vilela_sponsorshipapp_domain_enrollment_agent' for locale 'en_US'.

– field label created
label_com_vilela_sponsorshipapp_domain_enrollment_creator=Creator



 Comments   
Comment by Alan Stewart [ 20/Nov/12 ]

Would you please attach a simple project demonstrating the error? Use the Roo 'backup' command.

Comment by Raphael Vilela [ 21/Nov/12 ]

Attached

Comment by Alan Stewart [ 11/Dec/12 ]

Changing to an improvement as it appears this is not supported as yet. You will need to use the same name for now

Generated at Mon Jan 27 05:39:21 UTC 2020 using Jira 7.13.8#713008-sha1:1606a5c1e7006e1ab135aac81f7a9566b2dbc3a6.