Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Doubt in ajax4jsf  RSS feed

 
vidhya jayapalan
Greenhorn
Posts: 12
  • 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: 1325
Android Java Windows
  • 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
  • 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: 1325
Android Java Windows
  • 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
  • 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
  • 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: 50
Eclipse IDE Hibernate Spring
  • 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"/>
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!