p:ajax faster than f:ajax ( PF 2.1 )

UI Components for JSF
Post Reply
ghagleit
Posts: 6
Joined: 30 Mar 2010, 12:11

18 Aug 2010, 19:29

Hi there ,
i noticed something strange today.
Here is the code:

Code: Select all

<h:selectOneMenu id="semModeSel2" value="#{announcement.holdingSemester}" rendered="#{announcement.managed}" disabled="#{announcement.disableHoldingMode}" valueChangeListener="#{announcement.holdingModeChanged}" >
    <f:selectItems value="#{announcement.semestersSelection}" />
    <p:ajax event="change" process="semModeSel2" update="globalMessagesPanel" />
</h:selectOneMenu>
Basic idea: User changes the value, if condition met show message.
When i am using f:ajax this takes about 500ms BUT when i am using p:ajax this takes about 250ms!!!
Another thing i noticed p:ajax doesn't execute the preRenderViewEvent ( which is good :) ) f:ajax does.

Can somebody try to reproduce or has a explanation why this happens?

Using PF 2.1 SS and MyFaces 2.0.2
best regards
gregor

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

19 Aug 2010, 00:37

Unlike 1.1., PF 2.2 uses standard server side apis for ajax so it should be same. Not sure where the difference comes from.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 29 guests