Data tags with Web beans

Hello,
I have a problem : I submit a form which create a new record (made with data tags).
After the commit, the RowsetBrowser isn't refreshed. So you can't see the new record!
The release mode is Stateful on each page with data tags.
On the RowsetBrowser page, I set
setReleaseApplicationResources(false)
Could you help me?
thanks
Christophe

<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Juan Oropeza ([email protected]):
Can you post your pages? <HR></BLOCKQUOTE>
I finaly found my mistake. I didn't set the same ID to the WB and the data tags.
thanks
Christophe
null

Similar Messages

  • Binary data problem with web services on JRockit but not Sun JDK

    I have a problem with binary data in SOAP and JRockit
    (jrrt-3.0.0-1.6.0-linux-x64.bin) . I have an set of web services based
    on EJB 3.0 which return images as byte arrays inside a SOAP envelope
    to be consumed by .NET 2 services. The host app server is Oracle
    Application Server 10.3.1 on RHEL Linux update 4, on 64 bit Xeon 5500
    series HP blade hardware.
    While most images are fine most of the time, one particular image
    gives this message when being consumed in the .NET client:
    The '■' character, hexadecimal value 0x1F, cannot be included in a
    name. Line 2, position 380038.
    The MSDN suggests that this is usually caused by non-escaping of reserved XML characters like < but this isn't one of those.
    The SOAP looks ok and for the life of me I can't see why this ought to
    be a problem, especially since the problem doesn't arise running with
    the SUN JDK 1.6_06 64 bit)
    When making the same call from the OAS Enterprise Manager, I can make the same call with no problem (but the data is just rendered as character data in a browser) which maybe suggests some incompatibility with how JRockit is serializing the data ?
    Any ideas, I would be very happy to hear - JRockit gives a 15% or so
    speed boost to the website that these services power so obviously we
    want to use it if possible.
    Edited by: RichLiv on Nov 14, 2008 4:54 AM

    Seems to be the case that using MTOM stops this problem with JRockit. Strange but apparently true (so far).

  • Error using selectmany tags with backing beans - Beta 1

    Hi All,
    I'm not having any luck getting any of the selectmany tags working with back-end beans. I've concluded it just doesn't work. My example is derived from the selectmany sample in the tutorial, which also just doesn't work (there are 4 or 5 problems with the sample in the tutorial, including the fact that there's no tag called 'selectmany_checkbox' in Beta 1, it's renames to selectmany_checkboxlist. But I digress).
    Anyway, the following is the relevant JSP snippet:
    <html:selectmany_menu value="#{facesTest.items}">
    <faces:selectitem itemValue="foo" itemLabel="foo" />
    <faces:selectitem itemValue="bar" itemLabel="bar" />
    </html:selectmany_menu>
    Here's the relevant backing bean snippet:
    protected ArrayList items = null;
    public Object[] getItems() {
    System.out.println("getItems():ENTRY");
    if (items != null)
    return items.toArray();
    else
    return null;
    public void setItems(Object[] items)
    System.out.println("setItems():ENTRY");
    int len = 0;
    if (null == items ||(len = items.length) == 0) {
    return;
    if (this.items != null)
    this.items.clear();
    this.items = new ArrayList(len);
    for (int i = 0; i < len; i++) {
    this.items.add(items);
    I've declared the bean as follows in the face-config.xml:
    <managed-bean>
    <managed-bean-name>facesTest</managed-bean-name>
    <managed-bean-class>ipt.faces.FacesTest</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    The errors vary, but basically when I don't select anything from the multi-select menu, all is fine. When I do select something I get one of two messages returned thru the messages tag, either "Conversion Error setting value 'null' for 'expression'" when I select one item or " Conversion Error setting value '[Ljava.lang.String;@397d4e' for 'expression'." when I select two items.
    Turning on 'FINEST', I get the output below:  Any ideas?  I've noticed several posting regarding the selectmany tags, any response on getting these to work?
    thanks!
    Steve
    FINE: Exiting RenderResponsePhase
    Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.LifecycleImpl execute
    FINE: Begin executing lifecycle phases
    Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.LifecycleImpl execute
    FINEST: execute(phaseId=RESTORE_VIEW 1)
    Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.LifecycleImpl execute
    FINEST: Begin execute(phaseId=RESTORE_VIEW 1)
    Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.RestoreViewPhase execute
    FINE: Entering RestoreViewPhase
    Jan 9, 2004 10:11:52 AM com.sun.faces.application.ViewHandlerImpl getMappingForR
    equest
    FINEST: servletPath /hello.jsf
    Jan 9, 2004 10:11:52 AM com.sun.faces.application.ViewHandlerImpl getMappingForR
    equest
    FINEST: pathInfo null
    Jan 9, 2004 10:11:52 AM com.sun.faces.application.ViewHandlerImpl getFacesMappin
    g
    FINE: URL pattern of the FacesServlet executing the current request .jsf
    Jan 9, 2004 10:11:52 AM com.sun.faces.application.ViewHandlerImpl convertViewId
    FINE: viewId after appending the context suffix /hello.jsp
    Jan 9, 2004 10:11:52 AM com.sun.faces.application.StateManagerImpl restoreView
    FINE: Begin restoring view from response /hello.jsp
    Jan 9, 2004 10:11:52 AM com.sun.faces.application.StateManagerImpl restoreView
    FINE: End restoring view from response /hello.jsp
    Jan 9, 2004 10:11:52 AM com.sun.faces.application.ViewHandlerImpl restoreView
    FINEST: set character encoding on request to ISO-8859-1
    Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.RestoreViewPhase execute
    FINE: Postback: Restored view for /hello.jsf
    Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.RestoreViewPhase execute
    FINE: Exiting RestoreViewPhase
    Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.LifecycleImpl execute
    FINEST: End execute(phaseId=RESTORE_VIEW 1)
    Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.LifecycleImpl hasPostDataOrQuery
    Params
    FINEST: Request Method: POST/PUT
    Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.LifecycleImpl execute
    FINEST: execute(phaseId=APPLY_REQUEST_VALUES 2)
    Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.LifecycleImpl execute
    FINEST: Begin execute(phaseId=APPLY_REQUEST_VALUES 2)
    Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.ApplyRequestValuesPhase execute
    FINE: Entering ApplyRequestValuesPhase
    Jan 9, 2004 10:11:52 AM com.sun.faces.el.ValueBindingImpl getValue
    FINE: getValue(ref=facesTest.items)
    Jan 9, 2004 10:11:52 AM com.sun.faces.el.VariableResolverImpl resolveVariable
    FINE: resolveVariable: Resolved variable:ipt.faces.FacesTest@f97d27
    getItems():ENTRY
    Jan 9, 2004 10:11:52 AM com.sun.faces.el.ValueBindingImpl getValue
    FINE: getValue Result:[Ljava.lang.Object;@11fb68f
    Jan 9, 2004 10:11:52 AM com.sun.faces.el.ValueBindingImpl getValue
    FINEST: -->Returning [Ljava.lang.Object;@11fb68f
    Jan 9, 2004 10:11:52 AM com.sun.faces.el.VariableResolverImpl resolveVariable
    FINE: resolveVariable: Resolved variable:ipt.faces.FacesTest@f97d27
    Jan 9, 2004 10:11:52 AM com.sun.faces.el.ValueBindingImpl getType
    FINE: isReadonly result:class [Ljava.lang.Object;
    Jan 9, 2004 10:11:52 AM com.sun.faces.el.ValueBindingImpl getValue
    FINE: getValue(ref=facesTest.items)
    Jan 9, 2004 10:11:52 AM com.sun.faces.el.VariableResolverImpl resolveVariable
    FINE: resolveVariable: Resolved variable:ipt.faces.FacesTest@f97d27
    getItems():ENTRY
    Jan 9, 2004 10:11:52 AM com.sun.faces.el.ValueBindingImpl getValue
    FINE: getValue Result:[Ljava.lang.Object;@1262667
    Jan 9, 2004 10:11:52 AM com.sun.faces.el.ValueBindingImpl getValue
    FINEST: -->Returning [Ljava.lang.Object;@1262667
    Jan 9, 2004 10:11:52 AM com.sun.faces.context.FacesContextImpl addMessage
    FINE: Adding Message[sourceId=_id0:_id7,summary=Conversion Error setting value '
    [Ljava.lang.Object;@1262667' for 'expression'.)
    Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.ApplyRequestValuesPhase execute
    FINE: Exiting ApplyRequestValuesPhase
    Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.LifecycleImpl execute
    FINEST: End execute(phaseId=APPLY_REQUEST_VALUES 2)
    Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.LifecycleImpl execute
    FINEST: execute(phaseId=PROCESS_VALIDATIONS 3)
    Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.LifecycleImpl execute
    FINEST: Begin execute(phaseId=PROCESS_VALIDATIONS 3)
    Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.ProcessValidationsPhase execute
    FINE: Entering ProcessValidationsPhase
    Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.ProcessValidationsPhase execute
    FINE: Exiting ProcessValidationsPhase
    Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.LifecycleImpl execute
    FINEST: End execute(phaseId=PROCESS_VALIDATIONS 3)
    Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.LifecycleImpl execute
    FINE: Skipping to RenderResponsePhase
    Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.RenderResponsePhase execute
    FINE: Entering RenderResponsePhase
    Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.RenderResponsePhase execute
    FINE: About to render view /hello.jsp
    Jan 9, 2004 10:11:52 AM com.sun.faces.application.ViewHandlerImpl renderView
    FINE: About to render view /hello.jsp
    Jan 9, 2004 10:11:52 AM com.sun.faces.application.ViewHandlerImpl getFacesMappin
    g
    FINE: URL pattern of the FacesServlet executing the current request .jsf
    Jan 9, 2004 10:11:52 AM com.sun.faces.application.ViewHandlerImpl renderView
    FINE: Found URL pattern mapping to FacesServlet .jsf
    Jan 9, 2004 10:11:52 AM com.sun.faces.application.ViewHandlerImpl renderView
    FINEST: Before dispacthMessage to newViewId /hello.jsp
    Jan 9, 2004 10:11:52 AM com.sun.faces.application.ViewHandlerImpl getFacesMappin
    g
    FINE: URL pattern of the FacesServlet executing the current request .jsf
    Jan 9, 2004 10:11:52 AM com.sun.faces.application.ViewHandlerImpl getViewIdPath
    FINEST: viewId after modifications /hello.jsf
    Jan 9, 2004 10:11:52 AM com.sun.faces.application.ApplicationImpl createConverte
    r
    FINEST: Created converter of type javax.faces.convert.BooleanConverter
    Jan 9, 2004 10:11:52 AM com.sun.faces.application.ViewHandlerImpl writeState
    FINEST: Begin writing state to response for viewId/hello.jsp
    Jan 9, 2004 10:11:52 AM com.sun.faces.application.ViewHandlerImpl writeState
    FINEST: End writing state to response for viewId/hello.jsp
    Jan 9, 2004 10:11:52 AM com.sun.faces.application.StateManagerImpl saveSerialize
    dView
    FINE: Begin creating serialized view for /hello.jsp
    Jan 9, 2004 10:11:52 AM com.sun.faces.application.StateManagerImpl saveSerialize
    dView
    FINE: End creating serialized view /hello.jsp
    Jan 9, 2004 10:11:52 AM com.sun.faces.application.ViewHandlerImpl renderView
    FINEST: After dispacthMessage to newViewId /hello.jsp
    Jan 9, 2004 10:11:52 AM com.sun.faces.lifecycle.RenderResponsePhase execute
    FINE: Exiting RenderResponsePhase

    Could you post your code example? I am having the same problem. And I am wondering how you can set the value, label and description using the String[] return type. I thought the object[] would basically be a SelectItem Array...
    thanx!

  • Problem with Activity Data Collector with web dynpro

    Hi Gurus,
    We try to use the Activity Data Collector to create portal statistics. We activate the service, define the file formats, and files generates successfully. After that, we load those files into BI, and create some query. Analyze queries look the following problem:
    There is a web dynpro application which in portal (in web dynpro iview), and the log files non contains every hit.
    For example, 2000 users used this application, but the log files contains only 13 users.
    Can yout help me, what is the problem?
    Thanks

    Dwa-
    Did you create activity reporting service similar to below link.
    http://help.sap.com/saphelp_nw70/helpdata/en/45/74eeda9ba26975e10000000a114a6b/frameset.htm 
    If you have used it. Activity reporting service which you created will not record the Webdynpro activity.  I think the above one is more of KM reporting service.
    Try creating activity report with below link. But portal version required is EHP1.
    Portal Activity Data Collector using Solution Manager
    Thanks,
    Sharath.

  • JSP tags with java beans !! Design Help needed ..

    Hi,
    I have three tables State,District,College.
    My requirement is to get the fields from three tables one time from the DB and populate them with the JSP(so that the DB connections will not be much).
    For that :::
    I have designed to have three Beans StateBean,DistrictBean and CollegeBean.
    Every row in State table will be a StateBean and will be added to an ArrayList called StateBeanList
    similarly I got two other lists DistrictBeanList and CollegeBeanList.
    And I am using application.setAttribute() to send all the information to the JSP by using RequestDespatcher..
    When I run the servlet on tomcat it is getting OutOfMemory Exception in java Heap..Can I increase the heap size on tomcat ?
    Apart from increasing the heap size I want to know good design...
    My actual requirement is::: in the forwared JSP I need to populate state text field and after selecting state field I need to get the district fileds populated in other text filed, by the value of district field I need to populate college field... we can see it many websites...
    Please suggest me the good design..
    Thanks in Advance,
    Vidhya...

    vidhya517 wrote:
    I have three tables State,District,College.
    My requirement is to get the fields from three tables one time from the DB and populate them with the JSP(so that the DB connections will not be much).
    For that :::
    I have designed to have three Beans StateBean,DistrictBean and CollegeBean.
    Every row in State table will be a StateBean and will be added to an ArrayList called StateBeanList
    similarly I got two other lists DistrictBeanList and CollegeBeanList.I would rather let StateBean have a Set<DistrictBean> property and let DistrictBean have a Set<CollegeBean> property. List instead of Set is also okay.
    And I am using application.setAttribute() to send all the information to the JSP by using RequestDespatcher..
    When I run the servlet on tomcat it is getting OutOfMemory Exception in java Heap..Can I increase the heap size on tomcat ?
    Apart from increasing the heap size I want to know good design...How many states, districts and colleges do you have in total? What is your initial heap size? You can just alter it as startup parameters/arguments.
    My actual requirement is::: in the forwared JSP I need to populate state text field and after selecting state field I need to get the district fileds populated in other text filed, by the value of district field I need to populate college field... we can see it many websites...
    Please suggest me the good design..

  • Data Tags vs. Data Web Beans

    I'm a bit confused :
    should i use Data Tags or Datawebbeans ?
    TIA
    Sergio Sette

    As a general rule,
    formatting (html) customization is easier done with datatags.
    Business logic is easier with web beans. You can mix and match though which provides a powerful framework.
    What are you trying to achieve?
    null

  • Jsp,bc4j,Data web Bean , error : NO ROWS AVAILABLE FOR EDITING

    HI
    I'm developping a jsp application based on Bc4j. when trying to insert a new row with missing fields which must be not null,
    in order to be able to edit the row and correct the non seized fields, I display the edit page and it works for several views. but this time when editing fields and submitting the edit form an error is raised with the message no rows available for editing.
    the particularity for these views(which causes the error) is that are details for a view which is detail for an other.
    can someone please suggest some solution for such a problem
    thanks in advance
    Ghassen
    null

    ghassen
    this is a typicall error that occurs when trying to execute the Row data tag with action "Update" and there is not row obtained through the rowkeyparam (normally MyRowKey url parameter passed from the Edit page). I don4t have sufficient information to give you an exact solution.
    I don4t understand all your escenario, you spoke about "Insert new row with missing values in required fields", but if you don4t specify a right value to that fields, the insert fail.
    Then you display the Edit page to edit that just inserted row, to correct (specify?) the values of that fields. The error occurs in the EditSubmit page.
    The EditSubmit page execute de Row data tag, according to the implementation of Rowtag, first recover the row reference (from rowkeyparam url parameter) and then, if that row reference is null, throws the "No rows available for editing" Runtime Exception. This means that the datasource used in your EditSubmit page not include that RowKey reference (obtained from Edit page as Url parameter).
    HTH
    Pepe

  • The value in flexfield context reference web bean does not match with the value in the context of the Descriptive flexfield web bean BranchDescFlex. If this in not intended, please go back to correct the data or contact your Systems Administrator for assi

    Hi ,
    We have enabled context sensitive DFF in Bank Branch Page for HZ_PARTIES DFF , We have created Flex Map so that only bank branch context fields are only displayed in the bank branch page and  as we know party information DFF is shared by supplier and Customer Page so we dint want to see any Bank Branch fields or context information in those pages.
    We have achieved the requirement but when open existing branches bank branch update is throwing below error message :
    "The value in flexfield context reference web bean does not match with the value in the context of the Descriptive flexfield web bean BranchDescFlex. If this in not intended, please go back to correct the data or contact your Systems Administrator for assistance."
    this error is thrown only when we open existing branches, if we save existing branch and open then it is not throwing any error message.
    Please let us know reason behind this error message.
    Thanks,
    Mruduala

    You are kidding?  It took me about 3 minutes to scroll down on my tab to get to the triplex button!
    Habe you read the error message? 
    Quote:
    java.sql.SQLSyntaxErrorException: ORA-04098: trigger 'PMS.PROJECT_SEQ' is invalid and failed re-validation
    Check the trigger and it should work again.
    Timo

  • Using a view-object as a data web bean?

    Hi,
    When writing JSP pages, I'd like to have a web bean that allows basic data manipulation such as:
    - set up a row set - e.g. by specifying a view object and an (optional) where clause;
    - navigate this row set (first, next, etc.);
    - get or set the values of the attributes of the current row;
    - insert, update or delete a row;
    - commit or rollback the modifications;
    - etc.
    This bean should be "silent" - i.e. it would not have to be able to "render" anything - instead, I would use it in <%= bean.method() %> tags, or in <% ...java code... %> sections, in conjunction with other (custom) beans.
    I guess I could use a view object - but:
    1) How would I have to use it in a JSP context?
    2) Or, are there more appropriate objects to do this job?
    3) What methods could I use (i.e. where are they documented)?
    4) What pitfalls should I be aware of (most notably related to housekeeping after bean use)?
    Any information greatly appreciated!
    Thanks in advance,
    Serge

    Hi,
    When writing JSP pages, I'd like to have a web bean that allows basic data manipulation such as:
    - set up a row set - e.g. by specifying a view object and an (optional) where clause;
    - navigate this row set (first, next, etc.);
    - get or set the values of the attributes of the current row;
    - insert, update or delete a row;
    - commit or rollback the modifications;
    - etc.
    This bean should be "silent" - i.e. it would not have to be able to "render" anything - instead, I would use it in <%= bean.method() %> tags, or in <% ...java code... %> sections, in conjunction with other (custom) beans.
    I guess I could use a view object - but:
    1) How would I have to use it in a JSP context?
    2) Or, are there more appropriate objects to do this job?
    3) What methods could I use (i.e. where are they documented)?
    4) What pitfalls should I be aware of (most notably related to housekeeping after bean use)?
    Any information greatly appreciated!
    Thanks in advance,
    Serge

  • Query to extract HTML tag with data

    Hi All,
    I have a string.
    '<HTML><HEAD>THIS IS HEAD.</HEAD><BODY>THIS IS BODY.<P>THIS IS P1.</P>NIMISH<P>THIS IS P2.</P></BODY></HTML>'
    I want to extract a html tag including its opening & closing tab with data as
    if i say P1
    then the output should be
    '<P>THIS IS P1.</P>'
    for P2
    then the output should be
    <P>THIS IS P2.</P>
    please help me in writing this query with regular expression
    i have tried it as following but it is not giving desired result:
    WITH T AS
    SELECT
        '<HTML><HEAD>THIS IS HEAD.</HEAD><BODY>THIS IS BODY.<P>THIS IS P1.</P>NIMISH<P>THIS IS P2.</P></BODY></HTML>' STR
    FROM   
        DUAL
    SELECT REGEXP_SUBSTR(STR, '<P>.+P2.+</P>') FROM T
    Thanks & Regards
    Nimish GargEdited by: Nimish Garg on May 7, 2012 5:49 PM

    Nimish Garg wrote:
    My requirement is to extract a <tag>data</tag> from a HTML/XML string
    where data contains any specified value.HTML is not XML.
    And that is a critical distinction to make. HTML parsing is horribly complex. XML is quite easy. For HTML you have to code your own parser in PL/SQL. XML can be parsed using the XMLTYPE class/data type in PL/SQL.
    So if you need to find a single specific tag in HTML - I would not try to treat it as XML. I may not even try to use regular expressions.
    I would do a basic substring search for the start of the tag. Read the data following the tag. Ensure that there are no nested or embedded tags in the data. Until the end tag is read. Because HTML is that much abused - and because that is an accepted norm as parsers used by browsers deals with that abuse without complaining.
    Proper HTML is mostly a myth in my experience of "screen scraping" web servers for data extraction as they do not have web services supplying the data.

  • Data web bean (chart) using a dynamic view object

    Please I want a quick help. I read all forums concerning this subject but I still couldn't do it.
    - I create a view object which takes a proameter using the ? style parameter.
    - I passed the parameter from an html page and execute the query
    of the view as follows:
    <%
    String deptno = request.getParameter("deptno");
    if(deptno != null) {
    oracle.jbo.html.jsp.JSPApplicationRegistry.registerApplicationFromPropertyFile(session , "MyProject21_package3_Package3Module");
    oracle.jbo.ViewObject v = oracle.jbo.html.jsp.JSPApplicationRegistry.getInstance()
    .getAppModuleInstance("MyProject21_package3_Package3Module",request,session)
    .findViewObject("View1");
    v.setWhereClauseParam(0,deptno);
    v.executeQuery();
    %>
    - And then I used the data web bean chart as follows:
    <jsp:useBean class="oracle.jbo.html.databeans.ChartRenderer" id="ch" scope="request" >
    <%
    ch.setReleaseApplicationResources(false);
    ch.initialize(application,session, request,response,out,"MyProject21_package3_Package3Module.View1");
    ch.setCommonScriptName("/webapp/jsp/chart_common.jsp");
    ch.getChart().setGraphType(ch.PIE);
    ch.setSeriesLabelColumnName("DeptNo");
    ch.setDisplayAttributes("CountEmplNo");
    ch.getChart().setPieFeelerTextDisplay(0);
    ch.getChart().setPieTilt(10);
    ch.getChart().setPieRotate(0);
    ch.getChart().setLegendDisplay(true);
    ch.getChart().setLegendMarkerPosition(0);
    ch.getChart().setTitleString("Title");
    ch.getChart().setSubtitleString("Subtitle");
    ch.getChart().setFootnoteString("Footnote");
    ch.setImageWidth(400);
    ch.setImageHeight(400);
    ch.render();
    %>
    - I tried to use the View1 as a view name, and the v as a view name
    but both of them get the same result
    SQL Statement error and the sql statement is displayed with the ? in it which means that he didn't replace it by the parameter.
    Please I need quick help.
    Thanks.
    </jsp:useBean>
    Remark : please send me the reply at "[email protected]"

    Hi Rishab,
    I'm running into the exact same problem, in the same situation. Did you solve this problem and can you tell me how?
    Thanks in advance,
    Paskal

  • Working with complex data types in web services ...

    Hi All,
    I have created a webservice and created an interface for that in ADF. Now as my web service returns a complex data type, i followed the steps given in this article "http://www.oracle.com/technology/products/jdev/howtos/1013/wsadf/adfcomplexwstypes.html" and it works fine, my results also get displayed. But only issue is i get a warning "JBO-25009: Cannot create an object of type:java.util.calendar with value:2008-09-23T23:51:30.000+05:30" and if i replace all the java.util.Date with oracle.jbo.domain.Date then i get a warning "JBO-25009: Cannot create an object of type:oracle.jbo.domain.Date with value:2008-09-23T23:51:30.000+05:30". Now i am unable to understand this although i believe it is a data type mapping issue, but not sure how to rectify it.
    Anybody knows the wayout?
    Regards
    Lokesh

    Andre,
    Thanks for youe response. I also tried makeing data type as string in place of date in data control.xml and it worked fine. So it confirms that i am facing with exactly similar issue as yours.
    I tried solution 2 mentioned in Frank's mail but its not helping[in fact i am already using web proxy as i am delaing with complex data types]. I created a web proxy and in java bean i placed break points to check the control flow[in order to check the root cause] but control never reaches the java bean!! I am not sure about the cause for it...control should pass through java bean isn't it??
    I am quite new to SOA...so can somebody just elaborate on how to rectify this using web proxy. I have been using this rl "http://www.oracle.com/technology/products/jdev/howtos/1013/wsadf/adfcomplexwstypes.html" to work with web proxies" to work with proxies.
    Regards
    Lokesh

  • JSP, Data Web Bean, BC4J: Setting the where clause of a View Object at run time

    Hi,
    I am trying to develop a data web bean in which the where clause of a View Object will be set at run time and the results of the query then displayed.
    My BC4J components are located in one project while the coding for the data web bean is in another project. I used the following code bu t it does not work. Could you please let me know what I am doing wrong?
    public void populateOSTable(int P_EmpId)
    String m_whereString = "EmpView.EMP_ID = " + P_EmpId;
    String m_OrderBy = "EmpView.EMP_NAME";
    oracle.jbo.ApplicationModule appModule = null;
    ViewObject vo = appModule.findApplicationModule("EMPBC.EMPAppModule").findViewObject("EMPBC.EMPView");
    vo.setWhereClause(m_whereString);
    vo.setOrderByClause(m_OrderBy);
    vo.executeQuery();
    vo.next();
    String empName numAttrs = vo.getAttribute(EmpName);
    System.out.println(empName);
    Thanks.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by JDev Team (Laura):
    Here is how I have usually done mine:
    1. In the JSP, use a RowsetNavigator bean to set the where clause and execute the query.
    2. Use a custom web bean to process the results of the query (print to HTML).
    for example:
    <jsp:useBean class="oracle.jbo.html.databeans.RowsetNavigator" id="rsn" scope="request" >
    <%
    // get the parameter from the find form
    String p = request.getParameter("p");
    String s = request.getParameter("s");
    // store the information for reference later
    session.putValue("p", p);
    session.putValue("s", s);
    // initialize the app module and view object
    rsn.initialize(application,session, request,response,out,"wt_bc_WT_bcModule.wtjoinView");
    // set the where clause string
    String theclause = "presname = '" + p + "' AND slideno=" + s;
    // set the where clause for the VO
    rsn.getRowSet().getViewObject().setWhereClause(theclause);
    rsn.getRowSet().getViewObject().executeQuery();
    rsn.getRowSet().first();
    %>
    </jsp:useBean>
    <jsp:useBean class="wt_bc.walkthruBean" id="wtb" scope="request" >
    <%
    // initialize the app module and VO
    wtb.initialize(application,session, request,response,out,"wt_bc_WT_bcModule.wtjoinView");
    wtb.render();
    %>
    In this case, the render method of my custom web bean mostly gets some session variables, and prints various content depending on the session variable values.
    Hope this helps.
    </jsp:useBean><HR></BLOCKQUOTE>
    Laura can you give the code of your walkthru bean? i wna't to initialize a viewobject, set the where clause and give that viewobject back to initialize my navigatorbar.
    Nathalie
    null

  • How can I create a query with web service data control?

    I need to create a query with web service data control, in WSDL, it's query operation, there is a parameter message with the possible query criteria and a return message contains the results. I googled, but cannot find anything on the query with web service. I cannot find a "Named Criteria" in web service data control like normal data control. In Shay's blog, I saw the topics on update with web service data control. How can I create a query with web service data control? Thanks.

    Hi,
    This might help
    *054.     Search form using ADF WS Data Control and Complex input types*
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html

  • JSP, Data tags, How to build a form edit with multiple records

    Hi, I'm using Jdev 9i.
    I would like to have a JSP form where I can update, delete, insert records displayed in the same page.
    I know that I can use the data tag jbo:DataEdit to do it, but it only works with a single record, I want to have several records in the same page, displayed horizontally.
    The best example is a form to add items in an invoice:
    Productid description quantity price
    1001 xxx 10 20.00
    1002 yyy 15 30.00
    1003 zzz 7 10.00
    Could you give some help please?
    Thanks in advance.

    The form display is dictated by how you process the submit. I would build the form by using standard html tags. Here is another pseudo example:
    <FORM ACTION="target.jsp" >
    <TABLE>
    <TR>
    <TD>
    DeptNo
    </TD>
    <TD>
    DName
    </TD>
    <TR>
    <%
    int nRow = 0;
    %>
    <jbo:RowsetIterate datasource="ds">
    <%
    // increment the row number
    nRow++;
    String sDeptno = "Deptno" + nRow;
    String sDname = "Dname" + nRow;
    String sRowKey = "RowKey" + nRow;
    %>
    <jbo:Row id="myrow" action="current">
    <TR>
    <TD>
    <input type="text" name="<%=sDeptno%>" value='<jbo:ShowValue dataitem="Deptno" />' />
    </TD>
    <TD>
    <input type="text" name="<%=sDname%>" value='<jbo:ShowValue dataitem="Dname" />' />
    <input type="text" name="<%=sRowKey%>" value='<jbo:ShowValue dataitem="RowKey" />' />
    </TD>
    <TR>
    </jbo:Row>
    </jbo:RowsetIterate>
    <input type="submit" />
    </TABLE>
    </FORM>
    NOTE: This should get you started!!!

Maybe you are looking for