Is it possible to convert/compare  a JUCtrlAttrsBinding to a number in EL?

Using 10.1.2 JDev -
I am trying to do the following in order to have a binding value control the max length of an input field in a JSP:
          <c:choose>
            <c:when test="${bindings.MyFieldMaxLength gt 60}">
              <c:set var="txtLength" value="60"/>
            </c:when>
            <c:otherwise>
              <c:set var="txtLength" value="${bindings.MyFieldMaxLength}"/>
            </c:otherwise>
          </c:choose>
         <html:text property='MyField' maxlength='<%= pageContext.getAttribute("txtLength") %>' />However, this gives me this error:
Attempt to coerce a value of type "oracle.jbo.uicli.binding.JUCtrlAttrsBinding" to type "java.lang.Long" (null)"
Any way around it?

Actually, I don't think I can - the value is dynamic....
Basically, the situation is one of a master-detail relationship where the master record has a field that describes the maximum length of a particular column in the detail records. The UI exists to edit the detail records. I am trying to limit the input in the UI to avoid a round trip to the server for a validation error message. (Or writing additional javascript to perform the same check)
The initial check (against 60) was to make sure that there was not any bad data in the master record with a number greater than the actual column length in the detail table.
(For some concrete examples, the tables define reference code domains (master) and values (detail). I might have a status code list whose values (in the details table) can be two characters long and another list for job titles whose values could be 20 characters long. Therefore, when editing values in the status code list, I want the text field to only allow the users to type in two characters. But if editing values for the job title list, the text field should only allow the user to type in 20 characters.)

