primefaces

jars are missing on `artifactory` server after installing primefaces all-themes

 ̄綄美尐妖づ 提交于 2020-01-20 02:16:08
问题 I am trying to follow http://primefaces.org/themes to get it working. All community themes are also available in "all-in-one" package. <dependency> <groupId>org.primefaces.themes</groupId> <artifactId>all-themes</artifactId> <version>1.0.10</version> </dependency> I added primefaces repository and have artifactory running. It says *.jar artifact missing. I can see directories of all themes on local maven repository. However, all jars are missing and can't find them on artifactory server

PrimeFaces rendered attribute impact on performance

蹲街弑〆低调 提交于 2020-01-17 12:43:06
问题 I'm developing a JSF application with PrimeFaces in which i plan to use mainly tabViews (multiple ones). To give you a general idea about how the application is going to work, I have a side menu from which the user should be able to choose "modules" that will display in the center layout as Tabs. Seeing as I have multiple "modules" and there will be more in the future, the solution I've decided on using is writing the code for all the tabs I have in the xhtml and then using the rendered

Primefaces p:cache

我们两清 提交于 2020-01-17 05:40:07
问题 I'm having some problem with Primefaces p:cache component This is example how its used on testpage/index.xhtml <h:form> <p:panel header="Testsite"> <p:cache region="testsite2" key="testsite2#{user.id}#{user.defaultLanguage}"> <p:commandButton action="#{testBean.hello}" value="btn" rendered="#{testBean.renderedButton}"> </p:commandButton> </p:cache> </p:panel> </h:form> and this is back end bean @ManagedBean(name = "testBean") @ViewScoped public class TestBean { @PostConstruct public void init

How to programmatically add dialogs with primefaces

不想你离开。 提交于 2020-01-17 04:33:44
问题 I want to display some data through primefaces datalist component. To achieve this I have an arrayList like ArrayList<Person> . The person class looks something like this class Person{ private String name; private String age; private ArrayList<String> hobbies; } To display the data I'm using the following code: <p:dataList value="{gameBean.persons}" var="person" itemType="disc"> Name: #{person.getName()}, Age: #{person.getAge()}, <h:link value="Hobbies" onclick="dlg1.show();" /> </p:dataList>

Show up a panel with slide effect when there is focus on specific input box

百般思念 提交于 2020-01-17 04:04:07
问题 I need to implement (vertical slide in) show effect on a output panel when there is a focus on a textbox. (Initially the outputPanel should not be visible on screen, but when there is a focus on the input box, the outputPanel must show up with a slide in effect.) <p:inputTextarea> <p:effect event="focus" for="inputPanel" type="slide"/> </p:inputTextarea> <p:outputPanel id="inputPanel" style="display: none;" > ...... </p:outputPanel> Using: Primefaces 3.0 M3 Snapshot JSF 2.0 with Facelets 回答1:

RequestContext throws NPE from a different context than FacesContext

两盒软妹~` 提交于 2020-01-17 02:39:29
问题 Why calling RequestContext rq = RequestContext.getCurrentInstance() from a different context than FacesContext throws a NullPointerException ? I am not able to do something like : RequestContext rq = RequestContext.getCurrentInstance() //NPE is thrown if (rq != null) { .. } What I am trying to do is to retrieve a bean inside a WebFilter and call a method. This method uses above snippet; so it throws NullPointerException . Thank you for your help. 回答1: Instance of RequestContext is saved as an

How to invoke JavaScript when dragging starts?

坚强是说给别人听的谎言 提交于 2020-01-16 20:04:54
问题 i am working on drag and drop tables like in this example: http://www.primefaces.org/showcase/ui/dndTable.jsf and i was wondering if it's possible to invoke JS code to hide/show components when start dragging an item. please advise, thanks. 回答1: PrimeFaces using jQuery draggable interaction you need to check this out. Kickoff example: $(function() { $( ".ui-dt-c" ).draggable({ start: function() { alert(1); }, drag: function() { alert(2); }, stop: function() { alert(3); } }); }); As you can

link from <p:menuitem> to certain <p:tab>

限于喜欢 提交于 2020-01-16 19:27:07
问题 Hi guys I want to link from my Menubar to certain Tab, but always the first tab is activated I tried lot of solutions from StackOverflow but nothing works. I think the problems is that i use a preRenderView. I hope someone can help me :) I use jsf 2.1 and primefaces 3.5 The code for the menubar <p:menubar > <p:submenu label="Taskbox" > <p:menuitem value="Inbox" url="taskbox.xhtml" /> <p:menuitem value="Sent" url="taskbox.xhtml#sentTab"/> <p:menuitem value="Trash" url="taskbox.xhtml" onclick=

PrimeFaces :: display p:Dialog to fill-in a form field, without reposting

跟風遠走 提交于 2020-01-16 19:19:51
问题 I have a data-entry form that displays a number of fields (mostly p:inputText ) for the user to provide. Some of these are LOVs so I display a p:dialog to allow the user to select the right value. The p:dialog is displayed by means of a p:commandLink next to the p:inputText . Main parts of code shown below: <h:form id="parentForm"> (...) <p:inputText value="#{CustomerCEVController.customer.municipality}" id="customerMncName"/> <p:commandLink type="button" onclick="MunicipalityDlg.show()"

PrimeFaces :: display p:Dialog to fill-in a form field, without reposting

↘锁芯ラ 提交于 2020-01-16 19:19:07
问题 I have a data-entry form that displays a number of fields (mostly p:inputText ) for the user to provide. Some of these are LOVs so I display a p:dialog to allow the user to select the right value. The p:dialog is displayed by means of a p:commandLink next to the p:inputText . Main parts of code shown below: <h:form id="parentForm"> (...) <p:inputText value="#{CustomerCEVController.customer.municipality}" id="customerMncName"/> <p:commandLink type="button" onclick="MunicipalityDlg.show()"