JSF :: Unable To Hide Primefaces BlockUI After PDF Generation

Feb 9, 2014

I am generating pdf and displaying it in separate window/tab using the approach described in BalusC Code: PDF handling.I need to display blockui ajax loader when i select the commandlink to display pdf.The pdf gets generated but the ajax loader image remains as it is.I need to manually refresh the page to hide it.Is there any way using which it can be hidden as soon as the pdf gets displayed.My code snippet is as below

JSF page
<h:form id="subFrm">
<p:commandLink value="Download PDF" action="#{pdfBean.downloadPDF}"
onclick="blkUi.show()" oncomplete="blkUi.hide()" id="cmdLink"
ajax="false" />

[code]....

View Replies


ADVERTISEMENT

Unable To Hide Jframe

Apr 4, 2015

Tried it, I get red line under it, tried to do "jframe1 jframe1 = new jframe1(variable);

jframe1.setVisible(False); still failed. all I want to do is open a different jframe which I got that to work but cant hide show me how to do it without having to emend my code I want to be able to do is in same style.

CashPaybtn.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
//System.out.println("CashPaybtn.actionPerformed, event="+evt);
//TODO add your code for CashPaybtn.actionPerformed
//PaymentMethod.setVisible(false);

[Code]...

View Replies View Related

One Time Password Generation

Jan 21, 2014

I Have one query regarding OTP, In my project while registration the otp should be generate and send to the mobile number of user which is registered the form.

View Replies View Related

Random Number Generation And 2D Arrays

Dec 7, 2014

The problem you have is that it doesn't produce a 4x4 array. For that you need more nested for loops.This is what I have tried so far:

