File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Problem in populating textbox in jsf on clicking submit button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Problem in populating textbox in jsf on clicking submit button " Watch "Problem in populating textbox in jsf on clicking submit button " New topic
Author

Problem in populating textbox in jsf on clicking submit button

Gopikrishna Gopal
Greenhorn

Joined: Sep 08, 2011
Posts: 26
I am having inputText box, dropdownlist , outputText box and a submit button in my jsp page.

I am pre populating the dropdown list from my managed bean.
On clicking the submit button and based on selected item from the drop down list, I need to perform populating outputText box.

Page is coming up but lstService dropdown box is not displayed at all. But mnNum inputText and submitButton is showing properly.
Also after pressing submit button, "abc" text must be displayed in outputText box. But its also not displayed. Instead, the below error is shown,

Error opening /portlets/tools/webservicehelper/webservicehelper.faces.
The source of this error is:

java.util.MissingResourceException: Can't find bundle for base name resources.bundles.ValidationMessages, locale en at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1521) at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1260) at java.util.ResourceBundle.getBundle(ResourceBundle.java:962) at javax.faces.component.MessageFactory.getMessage(MessageFactory.java:102) at javax.faces.component.MessageFactory.getMessage(MessageFactory.java:175) at javax.faces.component.UIInput.validateValue(UIInput.java:1001) at javax.faces.component.UISelectOne.validateValue(UISelectOne.java:130) at javax.faces.component.UIInput.validate(UIInput.java:868) at

Any problems in below code?

My entire code below for UserBean.java and webservicehelper.jsp.


 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Problem in populating textbox in jsf on clicking submit button
 
Similar Threads
Strange behavior: action method not called when button submitted
f:selectItem
No Form Input and NullPointerException
How to use ValueChangeLister attribute in selectOnemenu
f:selectItems can't set value