Anil Kolisetty

Greenhorn
+ Follow
since Feb 18, 2011
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
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Anil Kolisetty

Hi

I am using Apache Trinidad faces, in that i am working on the <tr:statusIndicator> tag, however some times the page is freezing saying loading please wait.

I want to reload the page if i didn't get any response from the server with in a particular time. How can i do that?

my code related to status indicator is

<tr:statusIndicator>
<f:facet name="busy">
<tr:outputText value="Loading, please wait..."/>
</f:facet>
<f:facet name="ready">
<tr:outputText value="Done!"/>
</f:facet>
</tr:statusIndicator>

Thank you
10 years ago
JSF
HI,

I have written some code


<tr:table id="viewOffersTable" >
<f:facet name="detailStamp">
<tr:panelHorizontalLayout>
<tr:table id="ratesTable" >
<tr:column/>
<tr:column/>
<tr:column/>
</tr:table>
</tr:panelHorizontalLayout>
</f:facet>
<tr:column/>
<tr:column/>
<tr:column/>
</tr:table>

<tr:panelHorizontalLayout partialTriggers="ratesTable"/>



however when i select a row from facet table it is not triggering the panelHorizontalLayout

can you please tell me how to trigger panelhorizontallayout when i select a row from the facet table?
11 years ago
JSF
Hi,

i have a table in the detailStamp facet of a table, i provided selection option for the table which is in the facet, i need to retrieve the parent row data to the backing bean

<tr:table id ="outerTable "var="row" value=List>
<facet name="detailStamp">
<tr:table id="innerTable" var="innerRow" value="row.innerList" rowSelection="single">
<tr:column/>
<tr:column/>
</tr:table>
</facet>
</tr:table>

The user don't have the ability to select the outerTable rows, user only has the ability to select a row from the detailStamp table but i need to retrieve the innertable row data as well as outertable row data.

i am getting rowdata of the innerTable using binding attribute.
How can i get the outerTable row data of the selected facet(selected innerTable)?


Thanks in Advance......
11 years ago
JSF
In JSF i have a page with two parts

1. a form in which user can enter the details
2. a table, in which i should display the values entered by user in the form on click of submit button.

the functionality is when i click submit button i need to display the values in the table.

but after clicking the submit button twice only, i am getting the values in to the table.

Please suggest a way to achieve the above functionality.


Thanks
Anil

12 years ago
JSF
can any one reply to the above problem
13 years ago
Receiving file from jsp using action form

ImportExcelForm myForm = (ImportExcelForm)form;
FormFile myFile = myForm.getTheFile();

i am accepting an excel file, i need to read this excel and need to distribute the data into different database tables.

i am rewriting this excel file in to local disk(server) as POI api accepts only io file.

InputStream inpstr= myFile.getInputStream();
FileOutputStream fos=new FileOutputStream("./BO.xls",false);
BufferedInputStream reader=new BufferedInputStream(inpstr,4096);
BufferedOutputStream writer=new BufferedOutputStream(fos,4096);
byte[] buf=new byte[4096];
int byteRead;
while ((byteRead=reader.read(buf,0,4096))>=0) {
writer.write(buf,0,byteRead);
}
reader.close();
writer.flush();
writer.close();

inputStream = new FileInputStream(xlsPath);
fileSystem = new POIFSFileSystem(inputStream);
HSSFWorkbook workBook = new HSSFWorkbook(fileSystem);
HSSFSheet sheet = workBook.getSheetAt(0);

but i want to pass the file from the browser directly to POI api and user should be able to upload multiple files at a time
13 years ago
i am using actionform as well as action class can you elobrate that FileUpload i.e how to read the uploaded file into action class using action form
13 years ago
I need to accept an excel file from a browser and need to pass that file to a method which accepts io file.
but the file which i receives from a browser is a fromfile.


can any provide solution for this.

Thanks in advance..........
13 years ago