This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Foreign key field population from datatable to textbox?

 
Aravind M Jay
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • 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 ]
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17627
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic