I am creating a custom component that is an image viewer for a given product number. I access these files using a modified version of BalusC's ImageServlet:
@WebServlet(name="ImageLoader", urlPatterns={"/ImageLoader"})
public class ImageLoader extends HttpServlet {
private static final int DEFAULT_BUFFER_SIZE = 10240; // 10KB.
...
If I had a managed bean as follows:
@ManagedBean
@RequestSchoped
public class Example {
private List<String> stringList;
private List<Long> longList;
// getters, setters, etc. down here
}
and had a custom component which accepted a List as an attribute:
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W...
I have a composite component:
...
<!-- INTERFACE -->
<composite:interface>
...
<composite:attribute name="actionMethod" method-signature="java.lang.String action()" required="true" />
...
</composite:interface>
<!-- IMPLEMENTATION -->
<composite:implementation>
<h:form>
...
<h:commandButton id="cap...
A pretty normal case:
We have a 'portlet' composite component that has two states: expanded and collapsed. Portlets start as expanded, but user can collapse them by clicking on them. This state should be saved to the session, so that once the user refreshes the page or navigates to a new, the portlets remember if they are expanded/colla...