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

 
 


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

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 Pages:
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
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 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
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
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
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
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
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
C:Redirect Tag - Struts
C:Redirect Tag  I am trying to use the jstl c:redirect tag... trying to accomplish is this: I have an initial page which redirects users... tag. I could have sworn I got this same scenario to work with another redirect
jsp tag - JSP-Servlet
(Tag Library Descriptor) file which is with the ".tld" extension. This attribute must have the value as Tag Library Descriptor (TLD). prefix... in a file that must have the ".tag" or the ".tld" extension. This is the used
include tag
include tag  Good morning sir. This is venu sir.i am pursuing mca . I am learning struts2 but i have a small doubt i am using include tag. ex... i am develop one example. ex: welcome to include tag include value=example.jsp
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
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
select tag multiple values
select tag multiple values   I want to insert multiple values in database which i have selected from select tag
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
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
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
Custom Iterator Tag in JSP
make your own custom tag in JSP which will have functionality as you want to do.... To use this custom tag as your JSP tag you have to make a Tag lib directory file... JSP version shortname or prefix which we will use to call this tag. Tag
Struts Tag Lib - Struts
Struts Tag Lib  Hi i am a beginner to struts. i dont have... use the custom tag in a JSP page. You can use more than one taglib directive... reserve word you cannot use the tag prefixes jsp, jspx, java, javax, servlet
I have crude application
I have crude application   I have crude application, how to load into this roseindia.net
Facelet remove Tag
this tag  from a facelet at compile time. This tag don't have any attribute. This tag can be used with jsfc attribute which shows...Facelet remove Tag      
HTML5 dfn tag, Definition of  &lt;dfn&gt; tag in html
will inform you about the use and implementation of the <dfn> tag. The <dfn> tag defines the term or word which is to be defined. It defines... tag. The <dfn> tag must have </dfn> tag. There is no specific
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
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
tag handler
tag handler  what is the diff bt simple and classic tag? which is more benifit to implement the handler? can we make use of any of these two to imlement the tag handler
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 cite tag, Definition of &lt;cite&gt; tag in html5
In this illustration we will inform you about the use of <cite> tag in html5. The <... is an inline tag which indicates 'define a citation'. The text within the <cite> tag is shown in italic font style. The cite tag must have start and end tag
HTML 5 &lt;table&gt; Tag, Definition of &lt;table&gt; tag in html5
</table> This tag have a "summary" attribute which... In this discussion, We will introduce about the use of <table> tag in html5. This tag is used to create the table in the html document . Simple table can have any
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
jsf center tag needed - Java Server Faces Questions
jsf center tag needed  which tag we have to use for center in JSF. normally in html we are using tag. like that i need my submitt button in center in my JSF page. give me the solution. thanks in advance.  Hi friend
tree tag in struts2 - Struts
tree tag in struts2  I have an arraylist of values retrieved from the database and i want all the values in the arraylist to be viewed in a subtree... and for each country(INDIA,UK,USA )i want a node which should have the respective
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
HTML5 del tag, Definition of &lt;del&gt; tag in html5
HTML5 del tag, Definition of <del> tag in html5 In this discussion we will inform you about the use and implementation of <del> tag . The <... attributes: This tag have two specific attributes: cite="value"
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
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
HTML5 datalist tag, Definition of &lt;datalist&gt; tag in html5
HTML5 datalist tag, Definition of <datalist> tag in html5 In this illustration we will discuss use of <datalist> tag and its implementation. The <datalist> tag is used to define the list of selectable data as a drop
HTML 5 thead Tag, Example of &lt;thead&gt; tag in html5
In this discussion, We will introduce about the use of <thead> tag in html5. This tag... have zero or more <tr> tag inside the <thead> tag. The <thead>...;table> tag. The <thead> tag must have one or more <th> tag within <
include tag
include tag  good morning sir. This is venu sir.i am pursing mca . I am learning struts2 but i have a small doubt i am using include tag. ex... include tag ..... is not displayed Thanks venu
HTML5 <area> href, hreflang attribute of area tag.
the implementation and use of  href, hreflang attributes of the <area> tag in html5. href: The href attribute specifies the URL link for the area tag in the image map; each tag have a link. hreflang: This attribute
use of object tag
use of object tag  how to use object tag in html
Tomahawk inputCalendar tag
Tomahawk inputCalendar tag          This tag is used to create calendar... attribute is set to true then it creates an input box along with a button which when
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
Tomahawk column tag
; This tag contains attributes given below : id : This is the value which is used...Tomahawk column tag          This tag is used for the columns
HTML 5 th Tag, Definition of &lt;th&gt; tag in html5
will introduce about the use of <th> tag in html5. This <th> tag...;table> tag. This tag must have opening and closing tags. The header will shown...; This tag have four specific attributes are as following: colspan="value"
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
Tomahawk outputText tag
the output as text in the page. This tag contains escape attribute which is used...; This tag contains attributes given below : id : This is the value which...Tomahawk outputText tag   
Can not input value into text field which use sx:datetimepicker
Can not input value into text field which use sx:datetimepicker  I am using lib: struts2-dojo-plugin-2.2.3.1.jar. My source is below: I input value from calendar, it runs normal. But i input value from keyboard by hands

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.