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 / May 2007

Tip: Looking for answers? Try searching our database.

JSF dataTable editing

Thread view: 
jeffotn@gmail.com - 04 May 2007 18:38 GMT
I have a JSF application where a dataTable has multiple editable
options (inputText, SelectBox, CheckBox, etc)

I want to capture all of changes for these values when I submit to my
back-end bean.

This does not seem to be happening?

Further more, I really only want to work with those records in the
dataTable that have have been check with the CheckBox.

Any Thoughts, Comments,
Thanks
SadRed - 05 May 2007 05:07 GMT
On May 5, 2:38 am, "jeff...@gmail.com" <jeff...@gmail.com> wrote:
> I have a JSF application where a dataTable has multiple editable
> options (inputText, SelectBox, CheckBox, etc)
[quoted text clipped - 9 lines]
> Any Thoughts, Comments,
> Thanks

Your JSF view or faces-confit.xml is not properly written in terms of
your backing bean, I suppose.
jeffotn@gmail.com - 07 May 2007 19:24 GMT
> On May 5, 2:38 am, "jeff...@gmail.com" <jeff...@gmail.com> wrote:
>
[quoted text clipped - 14 lines]
> Your JSF view or faces-confit.xml is not properly written in terms of
> your backing bean, I suppose.

After debugging I made some changes... I guess the question is if I
follow the JSF model with a session scope or request scope binding
bean, when i post, the JSF model should bind an changes to any Item in
the collection modified by the web end user right?  My thinking is
that since I want to work with those elements where the data changed,
that I would have to look at my select boxes to see if they have been
check to identify which records I want to work with.

I am just looking for validation on this process, I am familiar with
struts and JSF appears to be very closely related in principles.

Thanks
jeffotn@gmail.com - 14 May 2007 23:06 GMT
> On May 5, 2:38 am, "jeff...@gmail.com" <jeff...@gmail.com> wrote:
>
[quoted text clipped - 14 lines]
> YourJSFview or faces-confit.xml is not properly written in terms of
> your backing bean, I suppose.

I have my backen bean working correctly now, and I have 1 last issue.
I have a collection of 100 records paginated 20 records per page.
When I select the check box, I can get a sublist of elements the user
wants to perform updates on based on those that are checked.  However,
when I check an object and then use the paginate controls, the
checkbox is check on that page?  Wierd since its element selected =
false on all elements on for the next page.  Any thoughts?


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.