How to send a request parameter to a dialog pages with jsf

I'm using the dialog framework of oracle, java server faces.......
I need to open a url on a dialog page(request scope), and I must to pass request parameters. I put <f:param> objects inside the commandLink who I click.....
If the page is not dialog, it woks fine, but when I put in a dialog way.... nothing work
=[
anyone know what I have to do?
thanks

Hi, I suppose you have already seen the ADF DIalog Framework, isn't it?
I think there tells how to pass parameter
A workaround is to save them in your session and then get them back and remove

Similar Messages

  • How to send a request and get a response through xml

    How to send a request and get a response through xml files?

    This is the code that works for me. Hope you find it useful.
         public static String sendHttpGetRequest(String endpoint, String requestParameters){
              String result = null;
              // Send a GET request to the servlet
              try{
                   // Send data
                   String urlStr = endpoint;
                   if (requestParameters != null && requestParameters.length () > 0){
                        urlStr += "?" + requestParameters;
                   URL url = new URL(urlStr);
                   HttpURLConnection conn = (HttpURLConnection) url.openConnection();
                   conn.setRequestProperty("Accept", "application/xml");
                   // Get the response
                   BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
                   StringBuffer sb = new StringBuffer();
                   String line;
                   while ((line = rd.readLine()) != null){
                        sb.append(line);
                   rd.close();
                   result = sb.toString();
              } catch (Exception e){
                   e.printStackTrace();
              return result;
         }

  • In snow leopard, 2 fingers to the left on the mouse went back to the previous page. In Lion, it opens the dashboard. How can i make firefox go back to previous page with two fingers left on the mouse??

    In snow leopard, 2 fingers to the left on the mouse went back to the previous page. In Lion, it opens the dashboard. How can i make firefox go back to previous page with two fingers left on the mouse??

    Hi,
    I don't know of a preference, but have you used ⌘-T in iCal?
    Best wishes
    John M

  • How to send a request to a web server

    Hi All!
    How can I send a request to a web server using java.net package? Can any one give me a simple example?
    thanks,
    Padma.

    http://javaalmanac.com/egs/java.net/Post.html
    http://www.developer.com/tech/article.php/761521
    http://www.javaworld.com/javaworld/jw-03-2001/jw-0323-traps.html

  • How to send  a request to servlet from a java client.

    I called a servlet from java client using URL object.
    I could establish a connection with server and display
    the content(like req.getservername etc.,)
    of servlet on client side(DOS prompt).
    My question is how do i send a request to servlet from the client.
    let me say, i have to send a value as 10 to servlet and do some processing
    ( like 10*2 = 20) display the output (20) on client side..
    It will be appreciated if u can mention the syntax...

    just add the query string to the url you use to create the URL object from.

  • How to send SOAP request by HTTP POST?

    I want to access a SOAP webservice using mx.rpc.soap.mxml.WebService.
    Following is my code:
    <mx:WebService id="miner_service" wsdl="http://localhost:8080">        <mx:operation name="hello" result="echoResultHandler(event);"></mx:operation></mx:WebService>
    When debugging with that, I got such error message:
    [Fault] exception, information=[RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL (http://localhost:8080)"]
    Then I use Fiddler try to capture the response returned by server, it's like this:
    Error responseError code 501. Message: Unsupported method ('GET'). Error code explanation: 501 = Server does not support this operation.
    But when I use python to send SOAP request by HTTP POST, the server will return correct response.
    So how can I send SOAP request by HTTP POST?
    (I tried <mx:WebService wsdl="http://localhost:8080" method="POST">, but no luck..)

    Sorry for my late reply..
    There's no WSDL for that SOAP service

  • How to send a request from a page to another

    Hello,
    I've started a project an I would like to do the following.
    I have :
    -a datasource included in my project
    -a page customer_list.jsp with a list (and data binding a datasource table)
    -a page customer_search.jsp with a text field(where i write my sql request) and a ok button
    -a link (page navigation) between ok button and customer_list.jsp
    I would like, when I clic on the ok button, to go to the customer_list page with datas in the list that result from my sql request.
    What I think :
    -in the ok buton event, create a requestBean object and .... (don't know how to specify it a request, but i'm searching)
    -return "customer_list"
    -in the customer_list.java constructor : recover the requestBean Object (how to do ?) and bind the result to the list.
    I think it's not a good way to do, this is my first project and I don't know yet how to do a good work with JSC2.
    Can you tell me where are the "bugs" with what I want to do ?
    Thanks for your answers
    Nicolas

    I've found !
    let's see my ok button code :
    public String b4_action() {
            String sql = e1.getText().toString();
            try
            getSessionBean1().getCustomerRowSet().setCommand(sql);
            getSessionBean1().getCustomerRowSet().execute();
            catch(SQLException e)
                System.err.println(e);
            return "customer_list";
        }I hope this will help someone else ...
    Nicolas

  • How to send two request in the same connection with HttpURLConnection?

    As the title, I want to send two or more requests in the same connection with HttpsURLConnection..I wish all requests are in the same session.
    My code is as following:
    package test1;
    //import javax.net.ssl.*;
    import java.net.*;
    import java.io.*;
    public class httptest {
    public httptest() {
    public void test() {
    HttpURLConnection uc = null;
    String urlStr="";
    urlStr="http://172.16.245.151/test/page1.jsp";
    try {
    URL u = new URL(urlStr);
    uc = (HttpURLConnection) u.openConnection();
    uc.setRequestMethod("GET");
    uc.setDoOutput(true);
    // uc.connect();
    OutputStream out = uc.getOutputStream();
    out.flush();
    out.close();
    catch (Exception ex) {
    System.out.println(ex.getMessage());
    public static void main(String[] args) {
    httptest tt = new httptest();
    tt.test();
    The sample class just can send a request..Now we think of the sentence :uc = (HttpURLConnection) u.openConnection();
    Obviousely, a HttpURLConnection can just have a Object of the Class URL, and the Class URL have no setURL mothed. So I can't use a HttpURLConnection to send two request.
    I just want the HttpURLConnect is the same to IE...Do you understand what I mean?
    Any helps will be appreciated...

    As the title, I want to send two or more requests in the same connection with HttpsURLConnection..I wish all requests are in the same session.
    My code is as following:
    package test1;
    //import javax.net.ssl.*;
    import java.net.*;
    import java.io.*;
    public class httptest {
    public httptest() {
    public void test() {
    HttpURLConnection uc = null;
    String urlStr="";
    urlStr="http://172.16.245.151/test/page1.jsp";
    try {
    URL u = new URL(urlStr);
    uc = (HttpURLConnection) u.openConnection();
    uc.setRequestMethod("GET");
    uc.setDoOutput(true);
    // uc.connect();
    OutputStream out = uc.getOutputStream();
    out.flush();
    out.close();
    catch (Exception ex) {
    System.out.println(ex.getMessage());
    public static void main(String[] args) {
    httptest tt = new httptest();
    tt.test();
    The sample class just can send a request..Now we think of the sentence :uc = (HttpURLConnection) u.openConnection();
    Obviousely, a HttpURLConnection can just have a Object of the Class URL, and the Class URL have no setURL mothed. So I can't use a HttpURLConnection to send two request.
    I just want the HttpURLConnect is the same to IE...Do you understand what I mean?
    Any helps will be appreciated...

  • How to send meeting request by mail adapter

    Hi,
    I'm doing scenario from file to mail. I have a sender file adapter to pick up the meeting request standard format file(*.ics) from file system. On the other side I have a receiver mail adapter to send mail. What I want to do is the sent mail by mail adapter should be a meeting request instead of a normal email with meeting request as its attachment.
    I use localejbs/AF_Modules/MessageTransformBean as first module in mail adapter, but the sent mail is also a normal with meeting request as its attachment. This is not what I expected.
    I also created own module for mail adapter to realize it. Do I need to change the format of meeting reqeust information in payload? Actually I have chance to do it in module. But what should I do? Thanks.

    Hi, Krishna:
    Thanks for your reply.
    Actually the content of ics file is like:
    BEGIN:VCALENDAR
    PRODID:-//Microsoft Corporation//Outlook 11.0 MIMEDIR//EN
    VERSION:2.0
    METHOD:REQUEST
    BEGIN:VEVENT
    ATTENDEE;CN="Wu, Oscar";ROLE=REQ-PARTICIPANT;RSVP=TRUE:MAILTO:[email protected]
    ORGANIZER:MAILTO:[email protected]
    DTSTART:20070626T130000Z
    DTEND:20070626T150000Z
    LOCATION:Shanghai
    TRANSP:OPAQUE
    SEQUENCE:0
    UID:040000008200E00074C5B7101A82E00800000000F067E9BB0DB8C7010000000000000000100
    00000C7423D530FE8744687B0C7C08D4CAA58
    DTSTAMP:20070626T104913Z
    DESCRIPTION:Meeting request without attachment\n
    SUMMARY:Test appointment
    PRIORITY:5
    X-MICROSOFT-CDO-IMPORTANCE:1
    CLASS:PUBLIC
    BEGIN:VALARM
    TRIGGER:-PT15M
    ACTION:DISPLAY
    DESCRIPTION:Reminder
    END:VALARM
    END:VEVENT
    END:VCALENDAR
    this content is content of meeting request based on RFC 822, what I want is not get the content itself in mail, I want the mail adapter send a meeting request out automatically when it get this content.
    Thanks

  • How to send a request ??

    Hi i am developing a web application
    I have two frames in my jsp page
    1. left fram
    2. Right frame
    Left frame contains some links to add items . To display that form i.e add.jsp , the request is send from servlet by checking certain parameters .
    But the problem is the add.jsp is complete different jsp page and request is forwarded with
    getrequestdispatcher ()method , but the response is generated in left frame that means i am unable to transfer the request to different jsp page
    Please help me
    Or let me know if you need some more information
    Thanks

    Well, obviously until you refresh the left frame contents it will not display any new additions.
    I can only think of JavaScript as the way out. After the add form is submitted and processed, as part of the response, send back a 'Please Wait' (or whatever suits you) page with JavaScript that will simply [set the location|http://www.tizag.com/javascriptT/javascriptredirect.php] to the original page containing the frameset. For example, if your main page is main.jsp, then your response (after successful addition of the entry) could be something like this:
    <html>
    <head>
       function redirectToMain()
            window.location = "http://hostname/main.jsp";
            //the only shortcoming of this method is that it doesn't work
            // with relative URLs; but you can always generate the complete
            // URL on the server side by getting the scheme, servername and port
           //from the HTTPServletResponse and contextpath from the ServletContext
    </head>
    <body onLoad="redirectToMain();">
    Please Wait...
    If you're not redirected for some reason, please <a href="http://hostname/main.jsp" target="_top">click here</a>
    </body>
    </html>Otherwise, you can consider
    a. opening add.jsp in the left frame (and not in the right frame); this way, when you submit the new entry, you'll finally get back the left.jsp with the updated contents
    b. opening a new window for add.jsp and use JavaScript to refresh the parent frame
    Edited by: nogoodatcoding on May 28, 2009 8:51 AM

  • Send a request without leaving the current page?

    Hi,
    I got a question here:
    In a jsp page, when the user changed a option in a drop down box, I want the page to send a request to the server doing some operations on the database(probably use a bean) but still stay at the current page. How can I do that?
    Another simple question is:
    There're 10 elements/components in a FORM, and the user is changing the options in a drop down box (one of the 10 elements/components). Is there any way I can know which elements/components the user is playing with ?
    Thanks in advance!

    it is your own risk to your applets to communicate with DBs because nobody suggests that. I agree with the Javascript story and the frames. It can be done but i thought he wanted to do that in one single page. And finally, i dont trust frames that much. I have seen many times the 404 error found on pages and because i use dynamic pages i have to make connection for each frame. and with throusands users being online it is bad for my server (traffic).

  • How to send material jpg attachment  from R3 to FTP with XI

    Hi All,
    I wantto send material JPG attachment from R3 to FTP with XI 3.0. Is there a way ?
    Thanks.

    Check these two blogs:
    /people/michal.krawczyk2/blog/2006/04/19/xi-rfc-or-abap-proxy-abap-proxies-with-attachments
    http://sapient.xi.googlepages.com/xi-excellentintegration
    Regards,
    Abhishek.

  • How do I print multiple (4) photos on one page with a border around each?

    How do I print multiple photos on one page with a border around each? I've gone the contact sheet route and adjusted the number of columns but there's only outer margins and very little white space between the photos down the middle of the page.

    Ok, now I feel stupid! I always thought I was printing 6 x 4 but now I realise I can't have done!!
    The photos that I used to print are approx. 5.2" x 4" (i.e. 4 fitted nicely on a page & I had to cut the boarder off).
    I guess I just need to play with different sizes under the 'custom' option in order to get the biggest possible picture!
    Thanks for the help

  • How to insert into 2 tables from the same page (with one button  link)

    Hi,
    I have the following 2 tables....
    Employees
    emp_id number not null
    name varchar2(30) not null
    email varchar2(50)
    hire_date date
    dept_id number
    PK = emp_id
    FK = dept_id
    Notes
    note_id number not null
    added_on date not null
    added_by varchar2(30) not null
    note varchar2(4000)
    emp_id number not null
    PK = note_id
    FK = emp_id
    I want to do an insert into both tables via the application and also via the same page (with one button link). I have made a form to add an employee with an add button - adding an employee is no problem.
    Now, on the same page, I have added a html text area in another region, where the user can write a note. But how do I get the note to insert into the Notes table when the user clicks the add button?
    In other words, when the user clicks 'add', the employee information should be inserted into the Employees table and the note should be inserted into the Notes table.
    How do I go about doing this?
    Thanks.

    Hi,
    These are my After Submit Processes...
    After Submit
    30     Process Row of NOTES     Automatic Row Processing (DML)     Unconditional
    30     Process Row of EMPLOYEES     Automatic Row Processing (DML)     Unconditional
    40     reset page     Clear Cache for all Items on Pages (PageID,PageID,PageID)     Unconditional
    40     reset page     Clear Cache for all Items on Pages (PageID,PageID,PageID)     Unconditional
    40     reset page     Clear Cache for all Items on Pages (PageID,PageID,PageID)     Unconditional
    40     reset page     Clear Cache for all Items on Pages (PageID,PageID,PageID)     Unconditional
    50     Insert into Tables     PL/SQL anonymous block     Conditional
    My pl/sql code is the same as posted earlier.
    Upon inserting data into the forms and clicking the add button, I get this error...
    ORA-06550: line 1, column 102: PL/SQL: ORA-00904: "NOTES": invalid identifier ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored
         Error      Unable to process row of table EMPLOYEES.
    Is there something wrong with the pl/sql code or is it something else?

  • How to add a Picklist/Drop down in a page with values (Without Personaliz)

    hi,
    i am very very new to OAF ....please help me out on the below requirement....
    Please suggest me how to add a pick list/drop down field to a page, with some values. (without personalization)
    And the second one is when ever i'll chose a value from the drop down the page will reload and display a message on the page.(messages are different for the different values)
    Thanks
    Prakash

    Prakash
    As mentioned by Anil you can use the above link for new poplist generation through extension. As far as reloading the page in that case you need to make use of PPR for that item.Do refer dev guide for more details
    You can use below code for creating poplist in processRequest of your extended controller
    OAMessageChoiceBean mcb = (OAMessageChoiceBean) createWebBean(pageContext, MESSAGE_CHOICE_BEAN);
    mcb.setPickListViewUsageName("TestVO");
    mcb.setListValueAttribute("LookupCode");
    mcb.setListDisplayAttribute("Meaning" );
    mcb.setID("test");
    mcib.setFireActionForSubmit ("event1",null,null,false, false);//This is event that cause reload of pageYou can handle the event in pfr method
      if("event1".equals(pageContext.getParameter("event")))
    }Thanks
    AJ

Maybe you are looking for