How to set the size for Popup with contains a Region

Hi,
i use ADF 11g (JDEVADF_11.1.1.1.0_GENERIC_090615.0017.5407) with ADF Faces as Frontend.
I have a Region (with many content) in a popup. When I call the popup the size of the popup is very small.
If i set explicit the width and height in px it works, but if I set the width and height in % it doesn't works.
        <af:popup id="p1">
          <af:dialog id="pw2" type="ok"
                     partialTriggers="t1:showBook">
            <af:region value="#{bindings.bookkeydata1.regionModel}" id="r1"
                       inlineStyle="width:850.0px; height:600px;"/>
          </af:dialog>
        </af:popup> It is possible to get the max. height and witdth from the browser-window in a Bean and set it dynamicly to the region?
To set the size in px is not the best solution I think.
kind regards
Martin

Hi,
Try setting percentages using af:panelStretchLayout inside a popup.
Thanks.

Similar Messages

  • How to set the size for height of iView tray?

    Hi,
    I have created a ABAP webdynpro component and integrated this comp with iView. Then i integrated iView into Page in portal. That is working fine.
    But the size of tray/window which is displayed in the page is very small.
    How to increase the height of that Tray/window/iView containing my component?

    Hi,
    By changing the maximum automatic height and Minimum automatic height property of the iview you can set the size for height of your iview.
    to do this follow the setps:
    goto content administrator -> portal content -> your folder where you created your iview or directly to your iview -> right click -> open -> object,
    and now in property category choose appearance-Size from the drop down menu and set the above properties to your required height.
    if you want the end user to modify this property set the property to read/write .
    *********please reward points if the information is helpful to you********************

  • How to set the size of popups from KM Navigation Iview

    Hello guys
    Does any of you know how I can set the size of the window that pops up when you click on a resource/file in a KM navigation iview?
    I have tried to enter "width=100,height=100" (without the quotes) in the Window Features property of the KM Navigation Iview, but it does not influence the size of the popups.
    Any suggestions to what could be wrong? Or is it not possible at all to control the size of that popup?
    Kind regards,
    Martin

    Hi,
    I cheched yesterday if I could find the command, sorry I couldn't.
    I also realized that the layout generates html link tags (ie. <a />) for the resource links, no javascript open link functions (ie. window.open), wich doesn't alowed (as far as I know) to give size to the pop-up window.
    So to make the link of the resource (gived by the <b>displayname(contectlink)</b> property set) I think you would have to <i>create (develop)</i> the layout, so the link will be rendered with window_size.
    You have other option, you can take off the "<i>contentLink</i>" setting. and add the <b>download</b> command, so the user who want to open / save the document can click on this command and do it in their PC.
    I.E, Create a copy of the <b>download</b>, and add this to the Collection render displayed porpeties:
    rnd:command(command=Z_download/style=link)
    You ca also use and icon to represent the download (you can set that icon in the command)
    I.E, rnd:command(command=Z_download_icon/style=icon)
    This last options represents a problem with the km-only-read content like xml files generaded by xml forms, it can only be readed in the km-portal.
    I hope this might help you.
    Best regards,
    Jorge M.

  • How to set the size for the content pane?

    * Login.java
    * Created on 15 March 2004, 17:17
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.sql.*;
    * @author Mindwalker
    public class Login extends javax.swing.JFrame implements ActionListener {
         private JFrame controllingFrame;
    private JPasswordField passwordField;
    private static String Login = "Login";
    /** Creates new form Login */
    public Login() {
    initComponents();
    /** This method is called from within the constructor to
    * initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is
    * always regenerated by the Form Editor.
    private void initComponents() {//GEN-BEGIN:initComponents
    PasswordEnter = new javax.swing.JTextField();
    User_name = new javax.swing.JTextField();
    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    jButton1 = new javax.swing.JButton();
    getContentPane().setLayout(null);
    addWindowListener(new java.awt.event.WindowAdapter() {
    public void windowClosing(java.awt.event.WindowEvent evt) {
    exitForm(evt);
    getContentPane().add(PasswordEnter);
    PasswordEnter.setBounds(150, 160, 140, 20);
    getContentPane().add(User_name);
    User_name.setBounds(150, 120, 140, 20);
    jLabel1.setText("Password");
    getContentPane().add(jLabel1);
    jLabel1.setBounds(40, 160, 70, 16);
    jLabel2.setText("User name");
    getContentPane().add(jLabel2);
    jLabel2.setBounds(40, 120, 80, 16);
    jButton1.setText("Login");
    getContentPane().add(jButton1);
    jButton1.setBounds(170, 210, 81, 26);
    jButton1.addActionListener(this);
    pack();     

    You don't learn anything by using GUI building tools. You learn by reading. Here's a section from the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/layout/index.html]Using Layout Managers that also deals with "Absolute Positioning".

  • How to set the size of a JTabbedane to the size of the frame

    I have a tabbed pane in a frame, I would like to know how to set the size of the tabbed pane, so that it occupies the whole of the frame which has been set to screen size.
    Thanks

    Is it not possible to use it with a GridBagLayout?Your question was "How do I get a tabbed pane to take all the space of the frame"?
    You where given the answer. Did you try it? Did it work? Then why are you questioning the suggestion?
    Its one line of code if you use a BorderLayout which by the way was specifically designed for this purpose.
    Yes you can do it with a GridBagLayout with about 5 lines of code.
    So the question is why would you want to write 5 lines of code when you can use one?
    If your question was "How do I waste my time forcing the GridBagLayout to size a component to take up all the space of the frame", then you would have received a different answer. (Although most people would have told you to use a BorderLayout anyway, since its easier).

  • How to modify the blob size, or how to set the size?

    i want to know how to modify the blob size, or how to set the size?
    what's the default size of blob?
    Thanks in advance.

    Blob datatype can contain binary data with a maximum size of 4 GB.
    when you enter 10kb file, the database will only use 10kb to store the file (depending on block size etc)
    if you want to modify the blob size, you may do like this:
    SQL> create materialized view t_mv refresh fast on commit
    2 as select id, dbms_lob.getlength(x) len from t;
    Materialized view created.
    SQL> alter table t_mv add constraint t_mv_chk check (len < 100);
    Table altered.

  • How to set percentage size for layout? for example : VBox,HBox,AnchorPane,.

    how to set percentage size for layout? for example : VBox,HBox,AnchorPane,......
    like HTML
    &lt;div width=&quot;640px&quot; height=&quot;480px&quot;&gt;
    &lt;div widht=&quot;50%&quot; height=&quot;60%&quot;/&gt;
    &lt;div widht=&quot;30%&quot; height=&quot;60%&quot;/&gt;
    &lt;div widht=&quot;20%&quot; height=&quot;60%&quot;/&gt;
    &lt;/div&gt;
    -----

    This is not supported. You can file a feature request at http://javafx-jira.kenai.com

  • How to enable root on mac on 10.9.2 and how to set the password for the same ?

    how to enable root on mac on 10.9.2 and how to set the password for the same ?

    http://support.apple.com/kb/ht1528
    Follow the steps for Lion.
    But, why are you doing this? I've never found the need to do that.

  • How to creat the Varient for 1099MISC With Holding Tax

    How to create the Variant for 1099MISC With Holding Tax ?

    HI,
    please follow the below steps to create variant at report.
    tcode se38
    report RFIDYYWT
    pass all the parameters
    press save icon
    give variant name
    retrive the variant in report
    tcode se38
    report name RFIDYYWT
    press : shift + F5
    or get varinat icon.
    I hope above will resolve your issue.
    Regards
    Madhu M

  • How to set the icon for the entire application with JFrame.setIconImage

    I set the icon on the main frame using JFrame.setIconImage(). The icon is shown properly in the main frame.
    If more JFrames are opened from the main frame, the newly opened JFrames also show the icon.
    However if JDialogs are opended, in some cases the icon set on the main frame is shown and in other cases the coffee cup.
    What is JFrame.setIconImage() expected to do? Setting the icon for a single JFrame or the entire application?
    How can I set the icon for the entire application?
    How can I set the icon for JDialogs?
    Thank you

    In order for your dialogs to use the same icon as the frame, you must parent the dialogs to the frame which has the custom icon.
    See the following thread for more information: http://forum.java.sun.com/thread.jsp?forum=57&thread=362542
    cheers,
    Greg

  • How to set the size of SUM()/SUM() of NUMBER Tyep?

    I met the oracle truncation error when I post the
    SUM(a field)/SUM(b field), a and b field are NUMBER Type
    From the OCI Doc, Numbers with up to 38 digits precision.
    and I set the size of data buffer 41 for NUMBER TYPE.
    (for example)
    rc = OCIDefineByPos( hstmt, &m_pDefine, ((CEBOracle *)pDatabase)->m_hpErr, index,
                   (dvoid *) m_lpszBindData, m_nBufSize+1, SQLT_STR,
                   (dvoid *) m_cbIndicator, (ub2 *) 0, (ub2 *) 0, OCI_DEFAULT);
    I always set the output datatype as SQLT_STR
    and m_nBufSize is 41 for NUMBER Type
    my client met the error when the result is 0.00012345678912345678912345678912345678912
    I think that it's not a solution that just enlarge the number form 41 -> 45
    How can I avoid this problem when user send the SQL Statement that the result has unlimited decimal number?
    Thank you in advancd

    ORA-01406 fetched column value was truncated
    I found the reason of that problem.
    I migrated from OCI Ver7 to Ver8
    If I set the buffer size to 10 (actually 40 in my program) and the result was
    0.0000000000000000001
    When I debuged the output buffer
    The result was 1.0E-19
    but now 0.00000000 and truncation error
    how to change floating point and scientific expression automatically depend on the result like OCI Ver7 and SQL PLUS?
    I changed define function
    odefin(m_hstmt, ii+1, (UCHAR *) m_lpszData[ii], m_lpLength[ii]+1, SQLT_STR, -1, m_lpcbValue[ii], 0, -1, -1, 0, 0);
    to
    m_rc = OCIDefineByPos( m_hstmt, &pDef, ((CEBOracle*) m_pDatabase)->m_hpErr, ii+1,
              (dvoid *) m_lpszData[ii], m_lpLength[ii]+1, SQLT_STR,
              (dvoid *) m_lpcbValue[ii], (ub2 *) 0, (ub2 *) 0, OCI_DEFAULT );

  • How to set the size of combo box  using jsf

    I face problem when i set the size of a combo in jsf

    Is it not possible to use it with a GridBagLayout?Your question was "How do I get a tabbed pane to take all the space of the frame"?
    You where given the answer. Did you try it? Did it work? Then why are you questioning the suggestion?
    Its one line of code if you use a BorderLayout which by the way was specifically designed for this purpose.
    Yes you can do it with a GridBagLayout with about 5 lines of code.
    So the question is why would you want to write 5 lines of code when you can use one?
    If your question was "How do I waste my time forcing the GridBagLayout to size a component to take up all the space of the frame", then you would have received a different answer. (Although most people would have told you to use a BorderLayout anyway, since its easier).

  • How to set the background for all components?

    hi
    Does anybody know how to set the DEFAULT background color in an application.. I need it because in jdk 1.3 the default bgcolor is grey and in 1.5 it is white.. and I wish white as well.. so to make it also white in jdk 1.3 I need to use the (a bit annoying) anyContainer.setBackground( Color.white ); and these are lots in my app.. So my question is: is there such an overall class with a function (say UIManager.setComponentsBackground( Color color ) ) for such a purpose?
    any tip or link would be greatly appreciated

    Does anybody know how to set the DEFAULT background color in an applicationthis might get you close
    import java.awt.*;
    import javax.swing.*;
    import java.util.Enumeration;
    class ApplicationColor extends JFrame
      public ApplicationColor()
        setApplicationColor(Color.RED);
        setLocation(400,300);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        JPanel jp = new JPanel(new BorderLayout());
        jp.add(new JTextField("I'm a textfield"),BorderLayout.NORTH);
        jp.add(new JComboBox(new String[]{"abc","123"}),BorderLayout.CENTER);
        jp.add(new JButton("I'm a button"),BorderLayout.SOUTH);
        getContentPane().add(jp);
        pack();
      public void setApplicationColor(Color color)
        Enumeration enum = UIManager.getDefaults().keys();
        while(enum.hasMoreElements())
          Object key = enum.nextElement();
          Object value = UIManager.get(key);
          if (value instanceof Color)
            if(((String)key).indexOf("background") > -1)
              UIManager.put(key, color);
      public static void main(String[] args){new ApplicationColor().setVisible(true);}
    }

  • How to set the conditions for item deletion approval workflow?

    Hi,
    I have created approval workflow for item modifications ie, when user try to modify an item, it will send a mail to Project Manager. For that I set the conditions in Change the behavior of the overall task: 1. When the task process starts 2 . When the task
     process completes .
    Change the behavior of the single task: 1.when a task is Pending.
    [I followed this https://www.nothingbutsharepoint.com/sites/eusp/Pages/5-Steps-to-Enhance-SharePoint-2010-Approval-Workflow.aspx ]
    My Requirement is that I want to set this same workflow for the scenario: when the user deletes an item it will send a mail (intimation mail for item deletion) to Project Manager. here i dont want to send modification mails when user deletes an item.
    When user modifies an item: 1. intimation mail, 2. Approve/Reject mail 3. intimation for approval / rejection mail.
    When user deletes an item: 1. intimation mail.
    How can we set it in one approval workflow?? where i have to set the condition for sending either item modification mails or deletion mail.
    Thanks,
    Praveen ji

    Hi,
    According to your post, my understanding is that you wanted to start approval workflow when item deleted.
    You should first make some changes to trigger the workflow when you delete the item.
    You can use the Event Receiver to achieve it.
    In order to trigger workflow on item delete you need to create event receivers and from event receiver call the workflow already attached with list.
    http://ravendra.wordpress.com/sharepoint-workflow-on-list-item-delete/
    You can also create custom action to start the workflow, you can refer to the following article, then modify the workflow as your need.
    http://blogs.sharepoint911.com/blogs/jennifer/Lists/Posts/Post.aspx?ID=50
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How to set the size of printing subject

    I have a deskjet 3520 all in one and my computer is a laptop dv6 with windows7 prof. 64bit.
    I want to print out PCB traces so that I can make my own but I don't know to how set the size
    with this printer. They take up the whole page when I want them to be 2.35x3.35.
    Don't know if this can be done with this printer.
    Any help would be apreciated.
    This question was solved.
    View Solution.

    Can you post a link to a sample, or upload here a sample?  That would make it easier to debug what is going on.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

Maybe you are looking for

  • Can't Connect OfficeJet 7410 to new wireless network - used to work on old one

    Hi, I'm on a Mac OS.  I just upgraded my wireless network to use an airport extreme.  I have a verizon fios router - same as I had when it used to connect.  The only change was adding the airport extreme.  Now, the officejet 7410 all-in-one will not

  • Grey restart and program crashes after logic board replacement?

    Apologies for if a thread already exists for this, I had a look around and nothing seems to quite fit the problems I'm experiencing- I recently got the logic board replaced on a 13-inch macbook pro, osx lion, 10.7.5. I got this done because of the fa

  • Lock when trying to update a Z-field in MARD

    Hi, I have a Z-field in an append to MARD. In MIGO we create an output idoc (a custom made Z-idoc) and in the function module processing the idoc I want to update my Z-field in MARD. The update in MARD are made with a bapi called BAPI_MATERIAL_SAVEDA

  • Graphical mess-mapping help needed: select single segment from many

    Hi All, I am sending a standard PO IDOC from R/3  and converting it into a file before sending to 3rd party. The IDOC used is ORDERS. In this IDOC segment E1EDK14 gets repeated in R/3 and I want to use the value of 009th occurance (E1EDK14 009) to ma

  • VideoDisplay goes black screen (audio only)

    Is there a work around or update that will help me with this problem my VideoDisplay goes black screen (audio only) on flash player 9,0,115,0 on windows only IE and Firefox. no matter what i do i cannot figure out why after searching the web i found