Magazine
 
JSF Tags: Tomahawk Tags

rendSuccess=false;
rendFailure=true;
return “no”;
}
}
}

Rendered Output:

This is the output of the above code. The file upload component is the combination of an input box and a button for choosing a file to be uploaded.



The browse button and select one file to upload it.


 

The following figure appears when a file is successfully uploaded.

The following figure appears when there is any problem in uploading a chosen file.



3. Tomahawk inputCalendar tag:


This tag is used to create calendar component in the page. It can be reated in different styles depending on the value of renderAsPopup attribute of the component. If rende rAsPopup attribute is set to true then it creates an input box along with a button which when clicked renders a popup calendar. We can select any date and it is displayed in the input box in our required format. A help text can also be given in the input box to help the user

Sept 2007 | Java Jazz Up | 16
 
previous
index
next
 
Pages: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,

30
, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53 , 54, 55, 56, 57,

58
, 59, 60, 61, 62, 63 , 64, 65 , 66 , 67 , 68 , 69 , 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,   Download PDF