Matthias Wessendorf’s Weblog

Entries from July 2007

Apache MyFaces 1.2.0 Released!

July 18, 2007 · Leave a Comment

The Apache MyFaces team is pleased to announce the release of MyFaces
Core 1.2.0.

MyFaces Core 1.2.x is a JavaServer(tm) Faces 1.2 implementation as
specified by JSR-252. MyFaces Core has passed Sun’s JSR-252 TCK and
is 100% compliant with the JSR-252 specification.

MyFaces Core 1.2.0 is available in both binary and source distributions.

* http://myfaces.apache.org/download.html

MyFaces Core is also available in the central Maven repository under
Group ID “org.apache.myfaces.core”.

Release Notes – MyFaces Core – Version 1.2.0

Categories: apache · jsf · myfaces

JSF components and client side interaction

July 10, 2007 · Leave a Comment

The Oracle JDeveloper 11g – Technology Preview contains several cool JSF components. It’s possible to use them to have some level of client side interaction with those JSF components.

For instance, there is a selectOneChoice component and it’s possible to capture it’s ValueChangeEvent on the client side. Here is the JSPX code:

<af:selectOneChoice value="#{demoInput.choiceValue}">
<af:clientListener type="valueChange" method="doIt" />
<af:selectItem ... />
<f:selectItem ... />
...
</af:selectOneChoice>

Nothing very spectacular, but look again, there is a clientListener tag. The type refers to the type of the client side component event and with method you refer to a custom JavaScript function:


function doIt(event)
{
AdfLogger.LOGGER.severe("old value: " + event.getOldValue());
AdfLogger.LOGGER.severe("new value: " + event.getNewValue());
}

The client side ValueChangeEvent has functions like getOldValue or getNewValue, like you know from the standard JavaServer Faces ValueChangeEvent. The fun here is, that the example uses a client side logger to display both, old and new value. When running on Firefox with Firebug, the Logger prints the result to the Firebug consol:

Oracle JDeveloper 11g - Technology Preview

Enjoy!

Categories: Oracle ADF Faces · jsf · web²

Facesgoodies updated to JSF 1.2

July 10, 2007 · 3 Comments

I did some minor work on Facesgoodies, to run on JSF 1.2, using Apache MyFaces 1.2.0-SNAPSHOT (a first release will be out, very! soon) and Apache MyFaces Trinidad 1.2.1 (the JSF 1.2-version of the Trinidad components).

I created a ZIP bundle which contains the project. So feel free to download. Feeback on MyFaces 1.2.0-SNAP is very welcome, on the dev mailing list of Apache MyFaces.

Have fun!

Categories: apache · jsf · myfaces · trinidad · web²

Release of Apache MyFaces Trinidad 1.2.1

July 5, 2007 · 2 Comments

The Apache MyFaces Trinidad team is pleased to announce the release of Apache MyFaces Trinidad Core 1.2.1.

Apache MyFaces Trinidad 1.2.x is a JavaServer(tm) Faces 1.2 component library.

Trinidad Core 1.2.1 is available in both binary and source distributions:

* http://myfaces.apache.org/trinidad/download.html

Apache MyFaces Trinidad is available in the central Maven repository under
Group ID “org.apache.myfaces.trinidad”.

Release Notes:
http://tinyurl.com/yttonw

Enjoy!

Categories: apache · jsf · myfaces · trinidad · web²