hey guys :D

im new to JAVA. hope seniors can guide me through! thanks!

i been doing C# for the past 3 years, so java is some how releted but i assume its totally diff syntax is being some. logics should be the same.

basically, i need help by retriving the infomation from the calendar, rather than hard code it. my visual web jsf having only 2 calnder component, one label and a button, upon doiuble click the button, i generated this code. the code is as below. btw im doing a web service client

public String btnGetAuc_action() {

try {

org.hogauctionwebservice.AuctionServiceSoap port = service.getAuctionServiceSoap();

javax.xml.datatype.XMLGregorianCalendar dtStart;
dtStart = javax.xml.datatype.DatatypeFactory.newInstance().n ewXMLGregorianCalendar();

javax.xml.datatype.XMLGregorianCalendar dtEnd ;
dtEnd = javax.xml.datatype.DatatypeFactory.newInstance().n ewXMLGregorianCalendar();

Date st = cldStart.getSelectedDate();
Date en = cldEnd.getSelectedDate();



org.hogauctionwebservice.ArrayOfAveragePricePerDay result = port.getHogAuctionPrices(dtStart, dtEnd);

List<org.hogauctionwebservice.AveragePricePerDay> d = result.getAveragePricePerDay();

for(int i = 0; i < d.size(); i++){
org.hogauctionwebservice.AveragePricePerDay tm = d.get(i);
lblResult.setText("Date= " + tm.getDate() + "Average Price= " + tm.getAvePrice().toString());

} catch (Exception ex) {