This tag is used to load the gadgets for the current user. If the user has not logged in then only the gadgets requiring no authorisation are returned. Otherwise only the gadgets that the user is authorised to access are returned.
This tag also queries the profile store to determine the state and layout contraints that the user has for the various gadgets. These properties tag the form of:
jporta.gadgetid.propertyname
If no value is specified for these in the profile store then the efault values from the gadget registry are used.
The following properties are used by this tag:
| Property | Description |
| jporta.gadgetid.minimised | Set to "true" if the gadget has been minised otherwise set to "false" |
| jporta.gadgetid.visible | Set to "true" if the gadget is visible on the user's page, otherwise set to "false" |
| jporta.gadgetid.layout_constraint | Layout constraint for this gadget for this user |
<jpt:gadgets id="name of gadgets bean"/>
id - The name of the GadgetsBean that is created.
The following code shows an example of using this tag:
<%@ taglib uri="jporta" prefix="jpt" %>
...
<jpt:gadgets id="userGadgets"/>
<%
out.println("User has " + userGadgets.getGadgets().length + " gadgets");
%>