Комментарии:
Topic: Full stack javascript - Data Pagination and Filtering
Good day,
If I may humbly ask a little help, any hints, comments and suggestions are very much welcome, thank you in advance for all your help, please see question below, how do I code this?:
/*
Create the `showPage` function
This function will create and insert/append the elements needed to display a "page" of nine students
*/
/*
Create the `addPagination` function
This function will create and insert/append the elements needed for the pagination buttons
*/
// Call functions
👍👍👍
Ответитьgreat video sir
Ответитьthank you sir
ОтветитьI am getting an error in
Calendar cal= new Calendar.getInstance();
What is page parameter
Ответитьhow can we implement filtering on the attributes..lets say out of 20 attributes in the resource, one client need to get 10 attributes and another client need 15 attributes. Is it possible to control what attributes are needed by the client?
ОтветитьHi Kaushik, Thanks a lot for these amazing tutorial videos, it has given quite a clarity along with hands on at its best.
Ответитьkoushnik , خیلی آقایی
ОтветитьI Started a new religion called "Java Brains",
Its the first time in my life that I find a tutorial were every single thing works perfect!
And its much better then courses on Udemy, Thanks !!
when i am trying to do GET method for /messages it's not showng the list of messages even the Status is 200 . Can anyone please tell me what wrong i did
ОтветитьI have learnt many things from your tutorial from my starting carrier... Still continuing... My sincere thanks Koushik
ОтветитьThank you so much. I have a question. What about if in the service when you retrieve all messages, the amount of messages is very big. Is this logic, Hibernate retrieves all the messages and then shows only the messages by requested year?
ОтветитьHi Sir,
I used the condition like :- " if(start + size > 0)
" and I am getting proper response for all the scenarios.
Hope its correct way.
@GET
public List<Message> getAllMessages(@QueryParam("year") int year,
@QueryParam("start") int start,
@QueryParam("size") int size)
{
if(year > 0)
{
System.out.println("calling getAllMessagesForYear");
return messageService.getAllMessagesForYear(year);
}
if(start + size > 0)
{
System.out.println("calling getAllMessagesPaginated");
return messageService.getAllMessagesPaginated(start, size);
}
return messageService.getAllMesages();
}
Thanks,
Somnath Pal.
Can't we use method overloading for the case of getMessages() in the MessageResource class? Instead of putting all the QueryParam and if statements in a single method?
ОтветитьI still don't understand why we shouldn't write size >=0 How does that affect the getAllMessages() method ?
ОтветитьHi Koushik, i am following your videos they are just great. But i am stuck at one point. I have created profiles service and resource and i have made it to consume and produce JSON, but when i hit the end point i am 500 err and the response i am getting the response as text and the message resource is working fine. Its really weird could you please help me out.
Ответить