Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

inputText in dataTable  RSS feed

 
Joe Jose
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have datatable with rows adding dynamically with inputText. I cannot get the value entering into input text field. I have read several posts regarding this but didn't get any solution.

Here is my code :




my bean is in session scope.

Please please help me to sort why the input data is not getting.

Thanks,
Joe
 
akshatha bhatt
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ,
You can find some help in core javaserver faces book . there is an example that uses a bean in session context. pg 188 to be exact .
hope that'll help you,good luck
 
Joe Jose
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am sorry that I don't have a jsf book. Could you please tell me an online example for that ? I have tried an example from coreservlets.com . But that also didn't work out.

I don't understand why it fails to get the input data from the datatable.
I am stuck on this. I need to use datatables like this in servaral pages in my project. Please help me.

Thank you very much,
Joe.
 
Ali Gohar
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey how are you trying to get the value of inputText ?
 
Joe Jose
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is my beans that use to get inputs from datatable :





I had tried the method that specified in coreservlets site.
Please tell me where I am going wrong ?

Thanks,
Joe.
 
Joe Jose
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am getting the changed values when I set a value change listener for input text field.



But still I am not getting the chnged values in the bean. I think I need to bypass the phase. But I don't have a clear picture. Please give me the solution. Any one ? Please help me. This is the third day I am beating on this.

Thanks,
Joe.
 
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!