Similar Messages

  • Is it possible to convert an app from 12c to 11g?

    I am using both 11.1.2.4 and 12.1.2.0.
    If I have an app built with 12.1.2.0, which does not include any 12c specific features, is it possible to convert it to 11.1.2.4?
    I am asking because I have a Development environment that is 12c, but a Production environment that is 11g and I am not sure we will be able to upgrade the Production environment
    Thanks in advance..

    It's possible but not an easy task. As 12c uses newer stuff you have to test everything with great care. You might find some things you have to rebuild add they won't work in 11.1.2.4.0 (e.g. components which are only available in 12c. If you read the what's new doc for 12c and you find something you have used, prepare to rebuild this part.
    First thing to try ids to open the project in 11.1.2.4.0 and see if you can compile and run the app.
    Timo

  • Is it possible to convert text captions to Smart Shapes?

    Hello,
    I have a collegue that is using Cp 5 to record software simulations which then need to be brought into Cp6. The problem is that our standards (for software simulations) employ Smart Shape call outs (not the Cp 5.5 and earlier text captions).
    Is it possible to convert these text captions into our themed Smart Shapes either automatically inside Captivate 6 or by modifying the content within the CPTx file?
    Thank you,
    Shawn

    Hello Lilybiri,
    As always you are awesome! :-)
    >I don't believe an automatic switch will be possible, because smart shapes are totally different objects.
    I understand because there are a huge variety of shapes in either format. But I suspect that it should be easy to convert a text caption from any style to one specified smart shape style.
    Actually, I am asking before the simulations get started. So nothing has been done yet. I am unsure what you are suggesting I should do in the preferences under Cp 5.5. Are you suggesting that there is a way to convert 'some format' of text callouts, in a Cp5.5 demonstration simulation, to Smart Shapes in Cp6?
    >but since you already have created the simulations, it has to be done manually. Hoping for you that
    >someone has a bright idea, but I do not see one immediately.
    For anyone else in this situation, it would be handy to have a solution (rather than painstakingly convert each manually).
    I am wondering if this might be a relatively easy search/replace within one of the xml files within the CPTx file. I'm going to look at this tonight.
    Thanks for your assist.

  • Is it possible to convert PDF file into HTML

    Dear friends
    Is it possible to convert PDF file into HTML. I have few hundread PDF files i like to convert this files into HTML. I hope it can be done through Java but i don't know how to start this coding. anybody can give me a brief idea to go ahead.

    Why do you want to do this yourself? I quick search on Google showed several utilities to do this, some freeware, some commercial.

  • Is it possible to convert to an AIFF file in itunes 10 and beyond, and if so what is the procedure?

    Hello.  Is it possible to convert to an AIFF file in itunes 10 and beyond, and if so what is the procedure? 
    I use FCP7 and often have a sound loop or the like that I need in AIFF format, I normally use itunes to do the conversion, but have heard that version 10 no longer performs this task...?
    Thx for the help!
    MBP 2.6 GHz Intel Core 2 Duo - Mac OS X 10.6.7 - itunes 9.2.1 (5)

    Doolittle wrote:
    I can't find convert to aiff as an option in itunes 10.
    It still works the same as in past releases.  Go to Edit > Preferences > Import Settings, and set "Import Using" to "AIFF Encoder," and then the option will be available.  Consult this document for details: 
    http://support.apple.com/kb/HT1550

  • Is it possible to convert *.doc to *.rtf in a java program?

    Hi :-)
    My challenge is to develop a web-app in ADF Faces. Now i verify some technologies to store mailmerge letters in an easy way. The user of my web-app should upload a MS Word mailmerge document and a csv data source file. My web-app must thereupon convert this two files to a pdf per csv-row and store it to a ftp.
    I have build a demo using the open office API. But now i want to try the same by using apache POI and FOP. I can merge the doc files with POI and i can create PDF with FOP.
    My problem is, that POI cant convert to a rtf file and FOP uses an rtf file to create a pdf. I dont know, if its possible to convert a doc file to a rtf file. If its possible, is there an API, which will help me out?
    Regards
    Majo
    btw...I am not sure, if its the right forum for my question :-/

    HeHe, no sorry. The binary file is the same, because Windows bind doc and rtf with MS Word, it opens the file, which you have renamed to *.rtf in MS Word. But as a doc document, not as a rtf file ;-)
    And i dont want to open the rtf file in MS Word. I want to process the rtf file in java.
    Thanks
    Majo

  • I have acrobat 11 standard is it possible to convert pdf files to word files ?

    I have acrobat 11 standard is it possible to convert pdf files to word files ? or is it just possible in the Pro version.

    It sounds to me like you're using Reader, not Acrobat. Make sure you open
    the PDF file in Acrobat, and then go to File - Save As Other - Microsoft
    Word.
    On Thu, Mar 12, 2015 at 2:55 PM, nickk23435928 <[email protected]>

  • Is is possible to convert the movies purchased on itunes to DVD?

    Is is possible to convert the movies purchased on itunes to DVD? (In other words you would be burning the movie or tv shows to a blank DVD).

    You can store just what you want on the external. Just set up folders for what you want. I have a music folder, movies and TV shows, and pictures folders. I also have mine partitioned for OSX and Windows. I have a few files I need if I am running on windows so I keep them on the windows side. I always keep a back up of my documents and a few other files it is a pain to download on the external.
    You can also copy every folder and file on your machine to the external if it is big enough. This is a true copy not a back up file generated by a back up program. I like to do this if I get adventuresome and plan to do some major experimenting with my software. Saves having to reload everything if it crashes.
    TTFN
    Doc

  • Re: Is it possible to convert several licenses  to one shared license

    Re: Is it possible to convert several licenses  to one shared license?

    Hi Signe Hansen,
    You cannot convert several retail license to volume.
    Regards,
    Romit Sinha

  • I am using sound and vibration assistant 7.0. I want to know if it is possible to convert the mag and phase plot to real and imaginary plots ??

    I am using sound and vibration assistant 7.0 . I am using the impact test example given . I want to know if it is possible to convert the magnitude phase plot to real and imaginary plot in the sound and vibration assistant 7.0 ???

    If you have LabVIEW, you can create a user step to perform the conversion in version 7.0. Sound and Vibration 2009 has a checkbox in the Frequency Response configuration page to export the real and imaginary components. Short of upgrading SVT, you can also install the evaluation version of NI LabVIEW SignalExpress 2009, and this will also upgrade the Frequency Response Step which is shared between the two products (but then you don't get all the other features that were also added in SV 2009).
    Here are some links that may be useful to help decide whether you want to upgrade:
    http://www.ni.com/soundandvibration/
    http://www.ni.com/labview/signalexpress/
    Doug
    NI Sound and Vibration

  • HT2619 is it possible to convert a mp3 file in a text?

    is it possible to convert a mp3 file in a text in final cut?

    Huh?
    You can use iTunes or QuickTime Pro to convert an MP3 file into an AIF file for use in FCE.  But convert to a text file?  I don't think so.  But if that is what you really want to do, look here: https://www.google.com/search?client=opera&q=mp3+to+text&sourceid=opera&ie=utf-8 &oe=utf-8&channel=suggest&gws_rd=ssl
    -DH

  • Is it possible to convert .doc to pdf  ?

    Hi..
    I am very new to Livecycle Workflow...! I just want to know whether it is possible to convert .doc to pdf  ?
    Just by googling i came to know that CreatePDF2 Service will do this Conversion ! But it throws me an Exception like "Conversion Exception :" Cannot connect to Adobe Service "...!
    Can u guys pls help me out to slove the problem ?
    Thanks & Regards
    Karthik.

    you don't know the format of a word doc? well, that's good for you because it's a nightmare.
    - check POI (http://jakarta.apache.org/poi/index.html) to see if you can load-up the .doc then generate the .pdf with iText
    - personally i use the Open Office Bean to open the .doc, i save it in .sxw (OO format which is a jar of different XML files), then i use XSLT to transform content.xml in .fo then use FOP to build the PDF. sounds crazy but works fine (only on a machine with graphic support - not via Telnet, etc...)

  • Is it possible to convert a LR3.3 cat back to 2.7??

    I'm pretty tired of the bottleneck in my workflow that the new LR3.3/3.2 has created.  I would like to stop using LR3.3 and switch back to LR2.7.  LR2.7 was powerful and efficient.  I don't really know about LR3.3's power because I'm too busy waiting on its inefficiency. 
    Has anyone switched back to 2.7?  Is it possible to convert a LR3 catalog to LR2.7?  And if you have downgraded were you able to preserve any adjustments (disregarding those that don't exist in 2.7)?  Any thoughts on how to do a downgrade and preserve as much of the adjustments as possible would be greatly appreciated.

    You will probably get some other expert advise.
    However there is no way, as far as I know, for you to convert the existing LR 3 catalog to LR 2.7.
    When you upgraded to LR 3 you would have been given the oportunity to create a LR 3 compatible copy of your LR 2.x catalog. This process would have left the original 2.7 catalog in place. If you reinstall LR 2.7 then you will have to revert to that catalog.
    The files that have been imported into LR 3 since the upgrade would have to be now re-imported into LR 2.7, You can recover most of your work done in LR 3.x by doing a save of the metadata to the files, if you have not already done so, before importing into the LR 2.7 catalog.
    LR 2.7 will not be able to apply the new noise reduction settings and lens correction profiles done in LR 3.x and will use the process version 2003 not 2010.

  • Is it possible to convert a LabView .ldd Instrument Driver into a dll that can be used with MAX and visual basic?

    I got the following problem. I'm using a Stanford DS360 UltraLow Destortion Function Generator, and would like to access it with the CwIVIFgen ActiveX Controll. In the driver database i found a instrument driver for LabView (ds360fg.llb). But its a llb file and i am not sure what to do.
    Is it possible to convert it?
    Is it possible to use it anyways?
    Maybe i overread the answer, but i search the forums for quite a while now and i am not a bit wiser.
    Thanks in advance
    Felix

    If you have LabVIEW and the application builder, a dll can be created from it but it cannot be used as an IVI driver. The only way to create an IVI instrument driver is with LabWindows/CVI. I personally don't have the time right now to create the dll but maybe if you post to the LabVIEW forum and get someone there to do it. Another other option is to hire an Alliance member to create either a dll from the LabVIEW code or to create an IVI driver from scratch.

  • Is it possible to convert HTML to XML in as2?

    Hi,
    I am trying to develop a stock widget to use in my mobile using flashlite 2.x.
    I have chosen "http://charting.nasdaq.com" to obtain 5days chart /6months chart..
    But I am not able to use XML object for this and parse.. The values are in table format.. So I have to use LoadVars.. but writing a AS2 code
    to obtain values like High/Low price of the stock or volume is very lengthy since the data obtained are not in XML format..
    i tried this
    var example_xml:LoadVars = new LoadVars();
    example.ignoreWhite = true;
    example_xml.load("http://charting.nasdaq.com/ext/charts.dll?2-1-14-0-0-75-03NA000000www-&SF:4|5-WD=539-HT=39 5--XTBL-");
    example_xml.onLoad = function(success) {
         if (success == true) {
              trace(example_xml);
    Is it possible to convert them to xml and use relevent methods or xml properties?
    If I use example_xml:XML = new XML() then tracing example_xml (as above) doesn't give any data
    Any help?

    I had a project a few years ago where I converted 10s of thousands of TestStand HTML files from TS 1.0 and 3.0.
    Most of what I did is specific to our internal data structures, but I'll try to help get you started.
    The general idea is to pick out the report header and data sections from each file, then eliminate the HTML formatting.
    The attached file will extract the Report Header and data sections.
    To use this, you will need to download this additional VI that I posted here in the regex board a few years ago.
    http://forums.ni.com/t5/BreakPoint/Regular-Expressions-Board/m-p/1269088#M14343
    Here is one more file that will parse out each data record and dtermine it's Name, status, type value, limits and duration/timestamp info
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness
    Attachments:
    Parse TestStand HTML.vi ‏42 KB
    Parse TestStand HTML Data Section.vi ‏55 KB

Maybe you are looking for

  • BC workset  in SRM 7.0 WorkFlow

    Hi Gurus, I'm configuring SRM7.0,when I created S/C or PO,I had documents in Awaiting approval status, all are in awaiting approval by the system and the approval process is automatic. For testing all SRM functionalities and so for time being, I don'

  • IPhone no longer showing up in (My) Computer and photos no longer synching

    I recently switched from a desktop to a laptop, both of which run Vista Ultimate. The desktop synched fine but the laptop will not sync pictures. I noticed that the desktop shows the iPhone in Computer as a camera but the laptop does not. I have: 1.

  • AirPrint works but it prints photos too small

    AirPrint can find my Epson Artisan 810 and it prints photos but somehow it prints them very small. 4 x 6 photo is printed in 1.5 x 2.5 dimensions. I do not know how I can fix this.

  • Critical Error in Software Update Point

    SCCM 2012 Software Update Point is showing error as per picture below. How can I fix this error?

  • Link not opening , left click , right click nothing !!

    I used safari , chrome and firefox ...I click on the link nothing happens , right click , open in new tab , still the same !! I created a new user , nothing !! anyone has any idea how to solve this issue ?