• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

inputText in dataTable

 
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic