• Post Reply Bookmark Topic Watch Topic
  • New Topic

Solution for multiple ip address

 
ya ji
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As the requirement, I need to let user fill in multiple ip addresses, current thought is: put 4 text boxes separated by dot(.) in one line, but need more work in backing bean to convert four parts to ipaddress and vice versa.

Who knows better solution? or component?

Thanks for sharing in advance.
 
Tim Holloway
Bartender
Posts: 18417
60
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you dig around, you might find some sort of AJAX control for IP addresses, but there's nothing wrong with your idea. You can use a 4-element array to hold the 4 parts of the IPV4 address. The String split() method can help you break the address parts out from a string.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!