Mittwoch, 29. August 2012

ajax update eines Elements außerhalb von datatable

< form id="myForm">
  < h:dataTable value="#{bean.data}" var="entity">
      < h:column>
          < h:selectBooleanCheckbox value="#{bean.checkbox}">
            < f:ajax render=":myForm:myInputField" />
          < /h:selectBooleanCheckbox>
      < /h:column>
  < /h:dataTable>
  
  < h:inputField id="myInputField" value="#{bean.text}"/>

< /form>

Redirect bei "session expired" unter Icefaces

ice.onSessionExpiry(sessionExpiryHandler);
var sessionExpiryHandler = function() {
      location.href = location.href; //bzw. andere Seite
};