< p:commandButton>不会与< p:scrollPanel> [英] <p:commandButton> not getting scrolled along with the <p:scrollPanel>

查看:167
本文介绍了< p:commandButton>不会与< p:scrollPanel>的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在< p:scrollPanel>中一个接一个排列的< h:inputText>< p:commandButton>
将添加滚动窗格滚动条。
\\
问题是当我滚动滚动条时,< h:inputText> 与滚动条一起滚动,不会滚动,这意味着保持静态,不会向上和向下滚动。

I have a <h:inputText><p:commandButton>arranged one after the other inside a <p:scrollPanel>.
The contents inside the scroll pane are dynamic hence the contents gets added or removed based on certain condition and a scroll bar is added dynamically.If the contents exceeds the size of the scroll pane scrollbar gets added.
The problem is when I scroll the scroll bar the <h:inputText> gets scrolled along with the scrollbar but the is not getting scrolled along with which means the stays static and its not scrolling up and down.

这是我的代码

<h:inputText style="width:41%" value="#{xx.selectedid"/>
<p:commandButton value="WebPhone" id="pwebpne" style="margin-left:1em;width: auto; height: 20px;font-size:85%;valign:top" actionListener="#{xx.PhoneSearch}"    oncomplete="window.open('#{xx.pUrl}', '_blank')"
rendered="#{xx.editflg == true"} async="false">


附加我的期望的屏幕截图如下:

I have attached the screenshot of my expectation which is given below :

这似乎是一种浏览器问题,同样的工作正常在mozilla firefox,我使用IE 8的问题被发现。
如何解决问题。

It seems to be a kind of browser issue, the same works fine in mozilla firefox, I am using IE 8 where the issue is found. How to resolve the issue.

推荐答案

我替换了< p:commandButton& / code>与< h:commandButton> 按钮并滚动。

这篇关于&lt; p:commandButton&gt;不会与&lt; p:scrollPanel&gt;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