I am using spring framework and i have customized my jsp also...
what you are saying( your understanding ) is also correct...
Command object is my model object.
I am also able to save updated value for the entries generated by maven...
dusty wrote:
>
> A couple of questions to help me understand your problem:
>
> 1) Are you using Struts? What web framework are you using.
> 2) Have you customized your jsp form or the action the form posts to?
>
> Also, help me understand your problem but confirming my understanding.
>
> You have a model object for which you used the appfuse plugin to generate
> the necessary Dao,Service and Web plumbing to do basic CRUD functionality.
> As part of that generation, the appfuse plugin has created some sample
> data and inserted rows via dbunit for your model object.
>
> You fire up jetty and go to the list page for your model object and select
> to create a new model object. The form displays and you fill out all of
> the text fields (references like your @ManyToMany will not show up on a
> generated form). You post the form to the action and it claims to have
> saved the new object. You return to the list page and you have an entry
> for your new object but all of the values in the list are blank. You look
> in the database and you see a new row, but only the _id column is
> populated. Correct?
>
> When you refer to your command object do you mean your model or your web
> action? When you edit the records inserted by Maven can you save them
> with the updated values? Can you configure hibernate to show_sql=true to
> see what its trying to insert?
>
> Losing field values when you post to the server could be a number of
> things. I can be a field naming issue in the web form, it can be an
> interceptor problem on the web framework applying your field values to the
> model object. I am not sure about what effect a leading _ in your field
> name would do. I will have to run a test to see if that breaks anything.
>
>
>
>
> Msarda wrote:
>>
>> Here is my model object....I have generated only this object....(also two
>> other model objects for many to many relationship)
>> Every thing else i got generated by maven mvn appfuse:install command.
>> i think this may be because of underscore (_) before variable name...but
>> i have to use in this way only...
>>
>> package au.com.suncorp.model;
>>
>> import org.appfuse.model.BaseObject;
>>
>>
>> import javax.persistence.Entity;
>> import javax.persistence.GeneratedValue;
>> import javax.persistence.GenerationType;
>> import javax.persistence.Id;
>> import javax.persistence.ManyToMany;
>>
>> import java.util.Date;
>> import java.util.Set;
>>
>> @Entity
>> public class Requestdao extends BaseObject{
>>
>> private Long _id;
>> private String _title;
>> private String _requestorsName;
>> private int _requestorsExtensionNo;
>> private String _requestorsEmailId;
>> private String _LOB;
>> private String _iTSolutionLeadsName;
>> private int _iTSolutionLeadsExtensionNo;
>> private String _iTSolutionLeadsEmailId;
>> private String _typeofRequest;
>> private String _typeOfReqSupportNo;
>> private String _partOfProgram;
>> private String _descriptionOfWorkRequired;
>> private String _relatedProjectProgramActivity;
>> private String _quantifiedFinancialBenefits;
>> private String _otherBenefits;
>> private String _funding;
>> private String _impactIfChangeIsNotMade;
>> private String _reasonWorkRequired;
>> private String _priority;
>> private String _timingIssues;
>> private String _alternativeSolutions;
>> private Date _priorityDate;
>> private Set<WebAppsSystem> _systems;
>> private Set<AreasImpacted> _areasImpacted;
>>
>>
>>
>> @Id @GeneratedValue(strategy=GenerationType.AUTO)
>> public Long get_id() {
>> return _id;
>> }
>> public void set_id(Long _id) {
>> this._id = _id;
>> }
>>
>>
>>
>> public String get_title() {
>> return _title;
>> }
>> public void set_title(String _title) {
>> this._title = _title;
>> }
>> public String get_requestorsName() {
>> return _requestorsName;
>> }
>> public void set_requestorsName(String name) {
>> _requestorsName = name;
>> }
>> public int get_requestorsExtensionNo() {
>> return _requestorsExtensionNo;
>> }
>> public void set_requestorsExtensionNo(int extensionNo) {
>> _requestorsExtensionNo = extensionNo;
>> }
>> public String get_requestorsEmailId() {
>> return _requestorsEmailId;
>> }
>> public void set_requestorsEmailId(String emailId) {
>> _requestorsEmailId = emailId;
>> }
>> public String get_LOB() {
>> return _LOB;
>> }
>> public void set_LOB(String _lob) {
>> _LOB = _lob;
>> }
>> public String get_iTSolutionLeadsName() {
>> return _iTSolutionLeadsName;
>> }
>> public void set_iTSolutionLeadsName(String solutionLeadsName) {
>> _iTSolutionLeadsName = solutionLeadsName;
>> }
>> public int get_iTSolutionLeadsExtensionNo() {
>> return _iTSolutionLeadsExtensionNo;
>> }
>> public void set_iTSolutionLeadsExtensionNo(int solutionLeadsExtensionNo)
>> {
>> _iTSolutionLeadsExtensionNo = solutionLeadsExtensionNo;
>> }
>> public String get_iTSolutionLeadsEmailId() {
>> return _iTSolutionLeadsEmailId;
>> }
>> public void set_iTSolutionLeadsEmailId(String solutionLeadsEmailId) {
>> _iTSolutionLeadsEmailId = solutionLeadsEmailId;
>> }
>>
>> public String get_typeofRequest() {
>> return _typeofRequest;
>> }
>> public void set_typeofRequest(String request) {
>> _typeofRequest = request;
>> }
>> public String get_descriptionOfWorkRequired() { return
>> _descriptionOfWorkRequired;
>> }
>> public void set_descriptionOfWorkRequired(String ofWorkRequired) {
>> _descriptionOfWorkRequired = ofWorkRequired;
>> }
>> public String get_relatedProjectProgramActivity() {
>> return _relatedProjectProgramActivity;
>> }
>> public void set_relatedProjectProgramActivity(String
>> projectProgramActivity) {
>> _relatedProjectProgramActivity = projectProgramActivity;
>> }
>>
>> public String get_quantifiedFinancialBenefits() {
>> return _quantifiedFinancialBenefits;
>> }
>> public void set_quantifiedFinancialBenefits(String financialBenefits) {
>> _quantifiedFinancialBenefits = financialBenefits;
>> }
>> public String get_otherBenefits() {
>> return _otherBenefits;
>> }
>> public void set_otherBenefits(String benefits) {
>> _otherBenefits = benefits;
>> }
>> public String get_funding() {
>> return _funding;
>> }
>> public void set_funding(String _funding) {
>> this._funding = _funding;
>> }
>>
>> public String get_impactIfChangeIsNotMade() {
>> return _impactIfChangeIsNotMade;
>> }
>> public void set_impactIfChangeIsNotMade(String ifChangeIsNotMade) {
>> _impactIfChangeIsNotMade = ifChangeIsNotMade;
>> }
>>
>> public String get_reasonWorkRequired() {
>> return _reasonWorkRequired;
>> }
>> public void set_reasonWorkRequired(String workRequired) {
>> _reasonWorkRequired = workRequired;
>> }
>> public String get_priority() {
>> return _priority;
>> }
>>
>> public void set_priority(String _priority) {
>> this._priority = _priority;
>> }
>> public String get_timingIssues() {
>> return _timingIssues;
>> }
>> public void set_timingIssues(String issues) {
>> _timingIssues = issues;
>> }
>>
>> public String get_alternativeSolutions() {
>> return _alternativeSolutions;
>> }
>> public void set_alternativeSolutions(String solutions) {
>> _alternativeSolutions = solutions;
>> }
>> public String toString() { return null; }
>> public boolean equals(Object o) { return false; }
>> public int hashCode() { return 0; }
>> public String get_partOfProgram() {
>> return _partOfProgram;
>> }
>> public void set_partOfProgram(String ofProgram) {
>> _partOfProgram = ofProgram;
>> }
>> public Date get_priorityDate() {
>> return _priorityDate;
>> }
>> public void set_priorityDate(Date date) {
>> _priorityDate = date;
>> }
>> public String get_typeOfReqSupportNo() {
>> return _typeOfReqSupportNo;
>> }
>> public void set_typeOfReqSupportNo(String ofReqSupportNo) {
>> _typeOfReqSupportNo = ofReqSupportNo;
>> }
>> @ManyToMany
>> public Set<AreasImpacted> get_areasImpacted() {
>> return _areasImpacted;
>> }
>> public void set_areasImpacted(Set<AreasImpacted> impacted) {
>> _areasImpacted = impacted;
>> }
>> @ManyToMany
>> public Set<WebAppsSystem> get_systems() {
>> return _systems;
>> }
>> public void set_systems(Set<WebAppsSystem> _systems) {
>> this._systems = _systems;
>> }
>>
>> }
>>
>>
>>
>>
>>
>> mraible wrote:
>>>
>>> I don't understand your problem very well. Maybe you can post some
>>> code that will make things easier to understand? You also might
>>> consider writing a unit test for your issue to see what tier it's
>>> happening in.
>>>
>>> Matt
>>>
>>> On 6/28/07, Msarda <[EMAIL PROTECTED]> wrote:
>>>>
>>>> I have one model object....when i am trying to save new entry in
>>>> table...i am
>>>> getting everything null in the command object...
>>>> But when i am trying to edit automatically generated values by
>>>> maven....i am
>>>> getting those values in command object....
>>>> I don't know whats wrong happening when trying to add new row....
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/Command-object-null-tf3997586s2369.html#a11353330
>>>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>
>>>>
>>>
>>>
>>> --
>>> http://raibledesigns.com
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/Command-object-null-tf3997586s2369.html#a11354881
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]