![](/img/trans.png)
[英]Getting Javascript error while using p:commandButton and p:dialog
[英]<p:commandButton> not getting scrolled along with the <p:scrollPanel>
我有一个<h:inputText><p:commandButton>
在<p:scrollPanel>
一个接一个地排列。
滚动窗格中的内容是动态的,因此会根据特定条件添加或删除内容,并动态添加滚动条。如果内容超过滚动窗格的大小,则会添加滚动条。
问题是,当我滚动滚动条时, <h:inputText>
随滚动条一起滚动,但<h:inputText>
却未随之滚动,这意味着保持静态并且不会上下滚动。
这是我的代码
<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">
我已附上我期望的屏幕截图,如下所示:
这似乎是一种浏览器问题,在mozilla firefox中也可以正常工作,我正在使用IE 8查找问题。 如何解决问题。
我将<p:commandButton>
替换为<h:commandButton>
按钮,并使其滚动。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.