label style AF.inputtext

Hello

I use jdeveloper 11.1.1.6.0 version.

I want to apply the style to the text label of entry as a make-weight: bold; color: Red;

<af:inputText label="Label 1" id="it2" />

If I set the style inline attribute value withfont-weight: bold; color: Red;

then it is not affecting the style of the label

If I put contentStyle it changes the style of the content in the input text.

I am able to achieve using the style as a class below

.BoldLabelStyle af|inputText::label {font-weight:bold;color:Red;}

<af:inputText label="Label 1" id="it2" styleClass="BoldLabel"/>

for this I make changes in the Trinity - skins.xml and trinidad-config. XML

Is there any other way to use inlinestyle, we can provide style for the label to input text

Hello

inline style is applied to the DOM element that is external to the component. According to the CSS inheritance, some of the settings on the inline style will affect also the label (for example if you set the background color). However, there is no other way of the direct style on a label as the counting application.

The advantage of counting is that all styles are in a central location, while your inlinestyle settings would be anywhere in your application. So even if you feel tempted to think the inline style is easier to use, in fact it is not.

Frank

Tags: Java

Similar Questions

  • Change the text aline of the part of the label of af: inputText

    Hello

    I want to change the text aline of the part of the label component af:inputText to "right". So I put the

    AF | inputText::label
    {
    text-align: right;
    }

    inside my css file, but it does not work. If I put

    AF | inputText:disabled:label
    {
    text-align: right;
    }

    It works for disabled inputText components, but I want to "text-align: right" to apply to all of the components of af: inputText. You have an idea?

    Thank you
    Will do

    Do, please always tell us your version jdev as the solution may depend on it!

    Depending on where you put the inputText you nee on the skin for example

    af¦panelFormLayout::label-cell{
        text-align: left;
    }
    

    Timo

  • How to set the color of the label and hintText inputText

    Hi all

    I use jdev 11.1.2.4.0 version

    in my case, I want to label and hintText the color of the amx:inputText component.

    so I create a class css "myStyle. CSS '.

    < skin-added id = "s1" >

    > skin id < mobileFusionFx < / skin-id >

    css/mystyle.css < name-sheet-style > < / style sheet name >

    < / skin-add >

    < / adfmf-skins >

    Thank you

    Manish

    If you can't find things yourself, you're going to struggle.

    http://www.Ateam-Oracle.com/debugging-MAF-applications-on-Android/

  • .Htmltext label style

    I have a label called lblComment.  It is assigned text by setting lblComment.htmlText to a string retrieved Dynamics (that may contain basic html).  I'm happy to see the label using the html code to the string in the Simulator.

    Index of Label.htmlText, is a link to documents Adobe describing HTML tags supported by .htmlText (thanks JRab!).  I've assigned text containing tags for formatting HTML (, ) as well as a link.   With the new 0.9.3 simulator (and a browser to work), I revisited it.  At first, I thought that my links were not returned (text).  Much to my surprise, when I clicked on the word for the link, it invokes the browser which led me to the page!

    My question is that there is no way to differentiate the text 'link' to the static text.  In the section on the anchor tags, it is said:

    "You can also define a: link, a: hover and a: active styles for anchor tags by using style sheets."

    I'm OK with a simple:

    a: link {color: #0000FF; text-decoration: underline ;} to link stand out.}  Where can I put this?  Use a CSS file?  If so, where to reference it?  And, while we're at it, I can't fool of CSS in my label text?

    If CSS is not possible, where I would define it? I'd rather not add fonts around my link data tags.  What I want is something like what the text looks like above where I have link to the subject of Label.htmlText.

    Hey, WingFlap,.

    It is quite possible that you want to achieve. in as3, there is a class called style sheet that will do exactly what you would do in HTML. It will style your whole .htmlText property as an HTML document's style.

    Here is a link to the style sheet class:

    http://www.Adobe.com/LiveDocs/Flash/9.0/ActionScriptLangRefV3/Flash/text/stylesheet.html

    full of lots of goodies too. also, here's an example of it in action with the properties you requested in your message:

    HTMLTextTest.as:

    package{   import flash.display.Sprite;  import flash.display.StageAlign;  import flash.display.StageScaleMode;  import flash.text.StyleSheet;
    
      import qnx.ui.text.Label;
    
      [SWF(width="1024", height="600", backgroundColor="#CCCCCC", frameRate="30")]  public class HTMLTextTest extends Sprite  {     private var myLabel:Label;        private var myCSS:StyleSheet;
    
          public function HTMLTextTest()        {         super();
    
              // support autoOrients            stage.align = StageAlign.TOP_LEFT;            stage.scaleMode = StageScaleMode.NO_SCALE;
    
              myCSS = new StyleSheet();
    
              myCSS.setStyle("a:link", { color: '#0000FF', textDecoration: 'underline'});
    
              myLabel = new Label();
    
              myLabel.textField.styleSheet = myCSS;            myLabel.htmlText = "here is a link to http://www.google.com/'>Google.";
    
              myLabel.setSize(300, 52);         myLabel.setPosition(20,20);
    
              addChild(myLabel);        } }}
    

    its quite intuitive. Just make sure that you apply the style sheet to the internal TextField (textField) object to operate (in bold). hope that things cleared up. Good luck!

  • Need to have a different label for af:inputText as for the error message

    Hello

    Jdev version 11.1.1.7

    In a form, I have a label for the af:inputText as a statement and not the name of the attribute.

    But when the error message is highlighted in field 2, by clicking on 'All', all error messages come in a pop-up window where I NEED TO DISPLAY the ATTRIBUTE AGAINST THE EACH ERROR MSG instead of THE REAL GIVEN to THE AF:INPUTTEXT LABEL. Please suggest an idea.

    Kind regards

    Ramey

    Try to follow these steps:

    1 - in the inputText label sets the label that you want to display in popup error.

    2-set inputText simple property to true.

    3 surround inputText by af:panelLabelAndMessage and set the label property of the label that you want it to be viewable in the page.

    
                          
                            
                          
    
    
  • the "BOLD" inputtext labelling

    Hi How can "BOLD" of inputtext inputtext label and make inputtext field without display * label am in jdeveloper 11.1.1.9.0

    the ' *' for the score required is generated by a global skin picker. There is no need to change the af: inputText. The switch to put of the ' *' is

    . {AFRequiredIconStyle}

    display: none;

    }

    You must then set the label as you like it. This can be done by creating a specific style class that you assign to the fields as required

    .inputTextRequired af | {inputText::label}

    color: Green;

    make-weight: bold;

    do-family: Arial, Helvetica, without serif.

    font size: 15px;

    }

    Timo

  • CSS Background-color, do not apply to InputText

    Hello
    I created a CSS file defining certain properties of the TextField object, please find the code below

    CSS file

    . {AVG_VA}

    Police-weight: lighter;
    color: Red;
    background-color: rgb (191,255,255);
    make-style: italic;
    font size: 1200px;
    do-family: "Verdana";
    }

    < af:inputText label = "" id = "CONTROLBLOCK1_AVGSALARY" value ="'"
    Binding = "#{backing_emp.» CONTROLBLOCK1_AVGSALARY}.
    columns = "10" required = "false".
    inlineStyle="font-family:Tahoma;font-size:10;font-style:normal;font-weight:Bold;border-style:None; »
    contentStyle = "font-size: 10;" background-color: white; width: 92pt; height: 16pt; text-align: left; »
    Wrap = "off" secret = 'false' shortDesc =""
    styleClass = "AVG_VA" visible = "true" >
    < af:convertNumber type = "number" groupingUsed = "false" / >
    < af:clientListener type = 'blur' method = "onBlur" / >
    < af:serverListener type = "customFocusLostEvent".
    Method = "#{backing_emp.focusLostEvent}" / >
    < / af:inputText >

    But the color is getting applied only to the confines of the InputText. Even if I remove code inlineStyle and the same contentStyle already exists.
    Kindly let me know the correct procedure.

    Thank you and best regards,
    Manasa Peddi.

    In the ADF, you should try and avoid any sort of inline CSS when reasonable... Which will allow you to use selectors component, which will target the attributes of a component, for example an inputTextfield content.

    for example:

    af|inputText::content { background-color: red; }
    

    would be to style all inputtexts, or you can lock with

    .BLAH af|inputText::content { background-color: red; }
    
    and in the jsp:
    
    

    Check out the demo of counting:
    http://jdevadf.Oracle.com/ADF-richclient-demo/faces/components/skinningKeys/inputText.JSPX

    and a blog about the implementation of a skin:
    http://Biemond.blogspot.com/2009/01/ADF-skinning-in-JDeveloper-11g.html

    Barry.

  • String following line - Style field list button

    Hi all

    Below I have attached two images of liststylebuttonfield,

    1. in the first picture

    True line-'connected to 3 organization... ". ', display line-'connected to 3 organization... ". »

    the remaining letters are present in the background of the image.

    I give the width = totalwidth - lefticon.getwidth ();

    2. in the second picture

    True line-'connected to 3 organization... ". ', display line-"Connected to eveniment 3.

    the remaining letters are hiding.

    I give the width = totalwidth - lefticon.getwidth () - balloonIcon.getwidth () - actionIcon.getwidth ();

    How to give to the next line of width/auto for this problem.

    Below I attach my code for your reference...

    package com.samples.toolkit.ui.component;
    
    import java.util.Calendar;
    
    import net.rim.device.api.system.Bitmap;
    import net.rim.device.api.system.Characters;
    import net.rim.device.api.system.Display;
    import net.rim.device.api.ui.DrawStyle;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.FieldChangeListener;
    import net.rim.device.api.ui.Font;
    import net.rim.device.api.ui.Graphics;
    import net.rim.device.api.ui.TouchEvent;
    import net.rim.device.api.ui.Touchscreen;
    import net.rim.device.api.ui.Ui;
    import net.rim.device.api.ui.component.Dialog;
    import net.rim.device.api.ui.component.LabelField;
    
    public class TestFeedListStyleField extends Field {
        Font myFont = Font.getDefault().derive(Font.SERIF_STYLE,5, Ui.UNITS_pt);
        Font myFont1 = Font.getDefault().derive(Font.BOLD,5, Ui.UNITS_pt);
        public static int DRAWPOSITION_TOP = 0;
        public static int DRAWPOSITION_BOTTOM = 1;
        public static int DRAWPOSITION_MIDDLE = 2;
        public static int DRAWPOSITION_SINGLE = 3;
        private static final int CORNER_RADIUS = 18;
        private static final int HPADDING = Display.getWidth() <= 320 ? 6 : 8;
        private static final int VPADDING = 4;
    
        private static final int COLOR_BACKGROUND = 0xFFFFFF;
        private static final int COLOR_BORDER = 0xBBBBBB;
        private static final int COLOR_BACKGROUND_FOCUS = 0x186DEF;
         public MyLabelField _labelField,_labelField1, _labelField2,_labelField3;
    
         private Bitmap _caret;
         private int _rightOffset;
            private int _leftOffset;
            private int _labelHeight,_labelHeight1,_labelHeight2,_labelHeight3;
            private Bitmap _leftIcon;
            private Bitmap _actionIcon;
            private Bitmap _ballon;
            private int _drawPosition = -1;
            private String _labelField1test;
    
        public TestFeedListStyleField(Bitmap icon,String label, String label1, String lable2,String lable3, Bitmap balloon,Bitmap caret,
                long style) {
             super( USE_ALL_WIDTH | Field.FOCUSABLE );
            _leftIcon = icon;
             _labelField = new MyLabelField(label, style );
             _labelField1 = new MyLabelField(label1, style );
             _labelField2=new  MyLabelField(lable2,style);
            _labelField3=new  MyLabelField(lable3,style);
            _ballon=balloon;
            _actionIcon=caret;
            _labelField1test=label1;
            _labelField.setFont(myFont);
            _labelField1.setFont(myFont);
            _labelField2.setFont(myFont1);
            _labelField3.setFont(myFont);
    //      Imagelistner imglistner = new Imagelistner();
    //      _actionIcon.
        }
    
        public TestFeedListStyleField(String label, String label1, String lable2,Bitmap caret,
                long style) {
             super( USE_ALL_WIDTH | Field.FOCUSABLE );
             _labelField = new MyLabelField(label, style );
             _labelField1 = new MyLabelField(label1, style );
             _labelField2=new  MyLabelField(lable2,style);
            _actionIcon=caret;
            _labelField1test=label1;
            _labelField1.setFont(myFont);
            _labelField2.setFont(myFont);
    //      Imagelistner imglistner = new Imagelistner();
    //      _actionIcon.
        }
    
        public void setDrawPosition( int drawPosition )
        {
            _drawPosition = drawPosition;
        }
         public String toString()
            {
                return _labelField.toString();
            }
    
        protected void layout(int width, int height) {
            if( Touchscreen.isSupported() ) {
            }
    
            _leftOffset = HPADDING;
            if( _leftIcon != null ) {
                _leftOffset += _leftIcon.getWidth() + HPADDING;
            }
    
            _rightOffset = HPADDING;
            if( _caret != null ) {
                _rightOffset += _caret.getWidth() + HPADDING;
            }
            _labelField.layout( width - _leftOffset - _rightOffset, height );
            _labelHeight = _labelField.getHeight();
            int labelWidth = _labelField.getWidth();
    
            _labelField1.layout( width - _leftOffset - _rightOffset, height );
            _labelHeight1 = _labelField1.getHeight();
            int labelWidth1 = _labelField1.getWidth();
    
            _labelField2.layout( width - _leftOffset - _rightOffset, height );
            _labelHeight2 = _labelField2.getHeight();
            int labelWidth2 = _labelField2.getWidth();
    
            _labelField3.layout( width - _leftOffset - labelWidth1 - _rightOffset, height );
            _labelHeight3 = _labelField3.getHeight();
            int labelWidth3 = _labelField3.getWidth();
    
            if( _labelField.isStyle( DrawStyle.HCENTER ) ) {
                _leftOffset = ( width - labelWidth ) / 2;
            } else if ( _labelField.isStyle( DrawStyle.RIGHT ) ) {
                _leftOffset = width - labelWidth - HPADDING - _rightOffset;
            }
    
            if( _labelField1.isStyle( DrawStyle.HCENTER ) ) {
                _leftOffset = ( width - labelWidth1 ) / 2;
            } else if ( _labelField.isStyle( DrawStyle.RIGHT ) ) {
                _leftOffset = width - labelWidth1 - HPADDING - _rightOffset;
            }
            if( _labelField2.isStyle( DrawStyle.HCENTER ) ) {
                _leftOffset = ( width - labelWidth2 ) / 2;
            } else if ( _labelField.isStyle( DrawStyle.RIGHT ) ) {
                _leftOffset = width - labelWidth2 - HPADDING - _rightOffset;
            }
    
            int extraVPaddingNeeded = 0;
    //      if( _labelHeight < _targetHeight ) {
    //          // Make sure that they are at least 1.5 times font height
    //          extraVPaddingNeeded =  ( _targetHeight - _labelHeight ) / 2;//( _targetHeight - _labelHeight ) / 2;
    //      }
            if( _leftIcon != null ) {
                  if( _labelHeight+_labelHeight1 < _leftIcon.getHeight() ) {
                      // Make sure that they are at least 1.5 times font height
                      extraVPaddingNeeded =  _leftIcon.getHeight();//( _targetHeight - _labelHeight ) / 2;
                  }
                  else if( _labelHeight+_labelHeight1 > _leftIcon.getHeight() ){
                    extraVPaddingNeeded =  _labelHeight+_labelHeight1;
                  }
            }
            else{
                if( _labelHeight+_labelHeight1 < _actionIcon.getHeight() ) {
                      // Make sure that they are at least 1.5 times font height
                      extraVPaddingNeeded =  _leftIcon.getHeight();//( _targetHeight - _labelHeight ) / 2;
                  }
                  else if( _labelHeight+_labelHeight1 > _actionIcon.getHeight() ){
                    extraVPaddingNeeded =  _labelHeight+_labelHeight1;
                  }
            }
    
          setExtent( width,  (int) (extraVPaddingNeeded*1.1) );
    
        }
          public void setText( String text )
            {
                _labelField.setText( text );
                updateLayout();
            }
    
        protected void paint(Graphics g) {
    
            // Left Bitmap
            if( _leftIcon != null ) {
                g.drawBitmap( HPADDING, VPADDING, (int) (_leftIcon.getWidth()*2), (int) (_leftIcon.getHeight()*3), _leftIcon, 0, 0 );
            }
    
    //        // Text  ( getHeight() - _labelHeight ) / 2, ( getHeight() - _actionIcon.getHeight() ) / 2,  //(int) (VPADDING*.5)
            try {
                g.pushRegion( _leftOffset, (int) (VPADDING*.5), getWidth() - _leftOffset - _rightOffset, _labelHeight, 0, 0 ); //getWidth() - _leftOffset - _rightOffset
                _labelField.paint( g );
            } finally {
                g.popContext();
            }
    
            try {
                g.pushRegion(  (int) (getWidth() - _leftIcon.getWidth()*.6 ), (int) (VPADDING*.5), getWidth() - _leftOffset - _labelField1.getWidth()- _rightOffset, _labelHeight3, 0, 0 ); //getWidth() - _leftOffset - _rightOffset
                _labelField3.paint( g );
            } finally {
                g.popContext();
            }
    
            try {
                g.pushRegion(_leftOffset, _labelHeight, getWidth() - _leftOffset - _rightOffset, _labelHeight1, 0, 0 ); //getWidth() - _leftOffset - _rightOffset
    //            String test6=_labelField1test.charAt(0)+" ".toString();
    //
    //            if(test6.trim().equals("0")){
    ////                 Dialog.alert("Success....");
    //             }
    //             else{
    //               Dialog.alert("Failure....");
                    _labelField1.paint( g );
    //             }
            } finally {
                g.popContext();
            }
    
            if( _leftIcon != null ) {
                try {
                    g.pushRegion((int) (HPADDING+_leftIcon.getWidth()), (int) (_labelHeight*1.5+_labelHeight1), getWidth() - (_leftIcon.getWidth()*2 ), (int) ((_leftIcon.getHeight()-_labelHeight-_labelHeight1)*.9),5, 5 ); //getWidth() - _leftOffset - _rightOffset
    //              g.pushRegion((int) (HPADDING+_leftIcon.getWidth()*1.1), (int) (_labelHeight*1.5+_labelHeight1), (int) (getWidth() - _leftIcon.getWidth()- _ballon.getWidth()- _actionIcon.getWidth()), (int) ((_leftIcon.getHeight()-_labelHeight-_labelHeight1)*.9), 0, 0 ); //getWidth() - _leftOffset - _rightOffset
                    _labelField2.paint( g );
                } finally {
                    g.popContext();
                }
            }
            // Right (Action) Bitmap
            if( _actionIcon != null ) {
                g.drawBitmap(  (int) (getWidth() - _leftIcon.getWidth()*.6 ), (int) (VPADDING*7.8), _ballon.getWidth(), _ballon.getHeight(), _ballon, 0, 0 );
                g.drawBitmap( getWidth() - HPADDING - _actionIcon.getWidth(), (int) (VPADDING*7), _actionIcon.getWidth(), _actionIcon.getHeight(), _actionIcon, 0, 0 );
            }
    
            // BootomGrid
    //        g.drawBitmap( (int) (HPADDING+_leftIcon.getWidth()*1.3), _labelHeight+_labelHeight1, 0, 0, _actionIcon, _drawPosition, _drawPosition );
    //        g.drawBitmap( (int) (HPADDING+_leftIcon.getWidth()*1.3), _labelHeight+_labelHeight1,  0, 0, _actionIcon, _drawPosition, _drawPosition );
    //        g.drawBitmap( (int) (HPADDING+_leftIcon.getWidth()*1.3), _labelHeight+_labelHeight1,  0, 0, _actionIcon, _drawPosition, _drawPosition );
    //        g.drawBitmap( (int) (HPADDING+_leftIcon.getWidth()*1.3), _labelHeight+_labelHeight1,  0, 0, _actionIcon, _drawPosition, _drawPosition );
    //        g.drawBitmap( (int) (HPADDING+_leftIcon.getWidth()*1.3), _labelHeight+_labelHeight1,  0, 0, _actionIcon, _drawPosition, _drawPosition );
    //
        }
    
        protected void paintBackground( Graphics g )
        {
            if( _drawPosition < 0 ) {
                // it's like a list field, let the default background be drawn
                super.paintBackground( g );
                return;
            }
    
            int oldColour = g.getColor();
    
            int background = g.isDrawingStyleSet( Graphics.DRAWSTYLE_FOCUS ) ? COLOR_BACKGROUND_FOCUS : COLOR_BACKGROUND; //COLOR_BACKGROUND_FOCUS
            try {
                if( _drawPosition == 0 ) {
                    // Top
                    g.setColor( background );
                    g.fillRoundRect( 0, 0, getWidth(), getHeight() + CORNER_RADIUS, CORNER_RADIUS, CORNER_RADIUS );
                    g.setColor( COLOR_BORDER );
                    g.drawRoundRect( 0, 0, getWidth(), getHeight() + CORNER_RADIUS, CORNER_RADIUS, CORNER_RADIUS );
                    g.drawLine( 0, getHeight() - 1, getWidth(), getHeight() - 1 );
                } else if( _drawPosition == 1 ) {
                    // Bottom
                    g.setColor( background );
                    g.fillRoundRect( 0, -CORNER_RADIUS, getWidth(), getHeight() + CORNER_RADIUS, CORNER_RADIUS, CORNER_RADIUS );
                    g.setColor( COLOR_BORDER );
                    g.drawRoundRect( 0, -CORNER_RADIUS, getWidth(), getHeight() + CORNER_RADIUS, CORNER_RADIUS, CORNER_RADIUS );
                } else if( _drawPosition == 2 ) {
                    // Middle
                    g.setColor( background );
                    g.fillRoundRect( 0, -CORNER_RADIUS, getWidth(), getHeight() + 2 * CORNER_RADIUS, CORNER_RADIUS, CORNER_RADIUS );
                    g.setColor( COLOR_BORDER );
                    g.drawRoundRect( 0, -CORNER_RADIUS, getWidth(), getHeight() + 2 * CORNER_RADIUS, CORNER_RADIUS, CORNER_RADIUS );
                    g.drawLine( 0, getHeight() - 1, getWidth(), getHeight() - 1 );
                } else {
                    // Single
                    g.setColor( background );
                    g.fillRoundRect( 0, 0, getWidth(), getHeight(), CORNER_RADIUS, CORNER_RADIUS );
                    g.setColor( COLOR_BORDER );
                    g.drawRoundRect( 0, 0, getWidth(), getHeight(), CORNER_RADIUS, CORNER_RADIUS );
                }
            } finally {
                g.setColor( oldColour );
            }
        }
    
        protected void drawFocus( Graphics g, boolean on )
        {
            if( _drawPosition < 0 ) {
                super.drawFocus( g, on );
            } else {
                boolean oldDrawStyleFocus = g.isDrawingStyleSet( Graphics.DRAWSTYLE_FOCUS );
                try {
                    if( on ) {
                        g.setDrawingStyle( Graphics.DRAWSTYLE_FOCUS, true );
                    }
                    paintBackground( g );
                    paint( g );
                } finally {
                    g.setDrawingStyle( Graphics.DRAWSTYLE_FOCUS, oldDrawStyleFocus );
                }
            }
        }
    
        protected boolean keyChar( char character, int status, int time )
        {
            if( character == Characters.ENTER ) {
                clickButton();
                return true;
            }
            return super.keyChar( character, status, time );
        }
    
        protected boolean navigationClick( int status, int time )
        {
            if (status != 0) clickButton();
            return true;
        }
    
        protected boolean trackwheelClick( int status, int time )
        {
            if (status != 0)
            clickButton();
            return true;
        }
    
        //#ifndef VER_4.1.0 | 4.0.0
            protected boolean invokeAction( int action )
            {
                switch( action ) {
                    case ACTION_INVOKE: {
                        clickButton();
                        return true;
                    }
                }
                return super.invokeAction( action );
            }
        //#endif        
    
        /**
         * A public way to click this button
         */
        public void clickButton()
        {
            fieldChangeNotify( 0 );
        }
    
    //#ifndef VER_4.6.1 | VER_4.6.0 | VER_4.5.0 | VER_4.2.1 | VER_4.2.0
        protected boolean touchEvent( TouchEvent message )
        {
            int x = message.getX( 1 );
            int y = message.getY( 1 );
            if( x < 0 || y < 0 || x > getExtent().width || y > getExtent().height ) {
                // Outside the field
                return false;
            }
            switch( message.getEvent() ) {
    
                case TouchEvent.UNCLICK:
                    clickButton();
                    return true;
            }
            return super.touchEvent( message );
        }
    //#endif 
    
        public void setDirty( boolean dirty ) {}
        public void setMuddy( boolean muddy ) {}
    
         private static class MyLabelField extends LabelField
            {
    
                public MyLabelField( String text, long style )
                {
                    super( text, style );
                }
    
                public void layout( int width, int height )
                {
                    super.layout( width, height );
                }   
    
                public void paint( Graphics g )
                {
                    super.paint( g );
                }
            }
         class Imagelistner implements FieldChangeListener {
                public void fieldChanged(Field field, int context) {
    
                }
    
                }
    

    Thank you...

    Hi all
    I solved this problem... Thank you for watching my problem...
    And I create the component 'Image + String + box' with search (like the single selection) If you need it please send mail...
    Kind regards
    NGO

  • get error for an inputText below

    Hello

    JDEV 12.1.3.0

    I get the error on the label of SHV inputtext below.

    Houston-29000: Unexpected caught exception: java.lang.NumberFormatException, msg = for the input string: "NaN".

    It was with CORS; Policy = "deleted page"

  • Script label

    This script is for Adobe Indesign CS5 Windows.

    I m trying to modify this script to acept this configuration:

    Dialog Box.JPG

    Distribution of this dialog box and apply only if there is a certain image of selected image. (I think that if there is no object selected, applies it to all picture frame on the page so I Don t want this couse I will use a shortcut to this script and accidents can happen)

    Sorry for the long script.

    LabelGraphics.jsx (modified)

    A JavaScript InDesign CS3

    /*

    @@BUILDINFO @ "LabelGraphics.jsx" 1.1.0 June 6, 2008

    */

    Adds labels for graphics in the active document.

    / * This example script has been changed. The changes are listed here: added option to create a label of Clipboard data.

    drop-down menu added to apply a shade to the frame of the legend. This script can now apply lables to just the selected graphics

    If you have one or more selected images. Otherwise, it will apply the help of labels to all the graphics in the document. The height of the

    Legend frame is determined by the amount of text and the applied paragraph style. the width of the legend image is

    determined by the width of the image, that it is under. Setting the height of the caption in the dialog box has been removed because it is not

    are most needed.

    */

    main();

    //=============================================================\\

    main() {} function

    If (app.documents.length! = 0) {}

    If (. allGraphics.length app.documents.item (0)! = 0) {}

    myDisplayDialog();

    }

    else {}

    Alert ("the Document contains no graphics.");

    }

    }

    else {}

    Alert ("Please open a document and try again.");

    }

    }

    //=============================================================\\

    function myDisplayDialog() {}

    var myLabelWidth = 100;

    var myStyleNames = myGetParagraphStyleNames();

    var mySwatchNames = myGetSwatchNames();

    var myDialog = app.dialogs.add({name:"LabelGraphics"});)

    {with (MyDialog.dialogColumns.Add ())}

    Type of label

    {with (dialogRows.Add ())}

    {with (dialogColumns.Add ())}

    staticTexts.add ({staticLabel: "Label Type", minWidth:myLabelWidth});})

    }

    {with (dialogColumns.Add ())}

    var myLabelTypeDropdown = dropdowns.add ({stringList: ["File name", "File path", "Description of XMP", "XMP author", "paste from Clipboard"], selectedIndex:4});})

    }

    }

    {with (dialogRows.Add ())}

    {with (dialogColumns.Add ())}

    staticTexts.add ({staticLabel: "Label Offset", minWidth:myLabelWidth});})

    }

    {with (dialogColumns.Add ())}

    var myLabelOffsetField = measurementEditboxes.add({editValue:0});)

    }

    }

    Style to apply

    {with (dialogRows.Add ())}

    {with (dialogColumns.Add ())}

    staticTexts.add ({staticLabel: "Label Style", minWidth:myLabelWidth});})

    }

    {with (dialogColumns.Add ())}

    var myLabelStyleDropdown = dropdowns.add ({stringList:myStyleNames, selectedIndex:0});})

    }

    }

    Swatch to apply

    {with (dialogRows.Add ())}

    {with (dialogColumns.Add ())}

    staticTexts.add ({staticLabel: "Apply swatch", minWidth:myLabelWidth});})

    }

    {with (dialogColumns.Add ())}

    var mySwatchDropdown = dropdowns.add ({stringList:mySwatchNames, selectedIndex:0});})

    }

    }

    }

    //=============================================================\\

    Ditto var = myDialog.show ();

    if(myResult == true) {}

    var myLabelType = myLabelTypeDropdown.selectedIndex;

    var myLabelHeight = 24; A generic label height which will be adjusted later

    myPasteFailure = false;

    var myLabelOffset = myLabelOffsetField.editValue;

    var myLabelStyle = myStyleNames [myLabelStyleDropdown.selectedIndex];

    var mySwatch = mySwatchNames [mySwatchDropdown.selectedIndex];

    myDialog.destroy ();

    var myOldXUnits = app.documents.item (0).viewPreferences.horizontalMeasurementUnits;

    var myOldYUnits = app.documents.item (0).viewPreferences.verticalMeasurementUnits;

    App.Documents.Item (0).viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;

    App.Documents.Item (0).viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;

    try {}

    myAddLabels (myLabelType, myLabelHeight, myLabelOffset, myLabelStyle, mySwatch);

    }

    {catch (e)}

    Alert ("Cannot add lables." + e);

    }

    try {}

    resizeOverset();

    }

    {catch (e)}

    Alert ("Unable to correct the text in excess." + e);

    }

    If (myPasteFailure == true) {}

    Alert ("unable to paste from the Clipboard.");

    }

    App.Documents.Item (0).viewPreferences.horizontalMeasurementUnits = myOldXUnits;

    App.Documents.Item (0).viewPreferences.verticalMeasurementUnits = myOldYUnits;

    }

    else {}

    myDialog.destroy ();

    }

    }

    //=============================================================\\

    function myAddLabels (myLabelType, myLabelHeight, myLabelOffset, myLabelStyleName, mySwatchName) {}

    myDocument var = app.documents.item (0);

    myStoriesArray = new Array();

    If (app.selection.length == 0) / / if nothing is selected apply legend for all the graphics of the document

    {

    var myConfirmation = confirm ("Add captions to all images in the document?", false,"LabelGraphics.jsx" ');

    If (myConfirmation is true)

    {

    myGraphics = myDocument.allGraphics var;

    }

    }

    on the other

    {/ / If the graphics are selected, just add captions to the selected items, as long as they are rectangles (picture frames)}

    var myConfirmation = true;

    var mySelections = app.selection;

    myGraphics = new Array();

    for (i = 0; i < mySelections.length; i ++) {}

    If (mySelections [i] == "[" Rectangle object]) {//Check to make sure that the selection includes only rectangles}

    myGraphics.push(mySelections[i].allGraphics[0]);

    }

    else {}

    Alert ("other than the graphics objects have been selected!");

    Nothing happens if you do not select at least a chart

    }

    }

    }

    myLabelStyle = myDocument.paragraphStyles.item (myLabelStyleName);

    mySwatch = myDocument.swatches.item (mySwatchName);

    If (myConfirmation == true) {}

    for (var myCounter = 0; myCounter < myGraphics.length; myCounter ++) {}

    try {}

    myAddLabel (myDocument myGraphics [myCounter], myLabelType, myLabelHeight, myLabelOffset, myLabelStyle, mySwatch, myStoriesArray);

    }

    catch (e) {};

    }

    }

    }

    //=============================================================\\

    function myAddLabel (myDocument, myGraphic, myLabelType, myLabelHeight, myLabelOffset, myLabelStyle, mySwatch, myStoriesArray) {}

    var myLabel;

    myLink var = myGraphic.itemLink;

    var myPasteFromClipboard = false;

    Create the layer of the label if it does not already exist.

    var myLabelLayer = myDocument.layers.item ("labels");

    try {}

    myLabelLayer.name;

    }

    {} catch (MonErreur)

    myLabelLayer = myDocument.layers.add({name:"labels"});)

    }

    Label type defines the text that goes into the label.

    {Switch (myLabelType)}

    File name

    case 0:

    myLabel = myLink.name;

    break;

    Path of the file

    case 1:

    myLabel = myLink.filePath;

    break;

    XMP description

    case 2:

    try {}

    myLabel = myLink.linkXmp.description;

    }

    {catch (MyError)}

    myLabel = "No description available.";

    }

    break;

    XMP author

    case 3:

    try {}

    myLabel = myLink.linkXmp.author

    }

    {catch (MyError)}

    myLabel = "No author available.";

    }

    break;

    Paste from the Clipboard

    case 4:

    try {}

    myPasteFromClipboard = true;

    }

    {catch (MyError)}

    myLabel = "No data on the Clipboard.";

    }

    break;

    }

    myFrame var = myGraphic.parent;

    myX1 = myFrame.geometricBounds [1];

    myY1 = myFrame.geometricBounds [2] + myLabelOffset;

    myX2 = myFrame.geometricBounds [3];

    myY2 = myY1 + myLabelHeight;

    If (myPasteFromClipboard is true)

    {

    try {}

    var myTextFrame = myFrame.parent.textFrames.add (myLabelLayer, defined, undefined, {geometricBounds: [myY1, myX1, myY2, myX2]});

    myTextFrame.insertionPoints.item (0) .select ();

    App.Paste ();

    }

    {catch (e)}

    myTextFrame.remove ();

    myPasteFailure = true;

    }

    }

    else {}

    var myTextFrame = myFrame.parent.textFrames.add (myLabelLayer, defined, undefined, {geometricBounds: [myY1, myX1, myY2, myX2], contents: myLabel});

    }

    myTextFrame.textFramePreferences.firstBaselineOffset = FirstBaseline.leadingOffset;

    myTextFrame.paragraphs.item (0) .appliedParagraphStyle = myLabelStyle;

    myTextFrame.fillColor = mySwatch;

    myFrameParentStory = myTextFrame.parentStory;

    myStoriesArray.push (myFrameParentStory);

    }

    //=============================================================\\

    function myGetParagraphStyleNames() {}

    var myStyleNames = app.documents.item (0).paragraphStyles.everyItem () .name;

    Return myStyleNames;

    }

    function myGetSwatchNames() {}

    var mySwatchNames = app.documents.item (0).swatches.everyItem () .name;

    Return mySwatchNames;

    }

    function resizeOverset() {}

    for (var j = myStoriesArray.length - 1; j > = 0; j-) {}

    myLastFrame = myStoriesArray [j] .texts [0] .parentTextFrames [myStoriesArray [j] .texts [0].parentTextFrames.l its - 1];

    myNewY2 = myLastFrame.geometricBounds [3]; Retrieves the width of the text block before doing fit()

    myLastFrame.fit (FitOptions.FRAME_TO_CONTENT);

    myNewY1 = myLastFrame.geometricBounds [1];

    myNewX1 = myLastFrame.geometricBounds [2];

    myNewX2 = myLastFrame.geometricBounds [0];

    myLastFrame.geometricBounds = [myNewY1, myNewX2, myNewX1, myNewY2]; reset the front wide fit() ran

    }

    }

    Hello

    Added runWithoutDialog() - permanent function fixed inside:

    //LabelGraphics.jsx (Modified)
    //An InDesign CS5 JavaScript
    /*
    @@@BUILDINFO@@@ "LabelGraphics.jsx" 1-Dec-2014
    */
    //Adds labels to the graphics in the active document.
    /* User interaction switched off
      see settings inside runWithoutDialog() function
      */
    main();
    //=============================================================\\
    function main(){
      myStoriesArray = new Array();
      if(app.documents.length != 0){
      if(app.selection[0].allGraphics.length != 0){
      runWithoutDialog(); // myDisplayDialog();
      }
      else{
      alert("Select some frame with graphic");
      }
      }
      else{
      alert("Please open a document and try again.");
      }
      }
    //=============================================================\\
    function runWithoutDialog(){
      var myLabelWidth = 100;
      var myStyleNames = myGetParagraphStyleNames();
      var mySwatchNames = myGetSwatchNames();
      var myLabelType = 4; // paste from clipboard
      var myLabelHeight = 24; // A generic label height that will be adjusted later
      myPasteFailure = false;
      var myLabelOffset = 0;
      var myLabelStyle = myStyleNames[0];
      var mySwatch = mySwatchNames[0];
      var myOldXUnits = app.documents.item(0).viewPreferences.horizontalMeasurementUnits;
      var myOldYUnits = app.documents.item(0).viewPreferences.verticalMeasurementUnits;
      app.documents.item(0).viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;
      app.documents.item(0).viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;
    
      try{
      myAddLabels(myLabelType, myLabelHeight, myLabelOffset, myLabelStyle, mySwatch);
      }
      catch(e){
      alert("Unable to add lables. " + e);
      }
    
      try{
      resizeOverset() ;
      }
      catch(e){
      alert("Unable to correct overset text. " + e);
      }
    
      if (myPasteFailure == true){
      alert("Unable to paste from clipboard.");
      }
      app.documents.item(0).viewPreferences.horizontalMeasurementUnits = myOldXUnits;
      app.documents.item(0).viewPreferences.verticalMeasurementUnits = myOldYUnits;
      }
    //=============================================================\\
    function myDisplayDialog(){
      var myLabelWidth = 100;
      var myStyleNames = myGetParagraphStyleNames();
      var mySwatchNames = myGetSwatchNames();
      var myDialog = app.dialogs.add({name:"LabelGraphics"});
      with(myDialog.dialogColumns.add()){
      //Label type
      with(dialogRows.add()){
      with(dialogColumns.add()){
      staticTexts.add({staticLabel:"Label Type", minWidth:myLabelWidth});
      }
      with(dialogColumns.add()){
      var myLabelTypeDropdown = dropdowns.add({stringList:["File name", "File path", "XMP description", "XMP author","Paste from clipboard"], selectedIndex:4});
      }
      }
      with(dialogRows.add()){
      with(dialogColumns.add()){
      staticTexts.add({staticLabel:"Label Offset", minWidth:myLabelWidth});
      }
      with(dialogColumns.add()){
      var myLabelOffsetField = measurementEditboxes.add({editValue:0});
      }
      }
      //Style to apply
      with(dialogRows.add()){
      with(dialogColumns.add()){
      staticTexts.add({staticLabel:"Label Style", minWidth:myLabelWidth});
      }
      with(dialogColumns.add()){
      var myLabelStyleDropdown = dropdowns.add({stringList:myStyleNames, selectedIndex:0});
      }
      }
      //Swatch to apply
      with(dialogRows.add()){
      with(dialogColumns.add()){
      staticTexts.add({staticLabel:"Apply swatch", minWidth:myLabelWidth});
      }
      with(dialogColumns.add()){
      var mySwatchDropdown = dropdowns.add({stringList:mySwatchNames, selectedIndex:0});
      }
      }
      }
      //=============================================================\\
      var myResult = myDialog.show();
      if(myResult == true){
      var myLabelType = myLabelTypeDropdown.selectedIndex;
      var myLabelHeight = 24; // A generic label height that will be adjusted later
      myPasteFailure = false;
      var myLabelOffset = myLabelOffsetField.editValue;
      var myLabelStyle = myStyleNames[myLabelStyleDropdown.selectedIndex];
      var mySwatch = mySwatchNames[mySwatchDropdown.selectedIndex];
      myDialog.destroy();
      var myOldXUnits = app.documents.item(0).viewPreferences.horizontalMeasurementUnits;
      var myOldYUnits = app.documents.item(0).viewPreferences.verticalMeasurementUnits;
      app.documents.item(0).viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;
      app.documents.item(0).viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;
    
      try{
      myAddLabels(myLabelType, myLabelHeight, myLabelOffset, myLabelStyle, mySwatch);
      }
      catch(e){
      alert("Unable to add lables. " + e);
      }
    
      try{
      resizeOverset() ;
      }
      catch(e){
      alert("Unable to correct overset text. " + e);
      }
    
      if (myPasteFailure == true){
      alert("Unable to paste from clipboard.");
      }
      app.documents.item(0).viewPreferences.horizontalMeasurementUnits = myOldXUnits;
      app.documents.item(0).viewPreferences.verticalMeasurementUnits = myOldYUnits;
      }
      else{
      myDialog.destroy();
      }
    }
    //=============================================================\\
    function myAddLabels(myLabelType, myLabelHeight, myLabelOffset, myLabelStyleName, mySwatchName){
      var myDocument = app.documents.item(0);
    
      if (app.selection.length == 0) // If nothing is selected apply caption to all graphics in the document
      {
      var myConfirmation = false; // confirm("Add captions to all images in the document?", false, "LabelGraphics.jsx" );
      if (myConfirmation == true)
      {
      var myGraphics = myDocument.allGraphics;
      }
      }
      else
      { // If graphics are selected, just add captions to the selected items, as long as they are rectangles(image frames)
      var myConfirmation = true;
      var mySelections = app.selection;
      myGraphics = new Array();
    
      for(i = 0; i < mySelections.length; i++){
      if(mySelections[i] == "[object Rectangle]"){  //Check to make sure selection only includes rectangles
      myGraphics.push(mySelections[i].allGraphics[0]);
      }
      else{
      //alert("Objects other than graphics were selected!");
      //Nothing happens if you don't select at least one graphic
      }
      }
      }
    
      myLabelStyle = myDocument.paragraphStyles.item(myLabelStyleName);
      mySwatch = myDocument.swatches.item(mySwatchName);
    
      if (myConfirmation == true){
      for(var myCounter = 0; myCounter < myGraphics.length; myCounter++){
      try{
      myAddLabel(myDocument, myGraphics[myCounter], myLabelType, myLabelHeight, myLabelOffset, myLabelStyle, mySwatch, myStoriesArray);
      }
      catch(e){};
      }
      }
      }
    //=============================================================\\
    function myAddLabel(myDocument, myGraphic, myLabelType, myLabelHeight, myLabelOffset, myLabelStyle, mySwatch, myStoriesArray){
      var myLabel;
      var myLink = myGraphic.itemLink;
      var myPasteFromClipboard = false;
      //Create the label layer if it does not already exist.
      var myLabelLayer = myDocument.layers.item("labels");
      try{
      myLabelLayer.name;
      }
      catch (myError){
      myLabelLayer = myDocument.layers.add({name:"labels"});
      }
      //Label type defines the text that goes in the label.
      switch(myLabelType){
      //File name
      case 0:
      myLabel = myLink.name;
      break;
      //File path
      case 1:
      myLabel = myLink.filePath;
      break;
      //XMP description
      case 2:
      try{
      myLabel = myLink.linkXmp.description;
      }
      catch(myError){
      myLabel = "No description available.";
      }
      break;
      //XMP author
      case 3:
      try{
      myLabel = myLink.linkXmp.author
      }
      catch(myError){
      myLabel = "No author available.";
      }
      break;
      //Paste from the clipboard
      case 4:
      try{
      myPasteFromClipboard = true;
      }
      catch(myError){
      myLabel = "No clipboard data available.";
      }
      break;
      }
    
      var myFrame = myGraphic.parent;
      myX1 = myFrame.geometricBounds[1];
      myY1 = myFrame.geometricBounds[2] + myLabelOffset;
      myX2 = myFrame.geometricBounds[3];
      myY2 = myY1 + myLabelHeight;
    
      if (myPasteFromClipboard ==true)
      {
      try{
      var myTextFrame = myFrame.parent.textFrames.add(myLabelLayer, undefined, undefined,{geometricBounds:[myY1, myX1, myY2, myX2]});
      myTextFrame.insertionPoints.item(0).select();
      app.paste();
      }
      catch(e){
      myTextFrame.remove();
      myPasteFailure = true;
      }
      }
      else{
      var myTextFrame = myFrame.parent.textFrames.add(myLabelLayer, undefined, undefined,{geometricBounds:[myY1, myX1, myY2, myX2], contents:myLabel});
      }
    
      myTextFrame.textFramePreferences.firstBaselineOffset = FirstBaseline.leadingOffset;
      myTextFrame.paragraphs.item(0).appliedParagraphStyle = myLabelStyle;
    
      myTextFrame.fillColor = mySwatch;
      myFrameParentStory = myTextFrame.parentStory;
      myStoriesArray.push(myFrameParentStory);
    }
    //=============================================================\\
    function myGetParagraphStyleNames(){
      var myStyleNames = app.documents.item(0).paragraphStyles.everyItem().name;
      return myStyleNames;
      }
    function myGetSwatchNames(){
      var mySwatchNames = app.documents.item(0).swatches.everyItem().name;
      return mySwatchNames;
      }
    function resizeOverset() {
      for (var j = myStoriesArray.length - 1; j >= 0; j--) {
      myLastFrame = myStoriesArray[j].texts[0].parentTextFrames[myStoriesArray[j].texts[0].parentTextFrames.length - 1];
      myNewY2 = myLastFrame.geometricBounds[3]; //get the width of the text frame before doing fit()
      myLastFrame.fit(FitOptions.FRAME_TO_CONTENT);
      myNewY1 = myLastFrame.geometricBounds[1];
      myNewX1 = myLastFrame.geometricBounds[2];
      myNewX2 = myLastFrame.geometricBounds[0];
      myLastFrame.geometricBounds = [myNewX1, myNewY1, myNewX2, myNewY2]; // reset the width to before fit() was ran
      }
      }
    
  • FXML and style sheets

    FXML another question I'm afraid.

    The FXML [url http://download.oracle.com/javafx/2.0/fxml_get_started/jfxpub-fxml_get_started.htm] guide shows how we can define a style directly in the FXML, but anyone know if it is possible to define a style on a node class in FXML which is defined in a style sheet? In the code, this would be through:
    myLabel.styleClass().add("myLabelStyle")
    In FXML, I tried the following options (each fails in different ways):
    <Label text="My Label" style="myLabelStyle"/> 
    <Label text="My Label" styleClass="myLabelStyle"/>
    <Label text="My Label" fx:style="myLabelStyle"/>
    <Label text="My Label" fx:styleClass="myLabelStyle"/>
    Better that I came up with this day consists of defining the 'id' of the node, and then use the id selector "#" in the style sheet. It works but it is clumsy and if I have a fx:id for mapping to the controller I need to put both that is painful:
    <Label text="My Label" fx:id="myLabel" id="myLabel"/>
    Anyone got the best options?

    See you soon,.
    zonski

    Hello

    Here is a concrete example of what you wish to achieve.

    
    

    The fx:id is here also because this is necessary for the label stored in the right place in the controller. For style, I use the style class.

    .my-label {
       -fx-text-fill: green;
    }
    

    Michael

    Published by: MiPa on 04.09.2011 23:13

    Published by: MiPa on 04.09.2011 23:17

  • Change the size of the text in a label symbol

    FW CS4 - Mac

    Question in two parts:

    1 I barely started using the excuse today so many Fireworks which is probably a simple question but I can't find a range of dialogue of type style in Fireworks - I have implemented a couple of character styles and am changing the size of the type on the label (option Mac button) I just placed the common library - I chose the type in the section "label" "Symbol properties" Panel but it does not seem to change the font or point size. The type of label style is editable?

    2. When you arrive at this in InDesign, it's quite different! Can anyone recommend a training video that uses one through the process of designing a site in FW and then "export" (if that's what you're doing) to DW CS4? I hope it's worth persevering with FW and not only go back to InDesign or Illustrator to produce visual design, but worry when I saw a video earlier which stated: "the current best practices for web design essentially exclude this option to export as a viable method to create a Web site, but exporting HTML and Images is incredibly valuable in a prototyping perspective...". »

    Thank you very much.

    If you simply click on the button in the properties panel there is an entry for the button label box. But click the button twice to get the button Edit window, and then select the text object, and you should have the elements of normal text object in the properties panel. Since I'm on Windows, the font name was empty in the drop-down list box, but I could click it to select one of my installed fonts.

    If you press the button, you have the properties of the button. You must enter the lower level when you change how the button is set up to get the individual items.

  • Problems of paragraph CS4 styles

    I had weird problems with paragraph styles in InDesign CS4, I've not had in CS2. The first weird problem that happened in a class project where somehow a style is stuck in the head of the program, so to speak, and any model, I try to apply by default to that stuck. It still occurs in that particular file, no matter what I try. The "blocked" style is actually not one of the styles that I ended by definition, so it must have been a point I tried to a certain point and then discarded. I tried to remove completely all the styles and start over, I tried to 'Break link to Style' before then trying to apply one of my styles... I always get stuck style.

    Then, I experiment me in a test document, with styles of work the way they are supposed to have SOME success and ran across another small problem: when I select a number of paragraphs to apply a numbered list, the numbers appear as they should. Then I click on the icon of the new style at the bottom of the styles palette to create a style based on that and the style label 'Style of paragraph 1' appears in the palette. As soon as I click on this style to open dialogue to rename it, all the numbers change to '1 '. And then if I try to apply the style to another series of selected paragraphs, they all are numbered '1' also. It works this way any numbering system, I use... all 'A' or 'I' or other.

    I already tried to uninstall and reinstall InDesign without result. I also tried to reset the InDesign preferences. I am unfortunately the glitchy things with Photoshop CS4 also experience. I have a fairly new iMac 24 "2.8 GHZ Intel Core 2 Duo with 4 G of Ram and running OSX 10.5.6. I bought the software supplied with the Design Premium Suite.

    The first problem is probably caused by your having a character applied to the text style. This can simplify the application of really confusing paragraph styles. Try now Option and shift keys when you click on the name of the paragraph style.

    The numbering problem is caused by your expects too much of a unique style. You have the style defined to start numbering at 1 instead of continuing from the previous. You can get with a unique on the latter if you never want to restart page numbering in a second list. But if you must restart a list then you will need at least two, one to start the numbering and the other to continue.

    There was a numbering of discussions here on these two topics.

    Dave

  • Development of inputText readOnly using javascript.

    I have a form in which some components of inputText values are calculated by javascript (these values are only available from JS, until someone gives thinking that I should do everything on the server side). If the inputText component is not readOnly, then the solution I have works. However, if the inputText component is read only, call setValue() on the AdfRichInputText JS object has no effect.

    Below is an example of a page with both cases. Any ideas on what I can do?

    Barry
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
              xmlns:trh="http://myfaces.apache.org/trinidad/html">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="d1" title="testdoc">
                <f:facet name="metaContainer">
            <trh:script id="js">
                  function testJS () {
                    replace('txtReadOnly','READONLY-NEW-TEXT');
                    replace('txtNonReadOnly','NON-READONLY-NEW-TEXT');
                  }
    
                  function replace(inputTextId,newValue){
                    obj = AdfPage.PAGE.findComponentByAbsoluteId(inputTextId);
                    obj.setValue(newValue);
                  }
            </trh:script>
          </f:facet>
          <af:form id="f1">
            <af:panelStretchLayout id="psl1">
              <f:facet name="center">
                <af:panelGroupLayout id="pgl1" halign="center" layout="scroll">
                  <af:panelFormLayout id="pfl1">
                    <f:facet name="footer">
                      <af:panelGroupLayout id="pgl2" halign="center"
                                           layout="scroll">
                        <af:commandButton text="Run JS!" id="cb1">
                          <af:clientListener method="testJS" type="click"/>
                        </af:commandButton>
                      </af:panelGroupLayout>
                    </f:facet>
                    <af:inputText label="ReadOnly InputText" id="txtReadOnly"
                                  value="readonly orig value" readOnly="true"
                                  clientComponent="true"/>
                    <af:inputText label="Non-Readonly InputText" id="txtNonReadOnly"
                                  value="non-readonly orig value"
                                  clientComponent="true"/>
                    <af:spacer width="10" height="10" id="s5"/>
                  </af:panelFormLayout>
                </af:panelGroupLayout>
                <!-- id="af_one_column_stretched"   -->
              </f:facet>
              <f:facet name="bottom">
                <af:spacer width="10" height="10" id="s1"/>
              </f:facet>
              <f:facet name="end">
                <af:spacer width="10" height="10" id="s2"/>
              </f:facet>
              <f:facet name="start">
                <af:spacer width="10" height="10" id="s3"/>
              </f:facet>
              <f:facet name="top">
                <af:spacer width="10" height="10" id="s4"/>
              </f:facet>
            </af:panelStretchLayout>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>

    Hello

    use an af:serverListener to call a bean managed since JavaScript method. Pass the value as the payload and set aside server. Here is an example of the use of af: serverListener

    http://Oracle.com/technology/products/jdev/tips/fnimphius/clientListener/client-server-listener.html

    Frank

  • MapViewer display labels upside

    I have a basic map of measured lines which display a label (the number of routes) for each line when the map is rendered. My problem is the following:

    Sometimes the number of routing is displayed right at the top, and sometimes appears backwards. I watched this in MapBuilder, and it's the same way (sometimes right to the top, sometimes upside down). Anyone know how I can control it so that the labels are always right side up? Thank you.

    It seems to be related with the parameter 'sticky', forcing the label be returned even if there is a conflict. It will be considered.
    Try to false, the parameter "sitcky" but in this case, you can't get all the labels, as if there is a conflict of positions some labels are ignored.
    Another option is to use a marker as a label style, and in this case, you can get the text of the label inside the brand.

Maybe you are looking for

  • HP 550-153W: updates for HP 550-153W

    Hello. I've always wanted to upgrade a PC and recently I bought this HP 550-153W office at a good price. I've already updated the 16 GB RAM and I want to put a good graphics on this card. However, I'm not that tech savy. I know I need at least 500 wa

  • Satellite A100-750: how to increase the graphics memory

    Hi all I have a question... can I change the amount of memory available for the video card?Now the pc with Vista home premium have only 64 MB dedicated for the video card and 271 MB of available system memory and memory system used 0.It is possible t

  • Ethernet controller does not work on the Satellite L645D-S4030

    Basically, I got my windows 7 reinstalled on my laptop due to virus... Now I have a problem with the Ethernet controller does not, I checked my device manager and there is a kind of yellow dash through the icon... Someone knows what is the problem an

  • Browsers don't load not specific websites - MacBook

    I have Safari, Chrome and Firefox installed on my MacBook Pro El Capitan 10.11.3 running. I can access websites like Google, facebook, wikipedia, twitter, all very well. But for many smaller Web sites and Web sites of news, pages not be loading not o

  • Program compatibility Windows 7 64 bit does not start

    Hi my Windows 7 64 bit program compatibility does not start problem is the package id pcwdiagnosticpath c/windows/diagnosis/system /pcwerror code 0x80070426source enginecontext limited [Original title: malankane]