We have a jsf application, with a normal logon site. Now we have to integrate this application with another and my problem is to pass the parameter between the two applications. Say a client has an ID in one application and I have to load the logon page from the second application and I think the easiest way to inform the second application about the client from the first is to load the login page with a parameter, which is the client ID from the first application.
The other way, my second application must function stand alone, so I need two login pages, one without parameters, one with parameter. It is even possible this way, or there are another way to do that.
The second application can have single login page with two different forms.
You can pass some ID from 1st application as part of a session attribute and get that session attribute in the login page of second application. Here, you can check if you got the session attribute (is null or not), and render the relevant form as applicable. Instead, if one directly hits the login page of second application, this session attribute won’t be there, and you can render the other form as applicable.