Announcement Announcement Module
Collapse
No announcement yet.
[SWF2.0] JSF and AJAX Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • [SWF2.0] JSF and AJAX

    In SWF1.x you could use A4J lib to AJAX enable a component.

    Code:
    <h:inputText value="#{bean.field}">
      <a4j:support event="onkeyup" action="search" 
    	reRender="data" requestDelay="1500" eventsQueue="myQueue"/>
    </h:inputText>
    In SWF2.x this results in a javascript error when triggering the AJAX request 'onkeyup'.

    "ERROR 'A4J' is undefined

    Is there an <sf/> wrapper tag similar to <sf:commandButton/> ?

  • #2
    Answer:
    Code:
    <sf:ajaxEvent event="onkeyup" action="search" processIds="*">
      <h:inputText value=""/>
    </sf:ajaxEvent>

    Comment

    Working...
    X