Hbj:button properties

Hi, 
I have a quick question about htmlb buttons in JSPs.  I just have a test JSP like so:
<hbj:content id="myContext" >
  <hbj:page title="PageTitle">
   <hbj:form id="myFormId" >
   <%-- used in the JSP DynPage to access the input field and retrieve the input of the user --%>
       <hbj:inputField
         id="user_name_input"
         type="STRING"
         design="STANDARD"
         width="250"
         maxlength="30"
        />
     <hbj:button id="change_pass_button"
                    text"Change Password"
                    tooltip="Change Me"
                    width="100"
                    design="EMPHASIZED">
     </hbj:button>
   </hbj:form>
  </hbj:page>
</hbj:content>
And I am unable to see the button.  Does there need to be an onclick method associated with this button to see the actual button?  Do I need to set myFormId.defaultButton(...) to the change_pass_button.  When I did that, the PRT generated an error saying that change_pass_button was an unresolvable symbol.  I just want to see what HTMLB buttons look like.  Thanks!

Hello,
You get very good help in Java Development ---> examples section. Here is the example
<hbj:button
  id="Send_Button"
  text="Save"                      
  onClick="onSendButtonClicked"      
  width="70"
design="EMPHASIZED" >
</hbj:button>
Thanks,
Praveen
if you want to validate with javascript u need to use  onClientClick event.
<hbj:button
  id="Send_Button"
  text="Save"                      
  onClick="onSendButtonClicked"  
  onClientClick="confirm_save()"        
  width="70"
design="EMPHASIZED" >
</hbj:button>

