Query on MessageTextInput Bean

Hi,
My requirement:
I need a multi line MessageTextInput (which about 5 lines displayed but contains abt 40-50 lines on text, which can be seen by scrolling) where user should not be able to update the text based on the profile option.
I tried setting the following properties:
Disabled : set to True
Result: Text is grayed out and scroll bar is not shown. User not able to scroll thru complete text available in the MessageTextInput.
ReadOnly : set to True
Result: UI changed to StaticStlyedText. Line separators are not shown. Text runs continuously without newline characters.
Is there a way I can achieve my requirement: Multi Line MessageInputText where user is able to scroll thru full content and not able to edit/update/modify..
Thanks,
Satya

Thanks Tapash,
Your solution worked.
I have used OAMessageRichTextEditorBean and set the following properties to make it as plain text multiline text box.
omrtb.setReadOnly(true);
omrtb.setRenderingMode(UIConstants.TEXT_MODE);
omrtb.setAttributeValue(RichTextEditorBeanConstants.SWITCH_MODE_HYPERLINK, BooleanUtils.getBoolean(false));
-Satya

Similar Messages

  • How to implement sql query in cmp bean?

    let's say that i want to join two tables and use grouping, counting and sorting expresion. it is no problem with sql query but what about cmp bean?
    of course i can make one bmp bean or session bean and run directly sql expresion, but then what is the point of using cmp beans?
    thanks
    winnicki

    If yout need post-query for filling descriptive colums (eg. department name in emploees) you should build a view object which includes the descriptive colums by joining the relevent tables

  • Data Warehouse report query using Entity Beans

    I have used the EJB technology on one project, so I am not all that familiar with
    best practices.
    In my new project, I have to produce reports using a query that goes against a
    dimensional database. I am wondering what options I have to run the query and
    extract the results given that the application will run on WebLogic.
    1) Straight JDBC
    2) BMP
    3) CMP (could be a problem because the quety is a join query, but I am not sure
    if WebLogic requires that the query is against a table rather than a view)
    The query is read-only. I am more interested in ease of coding and code management
    rather than application performance at this point because I think the query will
    spend a relatively large time executing on the Oracle database.
    I would like to hear the best practices to be employed in this case. Thanks very
    much!
    Ravi.

    Don't use entity beans for this. Straight JDBC is not perfect either, but it
    is preferable to entity beans for this type of work.
    Peace,
    Cameron Purdy
    Tangosol, Inc.
    Clustering Weblogic? You're either using Coherence, or you should be!
    Download a Tangosol Coherence eval today at http://www.tangosol.com/
    "Ravi Navanee" <[email protected]> wrote in message
    news:3c92693d$[email protected]..
    >
    I have used the EJB technology on one project, so I am not all thatfamiliar with
    best practices.
    In my new project, I have to produce reports using a query that goesagainst a
    dimensional database. I am wondering what options I have to run the queryand
    extract the results given that the application will run on WebLogic.
    1) Straight JDBC
    2) BMP
    3) CMP (could be a problem because the quety is a join query, but I am notsure
    if WebLogic requires that the query is against a table rather than a view)
    The query is read-only. I am more interested in ease of coding and codemanagement
    rather than application performance at this point because I think thequery will
    spend a relatively large time executing on the Oracle database.
    I would like to hear the best practices to be employed in this case.Thanks very
    much!
    Ravi.

  • SQL query  in managed bean

    hi
    i have some idea about setwhereClause() method ..... but in my case i want to use one SQL query (select * from tab )...i dont know how to use ....
    (without view object we cant use setwhereclause() method thatsy i have to use sql statement in managed bean ........)
    thanks in advance

    First of all, you don't want to have any SQL in a managed bean. Managed beans are part of the View layer, and the query should be part of the Model. So what you want to do is add some code to your Model project. So you are trying to do "SELECT * FROM tab". Why not just create a read-only View Object (VO) for the query in the Model (assuming that you are using ADF BC).
    Now as for setWhereClause - what do you need in your where clause? You can add where clauses to the query that defines your VO, without needing to resort to using this method. You can even add bind variables for the where clauses, and just drag the ExecuteWithParams method onto your pages, which will give you a place to set the bind variables before executing the query.
    You can create your own method in the VO's implementation class, in which you may call setWhereClauseParam to gain more control over how the bind variables are set. Then you make the method available as an operation in the data controls by making it an exposed method to the client interface. You can use setWhereClause in such a method if you need to do so, but there are good performance reasons not to do so if a bind variable will do the job. setWhereClause can also set you up for SQL Injection attacks on your application's security.

  • Named query in Entity Bean - Problem with embedded class

    Hello Forum,
    I'm trying to set up a named query in my Entity Bean and I'm unable to get
    it up and running for an embedded class object.
    The class hierarchy is as follows:
             @MappedSuperclass
             AbstractSapResultData (contains dayOfAggregation field)
                     ^
                     |
            @MappedSuperclass
            AbstractSapUserData (contains the timeSlice field)
                     ^
                     |
              @Entity
              SapUserDataThe named query is as follows:
    @NamedQuery(name = SapUserDataContext.NAMED_QUERY_NAME_COUNT_QUERY,
                                query = "SELECT COUNT(obj) FROM SapUserData AS obj WHERE "
                                         + "obj.sapCustomerId"
                                         + "= :"
                                         + SapResultDataContext.COLUMN_NAME_SAP_CUSTOMER_ID
                                         + " AND "
                                         + "obj.sapSystemId"
                                         + "= :"
                                         + SapResultDataContext.COLUMN_NAME_SAP_SYSTEM_ID
                                         + " AND "
                                         + "obj.sapServerId"
                                         + "= :"
                                         + SapResultDataContext.COLUMN_NAME_SAP_SERVER_ID
                                         + " AND "
                                         + "obj.dayOfAggregation.calendar"
                                         + "= :"
                                         + DayContext.COLUMN_NAME_DAY_OF_AGGREGATION
                                         + " AND "
                                         + "obj.timeSlice.startTime"
                                         + "= :"
                                         + "timeSliceStartTime"
                                         + " AND "
                                         + "obj.timeSlice.endTime"
                                         + "= :"
                                         + "timeSliceEndTime")The query deploys and runs except that part:
                                         + "obj.dayOfAggregation.calendar"
                                         + "= :"
                                         + DayContext.COLUMN_NAME_DAY_OF_AGGREGATIONI don't see any difference to the part of the query accessing the timeSlice
    field which is also an embedded class object - I access it in exactly the same way:
                                         + "obj.timeSlice.startTime"
                                         + "= :"
                                         + "timeSliceStartTime"
                                         + " AND "
                                         + "obj.timeSlice.endTime"
                                         + "= :"
                                         + "timeSliceEndTime"The problem is that the complete query runs on JBoss application server
    but on the SAP NetWeaver application server it only rund without the
                                         + "obj.dayOfAggregation.calendar"
                                         + "= :"
                                         + DayContext.COLUMN_NAME_DAY_OF_AGGREGATIONpart - If I enable that part on SAP NetWeaver the server complains:
    [EXCEPTION]
    {0}#1#java.lang.IllegalArgumentException: line 1: Comparison '=' not defined for dependent objects
    SELECT COUNT(obj) FROM SapUserData AS obj WHERE obj.sapCustomerId= :sap_customer_id AND obj.sapSystemId= :sap_system_id AND obj.sapServerId= :sap_server_id AND obj.dayOfAggregation.calendar= :day_of_aggregation AND obj.timeSlice.startTime= :timeSliceStartTime AND obj.timeSlice.endTime= :timeSliceEndTime
                                                                                                                                                                                                 ^I know that this isn't an application server specific forum but the SAP NetWeaver server is the most strict EJB 3.0 and JPA 1.0 implementation I've seen so far so I think I'm doing something wrong there.
    Someone in the SAp forum mentioned:
    The problem here is that you compare an input-parameter with an embeddable field of your entity.
    Regarding to the JPQL-grammer (spec 4.14) you are not allowed to compare
    with the non-terminal embeddable field but with the terminal fields of your
    embeddable. Stating that your embedded class might have the fields
    startTime and endTime your JPQL query might look like this:
    Query q = em.createQuery("SELECT count(obj.databaseId) FROM SapUserData obj WHERE obj.timeSlice.startTime = :startTime AND obj.timeSlice.endTime = :endTime");
    q.setParameter("startTime", foo.getStartTime());
    q.setParameter("endTime", foo.getEndTime());
    q.getResultList();
    This limitation in the JPQL grammar is rather uncomfortable.
    An automatic mapping of the parameter's fields to the terminal fields of your
    embedded field would be more convenient. The same can be said for lists
    as parameter-values which is possible in HQL, too. I think we have to wait
    patiently for JPA 2.0 and hope for improvements there. :-)
    With that help I was able to get it up and running for the timeSlice field but
    I don't see the difference to the dayOfAggregation field which is also just
    another embedded class using an object of a class annotated with
    @Embeddable.
    The get method of the dayOfAggregation field is as follows:
         * Get method for the member "<code>dayOfAggregation</code>".
         * @return Returns the dayOfAggregation.
        @Embedded
        @AttributeOverrides({@AttributeOverride(name = "calendar", /* Not possible to use interface constant here - field name must be used for reference */
                                                column = @Column(name = DayContext.COLUMN_NAME_DAY_OF_AGGREGATION,
                                                                 nullable = false)),
                             @AttributeOverride(name = "weekday",
                                                column = @Column(name = DayContext.COLUMN_NAME_WEEKDAY,
                                                                 nullable = false)),
        public Day getDayOfAggregation() {
            return this.dayOfAggregation;
        }The link to my question in the SAP forum for reference:
    https://www.sdn.sap.com/irj/sdn/thread?messageID=3651350
    Any help or ideas would be greatly appreciated.
    Thanks in advance.
    Henning Malzahn

    Hello Forum,
    got a response in the SAP forum - Issue is a bug in the SAP NetWeaver
    app. server.
    Henning Malzahn

  • Nested EJB QL Query in Entity Bean

    Hi All
    We are using CMP based Entity bean which has name <i>EmployeeBean</i> with a field pSALARY. We want a finder method which return an employee with maximum salary. we are using following Query.
    <b>select object(b) from EmployeeBean  b  where
                        b.pSALARY = (select max(c.pSALARY)  from EmployeeBean c)</b>
    But we validate the query in NWDS but we get following error
    <b>EJB QL statement is invalid. See General User Output View for details.</b>
    General User output view is blank. so we could not analyze the error in this query.
    can anybody tell us what's wrong with this Query. Or else how we should formulate the query in another way so that it gives us required result.
    Thanks in Advance

    Hi
    just try  like this...
    MAX() and MIN() can be used to find the largest or smallest value in a collection of any type of CMP field. It cannot be used with identifiers or paths that terminate in a CMR field. The result type will be the type of CMP field that is being evaluated. For example, the following query returns the highest amount paid for a Job.
    <b>SELECT MAX( job.pSALARY )
    FROM EmployeeBean AS c, IN (c.EmployeeBean) AS job</b>
    The MAX() and MIN() functions can be applied to any valid CMP value including primitive types, strings, and even serializable objects. As you may recall, a CMP field can be a serializable application object that is converted to a binary field and stored in a database. The result of applying the MAX() and MIN() functions to serializable objects is not specified, however, because there is no standardized way of determining which serializable object is greater than another.
    The result of applying the MAX() and MIN() functions to a String is type depends on the underlying data store used. This uncertainty results from problems inherent in String comparisons, which are addressed fully in the section "The Problems with Strings."
    just refer this link also..
    http://www.theserverside.com/articles/article.tss?l=MonsonHaefel-Column5
    Regards
    Kishor Gopinathan

  • Extremely Slow DB Query in Session Bean

    OS: Redhat Linux 6.2
    JVM: Sun's JDK 1.3.0_02
    Weblogic 5.1 SP6
    Oracle 8.1.6
    Hello. I have a container-managed stateless session bean which is
    invoked via a JSP and makes a read-only stored procedure call to
    oracle. This database call, when invoked within the session bean,
    takes over two minutes. When the same code is executed in a test JSP
    pointing to the SAME database, the query takes approximately 2
    seconds. NOTE: when the proc is executed in SQL Plus, I also get
    approx. 2 second response time. Also, I have explicitly disabled
    transactions in the deployment descriptor of the session bean.
    Using the Weblogic Console, and monitoring the session bean, there is
    a transaction commited after the invocation of the method making the 2
    min stored procedure call. It seems as though the Container is
    wrapping the call in a transaction even though I have explicitly
    disabled transactions.
    Any thoughts would be greatly appreciated.
    Regards...

    Can you show me your ejb-jar.xml?
    -- Rob
    Jeremy wrote:
    OS: Redhat Linux 6.2
    JVM: Sun's JDK 1.3.0_02
    Weblogic 5.1 SP6
    Oracle 8.1.6
    Hello. I have a container-managed stateless session bean which is
    invoked via a JSP and makes a read-only stored procedure call to
    oracle. This database call, when invoked within the session bean,
    takes over two minutes. When the same code is executed in a test JSP
    pointing to the SAME database, the query takes approximately 2
    seconds. NOTE: when the proc is executed in SQL Plus, I also get
    approx. 2 second response time. Also, I have explicitly disabled
    transactions in the deployment descriptor of the session bean.
    Using the Weblogic Console, and monitoring the session bean, there is
    a transaction commited after the invocation of the method making the 2
    min stored procedure call. It seems as though the Container is
    wrapping the call in a transaction even though I have explicitly
    disabled transactions.
    Any thoughts would be greatly appreciated.
    Regards...

  • How Can I Execute Sql Query in Managed bean?

    Hi,
    I want to execute sql query in managedbean and get the query result. How can I do?
    Best wishes!

    You can do this by having current Database connection your application is using like this
    public static synchronized DBTransaction getDBTransaction(){
    FacesContext ctx = FacesContext.getCurrentInstance();
    ValueBinding vb = ctx.getApplication().createValueBinding("#{data}");
    BindingContext bc = (BindingContext)vb.getValue(ctx.getCurrentInstance());
    DataControl dc = bc.findDataControl("AppModuleDataControl");
    ApplicationModuleImpl am = ((ApplicationModuleImpl)(ApplicationModule)dc.getDataProvider());
    return am.getDBTransaction();
    and then user DBTransaction object to create Statement and PreparedStatement you can find those in java doc.

  • Query on Java Bean Usage in R12 Forms

    Hi,
    I have a scenario,
    There is a Java bean which has been working on Oracle 11i Forms for quite a while now.The bean is used to display two text fields which are populated on selecting a file using the Browse button on the right hand side.
    We have recently migrated this form to R12 and from then, the textfields dissappered.
    I have tried multiple ways, tried changing the background and foreground for the canvas, bean, fields.. I compiled the Bean using Java 1.5, so as to make it compatible to R12, but have not been able to make the fields visible.
    Anyone who could give me more insight in this regard would be of great help!!!
    Regards,
    Prathima.

    Following is the whole log :
    MSBeanArea is the name of my Java Bean.
    I have put some messages in my Java class in order to check if there is any where it is failing, but as you can see, there is no error raised :(
    ====================================================================================
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/cedarhr.gif
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    Forms Applet version is : 10.1.2.3
    Loaded image: jar:http://gmsuna.cedarhr.com:7854/forms/java/frmall.jar!/oracle/forms/icons/frame.gif
    Entered MSBeanArea
    In msbean class..
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/hr.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/datalink.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/cnc_launch.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/dms.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tas.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/hsr.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/system.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/chg_pass.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/re_conn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/discover.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasremid.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/k_query.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/k_help.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Find.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/keys.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/save.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/list.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/addrow.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/k_print.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/delrow.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/exit.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbup.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbdwn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbscrup.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbsdwn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/up.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/down.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbup.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbscrup.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbsdwn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbdwn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasmeals.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasresce.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasmodr.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasnomlt.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasplmts.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasevent.gif
    Entered MSBeanArea
    In msbean class..
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/k_query.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/k_help.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Find.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/keys.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/save.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/list.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/addrow.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/k_print.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/delrow.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/exit.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbup.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbdwn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbscrup.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbsdwn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/up.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/down.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasqlrec.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasqlwiz.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasmodr.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasunkwn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasdeldt.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasplmts.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasaudit.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tastnote.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasevlog.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/taslettr.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasplcpy.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasaccom.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/k_query.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/k_query.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasmeals.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasresce.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasmodr.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasnomlt.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasplmts.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasevent.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/cedarhr.gif
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    Forms Applet version is : 10.1.2.3
    Entered MSBeanArea
    In msbean class..
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/hr.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/datalink.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/cnc_launch.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/dms.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tas.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/hsr.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/system.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/chg_pass.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/re_conn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/discover.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasremid.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/k_query.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/k_help.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Find.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/keys.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/save.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/list.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/addrow.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/k_print.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/delrow.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/exit.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbup.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbdwn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbscrup.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbsdwn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/up.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/down.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbup.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbscrup.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbsdwn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbdwn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasmeals.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasresce.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasmodr.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasnomlt.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasplmts.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasevent.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/cedarhr.gif
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    Forms Applet version is : 10.1.2.3
    Entered MSBeanArea
    In msbean class..
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/hr.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/datalink.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/cnc_launch.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/dms.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tas.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/hsr.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/system.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/chg_pass.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/re_conn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/discover.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasremid.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/k_query.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/k_help.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Find.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/keys.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/save.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/list.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/addrow.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/k_print.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/delrow.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/exit.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbup.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbdwn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbscrup.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbsdwn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/up.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/down.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbup.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbscrup.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbsdwn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbdwn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasmeals.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasresce.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasmodr.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasnomlt.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasplmts.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasevent.gif
    Entered MSBeanArea
    In msbean class..
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/k_query.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/k_help.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Find.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/keys.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/save.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/list.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/addrow.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/k_print.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/delrow.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/exit.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbup.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbdwn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbscrup.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/orbsdwn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/up.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/Null.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/down.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasqlrec.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasqlwiz.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasmodr.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasunkwn.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasdeldt.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasplmts.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasaudit.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tastnote.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasevlog.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/taslettr.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasplcpy.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/tasaccom.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/k_query.gif
    Loaded image: http://gmsuna.cedarhr.com:7854/forms/java/k_query.gif
    ====================================================================================
    Regards,
    Prathima.

  • Query on XML Beans replacing Castor Java -XML Bindings

    Hello,
    We use Castor XML Framework for today Java - XML bindings and were looking for XML Beans replacement.
    One of the key problems we face in using XML (maybe a flawed design) is we create XSD for our applications and run Castor to generate Java Classes as Libraries (XMLFramework.jar).
    Applications are compiled with these Java libraries and Castor is used to Marshal the Java Object as XML Document when invoking a remote API and at the receiving side it is used to unmarshal back the XML document to Java Object.
    Major issues we have seen is that if any XSD (that defines application ICD) changes, we need to re-generate Castor Java classes (new XMLFramework.jar) and re-compile applications that were using these classes with new JAR files..... Thus for small XSD changes the impact is in lot of applications (where an application is an EAR deployed on WLS)
    Does XMLBeans help here that I can change XSD without changing all the end-points that use Classes generated out of these XSDs (when additing mandatory or optinal elements) ?
    Or there is a flaw in which we have used the Java-XML binding framework like Castor and XMLBeans do not help much ?

    Can someone please suggest on how I can go about
    converting an XML file into word format using Java
    ?How about POI?

  • Portal time out with large jdbc query in JSP bean

    Hi,
    My JSP portlet always times out while waiting to complete two large JDBC queries. The error shown in my jserv.log file is:
    [28/03/2002 12:41:51:221 GMT+08:00] page/Fetching timed out for an Unknown Reason. Killing fetcher name=content-fetcher2 label=174 url=http://mephistopheles.au.oracle.com/servlet/agcharts time=120633
    [28/03/2002 12:43:10:595 GMT+08:00] page/UncaughtException in thread name=content-fetcher2, starting a new fetcher after exception
    java.lang.ThreadDeath
    Is there some particular settings I can modify to prevent the content fetcher from timing out? Cheers

    Thanks. The charts portlet now can be delayed up to the required ~10mins before returning data from the large query. This works in conjunction with changes in the directives/parameters for Jserv and httpd(Note:180548.1)
    Shankar,
    Normally, you can increase the time out in the portlet tag of the provider.xml file. The timeout is in seconds, you should also increase the provider timeout. This is done in the provider registration screen.
    <timeout>60</timeout>
    <timeoutMessage>My Portlet Timed Out</timeoutMessage>
    Please note that if you set the timeout too high and your portlet is really not coming up, you page will wait the 60, 90, 120, etc seconds for the portlet to timeout, so be careful will portlet and provider timeouts.
    Sue

  • Query regarding MessageDriven Bean

    Hi ,
    I am newbie to MessageDrivenBeans .
    Hi i have seen two examples of MDB .
    The First One
    @MessageDriven(activationConfig =
    @ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue"),
    @ActivationConfigProperty(propertyName="destination", propertyValue="queue/mdb")
    })The second :
    @MessageDriven(ejbName="CalculatorBean",destinationType="javax.jms.queue",destinationJndiName="queue/mdb")
    Please tell me what is the correct way ?? And what is ejbName Attribute and what should be the value passed to it .

    RaviKIran wrote:
    Hi ,
    I am newbie to MessageDrivenBeans .
    Hi i have seen two examples of MDB .
    The First One
    @MessageDriven(activationConfig =
    @ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue"),
    @ActivationConfigProperty(propertyName="destination", propertyValue="queue/mdb")
    })The second :
    @MessageDriven(ejbName="CalculatorBean",destinationType="javax.jms.queue",destinationJndiName="queue/mdb")
    Please tell me what is the correct way ?? And what is ejbName Attribute and what should be the value passed to it .The first one... Seems normal with some vendor specific attribute (destination) which specifies the name of the QUE in that scenario (mst match the name of the resource name when the QUE was created before it was given to the message producer). From what I understand there is no norm an and I have read that the MDB will normally use .xml to configure this with the <mesage-destination-link> attribute tag.
    EJB name is the name given to this bean and can be used when this bean is looked up.

  • All Caps on a MessageTextInput Bean

    Hi,
    I have a requirement to dynamically make all the characters entered in a TextInputBean to be caps. For example if the user type 'a' it should appear as 'A' in the text item. Any thoughts?
    Thanks.

    I am trying the same, but it doesnt get converted to caps in UI, but it prints in jdev console...
    also when I do commit, it doesnt save as upper case in tables either.... Any ideas ?
    in PFR - catch the fireaction -
    if("checkRevisionNumber".equals(pageContext.getParameter(EVENT_PARAM)))
    if ((pageContext.getParameter("Revision") != null) && (!("".equals((pageContext.getParameter("Revision")).trim()))))
    revNumber = pageContext.getParameter("Revision");
    revNumber=revNumber.toUpperCase();
    System.out.println("rev number after putting the rev number" + revNumber); --prints upper case
    also before commiting the data i convert it to uppercase...
    revNumber.toUpperCase();
    am.getOADBTransaction().commit();

  • Query with bind variable, how can use it in managed bean ?

    Hi
    I create query with bind variable (BindControlTextValue), this query return description of value that i set in BindControlTextValue variable, how can i use this query in managed bean? I need to set this value in String parameter in managed bean.
    Thanks

    Put the query in a VO and execute it the usual way.
    If you need to, you can write a parameterized method in VOImpl that executes the VO query with the parameter and then call that method from the UI (as a methodAction binding) either through the managed bean or via a direct button click on the page.

  • Java bean & SQL Query

    Hi;
    I'm facing problem in running my application on different relational databses b'cos i wrote all my queries for Oracle 8i on Win-NT environment.& now i've to deploy the application on the Linux with MS-SQL database.
    How to write sql query in java beans so that it run on all the relational databases without making changes to the query in every bean. OR
    How to get the compatible query for different databases?
    Thanks in advance.

    Hey Kalpesh
    If you have just the Connection process encapsulated in the Bean, then you can use it as a Singleton object.
    Just take a look at the following snippet
    public static getConnection(String db) {
    if (db.equalsIgnoreCase("ORACLE")) {
    if (con != null) {
    return con;
    } else {
    con = DriverManager.getConnection("jdbc:oracle:thin:@"+IP+", " + user + ", " + password);
    } else if (db.equalsIgnoreCase("SQLSERVER")) {
    if (con != null) {
    return con;
    } else {
    con = DriverManager.getConnection(sqlServerDBConnectionString);
    This way you can reduce the number of live connections.
    In the JSP, you can access this bean as:
    <jsp:useBean id="mb" class="MyBean" scope=whatever/>
    Connection con = mb.getConnection("ORACLE");
    or
    Connection con = mb.getConnection("SQLSERVER");
    This way, you can meet your objective.
    Check it out.

Maybe you are looking for