srinivas palukuri

Greenhorn
+ Follow
since Apr 18, 2007
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 srinivas palukuri

Hi,

Thanks for your response,i need resizeable as the user can drag the cells, if it is in javascript then it will be good.

regards
srinivasa rao palukuri.
can i have resizable <td>'s (cells) in html

Thanks & regards
srinivasa rao palukuri.
Hi All,

I am using jtable and i am adding ICON(plus.gif) to each cell, what i need is when i click on a cell i have to change the icon(from plus.gif to minus.gif) and similarly (from minus.gif to plus.gif) at clicked cell, but how to get icon at jtable cell is i don't know can you please help me.


Thanks & regards
srinivasa rao palukuri.
13 years ago
Hi All,
I need a datatable with empty cells(means cells has to be empty with out any data). i have to display the datatable cells with out any data in it. Is there any way to achieve it, if so can you please sent me reply asap.

my code is as follows

<f:view>
<center>

<t:dataTable first="0" id="dataTable" width="80%"
renderedIfEmpty="true" preserveDataModel="false"
value="#{managedBean.dataTableList}" var="rows" rows="10" border="2"
cellpadding="0" cellspacing="0">

<h:column>
<f:facet name="header">
<h:outputText value="Reveleus" />
</f:facet>
<h:outputText value="#{rows.header}" />
</h:column>

<h:column>
<f:facet name="header">
<h:outputText value="Number" />
</f:facet>
<h:outputText value="#{rows.empNo}" />
</h:column>

<h:column>
<f:facet name="header">
<h:outputText value="Name" />
</f:facet>
<h:outputText value="#{rows.empName}" />
</h:column>

<h:column >
<f:facet name="header">
<h:outputText value="Sal" />
</f:facet>
<h:outputText value="#{rows.sal}" />
</h:column>
</t:dataTable>
</center>
</f:view>


Here these columns are getting empty values from the backend bean.

Thanks & regards
srinivasa rao palukuri.
13 years ago
JSF
Hi All,

Can you please tell me how to add and delete an image by mouseclick on table cell in html.

My requirement is i have to add and delete tick mark at clicked cell in <table> in html
Hi,

When i am minimizing and maximising the jsf tree, it is throughing javascript error like(object Expected). Can you please suggest me a solution for this. my code is as follows.



<%@ page import="org.apache.myfaces.custom.tree.DefaultMutableTreeNode,org.apache.myfaces.custom.tree.model.DefaultTreeModel"%>
<%@ page session="true" contentType="text/html;charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<html>

<body>

<%
System.out.println("Coming Hear");
if (pageContext.getAttribute("treeModel", PageContext.SESSION_SCOPE) == null) {
DefaultMutableTreeNode root = new DefaultMutableTreeNode("Project");
DefaultMutableTreeNode erp = new DefaultMutableTreeNode("ERP");
root.insert(erp);
DefaultMutableTreeNode dinoster= new DefaultMutableTreeNode("Dinoster");
root.insert(dinoster);
DefaultMutableTreeNode hbp = new DefaultMutableTreeNode("COSMOS++");
root.insert(hbp);
DefaultMutableTreeNode guiness = new DefaultMutableTreeNode("GuINESS");
root.insert(guiness);
DefaultMutableTreeNode invient= new DefaultMutableTreeNode("Invient");
root.insert(invient);

DefaultMutableTreeNode node = new DefaultMutableTreeNode("Gopal");
erp.insert(node);
erp = node;
node = new DefaultMutableTreeNode("Mukesh");
erp.insert(node);

node = new DefaultMutableTreeNode("Shobha");
guiness.insert(node);
guiness = node;
node = new DefaultMutableTreeNode("Santosh");
guiness.insert(node);
node = new DefaultMutableTreeNode("Prasad");
guiness.insert(node);

node = new DefaultMutableTreeNode("Giri");
hbp.insert(node);
hbp = node;
node = new DefaultMutableTreeNode("Sreenath");
hbp.insert(node);

node = new DefaultMutableTreeNode("Anupama");
dinoster.insert(node);
dinoster = node;
node = new DefaultMutableTreeNode("Sunil");
dinoster.insert(node);
node = new DefaultMutableTreeNode("Hitesh");
dinoster.insert(node);

node = new DefaultMutableTreeNode("Sindhu");
invient.insert(node);
invient = node;
node = new DefaultMutableTreeNode("Purnachand");
invient.insert(node);

pageContext.setAttribute("treeModel", new DefaultTreeModel(root), PageContext.SESSION_SCOPE);
}
/* else {
System.out.println("Present + ");
return ;
}*/
%>


<f:view>

<t:tree id="sampleTree" value="#{treeModel}"
styleClass="tree"
nodeClass="treenode"
selectedNodeClass="treenodeSelected"
expandRoot="true"
>

</t:tree>

</f:view>

</body>

</html>
13 years ago
JSF
Hi,
I am new to jsf, I have my <t:dataTable> columns has to be dragable by mouse. Means if i click on dataTable column and strach it, it has to strach. Is there any way to acheive this in jsf, if so can you pelase reply me As early as posible.

My code is as follows.

<h:form id="form2" rendered="true">
<center>
<t:panelGroup id="gridPanel1" style="width:100%; height:250px; overflow:auto;" >

<t:dataTable first="0" id="Data" frame="above" bgcolor="#E7E7F7"
cellpadding="5" cellspacing="0" border="1" rows="3" preserveDataModel="false"
value="#{managedBean.studentsCollections}" var="item">
<t:column >
<f:facet name="header">

<t:commandSortHeader columnName="type" arrow="true">
<h:outputText value="#{msg.number}" />
</t:commandSortHeader>

</f:facet>
<t:outputText value="#{item.number}"/>
</t:column>

<t:column>
<f:facet name="header">
<t:commandSortHeader columnName="type" arrow="true">
<h:outputText value="#{msg.name}" />
</t:commandSortHeader>
</f:facet>
<t:outputText value="#{item.name}"/>
</t:column>

<t:column >
<f:facet name="header">
<t:commandSortHeader columnName="type" arrow="true">
<h:outputText value="#{msg.marks}" />
</t:commandSortHeader>
</f:facet>
<t:outputText value="#{item.marks}"/>
</t:column>

</t:dataTable>

<t:dataScroller id="scroll_1"
for="Data"
fastStep="10"
paginator="true"
paginatorMaxPages="9"
paginatorActiveColumnStyle="font-weight:bold;">

<f:facet name="first">
<t:commandButton value="first"/>
</f:facet>
<f:facet name="last">
<t:commandButton value="last"/>
</f:facet>
<f:facet name="previous">
<t:commandButton value="previous"/>
</f:facet>
<f:facet name="next">
<t:commandButton value="next"/>
</f:facet>
<f:facet name="fastforward">
<t:commandButton value="fastforward"/>
</f:facet>
<f:facet name="fastrewind">
<t:commandButton value="fastrewind"/>
</f:facet>
</t:dataScroller>
</t:panelGroup>
</center>
</h:form>

Thanks & regards
srinivasa rao palukuri.
13 years ago
JSF