Alignment in messageList - uix

May I know how to align text in messageList?
Edited by: user9079482 on Feb 7, 2010 10:36 PM
Edited by: user9079482 on Feb 7, 2010 10:38 PM

You cannot align the text within the TextArea itself.
If you could, that would result in quite a few
problems - for example, if you set the alignment to
the right and allowed people to type in the box,
should the words slowly march to the left as you
typed them in?
You can align the TextArea itself within the JPanel or
whatever component you use, with the functions
JTextArea.setAlignmentX( float Alignment ) and
JTextArea.setAlignmentY( float Alignment). Legal
values of alignment are:
BOTTOM_ALIGNMENT
CENTER_ALIGNMENT
LEFT_ALIGNMENT
RIGHT_ALIGNMENT
TOP_ALIGNMENT
Honestly, in the time you've spent waiting for this
answer, you could have easily looked it up yourself
at:
http://java.sun.com/j2se/1.4.1/docs/api/
Hi David, Thankyou for your reply. I have concluded the JTextArea Alignment procedure from my Docs/API. But I asked above not about JTextArea(swing). I asked, can I do the same thing in simple TextArea(AWT) instead of JTextArea .

Similar Messages

  • ADF UIX: Get value in LOV messageList.

    I have a messageList that bind to a vo but when I call getTxtCodeCat method from the Struts form bean in Action Class, it does always return me a list index (0,1,2...).
    <struts:messageList model="${data.protecteddoc_GN_GnCodeSetupUIModel.CodeDescription}" name="txtCodeCat" prompt="[Code Category]" styleClass="DropdownMedium" required="yes" size="1">
    <contents childData="${data.protecteddoc_GN_GnCodeSetupUIModel.CodeDescription.displayData}">
    <option model="${uix.current}"/>
    </contents>
    </struts:messageList>
    Please advice how do I retrieve the value instead of index from the LOV?

    This thread is a duplicate. Direct all followups to:
    Urgent! ADF UIX:LOV messageList returned index no. during runtime.

  • UIX: MessageList : How to add empty option?

    Hi everyone, I've got this MessageList code:
    <messageList model="${bindings.IdUnidadOrg1}" prompt="Father" required="no">
    <contents childData="${bindings.IdUnidadOrg1.displayData}">
    <option model="${uix.current}"/>
    </contents>
    </messageList>
    The data in the bindings don't contain the empty option, how can I add it, so the user can choose between the data in the bindings or nothing?
    I tried this:
    <contents childData="${bindings.IdUnidadOrg1.displayData}">
    <option value="" text="None"/>
    <option model="${uix.current}"/>
    </contents>
    But it renders the "None" option once for each current object.
    Thanks for your help in advance.
    Fernando.

    <contents
    childData="${bindings.IdUnidadOrg1.displayData}">
    <option value="" text="None"/>
    <option model="${uix.current}"/>
    </contents>Hi Fernando!
    Try this syntax, it should work fine.
    <contents>
    <option text="" value=""/> <!-- this is what you're looking for. Putting the empty option outside of the datascope--->
    <dataScope>
    <contents childData="${bindings.<iterator of the viewobject you want to query>.allRowsInRange}">
    <option text="${uix.current.att1}" value="${uix.current.att2}"/>
    </contents>
    </dataScope>

  • UIX Tab Alignment

    Hi,
    Is there any way to align a tab bar (UIX) to the left side instead the right side?
    We're using a template file (uit) for the tab definition as shown:
          <tabs>     
              <tabBar selectedIndex="${uix.rootAttr.selectedTab}" >
                <contents>
                  <link text="Option 1" destination="bla bla"/>
                 <link text="Option 2" destination="bla bla 2"/>
                </contents>
              </tabBar>
          </tabs>  I tried with a pageHeaderLayout but JDev report an error: pageHeaderLayout not defined in parent pageLayout.
    Thanks!
    Gerardo

    The tabBar is - in the end - just an image. You can put it anywhere you want to.
    If you place it in a rowLayout you can determine with hAlign where it ends.
    Sascha

  • UIX: align left

    Hi,
    I want to align the rows in the tables of input_form, master_details, search (creteria) left. the prompt is align right and the and the inputfield left. I just want them to be aligned left.
    hope to hear from you soon.

    try setting the styleClass attribute on the
    messageTextInput and changing the alignment via css.

  • UIX/XML: Multicolumn layout for messageTextInput (urgent ...please)

    I need to render a number of textInput UIX beans (and comboboxes a.s.o.) together with a label and render a small icon right next to it. Since our application renders a lot of theses controls on one screen, we want the controls to be aligned the following way:
    LLLL___TTTTT I
    LL_____TTTTTTTTT I
    LLLLLL_TTT I
    So, I want the labels left aligned one below the other, and the textInput fields should also be left aligned. (Like a table with one column for the labels and one column for the input textfields).
    I only managed to get a layout like that, when using separate controls for the textInput and the label. This however this has the downside, that whenever I get a validator error message, it doesn't display the name of the controls that have an invalid value.
    Is there any way to achieve such a layout with the message... controls?
    Thanks

    The easiest control to use for this layout is <labeledFieldLayout>:
    <labeledFieldLayout>
    <contents>
    <messageTextInput .../>
    <messageTextInput .../>
    <messageTextInput .../>
    <messageTextInput .../>
    </contents>
    </labeledFieldLayout>
    You'll have to live with right-aligned prompts, which are a standard
    enforced by all the messageXXX components.

  • UIX/XML:  Layout for textInput controls

    I need to render a number of textInput UIX beans (and comboboxes a.s.o.) together with a label and render a small icon right next to it. Now that itself is not a problem, but I want the labels and the controls to be aligned in the following way:
    LLLLLLL TTTTT I
    LLL TTTTTTTTT I
    LLLLLL TT I
    Is there any way to achieve that with the messageTextInput bean?
    I tried using the normal textInput beans together with a styled text in a tableLayout. This displays nicely, but whenever a validator fails a messagebox is displayed that says something like:
    value required in ""
    That makes validators completely unusable.
    Any idea how to get the layout right and have meaningful validator messages?
    Actually I would strongly prefer using the messageTextInput bean, since it does so many nice things for me...

    The messageTextInput bean adheres to the BLAF, which state that labels should be right aligned.
    You can do what you are trying to do by using a messagePrompt and a textInput. Make sure to set "id" on textInput uniquely, and labeledNodeId on messagePrompt to match. This will allow the validators to use the prompt attribute to display an understandable message. You can put your information inside of a tableLayout to get it to align the way you want.
    Here is an example:
    <styledText styleClass="OraHeaderSubSub" text="message Prompt with text Input"/>
    <tableLayout     cellSpacing="5">
    <contents>                                        
    <rowLayout >
    <contents >                                   
    <cellFormat hAlign="left" >
    <contents>
    <messagePrompt prompt="Enter a number" labeledNodeId="messageOne" required="yes"/>
    </contents>
    </cellFormat>
    <cellFormat hAlign="left">
    <contents>
    <textInput id="messageOne" text="5" >
    <onBlurValidater>
    <decimal />
    </onBlurValidater>
    </textInput>
    </contents>
    </cellFormat>
    </contents>
    </rowLayout>
    <rowLayout >
    <contents >
    <cellFormat hAlign="left" >
    <contents>
    <messagePrompt prompt="label" labeledNodeId="messageTwo" required="yes"/>
    </contents>
    </cellFormat>
    <cellFormat hAlign="left" >
    <contents>
    <textInput id="messageTwo" text="value" message="message" >
    <onBlurValidater>
    <decimal />
    </onBlurValidater>
    </textInput>
    </contents>
    </cellFormat>
    </contents>
    </rowLayout>
    </contents>
    </tableLayout>

  • ADF UIX cancel/rollback button?

    Hi
    We're having a fair amount of trouble implementing a "cancel" button in our ADF UIX application (JDev 10.1.2). Apologies to those who read this same post on the ODTUG mailing list..... I'm hunting for even a hint of an answer before I approach Oracle Support.
    To set the scene, we have a parent VO "Departments" with child VOs "Dispatch" and "Agency". Dispatch also has a FK to Agency.
    We have a UIX view-screen that displays in a master-detail relationship Departments and Dispatch. From this screen the user can select the edit button, which navigates to an input-form screen to edit the currently selected Dispatch record.
    The Dispatch record has effective_from and effective_to dates. The underlying EO has a MethodValidator that ensures the from date <= the to date.
    On the edit screen we currently provide 2 buttons, Ok and Cancel. The Ok submitButton is bound to the commit binding, and navigates back to the view page via a struts link on completion.
    If the user selects the ok button and MethodValidator returns an error, the edit page's MessageBox displays the error and the user remains at the edit page until they resolve the issue.
    Our problems start with the cancel button.
    Originally we implemented the Cancel button as a simply "button" that navigated back to the view page. This worked well as the changes are never submitted, and on returning to the view page the record is presented in it's original state before being edited, thus the user's changes have been "cancelled".
    However if the user was editing an existing record, entered invalid dates that violated the MethodValidator, clicked ok and saw the MethodValidator error, then clicked cancel, on returning to the view page, any changes to the underlying record are visible including the invalid dates. I believe this occurs because the record has been submitted to the mid-tier by the ok button, and as such the changes now lies in the mid-tier.
    Given that a cancel "button" which simply navigates back to the view page is not a viable solution, we decided to investigate using a rollback button on our edit page, which then navigated back to the view page.
    There is a nasty side affect in using the rollback functionality, and has been a continuous frustration mentioned on OTN. When rollback is issued, it appears all iterators in the running application have their current row reset to the first element.
    This is a pain as in our example this results in not only the Dispatch iterator being reset to the first element, but also the parent Departments iterator, and presumably all other iterators in the application too. This would be an extreme annoyance to the user in every time they selected cancel, they would then need to navigate back to the correct Departments and Dispatch record if they wanted to make a different change.
    As such it is necessary to write some code to store the iterator positions before issuing the rollback, rolling-back, then restoring the iterator positions from the saved states.
    Luckily we found some code on OTN to do this:
    ADF - cancel button not working in input form(add new row)?
    This mechanism appeared to work, but, then, we did find one problem.
    I described at the beginning that our Dispatch VO is not only related to Departments but also Agency. To cater for this in our edit screen by including a LOV bound <messageList>, which displayed the relating Agencies for the user to select from.
    In using the pinched OTN rollback code, in the same scenario as previously, when the user edits a record, invalidates the MethodValidator after clicking ok, then clicks cancel, on returning to the view page, the field in Dispatch that represents the Agency is incorrectly showing a numeric result such as 0, 1, 2 etc. We realised that the value being shown is the previous edit screen's <messageList> internal index number representing the value selected in the list, and not the actual value itself.
    We're note sure why the OTN rollback code is causing this to occur. Though it restores the Agency iterator's position, it shouldn't result in the <messageList> index being written to the underlying Dispatch agency field, but rather the value the <messageList> index represents.
    It appears to me we're caught between a "rock and a hard-place" here. The simple solution of using a cancel "button" doesn't work when errors are raised. The complex case of using a "rollback" button doesn't work due to the problem with the <messageLists>.
    My research on OTN shows the "cancel vs rollback" button is a common frustration. Can somebody help me in providing a satisfactory "cancel" button that I can use throughout my app please?
    Many thanks in advance.
    Chris Muir

    The stack:
    Class                     Method
    UsrEcvAmpdsViewRowImpl    setAgency
    UsrEcvAmpdsViewRowImpl    setAttrInvokeAccessor
    ViewRowImpl               setAttribute
    DCDataControl             setAttributeInRow
    DCJboDataControl          setAttributeInRow
    JUCtrlValueBinding        setAttributeInRow
    JUCtrlValueBinding        setInputValue
    JUCtrlValueBinding        setInputValue
    InitModelListener         _setInputValue
    InitModelListener         _doModelUpdate
    InitModelListener         eventStarted
    AbstractPageBroker        _fireUIXRequestEvent
    AbstractPageBroker        handleRequest
    BaseUIPageBroker          handleRequest
    PageBrokerHandler         handleRequest
    UIXServlet                doGet
    HttpServlet               service
    HttpServlet               service
    ResourceFilterChain       doFilter
    JAZNFilter                doFilter
    ServletRequestDispatcher  invoke
    ServletRequestDispatcher  forwardInternal
    ServletRequestDispatcher  forward
    RequestProcessor          doForward
    RequestProcessor          processForwardConfig
    RequestProcessor          process
    ActionServlet             process
    ActionServlet             doGet
    HttpServlet               service
    HttpServlet               service
    ResourceFilterChain       doFilter
    JAZNFilter                doFilter
    ServletRequestDispatcher  invoke
    ServletRequestDispatcher  forwardInternal
    ServletRequestDispatcher  forward
    RequestProcessor          doForward
    RequestProcessor          processForwardConfig
    RequestProcessor          process
    ActionServlet             process
    ActionServlet             doGet
    HttpServlet               service
    HttpServlet               service
    ResourceFilterChain       doFilter
    JAZNFilter                doFilter
    EvermindFilterChain       doFilter
    ADFBindingFilter          doFilter
    ServletRequestDispatcher  invoke
    ServletRequestDispatcher  forwardInternal
    HttpRequestHandler        processRequest
    HttpRequestHandler        run
    HttpRequestHandler        run
    ReleasableResourcePooledExecutor$MyWorker run
    Thread  runAt a wild guess, InitModelListener is causing the issue, because it's the first place where we can see a setInputValue occuring?
    To make this official I've raised a TAR (4613003.992) with Oracle Support with a cut down version of our app to work through the issue.

  • Problem in UIX with Layouts

    Hi,
    I am trying to modify a UIX page which has some components.
    I have to add another drop down component to it, which should have farily long tip text and an information icon just besides the drop down.
    The present components have been arranged in a labeledFieldLayout. I cant arrange my drop down with tip text and an information icon with proper alignment in the same layout. If I try to create a new labeledFieldLayout, there is an alignment issue again. Same with using <tableLayout><rowLayout> and <cellFormat>. Is there any way I can achieve the same?
    Any reply would be valuable.
    Thanks and Regards,
    Amit

    I am not sure how you generated a transport.After saving the layouta, click on Table view at top and then select transport.
    This might help
    Sarang

  • UiXML table - alignment of column header text

    Is there a way I can get the text in the columnHeader to align differently to the column data? I have a <messageDateField> capturing a date of birth in a column. This date is only mandatory if the person is a child, so I'm databinding the 'required' attribute to get the asterisk to appear next to the box. But because some entries in the column are not mandatory, the alignment down the column doesn't look good. I'd like the <columnHeader> text to be left aligned and the <messageDateField> to be right aligned so that the date picker icons line-up.
    Anybody help please?
    Cheers
    Ian
    ps I'm using encapsulated <column>s.

    Hi Ian,
    You can't directly set the alignment of column headers or data. The way it works is that you can specify a columnFormat inside your column for example:
    <columnFormat columnDataFormat="iconButtonFormat"/>
    And then UIX will decide how to align the header and data in teh column for that type of data. I don't believe there is a way to control the alignment of the column header independently of the columnDataFormat.

  • UIX/XML: XSS styleSheets

    I'm trying to override some styles from the blaf.xss. So i created my own stylesheet like so:
    <styleSheetDocument xmlns="http://xmlns.oracle.com/uix/style">
    <styleSheetDocument xmlns="http://xmlns.oracle.com/uix/style">
    <import href="blaf.xss"/>
    <styleSheet>
    <style name="DefaultFontFamily">
    <property name="font-family">serif</property>
    </style>
    <style selector=".OraTableCellText">
    <includeStyle name="DefaultFont"/>
    <includeStyle name="LightAccentBackground"/>
    <includeStyle name="TextForeground"/>
    <property name="vertical-align">top</property>
    </style>
    And I created the following uix-config.xml file in the same dir as the web.xml file:
    <configurations xmlns="http://xmlns.oracle.com/uix/config">
    <default-configuration>
    <styles-directory>Y:\eRefFE\public_html\styles\</styles-directory>
    <style-sheet-name>fti.xss</style-sheet-name>
    <accessibility-mode>inaccessible</accessibility-mode>
    </default-configuration>
    </configurations>
    Now for some reason my redefined styles are not applied.
    Why?
    Thanks,
    Guido

    Thanks Adam, that helped - a bit.
    I'm now using the following uix-config file:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <configurations xmlns="http://xmlns.oracle.com/uix/config">
    <default-configuration>
    <styles-directory>
    <context-uri>\styles\</context-uri>
    </styles-directory>
    <style-sheet-name>fti.xss</style-sheet-name>
    <accessibility-mode>inaccessible</accessibility-mode>
    </default-configuration>
    </configurations>
    but it seems my <style-sheet-name> element is ignored. It always uses blaf.xss in the styles directory - when I modify the blaf.xss it works. But I dont want to do that.
    Maybe there's something wrong with my xss file:
    <?xml version="1.0"?>
    <styleSheetDocument xmlns="http://xmlns.oracle.com/uix/style">
    <import href="blaf.xss"/>
    <styleSheet>
    <style selector=".OraTableCellText">
    <property name="vertical-align">top</property>
    </style>
    <style selector=".OraTableCellSelect">
    <property name="vertical-align">top</property>
    </style>
    <style selector=".OraTableCellIconButton">
    <property name="vertical-align">top</property>
    </style>
    <style selector=".OraTableCellIconButtonBand">
    <property name="vertical-align">top</property>
    </style>
    </styleSheet>
    </styleSheetDocument>
    Any idea?
    Guido

  • Uix:train within a Struts Form v. UIX form

    I'm trying to implement the uix:train component within several of my JSP's. All of these JSP's are using Struts forms rather than UIX forms.
    Is it possible to use the uix:train tag within a Struts form or must I use a uix:form ?
    If I need to use a UIX form, can someone help me understand how to get the tag to actually submit the form to the destination that I am specifying rather than submitting back to itself?
    I can get the train tag to work regardless of form type if I don't specify true for the formSubmitted property of the train tag. However, I need to actually submit the form because there are form values other than "goto" and "source" and "id", that I need access to when going to the designated JSP.
    Thanks!
    -Teri

    I'm using 9.0.3, and I do see a marlinCore.js reference in the source.
    Here's what's displayed when I view source:
    <html>
    <head><title>Archipelago's ArcaVision</title>
    <link rel="stylesheet" charset="UTF-8" type="text/css" href="/ARCA-ArcaVision-context-root/cabo/styles/cache/blaf-en-ie-6.css">
    <body>
    <table id="piTrain" cellpadding="0" cellspacing="0" border="0" summary="" align="center"><script>function _navBarSubmit(formName, navBar, vld, val, sze, partialTargets){var i = val.indexOf(',');if (i >= 0){sze = val.substring(i+1);val = val.substring(0, i);}var submitFunc = (partialTargets == (void 0)) ? submitForm : _submitPartialChange;return submitFunc(formName,vld,{event:'goto',source:navBar,value:val,size:sze,partialTargets:partialTargets});}function _navChoiceSubmit(choice, formName, navBar, vld, size, partialTargets){if (!_navBarSubmit(formName, navBar, vld, choice.options[choice.selectedIndex].value, size, partialTargets)){choice.selectedIndex = choice._lastValue;}}</script><tr><td width="20"></td><td align="right"><img src="/ARCA-ArcaVision-context-root/cabo/images/cache/c-trasl-1.gif" alt="Account Search: Active step" width="12" height="23"></td><td><table cellpadding="0" cellspacing="0" border="0" width="100%" summary="" background="/ARCA-ArcaVision-context-root/cabo/images/cache/c-truj-1.gif"><tr><td height="23" align="left"><img src="/ARCA-ArcaVision-context-root/cabo/images/cache/c-trasr-1.gif" alt="Account Search: Active step" width="11" height="23"></td></tr></table></td><td><table cellpadding="0" cellspacing="0" border="0" width="100%" summary="" background="/ARCA-ArcaVision-context-root/cabo/images/cache/c-truj-1.gif" height="23"><tr><td><script>function t(width,height){document.write('<img alt="" src="/ARCA-ArcaVision-context-root/cabo/images/t.gif"');if (width!=void 0)document.write(' width="' + width + '"');if (height!=void 0)document.write(' height="' + height + '"');document.write('>');}t(20,1)</script></td></tr></table></td><td><table cellpadding="0" cellspacing="0" border="0" width="100%" summary="" background="/ARCA-ArcaVision-context-root/cabo/images/cache/c-truj-1.gif"><tr><td height="23" align="right"><img src="/ARCA-ArcaVision-context-root/cabo/images/cache/c-trusl-1.gif" alt="Basic Account Detail: Next step" width="12" height="23"></td></tr></table></td><td><table cellpadding="0" cellspacing="0" border="0" width="100%" summary="" background="/ARCA-ArcaVision-context-root/cabo/images/cache/c-truj-1.gif"><tr><td height="23" align="left"><img src="/ARCA-ArcaVision-context-root/cabo/images/cache/c-trusr-1.gif" alt="Basic Account Detail: Next step" width="11" height="23"></td></tr></table></td><td><table cellpadding="0" cellspacing="0" border="0" width="100%" summary="" background="/ARCA-ArcaVision-context-root/cabo/images/cache/c-truj-1.gif" height="23"><tr><td><script>t(20,1)</script></td></tr></table></td><td><table cellpadding="0" cellspacing="0" border="0" width="100%" summary="" background="/ARCA-ArcaVision-context-root/cabo/images/cache/c-truj-1.gif"><tr><td height="23" align="right"><img src="/ARCA-ArcaVision-context-root/cabo/images/cache/c-trusl-1.gif" alt="Distribution Detail: Next step" width="12" height="23"></td></tr></table></td><td><table cellpadding="0" cellspacing="0" border="0" width="100%" summary="" background="/ARCA-ArcaVision-context-root/cabo/images/cache/c-truj-1.gif"><tr><td height="23" align="left"><img src="/ARCA-ArcaVision-context-root/cabo/images/cache/c-trusr-1.gif" alt="Distribution Detail: Next step" width="11" height="23"></td></tr></table></td><td><table cellpadding="0" cellspacing="0" border="0" width="100%" summary="" background="/ARCA-ArcaVision-context-root/cabo/images/cache/c-truj-1.gif" height="23"><tr><td><script>t(20,1)</script></td></tr></table></td><td><table cellpadding="0" cellspacing="0" border="0" width="100%" summary="" background="/ARCA-ArcaVision-context-root/cabo/images/cache/c-truj-1.gif"><tr><td height="23" align="right"><img src="/ARCA-ArcaVision-context-root/cabo/images/cache/c-trusl-1.gif" alt="Data Permissions: Next step" width="12" height="23"></td></tr></table></td><td><table cellpadding="0" cellspacing="0" border="0" width="100%" summary="" background="/ARCA-ArcaVision-context-root/cabo/images/cache/c-truj-1.gif"><tr><td height="23" align="left"><img src="/ARCA-ArcaVision-context-root/cabo/images/cache/c-trusr-1.gif" alt="Data Permissions: Next step" width="11" height="23"></td></tr></table></td><td><table cellpadding="0" cellspacing="0" border="0" width="100%" summary="" background="/ARCA-ArcaVision-context-root/cabo/images/cache/c-truj-1.gif" height="23"><tr><td><script>t(20,1)</script></td></tr></table></td><td><table cellpadding="0" cellspacing="0" border="0" width="100%" summary="" background="/ARCA-ArcaVision-context-root/cabo/images/cache/c-truj-1.gif"><tr><td height="23" align="right"><img src="/ARCA-ArcaVision-context-root/cabo/images/cache/c-trusl-1.gif" alt="Report Permissions: Next step" width="12" height="23"></td></tr></table></td><td align="left"><img src="/ARCA-ArcaVision-context-root/cabo/images/cache/c-trusr-1.gif" alt="Report Permissions: Next step" width="11" height="23"></td><td width="20"></td></tr><tr><td></td><td colspan="2" class="x2m">Account Search</td><td></td><td colspan="2" class="x2o"><a onclick="_navBarSubmit('PersonalInfoForm','piTrain',1,'2');return false" href="#">Basic Account Detail</a></td><td></td><td colspan="2" class="x2o">Distribution Detail</td><td></td><td colspan="2" class="x2o">Data Permissions</td><td></td><td colspan="2" class="x2o">Report Permissions</td><td></td></tr></table>
    <script src="/ARCA-ArcaVision-context-root/cabo/jsLibs/MarlinCore.js"></script><form id="PersonalInfoForm" name="PersonalInfoForm" style="margin:0px" method="POST" action="personalInfoSearch.do">
    <input type="hidden" name="event">
    <table align="center" cellpadding="1" cellspacing="4" border="0" width="100%">
    <tr>
    <td align="right" width="25%">First Name:</td>
    <td align="left">
    <input type="text" name="firstName" size="45">
    </td>
    </tr>
    </table>
    <input type="hidden" name="source"><input type="hidden" name="value"><script>var resetPersonalInfoFormNames=["source","value"];</script><script>function PersonalInfoFormValidater(form){return true;}</script></form>
    </body>
    </html>

  • UIX Layout with Hide/Show

    Hi,
    I've an UIX page with a flowLayout. The flowLayout have an internal labeledFieldLayout with several messageTextInputs. As is, the layout is perfect and completely aligned.
    Now, I added a "hideShow" with a flowLayout and inside a labeledFieldLayout with several messageTextInputs. If I expand the hideShow all the contents inside it are displayed on the left side of the page and does not look aligned with the rest of the page.
    This is an example:
       messageText1
       messageText2
       +hideShow (expanded)
    messageText3
    messageText4  // Last message inside the hideShow
       messageText5How can I keep the same alignment across the entire page?
    Thanks in advance!
    Gerardo

    You should only put message components in labeledFieldLayout. You can try adding a stackLayout, so you have something like this:
    stackLayout
    labeledFieldLayout
    message components inside labeledFieldLayout
    hideShow at level of labeledFieldLayout
    labeledFieldLayout
    the other message components inside labeledFieldLayout.
    Jeanne

  • JDev 10.1.2: How to set a Date attribute through a list (UIX)?

    Hello everyone, I need help with this:
    I have a UIX page to input data for a new record. One attribute is a Date and I need to drag and drop it as a MessageList (Select One) into the page. But I can't do this cause the only options I see are Column, MessageDateField and LOV Table.
    I already have the view object to provide the values for the List.
    Thank you very much in advance.

    repost

  • UIX validation (JDev 9.0.2)

    Hi.
    Has anyone managed to make a decimal or regular expression validation work with UIX JSP?
    I have tried to run a jsp with the following code:
    <uix:textInput id="textInput_CnrAmount" name="CnrAmount" text="10.01" />
    <uix:onSubmitValidater> <uix:decimal/> </uix:onSubmitValidater>
    </uix:textInput>
    No validation is done on the client side if the field value changed and submitted.
    Thank you.

    I have
    a uix:form name="form1" method="POST"/
    Inside a cascade of uix:tableLayout_s.
    And then a uix:submitButton.
    Besides I'd notice that the uix:onBlurValidater doesn't work eigther.
    The only suspicious is that the page is nested inside another one with the jsp:include. Although all other java scripts work fine (e.g. date field).
    For any purpose the entire code is below:
    <%@ page errorPage="errorpage.jsp" contentType="text/html;charset=windows-1251"%>
    <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
    <%@ taglib uri="http://xmlns.oracle.com/uix/ui/bc4j" prefix="bc4juix" %>
    <%@ taglib uri="http://xmlns.oracle.com/uix/ui" prefix="uix" %>
    <%@ page import="oracle.cabo.ui.validate.RegExpValidater" %>
    <%@ page import="org.apache.regexp.*" %>
    <%-- Define Application Module and DataSource--%>
    <jbo:ApplicationModule configname="servo.TechSupportBC.TechSupportBCModule.TechSupportBCModuleLocal" id="app1" />
    <jbo:DataSource id="ds_CurrentView" appid="app1" viewobject="ContractsMainView" rangesize="1" />
    <jbo:DataSource id="ds_CompaniesView" appid="app1" viewobject="CompaniesView" />
    <jbo:DataSource id="ds_ClientsTableView" appid="app1" viewobject="ClientsTableView" />
    <jbo:DataSource id="ds_CurrenciesView" appid="app1" viewobject="CurrenciesView" />
    <jbo:DataSource id="ds_ContractTypesView" appid="app1" viewobject="ContractTypesView" />
    <jbo:DataSource id="ds_PICView" appid="app1" viewobject="ProdInContracts4ContractMainView" rangesize="5"/>
    <jbo:DataSource id="ds_PcUsersVView" appid="app1" viewobject="PcUsersVView" />
    <%-- find the row to be edited--%>
    <jbo:Row id="EditRow" datasource="ds_CurrentView" action="Current">
    </jbo:Row>
    <%
    String s;
    oracle.jbo.domain.Number n;
    %>
    <script src="servo_ubn.js" language="javascript"></script>
    <uix:styleSheet/>
    <link rel="stylesheet" charset="UTF-8" type="text/css" href="styles/servo.css">
    <uix:header text="Nay` hmtnpl`vh" />
    <uix:form name="form1" method="POST" >
    <uix:tableLayout cellPadding='5' cellSpacing='0' width="100%">
    <uix:rowLayout>
    <uix:styledText styleClass="ColorBlock" >
    <uix:tableLayout cellPadding='1' cellSpacing='0' width="100%">
    <uix:rowLayout>
    <uix:tableLayout cellSpacing='4'>
    <uix:rowLayout hAlign="left" vAlign="middle" >
    <jbo:AttributeIterate id="dsAttributes" datasource="ds_CurrentView" displayattributes="CnrContrCode,CnrInternContrCode" >
    <uix:cellFormat hAlign="right" >
    <bc4juix:LabelStyledText datasource="ds_CurrentView" dataitem="<%=dsAttributes.getName()%>" styleClass="OraPromptText" />
    </uix:cellFormat>
    <bc4juix:InputRender datasource="ds_CurrentView" dataitem="<%=dsAttributes.getName()%>" />
    </jbo:AttributeIterate>
    </uix:rowLayout>
    <uix:rowLayout hAlign="left" vAlign="middle" >
    <uix:cellFormat hAlign="right" >
    <bc4juix:LabelStyledText datasource="ds_CurrentView" dataitem="CnrCrtCode" styleClass="OraPromptText" />
    </uix:cellFormat>
    <uix:cellFormat hAlign="left" columnSpan="3" >
    <uix:choice id="CnrCrtCodeChoice" name="CnrCrtCode" required="yes" selectedValue='<%=( ((s = (String)ds_CurrentView.getRowSet().getCurrentRow().getAttribute("CnrCrtCode"))!=null)?s:"" )%>'>
    <uix:option text="< B{aephre >" value="" />
    <jbo:RowsetIterate datasource="ds_ContractTypesView" >
    <uix:option text='<%=ds_ContractTypesView.getRowSet().getCurrentRow().getAttribute("CrtName")%>' value='<%=ds_ContractTypesView.getRowSet().getCurrentRow().getAttribute("CrtCode")%>' />
    </jbo:RowsetIterate >
    </uix:choice>
    </uix:cellFormat>
    </uix:rowLayout>
    <uix:rowLayout hAlign="left" vAlign="middle" >
    <uix:cellFormat hAlign="right" >
    <bc4juix:LabelStyledText datasource="ds_CurrentView" dataitem="CnrCmpId" styleClass="OraPromptText" />
    </uix:cellFormat>
    <uix:choice id="CnrCmpIdChoice" name="CnrCmpId" selectedValue='<%=( ((n = (oracle.jbo.domain.Number)ds_CurrentView.getRowSet().getCurrentRow().getAttribute("CnrCmpId"))!=null)?n.toString():"" )%>'>
    <uix:option text="" value="" />
    <jbo:RowsetIterate datasource="ds_CompaniesView" >
    <uix:option text='<%=ds_CompaniesView.getRowSet().getCurrentRow().getAttribute("CmpName")%>' value='<%=ds_CompaniesView.getRowSet().getCurrentRow().getAttribute("CmpId")%>' />
    </jbo:RowsetIterate >
    </uix:choice>
    <uix:cellFormat hAlign="right" >
    <bc4juix:LabelStyledText datasource="ds_CurrentView" dataitem="CnrClId" styleClass="OraPromptText" />
    </uix:cellFormat>
    <uix:lovField onFocus="javascript:this.blur()" id="CnrClIdLovField" name="CnrClIdLovField" required="yes" text='<%=( ((s = (String)ds_CurrentView.getRowSet().getCurrentRow().getAttribute("ClientFullName"))!=null)?s:"" )%>'
    destination="javascript:launchTextAndValueLov('ClientsTextAndValueLov.jsp', 'form1', 'CnrClIdLovField', 'CnrClId', 'servo.TechSupportBC.TechSupportBCModule.TechSupportBCModuleLocal', 'ClientsTableView', 'ClId', 'FullName', 'ClId,FullName')">
    </uix:lovField>
    </uix:rowLayout>
    </uix:tableLayout>
    </uix:rowLayout>
    </uix:tableLayout>
    </uix:styledText>
    </uix:rowLayout>
    <uix:rowLayout>
    <uix:styledText styleClass="ColorBlock" >
    <uix:tableLayout cellPadding='1' cellSpacing='0' width="100%">
    <uix:rowLayout>
    <uix:tableLayout cellSpacing='4'>
    <uix:rowLayout hAlign="left" vAlign="middle" >
    <uix:cellFormat hAlign="right" rowSpan="3">
    <bc4juix:LabelStyledText datasource="ds_CurrentView" dataitem="CnrAmount" styleClass="OraPromptText" />
    </uix:cellFormat>
    <uix:textInput id="textInput_CnrAmount" name="CnrAmount" text='<%=((n = (oracle.jbo.domain.Number)ds_CurrentView.getRowSet().getCurrentRow().getAttribute("CnrAmount"))!=null)?n.toString():""%>' />
    <uix:onSubmitValidater> <uix:decimal/> </uix:onSubmitValidater>
    </uix:textInput>
    <uix:cellFormat hAlign="right" rowSpan="3">
    <bc4juix:LabelStyledText datasource="ds_CurrentView" dataitem="CnrCurId" styleClass="OraPromptText" />
    </uix:cellFormat>
    <uix:choice id="CnrCurIdChoice" name="CnrCurId" selectedValue='<%=( ((n = (oracle.jbo.domain.Number)ds_CurrentView.getRowSet().getCurrentRow().getAttribute("CnrCurId"))!=null)?n.toString():"" )%>'>
    <uix:option text="" value="" />
    <jbo:RowsetIterate datasource="ds_CurrenciesView" >
    <uix:option text='<%=ds_CurrenciesView.getRowSet().getCurrentRow().getAttribute("CurShortName")%>' value='<%=ds_CurrenciesView.getRowSet().getCurrentRow().getAttribute("CurId")%>' />
    </jbo:RowsetIterate >
    </uix:choice>
    </uix:rowLayout>
    </uix:tableLayout>
    </uix:rowLayout>
    </uix:tableLayout>
    </uix:styledText>
    </uix:rowLayout>
    <uix:rowLayout>
    <uix:styledText styleClass="ColorBlock" >
    <uix:tableLayout cellPadding='1' cellSpacing='0' width="100%">
    <uix:rowLayout>
    <uix:tableLayout cellSpacing='4' width="100%">
    <uix:rowLayout hAlign="left" vAlign="middle" >
    <uix:cellFormat hAlign="right" rowSpan="3">
    <bc4juix:LabelStyledText datasource="ds_CurrentView" dataitem="CnrDesc" styleClass="OraPromptText" />
    </uix:cellFormat>
    <uix:cellFormat rowSpan="3">
    <uix:textInput id="textInput_CnrDesc" name="CnrDesc" text='<%=((s = (String)ds_CurrentView.getRowSet().getCurrentRow().getAttribute("CnrDesc"))!=null)?s:""%>' rows="5" columns="50" wrap="Hard" />
    </uix:cellFormat>
    <uix:cellFormat hAlign="right" >
    <bc4juix:LabelStyledText datasource="ds_CurrentView" dataitem="CnrFromDate" styleClass="OraPromptText" />
    </uix:cellFormat>
    <uix:cellFormat >
    <bc4juix:InputRender datasource="ds_CurrentView" dataitem="CnrFromDate" />
    </uix:cellFormat>
    </uix:rowLayout>
    <jbo:AttributeIterate id="dsAttributes1" datasource="ds_CurrentView" displayattributes="CnrToDate,CnrSettlementDate" >
    <uix:rowLayout hAlign="left" vAlign="middle" >
    <uix:cellFormat hAlign="right" >
    <bc4juix:LabelStyledText datasource="ds_CurrentView" dataitem="<%=dsAttributes1.getName()%>" styleClass="OraPromptText"/>
    </uix:cellFormat>
    <bc4juix:InputRender datasource="ds_CurrentView" dataitem="<%=dsAttributes1.getName()%>" />
    </uix:rowLayout>
    </jbo:AttributeIterate>
    </uix:tableLayout>
    </uix:rowLayout>
    </uix:tableLayout>
    </uix:styledText>
    </uix:rowLayout>
    <uix:rowLayout>
    <uix:styledText styleClass="ColorBlock" >
    <uix:tableLayout cellPadding='1' cellSpacing='0' width="100%">
    <uix:rowLayout>
    <uix:tableLayout cellSpacing='4'>
    <uix:rowLayout hAlign="left" vAlign="middle" >
    <uix:cellFormat hAlign="right" rowSpan="3">
    <bc4juix:LabelStyledText datasource="ds_CurrentView" dataitem="CnrUsrName" styleClass="OraPromptText" />
    </uix:cellFormat>
    <uix:choice id="CnrUsrNameChoice" name="CnrUsrName" required="yes" selectedValue='<%=( ((s = (String)ds_CurrentView.getRowSet().getCurrentRow().getAttribute("CnrUsrName"))!=null)?s:"" )%>'>
    <uix:option text="< B{aephre >" value="" />
    <jbo:RowsetIterate datasource="ds_PcUsersVView" >
    <uix:option text='<%=ds_PcUsersVView.getRowSet().getCurrentRow().getAttribute("UsrFullName")%>' value='<%=ds_PcUsersVView.getRowSet().getCurrentRow().getAttribute("UsrName")%>' />
    </jbo:RowsetIterate >
    </uix:choice>
    </uix:rowLayout>
    </uix:tableLayout>
    </uix:rowLayout>
    </uix:tableLayout>
    </uix:styledText>
    </uix:rowLayout>
    </uix:tableLayout>
    <%-- Gdeq| m`whm`erq r`akhv` "Opndsjr{"--%>
    <uix:spacer height="5" />
    <uix:header text="Opndsjr{" />
    <bc4juix:Table width="98%" datasource="ds_PICView" >
    <uix:columnHeaderStamp>
    <uix:styledText textBinding="LABEL"/>
    </uix:columnHeaderStamp>
    <jbo:AttributeIterate id="dsColAttributes" datasource="ds_PICView" hideattributes="PrdClosedFl" >
    <bc4juix:RenderValue datasource="ds_PICView" dataitem="<%=dsColAttributes.getName()%>" />
    </jbo:AttributeIterate>
    <uix:formValue name="ProdInContract_RowKey" valueBinding="RowKey" />
    <% if (!ds_PICView.getRowSet().getViewObject().isReadOnly())
    %>
    <uix:tableSelection>
    <uix:singleSelection>
    <uix:contents>
    <%-- The button name needs to be JboEvent so that it triggers the use of the OnEvent tag --%>
    <uix:submitButton name="jboEvent" text="Ped`jrhpnb`r|" formName="form1" value="ProdInContract_UpdateRecord" unvalidated="true" />
    <uix:submitButton name="jboEvent" text="Sd`khr|" formName="form1" value="ProdInContract_Delete" unvalidated="true" />
    </uix:contents>
    </uix:singleSelection>
    </uix:tableSelection>
    <%
    %>
    </bc4juix:Table>
    <uix:formValue name="RowPressed" value="null" />
    <% if (!ds_PICView.getRowSet().getViewObject().isReadOnly())
    %>
    <uix:submitButton name="jboEvent" text="Dna`bhr|" formName="form1" value="ProdInContract_Create" />
    <%
    %>
    <uix:rawText> <br> <div align="center"> </uix:rawText>
    <uix:labeledFieldLayout columns="2" width="20%">
    <uix:submitButton name="jboEvent" text="Qnup`mhr|" formName="form1" value="Update" />
    <uix:resetButton text="Qapnq" formName="form1" />
    <uix:submitButton name="jboEvent" text="Nrlemhr|" formName="form1" value="Cancel" unvalidated="true" />
    </uix:labeledFieldLayout>
    <uix:rawText> </div> </uix:rawText>
    <uix:formValue name="CnrClId" value='<%=( ((n = (oracle.jbo.domain.Number)ds_CurrentView.getRowSet().getCurrentRow().getAttribute("CnrClId"))!=null)?n.toString():"" )%>' />
    <uix:formValue name="ClClosedFl" value="Y" />
    <uix:formValue name="returnURL" value='<%=request.getParameter("returnURL")%>' />
    <uix:formValue name="tabNum" />
    <uix:formValue name="shouldReturn" value="1" />
    <uix:formValue name="RowKey" value='<%=request.getParameter("RowKey")%>' />
    </uix:form>
    <jbo:ReleasePageResources releasemode="Stateful" />

Maybe you are looking for

  • Problem iOS 5.1.1 texting

    My wife and i both have iphones. Mine is a 4s her's is my old 3gs. Her old phone broke and she's been using my old 3gs with out a problem. We both upgaded to 5.1.1 and now we run in to some problems. When i text her, my texts are shown as if she send

  • Deploying application on managed server

    Hi All, I am using Weblogic 6.1sp1 on windows 2000. I have 2 servers server name type port myserver - admin server 7001 vijay - managed server 19001 when i start myserver & then vijay(managed server) It starts ok works fine.But if try to deploy appli

  • When will iOS 7 be launching?

    what date will iOS come out??

  • Find specific item based on itemproperty

    Trying to loop through some items in the registry to find the one that contains an itemproperty with a specific value ("VMware Tools"). I was thinking this would work: Get-Item -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*" | Whe

  • Iphoto 11 spinning balls when viewing photos

    Hi - We're pretty frustrated so seeking help here as iPhoto support via Apple Care has not offered a solution to our issue. We have late 2012 iMac 8mb RAM with 3.2 (or 3.4) processor. We have 3 Nikon cameras; D80, D300S, D800. The D800 is the newest.