Ok just to follow up the new war now is in CVS...

and the demo server for the first effects is working with the newest versions:

http://wuerg.kicks-ass.net:8080/customcontrols/autocompleteTest.jsf

that basically showcases all the frontend stuff and
the stuff I implemented today from the prototype.js effects
into tags...
If you want to start to use that stuff, it is very unintrusive (although forces you somewhat to have javascript on)

the effects can be used like that:
<cc:effect fade="true"  squish="true" fadeColor="#C0C0C0" id="effect1">
<h:outputFormat id="squishit" value="Demo of various ajax controls-Sqishme" />
</cc:effect>
<cc:effect fade="true" puff="true" fadeColor="#CAC0F0" id="effect2">
        <h:outputFormat id="puffit" value="Puff me by clicking" />
</cc:effect>
<cc:effect scale="true" scaleSize="150"  id="effect3">
        <h:outputFormat id="hoverit" value="Hover me" />
</cc:effect>

The effect is a rather unintrusive by pushing currently everything into a div, but there are two problems. First the puff needs an extra param which is probably css related to function properly, I have to look into the underlying javascripts to figure that out.

Secondly, a scale does currently only work on the outer elements,
I have to add traversal code into the embedded elements
to function properly - there goes the unintrusiveness.
But besides that it is nifty stuff. I use the squish currently as outer border to message elements, so users can click away error messages until they hit the next refresh and the fade is used by my to mark error messages. The fading away of the color border, basically gives it an unintrusiveness during a typing process which is not reached by a blank color field.

You can download the sources and a war from sourceforge.

Also since the last demo version, the autocomplete control has been refined and fixed a lot, there is a very easy backend api behind it, you dont even have to mess with xml if you dont want to, and the mouse is working properly again, like it used to be in the original sun blueprints. Also lots of fixes in the javascript code for the autocomplete were done, the current state of affairs is 30-50% of the javascrips are different from what the Sun guy did and they work very well on the IE, what the original also didn�t do.



Werner Punz wrote:

<shamless plug>
Just wanted to give everyone a short notice
that I am currently altering the fade tag
of the ajax stuff into an effects tag
which will integrate some of this stuff:

http://dev.conio.net/repos/prototype/test/Effect.html

The javascripts of that stuff are based on
one of the best Javascript libs I have seen so far

http://prototype.conio.net/

What those guys do with the language is simply amazing.
(This stuff is mainly driven by ruby-rails development but
it is absolutely astounding how they bend the language
to become useful)
Anyway, there will be something working in the Sourceforge
repo by this evening or tomorrow.
I will dump a notice once I have the stuff in place, and the demo
for it as well.
</shamless plug>

Werner




Reply via email to