JSF :: Could Not Resolve Navigation Case For Outcome - Index

Jul 17, 2014

I have one template.xhtml file at /template/template.xhtml

<h:head>
</h:head>
<h:body>
<p:layout fullPage="true">
<p:layoutUnit position="north" size="100">
<h:outputText value="header"></h:outputText>
</p:layoutUnit>
<p:layoutUnit position="center">

[Code] ....

I am getting the following exception because of the **ui include** tag in template.xhtml. Is the src attribute of ui include is wrong.:

javax.faces.FacesException: Could not resolve NavigationCase for outcome: index
at org.primefaces.renderkit.OutcomeTargetRenderer.getTargetURL(OutcomeTargetRenderer.java:86)
at org.primefaces.component.menu.BaseMenuRenderer.encodeMenuItem(BaseMenuRenderer.java:162)
at org.primefaces.component.tabmenu.TabMenuRenderer.encodeItem(TabMenuRenderer.java:89)

[Code] ....

View Replies


ADVERTISEMENT

Not Always Getting Expected Outcome When Comparing Calendar Objects

Sep 18, 2014

I am writing a short program to find the zodiac of a given birth date. I am checking to see if a calendar object falls between to other objects to see if the date falls within a certain zodiac sign. To accomplish this, I have the user enter a date, then that date is compared to dates taken from an array. The problem is sometimes the comparison doesnt seem to work work, giving the wrong zodiac. For example if I enter 03/28/1968, it finds Aries, as expected. However if I enter 03/20/1968, it returns Aries also, when it should return Pisces. Here is the sample code.

