• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Foreign key field population from datatable to textbox?

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I'm trying to populate my textbox from a datatable by providing a link on one of the columns of the table.It is all fine and working if the table has columns from one database table.
But my problem comes when there is a foreign key in my datatable and when i click on the link all fields get populated except for the foreign key field..
Could anyone please help me out in solving this???
im posting the code below...CurrencyCode is my foriegn key in this case..



Inside the Action method of the command link im catcthing the value.


"manufacturerEntityBn" is an instance of my entity bean.
"manufacturerDAOBn" is an instance of my DAO class where i have the methods for CRUD operations and that is not required in this case here..


[ March 16, 2006: Message edited by: Tim Holloway ]

[ March 16, 2006: Message edited by: Tim Holloway ]
[ March 16, 2006: Message edited by: Tim Holloway ]
 
Saloon Keeper
Posts: 28491
210
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Aravind,

Welcome to the JavaRanch! But what does the "MJ" stand for?

You didn't do bad for a first post with formatted code, but the UBB software converted your JSF tags to emoticons and the XML ended up stretched halfway to Kenya. The UBB software can be hard on JSF. I've tried to make it a little more readable.

I couldn't tell which item was your foreign key, though. JSF doesn't know about databases, however, so I'd suspect you didn't have a property mapped correctly.
 
Oh, sure, you could do that. Or you could eat some pie. While reading this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic