Off the record

Aller au contenu | Aller au menu | Aller à la recherche

vendredi 27 octobre 2006

fun with Flickr...

flickr links Marrant cette petite appli qui trace un graphe montrant les liaisons entre utilisateurs de flickr...
En regardant bien on découvre plein de monde pas loin...
Le nom d'utilisateur, cette url magique et vous allez voir qui se lie à vous, tous vos contacts, les contacts de vos contacts....wigolo :-|

En vrac des liens flickr :

mercredi 25 octobre 2006

Holga et sérendipité

Shooting with the Holga is a serendipitious art...
Voila deux articles super cool à lire sur wikipedia, l'un sur le Holga, l'appareil photo du peuple (chinois en l'occurence) et l'autre sur la sérendipité...Puisque prendre des photos avec le Holga est un acte sérendipiteux (sérendipitieux?)

mardi 3 octobre 2006

BEA Portal : shallow and deep retrieve with "getBookView"

As i was working on a BEA Portal 8.1.5, trying to obtain the number of children of a view through the "BookView" Interface, obtained itself as follows :
BookView bv = PortalAdminManager.getBookView(myBookDefinitionId, myLocale, myHttpRequest);
i encountered a problem when running this code :
if(bv.getNavigableViews().length == 0) // etc
This condition was always met...altough the book title, the bookInstance id etc. are correct...Why??? Thank to the documentation of BEA 9.2, i finally figured out how it was working....
It appears that the method "getBookView" exists with two different signatures, one retrieving a "shallow" (lightweight) BookView, the other one retrieving the full object. If you want to use the methods getPageCount, getBookCount, getNavigableViews etc., DON'T use the shallow object : it's empty...
The code to use then is :
BookView bv = PortalAdminManager.getBookView(myParentBookInstanceId, myBookDefinition.getWebAppName(), myPortalPath, myDesktopPath, true, myLocale, request);

This is a pretty tricky error, as the code compiles and runs without any Exception rise...Hope that helps someone somewhere sometimes !