• Post Reply Bookmark Topic Watch Topic
  • New Topic

null pointer exception when using p:ajax with inputtext  RSS feed

 
Willy Tcha
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to get the selected date from InputField bevor without sending form. when the user change the date from the bootstrap datepicker, the new date ist wrote inside the input field. and i bind the inputfield with a bean property

here is my bean


xhtml page

namespace inside xhtml page




and here is the exception



Need help
 
Tim Holloway
Bartender
Posts: 18781
74
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wilkommen in the JavaRanch, Willy!

I don't actually see anything wrong with what you posted, so there may be a larger problem there.

I am curious about why you are not using the PrimeFaces Calendar control for this, however.
 
Willy Tcha
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tim, danke! :)

the application was designed with the bootstrap datepicker. and if i use the primfes calendar. it did not look that one from the designer. so i have to use it. if you have any other idea, will apreciate. may be passing a value from javascript to backingbean.

am really confuse.

Thanks!
 
Tim Holloway
Bartender
Posts: 18781
74
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You cannot talk to a backing bean directly from JavaScript. That's what AJAX is for.

You can probably set up custom styles for the PrimeFaces date picker control that will make it look like Bootstrap's date picker, but you might want to look at BootFaces, which is specifically designed to make JSF look and feel more like Bootstrap.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!