saravana kumar

Greenhorn
+ Follow
since May 14, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by saravana kumar

Hi,
Can anybody provide one example or tutorial on table per class enitity hirerarcy for jpa?

TABLE_PER_CLASS: Single-table-per-outermost concrete entity class

please it's very urgent...

Regards,
Saravanan.
Hi,
Cany anybody tell me whether websphere supports facelets..
Please it is very urgent...

Regards,
Saravanan.
17 years ago
JSF
Hi,
Can anybody tell me what is advantage and disadvantage of facelets?

if use facelets whether it will be easy for maintenace?

if i use facelets with jsf how it will be?

Regards,
Saravanan.
17 years ago
JSF
Hi,
one thing i will tell you, you can achieve resizing the component only using the frames. So only body part i am implementing using frames, rest are all will be displayed from the layout.xhtml itself..

Is it possible to use frames inside the facelets application?

Regards,
Saravanan.
17 years ago
JSF
Hi,
I have one sample facelet appln, but i am trying to implement using frames. In the listing jsp i am calling two jsp thru frames but when i access the listing jsp, content of the two jsp's are not getting displayed in the UI, I mean if give anthing outside the frameset, it is getting displayed. Please look at code below and can anybody tell me how to solve this problem....

Please look at the sample code below..
listing.xhtml
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-Frameset.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a="http://www.arc-mind.com/jsf">


<ui:composition template="/WEB-INF/layout/layout.xhtml">
<ui:define name="title">Backend Listing screen</ui:define>
<ui:define name="content">

<h:form>

<frameset rows="33%,*" border="0" frameborder="0">
<frame name="f1" src="/body.xhtml" scrolling="no" noresize="noresize" />
<frame name="f1" src="/footer.xhtml" scrolling="no" noresize="noresize" />
</frameset>
<h:commandLink action="#{CDManagerBean.addNew}">
<f:verbatim>Add CD</f:verbatim>
</h:commandLink>
</h:form>
</ui:define>
</ui:composition>
</html>

body.xhtml page is below

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-Frameset.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a="http://www.arc-mind.com/jsf">

<h:dataTable id="items" value="#{CDManagerBean.cds}" var="cd"
rowClasses="oddRow, evenRow" headerClass="tableHeader">

<a:column entity="${cd}" fieldName="title" backingBean="${CDManagerBean}"/>
<a:column entity="${cd}" fieldName="artist" backingBean="${CDManagerBean}"/>
<a:column entity="${cd}" fieldName="price" backingBean="${CDManagerBean}"
sort="${false}"/>
<a:columnCommand label="Edit" action="editCD" backingBean="${CDManagerBean}"/>

</h:dataTable>

<br />
<h:commandLink action="#{CDManagerBean.addNew}">
<f:verbatim>Add CD</f:verbatim>
</h:commandLink>
</html>

Regards,
Saravanan
17 years ago
JSF
Hi,
Can anybody tell me is it facelets support frames?

Regards,
Saravanan.
17 years ago
JSF
Hi,
Ya this is what i was expecting.
Thank you.

Regards,
Saravanan
17 years ago
JSF
Hi,
Please loot at the sample code in jsf

<h:dataTable var="adminList" id="mytable" value="#{messageList}" border="1" style="background-color:silver">

<h:column>
<f:facet name="header">
<h:outputText value="Select All"/>
</f:facet>
<h:selectBooleanCheckbox value="{adminList.selected}"/>
</h:column>

<h:column>
<f:facet name="header">
<h:outputText value="User Id"/>
</f:facet>
<h:commandLink action="#{userManager.editAdmin}" >
<h:outputText value="#{adminList.userId}"/>
</h:commandLink>
</h:column>

<h:column>
<f:facet name="header">
<h:outputText value="User Name"/>
</f:facet>
<h:outputText value="#{adminList.userName}"/>
</h:column>

<h:column>
<f:facet name="header">
<h:outputText value="Phone Number"/>
</f:facet>
<h:outputText value="#{adminList.phoneNumber}"/>
</h:column>

<h:column>
<f:facet name="header">
<h:outputText value="Email Id"/>
</f:facet>
<h:outputText value="#{adminList.emailAddress}"/>
</h:column>

<h:column>
<f:facet name="header">
<h:outputText value="Role"/>
</f:facet>
<h:outputText value="#{adminList.role}"/>
</h:column>

</h:dataTable>

Regards
Saravanan
17 years ago
JSF
Hi All,
I am new to JSF framework. I have the following requirement
From the listing screen i have to select one or more record to perform delete operation thru checkbox. Can anyone tell me how to identify the selected records in jsf without using javascript...
Thanks for any help.

Regards,
Saravanan
17 years ago
JSF
Hi,
My requirement is i have to populate the nested tag dynamically based on the number of items availabe in the list.If my list size is 3 then i have to generate the nested tag as below mentioned.
<nested:nest property="abc" >
<nested:nest property="xyz">
<nested:nest property="pqr">
// here i will generate some textbox or combo box based on some
// cond like <nested:text property="patientName" />
</nested:nest>
</nested:nest>
</nested:nest>
For property attribute values will be populated dynamically by looping thru the list.

Actually i tried it, but i am facing problem.. not- matching extension tag why bcoz while populating nested tag dynamically, when i populate the second nested tag(like mentioned above) it is expecting the closing nested tag for the first one. but i can't close nested tag immediately. i have to loop thru the list, i have populate the nested open tag n no% of times(n- size of the list)after that i have to close correspondingly for each nested tag.

Regards,
Saravana
17 years ago
Hi,

Can anybody tell me the soln for the below problem.Actually my requirement is i have to generate the nested tag dynamically based on values in the list. but i am facing Non-matching extension tags... I have
verified my jsp and closed all the tags properly.. but still i am facing the problem. sample code is given below...

<logic:iterate id="xyz" name="LIST" type="java.lang.String">
<nested:nest property="<%=xyz%>">
</logic:iterate>
Thanks
Saravana
17 years ago
JSP