Customized JSF clientid question

Dear all,
In the jsp jsf codes, I have the following customized component
<dojo:dojoComboBox dojotype="dijit.form" binding="#{backing_GWANADD.dojoComboBox2}" id="dojoComboBox2"/>
<a4j:commandButton binding="#{backing_GWANADD.commandButton1}"
id="commandButton1" action="backing_GWANADD.makeResult" reRender="dojoComboBox2" value="submit"/>
where dojo:dojoComboBox is customized components and a4j is the ajax4jsf component (command button).
Please pay attention on a4j tag, attribue "reRender" was used to urge the component with id dojoComboBox2 to re-render data from backing bean.
When I run the application, there is error that the id "dojoComboBox2" could not be found, showing the id of customized control is not dojoComboBox2.
When I change the id from dojoComboBox2 to id0, it works. How can I change the ID from id0 to dojoComboBox2 ?
If the id is not change from _id0 to the id that I set, I am not able to make use of the component id to do something.
So, change customized jsf id is important to me. How to do it? Thank you.

help................

Similar Messages

  • Force jsf clientid

    Hi,
    I created a custom JSF 1.1 component. Just like the Tomahawk component set I would like to be able to force the clientId to be the value I specify in the id attribute of my custom tag using an extra 'forceId' attribute. This works fine when I don't use valuebinding for this id attribute. But it seems that valuebinding is not allowed for the id attribute because it is ignored when I use a value like 'xxx#{yyy}'. To fix this I assumed that I needed to modify my setProperties() method of my JSF UIComponentTag. But when using Facelets this class is never called: I guess because Facelets uses it's own TagHandler?
    Why does Facelets ignore the valuebinding used in the id attribute?
    Does anyone have a suggestion to deal with this problem? Do I have to create a custom TagHandler?
    Thanks in advance!
    Kind regards,
    Dirk

    Hi,
    suppose I have the following HTML rendered:
    <tr>
    <td>
    <input type="radio" id="form:tab1:tabSubForm1:choices:0:mc_choice1308" name="choices_question608" value="1308">
    </input>
    </td>
    <td>
    <img src="/Fysiquest/protected/documentServlet?id=12105" />
    </td>
    </tr>
    <tr>
    <td>
    <input type="radio" id="form:tab1:tabSubForm1:choices:0:mc_choice1309" name="choices_question608" value="1309">
    </input>
    </td>
    <td>
    <img src="/Fysiquest/protected/documentServlet?id=12107" />
    </td>
    </tr>
    if I want the radiobutton to be selected when the user clicks the image it seems more handy to me to only specify 'mc_choice1308' or 'mc_choice1309'. My page contains multiple tabs (cfr 'tab1') and I even can't render the '1308' or '1309' after the 'mc_choice' because JSF EL for the id attribute is not working. So, it does not matter if I just want 'mc_choice1308' or 'form:tab1:tabSubForm1:choices:0:mc_choice1308': I just want the JSF EL to work with the id attribute.
    Kind regards,
    Dirk

  • Custom JSF component with custom value datatype

    I've created a simple custom JSF component with a decode, encodeBegin as follows:
    public void decode(FacesContext context) {
        Map<String, String> requestParameters = context.getExternalContext().getRequestParameterMap();
        String clientId = getClientId(context);
        String value = requestParameters.get(clientId);
        setSubmittedValue(value);
        super.decode(context);
    public void encodeBegin(FacesContext context) throws IOException {
        ResponseWriter response = context.getResponseWriter();
        String clientId = getClientId(context);
        response.startElement("input", this);
        response.writeAttribute("name", clientId, "id");
        response.writeAttribute("type", "text", null);
        String value = (String) getValue();
        if (null != value) {
             response.writeAttribute("value", value, "value");
        response.endElement("input");
    }With also:
    setRendererType(null);as part of the constructor.
    This component works just fine both inside and outside of a dataTable component, as expected.
    What I would like to do now is to replace the String value datatype with a custom class, for example MyDataType. For this I do:
    public void decode(FacesContext context) {
        Map<String, String> requestParameters = context.getExternalContext().getRequestParameterMap();
        String clientId = getClientId(context);
        String value = requestParameters.get(clientId);
        MyDataType myData = (MyDataType) getValue();
        MyDataType newData = (MyDataType) myData.clone();
        newData.setValue(value);
        // copy old object and only update the changed field of this object
        setSubmittedValue(newData);
        super.decode(context);
    public void encodeBegin(FacesContext context) throws IOException {
        ResponseWriter response = context.getResponseWriter();
        String clientId = getClientId(context);
        response.startElement("input", this);
        response.writeAttribute("name", clientId, "id");
        response.writeAttribute("type", "text", null);
        MyDataType value = (MyDataType) getValue();
        if (null != value) {
             response.writeAttribute("value", value.getValue(), "value");
        response.endElement("input");
    }Now this works perfect outside of a dataTable component, but inside it fails to update the property on the BB.
    Are there somewhere examples on how to properly use custom datatypes as values for UIInput components? Also how to only partially update the value (like I do, I only want to update the value field of the MyDataType object)

    Even if I encode the entire MyDataType via hidden input elements and decode it again (i.e. not using a cloned getValue) it's still not working side a dataTable.
    Could it have to do something with me using Facelets?

  • YUI Tabs with Custom JSF

    Has anyone ever done anything with YUI Tabs and custom JSF presentations? I'm having an issue where a YUI dataSrc'd tab will not load in my JSF page.
    Here are some contextual details...
    I have the following directory structure configured:
    - customJSP
    -- proposal.jsf
    - webResources
    -- js
    --- proposal.js
    -- includes
    --- testInclude.jsf
    In proposal.jsf, I load proposal.js using a webResource tag - <script type="text/javascript" src="<fuego-type-lib:webResources relativePath='js/proposal.js' />"></script>. It loads fine.
    In proposal.js, I have a YUI tab component that I want to load another page -
    var tabs = new YAHOO.widget.TabView();
    tabs.addTab(new YAHOO.widget.Tab({label: '<span class="tabTitle"> <br />Tab 1</span>',content: 'Loading... Please wait.',dataSrc: '<jsp:include page="<fuego-type-lib:webResources relativePath="includes/testInclude.jsf" />" />',cacheData: false}));
    I have tried to include testInclude.jsf using <% @include file="<fuego-type-lib:webResources relativePath="includes/testInclude.jsf" />". I even moved all files into the same directory and used straight relative paths, e.g. <% @include file="testInclude.jsf' %> and <jsp:include page="testInclude.jsf" />.
    testInclude.jsf looks like this:
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="jsf-html" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="jsf-core" %>
    <%@ taglib uri="http://fuego.com/jsp/ftl" prefix="fuego-type-lib" %>
    <%@ taglib uri="http://fuego.com/jsf/components" prefix="fuego-component" %>
    <div id="summaryTabContent" class="tabContent">
    This is a test page that should be displayed as an include.
    </div>
    All I see when I access this tab is the, "Loading... Please wait," message.
    I know YUI uses AJAX to display the dataSrc'd tab content. Any thoughts?

    I discovered the issue. It has to do with what YUI expects for the path of dataSrc'd pages. It expects an escaped path, e.g. ..//path//to//file which the webResource tag doesn't render properly. I ended up hard-coding the path to the file as ..//webRoot//webResources//includes/testInclude.jsf. It works now; however, the question becomes, is there any issue caused by hard-coding the path to the file in this manner?

  • How to add properties to a custom JSF component?

    Hello, everybody!
    I've just developed my first custom JSF component. It's a data pager and it is working pretty well. But now I want to be able to use some of it attributes in my backing beans at runtime. I mean, I want to bind it to component in the JSF page. It already has a binding attribute in the tld file, but I want to be able to accesss two values that the renderer of my custom component calculate inside it, which would relieve me from calculating these values manually in the backing beans. So, I would like to know how to make these values external to the component.
    By now this is my custom pager class:
    import javax.faces.component.UICommand;
    public class UIPaginadorDados extends UICommand
    }You can see that it has no logic because all the logic is in the renderer class:
    import javax.faces.render.Renderer;
    public class PaginadorDadosRenderer extends Renderer
        // logic here
    }As I said I want to be able to do the following in my backing beans:
    private UIPaginadorDados pager = new UIPaginadorDados();
    // and later...
    pager.getCurrentPage();
    pager.getPageCount();In the JSF page:
    // I already can do this, because I have a binding attribute
    <urca:paginadorDados binding="#{backingBean.pager}" />I suppose that I'll have to create the properties getCurrentPage() and getPageCount() in the component class, UIPaginadorDados, but I don't know how to get the values to the properties from the renderer class. I don't even know if this is how I should do it.
    So I would appreciate a lot your help about this subject.
    Thank you.
    Marcos

    Marcos_AntonioPS wrote:
    RaymondDeCampo wrote:
    I neglected to mention: do not forget to implement the methods in StateHolder to preserve the properties you added to your component.Hello, Raymond. Could you elaborate a little more on that? If you could give a short example, it would be helpful.
    MarcosNo problem. I have already found out how.
    Thank you very much, Raymond.
    Marcos

  • Problem Adding Custom JSF Components to Oracle JDeveloper 10g (10.1.3) Prev

    I'm having a problem on Adding Custom JSF Components to Oracle JDeveloper 10g (10.1.3) Preview (http://www.oracle.com/technology/products/jdev/101/collateral/101/adffaces/howto_customcomponents.html)
    The step 1 of 5 isn't visible for me and I don't see the "Install from local file" option to select the adf-faces-bundle.zip from my file system. The OTN check for updates don't prove the ADF Faces...
    What may I do?

    And...
    If "Check for Updates Wizard" is not launched, you can try to set LANG.
    see: 10.1.3 Can't not launch Update Wizard in Japanese environment.
    10.1.3 Can't not launch Update Wizard in Japanese environment.
    Thanks.
    Takuya Ono

  • Simple custom JSF table

    Could somebody point me to a complete example of a custom simple JSF table component?
    I don’t want special effects; I look for pedagogical code that teaches appropriate way of construct a custom JSF table, from beginning to end.
    thanks!

    Pedagogical code? :)
    Explore the source code of any open source UIData components.

  • Creating a custom JSF Component

    Hi,
    I am trying to create a custom JSF Component. My ultimate goal is to pass a bean to my custom component and have the component render some HTML output based on the info contained in the bean. Before I attempt that I am trying to get a simple custom component to just work. This component is based on the tutorial found here: http://www.jsftutorials.net/components/index.html
    This tutorial just creates a component that outputs a <div> tag around the body contents of the custom component.
    To keep this short I have done the following items from the tutorial link above:
    1) I have created the tld file defining the tag class, name, uri and shortname
    2) I have also created the tag class called TickerTag.java along with the component class UITicker.java. These classes are straight copy-and-paste jobs from the tutorial link and compile fine.
    3)My faces-config.xml file has the proper component definition of
    <component>
    <component-type>ticker</component-type>
    <component-class>ticker.UITicker</component-class>
    </component>
    This was the easy part. The example then goes on to use the custom component in a JSP page. I managed to get the custom component to work in a JSP page BUT my problem is getting the custom component to work in an XHTML file.
    I thought all I had to do was define an xml namespace using the uri from my tld file like so:
    Note: My uri is www.fubar.com/tags and is defined in the tld file.
    <html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:t="http://myfaces.apache.org/tomahawk"
    xmlns:u="http://www.fubar.com/tags">
    I then try to use the tag like so <u:ticker> <f:verbatim>Hello JSF Component</f:verbatim></u:ticker>
    I am expecting the following output: <div>Hello JSF Component
    </div>
    but instead I get
    <u:ticker>Hello JSF Component</u:ticker>
    It seems the tag is not even processed. This is my first jump into custom components. I have done custom JSP tags in the past but I never tried to display them on an XHTML page.
    If you are wondering why I am using XHTML pages, this was setup a while back by a previous developer. Changing everything to a JSP would take a long time and probably break some stuff I am not aware of yet. As such the web.xml file of this JSF web app has the following:
    <context-param>
    <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
    <param-value>.xhtml</param-value>
    </context-param>
    So all *.jsf files are processed and sent to the corresponding .xhtml file.
    I have looked up creating custom components on google and every last example uses their newly created components in a jsp file. No XHTML uses so far.
    Below are my tld files and xhtml file if that helps:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
    <taglib>
    <tlib-version>1.0</tlib-version>
    <jsp-version>1.2</jsp-version>
    <short-name>u</short-name>
    <uri>http://www.fubar.com/tags</uri>
    <tag>
    <name>ticker</name>
    <tag-class>ticker.TickerTag</tag-class>
    <body-content>JSP</body-content>
    </tag>
    </taglib>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:t="http://myfaces.apache.org/tomahawk"
    xmlns:u="http://www.fubar.com/tags">
    <html>
    <head>
    <title>Show Custom Component</title>
    </head>
    <body>
    <f:view>
    <u:ticker> <f:verbatim>Hello JSF Component</f:verbatim></u:ticker>
    </f:view>
    </body>
    </html>
    Any suggestions/help are much appreciated,
    Nick
    </div>

    Thanks Ray. I'll take a look at that site.
    I managed to figure out my problem. I never created a .taglib.xml file that reference the component I defined in the faces-config.xml file. Once I did that everything work perfectly.
    I managed to use this forum post as a guide.
    http://osdir.com/ml/java.facelets.user/2006-12/msg00042.html
    I hope this helps anyone else.
    Nick

  • Create a custom JSF component

    Hi,
    I want to create a custom JSF component. I've setup a new application containing 2 projects:
    - a 'components' project, containing all the custom components
    - a 'view' project, to test the created custom components.
    There is dependency between the components project and the view project. In the view project, I added the
    the Tld, in order to use my components in the project.
    From the component palette, I can drop a component onto a .jspx page but after running the page, no output
    is printed onto the screen. The HTML source code only contains my 'tag-name' (eg: <ctb:mytag/>)
    Am I doing something wrong?
    UIComponent:
    import java.io.IOException;
    import javax.faces.component.UIComponentBase;
    import javax.faces.context.FacesContext;
    import javax.faces.context.ResponseWriter;
    public class BasicComponent extends UIComponentBase {
        public String getFamily() {
            return "BasicComponent";
        public void encodeBegin(FacesContext context) throws IOException {
            ResponseWriter out = context.getResponseWriter();
            out.write("Hello World");
    }Tag
    import javax.faces.component.UIComponent;
    import javax.faces.webapp.UIComponentTag;
    public class BasicComponentTag extends UIComponentTag {
        public String getComponentType() {
            return "BasicComponent";
        public String getRendererType() {
            return null;
    }Tld entry:
      <tag>
        <name>BasicComponent</name>
        <tag-class>BasicComponentTag</tag-class>
        <body-content>JSP</body-content>
      </tag>Thanks in advance,
    Koen Verhulst

    The body tag should be as follows
    <bodycontent>JSP</bodycontent>
    but the JSP will not work. Here is the file:
    <?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"
    xmlns:af="http://xmlns.oracle.com/adf/faces"
    xmlns:afh="http://xmlns.oracle.com/adf/faces/html"
    xmlns:cust="http://xmlns.oracle.com/adf/faces/customizable"
    xmlns:cf="/WEB_INF/helloWorldLib.tld">
    <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>List of Values</title>
    </head>
    <body><h:form>
    <cf:jsfhello hellomsg="This is it" />
    </h:form></body>
    </html>
    </f:view>
    </jsp:root>
    Edited by: bongo2 on Oct 28, 2008 2:58 PM

  • Custom JSF Component tags ignored after converting to Facelets layout

    I am currently using JDeveloper 10.1.3.3.
    I have a project consisting of .jspx pages. These pages mainly use components from ADF faces core. I also created my own custom JSF component that I use in several of these pages.
    Then, I needed to use Facelets so that I could apply a standard layout to all my .jspx pages. I looked at all the tutorials, and I created a layout.xhtml for my .jspx pages to use. This worked great for my .jspx pages that don't have my custom JSF component.
    Now, when I run my page with my custom component <img:newimage ...etc >
    the tag is ignored and it appears in the page's source as is when it should render as <img.src=...etc>. Attributes of newimage are changed on the page appropriately like width and height, but my component's tag, component, and servlet java files are never accessed.
    How can I fix this? Please help!
    Thanks.

    Hi,
    did you post this issue to the Facelets open source site ? Sounds like an issue with using Facelets
    Frank

  • Question about creating Custom JSF form tag and renderer

    Is it possible to build a custom form tag in JSF and have it replace the standard jsf form tag. Are there any potential issues with child forms or anything else.
    I created the following
    - custom form component class that extends javax.faces.component.UIForm (the only changes I made was to change the value of the COMPONENT_TYPE attribute and change the value for renderer type)
    - custom form renderer class that extends HtmlBasicRenderer and I made changes to the encodebegin method and encrypt the value of the id and action url)
    - custom form tag class that extends UIComponentELTag ( I did not make any changes here)
    - tld for my custom form tag
    - created an entry in faces-config.xml of my web-app for my custom form tag
    Are there any issues with the above.
    Is there something I should do in addition.

    In theory you should be fine. Some of the open source libraries either swap out the renderer for the standard h:form component or supply their own form components. You could look at their code for reference if need be.

  • Trying to custom JSF created with NetBeans 5.5

    Hello,
    I'm trying to create an enterprise application using JSF new technology. I have find an easy way to do this with NetBeans 5.5 with SJSAS 9.0.
    I have an Apache Derby database connected and configurated with my enterprise application. I have created the Entity Classes from this database. JSF pages from Entity Classes are generated and persistence unit is configured successfully. All this steps had maked using NetBeans methods. I have feel a lot of tutorials and guides.
    When I play the enterprise application, a list of classes appears and you can obtain a list of the objects loaded into database of the selected class. When you have obtained this list of objects, you can create a new object or database row, you can view data of a selected object and finally edit this data.
    OK, now I would like to custom this JSF structure created with NetBeans. For example, I would like to call New.jsp page from any JSF class, from index.jsp. Always this error appears:
    java.lang.IllegalStateException: No FacesContext is available to process this request. This is most likely due to the request being sent to the wrong path.
    The same error I have obtained trying to copy-paste code from a JSF Page generated with NetBeans, the same exception appears only pasting this pice of code:
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JSP Page</title>
    </head>
    <body>
    <f:view>
    <h1><h:outputText value="JavaServer Faces" /></h1>
    </f:view>
    </body>
    </html>
    A way to solve this exception is using a JSF configuration. I have look for info about JSF configuration but I don't know how to configure faces-config.xml file. It seems is file where are configurated JSF enviroment: converted, managed beans and navigation rules are configurated by NetBeans.
    Could you please help me to custom this JSF NetBeans code?
    Or a tutorial or guide where JSF NetBeans 5.5 code is used with an enterprise application SJSAS 9.0 and a Apache Derby database.
    I have look for any example or possible solution during weeks but, I can't find anything that I can use to custom NetBeans code. All examples are too basic and never use an enterprise application.
    Thank you a lot!
    Kind regards,
    Ricard

    Thank you for reply.
    The web.xml configuration file is configured by NetBeans:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
    <context-param>
    <param-name>com.sun.faces.verifyObjects</param-name>
    <param-value>false</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>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
    </context-param>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>
    30
    </session-timeout>
    </session-config>
    <welcome-file-list>
         <welcome-file>
    index.jsp
    </welcome-file>
    </welcome-file-list>
    </web-app>
    I think all info in the first post is necessary to explain my problem.
    Thank you to offer me a solution but, I don't understand you and I think there is no solution for my question:
    I would like to create a JSP like New.jsp created by NetBeans using JSF but, I won't to use New.jsp. How I can configure my enterprise application to use this new file?
    I'm sorry for my english, I explain better I know.
    Anyone understand my question? May you offer an example or guide or tutorial about this?
    Thank you!

  • Custom report layout question...can't find any answers anywhere

    I am trying to build a report in Portal, using the custom report layout. The report displays like so, before I do any customization:
    COLUMN1 COLUMN2 COLUMN3
    COLUMN1 COLUMN2 COLUMN3
    COLUMN1 COLUMN2 COLUMN3
    COLUMN1 COLUMN2 COLUMN3
    where COLUMN1 is the same value, always per report; COLUMN2 and COLUMN3 vary.
    What I want is:
    COLUMN1
    COLUMN2 COLUMN3
    COLUMN2 COLUMN3
    COLUMN2 COLUMN3
    COLUMN2 COLUMN3
    In the report layout editor, Body section, this is what I see:
    <TD ALIGN="LEFT"><#COLUMN1.FIELD#></TD>
    <TD ALIGN="LEFT"><#COLUMN2.FIELD#></TD>
    <TD ALIGN="LEFT"><#COLUMN3.FIELD#></TD>
    so #COLUMN1.FIELD# must be some kind of array, but I am not finding any documentation anywhere on how to reference the individual values. All I need is the very first value of the COLUMN1 variable. Once I have that value, I can put it where I need it, but I can't get at that value, just the array.
    I have searched portal center, the app server documentation, html documentation. I have googled everything I could think of, but came up with nothing. I found a similar question on this forum, but no one responded with an answer. Any help would be greatly appreciated.

    Helen,
    The best way for your case is to use a content folder and customize it whichever way you like.
    however, your question is about reports. the problem in reports is this that you have to use just one single query and the layout of the results of this query are displayed in a peculiar way.
    anyway. something similar but not exactly the same as what you wanted do is the following.
    use a query like the following: (with a union in between)
    SELECT COLUMN1,NULL , NULL ,NULL ,NULL
    FROM my_source_table
    WHERE myCriteria LIKE 'SoAndSo%'
    UNION
    SELECT NULL,COLUMN2 , COLUMN3, COLUMN4, COLUMN5
    FROM my_source_table
    WHERE myCriteria LIKE 'SoAndSo%'
    ---------- Now, have the following codes in the layout segments:
    <!--- header --->
    <table border="0" cellpadding="1" cellspacing="1" width="20%" align="center">
    <!--- body --->
    <tr align="center">
    <td><table border="0" cellpadding="1" cellspacing="0" width="30%" align="center">
    <tr align="center">
    <TH><#COLUMN1.FIELD#></TH>
    </tr>
    </table>
    </td>
    <TD class="report_cell" ALIGN="LEFT"><#COLUMN2.FIELD#></TD>
    <TD class="report_cell" ALIGN="LEFT"><#COLUMN3.FIELD#></TD>
    <TD class="report_cell" ALIGN="LEFT"><#COLUMN4.FIELD#></TD>
    <TD class="report_cell" ALIGN="LEFT"><#COLUMN5.FIELD#></TD>
    </tr>
    <!--- footer --->
    <TR><TD></TD></TR>
    this should produce a report with a table structure (you may see the whole if you give BORDER="1" in the main table tag). Within this table, the first column of the first row should be showing top-leftmost column value once (COLUMN1 value) and then the next rows would show last four column values as a table block on the right-bottom part.
    with kind regards,
    naqvi

  • Toolbar Custom Control Ring question

    Hi.  This is probably a dumb question, but how do I add items to a ring (kRing) toolbar item when using the Toolbar Custom Control (toolbar.fp) in CVI 2010?  Thanks.
    Solved!
    Go to Solution.

    Interesting.  I take it that the toolbar items are actually just standard control types and once I have the toolbar's panelhandle and control ID I can manipulate the items as controls with the standard user interface library functions (within reason of course)? 
    In any case, thanks for the help.  That worked perfectly.

  • Exception handling in custom JSF components

    Hi,
    I’m trying to develop a JSF custom component, ‘intended for professional use’ ;-)
    I want to ask you for a definitive and solid way to handling exceptions in the encode/decode methods.
    JSF books don’t say too much about that.
    For example, if your code may produce an ArrayIndexOutOfBoundsExceptions, how will you handle it? Will you use FacesException, JSFException, JSPException, ServletException, or what?
    I find two interesting discussions concerning this, but I want to hear expert voices:
    http://forums.sun.com/thread.jspa?forumID=427&threadID=528752
    http://forums.sun.com/thread.jspa?forumID=427&threadID=528227
    Thanks!

    You should in fact never explicitly catch RuntimeExceptions or Errors, unless you have a really, really good excuse. RuntimeExceptions are a sign of a "developer error" and needs to be bugfixed by just adding solid prechecks, so let them go. Errors are in any way unrecoverable, so let them go as well.
    To avoid ArrayIndexOutOfBoundsException just add a precheck on the array length and so on.

Maybe you are looking for