pojo - What is a good way to do multi-row updates in struts (with struts live)? -


Without using DynaForm and its cohorts

I would like to use a POJO data transfer object, e.g. , Person:

  public class person {Private Long ID; Private string first name; Personal string last name;  

We will have Straits in Live Action Form:

  Public Class PersonUpdateForm SLADDForm {String enhances organization; Person [person]; // All people will be changed in this organization;  

What will happen and can be updated further at the same time (stupid, but a customer can wish it) // getters / setters + index satars / corresponding HTML: text Does this kind of tag look like JSP to allow? If I switch to a list person area and use a lazy-loading list (in a commerce-archive) then how can I change Thingsgate?

It seems that there is no good way to do this struts-1.2 (.9?)

All help is greatly appreciated !!! If you need more context please let me know and I can provide something.

OK, I believe that is detected! The move is to get the indexed element once for your index when the getPersons () method is called by the populating method of BeanUtils. This code has just been completed, but I got positive results. It's 3:30 and I'm stuck in a while. Do not know any answer, who wants to sync me with a trout in the head. For my own ignorance ... I have only blame them!

  Public listing & lt; Person & gt; GetPersons () {persons.add (new person ()); // BeanUtils need to know that there are a large number of returnees in the list; }  

Add your indexed recipients and senders too.

I remember how I actually did it. Individuals listed above will have to start from persons with maximum size rather than transfer to you. The reason for this is that the list is first converted into an array, then the properties are set to each element of the array, and finally the list is set back using the setpersons (...). Therefore, the sluggish-loading inventory will not work with StreLive Live using the implementation or similar approach (as shown above). Here you need to give more details:

  Private list & lt ; Person & gt; Person = new arreelist & lt; Person & gt; (MAX_PEOPLE); Add public (new person ());} public list & lt; person & gt; GetPeopleSubmitted () {list & lt; public Iconstrator (for (int i = 0; i & lt; MAX_PEOPLE; i ++) ; Person & gt; copy = new arreelist & lt; person & gt; (); for (person p: individuals) {if (p.getId ()! = Null) copy.add (p); // id submission Will be set for elements; // will have a blank id with another) Copy of return; // Returned to the present only - empty template not}  

This is basically what you have to do! But the real question is who is using Straits ?!


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -