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



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

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


puppy
which tag i have to use
2 Answer(s)      6 years and 2 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 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 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
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
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
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
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 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
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 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
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
 

 

 

DMCA.com