Search code examples
javajsftrinidad

JSF what is the component source of the request?


I'm using Trinidad Library.

I have commandButton that has partialSubmit=true attribute and a panel that has partialTriggers that point to that commandButton.

How can I know on the server side what is the source of the request , I mean which component fire the partial trigger?

Thanks for any help.


Solution

  • The information is in the request parameters map.

    I took the requestParameterMap out of the ExternaContext and one of the attribute in the map was the source of the request. this can give you the form that sumbit this request.