This content has been marked as final.
Show 5 replies
-
1. Re: putting Jsf el on javascript popup window - very urgent-
raist_majere Oct 5, 2007 11:42 PM (in response to chpadmamca)I don't know nearly nothing about JSF, but I do for HTML and JavaScript, and I've found some errors in your code:
<h:panelGroup> <h:dataTable value="#{requestBean.screenApprovalLine}" var="req"> <h:inputText value="#{req.approverId}" readOnly="#{req.readOnly}" id="#{req.seqNbr}" /> <h:commandButton value="Search" onmousedown="window.open('/search.jsp?approveType=' + approveType.value,'Employees','scrollbars=yes','height=200,width=150');" rendered="#{!req.readOnly}" > <f:param value="#{req.approveType}" name="approveType"></f:param> </h:commandButton> </h:panelGroup> </h:dataTable>
- Removed "javascript:" from onmousedown
- Changed \ for / in URL of search page
- Plus sign outside String before approveType.value
- Removed double quote after approveType.value -
2. Re: putting Jsf el on javascript popup window - very urgent-
chpadmamca Oct 6, 2007 8:58 AM (in response to chpadmamca)Hi Majere,
Thanks for your sharp reply.
Could you please tell me the logic to retrive the approveType parameter above on the popup window. -
3. Re: putting Jsf el on javascript popup window - very urgent-
raist_majere Oct 7, 2007 4:18 AM (in response to chpadmamca)Just get as a param. With EL is ${param.approveType}.
-
4. Re: putting Jsf el on javascript popup window - very urgent-
chpadmamca Oct 7, 2007 3:09 PM (in response to chpadmamca)Hi Majere,
Thanks for your reply.
the approveType itself is the parameter.
Could you please send me the code to get it at the time of loading popup window.
I want to see the approveType value on my popup window.
Thanks in advance,
chirumalla -
5. Re: putting Jsf el on javascript popup window - very urgent-
raist_majere Oct 8, 2007 5:28 AM (in response to chpadmamca)It's what I wrote on last post. You write ${param.approveType} wherever you need the param value. For example:
<p> This is the value of approveType: ${param.approveType} </p>