Problem with JSF, help me...

Hi viewers,
I'm having an jsf application... in that according to my reqirements i hav created a jsp like this...
i devided the page into two frames (like left side and right side) and in left side i hav some command buttons... whenever i press that command button it displays the data in a new page but my requirement is it should display the data in the same page at right side.... plz solve this proble.... thanks in advance,,, any help is appriciated.....

Navigational frame would help you
http://www.w3schools.com/HTML/html_frames.asp

Similar Messages

  • Very big problem with JSF about FORM and "id=" for HTML form's elements and

    I have discovered a very big problem with JSF about FORM and "id=" for HTML form's elements and java instruction "request.getParameterNames()".
    Suppose you have something like this, to render some datas form a Java Beans :
    <h:dataTable value="#{TablesDb2Bean.myDataDb2ListSelection}" var="current" border="2" width="50%" cellpadding="2" cellspacing="2" style="text-align: center">
    <h:column>
    <f:facet name="header">
    <h:outputText value="Name"/>
    </f:facet>
    <h:outputText id="nameTableDb2" value="#{current.db2_name_table}"/>
    </h:column>
    </h:dataTable>
    Everything works fine...
    Suppose you want to get the name/value pairs for id="nameTableDb2" and #{current.db2_name_table} to process them in a servlet. Here is the HTML generated :
    <td><span <span class="attribute-name">id=<span class="attribute-value">"j_id_jsp_1715189495_22:0:nameTableDb2">my-table-db2-xxxxx</span></td>
    You think you can use the java instructions :
    Enumeration NamesParam = request.getParameterNames();
    while (NomsParam.hasMoreElements()) {
    String NameParam = (String) NamesParam.nextElement();
    out.println("<h4>"++NameParam+ "+</h4>);
    YOU ARE WRONG : request.getParameterNames() wants the syntax *name="nameTableDb2" but JSF must use id="nameTableDb2" for "<h:outputText"... So, you can't process datas in a FORM generated with JSF in a Servlet ! Perhaps I have made an error, but really, I wonder which ?
    Edited by: ungars on Jul 18, 2010 12:43 AM
    Edited by: ungars on Jul 18, 2010 12:45 AM

    While I certainly appreciate ejb's helpful responses, this thread shows up a difference in perspective between how I read the forum and how others do. Author ejb is correct in advising you to stay inside JSF for form processing if form processing is what you want to do.
    However, I detect another aspect to this post which reminds me of something Marc Andreesen once said when he was trying to get Netscape off the ground: "there's no such thing as bad HTML."
    In this case, I interpret ungar's request as a new feature request. Can I phrase it like this?
    "Wouldn't it be nice if I could render my nice form with JSF but, in certain cases, when I REALLY know what I'm doing" just post out to a separate servlet? I know that in this case I'll be missing out on all the nice validation, conversion, l10n, i18n, ajax, portlet and other features provided by JSF".
    If this is the case, because it really misses the point of JSF, we don't allow it, but we do have an issue filed for it
    https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=127
    If you can't wait for it to be fixed, you could decorate the FormRenderer to fix what you want.
    I have an example in my JSF book that shows how to do this decoration. http://bit.ly/edburnsjsf2
    Ed

  • Problems with JSF and included subviews

    Hi everybody,
    I' ve got a problem with JSF and included subviews which makes me going
    crazy. I've got no clue why my web-pages are represent wrongly. The only
    tip I've got is that it must be connected with the kind I do include my JSF-pages.
    When I use <%@file="sub.jsp"%> my pages are are represent right. When I use <jsp:include page="Sub.jsp" /> or <c:import url="Sub.jsp" /> ( mark: the usage of flush="true" or flush="false" doesn't matter )
    my pages are represent wrongly.
    The usage of tags like f:facet or f:verbatim were also included but didn't point to an solution.
    I searched the whole Sun Developer Forum and some other web-sites for any solution for my problem but the given hints and clues didn't help. Now I'm trying to post my problem directly in Sun's Forum in hope to get help.
    My environment is the following:
    JAVA JDK 1.5 Update 4
    Tomcat 5.5.9
    JSLT 1.1
    Sun JSF 1.1
    Win 2K
    Here's my code:
    Main.jsp
    <%@ page language="java"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <%
              String path = request.getContextPath();
              String basePath = request.getScheme() + "://" + request.getServerName()
                        + ":" + request.getServerPort() + path + "/";
    %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
         <base href="<%=basePath%>">
         <meta http-equiv="pragma" content="no-cache">
         <meta http-equiv="cache-control" content="no-cache">
         <meta http-equiv="expires" content="0">   
         <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
         <meta http-equiv="description" content="This is my page">
         <link rel="stylesheet" href="stil.jsp" type="text/css" />
    </head>
    <body>
         <f:view>
              <h:form>
                   <div class="table">
                        <div class="tr">
                             <h:outputText styleClass="tdleft" value="value 1"/>
                             <h:outputText styleClass="tdinfo" value="value 2"/>
                        </div>
                        <div class="tr">
                             <h:outputText styleClass="tdleft" value="value 3"/>
                             <h:outputText styleClass="tdinfo" value="value 4"/>
                        </div>
                   </div>
              </h:form>     
              <jsp:include page="Sub.jsp" />
         </f:view>
    </body>
    </html>Sub.jsp
    <%@ page language="java"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <f:subview id="subview">
         <h:form>
              <div class="table">
                   <div class="tr">
                             <h:outputText styleClass="tdleft" value="value 11"/>
                             <h:outputText styleClass="tdinfo" value="value 22"/>
                   </div>
                   <div class="tr">
                        <h:outputText styleClass="tdleft" value="value 33"/>
                        <h:outputText styleClass="tdinfo" value="value 44"/>
                   </div>
              </div>
         </h:form>
    </f:subview>stil.jsp
    <%@page contentType="text/css"%>
    <%
        String  schwarz     = "#000000",
                grau1       = "#707070",
                grau2       = "#c0c0c0",
                grau3       = "#e0e0e0",
                grau4       = "#e8e8e8",
                grau5       = "#fdfdfd",
                blau        = "#0000dd",
                tuerkis     = "#00cfff";
        String  liniendicke = "1px",
                linienart   = "solid";
        String allgemeineTextFarbe           = schwarz;
        String allgemeineHintergrundFarbe    = grau3;
        String infoTextFarbe                 = blau;
        String fieldsetRandFarbe             = blau;
        String fieldsetRandDicke             = liniendicke;
        String fieldsetRandArt               = linienart;
        String hrLinienFarbe                 = blau;
        String hrLinienDicke                 = liniendicke;
        String hrLinienArt                   = linienart;
        String inputAktivHintergrundFarbe    = grau5;
        String inputReadonlyHintergrundFarbe = grau4;
        String inputPassivHintergrundFarbe   = grau4;
        String inputPassivFarbe              = schwarz;
        String inputRandFarbe1               = grau1;
        String inputRandFarbe2               = grau5;
        String inputRandDicke                = liniendicke;
        String inputRandArt                  = linienart;
        String inputButtonHintergrundFarbe   = grau3;
        String legendenFarbe                 = blau;
        String linkFarbe                     = blau;
        String linkAktivFarbe                = tuerkis;
        String linkBesuchtFarbe              = blau;
        String linkFocusFarbe                = tuerkis;
        String objectGitterFarbe             = grau5;
        String objectGitterDicke             = liniendicke;
        String objectGitterArt               = linienart;
        String tabellenGitterFarbe           = grau5;
        String tabellenGitterDicke           = liniendicke;
        String tabellenGitterArt             = linienart;
    %>
    <%-- ----------------------------------------------- --%>
    <%-- Textdarstellung mittels der Display-Eigenschaft --%>
    <%-- in den Tags div und span                        --%>
    <%-- ----------------------------------------------- --%>
    *.table {
        display:table;
        border-collapse:collapse;
    *.tbody {
        display:table-row-group;
    *.tr {
        display:table-row;
    *.td,*.tdright,*.tdleft,*.tdinfo,*.th {
        display:table-cell;
        padding:3px;
        vertical-align:middle;
    *.td,*.th {
        text-align:center;
    *.tdright {
        text-align:right;
    *.tdleft {
        text-align:left;
    *.tdinfo {
        color:<%=infoTextFarbe%>;
        text-align:right;
    *.th {
        color:<%=infoTextFarbe%>;
        font-weight:bold;
    }thanks in advance
    benjamin

    Hello Zhong Li,
    many thanks for your post, but it didn't work.
    My problem is that the JSF-Components im my included or imported
    JSP-Pages does not accept any kind of style or styleClass for
    designing. The components take over the informations for colors
    but not for alignment.
    When I take a look at the generated JAVA-Source in $TOMCAT/WORK/WEBAPP for my sub.jsp ( sub.java )
    it seems that the resulting HTML-page would be presented correctly.
    But later when I start the application via Firefox or Mozilla the html-sourcecode is totally wrong.
    In my example I create a simple grid with 2 rows and 2 columns.
    Both columns contains JSF-Outtext-Components and are included with div-tags.
    The generated Sub.java shows that the text would be setted in the div-tags. Unfortunately the html-sourcecode represented by my browser shows that jsf-text is not setted in the tags but in the <h:form> tags. The div-tags are neither rounded by <h:form> nor containing the JSF-OutText-Components.
    Any clue?
    Many thanks Benjamin
    Here is the html-code from Firefox:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
         <base href="http://polaris21:8080/webtest/">
         <meta http-equiv="pragma" content="no-cache">
         <meta http-equiv="cache-control" content="no-cache">
         <meta http-equiv="expires" content="0">   
         <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
         <meta http-equiv="description" content="This is my page">
         <link rel="stylesheet" href="stil.jsp" type="text/css" />
    </head>
    <body>
         <form id="_id0" method="post" action="/webtest/Main.faces" enctype="application/x-www-form-urlencoded">
              <div class="table">
                   <div class="tr">
                        <span class="tdleft">value 1</span>
                        <span class="tdinfo">value 2</span>
                   </div>
                   <div class="tr">
                        <span class="tdleft">value 3</span>
                        <span class="tdinfo">value 4</span>
                   </div>
              </div>
              <input type="hidden" name="_id0" value="_id0" />
         </form>     
          <form id="SUB:_id5" method="post" action="/webtest/Main.faces" enctype="application/x-www-form-urlencoded">
               <span class="tdleft">value 11</span>
              <span class="tdinfo">value 22</span>
              <span class="tdleft">value 33</span>
              <span class="tdinfo">value 44</span>
              <input type="hidden" name="SUB:_id5" value="SUB:_id5" />
         </form>
         <div class="table">
              <div class="tr">
              </div>
              <div class="tr">
              </div>
         </div>
    </body>
    </html>

  • Problem with jsf DataTable

    when data is fetch using user criteria:
    i have a problem with jsf DataTable. I use e request bean to populate the datatable and i insert a commandButton column. The data dispay successfully into the datatable, but when a push the button on the row...the page simply refresh and notinhg else
    when data is fetch using constants:
    The data dispay successfully into the datatable, when a push the button on the row...the action execute OK

    Hi,
    I don't think that with this description only anybody on this list is able to help you.
    I use e request bean to populate the datatable and i insert a commandButton column
    What is a command button column and what does it do ?
    but when a push the button on the row...the page simply refresh and notinhg else
    What did you do to debug the problem ?
    when data is fetch using constants
    What does this mean ?
    Frank

  • I can't delete my bt emails or move them to folders, other emails from tiscali no problem with, anyone help please

    I can't delete my bt emails or move them to folders, other emails from tiscali no problem with, anyone help please

    I did that and it is currently whirring away, had over 16000 emails as everything got imported when I set emails up (only had this computer 5 days). So will see what happens when it stops doing whatever it is doing. Sorry if I appear stupid but first Mac I have owned so everything a bit new. Have managed to get most things working correctly just can't sort this BT email problem out. Will report back later!

  • ITunes has stopped working.  Problem with iTunes Helper Module

    After i installed the 7.3.1 iTUNES update for my windows VISTA, i keep getting iTunes has stopped working, and a message saying there is a problem with iTunes Helper Module.. I've tried to re-install and everything.. Can anyone help me out?

    here you go
    Problem signature
    Problem Event Name: APPCRASH
    Application Name: iTunesHelper.exe
    Application Version: 7.3.1.3
    Application Timestamp: 468d67e8
    Fault Module Name: QuickTimeStreamingAuthoring.qtx
    Fault Module Version: 7.2.0.240
    Fault Module Timestamp: 4684a83a
    Exception Code: c0000005
    Exception Offset: 00016c09
    OS Version: 6.0.6000.2.0.0.768.3
    Locale ID: 1033
    Additional Information 1: 18fe
    Additional Information 2: f42ba5cd8b2ed31f18b99a5ea46137af
    Additional Information 3: 4735
    Additional Information 4: ae0a749503b699b3b75d581a3dbfd557
    Extra information about the problem
    Bucket ID: 466198587

  • Problem with Adobe Help Online

    Dear sir,
    Hi, My name is Palm.
    I have a problem with Adobe Help. Every time I use the function "Leyer Style" >> "Gradient Overlay".
    Adobe Help Online is often displayed without my pressing or click anything.
    It was a problem with my work.
    I have to restart the program. To work again.
    Thanks for the help.

    Thank you.
    It's excellent for this solution.
    I have solved the problem as suggested.
    Now the problem is still not found but I will monitor this issue further.

  • Problems with "Mac Help"

    My help files, especially "Mac Help", no longer work properly since upgrading to Tiger. If I open "Mac Help", for example, the help window will pop up, but the links will not work (nothing happens when I click on them) and the search feature in help will not work either (the little gray "clock" just spins next to the help bar and nothing else ever happens). Any suggestions on this one? As I'm a relatively recent Mac convert, the help feature was something that I came to rely on. Thanks!

    Hi CP,
    This is a common problem with Mac Help. When it happens, try first (quit Help) deleting this folder:
    Home/Library/Caches/com.apple.helpui
    If Help still doesn't work, try then deleting those files:
    Home/Library/Preferences/com.apple.helpviewer.plist
    Home/Library/Preferences/com.apple.help.plist
    (and this one if you find it):
    Home/Library/Preferences/com.apple.helpui.plist
    See also this KB article for more info
    - Mac OS X 10.2, 10.3: Mac Help Viewer unexpectedly quits
    and this excellent X Lab FAQ
    - Troubleshooting Help Viewer
    It seems (not sure about that), that Help caches get easily corrupted when interrupting searches instead of patiently waiting for its internet accessings etc?
    Good luck!
    Axl

  • Problem with how help works

    Hi;
    I have the help system up for the JSF tutorial. I then move my mouse to the tag library and click on the info icon for the "Import CSS File" two problems with this:
    1. It takes you to help for Link (which is the next item).
    2. It jumps to that page in the help window I had up for the JSF tutorial and wipes the history so I can't go back to the JSF tutorial. This is a giant PITA.
    ??? - thanks - dave

    Hi,
    #1 is not an issue; the HTML anchor tag has been named Link within Tag Libraries view. The info icon on Link tag leads you to <A> element help page.
    The CSS file (using Import CSS file) is indeed defined by <link> tag.
    An issue has been logged regarding back button navigation.
    Try the following steps to workaround this issue,
    * When you are in JSF tutorial help page, click on Bookmark Document icon
    * And when you loose the page, you can navigate back switching to "Bookmarks tab" (Synchronize from "Show in Table of Contents")
    Thanks,
    M7 Support

  • Problem with JSF

    Hello,
    I have a problem with finishing my project which is based on JSF, Hibernate and EJB technologies. The matter is that I�ve built the application which manages a group of reports and assign sections and reports to the single user. I have two types of users, simple users and administrators. Simple user log in to the system and is able to generate reports which were assigned to him by admin. In the system can be more than just a one administrator. The problem is when one administrator is on-line and another log in to the system. Then both of them are working on the same instances of classes. In JSF files I�m working on created session beans which are defined in faces-config file. I�m new in JSF so maybe my attitude to this technology is not correct. If anyone know how to solve my problem please help me �
    Regards
    krabu

    Akash_Ganga wrote:
    The same instance of LoginBean.class is used by both of administrators and this is the problem ...The above statement is wrong. There are two different sessions for the two users. You are probably seeing data because its persisted in the database by one user and when the next user logs in, the application fetches data from the DB and displays it. Its more of a design problem if you do not want the second user to see the data which the first user has entered.Akash,
    I think we do not understand each other. My application is really simple. Simple user is able to see some links to reports when log in to the system or not. It depends on administrator which is able, in the form I've mentioned before, to assign the right to see a report by a user or not. I don't know what do you mean by saying "There are two different sessions for the two users".
    To explain you what the problem is try to follow such a situation. Let say we have two classes : LoginBean.class and EditForm.class. Based on that classes we create two session beans : loginBean and editForm in faces-config file as follows:
            <managed-bean>
              <managed-bean-name>
              loginBean</managed-bean-name>
              <managed-bean-class>
              log.LoginBean</managed-bean-class>
              <managed-bean-scope>
              session</managed-bean-scope>
         </managed-bean>
         <managed-bean>
              <managed-bean-name>
              editForm</managed-bean-name>
              <managed-bean-class>
              log.EditForm</managed-bean-class>
              <managed-bean-scope>
              session</managed-bean-scope>
         </managed-bean> We have also created two JSF files, one login.jsf which include authorization component based on loginBean and second: editForm.jsf which include a SelectOneMenu component to choose a user and a form to assign selected user a report based on editForm bean.
    We log in to the system as a administration. We are after authorization and enter the editForm.jsf file. We choose a user from SelectOneMenu component and make some changes in the form. But we do not submit anything and do NOT send it to the database. In this moment another administrator log-in, go to the editForm.jsf file and after that he sees that in his selectOneMenu component a user is chosen and the form is filled with data entered by prevoius administrator.
    I'm new in JSF but I've thought that when I create a session bean a new instance of bean ( new instance of class ) is created for all users which try to use it, or maybe I'm doing something wrong or should write some additional code to achieve such a function ...

  • Problem with Adobe Help in Creative Cloud

    I'm using Mac OSX 10.9 but this problem has been here before that.
    My Adobe Help application says "No Adobe Products are currently installed." which is completely wrong. If I look at the "Local Content tab there is nothing displayed. I did have the "Display Local Help Content only" set to "yes, because it annoyed me to be taken to SLOW website whenever I clicked help. But now I have no other options and it seems to have mucked uo the help system altogether. I have changed it to "No" now so that it will display online content, but the real problem is that it does not recognise ANY of the installed CC applications.
    Any clues as to what the problem is or how I can make Adobe Help recognise my installed applications? Adobe Help has SUCKED BADLY for local help content for a long now.

    i too have issues with the help the tech sopport for Adobe. When i last tried to call i was told it would be a hour wait. Using the online chat was useless as well. Then to top things off my code for the ID theft monitering servies is not valid. Now i have to call and deal with that, there is another half a day wasted. I think its time to hack the software, YES adobe i have the .DLL files needed to have creative cloud or windows 7. Unless i get better help im going to cancle my subscription and just intall the hacks so the software still works. who needs support they are useless anyway.

  • Problem with printing help plz

    Hi Folks,
    Got a problem with printing hope you can help. I have just got back from an online printers some 40 prints. There is a big difference between the brightness of the print (it being a lot darker) and the elements screen. The company I used comes highly reccomended by many different sources. What am I doing wrong and how do I fix?
    Thanks

    which online service provider are you using?

  • CPU utilization problem with JSF

    Hi,
    I am using MyFaces 1.1.4 and tomahawk 1.1.3.
    I am using EJB 2.0 and weblogic server 9.2
    I have a problem with the performance of my application. The response time for 500 concurrent users is arnd 10sec. However, the CPU utilization normally hits *95-97%.*
    I have disabled all the logging to reduce the file IO. Also, all the code has been optimised. Still the problem exists. Now, I cannot think of any way to overcome this. My project is getting delayed because of this.
    Request you all to pls help.
    Regards,
    Milan.

    What type of server or servers are you using. I am assuming which I hate to do is that your EJB's are for CRUD and you a connection pool. Have tried to optimize the DB connection pool's ?.

  • Problems with the help menu.

    Hi. I'm a new iMac user and have had problems using the help menu on my computer. Every time I click on help and search a topic I get a blank untitled window. Nothing ever opens up in the window and then the spinning beach ball comes up. It is only in the blank window and I am still able to use the computer normally. I am unable to close or force quit the program and have to restart to get rid of it. I have called tech support and spent over an hour on the phone with no help and ended up reinstalling the operating system. Still having the same problem. Anyone have some advice or have had a similar problem?

    Welcome to Apple Discussions!
    Try reindexing the hard drive via Apple menu -> System Preferences -> Spotlight.
    Drag the hard drive into the Privacy section, and the select it in that section, and select the minus sign in the bottom left corner below the field holding the drive.
    Click then on Spotlight every half hour to wait until the Indexing status no longer shows up.
    If Help still doesn't come up entirely, try clicking on the clear jewel in the upper right corner of the Help menu. It may reveal the search field. If it doesn't, quit from the Help Viewer application menu, and then go to com.apple.helpviewer.plist and delete it. Help should then load normally.
    If it still doesn't, try repairing permissions with Applications -> Utilities -> Disk Utility.
    In the end, if that still doesn't work, let us know, and we might suggest something else.

  • Curious Problem with Images - Help required soon

    I'm working towards a Monday deadline and this problem with Pages is giving me nightmares.
    The images swap but keep the same bounding area. A logo, for example, may have in its place a screenshot.
    It is getting out of hand and I need help with this quickly.
    Thanks in advance.

    You can set the preferred address to bind the registry via the "java.rmi.server.hostname" system property, which can be set via the command line:
    java -Djava.rmi.server.hostname=127.0.0.1
    or...
    java -Djava.rmi.server.hostname=my_host
    I think you can also set the property programatically via the setProperty() method in the java.lang.System class

Maybe you are looking for

  • BIS, Email and BBm abroad on a PAYG sim?

    Hi All, currently on UK Orange carrier. Leaving the country for the foreseeable future. So am buying myself out of my contract but keeping my Curve. Want to take it with me to Thailand and continue using it. I can get it unlocked by Orange which is f

  • Problem in using XSQL-Session

    We want to use Session information in our application. How do I use XSQL-SEt-Session-param ? Do I have to create another servlet to manage session and call the XSQLServlet from that session servlet or can I use XSQL-session elements ? Please help on

  • How continue an install after reboot with the same privileges.

    I want to install an application with a custom exe file. i ll install the application with a non-administrator user. I need to restart the pc during the installation so i separate the exe in 2 file. I can launch the first with the administration priv

  • Trying to create a sequence, from 3 fields

    I need to come up with a mechanism to generate the primary key for a table. the table looks something like Co | Permit | Episode | a | b | c | Co2 | Permit2 the co2 and permit2 are foreign keys to another table. Co and Permit are just copies of Co2 a

  • How do you preview videos along with pictures

    you could do this in preview in leopard buy not lion.  it starts to play but won't continue.