TabbedPane in JSF

Im new to JSF,
How to create tabbedPane in JSF. I need to embed JSF components into the tabs.

Hi,
try myfaces components from apache foundation. Regards,
ak

Similar Messages

  • Dynamic Tabs in JSF using tabbedPane

    I want to create tabs from the list retreived from DB. How to do Can anyone explain

    Hi Steven,
    it is time for "Ripley's believe it or not" I guess....
    I am definitely able to reproduce the behavior.
    1) Create new ADF fusion webapp
    2) Create new ADF BC.
    2a) Connection = HR.
    2b) create EO, VO for Employees and Departments and also create default AM.
    No adjustments, everything default.
    3) Refresh Datacontrol palette to have new DC available
    4) Enable JHeadstart on ViewController project
    5) Create new Service Definition. Accept all the defaults.
    6) Go to application Definition and make the following adjustments
    6a) Set PageTemplate to : /common/pageTemplates/JhsDynamicTabsPageTemplate
    6b) Set datacontrolscope to : Isolated
    7) Apply, Save all and generate.
    During generation the /common/regions/DynamicTabs.jsff is not added to the project.
    Running the new application results in
    Error 500--Internal Server Error
    java.io.FileNotFoundException: /common/regions/DynamicTabs.jsff Not Found in ExternalContext as a Resource
    Versions :
    ADF 11.1.2.3
    JHeadstart 11.1.2.1.28
    Windows 7 64bit
    And I also have the OraFormsFaces extension installed. Could that be causing the problem ??
    I do not use it in this project, but the fact that it is there and that it is available as in the New gallery ....--> JHeadstart --> JHeadstart OFF Generator indicates that OFF does influence JHS in some way ?
    Regards
    Luc
    Edited by: lucbors on Jan 18, 2013 7:17 PM

  • JSF layout driving me crazy!

    I've been working hard on a jsf powered project manager and am running into some problems with IE compatability. I got everything aligned and positioned the way (more or less) I wanted it, but when I tested it against IE all hell broke loose (specifically with the dateInput component). I took a few screen shots to explain my problem...
    What it looks like in Firefox: http://img6.imagepile.net/img6/91064firefox.png
    What it looks like in IE: http://img6.imagepile.net/img6/76581ie.png
    Each div outlined for refrence: http://img6.imagepile.net/img6/77815sh.png
    (keep in mind the design is still in development)
    CSS:
    body {
            padding: 1em;
            font-family: georgia, times, "times new roman", serif;
            color: #000;
    img {
            border:0px;
    .container {
            border: 1px solid #333;
            overflow: auto;
    .banner {
            background-color: #666;
            border-bottom: 1px solid #333;
    .banner h1 {
            margin: 0;
            padding: .5em;
    .side {
            float: right;
            margin-right: 2em;
            padding-top: 1em;
            padding-bottom: 1em;
            overflow: auto;
            height: 400px;
    .sectionHeader {
            text-align: center;
            padding-bottom: 1em;
    .side p {
            margin-top: 0;
    .content {
            float: left;
            margin-right: 1em;
            padding-top: 1em;
            padding-bottom: 1em;
            margin-left: 2em;
            overflow: auto;
            height: 400px;
    .content h2 {
            margin-top: 0;
    .footer {
            clear: both;
            background-color: #666;
            text-align: center;
    .pageHeader {
            text-align: center;
            padding-top: 1em;
    }JSF Code:
        <%@include file="WEB-INF/inc/imports.inc"%>
        <html>
        <head>
                <title>LS Project Manager - Project Creation Wizard</title>
                <link rel="stylesheet" href="css/master.css" type="text/css" />
                <link rel="stylesheet" href="css/tabbedPane.css" type="text/css" />
        </head>
        <body>
        <f:view>
                <t:saveState value="#{pcwBacker}"/>
                <t:div styleClass="container" id="container">
                        <%@include file="WEB-INF/inc/navigationbar.inc"%>
                        <t:div styleClass="pageHeader" id="pageHeader">
                                <t:outputText value="Project Creation Wizard"/>
                        </t:div>
                        <t:div styleClass="content">
                                <t:panelTabbedPane styleClass="tabbedPane"
                                                activeTabStyleClass="activeTab"
                                                inactiveTabStyleClass="inactiveTab"
                                                disabledTabStyleClass="disabledTab"
                                                activeSubStyleClass="activeSub"
                                                inactiveSubStyleClass="inactiveSub"
                                                tabContentStyleClass="tabContent"
                                                serverSideTabSwitch="false"
                                                selectedIndex="#{pcwBacker.currentIncompleteStep - 1}">
                                        <h:form></h:form> <!-- Addresses weird bug. Do not remove! -->
                                        <t:panelTab label="General Information">
                                                <h:form>
                                                <t:panelGrid columns="3">
                                                        <h:outputText value="Name: "/>
                                                        <h:inputText id="name" value="#{pcwBacker.name}" required="true" />
                                                        <t:message forceSpan="true"  for="name"/>
                                                        <h:outputText value="Category:"/>
                                                        <h:selectOneMenu id="category" value="#{pcwBacker.category}" required="true">
                                                                <f:selectItems value="#{pcwBacker.categoryItems}"/>
                                                        </h:selectOneMenu>
                                                        <t:message forceSpan="true"  for="category"/>
                                                        <h:outputText value="Status:"/>
                                                        <h:selectOneMenu id="status" value="#{pcwBacker.status}">
                                                                <f:selectItems value="#{pcwBacker.statusItems}"/>
                                                        </h:selectOneMenu>
                                                        <t:message forceSpan="true"  for="status"/>
                                                        <h:outputText value="Phase: "/>
                                                        <h:selectOneMenu id="phase" value="#{pcwBacker.phase}">
                                                                <f:selectItems value="#{pcwBacker.phaseItems}"/>
                                                        </h:selectOneMenu>
                                                        <t:message forceSpan="true"  for="phase"/>
                                                        <h:outputText value="Date Due: "/>
                                                        <t:inputDate id="date" type="full" value="#{pcwBacker.dueDate}" required="true"
                                                                        popupCalendar="true"/>
                                                        <t:message forceSpan="true"  for="date"/>
                                                        <t:commandButton action="#{pcwBacker.enableStepTwo}"
                                                                value="#{pcwBacker.completed ? 'Update' : 'Next Step'}"/>
                                                </t:panelGrid>
                                                </h:form>
                                        </t:panelTab>
                                        <t:panelTab rendered="#{pcwBacker.stepTwoEnabled}" label="People Involved">
                                                <h:form>
                                                <t:panelGrid columns="3">
                                                        <h:outputText value="Leader: "/>
                                                        <h:selectOneMenu id="leader" value="#{pcwBacker.leaderId}" required="true">
                                                                <f:selectItems value="#{pcwBacker.workerItems}"/>
                                                        </h:selectOneMenu>
                                                        <t:message for="leader" forceSpan="true"/>
                                                        <h:outputText value="Assignees: "/>
                                                        <s:selectManyPicklist id="assignees" value="#{pcwBacker.assignees}" size="5">
                                                                <f:selectItems value="#{pcwBacker.workerItems}"/>
                                                        </s:selectManyPicklist>
                                                        <t:message for="assignees" forceSpan="true"/>
                                                        <t:commandButton action="#{pcwBacker.enableStepThree}"
                                                                        value="#{pcwBacker.completed ? 'Update' : 'Next Step'}"/>
                                                        </t:panelGrid>
                                                        </h:form>
                                                </t:panelTab>
                                                <t:panelTab rendered="#{pcwBacker.stepThreeEnabled}" label="Project Description">
                                                <h:form>
                                                <t:panelGrid columns="2">
                                                        <t:inputText/>
                                                        <t:commandButton action="#{pcwBacker.enableFinalStep}"
                                                                        value="#{pcwBacker.completed ? 'Update' : 'Next Step'}"/>
                                                </t:panelGrid>
                                                </h:form>
                                        </t:panelTab>
                                        <t:panelTab rendered="#{pcwBacker.finalStepEnabled}" label="Final">
                                                <h:form>
                                                <t:panelGrid columns="2">
                                                        <t:inputText/><t:commandButton/>
                                                </t:panelGrid>
                                                </h:form>
                                        </t:panelTab>
                                </t:panelTabbedPane>
                        </t:div>
                        <t:div styleClass="side">
                                <t:div styleClass="sectionHeader">
                                        <t:outputText value="Summery"/>
                                </t:div>
                                <t:panelGrid columns="2" cellpadding="10px">
                                        <t:outputText value="Name: #{pcwBacker.name}" rendered="#{pcwBacker.name != null}"/>
                                        <t:outputText value="Status: #{pcwBacker.statusDesc}" rendered="#{pcwBacker.status != null}"/>
                                        <t:outputText value="Phase: #{pcwBacker.phaseDesc}" rendered="#{pcwBacker.phase != null}"/>
                                        <t:outputText value="Category: #{pcwBacker.categoryDesc}" rendered="#{pcwBacker.phase != null}"/>
                                        <t:outputText value="Date Due: #{pcwBacker.dueDate}"/>
                                </t:panelGrid>
                                <h:outputText value="Assignees"/>
                                <t:dataList var="assignee" value="#{pcwBacker.assignees}">
                                        <t:htmlTag value="li">
                                                <t:outputText value="#{pcwBacker.names[assignee]}"/>
                                        </t:htmlTag>
                                </t:dataList>
                        </t:div>
                </t:div>
        </f:view>
        </body>
        </html>The main focus: getting the inputDate working, the border around the container stretching, and not have one div fall beneath another or overlap when the window is resized.
    Any help would be endlessly appreciated. Thank you!
    Message was edited by:
    octoberdaniel

    Thank you for the help. I got everything working with:
    body {
    padding: 1em;
    font-family: georgia, times, "times new roman", serif;
    color: #000;
    img {
    border:0px;
    .container {
    width: 1000px;
    margin: 0 auto;
    border: 1px solid #333;
    .banner {
    border-bottom: 1px solid #333;
    .banner h1 {
    margin: 0;
    padding: .5em;
    .side {
    width: 400px;
    float: right;
    padding: 1em;
    overflow: auto;
    height: 400px;
    .sectionHeader {
    text-align: center;
    padding-bottom: 1em;
    .side p {
    margin-top: 0;
    .content {
    position: absolute;
    padding: 1em;
    overflow: auto;
    height: 400px;
    .content h2 {
    margin-top: 0;
    .footer {
    clear: both;
    background-color: #666;
    text-align: center;
    .pageHeader {
    text-align: center;
    padding-top: 1em;
    Forgeting a doctype also messed some stuff up...
    but I am still having trouble with my calander popup... Any idea?
    Message was edited by:
    octoberdaniel

  • JSF -Tomahawk Tabs

    I'm using JSF Tomahawk tabbedPane... to get the tabs... I have the commandbutton inside each t:panelTab whwn i click dat commandbutton, the action it is supposed to perform is done but it shows the first tab contents..
    for ex if i have commandbutton in second tab wen i click it performs correctly but first tab becomes active... i want dat particular tab to be active in which user has clicked commandbutton hw shall i do it...
    <t:panelTabbedPane id="editorPanel" >
    <t:panelTab id="tab11" label="Tab1" >
    <h:commandbutton action="" />
    </t:panelTab>
    <t:panelTab id="tab22" label="Tab2" >
    <h:commandbutton action="" />
    </t:panelTab>
    </t:paneltabbedPane>

    Thanks BalusC . Let me re iterate my question. I am new to JSF to pardon me if my terminology is not correct.
    I have a list which contains object .I have to generate tabs based on contents on list. So if list contain 3 objects I have to generate 3 tabs . Each page inside tab will have same layout but will be populated with different content.
    With that said. I used jsf pane_tab and I tried different ways to iterate over the list and include the jsp which will contain the layout. More specifically I tried something like below with different variations .
    <%
         for (int i = 0 ; i< list.size() ; i++)
              String abc = "name"+ i;
              %>
    <d:pane_tab id="<%= abc %>" >
    <f:facet name="label">
    <d:pane_tablabel label="test" commandName="third"/>
    </f:facet>
    <jsp:include page="addMaintenence.jsp"/>
    </d:pane_tab>
              <%
    %>
    It gives duplicate id error. Now I am not sure if my approach is right or not. Also if it not correct what should I try ??
    Any pointers would be helpful.
    Thanks in advance.
    Priyanka

  • Migrating from JSF 1.1 to JSF 1.2

    I'm migrating an existing JSF 1.1 application that was based closely on the examples in the Core JavaServer Faces book. I'm having a very specific problem getting pages to render once I log into the application. Specifically the code associated with the TabbedPaneRenderer specified in chapter 9. The application worked fine under JSF 1.1 but after upgrading to 1.2 it seems that the functionality that was provided with the includePage method will no longer work.
    The source code that was implemented is as follows:
       private void includePage(FacesContext fc, UIComponent component) {
         FacesContext     ctx        =  FacesContext.getCurrentInstance();
         VariableResolver vr         =  ctx.getApplication().getVariableResolver();
         ExternalContext  ec         =  fc.getExternalContext();
         ServletContext   sc         =  (ServletContext) ec.getContext();
         UITabbedPane     tabbedPane =  (UITabbedPane) component;
         String           content    =  tabbedPane.getContent();
         ServletRequest  request  = (ServletRequest) ec.getRequest();
         ServletResponse response = (ServletResponse) ec.getResponse();
         try {
           sc.getRequestDispatcher(content).include(request, response);
         } catch (ServletException ex) {
           logError(ctx, vr, "Couldn't load page " + content + ": " + ex);
         } catch (IOException ex) {
           logError(ctx, vr, "Couldn't load page: " + content + ": " + ex);
       }This code is called from the encodeEnd method of the Renderer. Unfortunately the page that is being included never gets rendered. How should this be done in the JSF 1.2 implementation?
    Thanks for the help...

    Hello cmathrusse,
    I just ran across the same issue. We were using JSF 1.1 and tomcat 5 and JDK 1.5 and and Tiles 1.1. We are migrating to JSF 2.0 JDK 1.6 and Tomcat 6 and our Custom Component also doesnt show up. I believe we are in the same situation.
    Did you ever fig out the issue?
    Thanks,
    Tahir

  • Styling Panel tabs in JSF with CSS

    Hello,
    I have been struggling to find a good resource that deals with the styling of <t:panelTabbedPane> and panelTabs in CSS. It would seem that using conventional tab methods might not always work correctly since JSF tabs seem to dynamically resize themselves based on the text within the, Can anyone here point me to a good resource? Thank you!

    There are tabbed panel components available. For example the Tomahawk's [t:panelTabbedPane|http://myfaces.apache.org/tomahawk/tabbedPane.html].

  • Dynamic JSP's includes from JSF Java Beans

    Hi!
    I�m David from Barcelona.I'm testing different JSF components.
    I'm working with MyFaces components, with Tabs, binding the component like this to create sub tabs dynamically:
    <t:panelTabbedPane binding="#{editorPanelBean.pane}"/>
    Now, in the bean, I use the Application class to create
    my pane and child tabs:
    UIComponent pane = app.createComponent(TABBEDPANE);
    UIComponent childtab = app.createComponent(PANELTAB);
    HtmlPanelTab tab = (HtmlPanelTab) childtab;
    I want to start adding contents to my child tabs.
    Am I locked into doing it programmatically or is it possible to somehow refer back to a JSP page
    with an include to generate the contents of each tab child?
    I can do it without binding the panelTabbedPane component, but the problem it's when I construct the component with a binding, then the include JSP doesn't work. I have tried with a Verbatim and HtmlOutputText but no results, like this:
    HtmlTabItem aHtmlTabItem = (HtmlTabItem) application.createComponent(HtmlTabItem.COMPONENT_TYPE);
    aHtmlTabItem.setValue(valor);
    aHtmlTabItem.setId(viewRoot.createUniqueId());
    UIOutput verbatim1 = (UIOutput) application.createComponent("javax.faces.Output");
    //verbatim1.setValue("<f:subview id=\""+viewRoot.createUniqueId()+"\"><jsp:include page=\"ficha_paciente_tab2.jsp\" flush=\"false\"/></f:subview>");
    verbatim1.setValue("<%@ include file=\"ficha_paciente_tab2.jsp\" %>");
    verbatim1.getAttributes().put("escape", Boolean.FALSE);
    verbatim1.setId(viewRoot.createUniqueId());
    aHtmlTabItem.getChildren().add(verbatim1);
    How can I include dynamically from my bean a JSP page with the HTMlL design of each tab and anything I want to ?
    Any help would be great !
    Thanks!

    1. username and password should be simple String properties, don't make it any more difficult than it needs to be.
    2. if (result == "success")
    Oh dear, Java 101 mistake. You want to use result.equals("success") to make that work.
    Another observation: you may want to move all the database code to a separate class. If you put database logic in seperate classes with specific methods (login(), logout(), getAllUsers(), etc.) you not only make your code more readable but you make it possible to re-use those methods in different parts of your code.

  • JSF, Portlets

    Hello!
    I am working on a JSF-Portlet application. Well, I have succeeded in developing a JSF-Portlet application using Sun OpenPortal's JSF-Portlet Bridge. This was all working fine. But I when I try to include Tomahawk, it seems if Tomahawk is not supported by OpenPortal's JSF-Portlet Bridge. I have to embed TabbedPane in my project. Please help me by answering one of my two questions.
    1. Do I need to configure OpenPortal's JSF-Portlet bridge to use it with Tomahawk?
    OR
    2. Is there any other Rich library like Tomahawk, that will adjust with OpenPortal's JSF-Portlet Bridge without any configuration?
    I will be grateful to you. Thank you in advance.

    You can try WoodStock library ( https://woodstock.dev.java.net/index.html ) which provides TabbedPane support and OpenPortal Jsf portlet bridge works with woodstock.
    To develop jsf portlet application, you can use Portal Pack 2.0 's Visual Portlet Builder ( http://portalpack.netbeans.org ). Using this plug-in you can develop jsf portlet page in a WYSIWYG editor just through drag and drop. This plug-in uses WoodStock and JSF portlet bridge library for jsf portlet.
    For more info you can check this blog
    http://blogs.sun.com/satya/entry/new_visual_portlet_builder_inhttp://blogs.sun.com/satya/entry/new_visual_portlet_builder_in

  • How to get ALL values as default for  a drop down box in JSF

    Hi,
    I have a drop down box in JSF page which retrieves values from LOVCache.java. I have values like Company, Client, User, ALL in the drop down box.
    By default blank value is selected for the drop down box. I want to make ALL(which retrieves data for all the values) as default value for the drop down box.
    Could any body help me? Any help must be appreciated.
    Thanks,
    Aseet

    Thanks Nikhil. But I am fetching the values from the LOVCache.java.
    I am using <af:selectManyChoice>. Is there any way I can use LOVCache.java value for selecting default values instead of hard coding?
    I mean to say can I write
    unselectedLabel="#{LOVCache.entityTypeSelectionList.anyValue}"
    where LOVCache.entityTypeSelectionList is used to populate the drop down box.
    Regards,
    Aseet

  • I am trying to use java  file as Model layer and jsf as presentation layer

    I am trying to use java file as Model layer and jsf as presentation layer and need some help
    I successfully get the value of h:outputText from java file by doing simple binding operation but I am facing problems when I am trying to fill h:dataTable
    I create java file
    package oracle.model;
    import java.sql.;*
    import java.util.;*
    *public class TableBean {*
    Connection con ;
    Statement ps;
    ResultSet rs;
    private List perInfoAll = new ArrayList();
    *public List getperInfoAll() {*
    perInfoAll.add(0,new perInfo("name","username","blablabla"));
    return perInfoAll;
    *public class perInfo {*
    String uname;
    String firstName;
    String lastName;
    *public perInfo(String firstName,String lastName,String uname) {*
    this.uname = uname;
    this.firstName = firstName;
    this.lastName = lastName;
    *public String getUname() {*
    return uname;
    *public String getFirstName() {*
    return firstName;
    *public String getLastName() {*
    return lastName;
    right click on the file and choose 'create data control'
    then i wrote the jsf file:
    *<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>*
    *<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>*
    *<f:view>*
    *<h:dataTable id="dt1" value="#{bindings.perInfoAll}"*
    var="item" bgcolor="#F1F1F1" border="10"
    cellpadding="5" cellspacing="3" rows="4" width="50%"
    dir="LTR" frame="hsides" rules="all"
    *>*
    *<f:facet name="header">*
    *<h:outputText value="This is 'dataTable' demo" id="ot6"/>*
    *</f:facet>*
    *<h:column id="c2">*
    *<f:facet name="header">*
    *<h:outputText value="First Name" id="ot1"/>*
    *</f:facet>*
    *<h:outputText style="" value="#{item.firstName}"*
    id="ot2"/>
    *</h:column>*
    *<h:column id="c4">*
    *<f:facet name="header">*
    *<h:outputText value="Last Name" id="ot9"/>*
    *</f:facet>*
    *<h:outputText value="#{item.lastName}" id="ot8"/>*
    *</h:column>*
    *<h:column id="c3">*
    *<f:facet name="header">*
    *<h:outputText value="Username" id="ot7"/>*
    *</f:facet>*
    *<h:outputText value="#{item.uname}" id="ot4"/>*
    *</h:column>*
    *<f:facet name="footer">*
    *<h:outputText value="The End" id="ot3"/>*
    *</f:facet>*
    *</h:dataTable>*
    *</center>*
    *</af:document>*
    *</f:view>*
    but nothing is appear in my table
    I know that there is something wrong in calling the binding object
    I need help pls and where can i find some help to deal with another tag types
    thanks

    i dragged the "perInfoAll" from my "Data Controls" and choosed adf table (even I know that new table with adf tags well be generated and i want table with jsf tags)
    and this code is generated
    *<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"*
    *"http://www.w3.org/TR/html4/loose.dtd">*
    *<%@ page contentType="text/html;charset=UTF-8"%>*
    *<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>*
    *<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>*
    *<%@ taglib uri="http://xmlns.oracle.com/adf/faces/rich" prefix="af"%>*
    *<f:view>*
    *<af:document id="d1">*
    *<af:messages id="m1"/>*
    *<af:form id="f1">*
    *<af:table value="#{bindings.perInfoAll1.collectionModel}" var="row"*
    *rows="#{bindings.perInfoAll1.rangeSize}"*
    *emptyText="#{bindings.perInfoAll1.viewable ? 'No data to display.' : 'Access Denied.'}"*
    *fetchSize="#{bindings.perInfoAll1.rangeSize}"*
    *rowBandingInterval="0"*
    *selectionListener="#{bindings.perInfoAll1.collectionModel.makeCurrent}"*
    *rowSelection="multiple" id="t1">*
    *<af:column sortProperty="uname" sortable="false"*
    *headerText="#{bindings.perInfoAll1.hints.uname.label}"*
    *id="c1">*
    *<af:inputText value="#{row.bindings.uname.inputValue}"*
    *label="#{bindings.perInfoAll1.hints.uname.label}"*
    *required="#{bindings.perInfoAll1.hints.uname.mandatory}"*
    *columns="#{bindings.perInfoAll1.hints.uname.displayWidth}"*
    *maximumLength="#{bindings.perInfoAll1.hints.uname.precision}"*
    *shortDesc="#{bindings.perInfoAll1.hints.uname.tooltip}"*
    *id="it3">*
    *<f:validator binding="#{row.bindings.uname.validator}"/>*
    *</af:inputText>*
    *</af:column>*
    *<af:column sortProperty="firstName" sortable="false"*
    *headerText="#{bindings.perInfoAll1.hints.firstName.label}"*
    *id="c2">*
    *<af:inputText value="#{row.bindings.firstName.inputValue}"*
    *label="#{bindings.perInfoAll1.hints.firstName.label}"*
    *required="#{bindings.perInfoAll1.hints.firstName.mandatory}"*
    *columns="#{bindings.perInfoAll1.hints.firstName.displayWidth}"*
    *maximumLength="#{bindings.perInfoAll1.hints.firstName.precision}"*
    *shortDesc="#{bindings.perInfoAll1.hints.firstName.tooltip}"*
    *id="it2">*
    *<f:validator binding="#{row.bindings.firstName.validator}"/>*
    *</af:inputText>*
    *</af:column>*
    *<af:column sortProperty="lastName" sortable="false"*
    *headerText="#{bindings.perInfoAll1.hints.lastName.label}"*
    *id="c3">*
    *<af:inputText value="#{row.bindings.lastName.inputValue}"*
    *label="#{bindings.perInfoAll1.hints.lastName.label}"*
    *required="#{bindings.perInfoAll1.hints.lastName.mandatory}"*
    *columns="#{bindings.perInfoAll1.hints.lastName.displayWidth}"*
    *maximumLength="#{bindings.perInfoAll1.hints.lastName.precision}"*
    *shortDesc="#{bindings.perInfoAll1.hints.lastName.tooltip}"*
    *id="it1">*
    *<f:validator binding="#{row.bindings.lastName.validator}"/>*
    *</af:inputText>*
    *</af:column>*
    *</af:table>*
    *</af:form>*
    *</af:document>*
    *</f:view>*
    but when run it i see the following errors
    *Class oracle.adf.model.adapter.bean.BeanDataControl can not access a member of class nl.amis.hrm.EmpManager with modifiers "private"*
    *Object EmpManager of type DataControl is not found.*
    *java.lang.NullPointerException*
    *Class oracle.adf.model.adapter.bean.BeanDataControl can not access a member of class nl.amis.hrm.EmpManager with modifiers "private"*
    *Object EmpManager of type DataControl is not found.*
    *java.lang.NullPointerException*
    :(

  • How to get security roles in a JSF portlet

    I need to get the LDAP user-roles available in the Sun Portal Server 7 in my JSF-168 portlet.
    I've added the mapping file, updated the portlet.xml and web.xml, deployed the portlet (psconsole). But the portlet shows the "content not available" error with javax....title title.
    I've probably messed up the descriptors, but I don't see what is wrong. Here they are:
    roleMaps.properties
    cn\=VSM.Administrator,dc\=neco,dc\=cz=Administrator
    web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.4">
      <context-param>
        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
        <param-value>server</param-value>
      </context-param>
      <context-param>
        <param-name>javax.faces.CONFIG_FILES</param-name>
        <param-value>/WEB-INF/navigation.xml,/WEB-INF/managed-beans.xml</param-value>
      </context-param>
      <context-param>
        <param-name>com.sun.faces.validateXml</param-name>
        <param-value>true</param-value>
      </context-param>
      <context-param>
        <param-name>com.sun.faces.verifyObjects</param-name>
        <param-value>false</param-value>
      </context-param>
      <filter>
        <filter-name>UploadFilter</filter-name>
        <filter-class>com.sun.rave.web.ui.util.UploadFilter</filter-class>
        <init-param>
          <description>
              The maximum allowed upload size in bytes.  If this is set
              to a negative value, there is no maximum.  The default
              value is 1000000.
            </description>
          <param-name>maxSize</param-name>
          <param-value>1000000</param-value>
        </init-param>
        <init-param>
          <description>
              The size (in bytes) of an uploaded file which, if it is
              exceeded, will cause the file to be written directly to
              disk instead of stored in memory.  Files smaller than or
              equal to this size will be stored in memory.  The default
              value is 4096.
            </description>
          <param-name>sizeThreshold</param-name>
          <param-value>4096</param-value>
        </init-param>
      </filter>
      <filter-mapping>
        <filter-name>UploadFilter</filter-name>
        <servlet-name>Faces Servlet</servlet-name>
      </filter-mapping>
      <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
      </servlet>
      <servlet>
        <servlet-name>ExceptionHandlerServlet</servlet-name>
        <servlet-class>com.sun.errorhandler.ExceptionHandler</servlet-class>
        <init-param>
          <param-name>errorHost</param-name>
          <param-value>localhost</param-value>
        </init-param>
        <init-param>
          <param-name>errorPort</param-name>
          <param-value>25444</param-value>
        </init-param>
      </servlet>
      <servlet>
        <servlet-name>ThemeServlet</servlet-name>
        <servlet-class>com.sun.rave.web.ui.theme.ThemeServlet</servlet-class>
      </servlet>
      <servlet>
        <description>Generated By Sun Java Studio Creator</description>
        <display-name>CreatorPortlet Wrapper</display-name>
        <servlet-name>VSMPortal</servlet-name>
        <servlet-class>org.apache.pluto.core.PortletServlet</servlet-class>
        <init-param>
          <param-name>portlet-class</param-name>
          <param-value>com.sun.faces.portlet.FacesPortlet</param-value>
        </init-param>
        <init-param>
          <param-name>portlet-guid</param-name>
          <param-value>VSMPortal.VSMPortal</param-value>
        </init-param>
      </servlet>
      <servlet-mapping>
        <servlet-name>ExceptionHandlerServlet</servlet-name>
        <url-pattern>/error/ExceptionHandler</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>ThemeServlet</servlet-name>
        <url-pattern>/theme/*</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>VSMPortal</servlet-name>
        <url-pattern>/VSMPortal/*</url-pattern>
      </servlet-mapping>
      <welcome-file-list>
        <welcome-file>faces/null</welcome-file>
      </welcome-file-list>
      <error-page>
        <exception-type>javax.servlet.ServletException</exception-type>
        <location>/error/ExceptionHandler</location>
      </error-page>
      <error-page>
        <exception-type>java.io.IOException</exception-type>
        <location>/error/ExceptionHandler</location>
      </error-page>
      <error-page>
        <exception-type>javax.faces.FacesException</exception-type>
        <location>/error/ExceptionHandler</location>
      </error-page>
      <error-page>
        <exception-type>com.sun.rave.web.ui.appbase.ApplicationException</exception-type>
        <location>/error/ExceptionHandler</location>
      </error-page>
      <jsp-config>
        <jsp-property-group>
          <url-pattern>*.jspf</url-pattern>
          <is-xml>true</is-xml>
        </jsp-property-group>
      </jsp-config>
         <security-role>
              <role-name>Administrator</role-name>
         </security-role>          
    </web-app>
    portlet.xml
    <?xml version='1.0' encoding='UTF-8' ?>
    <portlet-app xmlns='http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd                         http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd' version='1.0'>
         <portlet>
              <description>Created By Java Studio Creator</description>
              <portlet-name>VSMPortal</portlet-name>
              <display-name>VSMPortal Portlet</display-name>
              <portlet-class>com.sun.faces.portlet.FacesPortlet</portlet-class>
              <init-param>
                   <name>com.sun.faces.portlet.INIT_VIEW</name>
                   <value>/Uctarna.jsp</value>
              </init-param>
              <expiration-cache>0</expiration-cache>
              <supports>
                   <mime-type>text/html</mime-type>
                   <portlet-mode>VIEW</portlet-mode>
              </supports>
              <supported-locale>en</supported-locale>
              <portlet-info>
                   <title>VSMPortal</title>
                   <short-title>VSMPortal</short-title>
                   <keywords>Creator</keywords>
              </portlet-info>
              <security-role-ref>
                   <role-name>Administrator</role-name>
                   <role-link>Administrator</role-link>
              </security-role-ref>          
         </portlet>
    </portlet-app>If I don't use the security-role and security-role-ref tags, the portlet works, and the isUserInRole method obviously doesn't.

    Nobody uses the LDAP roles in a portlet? Anybody knows other thread discussing similar issue (I can't find anything)?

  • JSF Pages are not rendering correctly when  loaded using Non JSF actions

    Hi All,
    This problem is irritating me and I am posting the same query for the third time here.
    When I come from non jsf actions such as page submitting using Javascript, clicking anchor link, clicking normal Html submit button and so on my page is not rendering correctlly .
    In other words, My first GET method/Post method works perfectly for the first time when the page is loaded.
    But when we try to access the page for the second time, although logical work is perfect in bean, I am getting same old page.
    How to resolve this issue?
    or
    Is this Bug of Sun's Implementation of JSF Framework.
    Thanks,
    Sudhakar

    Hi Sudhakar,
    There is a discussion about refreshing a page, Take a look at the below thread
    http://swforum.sun.com/jive/thread.jspa?threadID=55660
    Hope this what you are looking for
    MJ

  • Any way (event) to call Java method after view created in JSF 2.0

    Hi,
    I am using JSF 2.0 Mojarra's implementation.
    I am interested to know if there is a way to call Java methods before and/or after view has been restored.
    I wanted to initialize data for my page in this Java method.
    I could see there is an event class PostRestoreStateEvent added in JSF 2.0. How to use it?
    I tired to use f:event element as below, but it does not work. Can anyone share anyother idea to achieve this behaviour?
    <f:metadata>
    <f:event type="postRestoreState" listener="#{employeeLoadBean.loadAfterRestoreView}"/>
    </f:metadata>
    Regards,
    Kishore K S

    Hi,
    The problem is solved as below.
    <f:metadata>
    <f:event type="javax.faces.event.PostRestoreStateEvent" listener="#{employeeViewEventListener.postRestoreState}"/>
    </f:metadata>
    The above calls the Java method #{employeeViewEventListener.postRestoreState} whenever View has been restored.
    It was not working when shortName of the event (ie., postRestoreState) is given and throwing ClassNotFound exception.
    Regards,
    Kishore K S

  • Can't reference methods in a Bean from a Composite JSF Component.

    I have the following composite component TestCC.xhtml:
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
    xmlns:cc="http://java.sun.com/jsf/composite" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <cc:interface>
    <cc:attribute name="manager" method-signature="java.lang.String helloTest()" required="true"/>
    </cc:interface>
    <cc:implementation>
    Hello #{cc.attrs.manager} !!!!!!!!!!!!!!!!!!!!!
    </cc:implementation>
    </html>
    When I try to call it in a JSFF file:
    <?xml version='1.0' encoding='UTF-8'?>
    <ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:icc="http://java.sun.com/jsf/composite/IchipComponent">
    <icc:TestCC manager="#{viewScope.PatientClinicalBean.helloTest}"/>
    The page crashes at my composite tag with the following message in the console:
    javax.el.ELException: //C:/Documents and Settings/tlam/Application Data/JDeveloper/system11.1.2.3.39.62.76.1/o.j2ee/drs/iCHIP/ViewControllerWebApp.war/WEB-INF/classes/META-INF/resources/IchipComponent/TestCC.xhtml: javax.el.PropertyNotFoundException: //C:/Documents and Settings/tlam/Application Data/JDeveloper/system11.1.2.3.39.62.76.1/o.j2ee/drs/iCHIP/ViewControllerWebApp.war/Patient/Profile/Clinical.jsff @13,86 manager="#{viewScope.PatientClinicalBean.helloTest}": The class 'patient.profile.PatientClinicalBean' does not have the property 'helloTest'.
    But my managed bean does have a public String helloTest() method, as well as other methods that work fine elsewhere in my JSFF page:
    public class PatientClinicalBean{
    String test = "TESTING";
    public String helloTest() {
    return test;
    I have tried this many times with different methods, all with the same result. Yet if my composite component outputs just a string and I enter the expression <icc:TestCC manager="#{viewScope.PatientClinicalBean.test}"/> to access the String test field directly it executes properly. I can't seem to reference any of the methods in PatientClinicalBean from only my composite component, when other method calls work fine in the same JSFF page. All other examples I've seen on the web have no problems doing this the same way I have, am I missing something?!
    Edited by: tnology on 24-Oct-2012 14:13
    Edited by: tnology on 24-Oct-2012 14:14
    Edited by: tnology on 24-Oct-2012 14:16

    What if you change the method in the class like this?
    public String getHelloTest() {
      return test;
    }If you attempt to read a property call abc from a bean, you need to have a method called getAbc(). If you attempt to set a property called abc, you need to have a method called setAbc(...). This is JavaBeans convention.

  • I can't view dataTable in JSF

    Hi, anyone who can help me with java server faces, i want to put data from a resultset to dataTable, i made everithing but my table is not visible.
    My code is:
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core">
    <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
    doctype-system="http://www.w3.org/TR/html4/loose.dtd"
    doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <html>
    <head>
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252"/>
    <title>Consultas</title>
    </head>
    <body><h:form binding="#{backing_Consultas.form1}" id="form1">
    <h:commandButton value="commandButton1"
    binding="#{backing_Consultas.commandButton1}"
    id="commandButton1"
    action="#{backing_Consultas.commandButton1_action}"/>
    </p>
    <p>
    <h:dataTable border="1" var="#{backing_Consultas.dataTable1}"
    id="dataTable1">
    <h:column binding="#{backing_Consultas.column1}"/>
    <h:column binding="#{backing_Consultas.column2}"/>
    <h:column binding="#{backing_Consultas.column3}"/>
    <h:column binding="#{backing_Consultas.column4}"/>
    </h:dataTable>
    </h:form></body>
    </html>
    </f:view>
    <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_Consultas-->
    </jsp:root>
    This es a JSPX page.
    Please any idea
    thanks
    alex

    Try to disable the hardware acceleration in the Flash Player.
    See [[Cannot view full screen Flash videos]]
    Flash "Display settings" window:
    * http://www.macromedia.com/support/documentation/en/flashplayer/help/help01.html

Maybe you are looking for

  • Somewhat complicated nested generics question

    I have a slightly complicated generics question. I have some parameterized code that looks something like: public <T extends MyBaseObject> Map<String,T> loadObjectCache (Class<T> clazz) {     // load objects of type T from somewhere (file, database,

  • New to i-Tunes

    As an ageing non-techno who is venturing slowly into the 21st Century, I require, please, some idiot-proof help and advice! I have just downloaded iTunes and an unclear exactly what or what not I can do, despite the Tutorials. Ideally, I would like t

  • Process chain when to repeat  and when th next process starts automatically

    Hi Friends , I want to know when to repeat a subsequent a process  in process chain and when the subsequent process starts automatically? Hope   u understand my question. Regards,  Pavan

  • Sub-contract without BOM

    Hi How to create sub-contract without BOM..We want to create a subcontract for a customer return finished product .Even this Product have bom.We don’t want to send any components with the FP.We want to send some service materials with this FM.How to

  • Killed Disk Utility Erase Free Space. Now 0 available

    (I erroneously posted this earlier to the Safari forum; posting here again) I ran Disk Utility "Erase free space" on my iMac G5 250GB boot drive (I had about 130GB free). It ran for about 50 minutes, and got to "creating temp file" and then seemed to