public void beforePhase(PhaseEvent phaseEvent)
{
// Add event code here...
System.out.println("***PhaseTracker: After Phase: " + phaseEvent.getPhaseId());
RenderingContext rContext = RenderingContext.getCurrentInstance();
if (rContext != null)
{
System.out.println("Set Skin to dirty if button was pressed, and it is set to :" + _pressedButton);
if (_pressedButton)
{
System.out.println("Setting the skin to be dirty will allow you to refresh your browser and see any changes to the skin's css file immediately.");
rContext.getSkin().setDirty(true);
_pressedButton = false;
}
else
{
System.out.println("Set Skin to not be dirty");
rContext.getSkin().setDirty(false);
}
}
else
System.out.println("rContext in _afterPhase is null!");