Board index JavaServer Faces General a4j:actionparam equivalent

a4j:actionparam equivalent

Components, Ajax Framework, Utilities and More.

Post 16 Sep 2011, 15:19
Oleg User avatar
Expert Member

Posts: 3721
Location: Russia, Siberia => Germany, Black Forest
Yes, well, but f:param doesn't allow to attach converter (not an instance of ValueHolder). Attaching converter is important for custom converters too. I intend to write pe:jsonConverter and solve JS-Java conversion automatically ;)
PrimeFaces 4.x, 5.x, Mojarra 2.2.x, JBoss WildFly, WebSphere, Windows 8.1, IntelliJ IDEA
PrimeFaces Cookbook: http://ova2.github.com/primefaces-cookbook/ PrimeFaces Extensions on GitHub: http://primefaces-extensions.github.com/

Post 16 Sep 2011, 15:45

Posts: 15115
Location: Cybertron

Sounds good.
PrimeFaces Lead

Post 17 Sep 2011, 13:12
tandraschko PrimeFaces Core Developer

Posts: 2279
Location: Bavaria, DE

Done!

Example:

      <h:form>
         <h:outputText id="test1" value="#{remoteCommandController.testString}" />
         <h:outputText id="test2" value="#{remoteCommandController.testDate}" /> 

         <pe:remoteCommand name="myCommand" process="@this" update="test1 test2">
            <pe:remoteCommandParameter name="test" applyTo="#{remoteCommandController.testString}"/>
            <pe:remoteCommandParameter name="test2" applyTo="#{remoteCommandController.testDate}">
               <f:convertDateTime type="both" dateStyle="short"/>
            </pe:remoteCommandParameter>
         </pe:remoteCommand>
   
         <p:commandButton value="Do" type="button" onclick="myCommand('hello world', '5/14/07 12:55:42 PM')" />
      </h:form>
Always Bet On Prime (+ Extensions)!

PrimeFaces Extensions: https://github.com/primefaces-extensions
OpenWebBeans: http://openwebbeans.apache.org/
DeltaSpike: http://deltaspike.apache.org/
Personal Blog: http://tandraschko.blogspot.de/

Post 19 Sep 2011, 22:27
tandraschko PrimeFaces Core Developer

Posts: 2279
Location: Bavaria, DE

Oleg, i also try to implement pe:convertJson.
Do you have any idea how i can create an own pe:convertJson tag?
Always Bet On Prime (+ Extensions)!

PrimeFaces Extensions: https://github.com/primefaces-extensions
OpenWebBeans: http://openwebbeans.apache.org/
DeltaSpike: http://deltaspike.apache.org/
Personal Blog: http://tandraschko.blogspot.de/

Post 20 Sep 2011, 08:12
Oleg User avatar
Expert Member

Posts: 3721
Location: Russia, Siberia => Germany, Black Forest
Good work Thomas!

pe:jsonConverter is a quite normally Converter Thomas. It implements JSF converter interface. I normally register converters in a spec. faces-config xml (e.g. pfext-converters.taglib.xml). Don't care about this please. I will add this converter to the ext. library. This week is my busy time over and next week I will start work on the ext. project!
PrimeFaces 4.x, 5.x, Mojarra 2.2.x, JBoss WildFly, WebSphere, Windows 8.1, IntelliJ IDEA
PrimeFaces Cookbook: http://ova2.github.com/primefaces-cookbook/ PrimeFaces Extensions on GitHub: http://primefaces-extensions.github.com/

Post 20 Sep 2011, 09:26
tandraschko PrimeFaces Core Developer

Posts: 2279
Location: Bavaria, DE

All right :)
initial version is checked in, change what ever you want :)
Always Bet On Prime (+ Extensions)!

PrimeFaces Extensions: https://github.com/primefaces-extensions
OpenWebBeans: http://openwebbeans.apache.org/
DeltaSpike: http://deltaspike.apache.org/
Personal Blog: http://tandraschko.blogspot.de/

Previous

Return to General