import java.util.Scanner;
import java.util.Random;
public class challenged2e
{
static Scanner console = new Scanner(System.in);
public static int i=0;
public static void main (String args[])

[code]...

I get 21 errors and they all have to do with i and j.

View Replies View Related

Environment Independent Single WAR Generation

Oct 8, 2014

I have a project which has a set of configuration files, where each configuration file represents an environment specific configurations. In other words, I have 3 environments, development, staging, and production. The configuration for each environment is different, e.g. DB name, url etc.

Whenever I want to deploy the same code, on each environment, I have to manually generate environment specific .war file, so that it has environment specific configuration file in it.

What I am looking for is a kind of solution where i have to compile only once in maven and it generates only one .war file, which I can use on every environment. In other words, i want the environment specifi application server/tomcat to identify which configuration to pick.

That way, I'll be sure that we are deploying and testing the same .war file on every environment/application server.

How can i restructure the application to achieve this functionality?

View Replies View Related

Registration Page On Website - Random Generation Of ID

Jul 5, 2014

I want to do a Registration page on some website. i connected to mysql and creating some id like 1 and 2 like this , but i don't want like this. i want to generate v21001 and v21002 to generate on every registration.

View Replies View Related

Timed Object Generation For Guitar Hero Game

May 22, 2014

I want to generate a new tile every 1,5,10,15 (please check the code to gain an understanding of where I'm going) the session last for 4m :20 sec, I need using the date package, I tried using the sleep method however I don't want to pause the whole thread, so I need setting up the time aspect of the key generation (assume all other code works).

Java Code:

import info.gridworld.actor.*;
import info.gridworld.grid.*;
import java.awt.*;
import java.util.*;
//importations, just in case you were wondering
//locations and actor world are set up
//assume all other code works

[Code] ....

I'm using grid world to set up the locations, the tiles are actors that move south every turn

View Replies View Related

PDF Uploading / Downloading And Report Generation Source Code In JSP

Sep 5, 2014

I am developing an inhouse project in my organization. I unable to implement the pdf uploading, downloading, report generation logic as i am totally new to this implementation.

View Replies View Related

Generate RetroActive Salary Case In Payroll Generation

Jan 23, 2014

I am having a doubt about how to fix and what could be the code to generate a retroActive salary case in payroll generation. Upto last year(2013) it was working fine.Now it is 2014 and i am stuck as i am new to java.

The system is computing every value in yearly basis,but the inputs are in monthly basis.

View Replies View Related

I/O / Streams :: Report Generation Tool For Huge Data In Different File Formats

Apr 8, 2014

I need to generate reports for huge data (around 2 to 5 lakh records) in different file formats (PDF , XLS , RTF , XML) in my web application.

Data will be fetched from database.

I have been searching for a best open source report generation tool and ended up on choosing on Dynamic Reports.

Aspose , is licensed and unluckily we could not afford to at this moment.

Whether i can use Dynamic Reports , or is there any other tool available.

View Replies View Related

PPS Number Generation - Netbeans Displays (Cannot Find Symbol) And Program Fails To Run

Jan 22, 2015

I am writing a payroll program .The program generates random PPS numbers and then takes in users information and calculates the salary accordingly. I am using netbeans and my code is showing errors on line 18 and 42 ("cannot find symbol")on the code for grossPay(). The program seems to crash after a new PPS number is generated and will not run.

package sd_assg_2;
import java.util.Arrays;
import java.util.Random;
import javax.swing.JOptionPane;
public class SD_ASSG_2 {
  public static void main(String[] args) {
String[] newPPs = getPPSno();

[Code] ....

View Replies View Related

How To Hide Or Not Show Output

Aug 8, 2014

My code is already running. But the problem is, i don't want to see 0 denomination. like for example if i input 3.86 in (dollars).

dollars: 3
quarters: 3
dimes: 1
pennies: 1

so my problem is. it still showing 0 denomination like this:

dollars: 3
quarters: 3
dimes: 1
nickels: 0
pennies: 1

Currently using latest netbeans and if im correct we are using methods and class runner?.. Anyways here's the code..

for method:

package MyPrograms;
public class Mp3Method {
public int dollars(int dollars,int remainingAmount){
return dollars = remainingAmount / 100;
}
public int quarters(int quarters, int remainingAmount){
return quarters = remainingAmount / 25;

[Code] .....

View Replies View Related

Swing/AWT/SWT :: How To Hide The Column

Aug 1, 2014

Hiding the column but not removing , because i need to bring this column id to the next screen, only i do not want to show the column but internally it has to take the value to navigate the screen, but if i use below code, i am getting null pointer exception,

this.column.setMinWidth(0);column.setMaxWidth(0); column.setWidth(0); column.setPreferredWidth(0)

View Replies View Related

Error When Trying To Hide JComboBox Option?

Jul 25, 2014

Cannot switch on a value of type Object. Only convertible int values, strings or enum variables are permitted

I'm trying to hide and option using switch statement but this is the error i receive.

public void actionPerformed(ActionEvent e)
{
if(e.getSource() == comboDest1)
{
switch(comboDest1.getSelectedItem())

[Code] .....

View Replies View Related

How To Hide A Panel But Preserve The Space

Mar 27, 2014

I have eight panels that are one above the other and are the full width of the frame.

I would like to hide some of them some of the time and then "bring them back".

If I use panel1.setVisible(false) panel1 will disappear but then all the panels below it move up to take panel1's place.

I don't want that to happen. I want just a blank area where panel1 was.

Is there a way to do that?

View Replies View Related

How To Hide JComboBox Array Option

Jul 24, 2014

I'm trying to hide a JComboBox option depending if the a user has picked a certain option from a previous JComboBox.

.setVisible(false). doesn't work

String[] Dest = new String[] {"Select Destination","Crete", "Paris", "Croatia"};
String[] Accomodation = new String[] {"Select your Accomodation","Hotel", "Villa", "Bed & Breakfast","Youth Hostel"};
String[] Night = new String[] {" Select number of Nights", "7","10","14"};
final JComboBox<String> comboDest1 = new JComboBox<String>(Dest);

[Code] ....

I know setVisible isn't the way it's done but i don't know how to do it

View Replies View Related

How To Hide A Password In Login System

Jan 26, 2015

I've made a login system with a username and a password. The password is visible and I wanna hide it, how do I do that? Here is my code (have used swing);

import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class Password implements ActionListener {
private String Username = "hudhud";
private String Password = "fitness";

[Code] ......

View Replies View Related

JSF :: How To Disable / Hide Browser Scroll Bar

Mar 8, 2014

I am using jsf with richfaces. Scroll bar inside panel grid is displayed. Need to disable / hide the bowser (IE-9) scroll bar.

style="overflow:hidden"

Added above style, but not working.

View Replies View Related

JFrame Won't Hide When New Applet Starts

May 18, 2014

I have a login window, which when sucessful will activate a new Applet/JFrame. The problem is that the login window remains in the background under the new JFrame. I want this to diappear. I want to either set the visibility to false, or close it.This is how the new window is started:

if(sucess.equals("flase")){

DBAccess dba = new DBAccess();
dba.setFname(fnameusr); //fnameusr
dba.setLname(lnameusr); //lnameusr
dba.main(null);

//LogIn.exit(0);
}else{
JOptionPane.showMessageDialog(null, "Your credentials were not entered correctly or you may not be authorised to access this system.");
System.exit(0);
}

View Replies View Related

How To Hide Text From Showing In Console

Feb 6, 2015

I am trying to do a rock, paper, scissors game, but when i choose for example, it shows what i have typed. So how do i hide text form showing in the console?

View Replies View Related

Encapsulation Hide Private Variable

Sep 10, 2014

As below code showing that you cannot directly access the private variable as i understood,  
 
public class EncapsulationDemo{   private int ssn;  
private String empName;   private int empAge;   //Getter and Setter methods  
public int getEmpSSN(){   return ssn;   }  
public String getEmpName(){   return empName;  

[Code] .....

View Replies View Related

JavaFX 2.0 :: Hide A Node And Collapse Its Space?

Jun 25, 2014

I've a simple status bar in which I've several icons inside a HBox (ui drawn with fxml). These icons can be visibile or hidden due to some configuration properties in my app. I've a bind between some BooleanProperty and image.visibleProperty. The problem, as you can guess, is that when an icon in the middle disappears I've a hole. There is a property as in Android [URL] ...., that hide the node and collapse its space?

View Replies View Related

Applets :: How To Hide A Specific Column In A JTable Object

Aug 1, 2014

How do i hide a specific column in a JTable object.? Setting setPreferredSize to 0 is not working.

View Replies View Related

Hide Login Link When User Gets Logged In From Same Page

May 15, 2014

I put link using JQuery on Home Page,

<div class="list_block1" >
script type="text/javascript" src="js/jquery.leanModal.min.js"></script>
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" />
<link type="text/css" rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="css/postoffer.css" media="all"/>
<div class="container">
<a id="modal_trigger" href="#modal" class="btn">Click here to Login or register</a>
<%

[Code] ....

View Replies View Related

Swing/AWT/SWT :: Remove Or Hide Selected JCheckBox From A List In GroupLayout?

Dec 9, 2014

There are 8 JCheckboxes, which are already added to panel and aligned in group layout. From which, I have selected one JCheckbox. Then the resultant GUI should contain only remaining 7 JCheckboxes and selected one should temporarily removed or hide from GUI . Is it possible? If so, how?

View Replies View Related

JSP :: Hide Sensitive System Properties Like Passwords Set By Java Applications?

Oct 28, 2014

I am maintaining an existing Java product (which has a HUGE code-base). I discovered that it is setting (and getting) two of its internal passwords as Java system properties, at no less than 4-5 different places (methods). Now, the problem is, the passwords are being stored as plain text in the Java system properties, and so, the same is visible to external entities, as the application is not using any Java Security Manager. For example, if the application (process) is running on port number 1234, we can run the Java command:

jinfo -sysprops 1234

to view both the passwords as values of the corresponding Java system properties. I wish to ask if there is any remedy to this without changing the existing code-base too much? The desired effect would be to "hide" the two Java system properties (denoting the two passwords) from all external entities.

It may be noted that introducing a Java Security Manager into the application may not be a solution, as if we revoke read permissions from the said two Java system properties using the Java Security Manager, the application codes which read those properties would crash. Same is applicable for storing the passwords in encrypted form, as that would crash all codes within the application which are expecting to read the passwords in clear text form.

To give a bit more context, the said two passwords we are storing as Java system properties are actually passwords to access two key-stores, and Tomcat requires that we store the said two passwords in plain-text format. Any workarounds, such that only Tomcat will be able to see the two passwords as-is, while they will be invisible to all other external entities?

Or, is there any way to place the said passwords in other in-memory locations (like static variables) which only Tomcat can (be made to) read instead of placing them as system properties which is exposed to anyone?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved