myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cagatay Civici <cagatay.civ...@gmail.com>
Subject Re: [Trinidad] Howto PPR using clientside events like onkeyup?
Date Wed, 06 May 2009 10:19:31 GMT
http://myfaces.apache.org/trinidad/devguide/ppr.html

On Wed, May 6, 2009 at 11:17 AM, Moestl, Wolfgang <
Wolfgang.Moestl@softwareag.com> wrote:

>  Is there any documentation available for the client side PPR API?
>
> I can’t find any at the web site.
>
>
>
> - Wolf
>
>
>
>
>  ------------------------------
>
> *Von:* Cagatay Civici [mailto:cagatay.civici@gmail.com]
> *Gesendet:* Mittwoch, 06. Mai 2009 12:08
> *An:* MyFaces Discussion
> *Betreff:* Re: [Trinidad] Howto PPR using clientside events like onkeyup?
>
>
>
> You can use the Trinidad client side PPR Api.
>
> On Tue, May 5, 2009 at 6:30 PM, Wolfgang Möstl <wmoestl@web.de> wrote:
>
> Hi,
>
> I have to do a PPR page update if the user changes the content of an
> <tr:inputText>, resulting in changing the table data according to the
> inputText value (filtering the table content).
> Using the inputText autosubmit feature is not sufficient as this one
> triggers the PPR when the inputText looses the focus.
>
> What I need is triggering a PPR cycle each time the user changes the
> inputText values,
> thus with each key stroke, using for example the onkeyout event.
>
> What I came up with is letting the onkeyup event raising a hidden command
> button which in turn causes the PPR to happen.
> Unfortunately the PPR caused tis way does not include transmit the
> inputText value to the server, thus the table does dot get updated
> accordingly.
>
> How can I do a PPR using clientside events like onkeyup or how can I
> include the inputText value in a PPR raised by another control?
>
> My code so far:
>
> <tr:inputText id="myFilter"
>    label="Filter:"
>    value="#{myBean.filter}"
>    columns="25"
>    required="no"
>    onkeyup="document.getElementById('hiddenButton').click()" />
> <tr:commandButton id="myHiddenButton"
>    text="..."
>    immediate="true"
>    partialSubmit="true"/>
> <tr:table
>    id="myTable"
>    value="#{myBean.tableContent}"
>    var="location"
>    rows="15"
>    partialTriggers="myHiddenButton"
>    width="98%">
>    ...
> </tr:table>
>
> Thanks a lot!
>
> Cheers,
> Wolf
>
> ________________________________________________________________________________________________________________________________________________________________________________
> Neu: WEB.DE FreeDSL Komplettanschluss mit DSL 6.000 Flatrate +
> Telefonanschluss für nur 17,95 Euro/mtl.!*
> http://dslspecial.web.de/freedsl-surfflat/?ac= OM.AD.AD008K15039B7069a
>
>
>

Mime
View raw message