Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2006

Tip: Looking for answers? Try searching our database.

My first actionlistener....

Thread view: 
gbattine - 25 Aug 2006 09:43 GMT
Hi guys,please help me with my doubt.
I'm using jsf and i've created a datatable.The user insert a value in
the first page and in the second page he sees a datatable with a number
of rows equals to its number.
Each row is a form and i've created a class wrapper for the form.
My problem is sending all these forms in a table,adding to each form an
id stored in my application.

Here is my procedure:
At the end of row i've a commandlinks which calls an actionlistener
that stores the inserted row in a list.
If i do this for each row i will have a list which every row to
insert....
At the end of page i've a submit botton that have to perform the insert
queries,adding a specific id,common for each rows..
Help me,it's my first actionListener and datatable....

Here is my actionListener
//this is the list i've created
private List saveTable=new ArrayList();
public void editBiosample(ActionEvent event) {
    FacesContext facesContext=FacesContext.getCurrentInstance();
    setBiosampleItem((Biosample) getBiosampleDataTable().getRowData());
    saveTable.add(getBiosampleItem());
    facesContext.addMessage(null,new
FacesMessage(FacesMessage.SEVERITY_WARN,"Esperimento aggiunto con
successo.","Esperimento aggiunto."));
}

When i click on command link datatable is redisplayed without values
and without showing my message...can you help me?
Is  correct this actionListener?
Once i've obtained the saveTable list,how can i insert it in a
query,adding the id?
Please help me...
Andrew Thompson - 25 Aug 2006 11:10 GMT
> Hi guys,please help me with my doubt.

Perhaps you can help me unsderstand why you have
suddenly begun multi-posting.  I had not noticed you
do it before, but suddenly there identical are posts
from you, to both c.l.j.p. and c.l.j.help.

Please stick to just one group in future, or figure
how to cross-post.

[ This X-posted to c.l.j.p/c.l.j.h. with follow-ups to c.l.j.p. only. ]

Andrew T.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.