Tge id it is set from code Il giorno 12/feb/2014 14.36, "Romain Manni-Bucau [via OpenEJB]" < [email protected]> ha scritto:
> so is it possible you don't use a transaction so add no object? > Romain Manni-Bucau > Twitter: @rmannibucau > Blog: http://rmannibucau.wordpress.com/ > LinkedIn: http://fr.linkedin.com/in/rmannibucau > Github: https://github.com/rmannibucau > > > > 2014-02-12 14:28 GMT+01:00 mauro2java2011 <[hidden > email]<http://user/SendEmail.jtp?type=node&node=4667721&i=0>>: > > > > Yes > > Il giorno 12/feb/2014 14.25, "Romain Manni-Bucau [via OpenEJB]" < > > [hidden email] <http://user/SendEmail.jtp?type=node&node=4667721&i=1>> > ha scritto: > > > >> Hi > >> > >> is it the same instance of session bean? > >> Romain Manni-Bucau > >> Twitter: @rmannibucau > >> Blog: http://rmannibucau.wordpress.com/ > >> LinkedIn: http://fr.linkedin.com/in/rmannibucau > >> Github: https://github.com/rmannibucau > >> > >> > >> > >> 2014-02-12 14:19 GMT+01:00 mauro2java2011 <[hidden email]< > http://user/SendEmail.jtp?type=node&node=4667718&i=0>>: > >> > >> > >> > Hi all. > >> > I have a bean sessionscoped with a List<MyType> list = new > >> > ArrayList<MyType>(); > >> > > >> > Into a @PostConstruct annotated method i add 4 instances and from the > >> get i > >> > visualize into a table jsf. > >> > > >> > I create a new page wiyh a form that set the properties of the > instance > >> of > >> > current object . > >> > With a command button i link a method that add the curret object at > >> > arraylist and return at page with datatable but when i return i view > >> only 4 > >> > initials object of ArrayList generated wirh postcinstruct method. > >> > > >> > Into the method of controller addCurrent(){ > >> > > >> > list.add(current) ; > >> > return "listpage"; > >> > } > >> > > >> > // current it is a field into the same controller . > >> > //current is instance of MyType. > >> > > >> > > >> > > >> > > >> > > >> > -- > >> > View this message in context: > >> > http://openejb.979440.n4.nabble.com/add-element-at-ArrayList-not-work-tp4667717.html > >> > Sent from the OpenEJB User mailing list archive at Nabble.com. > >> > >> > >> ------------------------------ > >> If you reply to this email, your message will be added to the > discussion > >> below: > >> > >> > http://openejb.979440.n4.nabble.com/add-element-at-ArrayList-not-work-tp4667717p4667718.html > >> To unsubscribe from add element at ArrayList not work, click here< > >> . > >> NAML< > http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > > >> > > > > > > > > > > -- > > View this message in context: > http://openejb.979440.n4.nabble.com/add-element-at-ArrayList-not-work-tp4667717p4667719.html > > Sent from the OpenEJB User mailing list archive at Nabble.com. > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://openejb.979440.n4.nabble.com/add-element-at-ArrayList-not-work-tp4667717p4667721.html > To unsubscribe from add element at ArrayList not work, click > here<http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4667717&code=bWF1cm8yamF2YTIwMTFAZ21haWwuY29tfDQ2Njc3MTd8LTExMTcxODc2MjU=> > . > NAML<http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://openejb.979440.n4.nabble.com/add-element-at-ArrayList-not-work-tp4667717p4667725.html Sent from the OpenEJB User mailing list archive at Nabble.com.
