commandlink

How to update a layoutUnit in PrimeFaces

ⅰ亾dé卋堺 提交于 2019-12-23 03:14:46
问题 I try to load an include in a "layoutUnit" via "commandLink" but nothing is displayed but if i refreshes the page all is correct. the commandLink : <p:commandLink update=":center" actionListener="#{sidePviewTest.sideBarAction}" value="Center1"> <f:param name="pageViewId" value="center1" /> </p:commandLink> the layoutUnit : <p:layoutUnit id="center" position="center"> <ui:include src="#{sidePviewTest.includedPage}" /> </p:layoutUnit> I do not understand what the problem is. Any ideas ? JSF 2.1

oncomplete attribute of h:commandLink not invoked

拜拜、爱过 提交于 2019-12-22 08:59:57
问题 We are migrating from JSF 1.2 to JSF 2.2.6 along with RichFaces 4.5.2. Facing issues with the oncomplete not getting called. The JS function during onclick gets called, but JS in oncomplete does not get called. How is this caused and how can I solve it? <h:commandLink ... onclick="ed();" oncomplete="cEd(#{rowIndex});"> 回答1: There is indeed no such attribute in <h:commandLink> . You're most likely confusing with <a4j:commandLink> which does have that attribute. You've basically 2 options: Just

h:commandLink not firing the form.submit event

别等时光非礼了梦想. 提交于 2019-12-11 06:26:15
问题 When my page is loaded I execute the following JS script, which I use to display a popup saying (please wait...) when any form is submitted. jQuery(function(){ jQuery("form").submit(function(){jQuery('#wait-link').trigger('click');return true;}); }); This works fine when using h:commandButton tag, however when I use the h:commandLink tag it doesn't work because the form is submitted by java script (from the file jsf.js in the jar jsf-impl.jar) as shown below mojarra.jsfcljs = function jsfcljs

ui:include in richfaces 4 only gets updated on second click

故事扮演 提交于 2019-12-11 05:15:12
问题 I am new to Richfaces4 and JSF2 and having lots of issues. Same code start to work suddenly and then it breaks. Currently I have a ui:include tag that update the page when the a4j:commandLink is clicked. Using debugging feature of eclipse I can see that the methods are being called and correct value is stored in the bean but page never gets updated until I click on it the second time. It seems the page is updated before the values are set in the backing bean. Following is my code. The same

How to update a layoutUnit in PrimeFaces

左心房为你撑大大i 提交于 2019-12-06 16:44:30
I try to load an include in a "layoutUnit" via "commandLink" but nothing is displayed but if i refreshes the page all is correct. the commandLink : <p:commandLink update=":center" actionListener="#{sidePviewTest.sideBarAction}" value="Center1"> <f:param name="pageViewId" value="center1" /> </p:commandLink> the layoutUnit : <p:layoutUnit id="center" position="center"> <ui:include src="#{sidePviewTest.includedPage}" /> </p:layoutUnit> I do not understand what the problem is. Any ideas ? JSF 2.1 PrimeFaces 3.5 I found how to display correctly the content. I added a panel and I refreshes it

CommandLink in WPF

守給你的承諾、 提交于 2019-12-06 02:15:25
问题 Can someone tell me how can I add a CommandLink control in a WPF window? This is what I mean by CommandLink : http://msdn.microsoft.com/en-us/library/aa511455.aspx 回答1: WPF Task Dialog Wrapper provides an implementation of a CommandLink user control. Here's an example of how to show command links: TaskDialogOptions config = new TaskDialogOptions(); config.Owner = this; config.Title = "RadioBox Title"; config.MainInstruction = "The main instruction text for the TaskDialog goes here."; config

oncomplete attribute of h:commandLink not invoked

雨燕双飞 提交于 2019-12-05 14:55:40
We are migrating from JSF 1.2 to JSF 2.2.6 along with RichFaces 4.5.2. Facing issues with the oncomplete not getting called. The JS function during onclick gets called, but JS in oncomplete does not get called. How is this caused and how can I solve it? <h:commandLink ... onclick="ed();" oncomplete="cEd(#{rowIndex});"> There is indeed no such attribute in <h:commandLink> . You're most likely confusing with <a4j:commandLink> which does have that attribute . You've basically 2 options: Just replace <h:commandLink> by <a4j:commandLink> . <a4j:commandLink ... oncomplete="oncompleteFunction()" />

Richfaces 4 a4j:commandLink action not firing in rich:popupPanel

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-05 00:24:10
问题 I seem to be having a problem where I have an a4j:commandLink on a rich:popupPanel but the action is not firing. The xhtml looks as follows: <rich:popupPanel id="rate-panel" modal="true" height="444" width="780" top="60" show="false" onmaskclick="#{rich:component('rate-panel')}.hide()" styleClass="cs-modal"> /**Some html here**/ <a4j:commandLink immediate="false" action="#{venueScore.up}" render="rate-panel" styleClass="rate love"> <span>Love it</span> </a4j:commandLink> /**Some more html

params not getting passed to backing bean for h:commandLink under rich:popupPanel and t:dataList

谁说我不能喝 提交于 2019-12-04 05:09:34
问题 I have rich:popupPanel which contains t:dataList under one column of t:dataTable. This dataList has h:commandLink which has f:param inside it. It was working fine for richfaces 3.3 but after migration to richfaces 4, it stopped working. To mention the fact that I was using rich:modalPanel in place of rich:popupPanel over there. I went through quite a few links: https://community.jboss.org/thread/202583 commandButton/commandLink/ajax action/listener method not invoked or input value not

Richfaces 4 a4j:commandLink action not firing in rich:popupPanel

最后都变了- 提交于 2019-12-03 17:00:20
I seem to be having a problem where I have an a4j:commandLink on a rich:popupPanel but the action is not firing. The xhtml looks as follows: <rich:popupPanel id="rate-panel" modal="true" height="444" width="780" top="60" show="false" onmaskclick="#{rich:component('rate-panel')}.hide()" styleClass="cs-modal"> /**Some html here**/ <a4j:commandLink immediate="false" action="#{venueScore.up}" render="rate-panel" styleClass="rate love"> <span>Love it</span> </a4j:commandLink> /**Some more html here**/ </rich:popupPanel> And the managed bean looks as follows: @Named("venueScore") @ViewScoped public