Similar Messages

  • Why can't I see an export value option in my radio button properties? I am using Acrobat X pro.

    Why can't I see an export value option in my radio button properties? I am using Acrobat X pro.

    Thanks so much. Thought it was just the name of the button and did not realize it was the value. Now able to use them for calculations.

  • Cannot set Flash button properties from sprite behaviour

    I'm puzzled...
    I'd like to set Flash button properties from behaviors on the
    sprite
    itself (unselect all buttons with a sendAllSprites, for
    example) but
    only this sample script works :
    on mouseEnter me
    sprite(spriteNum).selected = true
    end
    those ones won't:
    on mouseEnter me
    me.selected = true
    end
    on mouseEnter me
    selected = true
    end
    It must but obvious but I can't get it to work...
    Thanks.
    PJ

    The selected property is a property of the sprite. You need
    to
    reference the sprite specifically when you access it.
    When you are using
    me.selected=true
    the 'me' is referring to the current instance of the
    behaviour that is
    running. It is not referring to the sprite itself. Therefore,
    you need
    to use
    sprite(me.spriteNum).selected=true
    so that you correctly reference the sprite.
    You can use the syntax
    me.property=true
    only if the property in question is a property in that
    *script*.

  • hbj:inputField id=" hbj:button ,

    Hi Friends,
    when I use <hbj:inputField id="> <hbj:button>, I am not getting the Input fields & buttons, Instead I am getting warning like <u><b>" There is no corresponding extension directive for the tag".</b></u> Inspite,If I activate this, I am not getting input fields & buttons.
    <%@page language="abap"%>
    <%@extension name="htmlb" prefix="htmlb"%>
    <hbj:form
              id="myFormId"
              method="post"          target="_blank"          encodingType="multipart/form-data"          action="/htmlb/servlet/com.sap.htmlb.test.MyTestJsp1Test"
              >
    This form submits to a new web client window <br>
    because of 'target=_blank'.<br><br>
          <hbj:inputField
                   id="myInputField1"
                   type="String"
                   invalid="false"
                   width="310"
                   value="After editing press <Enter> to submit"
                   visible="true"
                   disabled="false"
                   required="true"
                   maxlength="30"
                   size="50"
                   >
           </hbj:inputField>
           <br><br>
           <hbj:button id="oKbutton"
                   text="OK"
                   onClick="onOKClick"
                   design="EMPHASIZED"
                   width="100"
                   >
                </hbj:button>
           <hbj:button
                   id="Infobutton"
                   text="Info"
                   onClick="onInfoClick"
                   width="100"
           />
           <hbj:button
                    id="Cancelbutton"
                    text="Cancel"
                    onClick="onCanClick"
                    width="100"
           />
    </hbj:form>
    pls Sort out this for me.
    Regards
    CSM Reddy

    you also need to modify the hbj:inputField like below
    <hbj:inputField
                   id="myInputField1"
                   type="String"
                   invalid="false"
                   width="310"
                   value="After editing press <Enter> to submit"
                   visible="true"
                   disabled="false"
                   required="true"
                   maxlength="30"
                   size="50"
                   <b>/</b>>
    note that i have removed  </hbj:inputField> and closing is done within the tag (highlighted / )
    Regards
    Raja

  • Creating buttons on the fly and setting button properties

    If I have a view and want to add buttons to it "on the fly" from values in an array, is that something straightforward to do?
    I have an array of UIImageVIew objects and would like to create buttons from them (showing the image on the buttons) and associate those buttons with a method in my implementation file. That would be a lot more general and flexible than creating the buttons in the Interface Builder I would imagine.
    And one more question - can I freely set button properties while doing that? Or in Objective-C can I only set properties that are already pre-defined for that class?
    Thanks!
    doug

    Thanks for your reply.
    That.... works! Thanks!
    And I can generate the button and click on it and it calls my other method and that works too. Cool!
    The syntax is still very mysterious to me, but I suppose eventually I'll understand what it all means.
    Breaking it down to see what it means:
    [button1 addTarget:self action:@selector(selectedHandler1:) forControlEvents:UIControlEventTouchUpInside];
    * button1 is the object I created (I'm going to try to do this in a loop next.)
    * addTarget is a message I am sending to button1 and the content of the message is "self", which refers to - this button? I'm not sure why such a message would be necessary.
    * action is another message sent to button1 and the contents of that message are a little harder to parse. I see the result, and can mimic the syntax now that I've seen it, but I don't really understand what the @ is for, or the : after the method name or why this wouldn't just be "action: selectedHandler". I'm sure the language designers have a logical reason for all that, but I don't quite "grok" those extra symbols yet.
    * forControlEvents is another message sent to button1 and the event message itself is clear in its meaning.
    Anyway, that is working and I can refer more to the UIButton class reference now and try to set more stuff, like position it better, etc.
    Thanks very much!
    doug

  • Cp5 - Button properties panel

    Hi all
    This is frustrating me so I'm hoping someone has some tips. When I copy a button from one project to another, I often want to change the button image. In the button properties, there is a little folder icon that lets me open my button gallery folder on the C: but it is only just accessible, and sometime, not visible at all (see image). To the right of the 'image button' combo box, I should see a folder, so I can quickly find the button image I need, but in this case it is not visible and there are no horizontal scroll bars at the bottom of the properties panel.
    Has anyone had this issue and found a resolution or work around? Any help would be appreciated.
    Regards
    Amanda

    OK.  Well in that case your best recourse might be to copy the files for your buttons in the Gallery and rename them to have much shorter names.  I don't think moving the buttons around is going to fix the issue.  And (from memory) renaming the existing buttons doesn't do the trick either.  Captivate sets the width of this area by the name of the longest button in the Gallery.  But for some reason, even if you remove or rename those buttons so that they are all short-named again, Captivate seems to think they are still there.  It retains settings somewhere about this.  You may even need to delete your Preferences file to reset everything.

  • Enable/view subs - pre-scripts or button properties?

    You have a number of ways in DVDSP to enable/disable subtitles for a Track.
    Mostly, I use SetSystemStream in a pre-script for a Track, and then I use SPRM8/GPRM5.
    But, given that you have separate buttons (play with subs, play without subs) you can also use button properties for the subs.
    Somewhere way back, I was told by HalMcLean that pre-scripts sometimes can cause problems - but I don't remember if that was particularly with subs or rather other parameters.
    What way would you guys go? Script or button?

    Hal,
    Nice to see you again.
    So, what do you suggest? Setting the subs in the button properties, or rather use a script with a jump to the Track (where you set the system stream before the jump)?
    For this qick job I actually used a pre-script in the single Track (systemstrrem sub on/off) and it seemed to work fine in both Simulator, Apple DVD player and three different hardware DVD players.
    Fingers crossed....

  • Accessing button properties in datagrid row?

    Hi
    I ve a datagrid which has a button in each row called "Select". When the user clicks the button it calls a function which saves the row details in an array. I also want to change the label and icon of the button but don't know how to access it?
    I ve tried giving each button a unique ID but I "is not a valid identifier" so I m really not sure how to access each button from my main script, anyone help?
    Cheers in advance
    Shaun

    Hi
    Thanks for replying, I m still unsure of how to access the properties of a button in a row? I currently have the code below and am struggling to access the properties of the 'Add' button so I can change the label and icon?
    Cheers
    Shaun
            <mx:columns>
                                <mx:DataGridColumn headerText="Group" dataField="groupName" width="130" editable="false" sortable="false" />
                                <mx:DataGridColumn headerText="Article Number" dataField="articleNumber" width="200" editable="false" sortable="false" />
                                <mx:DataGridColumn headerText="Article Name" dataField="slideTitle" width="230" editable="false" sortable="false" />
                                <mx:DataGridColumn headerText="Colourway" dataField="colourway" width="218" editable="false" sortable="false" />
                                <mx:DataGridColumn editable="false" paddingLeft="5" sortable="false">
                                    <mx:itemRenderer>
                                        <mx:Component>
                                            <mx:VBox>
                                                <mx:Button label="Add" icon="@Embed(source='assets/icons/add.png')">
                                                    <mx:click>
                                                        <![CDATA[
                                                            outerDocument.addItemToCart(data);
                                                        ]]>
                                                    </mx:click>
                                                </mx:Button>                                               
                                            </mx:VBox>
                                        </mx:Component>
                                    </mx:itemRenderer>
                                </mx:DataGridColumn>

  • Unable to open button "Properties"

    Captivate v4
    Question slide - I have been creating a series of question slides for later use. Suddenly I am unable to open the properties behind both the Clear and Submit buttons.
    I can open other properties behind other buttons.
    Does anyone have any ideas what has gone wrong and how to fix this please ?
    Noel

    I will be out of the office starting  11/11/2011 and will not return until
    21/11/2011.
    I am in KN Hamburg 14-18 Nov returning to office on 21 Nov. I will be
    checking my emails when possible, but please expect a delay in reply.
    Noel Griffiths
    Kuehne + Nagel Ltd, Birmingham, England
    Corporate Customer Solutions, eLearning
    @: [email protected]
    Mobile:  07785 388 336
    A smile is a curve that sets everything straight !

  • Button Properties Options / Captivate 8

    I'm using Captivate 8 and I just started this morning and I don't see the Options menu for my buttons. Does anyone know how to make this come back in the Properties?

  • Button Properties

    Do button have properties like enabled/disabled? How would you access these?
    Sorry newbie question

    Hi,
    OK - first, you need to be using a button template that uses the #BUTTON_ATTRIBUTES# substitution string and is an INPUT item of type="BUTTON". If you don't have one, you can create a new button template using something like:
    &lt;table class="t18Button" cellspacing="0" cellpadding="0" border="0"  summary=""&gt;
    &lt;tr&gt;
    &lt;td class="t18C"&gt;&lt;input type="button" onclick="#LINK#" #BUTTON_ATTRIBUTES# value="#LABEL#" /&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;/table&gt;&amp;nbsp;Adjust the class names as appropriate for your theme.
    Then, in your button's Button Attributes, enter:
    DISABLED ID="P1_THE_BUTTON"Where P1_THE_BUTTON is the value in the button's "Button Name" setting.
    Finally, in each of your radiogroup's definitions, add in the following into the HTML Form Element Attributes setting:
    onclick="javascript:$x('P1_THE_BUTTON').disabled=false"Again, replacing P1_THE_BUTTON with the button's "Button Name" setting.
    Now, when you run the page, the button is disabled. Clicking on any radiogroup item will enable the button.
    Andy

  • Accessing button properties in an array of clusters ...

    I have a situation whose solution is eluding me.
    I built an array of clusters (15 of clusters in the array). Each cluster is a boolean LED control and a path control.
    The array is wired to various VIs. One of these VIs is supposed to
    select a path from the array and then change the color of the LED that
    is clustered with that path. The path part works because I am reading
    the value of that array element. The problem is that I don't know how
    to get to the associated LED properties.
    I have used several approaches, but in all cases: when I change the color of the target LED, all 15 LEDs change color.
    Inside of a while loop with indexing enabled, I have unbundled the
    current cluster and then tried to apply a property node to the LED
    element but all LEDs change color.
    So the question is - How do I access the individual LED properties in an array of clusters?

    In an array only the values can be different for different elements. The properties are the same for all elements.
    You can work around this by using a color box, which has the color as the value.
    Here is an example of a color box customized to look like a LED with an explanation of how it was created.
    Try to take over the world!

  • Radio Button Properties

    I know I have solved this before but can't locate the answer, so hopefully someone can remind me. I need to set up radio bittons on a form that already has pre-existing boxes where the radio buttons will be placed. Therefore, I need the buttons to be invisible in terms of appearance so that the grey shadow box that usually comes with the buttons does not show on the form. I would have that that selecting no border and no fill would make the button invisible but still selectable when moused over, but that is not the case. I know there is a way to make the grey shadow disappear, just can't remember what it is. Here is a sample of the field on the form with the box from the original word processing document, and an example of the radio button field (moved over for added visibility for this question).

    Copesq wrote:
    I have 33 choices and want users to be able to select only 1.
    You can do that with Check Box, leave the name of the boxes all the same, but change the "Export Value" under the "Options" tab (i.e. a different value for each Box – 1, 2, 3, etc.).

  • Button Skin: How to add button properties (over, down,up)

    Hi all,
         I made a custom button "skin" because I want my buttons to be images with NO box or border around it and it works great, but I don't know how to add the button functionality. ex. In "over" state buttons tend to light up and in "down" state they tend to get darker. Anyone know how to apply this to an image??? below is my code. Thanks guys!!
    <?xml version="1.0" encoding="utf-8"?>
    <s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009"
                 xmlns:s="library://ns.adobe.com/flex/spark"
                 xmlns:mx="library://ns.adobe.com/flex/mx" width="64" height="64">
        <fx:Metadata>
            [HostComponent("spark.components.Button")]
        </fx:Metadata>
        <s:states>
            <s:State name="over" />
            <s:State name="down" />
            <s:State name="up" />
            <s:State name="disabled" />
        </s:states>   
        <mx:Image source="@Embed(source='assets/images/lightbulb.png')"/>
    </s:SparkSkin>

    You could try something like this:
    <?xml version="1.0" encoding="utf-8"?>
    <s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009"
                 xmlns:s="library://ns.adobe.com/flex/spark"
                 xmlns:mx="library://ns.adobe.com/flex/mx"
                 width="64" height="64">
        <fx:Metadata>
            [HostComponent("spark.components.Button")]
        </fx:Metadata>
        <s:states>
            <s:State name="over" />
            <s:State name="down" />
            <s:State name="up" />
            <s:State name="disabled" />
        </s:states>   
        <mx:Image source="@Embed('assets/images/lightbulb.png')"
                  source.over="@Embed('assets/images/lightbulb_lit.png')"
                  source.down="@Embed('assets/images/lightbulb_dark.png')"
                  source.disabled="@Embed('assets/images/candle.png')" />
    </s:SparkSkin>
    Peter

  • Dynamically populate the text propert of the Button in JSP

    Hello,
    I have the following code in the doInitialization() method:
          IPortalComponentRequest request =((IPortalComponentRequest)this.getRequest());
          myBean = new MyBean();
          myBean.setText("Submit");
          request.getComponentSession().putValue("myBean", myBean);
    doProcessBeforeOutput forwards the request to JSP
    this.setJspName("MyView.jsp");
    and the JSP is:
    <%@ taglib uri="tagLib" prefix="hbj"%>
    <jsp:useBean
    id="myBean"
    scope="session"
    class="Test.portal.MyBean"
    />
    <hbj:button
    id="MyButton"
    text="<%= myBean.getText() %>"
    onClick="click"
    tooltip="submit">
    </hbj:button>
    By doing this I was hoping to see the text of the button to be 'Submit' but it is empty. Any ideas on what I am doing wrong?
    Thanks,
    Asheesh

    I found a similar post on the forum. I had to remove the following from portalapp.xml
    <property name="ComponentType" value="jspnative"/>
    <property name="JSP" value="pagelet/MyView.jsp"/>
    Once I did that the Submit text on the button appeared.
    Do you know why having these properties were causing the problem?

Maybe you are looking for