public void populateWinnerList1(ActionEvent auctionevt) { localWinners.clear(); remoteWinners.clear(); claimed = false; HtmlCommandLink detail = (HtmlCommandLink) auctionevt.getSource(); Map<String, Object> attributes = auctionevt.getComponent().getAttributes(); String auctionId = (String) attributes.get("timeStamp"); System.out.println("Attribute found:" + auctionId); String userId = getUserObj().getName(); // String auctionId = (String) detail.getValue(); currentAuctionKey = userId + "_" + auctionId; AuctionResults results = getAuctionResults(currentAuctionKey); if (results != null) { localWinners.addAll(results.getLocalWinners()); remoteWinners.addAll(results.getRemoteWinners()); claimed = results.getClaimed(); } // System.out.println("Received auctionId: " + detail.getValue()); // System.out.println("Received category: " + // buyerCriteria.getCategory()); }
public static void main(String args[]) { AuctionResults results = getAuctionResults("123_1398545916352"); results.printDetails(); // getAuctionResults("123_1398025869321"); }