jsf-2

How to add ice:selectManyCheckbox to a ice:dataTable?

橙三吉。 提交于 2019-12-25 02:25:00
问题 I have a <ice:dataTable> and I want to add a checkbox to each row. I tried to add a <ice:selectManyCheckbox> , but it shows an empty column and the checkboxes doesn't appear. <ice:selectManyCheckbox id="customTransChbx" partialSubmit="true"> <f:selectItems id="SlctLangItms" value="#{employee.s}" /> </ice:selectManyCheckbox> <ice:dataTable id="employeedatatable" value="#{employee.model}" var="emp" rows="5"> <ice:column> <ice:checkbox for="customTransChbx" index="#{emp.id}" rendered="true" /> <

display row column numbers in myeclipse statusbar

老子叫甜甜 提交于 2019-12-25 02:19:53
问题 Is there any option available in myeclipse for showing column numbers of xhtml page. If the cursor is place in java file automatically row number and column number is displayed but not in xhtml pages. 回答1: I've tried 10.7.1 and I see the line and column in the status bar. Could you ensure that you are opening the html file with the MyEclipse HTML Editor, the MyEclipse Visual HTML Designer or the Web Page Editor, as I've tried all of those and see the line and column. There is no setting to

Primefaces DataTable ajax not updating any component except itself

不打扰是莪最后的温柔 提交于 2019-12-25 02:15:02
问题 <h:form id="form"> <p:messages /> <p:panel header="Análise"> <h:outputText value="Mês da análise: " /> <p:selectOneMenu value="#{report005.selectedMes}"> <f:selectItems var="data" value="#{report005.analiseMeses}" itemLabel="#{report005.formataDataCombo(data)}" /> <f:convertDateTime pattern="MM/yyyy" /> </p:selectOneMenu> <p:commandButton value="Análises" update="analiseTable" actionListener="#{report005.loadAnalise()}" /> <p:dataTable id="analiseTable" var="pes" value="#{report005

how to create selectAll checkbox in JSF-2

核能气质少年 提交于 2019-12-25 02:09:03
问题 how can I create select All checkbox in JSF -2 to select all select boxes in the page only not on the other page as these check boxes are the list and displaying 20 in each page... Thanks, alex 回答1: Depends on what you are trying to achieve. For example, you can load your checkboxes within <f:form> with <h:commandButton actionListener="{#myBean.checkAll}"> <f:ajax render="checkboxes"> </h:commandButton> <h:panelGroup id="checkboxes"> <ui:repeat var="check" value="#{myBean.checkBoxes}"> <h

Get the URL of current XHTML page which has user data filled in the form into the JSF Managed bean

倖福魔咒の 提交于 2019-12-25 02:09:01
问题 I am working with creating PDF from XHTML with JSF 2.0 and iText. The page is simple registration form. When User enters all the data in the page and click on submit I have to get the whole HTML page source with user entered values into the bean. I used Jsoup to get the HTML but I got only HTML source not the values entered by the user.How can I do this? My current code is FacesContext facesContext = FacesContext.getCurrentInstance(); ExternalContext externalContext = facesContext

JSF 2.0 webapplication value is null after changed to the next managed bean

好久不见. 提交于 2019-12-25 01:55:36
问题 I have made a web application. In my first version I used one @ManagedBean with @SessionScoped annotation. But after I put some features to the web application I had too much methods in my managed bean. So I shared the Bean in six Beans with a @SessionScope. The problem is, if I used the first managed bean call LoginBean. I have no problems. But after I changed on the next page called SampleForDB. For this page I used the SampleBean. In this manged bean (SampleBean) the values of the classes

Jsr303 Bean Validation error message without prefix of form and field name

两盒软妹~` 提交于 2019-12-25 01:48:49
问题 I'm using bean validation and extval validation. I've created a properties file called ValidationMessages.properties inside my class path. inside this file i customized the defult messages , for example: javax.validation.constraints.Size.message=this is a test messgae when the fieild is being validated I can see the message I worte, but the problem is that I also see the field and form name before the message ' like this: formName:fieldName this is a test . I want to remove this prefix. when

Retrieve client id for facelets

纵然是瞬间 提交于 2019-12-25 01:35:53
问题 How do I retrieve clientId for a facelet included with ui:include? For a reusable component I use this syntax: cc.clientId . EDIT1 The question is in the context of Determine absolute id. To include the dynamic editors I use a custom include. The source code of DynamicInclude, DynamicIncludeComponent and DynamicIncludeHandler can be found at: http://pastebin.com/5e2dgR15. I had to remove the lines that tested the src for null in getSrc method of DynamicInclude and changed getFamily to return

How to clean up a particular view in the Session

巧了我就是萌 提交于 2019-12-25 01:23:36
问题 When javax.faces.STATE_SAVING_METHOD is set to server, view state of the each page is saved in session map. If I am already in some view, and if I enter a url in browser (GET request) to the same page, a new view will be created. Now I want to delete the existing view. What is the best way and place, to clean up a particular earlier view with a new GET request, if I have the associated ViewId included in the get request path or as a GET request parameter. Thank you very much for your help.

How to display ArrayList in JSF page

僤鯓⒐⒋嵵緔 提交于 2019-12-25 01:15:12
问题 I want to create editable h:panelGrid . I created this ArrayList: public ArrayList<userdata> dataList = new ArrayList<>(); public class userdata { int userid; int groupid; String specialnumber; String username; String passwd; Date datetochangepasswd; String address; String stateregion; String country; String userstatus; String telephone; Date dateuseradded; Date userexpiredate; Date dateuserlocked; String city; String email; String description; public userdata(int userid, int groupid, String