File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in ajax4jsf

 
vidhya jayapalan
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

The following code selects a value from drop down and displays the same as text/label.




Instead, i would like to display the selected value to a text box.



But, the value selected is not rendering to the text box.


Are there any attributes to be added ?

Is it possible to render a value to the text box?

Please help.

Thanks,
Vidhya
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to render a value to the text box?


Yes it is..

but it would be better if you paste here the stack trace or any error.. in order to get help in this query..

cheers!
 
vidhya jayapalan
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I dont get any error message or stack trace in the server.
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
then try on firebug (a javascript debugger ).. or check into the Javascript Console inside the tool menu of Firefox.
 
vidhya jayapalan
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

can anybody help me on the above issue. I dont see any error on the console nor as javascript error.

I am new to JSF, I have also used



but i am not able to set the selected value from the drop down to input text.

Is there any way to get handle to inputText field ? if so, please share your valueable inputs.

Thanks,
Vidhya
 
Sergey Smirnov
Ranch Hand
Posts: 167
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
vidhya, you are 10001 guy who bumps the head to this JSF stone. This behavior is absolutely expected from the JSF point of view.

Read explanation at:
http://wiki.jboss.org/wiki/RichFacesTwoInputText
[ September 11, 2008: Message edited by: Sergey Smirnov ]
 
Srikanth Madasu
Ranch Hand
Posts: 48
Eclipse IDE Hibernate Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its the mischief of the converter... try adding following tag to your selectonemenu item...

<f:converter converterId="javax.faces.String"/>
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic