Re: Popup New Window with CommandLink onclick attribute
Thanks Tim. I am glad to be of help. I agree, a wiki entry would be good. btw TR also stands for Turkey :P Cheers, Mert On 5/3/06, Romanowski, Tim <[EMAIL PROTECTED]> wrote: Mert, Excellent explanation, thanks for your patience! The extra code that I was looking for was code that would be in the originating page, but I think you've explained that sufficiently now. I've implemented this and it appears to be working well. Perhaps such an example belongs in the wiki? Cheers, Tim From: Mert Çaliskan [mailto: [EMAIL PROTECTED]] Sent: Wednesday, May 03, 2006 2:56 PM To: MyFaces DiscussionSubject: Re: Popup New Window with CommandLink onclick attribute Hey Tim,Actually that's all for passing parameters via URL between jsf pages. I commented your post below. Hope this helps. On 5/3/06, Romanowski, Tim <[EMAIL PROTECTED] > wrote: Thanks for the link Mert. If you look at the page, it seems be missing 50% of the puzzle; it shows how to bind a variable in the target page, but it does not state how to pass that variable from the originating page The subject of my blog is about passing parameters with the URL so i focus on the target page to get the determined parameter.Sorry if it became a little confusing for all. So here it is. :)The parameter should be passed via URL like /faces/myPage.jsp?myParam=blahBlah. You want to open a custom sized window. so rewrite the url with the parameters in your jscript. You can also use _expression_ languages with the jscript so no need to worry here to populate the url. --the resolver function is resolving the binding of the current (i.e., the new popped up window) page, but I need to use the value from the originating page. I don't understand how one does so from the originating page when you wish to create a popup. param map is the key here. From the JSF Spec:param: an immutable map of the request parameters. So all the parameters specified in URL can be accessed through this map. Resolving an _expression_ like #{param.myParam} helps retrieve the value. I would like to control the size of the popup, which appears only to be available if I open the window via _javascript_. That requirement aside, do you by any chance have a working example of a link opening a new window, first passing a value from one page to the next? This is not nearly as straightforward as I would expect. Yes i've implemented this but all the code is also in the blogpost too. add a propertyadd getter/setter and resolver method.add a hidden field & bind the property to hidden fieldand use the passed value like getMyParam().thats all. The website [1] below suggests using output link, but I'm not sure what they did to make it work (i.e., they call target="_blank", but I don't see them attempting to first bind a value as would be the case with a commandLink). [1] http://www.jroller.com/page/jsight?entry=still_not_so_sure_about outputlink also renders a tag for itself. So you can simulate a popup action like, http://www.jroller.com')"> with window.open command you can specify your window size. Regards,Mert From: Mert Çaliskan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 03, 2006 12:32 PM To: MyFaces DiscussionSubject: Re: Popup New Window with CommandLink onclick attribute to pass parameters between pages via url,http://www.jroller.com/page/mert?entry=how_to_pass_request_parameters Regards, Mert.. On 5/3/06, Romanowski, Tim <[EMAIL PROTECTED]> wrote: Thanks Matthias, the link you've listed does explain why I am notsetting a value before the onclick method is called. Unfortunately,although that explains why I cannot update a backing value via a bindingmethod before opening a new window, I still am at a loss as to how I can in fact open a new window that is passed the current value of mydatatable row.**Does anyone have an example where they generate a popup window andpass a value for use by the new window? I do not understand how a managed bean might be instantiated if I am submitting a form via_javascript_, as explained below. Ideally, I'd like to simply have acommandLink in my dataTable that I can use to open the new window, andbind a value before the page in that window is actually executed. I _have_ tried one thing that is similar a hack used for getting theapache display taglib to work with commandLinks: In addition tosurrounding my JSF datatable with a form tag, I've included in that formtag a standalone commandLink. I then call a _javascript_ method from thedatatable which sets the _link_hidden_ value of the form to the page I'dlike to open; I also set a dummy param value (I called it "id&quo
RE: Popup New Window with CommandLink onclick attribute
Mert, Excellent explanation, thanks for your patience! The extra code that I was looking for was code that would be in the originating page, but I think you've explained that sufficiently now. I've implemented this and it appears to be working well. Perhaps such an example belongs in the wiki? Cheers, Tim From: Mert Çaliskan [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 03, 2006 2:56 PMTo: MyFaces DiscussionSubject: Re: Popup New Window with CommandLink onclick attribute Hey Tim,Actually that's all for passing parameters via URL between jsf pages. I commented your post below. Hope this helps. On 5/3/06, Romanowski, Tim <[EMAIL PROTECTED] > wrote: Thanks for the link Mert. If you look at the page, it seems be missing 50% of the puzzle; it shows how to bind a variable in the target page, but it does not state how to pass that variable from the originating page The subject of my blog is about passing parameters with the URL so i focus on the target page to get the determined parameter.Sorry if it became a little confusing for all. So here it is. :)The parameter should be passed via URL like /faces/myPage.jsp?myParam=blahBlah. You want to open a custom sized window. so rewrite the url with the parameters in your jscript. You can also use _expression_ languages with the jscript so no need to worry here to populate the url. --the resolver function is resolving the binding of the current (i.e., the new popped up window) page, but I need to use the value from the originating page. I don't understand how one does so from the originating page when you wish to create a popup. param map is the key here. From the JSF Spec:param: an immutable map of the request parameters. So all the parameters specified in URL can be accessed through this map. Resolving an _expression_ like #{param.myParam} helps retrieve the value. I would like to control the size of the popup, which appears only to be available if I open the window via _javascript_. That requirement aside, do you by any chance have a working example of a link opening a new window, first passing a value from one page to the next? This is not nearly as straightforward as I would expect. Yes i've implemented this but all the code is also in the blogpost too. add a propertyadd getter/setter and resolver method.add a hidden field & bind the property to hidden fieldand use the passed value like getMyParam().thats all. The website [1] below suggests using output link, but I'm not sure what they did to make it work (i.e., they call target="_blank", but I don't see them attempting to first bind a value as would be the case with a commandLink). [1] http://www.jroller.com/page/jsight?entry=still_not_so_sure_about outputlink also renders a tag for itself. So you can simulate a popup action like, http://www.jroller.com')"> with window.open command you can specify your window size. Regards,Mert From: Mert Çaliskan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 03, 2006 12:32 PM To: MyFaces DiscussionSubject: Re: Popup New Window with CommandLink onclick attribute to pass parameters between pages via url,http://www.jroller.com/page/mert?entry=how_to_pass_request_parameters Regards, Mert.. On 5/3/06, Romanowski, Tim <[EMAIL PROTECTED]> wrote: Thanks Matthias, the link you've listed does explain why I am notsetting a value before the onclick method is called. Unfortunately,although that explains why I cannot update a backing value via a bindingmethod before opening a new window, I still am at a loss as to how I can in fact open a new window that is passed the current value of mydatatable row.**Does anyone have an example where they generate a popup window andpass a value for use by the new window? I do not understand how a managed bean might be instantiated if I am submitting a form via_javascript_, as explained below. Ideally, I'd like to simply have acommandLink in my dataTable that I can use to open the new window, andbind a value before the page in that window is actually executed. I _have_ tried one thing that is similar a hack used for getting theapache display taglib to work with commandLinks: In addition tosurrounding my JSF datatable with a form tag, I've included in that formtag a standalone commandLink. I then call a _javascript_ method from thedatatable which sets the _link_hidden_ value of the form to the page I'dlike to open; I also set a dummy param value (I called it "id") like so: ... Some table columns ... Header Name value="#dbRow.cellValue}"> ... More columns ... &l
Re: Popup New Window with CommandLink onclick attribute
Hey Tim, Actually that's all for passing parameters via URL between jsf pages. I commented your post below. Hope this helps. On 5/3/06, Romanowski, Tim <[EMAIL PROTECTED] > wrote: Thanks for the link Mert. If you look at the page, it seems be missing 50% of the puzzle; it shows how to bind a variable in the target page, but it does not state how to pass that variable from the originating page The subject of my blog is about passing parameters with the URL so i focus on the target page to get the determined parameter. Sorry if it became a little confusing for all. So here it is. :) The parameter should be passed via URL like /faces/myPage.jsp?myParam=blahBlah. You want to open a custom sized window. so rewrite the url with the parameters in your jscript. You can also use _expression_ languages with the jscript so no need to worry here to populate the url. --the resolver function is resolving the binding of the current (i.e., the new popped up window) page, but I need to use the value from the originating page. I don't understand how one does so from the originating page when you wish to create a popup. param map is the key here. From the JSF Spec: param: an immutable map of the request parameters. So all the parameters specified in URL can be accessed through this map. Resolving an _expression_ like #{param.myParam} helps retrieve the value. I would like to control the size of the popup, which appears only to be available if I open the window via _javascript_. That requirement aside, do you by any chance have a working example of a link opening a new window, first passing a value from one page to the next? This is not nearly as straightforward as I would expect. Yes i've implemented this but all the code is also in the blogpost too. add a property add getter/setter and resolver method. add a hidden field & bind the property to hidden field and use the passed value like getMyParam(). thats all. The website [1] below suggests using output link, but I'm not sure what they did to make it work (i.e., they call target="_blank", but I don't see them attempting to first bind a value as would be the case with a commandLink). [1] http://www.jroller.com/page/jsight?entry=still_not_so_sure_about outputlink also renders a tag for itself. So you can simulate a popup action like, http://www.jroller.com')"> with window.open command you can specify your window size. Regards, Mert From: Mert Çaliskan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 03, 2006 12:32 PMTo: MyFaces DiscussionSubject: Re: Popup New Window with CommandLink onclick attribute to pass parameters between pages via url,http://www.jroller.com/page/mert?entry=how_to_pass_request_parameters Regards, Mert.. On 5/3/06, Romanowski, Tim <[EMAIL PROTECTED]> wrote: Thanks Matthias, the link you've listed does explain why I am notsetting a value before the onclick method is called. Unfortunately,although that explains why I cannot update a backing value via a bindingmethod before opening a new window, I still am at a loss as to how I can in fact open a new window that is passed the current value of mydatatable row.**Does anyone have an example where they generate a popup window andpass a value for use by the new window? I do not understand how a managed bean might be instantiated if I am submitting a form via_javascript_, as explained below. Ideally, I'd like to simply have acommandLink in my dataTable that I can use to open the new window, andbind a value before the page in that window is actually executed. I _have_ tried one thing that is similar a hack used for getting theapache display taglib to work with commandLinks: In addition tosurrounding my JSF datatable with a form tag, I've included in that formtag a standalone commandLink. I then call a _javascript_ method from thedatatable which sets the _link_hidden_ value of the form to the page I'dlike to open; I also set a dummy param value (I called it "id") like so: ... Some table columns ... Header Name value="#dbRow.cellValue}"> ... More columns ... <br>function myJavaScript(cellValue){<br> var f = document.forms['myMainForm'];<br><br>f.elemnts['myMainForm:_link_hidden_'].value='myMainForm:viewNewPageLink' <br>;<br> f.elements['id'].value=cellValue;<br> f.submit();<br>}<br><br><br><br><br>-Original Message-<br>From: <a rel="nofollow" href="mailto:[EMAIL PROTECTED]" target="_blank" >[EMAIL PROTECTED]</a> [mailto:<a rel="nofollow" href="mailto:[EMAIL PROTECTED]" target="_blank
RE: Popup New Window with CommandLink onclick attribute
Thanks for the link Mert. If you look at the page, it seems be missing 50% of the puzzle; it shows how to bind a variable in the target page, but it does not state how to pass that variable from the originating page--the resolver function is resolving the binding of the current (i.e., the new popped up window) page, but I need to use the value from the originating page. I don't understand how one does so from the originating page when you wish to create a popup. I would like to control the size of the popup, which appears only to be available if I open the window via _javascript_. That requirement aside, do you by any chance have a working example of a link opening a new window, first passing a value from one page to the next? This is not nearly as straightforward as I would expect. The website [1] below suggests using output link, but I'm not sure what they did to make it work (i.e., they call target="_blank", but I don't see them attempting to first bind a value as would be the case with a commandLink). [1] http://www.jroller.com/page/jsight?entry=still_not_so_sure_about From: Mert Çaliskan [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 03, 2006 12:32 PMTo: MyFaces DiscussionSubject: Re: Popup New Window with CommandLink onclick attribute to pass parameters between pages via url,http://www.jroller.com/page/mert?entry=how_to_pass_request_parametersRegards, Mert.. On 5/3/06, Romanowski, Tim <[EMAIL PROTECTED]> wrote: Thanks Matthias, the link you've listed does explain why I am notsetting a value before the onclick method is called. Unfortunately,although that explains why I cannot update a backing value via a bindingmethod before opening a new window, I still am at a loss as to how I can in fact open a new window that is passed the current value of mydatatable row.**Does anyone have an example where they generate a popup window andpass a value for use by the new window? I do not understand how a managed bean might be instantiated if I am submitting a form via_javascript_, as explained below. Ideally, I'd like to simply have acommandLink in my dataTable that I can use to open the new window, andbind a value before the page in that window is actually executed. I _have_ tried one thing that is similar a hack used for getting theapache display taglib to work with commandLinks: In addition tosurrounding my JSF datatable with a form tag, I've included in that formtag a standalone commandLink. I then call a _javascript_ method from thedatatable which sets the _link_hidden_ value of the form to the page I'dlike to open; I also set a dummy param value (I called it "id") like so: ... Some table columns ... Header Name value="#dbRow.cellValue}"> ... More columns ... <BR>function myJavaScript(cellValue){<BR> var f = document.forms['myMainForm'];<BR><BR>f.elemnts['myMainForm:_link_hidden_'].value='myMainForm:viewNewPageLink' <BR>;<BR> f.elements['id'].value=cellValue;<BR> f.submit();<BR>}<BR><BR><BR><BR><BR>-Original Message-<BR>From: <A rel="nofollow" href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</A> [mailto:<A rel="nofollow" href="mailto:[EMAIL PROTECTED]"> [EMAIL PROTECTED]</A>] On Behalf Of<BR>Matthias Wessendorf<BR>Sent: Tuesday, May 02, 2006 5:55 AM<BR>To: MyFaces Discussion<BR>Subject: Re: Popup New Window with CommandLink onclick attribute<BR><BR>> befor executing an action. However, because I am using the onclick <BR>> attribute to open a new window, the window seems to be rendered before<BR><BR>> the updateActionListener actually sets the value. Since the target<BR>> attribute<BR><BR>this is because you are doing a "non-postback" request Phase 1 <BR>(RESTORE_VIEW) goes directly to Phase 6 (RENDER_RESPONSE)<BR><BR>you may take a look at [1]<BR><BR>-Matthias<BR>[1] _javascript_ w/ JSF<BR>(<A rel="nofollow" href="http://wiki.apache.org/myfaces/_javascript_WithJavaServerFaces">http://wiki.apache.org/myfaces/_javascript_WithJavaServerFaces </A>)<BR><BR>> doesn't work, I can't do something like 'target="this.form._blank". I<BR><BR>> am using Apache Beehive for my pageflow controller, and am attempting<BR>> to set a value in my controller class; the idea is that when the popup <BR><BR>> page is created, the new page's backing bean can grab the value I<BR>&
Re: Popup New Window with CommandLink onclick attribute
to pass parameters between pages via url, http://www.jroller.com/page/mert?entry=how_to_pass_request_parameters Regards, Mert..On 5/3/06, Romanowski, Tim <[EMAIL PROTECTED]> wrote: Thanks Matthias, the link you've listed does explain why I am notsetting a value before the onclick method is called. Unfortunately,although that explains why I cannot update a backing value via a bindingmethod before opening a new window, I still am at a loss as to how I can in fact open a new window that is passed the current value of mydatatable row.**Does anyone have an example where they generate a popup window andpass a value for use by the new window? I do not understand how a managed bean might be instantiated if I am submitting a form via_javascript_, as explained below. Ideally, I'd like to simply have acommandLink in my dataTable that I can use to open the new window, andbind a value before the page in that window is actually executed. I _have_ tried one thing that is similar a hack used for getting theapache display taglib to work with commandLinks: In addition tosurrounding my JSF datatable with a form tag, I've included in that form tag a standalone commandLink. I then call a _javascript_ method from thedatatable which sets the _link_hidden_ value of the form to the page I'dlike to open; I also set a dummy param value (I called it "id") like so: ... Some table columns ... Header Name value="#dbRow.cellValue}"> ... More columns ... <br>function myJavaScript(cellValue){<br> var f = document.forms['myMainForm'];<br><br>f.elemnts['myMainForm:_link_hidden_'].value='myMainForm:viewNewPageLink' <br>;<br> f.elements['id'].value=cellValue;<br> f.submit();<br>}<br><br><br><br><br>-Original Message-<br>From: <a rel="nofollow" href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a> [mailto:<a rel="nofollow" href="mailto:[EMAIL PROTECTED]"> [EMAIL PROTECTED]</a>] On Behalf Of<br>Matthias Wessendorf<br>Sent: Tuesday, May 02, 2006 5:55 AM<br>To: MyFaces Discussion<br>Subject: Re: Popup New Window with CommandLink onclick attribute<br><br>> befor executing an action. However, because I am using the onclick <br>> attribute to open a new window, the window seems to be rendered before<br><br>> the updateActionListener actually sets the value. Since the target<br>> attribute<br><br>this is because you are doing a "non-postback" request Phase 1 <br>(RESTORE_VIEW) goes directly to Phase 6 (RENDER_RESPONSE)<br><br>you may take a look at [1]<br><br>-Matthias<br>[1] _javascript_ w/ JSF<br>(<a rel="nofollow" href="http://wiki.apache.org/myfaces/_javascript_WithJavaServerFaces">http://wiki.apache.org/myfaces/_javascript_WithJavaServerFaces </a>)<br><br>> doesn't work, I can't do something like 'target="this.form._blank". I<br><br>> am using Apache Beehive for my pageflow controller, and am attempting<br>> to set a value in my controller class; the idea is that when the popup <br><br>> page is created, the new page's backing bean can grab the value I<br>> previously set in the controller via the commandLink.<br>><br>> I'm new to webapp development and jumped into JSF/Beehive headfirst, <br>> so my misunderstanding of _javascript_ may be the culprit. Any help<br>> would be greatly appreciated.<br>><br>> Here's a sample of the code:<br>><br>> <t:column><br>> <f:facet name="header"> <br>> <f:verbatim>Header Name</f:verbatim><br>> </f:facet><br>> <h:form><br>> <h:commandLink >> value="#dbRow.cellValue}"> <br>> <t:updateActionListener<br>> property="#{pageFlow.thisSetsValueInMyController}"<br>> value="#{dbRow.cellValue}" /><br>> </h:commandLink><br>> </h:form> <br>> </t:column><br>><br>> _javascript_ (currently in same page for trying this):<br>><br>> <script type=text/_javascript_"><br>> Function myJavaScript(cellValue){<br>> popup =<br>> window.open("<a rel="nofollow" href="http://localhost:8080/XYZ/controller/goNewPage.do">http://localhost:8080/XYZ/controller/goNewPage.do</a>",<br>> "page name",<br>> "height=300,width=300,resizable=1,toolbar=no,menubar=no");<br>> popup.focus();<br>> }<br>> >>>> TR>--Matthias Wessendorf Aechterhoek 1848282 Emsdettenhttp://jroller.com/page/mwessendorfmwessendorf-at-gmail-dot-com
RE: Popup New Window with CommandLink onclick attribute
Thanks Matthias, the link you've listed does explain why I am not setting a value before the onclick method is called. Unfortunately, although that explains why I cannot update a backing value via a binding method before opening a new window, I still am at a loss as to how I can in fact open a new window that is passed the current value of my datatable row. **Does anyone have an example where they generate a popup window and pass a value for use by the new window? I do not understand how a managed bean might be instantiated if I am submitting a form via javascript, as explained below. Ideally, I'd like to simply have a commandLink in my dataTable that I can use to open the new window, and bind a value before the page in that window is actually executed. I _have_ tried one thing that is similar a hack used for getting the apache display taglib to work with commandLinks: In addition to surrounding my JSF datatable with a form tag, I've included in that form tag a standalone commandLink. I then call a javascript method from the datatable which sets the _link_hidden_ value of the form to the page I'd like to open; I also set a dummy param value (I called it "id") like so: ... Some table columns ... Header Name ... More columns ... function myJavaScript(cellValue){ var f = document.forms['myMainForm']; f.elemnts['myMainForm:_link_hidden_'].value='myMainForm:viewNewPageLink' ; f.elements['id'].value=cellValue; f.submit(); } -Original Message- From: [EMAIL PROTECTED] [<a rel="nofollow" href="mailto:[EMAIL">mailto:[EMAIL</a> PROTECTED] On Behalf Of Matthias Wessendorf Sent: Tuesday, May 02, 2006 5:55 AM To: MyFaces Discussion Subject: Re: Popup New Window with CommandLink onclick attribute > befor executing an action. However, because I am using the onclick > attribute to open a new window, the window seems to be rendered before > the updateActionListener actually sets the value. Since the target > attribute this is because you are doing a "non-postback" request Phase 1 (RESTORE_VIEW) goes directly to Phase 6 (RENDER_RESPONSE) you may take a look at [1] -Matthias [1] Javascript w/ JSF (<a rel="nofollow" href="http://wiki.apache.org/myfaces/JavascriptWithJavaServerFaces">http://wiki.apache.org/myfaces/JavascriptWithJavaServerFaces</a>) > doesn't work, I can't do something like 'target="this.form._blank". I > am using Apache Beehive for my pageflow controller, and am attempting > to set a value in my controller class; the idea is that when the popup > page is created, the new page's backing bean can grab the value I > previously set in the controller via the commandLink. > > I'm new to webapp development and jumped into JSF/Beehive headfirst, > so my misunderstanding of javascript may be the culprit. Any help > would be greatly appreciated. > > Here's a sample of the code: > > <t:column> > <f:facet name="header"> > <f:verbatim>Header Name</f:verbatim> > </f:facet> > <h:form> > <h:commandLink onclick="myJavaScript(#{dbRow.cellValue})" > value="#dbRow.cellValue}"> > <t:updateActionListener > property="#{pageFlow.thisSetsValueInMyController}" > value="#{dbRow.cellValue}" /> > </h:commandLink> > </h:form> > </t:column> > > Javascript (currently in same page for trying this): > > <script type=text/javascript"> > Function myJavaScript(cellValue){ > popup = > window.open("<a rel="nofollow" href="http://localhost:8080/XYZ/controller/goNewPage.do"">http://localhost:8080/XYZ/controller/goNewPage.do"</a>;, > "page name", > "height=300,width=300,resizable=1,toolbar=no,menubar=no"); > popup.focus(); > } > > > > > TR > -- Matthias Wessendorf Aechterhoek 18 48282 Emsdetten http://jroller.com/page/mwessendorf mwessendorf-at-gmail-dot-com
Re: Popup New Window with CommandLink onclick attribute
befor executing an action. However, because I am using the onclick attribute to open a new window, the window seems to be rendered before the updateActionListener actually sets the value. Since the target attribute this is because you are doing a "non-postback" request Phase 1 (RESTORE_VIEW) goes directly to Phase 6 (RENDER_RESPONSE) you may take a look at [1] -Matthias [1] Javascript w/ JSF (http://wiki.apache.org/myfaces/JavascriptWithJavaServerFaces) doesn't work, I can't do something like 'target="this.form._blank". I am using Apache Beehive for my pageflow controller, and am attempting to set a value in my controller class; the idea is that when the popup page is created, the new page's backing bean can grab the value I previously set in the controller via the commandLink. I'm new to webapp development and jumped into JSF/Beehive headfirst, so my misunderstanding of javascript may be the culprit. Any help would be greatly appreciated. Here's a sample of the code: Header Name Javascript (currently in same page for trying this): Function myJavaScript(cellValue){ popup = window.open("http://localhost:8080/XYZ/controller/goNewPage.do";, "page name", "height=300,width=300,resizable=1,toolbar=no,menubar=no"); popup.focus(); } TR -- Matthias Wessendorf Aechterhoek 18 48282 Emsdetten http://jroller.com/page/mwessendorf mwessendorf-at-gmail-dot-com
Popup New Window with CommandLink onclick attribute
Title: Popup New Window with CommandLink onclick attribute What I would like to do: I am trying to popup a new window each time a cell in my datatable is clicked. I fail when attempting to bind (set) a value before the window is opened; it's the standard master/detail scenario discussed here several times in the past. The only difference is trying to popup the window. Problem: I am able to popup a window by calling some _javascript_ via the onclick attribute of the commandLink. I have tried using updateActionListener to set the value of the current cell's value as is normally used to set a value befor executing an action. However, because I am using the onclick attribute to open a new window, the window seems to be rendered before the updateActionListener actually sets the value. Since the target attribute doesn't work, I can't do something like 'target="this.form._blank". I am using Apache Beehive for my pageflow controller, and am attempting to set a value in my controller class; the idea is that when the popup page is created, the new page's backing bean can grab the value I previously set in the controller via the commandLink. I'm new to webapp development and jumped into JSF/Beehive headfirst, so my misunderstanding of _javascript_ may be the culprit. Any help would be greatly appreciated. Here's a sample of the code: Header Name value="#dbRow.cellValue}"> _javascript_ (currently in same page for trying this): </FONT> <BR><FONT SIZE=2 FACE="Arial">Function myJavaScript(cellValue){</FONT> <BR><FONT SIZE=2 FACE="Arial"> popup = window.open("<A rel="nofollow" href="http://localhost:8080/XYZ/controller/goNewPage.do">http://localhost:8080/XYZ/controller/goNewPage.do</A>", </FONT> <BR><FONT SIZE=2 FACE="Arial"> "page name", "height=300,width=300,resizable=1,toolbar=no,menubar=no");</FONT> <BR><FONT SIZE=2 FACE="Arial"> popup.focus();</FONT> <BR><FONT SIZE=2 FACE="Arial">}</FONT> <BR><FONT SIZE=2 FACE="Arial"> TR