Reverse-Engineered High-Performance JSF Automation & Session Orchestrator in Hono.js
In your original attempt, you posted to homepage.xhtml with hardcoded parameters and then immediately did an empty POST to login.xhtml. Here is why it failed and how our Hono.js engine resolves it:
j_idt16, j_idt27, and j_idt243_input. Hardcoding them causes the JSF lifecycle to reject the submission. Our client parses the live DOM with Cheerio and extracts the active IDs dynamically.proccedHomeButtonId does not return a redirect; it returns an XML partial Ajax response that opens a PrimeFaces modal dialog (facelesslist). You must parse the button ID inside that dialog (e.g. j_idt528) and submit an Ajax POST for it.<redirect url=".../login.xhtml?faces-redirect=true">. In JSF, a client redirect requires an HTTP GET with sticky session cookies, not an empty POST.JSESSIONID (scoped to /vahanservice) and SERVERID_175 (scoped to /). If the sticky cookie is omitted, requests route to different cluster nodes, destroying the session.curl -X POST http://localhost:3000/api/vahan/auth/vehicle \
-H "Content-Type: application/json" \
-d '{"regNo": "ML05M4483"}'