-
1. Re: Alignment not working the datatable
pvito Mar 2, 2012 1:52 AM (in response to warrior87.it)Hi, karthigeyan M
Try use rich:column with style attribute
<rich:column style="text-align: center;">
</rich:column>
Regards, Vitaliy
-
2. Re: Alignment not working the datatable
warrior87.it Mar 2, 2012 2:48 AM (in response to pvito)thanks Vitaliy..
Its Working fine..
Before i tried this same in worng way like..
<rich:column style="align: center;">
</rich:column>
Regards Karthi..
-
3. Re: Alignment not working the datatable
warrior87.it Mar 2, 2012 3:02 AM (in response to pvito)Hi vitaliy...
How to make the Alternate row Style....
i.e evenRow Style and OddRow Style in Datatable...
-
4. Re: Alignment not working the datatable
pvito Mar 2, 2012 3:09 AM (in response to warrior87.it)1 of 1 people found this helpfulHi,
this sample will help to you
-
5. Re: Alignment not working the datatable
warrior87.it Mar 2, 2012 3:19 AM (in response to pvito)Ya got it..thank u again..
Its very useful..to me..
Regards Karthi..
-
6. Re: Alignment not working the datatable
warrior87.it Mar 2, 2012 4:42 AM (in response to pvito)Hi Vitaliy..
I used this tag to display image...
its didnt Worked ...
<h:graphicImage url="/images/Search.jpeg" alt="Search" />
or
<h:graphicImage value="/images/Search.jpeg" alt="Search" />
Thanks & Regards,
Karthi
-
7. Re: Alignment not working the datatable
pvito Mar 2, 2012 5:05 AM (in response to warrior87.it)Hi, Karthi
perhaps, your images placed in directory on one level above
if you have next project structure
web
├─images
| └Search.jpeg
├─pages
| └some.xhtml
└───WEB-INF
├───classes
└───lib
then, try <h:graphicImage value="../images/Search.jpeg" alt="Search" />
Regards, Vitaliy
-
8. Re: Alignment not working the datatable
warrior87.it Mar 2, 2012 5:13 AM (in response to pvito)Ok..
I got it ..now..
Befor that i placed my images folder in WEB-INF Folder ....
now Working fine..
Thank U..
Thanks & Regards,
Karthi...
-
9. Re: Alignment not working the datatable
warrior87.it Mar 3, 2012 1:10 AM (in response to pvito)Hi Vitaliy,
I am using a4j:Status ..this is for ajax Render purpose..it will..work..but in some cases i am using button request..
So is there any form Status ..is available ..?
Regards Karthi.
-
10. Re: Alignment not working the datatable
pvito Mar 5, 2012 2:05 AM (in response to warrior87.it)Hi, Karthi
Unfortunately, I haven't absolutely understood that you mean under the "button request".
Explain on more detailed, I can probably help.
Regards, Vitaliy
-
11. Re: Alignment not working the datatable
warrior87.it Mar 5, 2012 2:52 AM (in response to pvito)Hi Vitaliy,
In Rich faces 4.0 ..having the a4j:status Componenet .. used for indication pupose..
Example.. If any ajax call the request will send...this a4j:status cature the request and it will show some..indiactions like ..."Loading Inprogress please wait"...
I used this a4j:status only for a4j:Button ...and i thought it will work only for a4j Request..
so i asked you Is this available only for ajax a4j:Button request or for h:Button also...
now i got the answer ..Sorry..
i searched in the link what u gave to me.. from that i came to know we can use this for both ajax a4j:Buuton and form h:Button request..
(example:
http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=status&skin=blueSky..)
Thanks,
Regards Karthi
-
12. Re: Alignment not working the datatable
warrior87.it Mar 15, 2012 11:52 PM (in response to pvito)Hi vitaliya,
I am using rich:datatable..in that i need sorting....below is not working..please give some suggestion..
<rich:dataTable value="#{spiffProduct.searchList}" var="c" styleClass="stable" id="prodList" rows="15" style="width:100%" >
<rich:column>
<f:facet name="header">
#{spiff.admin_JID}
</f:facet>
#{c.jid}
</rich:column>
<rich:column sortBy="#{c.styleNo}">
<f:facet name="header">
<h:outputText value="#{spiff.admin_StyleNo}"></h:outputText>
</f:facet>
<h:outputText value="#{c.styleNo}"></h:outputText>
</rich:column>
</rich:dataTable>
Thanks
Karthi
-
13. Re: Alignment not working the datatable
pvito Mar 16, 2012 2:55 AM (in response to warrior87.it)Hi, Karthi
To use sorting You need :
1) add attribute "sortOrder" in tag rich:column.
2) place a4j:commandLink between <f:facet></f:facet> and point action for sorting on it,
like that example:
<rich:column sortBy="#{cap.state}" id="state" sortOrder="#{capitalsSortingBean.statesOrder}">
<f:facet name="header">
<a4j:commandLink value="Sort by State Name" render="table" action="#{capitalsSortingBean.sortByStates}" />
</f:facet>
<h:outputText value="#{cap.state}" />
</rich:column>
Code for statesOrder and action can see in this example: http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=dataTable&sample=tableSorting&skin=blueSky
Regards, Vitaliy
-
14. Re: Alignment not working the datatable
warrior87.it Mar 16, 2012 3:33 AM (in response to pvito)thanks Vitaliya..
But without using bean..we cannot do sorting...??????????
please visit this link...
http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html_single/#sortAndFilter
by Karthi....