-
1. Re: popupPanel not show in rich:dataTable
songjinglim Jan 31, 2013 8:23 AM (in response to songjinglim)when run from local server, testPopup4.jsf display the contain of table in view source. I think the problem is cause by how GAE render the xhtml, if the table data is dynamic retrieve then table data will not be available at client side which directly cause the java script within the table not function. However if run from local server, no such problem, please refer to attach 'local.txt" and "gae.txt".
-
2. Re: popupPanel not show in rich:dataTable
sivaprasad9394 Feb 1, 2013 2:13 AM (in response to songjinglim)Hi Songjinglim,
As per my understanding local.txt file it has 2 forms and table values are not displaying in the view source code.
Line no:7 <form id="j_idt7" name="j_idt7" method="post" action="/public/test/testPopup5.jsf" enctype="application/x-www-form-urlencoded">
Line no:19 <form id="j_idt9" name="j_idt9" method="post" action="/public/test/testPopup5.jsf" enctype="application/x-www-form-urlencoded">
-- Normally in JSF there should not be nested forms in the page.
Please refer the image i have attached once edit is clicked style class should change ,see the firebug console also marked it
Not working below:
So as per my guess there is a problem with forms while clicking the search button.thats why pop up screen is not opening properly.
recheck it.Try looking popup panel id and form id while clicking the button.make sure id's are properly comming with hirerachy..
Thanks,
Siva
-
3. Re: popupPanel not show in rich:dataTable
songjinglim Feb 1, 2013 4:57 AM (in response to sivaprasad9394)Hi Siva
Thanks for reply
testPopup3.jsf working on both local (my notebook) and online (Google GAE server) where I suspect is because the bean load all the data before the page display.
testPopup4.jsf only work on my local. When testPopup4.jsf loaded, data is not loaded. Data is loaded after user click on 'search' button. Both testPopup3 and testPopu4 are similar. So I think the problem happen (ie. no popup) is because dataTable didn't have the value when page is loaded. Even later on I reRender or render the dataPanel also not help.
What I don't understand is why testPopup4.jsf work fine on my local machine and not after deploy to GAE.
Still can't solve it...
-
4. Re: popupPanel not show in rich:dataTable
songjinglim Feb 2, 2013 9:07 AM (in response to songjinglim)Hi
This issues still can't solve even I upgrade to richface 4.3.0 Final.
To simplify the investigation, I create a simple xhmtl (testPopup5.xhtml). Using firebug, I manage discover few diff between local and online GAE version.
1) editPanel @ local change it style stage from 'visibility hidden' to 'display none' and then 'display block' when click on edit icon.
However editPanel @ GAE still remain unchange with 'visibility hidden'
[Local]
<div id="j_idt9:editPanel" style="visibility: hidden;">
<div id="j_idt9:editPanel" style="display: none;">
<div id="j_idt9:editPanel" style="display: block;">
[GAE]
<div id="j_idt9:editPanel" style="visibility: hidden;">
2) under <div id="j_idt9:editPanel"...><div class="rf-pp-cntr "><div class="rf-pp-cnt-scrlr" >, local version contain value in table tag
3) Shown in firebug's script tab, when click on edit link, local version display as: <update id="j_idt9:editGrid"> and follow by table values.
However online version display it as <update id="javax.faces.ViewState"> and without any table values
p/s: Online: http://cloudenterpriseapps.appspot.com/public/test/testPopup5.jsf
By the way the GAE display below warning when page first load. Don't know is related to the problem or not.
[s~cloudenterpriseapps/0.365021621033424561].<stderr>: SystemId Unknown; Line #57; Column #31; Failed calling setMethod method
[FireBug Script tab, Local. Click on edit link]
<?xml version='1.0' encoding='UTF-8'?>
<partial-response><changes><update id="j_idt9:editGrid"><![CDATA[<table id="j_idt9:editGrid">
<tbody>
<tr>
<td>Model</td>
<td>Corvette</td>
<td></td>
</tr>
<tr>
<td>Price</td>
<td>47405</td>
<td></td>
</tr>
</tbody>
</table>
]]></update><update id="javax.faces.ViewState"><![CDATA[H4sIAAAAAAEUTEh...EUXAkFAAA]]></update></changes><extension id="org.richfaces.extension"><complete>RichFaces.$('j_idt9:editPanel').show();</complete><render>j_idt9:editGrid</render></extension></partial-response>
[FireBug Script tab, GAE. Click on edit link]
<?xml version='1.0' encoding='UTF-8'?>
<partial-response><changes><update id="javax.faces.ViewState"><![CDATA[H4sIAAAAAAAAANVYbW....KBTUkFAAA]]></update></changes></partial-response>
Please refer to updated testPopup5.xhtml and html <body> value from firebug for both local and GAE ('local - script.txt', 'gae - script.txt').
-
local - html.txt.zip 4.9 KB
-
gae - html.txt.zip 4.9 KB
-
testPopup5.xhtml.zip 1.1 KB
-
-
5. Re: popupPanel not show in rich:dataTable
songjinglim Feb 3, 2013 7:29 PM (in response to songjinglim)One obvious diff from local exeuction and the one deployed to GAE is the respond header:
Local: <partial-response><changes><update id="j_idt9:editGrid">
GAE: <partial-response><changes><update id="javax.faces.ViewState">
If this problem not able to solve, the work around is to split the search panel and result to 2 diff jsf pages...
-
6. Re: popupPanel not show in rich:dataTable
songjinglim Feb 4, 2013 8:09 PM (in response to songjinglim)Solved after upgrade JSF api and implementation jar from 2.0 to 2.1
-
7. Re: popupPanel not show in rich:dataTable
bleathem Feb 17, 2013 12:12 AM (in response to songjinglim)Thanks for taking the time to post your solultion!