private static String determineSign(Date birthdate, String[][] zodiac) throws ParseException {
// TODO Auto-generated method stub
Date date = birthdate;
for (int row = 0; row < zodiac.length; row++)
{
DateFormat date3 = new SimpleDateFormat("MM/dd");
Calendar compDate3 = Calendar.getInstance();

[Code] .....

This is the class that creates the table used for the zodiac dates -

public class ZodiacTable {
static final int ROWS = 12;
static final int COLUMNS = 3;
//private ArrayList<String> zodiacNames;
private String[][] zodiacNames;

[Code] ....

I cant seem to see why it returns the wrong zodiac..

View Replies View Related

JSF :: Trinidad Table Page Navigation

Jun 16, 2014

We are using trinidad tag library with jsf 20. We are using tr:table and rows="25" and managedbean is in ViewScoped . There are more than 100 records, even though we navigate away from the current and come back or relogin the table pagination is remianing in the previous state.

View Replies View Related

JSP / JSTL :: Display Data From One Or More Table - Left Navigation Page

Dec 14, 2012

I am new to JSP . I am Using Jdeveloper UDI to create JSP Pages.

My main idea in creating JSP to display data from one or more tables.

I created 2 pages called Serverpage.jsp and Messagecount.jsp and it is working fine as expected,

Now i want to create home page and it should also have left navigation menu and it should contain MessageCount and MessageStatus.

When i click on Messagecount or MessageStatus my home page should refresh and have to display new JSP page (MessageCount.jsp or Serverpage.jsp)

Here is my JSP pages

Serverpage.jsp

<%@ page contentType="text/html;charset=windows-1252" isELIgnored="true"%>
<!--<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>-->
<html>
<head>
  <title>Welcome to Monitoring Page!</title>
  <link type="text/css" rel="stylesheet" href="jdeveloper.css"/>
  <script language="javascript" type="text/javascript" src="Calender.js">

[Code] ....

View Replies View Related

Java Cannot Resolve Word Into Type?

Nov 3, 2014

I am creating a user friendly program that allows the user to adjust the dimensions of an oval (painted onto a window) via a 'slider' Everything is fine for the most part, except in the main code- when I tried coding for a window object for some reason java didn't recognize the type (that is, I used the keyword TheWindow and java didn't recognize it) the following is the full code set across 2 classes, but I think the problem is centered around the main class.

package javaIntermediate;
import java.awt.*;
import javax.swing.*;
//NOTE: this is 1 out of 3

[Code]......

View Replies View Related

JSP :: Navigation System Putting Two Headers In HTML File When Fully Rendered In Browser

Oct 21, 2014

I inherited a navigation system which is like this:

index.jsp
homepage.jsp

When I click on the "view source" in the browser, I get two headers like this:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en_US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

[Code] ....

I know this is not good. I have inherited the nav system from someone else and I have a lot of complicated AJAX and JQuery going on inside my module. I am not sure how to resolve.

View Replies View Related

How To Resolve StackOverFlowError When Using Recursive Method Call

Mar 24, 2014

I have 3 Xml documents that look like this:

model1:
Java Code: <?xml version="1.0" encoding="UTF-8"?>
<model>
<id>1</id>
<nodes>
<id>2</id>
<stencil>TASK</stencil>
</nodes>
<nodes>
<id>3</id>
<stencil>MODEL</stencil>

[Code] ....

After unmarshalling/marshalling in the main class I have created this 3 methods:

Java Code:

public List<Task> extractTasks(Model model) {
List<Task> tasks = new ArrayList<Task>();
for (ModelNodes modelNodes : model.getNodes()) {
if (modelNodes.getStencil().equals("TASK")) {
tasks.add(new Task(modelNodes.getId()));

[Code] ....

When the recursive call to the extractSubModels method is made, I get a **java.lang.StackOverFlowError** ...

View Replies View Related

Bank Account Simulation - ResultsModel Cannot Resolve To A Type

Mar 12, 2015

I have serious errors. I am trying to design a Bank Account Simulation. My various codes are as below.

import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.sql.*;
import java.io.*;
public class Display2 extends JFrame //implements ActionListener

[Code] ....

ERROR: ResultsModel cannot be resolved to a type

View Replies View Related

Servlets :: Unable To Resolve Class File Error

Sep 9, 2014

I am stuck with my application. I have jsp, servlet application with jasper report server. When I run the application through eclipse, everything works perfectly. But When I try to run it in Tomcat (without eclipse) it gives me the "Unable to resolve the class file " error. I tried all the solutions I got through the google, but still I am unable to come over it.

View Replies View Related

Reading Multiple Text Files From A Folder - Cannot Resolve Syntax Error

Apr 29, 2015

In the current program I am trying to read multiple text files from a folder. I keep getting the following syntax error

"Syntax error on token ";", { expected after this token".

I highlighted the line where im getting this error in red.
 
import java.io.*;
import java.util.*;
 public class CacheData {
  // Directory path here
    String path = "C:myfiles*.txt";
 
[Code] ....

View Replies View Related

Nested Switch Case

Oct 6, 2014

write a program using nested switch case to show the different shops in a shopping mall.

View Replies View Related

Operator In Case Of Strings

May 23, 2015

After the executing the code below:-

class Test
{
public static void main(String [] args)
{
String s = new String("new") ;
String d = new String("new") ;
System.out.println((s==d)+ " "+s.equals(d)) ;
System.out.println(s==d + " "+ s.equals(d)) ;
}
}
OUTPUT:- false true
false

Why did the output change in the second print statement?

View Replies View Related

Switch Not Recognizing Upper Case Q

Mar 30, 2014

why this switch code does not work for the 'Q'. Everything works fine for the other cases, i.e. 1,2,3, and 'q', but when I type in 'Q', I get the default case. Please note all the values have been defined in an earlier part of the code but for simplicity's sake I have removed them below

do { 
switch (choix) {
//demande le nombre de patons a achete
case '1':

[Code].....

View Replies View Related

Program Calculator Using Switch Case

Oct 14, 2014

I am making a programme for a calculator to - Divide, multiply, add and subtract. I have the code written but when I am running it and trying to add it was for some subtracting ....

import javax.swing.JOptionPane;
public class calculator3 {
public static void main(String[] args){
String number1,number2,operatorstring;
double result=0,a,b;

[Code] ....

View Replies View Related

Can't Create A New Method Or Use Case Statements

Oct 4, 2014

I'm trying to create a simple java math question quiz using random operators, but keep sinking myself into deeper despair. The numbers must range from 0-9 and given an operator: +,-,/,*,%. Can't create a new method or use Case statements. The code isn't finished but don't want to make it any worse.

package marco;
import java.util.Scanner;
import java.util.Random;
public class Project {
public static void main(String[] args) {
Scanner keyboard = new Scanner(System.in);
Random rand = new Random();
System.out.println("How many questions do you want?");

[code]...

View Replies View Related

Switch Case With Nested If Inside

Jul 10, 2014

can give me a sample program which solves with switch case statement with nested if inside?

View Replies View Related

How To Check INT Range For Switch Case

Oct 9, 2014

How do i check INT range for switch case: ?

int grade = 68;
switch (grade) {
case 100:
System. out.println( "You got an A. Great job!" );
break;
case 80:
System. out.println( "You got a B. Good work!");
break;

[code]....

View Replies View Related

Cannot Use Variables Inside A Case In Switch Construct?

Mar 1, 2015

If I have an integer variable like int a=9 then in the switch case If i write

switch(a) {
case 4+a: System.out.println("hii");
}

Then why is this statement a compile-time error that variables cannot be used inside a case statement why does the compiler not subtitutes the values in place of the variables.

So basically what problem it creates for which the language developers did not include it as a proper syntax,is there any reason behimd this because of jump table?

View Replies View Related

Using Variables In Switch Statement Case Clauses

May 19, 2014

I am stuck with two switch statements that I feel I am close to achieving. My first switch statement is to generate random mathematical operators for the math questions in the game (generated randomly) My second switch statement is to determines which action the system will take upon the correct or incorrect answer. For the first switch statement I have a variable called num. Num is a random integer. I have an operator mapped to each outcome of num. In my second switch statement I am trying to use the variable answer as a variable in the first case but do not know how.

package pkgnew;
import java.util.Scanner;
import java.util.Random;
public class New {
public static void main(String args[]) {
//Declare and construct variables

[Code] ....

View Replies View Related

Deleting Case Sensitive File In Java

Oct 17, 2014

If my file name is MyBigXMLFile.xml it won't delete but if I rename it to mybigxmlfile.xml it will delete. How do you get around the case sensitive issue?

View Replies View Related

Switch Case Statement - String Expression

Sep 10, 2014

In switch case statement string expression whether it will work or not ???

View Replies View Related

Replacing String In Case Of Exact Match Only

Oct 15, 2014

I have 2 strings

String value ="/abc_12_1/abc234/abc/filename.txt";
String src="abc"
Sring tgt=xyz

Now I have to replace the string in variable value in case of exact match; I am trying to do the following :

if(value.contains(src)
{
value.replaceall(src,tgt);
 }

Now the problem here is it replaces all the occurrence of abc in the string value and I get the below output as :

value=""/xyz_12_1/xyz234/xyz/filename.txt";

However my requirement is only in the case the value exactly matches with source the replacement shd happen. I am expecting the output like this :

String value ="/abc_12_1/abc234/xyz/filename.txt";

Also the above code is in a function which will be called multiple times and the values will keep  on changing. However the target and source will remain the same always.

View Replies View Related

Time Complexity (theta) For Loops With Special Case?

Sep 9, 2014

I can't able to find the theta for some type of code like.

for(i=1;i<=n;i++){
for(j=i;j>=1;j=j/3){
....
}
}

How to find the theta for the above code.

for(i=1;i<=n;i++){
for(j=i;j>=1;j=j/K){
....
}
}

and How to find number of steps or time complexity for inner loop if k=3 (odd)

View Replies View Related

Making Username All Lower Case In Java Code

Apr 21, 2014

I need the username produced by this program to be in all lower case. The code is below.

/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/

package dcollinshw03;
import java.util.Scanner;
import java.util.Random;
public class DcollinsHW03 {
public DcollinsHW03() {

[Code] .....

View Replies View Related

Junit Test Case For Reading Field From A File

Feb 17, 2015

I have JUnit exposure only in writing simple programs. Here I have one of the usecases requirement pupose I am generating data file(s) by Java programming and calling this data by Hashmap. My file containing two columns

(1) TimeStamp
(2) Speed.

The file is tab formatted file. The business requirement is to check wether the first column should not be 00000000000000 or NULL or BLANK. My question is, how do I check the first field in a file contaning valid information in Junit test case?

Sample File: ( - tab delimited)
1421103602000 542
0000000000000 989
<NULL> 000
1421103603000 588
1421103604000 700

Unfortunately, I am unable to send my Java code here, It was giving some error while attaching in this thread.

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







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