Seam Authenticator.authenticate if-outcome

Maybe you are wondering why the following navigation rule in your pages.xml does not work, although your authenticate() method returns „true“ for successful login:

<page view-id="/login.xhtml">
  <navigation>
    <rule if-outcome="true">
      <redirect view-id="/anotherpage.xhtml">
    </redirect></rule>
  </navigation>
</page>

If you are using Seam’s Identity.login() method…

<h:commandbutton action="#{identity.login}">

…your authenticate() is called/wrapped by Identity.login(). Thus the return value „true“ is swallowed by Identity.login() which in turn terminates with the outcome „loggedIn“ and not „true“! So the following code should do the trick:

<page view-id="/login.xhtml">
  <navigation>
    <rule if-outcome="loggedIn">
      <redirect view-id="/anotherpage.xhtml">
    </redirect></rule>
  </navigation>
</page>

Tresor aka Tresen

Als gebürtiger Berliner und bekennender Electroholiker möchte ich an dieser Stelle eine Empfehlung für den weltweit bekannten Berliner electro Club Tresor abgeben. Er befindet sich in einer einmaligen Location in einem ehemaligen Heizkraftwerk. Hier ein paar private Aufnahmen aus 2007:

Tresor

Hier noch ein kurzer Abriß der Geschichte des einstigen underground Clubs.

Changing rich:separator color using CSS

To change the color of your RichFaces separator…

<rich:separator linetype="solid" height="1px">

…you likely have tried the following in your CSS:

.rich-separator {
background-color: red;
}

But it did not work, huh? So you tried this:

.rich-separator {
background-color: red;
background-image: none;
}

Oh man still not working, right? The reason is that there is already a background-image value defined (maybe with !important declaration in the user style sheet) or your own author style sheet definition is overridden by a succeeding definition.

In this case you have to mark your definition with !important.

.rich-separator {
background-color: red;
background-image: none !important;
}

eMule vs BitTorrent

Torrent downloads have a big drawback: short lifetime

That’s why eMule is still in business.  The download may take a while to start and even longer to finish but that is also the reason for the long lifetime of downloads in the eDonkey and KAD network used by eMule. So you’ll find much more stuff via eMule no matter how old it is. Just try eMule’s integrated KAD network search. There is a big chance to find what you are looking for.