Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa JSF-Questions which tag i have to use

Have Programming Question? Ask it here!
 
 
 


puppy
which tag i have to use
2 Answer(s)      5 years and 11 months ago
Posted in : Java Server Faces Questions



Advertisement
View Answers

October 15, 2008 at 10:17 PM


use Ajax


October 16, 2008 at 11:13 AM


Hi friend,


Solve the Problem some steps to be remember :

1.Create two select menu.

For example :
State Menu and select the corresponding City Menu.


<h:panelGroup>
<h:selectOneMenu value="#{Register.select1}" valueChangeListener="#{Register.processValueChange}" immediate="true" onchange="this.form.submit()" >
<c:selectItems value="#{Register.stateList}"/>
</h:selectOneMenu>
</h:panelGroup>

<h:outputText value="City: " />
<h:panelGroup>
<h:selectOneMenu value="#{Register.select2}">
<c:selectItems value="#{Register.cityList}" />
</h:selectOneMenu>
</h:panelGroup>

2.Use "valueChangeListener" attributes of "selectOneMenu".

3.After Select state Event can be generate and "processValueChange" method call and set list of city.

public void processValueChange(ValueChangeEvent event){
try{
SelectItem option5 = new SelectItem("1", "abc");
cityList.add(option5);
}
}
catch(Exception e){
try{
con.close();
}
catch(Exception ex){}
}
}

For more information on JSF valueChangeListener visit to :

http://www.roseindia.net/jsf/valueChangeListener.shtml

http://www.javajazzup.com/issue8/page54.shtml


Thanks


