Table in JSP and how to use jsp -Jstl tag - jsp-tags

I have displayed one table in jsp page.Now I want a number attached with every row means displayed serial number as first field with every row.The records are dynamic.how I do that?please help me I am new in jsp page

Related

Delete the last row in the last page LazyDataModel

I have 21 records (N*10 + 1 records) and two pages, each page show max 10 records. When I delete the last record( It means the 1st record of the third page ), the browser will show the 2nd page with no record. If I want to see the record, I had to reload the browser. I want it load to the second page (the previous page). Do anyone have a solution for this? Im using LazyDataModel and JSF. I'm bad at English so sorry.

External Primefaces datatable values

Our application makes use of a fairly large paginated lazy-loaded . In a separate element on the page, I have a <span> with '22800 projects' as a count of total rows, which is subject to change depending on some external form fields on the page and some other things. Unfortunately, that <span> is above the markup for the datatable (before the lazyModel load method runs the query to get the rows+count). What I would like to do is be able to update that <span>'s text with the row count on page load and every other update the datatable makes. Is this possible?

How to add two related forms in a notes view?

Ok,I have a situation where I need to display a view that contains field value from two forms which is connected via a "CVNo" field. At first I thought it was simple and dived in. I added the form names in the view selection formula of the notes view and then created columns and assigned their respective values, but what happened was the output I got from doing so is a very jumbled and cluttered view. Based on my understanding the notes view displayed the column values from each form differently. I don't know how to do this or if this possible in notes view. All help and suggestions and are very appreciated.
In Lotus Notes view you cannot display documents connected to each other by a custom field. The only connection which can be displayed in Lotus Notes view is parent->response document hierarchy.
And please note that you do not create view that displays values from forms. You create view to display field values from documents, which are filtered to be shown in this view.
If you have documents, with field Form, one Form1 and another Form2, then create a view with selection formula:
SELECT Form = "Form1" | Form = "Form2"
Every row in the view represents a document (either with Form1 or Form2 value in the Form field).
And every column may contain a field name or #-formula to evaluate with every shown document to display a value in this column.

How to get the selectManyCheckbox row entire values to the list using JSF and datatables

Select Many Check box items to Cart :
Declare check box first column of data
Declare the command button to the above the data
Once user click the check box current row data add to the list and this list data go to the Cart page
On click the check box current row data add to the list and on submit the button the entire list data go to the Cart page.
Thanks in Advance.
You can use primefaces datatable component for select one or more rows from a table and send this information to everywhere.
Take an example of this in showcase (the datatable have many others options too).

Primefaces p:lightbox being added multiple times when sorting p:datatable

I am using primefaces 3.2 and JSF 2 running on GlassFish 3.1.2 and Java 6.
I have a p:lightbox component inside the column of a p:datatable. Basically, I want the user to be able to click a p:commandbutton in a row and then display some information associated with the current row.
This works fine normally, but if the user clicks on the header for a column to sort the rows, multiple lightboxes will appear when the user next clicks a p:commandbutton to display the lightbox. This is shown in the attached image. Also, not only do multiple lightboxes get appended, but the information no longer corresponds to the row where the p:commandbutton was clicked.
My question is, how can can I get this to work to display lightboxes from inside a p:datatable and still allow the table to be sorted using ajax?
This problem occurs in all 3 versions of the lightbox, even in iframe mode.
It seems that this could be related to a problem other people had with the lightbox and pf 3: http://forum.primefaces.org/viewtopic.php?f=3&t=18184

Resources