Each row in the table below represents an Auction. For each Auction there are a number of Offers (so a @ManyToOne
relationship between Offers and Auctions).
The blue button means "Add Offer". When the user clicks "Add Offer" I want to open a form (in a new page) that the user fills in order to add an offer to the correspondng auction.
How do I send the current row Auction object to the Add Offer .xhtml form?
In PHP for example I would just send the corresponding Auction ID in the URL (the button would be a link <a href='add_offer?auction_id=123' role='button'>
, and then I would use $_GET['auction_id']
to retrieve the corresponding auction's id).
Sorry if my question is stupid, I'm new to JavaEE.