Lotus Domino

  • indip: use bean within another bean

    I wanted to use a bean within another bean. And I wanted the most elegant way to achieve this. Here’s what I got: define the beans in the faces-config.xml as follows (notice the color codings, to show references!)   <managed-bean>    <managed-bean-name>childBean</managed-bean-name>    <managed-bean-class>com.abb.xpages.beans.ChildBean</managed-bean-class>    <managed-bean-scope>request</managed-bean-scope>  </managed-bean>   <managed-bean>    <managed-bean-name>ParentBean</managed-bean-name>    <managed-bean-class>com.abb.xpages.beans.ParentBean</managed-bean-class>    <managed-bean-scope>request</managed-bean-scope>   …

    read more

  • quindip: problems with beans containing references to Notes objects?

    I tried desperately to maintain references to Notes objects within a bean. I always got a stupid error, either 500 or serialization error… then I stumbled across this excellent article. Solution Summary:don’t use “view” for bean scope if you need to serialize notes objects! use session or request scope. Stupid!!! really stupid!!! but now I got my stuff working…

    read more

  • quindip: handle onKeyPress event server side (sort of 😉 )

    Did you ever need to “catch” a key event? I did! Using the type-ahead feature i wanted to fill some fields depending on the selected value from the type-ahead field. Now I used the “onBlur” event first. But that would require the user to move the focus away from the field with type-ahead. I was…

    read more