Could you copy, and/or show your userService as well, please?
Are you encountering any errors, or are you simply not receiving any values based on your filterText?
If you’re unable to make progress, it would be best if you could put your code on GitHub or a similar platform. Then, you can share the URL here, and we could take a look and suggest some solutions.
Calling other Http methods with Spring Web Client should be pretty straightforward. There’s a good amount of documentation on that regard. I like these 2:
thanks a lot for your kind reply , Boss, those links are very useful , now it’s sending the request as i wanted to, but i had to change the back end , now the problem in back end
I wish someone can help me to find a course show the beauty of making a full stack API And SPA application !? I found Vaadin isn’t famous in Udemy and Youtube channel is good , but none of them is like a mentioned earlier.
public interface UserService {
List<User> findUsers(String substring);
}
User-Service Implementation
public List<User> findUsers(String substring) {
return userRepository.findUsers(substring);
}
User-Repository
@ Repository
public interface UserRepository extends JpaRepository<User,UUID> {
@ Query("select u from User u where lower(u.name) like lower(concat('%',:substring,'%'))")
List<User> findUsers(String substring);
}
the Fornt-End code that calls the above method by Json format is like this:
You are right , I’m totally new to Java world and Vaadin as well … the problem isn’t in Vaadin , it’s spring-boot stuff… btw, I can’t find delete button to delete this post
I got back only now, how is it going? Do you still need some help? Also, I agree with Knoobie this is not related to Vaadin :), but I can probably check your code in short if you still have some problems.