I'm really getting confused by some code. I'm in the process of converting a giant Scala app over to Java. It's a web-app, and uses PrimeFaces for the User interface. However, there are a few things that are throwing me. One is this code snippet:
<td><button id="search:j_idt30" name="search:j_idt30"
class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"
onclick="PrimeFaces.ab({formId:'search',source:'search:j_idt30',process:'@all',update:'meetingIndices'});return false;"
type="submit"><span class="ui-button-text">Submit</span></button></td>
I've noticed a call to the ab
method. I've been hunting for documentation for a few hours now, and I can't seem to find anything. Does anyone know what the ab
method does?
The second question is: Can anyone give any insight into the function of this code? I'm trying to work out which bit of Scala code is called, but as far as I can tell it's just an AJAX
request to the index.xhtml
page.
Edit
<p:commandButton type="submit" value="Submit" update=":meetingIndices" />
I think that is the tag generating the submit button.