I'm doing a jsf project with jsf2 (mojarra) and primefaces (2.2RC2).
I have a list of objects to display on two columns and X rows.
But for some items, I want to display them on two columns, to make a colspan.
Is it possible with primefaces in some components or with jsf impl ?
Thanks.
According to the PrimeFaces showcase it is possible with a PanelGrid. Unfortunately it is available only in the 3.1 version. I had to use html table tags to do this.
Related
Q1 :I'm trying to render a rich:extendedDataTable(say Table-B) on 'selectionchange' event of another rich:extendedDatatable(say Table-A). The rendering part is fine. But the style class 'rf-edt-r-sel'(which is used to highlight a selected row) is not removed from the original row in Table-A (where the ajax request was triggered ),even after selecting a different row in Table-A.
Also, This problem is not reproduced when the list associated for Table-B is null in the Managed bean. What should be done to solve this issue?
Q2: When Table-B is rendered with a not-null list, I perform a row selection on Table-B which triggers an Ajax call to the Managed Bean. But after the completion of the ajax request,I'm not able to trigger ajax calls from Table-A on its row selection. What is the problem here ?
There was a problem with the rich faces jar. I was earlier using rich faces 4.0 jars. I replaced all rich faces jars with rich faces 4.3.4 jars. The tables work fine now.
I am creating web application for booking tickets. After querying from DB for given inputs now i have 230 records (ticket informations) which has been added to list ,as objects (pojo's) .in JSF i am using "ui:repeat" to iterate the list. Here got confused how to create pagination on this. (i want to display 40 records /page). I should not hit the backend for each and every "NEXT" or "PREVIOUS" click .. Any help would be thankful.
Note: when i hit search button my flow will navigate to result.jsf page where i passed the 230 records for display.
Technology: Spring web flow and JSF 2
simplest solution is to use PrimeFaces DataTable Pagination or equivalent without reinventing the wheel
I am trying to put 2 kendo ui treeviews in same page.
The Page is Rendered fine but i can't expand the nodes of the trees.
Can someone help please?
You must provide different names to the .Name() attribute of the treeviews in order to let it expand because onclicking node items it distracts one another..
Check your page for JavaScript errors. Those would prevent the Kendo UI widgets from working as expected. Here is a list of common JS errors: http://docs.kendoui.com/getting-started/troubleshooting#known-javascript-errors
Is there any way can we find standard JSF 2 tags for the corresponding Trinidad tags?
Could anyone please help me on identifying the equivalent JSF 2 tags for the following list of Trinidad tags?
<tr:panelFormLayout>
<tr:panelHorizontalLayout>
<tr:goButton>
<tr:spacer>
<tr:panelButtonBar>
<tr:panelHeader>
<tr:panelList>
There are no equivalent JSF 2 tags. They are just basic UI components you can combine with HTML and CSS to get to a point what Trinidad will provide you out of the box. It's like comparing apples to oranges.
Here is a good reference for JSF tags (core Faces, HTML, Composite, UI and JSTL).
I need to generate a datagrid using a Struts 2, i have found out Struts-Layout can do that, but its not supporting Struts 2. Can any one suggest me a way to generate a datagrid using Struts 2?
There are two out of the box solution available.
The first is Display Tag and the other is [Struts2 jQuery Plugin with the Grid Tag][2].
http://displaytag.sourceforge.net/1.2/
http://code.google.com/p/struts2-jquery/