Doubt in usage of Command Link

hi All,
I have a use case where i use the commandLink and CommandImageLink, in the design editor i can see all the images and icon's i'm using.
But when i run the application i'm able to see only Shortdesc in place of the image/icon. the format of the icon is *.gif and .png*.
Can anybody suggest whats the mistake i'm doing?
I'm using JDev 11g, ADF BC, IE7, OS Windows XP.
Help Tips and Inputs Given is Highly Appreciated...
Thanks in Advance
Jyothi

Hi JParsam,
can you post a code snippet of your jspx page?
my test case works just fine:
<?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:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=utf-8"/>
<f:view>
<af:document>
<af:form>
<af:pageTemplate viewId="/oracle/templates/threeColumnTemplate.jspx">
<f:facet name="center"/>
<f:facet name="header"/>
<f:facet name="end"/>
<f:facet name="start">
<af:commandLink text="commandLink 1">
<af:image shortDesc="image" source="/images/New/left.gif"/>
</af:commandLink>
</f:facet>
<f:facet name="branding"/>
<f:facet name="copyright"/>
<f:facet name="status"/>
</af:pageTemplate>
</af:form>
</af:document>
</f:view>
</jsp:root>
Branislav
Edited by: bjanko on May 13, 2009 11:26 AM

Similar Messages

  • Command link usage.

    Hi,
    I am using </h:commandLink > tag to generate command links in each row of <h:table> tag. simple code i am using:
    <h:dataTable value="#{projectBean.projects}" var="projectsData">
    <h:column>
    <f:facet name="header">Name</f:facet>
    <h:outputLink value="#{projectBean.getProjectDetails">
    <h:outputText value="#{projectsData.name}"/>
    <f:param name="pId" value="#{projectsData.projectId}"/>
    </h:outputLink>
    </h:column>
    <h:column>
    <f:facet name="header">Date</f:facet>
    <h:outputText value="#{projectsData.stDate"/>
    </h:column>
    </h:table>
    I am able to generat the link with the param value passing but the action method is not getting invoked on press of the link, could any one help me in usage of commandlink tag in invoking action page.
    Regards
    Mruthyunjaya

    I have used the command link instead of outLink also the tag is under form tag only but still the link action is not executed.
    if i changed the bean to session scope it is running fine, but as the bean is session scope it is displaying old values along with new values, i.e. the form is displayed with repeated values.
    can some one help me in solving this problem.
    thanks
    Mruthyunjaya

  • Command Link usage in JSF datatable

    Hi,
    Following is my requirement. Can any one help me in resolving the issue.
    I hava a JSF page which displays a datatable. One of the columns in the datatable displays a command link. When the user clicks the link in a particular row. Details correpsonding to the particular row have to be displayed in another page. I am using action attribute to perform the navigation from first page to next. Inside action method in the backing, is there any other means to get the row data from the datatable for which the link is clicked.
    Please help.

    You may find this article useful: http://balusc.blogspot.com/2006/06/using-datatables.html

  • Popup window without using a command button or command link in Adf10g

    Hi,
    I need to show a table in a popup window on clicking in a component in the jspx page. The component can't be a command button or a command link, so i can't use 'useWindow' or 'useDialog'. What can be done in such a case. I am using Jdev version 10.1.3.
    I doubt if <af:dialog> or <af:popup> components are available in ADF10g.

    Hi,
    There's a way, but frakly I would try to change the functional side instead of trying it. Anyhow, if you want to do it, you'll have to use a combination of autoSubmit/onclick along with DialogService.launchDialog (accessible through AdfFacesContext), but that's a very obscure part of the framework.
    Regards,
    ~ Simon

  • Command Link problem-Urgent

    Hi
    I am having Tabbedpane, under that I am including three jsp files...
    which contains a dataTable , having one column data as a commandLink which inturn opens a Edit page.
    It is working with out tappedpane, When I click Command link for Edit
    in TabbedPane, I am getting java script error saying "Error on page".
    When I submit the action from commandLink from an individulal page .
    Its working fine.
    anyone help me in resolving this issue...?

    Update your Ie, or maybe you have some option that the others don't have.

  • Command link navigation problems in IE but not firefox

    Hi,
    I've developed an application using JSF and SDO. I have several pages where the user is displayed data from the database and pages where the user can add data , edit data and delete data.
    Each page has a jsp fragment contained in the page. This is based on faces and is the naviation menu. Each link in the menu is a command link and has navigation rules which are global. Now the problem I get is that when I sometimes nvaigate between pages using the navigation or command links in a page the page just refreshes and displays the same page again. But if I keep trying to click the link again then after a few attempts the link goes to the page i've requested. I've added system outs on the actions for the links to see if they are getting called when the page just refreshes. The answer is no as the system out line is never printed unless the action of the link is actually executed.
    Now the problem is that this only occurs in ie and NOT in firefox. I'm really confused now!!
    Here is some techinical details to help narrow down my situation:
    I'm using wsad 5.1.2 which has faces 1.0, ie 6, firefox 1.0.3.
    Any help would be appreciated!!

    doh! i've solved this problem now....well for now its working perfectly but i'll have to do a bit more testing.
    For anyone that has this problem here was my solution...
    - In IE i went to tools > general tab > settings
    from this menu choose check for newer versions of stored pages to automatically. I previously had every visit to the page.
    This seems to have fixed my problem and the reason why it worked in firefox was because the settings for caching were different.

  • Command link in adf pivot table

    Hi,
    I Created one View Object (WrkVOR) Based on below query
    Select Desc1,Desc2 ,Date,Sum(Amount) From populate_wrk Group by Desc1,Desc2 ,Date
    Based on View Object we created pivot table
    Rows - Desc1 ,Desc2
    Column - Date
    Amount will come under each date (Like Matrix report)
    Up to It is working fine
    i added a command link on data(Amount) when i click the command link i am getting below error
    DVT-2015 Slice 1 Exceeds boundary -3
    please help....
    Thanks
    shk

    Hi,
    the real problem of the original poster seems to be <af:commandLink text="#{row.GlobalDealId}" id="cl1" action="createMDM" immediate="true" partialSubmit="true"> having immediate set to true in which case the request goes from restore view to render response. You usually use immediate=true on a command item to cancel an action (bypassing all the other JSF lifecycle steps).
    Peter551059,
    you don't give us much information about your case. So if the problem is IE9 and you verified IE9 is supported for the version of JDeveloper you use, then - in case you have a support contract - my best advise is to file a service request and have support looking at it just in case you hit a defect that should be filed as a bug
    Frank

  • Command Link Issue

    Hi,
    I am using Jdevloper 11g.
    I am facing issue with the following code.
    In brief - I am taking Value from session and want to display those values as Command link on jspx, in af:forEach.
    When I bind that Command Link with Managed Bean that time it displays Last Element only (Code given below).
    When I removed Binding ( binding="#{ManagedBean.schemeName}") at that time it displays all the values on page as Command Link.
    Binding is required for my app to find Link text. Is there any alternative?
      <af:forEach var="item"    items="#{sessionScope.SchemeList}">
    <af:commandLink text="#{item.schemeName}"
                                                    id="cb14" immediate="true"  partialSubmit="true"
                                                    binding="#{ManagedBean.schemeName}"
                                                     inlineStyle="#{item.eligibilStatus eq 'Y' ? 'color:black' : 'color:Red'}"
                                                  actionListener="#{ManagedBean.schemeChangeListener}"/>
    </af:forEach>Thank You,
    Regards,
    Dilkhush

    Hello,
    Thank you,
    The solution you had given that is working.
    Now my issue is I have created Programmatically VO.
    I refereed following link to create Programmatically VO
    http://adfpractice-fedor.blogspot.com/2011/01/adf-bc-programmatically-populated-vo.html
    but My issue is how to set VOs Bind Variable Value.
    Because have to send that value from the bean.
    In above link they took two inputText to set Bind Variable value but in my condition I cannot take InputText.
    I am setting that value in my Managed bean as shown below.
    public void schemeChangeListener(ActionEvent actionEvent) {
          OperationBinding opBinding =
              CommonUtil.getOperationBinding("#{bindings}",
                                             "initParamValues");
          opBinding.getParamsMap().put("custID", customerID.getValue().toString());
          opBinding.getParamsMap().put("accountType", (CommonUtil.evaluateEL("#{bindings.ADAccountType.attributeValue}")).toString());
          opBinding.getParamsMap().put("productID", (CommonUtil.evaluateEL("#{bindings.DMAProductId.attributeValue}")).toString());
          opBinding.getParamsMap().put("entityID", homeEntityID);
          opBinding.getParamsMap().put("schemeCode", linkText);
          opBinding.execute();
    }and I have taken that VO as Table on jspx page.
    Issue is before going to bean method it goes to View object and show NullPointerException because the values never get set.
    The above code is called when the commandLink is clicked code given below.
    <af:commandLink text="#{item.schemeName}"
                                                  id="sName" immediate="true"  partialSubmit="true"
                                                  inlineStyle="#{item.eligibilStatus eq 'Y' ? 'color:black' : 'color:Red'}"
                                                  actionListener="#{MakBean.schemeChangeListener}"/>is there any solution how can I set the Bind Variable value from bean and get Expected result in table.
    Thank you
    Regards,
    Dilkhush

  • Command Link as a row of a datatable in JSF

    Hi All,
    I am new to JSF. I have a Datatable with n number of rows.
    I would like to have a command Link in each of the rows, so that when i click the command link i should get the data of the entire row in my edit page.
    Can anyone suggest how can i achieve this.
    Regards
    SN

    Hi,
    Do following:
    1- add a datatable in your page and fill it with data comes from database(Assume u have no problem with datatable)
    2- add a column as commandLink in data table. e.g.
    <h:column>
    <f:facet name="header">
    <h:outputText value="name" />
    </f:facet>
    <t:commandLink action="editObject" immediate="true" >
    <h:outputText value="#{theobject.name}" />
    <t:updateActionListener property="#{objectForm.id}" value="#{objectDto.id}" />
    </t:commandLink>
    </h:column>
    in this code:
    "name" is header of column,
    "editObject" is defined in navigation rule to navigate to edit page, lets say object form.
    "theobject.name" the value that mouse gets finger over it!
    "objectForm.id" the pointer to an "id setter" of a managed bean (named objectForm) defined in faces-config.xml. In this setter you can load corresponding data from database
    "objectDto.id" the pointer to an "id getter" of a managed bean (named objectDto) defined in faces-config.xml. this getter return the id of the entity row you clicked on.
    3- Clearly, you need to defined all managed beans, and dont forget to have a customized setter for id of objectForm (setId) to load the entity from database and fill all editable properties(as you like) in this function (setId).
    4- you need a JSF page to redirect to it for editing properties and feed by objectForm
    5- Thats it :)

  • Command Link : Backing bean setters/getters always invoked

    I am trying to understand how to the setters and getters of a request scope managed backing bean are invoked through the navigation flow when using a command link.
    It seems that no matter where the navigation rules redirects the page as a result of the action, both the setters and getters of any field bound in the originating page are called.
    For example if the originating page has a field name referred by "#{UserBean.name}" to input a username. setName() and getName() are always called as a result of a click on a command link
    This behavior is easily seen in a simple JSF example such as http://www.netbeans.org/kb/articles/jAstrologer-intro.html.
    If the jsp pointed by "to-view-id" is changed to have no reference to the backing bean or is changed to a jsp with just text, both setters and getters are still invoked.
    I could understand why the setters would be invoked (doesn't know ahead of time if the bean will be used?) but at least why the getters?
    Last, how to prevent this behavior? The problem is that the backing bean might have complex logic where it will fetch data if a getter is called.
    Thanks.

    I guess this article might be interesting to get some insights http://balusc.xs4all.nl/srv/dev-jep-djl.html
    The setters are invoked to set values and the getters are invoked to get the eventually presetted default values or the previously submitted values.

  • Command link action not being called

    Hi,
    I raised another bug about this and I thought I had fixed this but it seems to have come back again! Here are the details:
    The Problem
    - I have a jsf application that uses SDO to manage database calls/changes. In the application I have a navigation menu which consists of command links. From time to time (doesn't always happen) you click on a link and the page just refreshes and you are not taken to the requested page. Now this doesn't happen all the time! I've looked at logs and added debugs but I can't find anything apart from the face that when the page just refreshes the action behind the command link is not called.
    Has anyone experienced this before? I'm using wsad 5.1.2 and have this problem and the version of faces is 1.0.
    Please help as I have no idea what is causing this!!

    yep, sorry for reposting but in that post I said I had it fixed but obviously its not. What's really change is that I cant recreate this problem on my laptop but on our dev and test environments this problem still exists. My initial thoughts is that this is an environment problem but i'm not totally convinced as the was settings etc are the same as on my laptop.

  • Command Link attribute is returning null.

    Hi all,
    I have a pojo iterator with me. I have to generate command link for a attribute from that iterator. I generated them using a ForEach loop as below and put address of employee as an attribute of that tag. Now in the Action Listener i am fetching this attribute using actionEvent as below : -
        public void displayUploadAttachment(ActionEvent actionEvent) {
           System.out.println("Content Id:- "+actionEvent.getComponent().getAttributes().get("adr"));
    My action Listener returns it as NULL. I am not getting why it is doing this.
    <af:forEach items="#{bindings.myEmpIterator.children}"
                                  var="emp">
                        <af:commandLink text="#{emp.firstName}" partialSubmit="true" id="cl22"
                                        actionListener="#{viewScope.empBean.displayEmpAddress}">
                        <f:attribute name="adr" value="#{emp.address}"/>
                        </af:commandLink>
                      </af:forEach>
    J dev version
    Studio Edition Version 11.1.1.6.0

    Hi,
    Couple of things to check.
    1. Check if the address is really null (instead of #{emp.firstName} as text for the commandLink, try with #{emp.address}).
    2. Instead of
    System.out.println("Content Id:- "+actionEvent.getComponent().getAttributes().get("adr"));
    try
    System.out.println("Content Id:- "+((RichCommandLink)actionEvent.getSource()).getAttributes().get("adr"));
    -Arun

  • Command Link in ADF table is not working/ PPR event not getting fired

    Hi All,
    I am having ADF Table, in that one column is with command link if click on command link, it is not navigating to corresponding page or method of a bean. If i give same command link out of the table it working fine, this issue i am facing is in IE9.
    if i use IE in compatibility mode the links works fine, even in IE8 version also.
    Browser: IE 9
    Jdev version: 11.1.1.5.0
    I tried all possible things, but nothing workout for me.
    showPopupBehavior not working in IE9 for af:table buttons (jdev11.1.1.5.0)
    Partial page rendering not working in ie9
    Command Link in ADF table is not working
    Thnks

    Hi,
    please file a bug if you have a customer support contract and provide a testcase
    Frank

  • Command link used as tree node

    I'm using an ADF Tree where one of my nodes is a command link. I've given the link an id="myLink".
    When I run the page, the tree shows up fine with just one node.
    But the View Page source does not contain any entry that says id="mylink".
    Where could be the problem?
    Thanks
    RV

    Hi,
    I assume you use ADF Faces RC, because otherwise you would have posted this to the JDeveloper forum. If you add a command link t a node, then this command link is used for any node that is rendered for the tree (unless you implemented it in a way that only has exactly one command link component showing in the whole tree - which I don't think you have).
    In JSF you cannot have more than one component with a specific ID, which means that assigning an ID to a command link in a tree doesn't make much sense.
    In ADF Faces RC, trees are active components, which means they are created in the DOM and not HTML. So using a DOM inspector like Firebug you should see your tree and link components
    <a id="j_id___jsp_tag_ctru4:7:myLink" class="xdk" href="#" onclick="return false;">commandLink 1</a>
    Frank

  • Command link propagating the Faces Message to another page

    Hi,
    I am facing a problem with a message +(message added to FacesContext Queue)+ being propagated from one page to another.
    I have 2 jsp pages. Both these pages when accessed display data loaded from DB. When the user comes to first page and there is no data found a FacesMessage is added to FacesContext and is displayed. There is a command link on this page which performs the navigation to 2nd jsp page.
    Problem* : If the user clicks the link, the same message that was displayed in 1st jsp page is displayed in 2nd jsp page even if the data is present
    FacesContext display messages that are in the same request and clicking on command link creates a new request, so the old message in the FacesContext Queue should be removed and it should not carry forward that message to next jsp
    Please correct me if I am wrong.
    Thanks
    Avner
    Edited by: avner on Jan 31, 2008 8:38 PM

    I don't think you have given us enough to work with here. Try paring down the code to the smallest possible example that still exhibits the problem. Many times that process itself will reveal the issue. If not, post the example here.

Maybe you are looking for