which tag i have to use

which tag i have to use

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
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
Advertisements
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
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
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
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
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
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 an ques. of advanced java
i have an ques. of advanced java  write a wap to implement AWT by login form
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
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
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
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
Do I have to be good at math to be a data scientist?
I have to be good at math to be a data scientist?". Also tell me which...Do I have to be good at math to be a data scientist?  Hi, I am... for the tutorials to learn: Do I have to be good at math to be a data scientist? Try
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
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
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
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 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 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
Which technology should I learn after Java?
Which technology should I learn after Java?  Hi, I have learn core Java and Advanced Java from roseindia.net. Now what topics should I learn? Which technology should I learn after Java? Thanks   Hi, Congratulations
Which programming languages should I learn in 2021
Which programming languages should I learn in 2021  Hi, I am fast... = window.adsbygoogle || []).push({}); Which programming languages should I learn... languages to learn. So I need help in selection of languages to learn in 2021. Can
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
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... for "JDT" task tag with name "TODO" which adds "!" image
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
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
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
Hello Sir I Have problem with My Java Project - Java Beginners
Hello Sir I Have problem with My Java Project  Hello Sir I want Ur Mail Id To send U details and Project Source Code, plz Give Me Ur Mail Id
I have a small problem in my datagridview - Design concepts & design patterns
I have a small problem in my datagridview  i have datagridviewer in c#(platform) and i try that change cell beckground, this cell Should... the backcolor of individual cells please help me. Sorry for My English.(I am
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
i have problem in that program to my assignment sir - JavaMail
i have problem in that program to my assignment sir   Develop a programmer's editor in Java that supports syntax-highlighting, compilation support, debugging support, etc
instead of text boxe i have to show check box as selected.
instead of text boxe i have to show check box as selected.  i have... the database. when ever the valsue is there in textfield, instead of text boxe i have to show check box as selected. Thanks In advance R.Raveen.
I have posted a number of question but no one has answered?
I have posted a number of question but no one has answered?  No one has responded for ten days now. However my first question was answered on the same day. Is there a limit to the number of questions you can ask or am I doing
How do I get a job as a data scientist if I have no prior experience?
How do I get a job as a data scientist if I have no prior experience? ... for the tutorials to learn: How do I get a job as a data scientist if I have... that I can learn the topic "How do I get a job as a data scientist if I have
i have a problem to do this question...pls help me..
i have a problem to do this question...pls help me..  Write a program... reversedNumber = 0; for (int i = 0; i <= num; i...; reversedNumber = reversedNumber * 10 + r; i = 0
i have problem with this query... please tell me the resolution if this .........
i have problem with this query... please tell me the resolution if this .........  select length(ename)||' charecters exist in '||initcap(ename)||'s name' as "names and length" from emp
i have problem with this query... please tell me the resolution if this .........
i have problem with this query... please tell me the resolution if this .........  select initcap(ename),job from emp where substr(job,4,length(job,4,3)))='age
How to update record to database? I have trouble with the following code
How to update record to database? I have trouble with the following code  I have written the update statement but it still not work to update the record,what is the missing of the following code ?I need help,thankyou <?php
in my project, i have to add scrollbars to a panel,. i need some example on it,how to doit.
in my project, i have to add scrollbars to a panel,. i need some example on it,how to doit.  in my project, i have to add scrollbars to a panel,. i... visit the following links: http://www.roseindia.net/java/example/java/swing/use
sir i,have a assignment for these question plz help me sir - JavaMail
sir i,have a assignment for these question plz help me sir  ...; } else { String str = " "; for (int i = 0; i <= top; i++) str = str + " " + arr[i]; System.out.println("Elements are " + str
Which programming language should I learn after Java
Which programming language should I learn after Java  Hi, I am learning Java and core java is going to complete in next 10 days. After core java I want to learn other technologies for making fast career. Which programming

Ads