Class StableIdAssignment

java.lang.Object
org.eclnt.jsfserver.elements.util.StableIdAssignment

public class StableIdAssignment extends Object
Switch on/ switch off assignment of stable ids within component processing. "Stable" means, that the same id is used not only within the lifecycle of the current web application but also when the application is restarted.

You only should switch on "stable id" management if you e.g. require stable ids for testing tools. Stable ids are much longer than non-stable ids. Do not switch on stable ids in production systems!
  • Constructor Details

    • StableIdAssignment

      public StableIdAssignment()
  • Method Details

    • initStableIds

      public static void initStableIds()
      Switch on the usage of stable ids.
    • initCountedIds

      public static void initCountedIds()
      Switch off the usage of stable ids.
    • intiIncludeJSPNameIntoID

      public static void intiIncludeJSPNameIntoID(boolean value)
      If the parameter is passed as true then the component id will contain the current jsp page of the page that it is part of. As result there is a reference from the client side component id back to the JSP page containing the component. This reference is required when clicking with ctrl-alt-Doubleclick on the component - then a corresponding technical-info-popup is shown on client side.

      You only may switch this to "false" if you want to save "every byte of communication".
    • checkIfStableIdsToBeAssigned

      public static boolean checkIfStableIdsToBeAssigned()
    • checkIfCountedIdsToBeAssigend

      public static boolean checkIfCountedIdsToBeAssigend()
    • checkIfToIncludeJSPNameIntoId

      public static boolean checkIfToIncludeJSPNameIntoId()
    • getUniqueCounterForPageName

      public static int getUniqueCounterForPageName(String pageName)