Writing markup the easy way with ZenCoding and emacs
I’ve stumbled upon a nifty extension for emacs (among others) that enables writing HTML using CSS selectors-like expressions.
I don’t know for you, but I do not enjoy writing xml that much. I have nothing against XML itself, it’s just the typing part that annoys me : especially the angle brackets and the closing of tags.
CSS selectors on the other side are written using a compact and an easy-to-type syntax, and while the standard version (used in cascading stylesheets) doesn’t match the xml expressivity, the ZenCoding extended selectors syntax pretty much covers most of the common cases.
Here how it works : this selector :
html>(head>title)+body>(div#header>h1)+(div#menu>ul>li*4>a href=#)+div#content+div#footer
yields :
Exploration des modèles de Wicket
Extrait du synopsis :
Cet article a pour objectif de vous présenter la notion de modèles du framework Apache Wicket et ce à travers un exemple pratique et réel. en utilisant une approche incrémentale : partir d’une solution triviale et simple, et l’améliorer progessivement en utilisant différents techniques et types de modèles
L’article complet est par ici : Exploration des modèles de Wicket
Remoting avec Hessian
Extrait du synopsis :
Cet article a pour objectif de vous présenter une solution légère et rapide de remoting avec Caucho Hessian.
L’article complet est par ici : Remoting avec Hessian
Création d’une application de type CRUD avec JSF et JPA
Extrait du synopsis :
Cet article a pour objectif de vous présenter la tâche de création d’une application complète de type CRUD ( Create, Read, Update, Delete ) permettant d’effectuer les opérations de création, consultation, suppression et modification d’une entité et ce en utilisant le framework web JSF et le framework de persistance JPA .
L’article complet est par ici : Création d’une application de type CRUD avec JSF et JPA
JSF et Facelets
Extrait du synopsis :
Cet article a pour objectif de vous présenter la technologie de présentation Facelets ainsi que de vous guider dans les tâches de configuration et d’utilisation de cette technologie.
L’article complet est par ici : JSF et Facelets
Nouvelle page “I Wrote” qui référence quelques articles sur ce blog
Je viens de finir de porter 4 de mes 5 articles publiés sur developpez.com sur WordPress. Le processus n’était pas très amusant, je peux vous assurer xD
Pour les plus curieux d’entre vous, je décrirais dans le pragraphe suivant comment j’ai procédé, les autres, vous pouvez sauter cette étape sans problème
Ceci assume que vous avez déjà un PC avec un (vrai) OS installé la dessus (Ubuntu 9.10 dans mon cas, malheureusement), un bon navigteur web (Chrome ici, quoi que, à cause de quelques bugs stupides dans l’affichage du backend de WP sur chrome, je suis obligé d’utiliser Firefox pour rédiger ce post) une (vraie) JVM (celle de Sun dans mon cas ) et Eclipse (3.5.1 dans mon cas).
Voici donc comment procéder si vous être dans la situation très improbable qu’est la mienne :
10/GUI’s vision for human/computer interaction
This video examines the benefits and limitations inherent in current mouse-based and window-oriented interfaces, the problems facing other potential solutions, and visualizes my proposal for a completely new way of interacting with desktop computers.
Howto create a new project nature in Eclipse
This post is a translation of an older post of mine that I’ve originally written in French.
This post shall be the first of a series about Eclipse as a platform instead of an IDE.
The style will be minimalistic, in the sense that I’ll go directly into the how to do the things, with no (or few) explanations.
In this post, I’ll show how to create a new project nature that you can associate later with a new or an existing project.
Read more…
Wicket enclosures and ajax : no no
Okay, this will be my second post in English, so, don’t go too hard on me
Earlier today, I was working on a web application using Wicket as framework, and I’ve got bitten by something that I wanted to share.
More precisely, it’s about enclosures and ajax : I had a link inside a list item and I wanted to bind the visibility of the latter to of the former.
So, I went ahead and enclosed the list item in an enclosure specifying the link wicket id as a value for the child attribute :
<wicket:enclosure child="generateReport"> <li> <a href="#" wicket:id="generateReport">Generate report</a> </li> </wicket:enclosure>
And this worked just fine, until I’ve decided I wanted to change the link’s visibility using Ajax.
So, when generating a full web page response, Wicket is perfectly able to handle the enclosures. But when ajax is involved, Wicket simply can’t handle them because they have no corresponding element in the html page, and thus they can’t be updated later. The inner element’s (<a> in this case) visibility will be affected but that’s not the case for the enclosure whose visibility remains static (depending on whether it was visible or not when the page was generated).
Note: The Wicket’s wiki mentions this behavior :
Note: Changing the visibility of a child component in Ajax callback method will not affect the entire enclosure but just the child component itself. This is because only the child component is added to the AjaxRequestTarget.
Have you mooed today ?
Type this in the console (bash) :
apt-get moo
Which outputs :
(__)
(oo)
/------\/
/ | ||
* /\---/\
~~ ~~
...."Have you mooed today?"...
I’ve found this easter egg among others here : Hidden Easter Eggs In Ubuntu