-
1. Re: EL enhancement of parameters working?
norman.richards Dec 22, 2006 2:04 AM (in response to dandiodati)It's my understanding, that this is just a limitation of the EL enhancements. The parameters are evaluated outside of the loop and does not have access to the context of a particular iteration of the look. I think you are stuck passing in the value as a request parameter.
-
2. Re: EL enhancement of parameters working?
dandiodati Dec 22, 2006 11:31 AM (in response to dandiodati)So this is true even when using facelets?
So I have to access the parameters passed via the FacesContext.getCurrentInstance().getExternalContext().
getRequestParameterMap().get(...
Why doesn't this tag support actionListeners?
I was hoping to change all commandLinks to use this link tag. -
3. Re: EL enhancement of parameters working?
norman.richards Dec 22, 2006 12:29 PM (in response to dandiodati)You can access request parameters using @RequestParameter.
You can also access request parameters from the EL:<s:link action="#{bean.action(param.myData)}" value="now"> <f:param name="myData" value="#{item.someValue}" /> </s:link>
However, you obviously can't pass whole objects this way - just simple values. -
4. Re: EL enhancement of parameters working?
spambob Dec 22, 2006 1:27 PM (in response to dandiodati)I was wondering myself too some days ago why one can't use actionListeners with s:link & s:button.
Is there a reason for this? If no could it please be added?! ;)