Related Tutorials/Questions & Answers:
which tag i have to use - Java Server Faces Questions
which tag i have to use  Hi All, I have one Question Regadding Jsf. when i clicked on one dropdown list box.when i select one item it should.... for that what tag i have to use.please help me. Thanks, Puppy.  use
Which extension i use for save hibernate file.
Which extension i use for save hibernate file.   Please give me answer that which extension i use for save the hibernate file and how i run that file... which can be named by following the naming convention i.e. hibernate.cfg.xml
Advertisements
Web Service - Which files we have to give to client and how they will use that
Web Service - Which files we have to give to client and how they will use... this web service or want to give it to client , for that which files i have to give... and have to use it, how we call this in jsp/servlet 3) Which type of response we
i have got error while compiling simple tag handler
i have got error while compiling simple tag handler   javac.servlet.jsp not found! tell me what are the jar files required to run simple tag handler class   The package you have used javac.servlet.jsp does not exist
which values we have to use for compressing any color image
which values we have to use for compressing any color image  Sir........... in the process of compressing of any color image, which values do use as input for comprseeing algorithm. and how to get the image matrix from color
could you suggest me that in which area i have to do a project?i want a complete guidence to complete my project.
could you suggest me that in which area i have to do a project?i want a complete guidence to complete my project.  could you suggest me that in which area i have to do a project?i want a complete guidence to complete my project
project in java using applet and servlet...which tool i should use?eclipse or netbeans?
project in java using applet and servlet...which tool i should use?eclipse or netbeans?  i want to do a project in java using applet and servlet...which tool i should use?eclipse or netbeans
I have crude application
I have crude application   I have crude application, how to load into this roseindia.net
I have need to help
I have need to help  Write a program that, for four points A, B, C and P, draws a triangle formed by ABC and a small cross showing the position of P; and displays a line of text indicating which of the following three cases
i have problem with classnofounderror
i have problem with classnofounderror   import java.sql.*; public class Tyagi { public static void main (String args[])throws SQLException { ResultSet rs; try { Class.forName
i have problem with classnofounderror
i have problem with classnofounderror   import java.sql.*; public class Tyagi { public static void main (String args[])throws SQLException { ResultSet rs; try { Class.forName
use of object tag
use of object tag  how to use object tag in html
HTML - I tag example.
HTML - I tag example. Description : It is a text formatting tag. It display the text font into italic format.  Code : <html> <...>HTML -- I tag Example. </h1> <p> Roseindia Technology Pvt
I have problem in my Project
I have problem in my Project  Dear Sir, i have problem in my project about Jtable i have EDIT JButton whenevery i was click on edit he is display all data from database but i want to select any row
i have problem in that program - JavaMail
i have problem in that program  1. Write a multi-threaded Java... paradigms of Java. Use JDBC to connect to a back-end database.  Hi Friend... = pw; } public void run(){ try{ int i; for (i=1;i<10;i
i have a problem in spring - Spring
i have a problem in spring  spring Aop: how to configure proxyfactorybean in xml file for providing advices for one particular class
I have doubt in jsp file.
I have doubt in jsp file.  I have doubt in jsp file. In a jsp file, there should be two buttons. One is start and other is stop. When we click on start then only stop should be enabled. Other wise it should be disabled. When
What is an object's lock and which object's have locks?
What is an object's lock and which object's have locks?   Hi, What is an object's lock and which object's have locks? Thanks
Which java can i download?
Which java can i download?  Hello, i'm a beginner on java. Which java can i download for to exercise with my codes? Thanks in advance.   ... a window, which want me to insert this "Cartdrige". But no file was open, what can i
how to use image tag in jsp
how to use image tag in jsp  How to use image tag in JSP
Task Tag Decorator
, FIXME, etc. and Eclipse provides only plain list of all these task tags which I think is difficult to use. "Task Tag Decorator" plugin is a simple...; task tag with name "TODO" which adds "!" image to the top
depending on the form name i have to display the message
depending on the form name i have to display the message  depending on the form name i have to display the message. for example, i have 3 jsp pages like contact us,suggest us, feed back and i have to use servlet, if user clicks
In Java I have append to an existing string efficiently
In Java I have append to an existing string efficiently  Hi, In a Java program I have to append to a existing string more efficiently so... for this? Thanks   Hi, You should use the StringBuilder class
Can I use - Java Server Faces Questions
Can I use  Hi All, Can i use SelectOneMenu Tag in a dataTable Tag.I have coded like this.But It is not Working. Is it Correct.Ple
i have no programming knowledge is it possible for study java?
i have no programming knowledge is it possible for study java?  hello sir i have no programming knowledge is it possible to study java and jsp and servlet and struts.if it is then how i schedule for this and how to study
Which java collection to use in scenario below and Why?
Which java collection to use in scenario below and Why?  I want to store thousands of record in a collection and later I want to search. For best and optimized results, which collection will I prefer
I have only one day to visit the Jaipur..
I have only one day to visit the Jaipur..  Hi, I have only a day to travel in Jaipur ..hence, bit worried about what to see first
Can you see what i have done because i did it but i still have problem - SQL
Can you see what i have done because i did it but i still have problem  This is what i have done but i still have a problem:- Can you correct my mistakes? ------------------------------------------------------- create database
I have to retrieve these data from the field table
I have to retrieve these data from the field table  Hi. I have... chennai,trichy,kanchipuram for a single record. I have to retrieve these data from... as single values like chennai as one value, trichy as one value. and i have
i have problem in that program sir - JavaMail
i have problem in that program sir  1.Develop multi-threaded echo server and a corresponding GUI client in Java
I have a doubt regarding action - Struts
I have a doubt regarding action   hi, I have doubt regarding struts,I got response through jsp and once again it redirecting to action..., Please check Action Mapping in the struts-config.xml. If you have any problem
software or i have to write a code for this suff
convert windows picture or fax viewer file into ms word or pdf   sir i want to convert windows picture or fax viewer file into ms word or pdf so for this is i have to take help from the java code or any software is present
Use of <x:if> tag of JSTL
Use of <x:if> tag of JSTL       In this section we will learn how to use <x:if> tag of Xml tag library of Jstl. This tag is used for selection of statements
Should i use Ajax? - Ajax
Should i use Ajax?  When a Ajax can be used in programming?  Its completely up to you but there is no harm in using Ajax programming... not to implement it on every page but you can use it on pages which is having more hits
hi .. need help ASAP ..i have a project buit in eclipse , i have installed jasper. i want the steps to work on it ..
hi .. need help ASAP ..i have a project buit in eclipse , i have installed jasper. i want the steps to work on it ..   hi .. need help ASAP ..i have a project buit in eclipse , i have installed jasper. i want the steps to work
Use of <x:param> tag of JSTL
Use of <x:param> tag of JSTL   ... then we will use <x:param> tag, to add xml files in transform tag. In the code given below we have used doc1, doc2, doc3 as xml source files and use
How to Use Struts 2 token tag - Struts
How to Use Struts 2 token tag  Hi , I want to stop re-submiiting the page by pressing F5, or click 'back n press submit' button again, i want to use 'token' tag for it, but not able to find out how does it works, I' ve put tag
HTML5  audio tag example, Use of audio tag  in HTML5.
HTML5  audio tag example, Use of audio tag  in HTML5. Introduction:In this section, you will see the use and implementation of audio tag in HTML5. The <audio> tag is used to add audio in web page or HTML page. When
Can I have multiple main() methods in the same class?
Can I have multiple main() methods in the same class?  Hi, Can I have multiple main() methods in the same class?   Hi, No, We cann't use multiple main() method within the same class. If we do this then the program
Use of <x:out> tag of JSTL
Use of <x:out> tag of JSTL       In this section we will learn how to use <x:out> tag of Xml tag library of Jstl. This tag is used to show the content as output
Use of <x:set> tag of JSTL
Use of <x:set> tag of JSTL       In this section we will learn how to use <x:set> tag of Xml tag library of Jstl. This tag is used to define variable and also initialize
display all words containing the letter which i gave as input...
display all words containing the letter which i gave as input...  If i enter any character,it have to display the names which having that character..write a program using java example(output) Enter any character: a Names: Abi
Use of <x:parse> tag of JSTL
Use of <x:parse> tag of JSTL       In this section we will learn how to use <x... to be parsed. This tag is deprecated now and use attribute 'doc' instead
How can i use Facebook connect button
How can i use Facebook connect button  Please to meet you all guys I wonder how can i use this Connect to facebook for me to post in a particular.... Im gonna use this "Connect to facebook" feature to my blog which im gonna use
How could I use Socket in my application?
How could I use Socket in my application?  I created an application dealing with the management of a supermarket using Hibernate and Swing. I found out today that I have to use also Socket and I don't know exactly what I could do
What changes I have to do in php.ini file for file uploading?
What changes I have to do in php.ini file for file uploading?  What changes I have to do in php.ini file for file uploading
HTML5 link tag, Introduction and Use of &lt;link&gt; tag in HTML5.
HTML5 link tag, Introduction and Use of <link> tag in HTML5. Introduction and Use: :The <link> tag is used for adding external document... tag, then the element does not define a link. You can use number of link tag
which database and programming language i should choose - Framework
which database and programming language i should choose  Hi, I am... good JSP programmer so i want to know which one i choose from ASP.NET and PHP... searched more about the programming languages and i found several powerful
Where i can use UNIX Operating System?
Where i can use UNIX Operating System?  Where i can use UNIX Operating System
can i use big query in hibernate?
can i use big query in hibernate?  can i use big query in hibernate
Advertisements
 

 

 

DMCA.com