问题标签 [popuppanel]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
201 浏览

gwt - GWT popupPanel:Child element do not aware of visibility of parent element

There is the main panel in that panel there are different fields like text box cell, integer box cell which contains popup panel.Popup panel is instantiated from the text box or integer box.So when popup panel is fired from the cell, application makes server call it may take some time to populate that popup panel.Meanwhile if user close the parent panel, popup panel doesn't know where to place itself as while it showed up the parent panel and the cell box from where it instantiated is already gone. So it places itself to the default location that is at top left corner of the screen.So how this case should be handled?How pop panel will come to know that its grandparent element is hidden and it should not display itself anymore?

0 投票
0 回答
45 浏览

jsf - Richfaces 中不同鼠标事件的不同行为的 tooptip 是可能的吗?

如果鼠标悬停在元素上或单击它,是否有任何方法可以使 tooptip 表现不同?

如果鼠标悬停,我需要将相同的元素用作工具提示,如果单击鼠标,我需要打开一个弹出面板。

如果使用分离的元素,我可以很容易地做到这一点,但我需要使用相同的元素。

0 投票
1 回答
1238 浏览

richfaces - 丰富的 popupPanel 不会自动调整大小

我有一个丰富的:popupPanel,如下所示:

似乎这个问题已经解决了JIRA,但它仍然对我不起作用。我对richfaces有以下依赖:

也许问题是我使用了 JBOSS 的这个受支持的版本?或者有人知道我如何根据面板的内容实现调整大小?

0 投票
1 回答
401 浏览

java - Richfaces弹出面板不起作用

每当 Java 代码出现错误时,我都会将我的页面重定向到错误页面。请在下面找到我的代码。但我的 IE 中没有任何内容。

0 投票
1 回答
713 浏览

css - 如何让richfaces向上弹出popuppanel

该链接包含richfaces 4 popuppanel的示例: richfaces popuppanel example

这是代码:

但弹出窗口出现在随机位置,即有时在栏下方,然后必须滚动,有时在上方。是否可以确保它在连接时始终显示在栏的正上方?

0 投票
1 回答
1116 浏览

jsf - 点击 Rich:tab 时显示 rich:popupPanel

一页包含丰富的面部选项卡面板并具有 4 个选项卡。在其中一个选项卡中,我有文本框和保存按钮。不保存数据如果我移动到另一个选项卡,它应该显示弹出窗口说未保存的数据并阻止导航。

我尝试使用不同的 java 脚本加载rich:tabPanel 属性调用弹出窗口,但没有达到目的。

这是代码

如果选项卡 4 上的文本框中有任何未保存的数据并尝试单击任何其他选项卡,则它应保留在选项卡 4 中并显示上述确认弹出窗口。

通过这个实现,每当我单击选项卡时,我的弹出窗口就会打开。

请指出我正在做的错误或对上述情况提出建议。任何帮助表示赞赏

0 投票
1 回答
530 浏览

richfaces - Richfaces popup panel does not get autosized when its content is dynamically updated

I have a rich popupPanel with two selectOneMenus which render some more components inside the popup when used. The main problem is that the popup Panel does not get autosized when the components are rendered. The problem appeared when I updated to richfaces 4.3.7, but this version solves another problem that I had, so I don't want to get back to a previous version.

I have found here: https://developer.jboss.org/thread/241593 that I can use this panel.doResizeOrMove(RichFaces.ui.PopupPanel.Sizer.Diff.EMPTY); to force the popup to resize. I have two questions:

  1. Can you tell me how to resize the popup with the above function?
  2. Is there another way to fix my problem?

Thank you in advance!

0 投票
1 回答
525 浏览

jsf - 如何从 ICEfaces 模式弹出窗口调用托管 bean?

我正在使用 Eclipse Luna EE、Tomcat v7.0 和 ICEFaces 3.2

我有一个用于标签打印的表单,用户输入诸如项目编号、项目名称和标签类型等信息。然后用户提交表单。这会将信息以 ZPL 字符串形式发送到标签打印机,然后打印机打印出该项目的正确标签。这一切都没有问题。

如果值高(生产中超过 100 个),该表格会检查打印数量。如果打印数量超过某个值(> 2。纯粹出于测试目的),则“testFlag”布尔值设置为 true,显示模式框并设置错误标志,以便不执行打印命令。

模态框询问用户是否输入了正确的数量,并提供了是/否按钮。

printUI 和模态弹出框位于同一<ice:form>元素内,如果 testFlag 设置为 true,则弹出框呈现并可见。

问题: 当我单击模式框中的“是”按钮时,它没有执行我分配给它的操作(System.out.println("Yes Button!"))。模态框关闭,没有任何反应。

然后我可以重新提交表单,模式框再次出现,然后我单击“是”,没有任何反应。

如果我将数量更改为2并提交,那么它执行打印命令没有问题。

我猜这是会话处理方式的问题。

问题: 如何在模态框中获得“是”按钮来执行我想要的代码?

我试过: 使用<ice:commandLink>, <h:button>, <h:commandButton>,<h:commandLink>

将模式弹出窗口和表单放在单独的<ice:form>标签中(这刷新了会话并删除了所有输入的数据)。

使用actionListener

包含表单的代码:

printQtyPopup.xhtml

相关ValidateBean.java代码

0 投票
1 回答
200 浏览

richfaces - a4j命令按钮在弹出面板下不起作用

我想添加一个弹出面板。在此面板中有一个关闭按钮。在这个按钮上单击一个方法应该被调用并且弹出应该被隐藏。我已经尝试过下面的代码,但没有工作请帮我解决这个问题。这里 settingPopUpClose 是一个方法,而 okPopupStatus 是一个 bean。它显示错误:settingPopUpClose 不是属性。

0 投票
1 回答
188 浏览

html - GWT PopupPanel 弹出位置不正确

当用户单击它时,我正在使用 GWT PopupPanel 在按钮上方显示一个弹出窗口。

我正在设置弹出窗口的位置并像这样显示它:

但是,当我在弹出窗口显示后检查它的最高值时,我发现它的位置略低于我分配的位置。

问题可能是 setPopupPosition 更改了传入的值:

如何确保 GWT PopupPanel 的位置正是我给它的值?setPopupPosition()似乎确实是设置位置的唯一方法,但它对我传入的位置进行了一些操作(这对我的用例来说是不必要的)。