Command Link inside of datatable

I have the following problem when I put a command link inside a datatable.
The action or actionlisteners never get called. Now here is the funny thing.
1. If I move the action link outside the datatable it works.
2. if I change the scope of the bean to session it works
3. if the datatable contains more than 1 row it works
The last one tells me this is a bug.
To test this I change the sql query to limit the result so 1 row would be returned.
The sql query returns a CachedRowSetImpl
I believe this is a bug.
<h:dataTable rows="6" first="0" id="table" binding="#{event.eventdata}" value="#{event.eventdetails}" var="eventdetail">
<h:column>
<h:commandLink value="#{eventdetail.title}" action="#{event.resaveEventaction}" actionListener="#{event.resaveEventdetails}" id="test" >
</h:commandLink>     
</h:column>
<h:column>
</h:dataTable>

Here is some additional information that makes this more confusing.
The following code is used to populate the datatable
public CachedRowSetImpl getEventdetails(){
     CachedRowSetImpl rs2 = null;
     String selectedeventmy = selectedevent;
     int rowcount = 0;
     try { 
          sql = "SELECT * FROM event where eventid='"+selectedeventmy+"' ";
          rs2 = RunQuery.mysql(sql);
          rowcount = rs2.size();
     } catch (Exception e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
     return rs2;
where RunQuery.mysql is
public class RunQuery {
     public static CachedRowSetImpl mysql(String sql) throws Exception {
          CachedRowSetImpl crset = null;
          InitialContext initCtx = new InitialContext();
          Context envCtx = (Context) initCtx.lookup("java:comp/env");
          try {
               DataSource ds = (DataSource) envCtx.lookup("jdbc/associations");
               Connection conn = null;
     Statement stmt = null;
     conn = ds.getConnection();
     stmt = conn.createStatement();
     stmt.execute(sql);
     ResultSet rs = stmt.getResultSet();
     crset = new CachedRowSetImpl();
     crset.populate(rs);
     rs.close();
     stmt.close();
     conn.close();
          } catch (Exception e) {
               System.out.println(e.getMessage());
          return crset;
if I replace the line
String selectedeventmy = selectedevent;
with String selectedeventmy = "61";
it works properly.
selectedevent is populated from the following triggered by another action event on another page. ? The funny thing is if the result set returns more that 1 row all works ok.
public String viewDetails(){
     System.out.println("Running view Details");
     int selectedrow = eventlist.getRowIndex();
     Object selected = eventlist.getRowData();
     Map rowdata = (Map) selected;
     selectedevent = rowdata.get("eventid").toString();
     System.out.println("Selected Event:"+selectedevent);
     outcome="eventdetails";
     return outcome;
}

Similar Messages

  • JSF Command Link inside DataTable has to be clicked twice in order to work

    I currently have a command link inside of a dataTable. However, when I go to the page and click the link nothing happens. It appears that the page is refreshed but looking at the logs nothing is done. However, if you click the same link again everything is updated properly. How do I get the command link to work properly? And, I have everything operating in the session scope.

    sdgorham wrote:
    No I do not have h:messages on the page. Just add it for debugging purposes. There might have been a validation or conversion error occurred which wasn't 'catched' by any h:message.
    Unfortunately, upgrading to another version isn't an option at the moment. OK, I checked the MyFaces page and 1.1.5 is indeed the latest JSF 1.1 implementation.
    Is there any other possible solutions that are more like a hyperlink than the command button. What exactly is causing the problem that I described?Have you tried if it works with a button or not? Only then we can be more sure about the cause of the problem.

  • Command Link inside table to external website in popup window

    Hi,
    I am trying to have a command link inside a table which is on the tables id. I know that if I have control of the destination page I can use setCurrentRowKeyValue. However I do not have control of the external website. So I cannot add it into my faces-config.xml file? I have tried putting a GoLink and a GoButton but I get the following Illegal character in fragment error, when I put my destination URL in. An example of the format the URL is:
    http://www.bbc.co.uk/radio?&music=#{row.PrimaryKey}&adf=123
    Where I am adding in #{row.PrimaryKey} which is the Id of the row. I would like to have the new page opened into a pop up window if this is possible.
    I am not sure if this can be done in the backing bean or whether my approach is the correct one?
    Many Thanks
    Steve

    something like...
    <af:goLink text="#{row.PrimaryKey}"
               destination="http://www.bbc.co.uk/radio?&amp;music=#{row.PrimaryKey}&amp;adf=123"
               targetFrame="_blank"/>Regards,
    Neeraj

  • Command links in h:datatable not working

    I have some command links in h:datatable which are not working. When I click the command link all I get is a referesh page(same page is displayed with datatable values as null). But when I put command link outside h:datatable, the navigation takes place properly. Any idea what could be worng

    You can try using t:dataTable from tomahawk.jar, instead of the h:dataTable. Make the following changes in your code.
    1. Add the taglib uri in your JSP as,
    <%@ taglib uri = "http://myfaces.apache.org/tomahawk" prefix="t" %>
    2. Add the tomahawk-1.1.3.jar to your WEB-INF/lib folder.
    3. Instead of using h:dataTable, use t:dataTable.
    4. After the form save your bean's state as,
    </h:form>
    <t:saveState id="viewForm" value="#{stateBean}"/>
    Here, id can be any name and the value should be the name of your bean, how u have used in your JSP.
    I hope this will help you.

  • Styling command link inside a panel List

    Hi All,
    I have the following layout:
    PanelBox
    --panelList
    -- CommandLink
    I would like to style the command link under the panel List component. I have tried skinning the command Link component individually as well as applying styling to panel List component. Both didn't work( I haven't debugged this yet with firebug). From the skinning document, it has been mentioned that Style the root component of the command Link/Panel List. In this case, how do we style the command Link component. Basically, i would like to apply style for Link active, hover and focus.
    Thanks,
    Bala

    As far as I am aware, you would need to skin the specific component irrespective of the parent componet/root.
    For your usecase, you take look at the skinning demo application for the various skinning selectors for the command link at
    http://jdevadf.oracle.com/adf-richclient-demo/faces/components/skinningKeys/commandLink.jspx
    Thanks,
    Navaneeth

  • Command link from nested datatables

    I have nested datatables that work, but I need to be able execute an actionListener from a h:commandLink and reference the item that is being clicked. The example below works except that it always returns the items in the last category. So that if the 2nd item in the first category is clicked, the 2nd item of the last category is returned. I tried binding my dataTables to UIData objects on my managed bean so that I could call getRowData() but I cannot find a way to bind the embedded h:dataTable when I don't know how many to expect.
    Here is the code (stripped down for simplicity):
    <h:dataTable value="#{bean.categories}" var="category">
        <h:column>
            <h:outputText value="#{category.name}" styleClass="txtTitle"/>
            <h:dataTable value="#{category.items}" var="item">
                <h:column>
                    <h:commandLink actionListener="#{bean.activate}">
                        <h:outputText value="#{item.name}"/>
                        <f:param name="activate" value="#{item}"/>
                    </h:commandLink>
                </h:column>
            </h:dataTable>
        </h:column>
    </h:dataTable>
    =====================================================
    public class ManagedBean {
        private List categories;
        private Item activeItem;
        public void activate(ActionEvent e) {
            UICommand command = (UICommand)e.getComponent();
            List children = command.getChildren();
            for (Iterator i = children.iterator(); i.hasNext(); ) {
                UIComponent child = (UIComponent) i.next();
                if (child instanceof UIParameter) {
                    UIParameter param = (UIParameter)child;
                    if (param.getName().equals("activate")) {
                        this.activeItem = (Item)param.getValue();
                        break;
        public List getCategories() {
            return categories;
        public void setCategories(List categories) {
                this.categories = categories;
        public Item getActiveItem() {
            return activeItem;
        public void setActiveItem(item activeItem) {
                this.activeItem = activeItem;
    }

    bump

  • Command link inside an unordered list

    i have this code:
    <verbatim>
    < ul >
    < li >
    some text
    < /li >
    < /ul >
    </verbatim>
    now i want to add a <af:commandlink> next to the 'some text'
    is that possible?
    Message was edited by:
    sigbin.com

    or is there a way to make an unordered list using adf faces like in table layout?
    dan

  • 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

  • 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 :)

  • Dynamic datatable and command link

    I'm having a problem creating CommandLink's automatically. What we have is a tag, which can contain a set of data. We need this on several locations, so we have to create a datatable dynamically. When you press a link, it should be possible to retrieve the ID of the component on that specific row.
    The problem is, we can create the table with the necessary data. When I construct the column with the ID (and the link), it fails.
    Code:
    HtmlCommandLink link = new HtmlCommandLink();
    Application app = FacesContext.getCurrentInstance().getApplication();
    ELContext elContext = FacesContext.getCurrentInstance().getELContext();
    ValueExpression ve = app.getExpressionFactory().createValueExpression(elContext,"${" + TABLE_VAR_NAME + "." + property + "}", Object.class);
    link.setValueExpression("value", ve);
    link.getAttributes().put("rowId", ve.getExpressionString() );
    link.addActionListener(
        new ActionListener(){
         public void processAction(ActionEvent arg0)
              throws AbortProcessingException {
              LOG.info(">>>>>>>>>>>>> Linked pushed !!"  +
              arg0.getComponent().getAttributes().get("rowId"));
    selectColumn.getChildren().add(link);
    datatable.getChildren().add(selectColumn);The rowId is always #{row.code}, instead of the actual data. Is there a way to create a command link dynamically, press it and retrieve the ID of that field? That expression should be evaluated at runtime and added to the datatable, but that doesn't happen apparently.

    I've read your article, but I didn't find anything I could use. Facing a deadline and don't really have time to try out multiple (possible) solutions. The problem is that all the examples I can find point to MethodBinding, but I don't need that. I just need to get the ID of the row that was clicked, nothing more.
    This works fine:
    link.setValueExpression("value", ve);I don't see why the other expression isn't evaluated.
    I can do getParent().getParent() to get a reference to the DataTable, but the datamodel on that object is empty btw.

  • Command Link with Datatable doesnt work

    I had read the previosu posts stating that commandLink with the datatable will be corrected with the new version of Jsf- 1_1_01 .I installed the new version and the commandLink doesnt work inside a datatable still

    try initialising the List attached to the dataTable
    in the constructor or use an outputLink
    -DevioutputLink is similar to <href in jsp.It cannot implement the actionListener and action parameters which a commandLink does. Using a constructor for initializing is fine but when i want it to implement certain method then it creates a problem.

  • 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.

  • How to get the column index inside a dataTable

    Hello,
    before I get staked, there are multiple threads handling familiar topics to the one I'm questioning about but none gives an anwer. If there is one, I'm propably to less skilled to see it.
    So here is my Problem: I've build a web-interface to a time-recording system. The hours worked on a certain project are displayed in a dataTable component which is generated out of a mySQL Query. Each entry (column/row) contains a inputText component to display and edit the specific value.
    Editing one of these inputText elements now fires a valueChangeEvent which reads the new value and stores it in the database. For that cause I need to know the row- and column-index of the inputText component that fired the event.
    Using the getClientId method from the valueChangeEvent I get some Information which makes it possible to calculate the row/column index. A typical clientID looks like "form_table:mainTable:0:_id14". "form_table" is the ID of the form the dataTable is in. "mainTable" is the id of the dataTable component. "0" is the row the component is in. And finally "_id14" stands for the id randomly given to the inputText component by JSF.
    My Problem is now, that though I can calculate the column out of the[i] "_id14", this calculation is hardcoded. So everytime I add a component in before the dataTable, the calculation needs to be adjusted in the code.
    The Questions:
    - How to force a sensefull id indicating a column-index for the inputText components inside the columns of a dataTable?
    - Nicer since no workaround: How to get the column-index inside the dataTable on a natural way? (e.g. out of the valueChangeEvent the specific inputText component fires)
    After some investigation here on the board and on the net I know multiple ways to get the row index, (Things like component-binding and so on) but I can't find a answer on how to get the column-index.
    Thanks to all answers and/or links to things my eyes missed while searching for one.

    ...then index 0 becomes index 1 and my program doesn't work properlyThe program works properly, just not as you expect it to.
    As you've noticed the table gives you the flexibility to move columns around. So if you move column 0 to column 1, why would you expect to still use 0 as the index? The table manages the reordering of columns for you to make sure the data being displayed in each table column comes from the correct column in the data model.
    You can manage this yourself using one of the following methods (I forget which one):
    table.convertColumnIndexToModel(int viewColumnIndex)
    table.convertColumnIndexToView(int modelColumnIndex)
    Or, you can get data from the data model directly:
    table.getModel().getValueAt(row, 0);

  • My command link doesn't work

    hi all,
    i have a created a page where i am performing a web type search with search form and search results on the same page and i have also implemented the conditional display of search results table as directed by the ADFBC guide.
    i.e., I created a managed bean where in am setting the searchFirstTime flag. here is the code of my managed bean.
    public class UserState {
    private static final String SEARCH_FIRSTTIME_FLAG = "SEARCH_FIRSTTIME_FLAG";
    private HashMap hmUserSettings = new HashMap();
    public UserState() {
    try{
    System.out.println("setting the user settings in constructor");
    hmUserSettings.put(SEARCH_FIRSTTIME_FLAG,true);
    }catch(Exception e){
    e.printStackTrace();
    public boolean isSearchFirstTime(){
    Boolean firstTime = (Boolean)hmUserSettings.get(SEARCH_FIRSTTIME_FLAG);
    try{
    System.out.println("setting the search flag in isSearchFirstTime firstTime.booleanValue() :"+firstTime.booleanValue());
    if (firstTime == null){
    firstTime = true;
    }catch(Exception e){
    e.printStackTrace();
    return firstTime.booleanValue();
    public void setSearchFirstTime(boolean searchFlag){
    try{
    System.out.println("setting the search flag searchFlag :"+searchFlag);
    hmUserSettings.put(SEARCH_FIRSTTIME_FLAG, new Boolean(searchFlag));
    }catch(Exception e){
    e.printStackTrace();
    In the search results table one of the columns is a command link, clicking on which opens a pop up window where i have some more details being displayed.
    here is the code of my jspx page for the command link
    <af:commandLink text="#{row.OrderNumber}"
    binding="#{backing_TestDDPUD.commandLink1}"
    action="#{backing_TestDDPUD.commandLink1_action}"
    useWindow="true"
    partialSubmit="true"
    windowHeight="200"
    windowWidth="500"
    id="commandLink1"/>
    i have specified the action to be performed,in the backing bean of my page, here's the code
    public String commandLink1_action() {
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding =
    bindings.getOperationBinding("setCurrentRowWithKey");
    Object result = operationBinding.execute();
    System.out.println("inside commandLink1_action");
    if (!operationBinding.getErrors().isEmpty()) {
    System.out.println("$$$$$$$$$$$$$$$ has errors $$$$$$$$$$$$4");
    return null;
    DCIteratorBinding ib = (DCIteratorBinding)bindings.get("OeOrderHeadersViewResultsIterator");
    Row row = ib.getCurrentRow();
    Number numHeaderId = (Number)row.getAttribute("HeaderId");
    FacesContext fc = FacesContext.getCurrentInstance();
    // 2. Create value binding for the #{data} EL expression
    ValueBinding vb = fc.getApplication().createValueBinding("#{data}");
    // 3. Evaluate the value binding, casting the result to BindingContext
    BindingContext bc = (BindingContext)vb.getValue(fc);
    // 4. Find the data control by name from the binding context
    DCDataControl dc = bc.findDataControl("TestDDAppModuleDataControl");
    // 5. Access the application module data provider
    ApplicationModule am = (ApplicationModule)dc.getDataProvider();
    ViewObject vo = am.findViewObject("OeOrderLinesAllView");
    vo.setNamedWhereClauseParam("theHeaderId",numHeaderId);
    System.out.println((vo.getNamedWhereClauseParam("theHeaderId")));
    return "dialog:orderDetails";
    my problem is that now when i enter a search criteria and execute the search, the search results are displayed properly in the table but when i click on the command link it does not open the pop up window, it does not even enter into the commandlink1_action() method..here's the log which i get after i click on the command link..can somebody please tell me what is going wrong or what exactly is happening
    07/03/28 17:19:20 [363] Reusing a cached session application module instance
    07/03/28 17:21:03 [364] **** refreshControl() for BindingContainer :TestDDPUDPageDef
    07/03/28 17:21:03 [365] *** Using bean introspection to lookup value :result
    07/03/28 17:21:03 [366] Invoke method Action:999
    07/03/28 17:21:03 [367] DCInvokeMethod:Invoking TestDDAppModuleDataControl.dataProvider.setOrgPolicyContext()
    07/03/28 17:21:03 inside the setOrgPolicyContext
    07/03/28 17:21:03 blnSetOrgPolicyContext finally :true
    07/03/28 17:21:03 [368] Resolving VO:TestDDAppModule.OeOrderHeadersView for iterator binding:OeOrderHeadersViewIterator
    07/03/28 17:21:03 [369] DCUtil, RETURNING: <null> for TestDDAppModule.OeOrderHeadersView
    07/03/28 17:21:03 [370] Resolving VO:OeOrderHeadersView for iterator binding:OeOrderHeadersViewResultsIterator
    07/03/28 17:21:03 [371] DCUtil, returning:oracle.adfinternal.view.faces.model.binding.FacesCtrlRangeBinding, for OeOrderHeadersView
    07/03/28 17:21:03 [372] *** DCDataControl.sync() called from :DCBindingContainer.refresh
    07/03/28 17:21:03 [373] valiateToken:Decompressed BC state:BCST:=0OeOrderHeadersViewIterator=-F-,OeOrderHeadersViewResultsIterator=-D-000100000004C30A031F,
    07/03/28 17:21:03 setting the user settings in constructor
    07/03/28 17:21:03 setting the search flag in isSearchFirstTime firstTime.booleanValue() :true
    07/03/28 17:21:03 setting the search flag in isSearchFirstTime firstTime.booleanValue() :true
    07/03/28 17:21:03 setting the search flag in isSearchFirstTime firstTime.booleanValue() :true
    07/03/28 17:21:03 [374] **** refreshControl() for BindingContainer :TestDDPUDPageDef
    07/03/28 17:21:03 [375] *** DCDataControl.sync() called from :DCBindingContainer.refresh
    07/03/28 17:21:03 setting the search flag in isSearchFirstTime firstTime.booleanValue() :true

    hi Frank,
    i have my table inside a panel page which is already sorrounded with h:form so i cannot sorround my table again with h:form or af:form. the command link in the page was working fine, till i included the code for the conditional display of the results table. If i look at the log printed after i click on the command link, i don't see any of the sop's being printed that i have given inside the commandlink1_action() method, i have a feeling that my action method is not being called at all and i am not able to figure out why the sop in the isSearchFirstTime() method is being printed 4 times.
    here is the entire code of my .jspx
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:afh="http://xmlns.oracle.com/adf/faces/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces">
    <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
    doctype-system="http://www.w3.org/TR/html4/loose.dtd"
    doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <afh:html binding="#{backing_TestDDPUD.html1}" id="html1">
    <f:loadBundle basename="UIResources" var="res"/>
    <afh:head title="SalesOrderTemplate" binding="#{backing_TestDDPUD.head1}"
    id="head1">
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252"/>
    </afh:head>
    <afh:body binding="#{backing_TestDDPUD.body1}" id="body1">
    <af:messages binding="#{backing_TestDDPUD.messages1}" id="messages1"/>
    <h:form binding="#{backing_TestDDPUD.form1}" id="form1">
    <af:panelPage title="Change Me"
    binding="#{backing_TestDDPUD.panelPage1}"
    id="panelPage1">
    <f:facet name="menu1"/>
    <f:facet name="menuGlobal"/>
    <f:facet name="branding"/>
    <f:facet name="brandingApp"/>
    <f:facet name="appCopyright"/>
    <f:facet name="appPrivacy"/>
    <f:facet name="appAbout"/>
    <af:panelForm binding="#{backing_TestDDPUD.panelForm1}"
    id="panelForm1">
    <af:inputText value="#{bindings.OrderNumber.inputValue}"
    label="#{bindings.OrderNumber.label}"
    columns="#{bindings.OrderNumber.displayWidth}"
    binding="#{backing_TestDDPUD.inputText8}"
    id="inputText8"/>
    <af:inputText value="#{bindings.SoldToOrgId.inputValue}"
    label="#{bindings.SoldToOrgId.label}"
    columns="#{bindings.SoldToOrgId.displayWidth}"
    binding="#{backing_TestDDPUD.inputText39}"
    id="inputText39"/>
    <f:facet name="footer">
    <af:panelGroup layout="vertical"
    binding="#{backing_TestDDPUD.panelGroup1}"
    id="panelGroup1">
    <af:panelButtonBar binding="#{backing_TestDDPUD.panelButtonBar2}"
    id="panelButtonBar2">
    <af:commandButton actionListener="#{bindings.Execute.execute}"
    text="Search"
    disabled="#{!bindings.Execute.enabled}"
    binding="#{backing_TestDDPUD.commandButton2}"
    id="commandButton2">
    <af:setActionListener from="#{false}"
    to="#{UserState.searchFirstTime}"/>
    </af:commandButton>
    </af:panelButtonBar>
    </af:panelGroup>
    </f:facet>
    </af:panelForm>
    <af:table value="#{bindings.OeOrderHeadersView.collectionModel}"
    var="row"
    rows="#{bindings.OeOrderHeadersView.rangeSize}"
    first="#{bindings.OeOrderHeadersView.rangeStart}"
    emptyText="#{bindings.OeOrderHeadersView.viewable ? 'No rows yet.' : 'Access Denied.'}"
    binding="#{backing_TestDDPUD.table1}" id="table1"
    rendered="#{UserState.searchFirstTime == false}">
    <af:column sortProperty="OrderNumber" sortable="false"
    headerText="#{bindings.OeOrderHeadersView.labels.OrderNumber}"
    binding="#{backing_TestDDPUD.column1}" id="column1">
    <af:commandLink text="#{row.OrderNumber}"
    binding="#{backing_TestDDPUD.commandLink1}"
    action="#{backing_TestDDPUD.commandLink1_action}"
    useWindow="true" partialSubmit="true"
    windowHeight="200" windowWidth="500"
    id="commandLink1"/>
    </af:column>
    <af:column sortProperty="SoldToOrgId" sortable="false"
    headerText="#{bindings.OeOrderHeadersView.labels.SoldToOrgId}"
    binding="#{backing_TestDDPUD.column2}" id="column2">
    <af:inputText value="#{row.SoldToOrgId}"
    required="#{bindings.OeOrderHeadersView.attrDefs.SoldToOrgId.mandatory}"
    columns="#{bindings.OeOrderHeadersView.attrHints.SoldToOrgId.displayWidth}"
    binding="#{backing_TestDDPUD.inputText2}"
    id="inputText2">
    <f:convertNumber groupingUsed="false"
    pattern="#{bindings.OeOrderHeadersView.formats.SoldToOrgId}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="OrderTypeId" sortable="false"
    headerText="#{bindings.OeOrderHeadersView.labels.OrderTypeId}"
    binding="#{backing_TestDDPUD.column3}" id="column3">
    <af:inputText value="#{row.OrderTypeId}"
    required="#{bindings.OeOrderHeadersView.attrDefs.OrderTypeId.mandatory}"
    columns="#{bindings.OeOrderHeadersView.attrHints.OrderTypeId.displayWidth}"
    binding="#{backing_TestDDPUD.inputText3}"
    id="inputText3">
    <f:convertNumber groupingUsed="false"
    pattern="#{bindings.OeOrderHeadersView.formats.OrderTypeId}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="RequestDate" sortable="false"
    headerText="#{bindings.OeOrderHeadersView.labels.RequestDate}"
    binding="#{backing_TestDDPUD.column4}" id="column4">
    <af:inputText value="#{row.RequestDate}"
    required="#{bindings.OeOrderHeadersView.attrDefs.RequestDate.mandatory}"
    columns="#{bindings.OeOrderHeadersView.attrHints.RequestDate.displayWidth}"
    binding="#{backing_TestDDPUD.inputText5}"
    id="inputText5">
    <f:convertDateTime pattern="#{bindings.OeOrderHeadersView.formats.RequestDate}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="OrderedDate" sortable="false"
    headerText="#{bindings.OeOrderHeadersView.labels.OrderedDate}"
    binding="#{backing_TestDDPUD.column5}" id="column5">
    <af:inputText value="#{row.OrderedDate}"
    required="#{bindings.OeOrderHeadersView.attrDefs.OrderedDate.mandatory}"
    columns="#{bindings.OeOrderHeadersView.attrHints.OrderedDate.displayWidth}"
    binding="#{backing_TestDDPUD.inputText6}"
    id="inputText6">
    <f:convertDateTime pattern="#{bindings.OeOrderHeadersView.formats.OrderedDate}"/>
    </af:inputText>
    </af:column>
    </af:table>
    </af:panelPage>
    </h:form>
    </afh:body>
    </afh:html>
    </f:view>
    <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_TestDDPUD-->
    </jsp:root>
    thanks,
    lavanya

  • Hide/Show a Panel group or Panel Box with a command link

    I need to show and hide a panel group/box that has a lot of components inside ..with a command link ...I need to do this with partial submit ....please advise.
    <af:commandLink >
    hide the panel box with all the comps inside it ..change commandlink text ....
    use the same command link to show the panel box and change the command link
    text back
    </af:commandLink>
    <af:panelGroup layout="vertical">
    <af:panelBox>
         <af:panelGroup>
    ALOT of components .......
         </af:panelGroup>
    </af:panelBox>
    </af:panelGroup>
    I tried with partial trigger ..I tried everything i know ..it did not work .....it only worked I do a I full submit and setting some processScope(session) variables ..
    Thanks.

    Hi,
    - have a managed bean in session scope
    - define a boolean variable that is set to true
    - expose the variable through a public method
    - use EL on the panelBox rendered property to link to this boolean method
    - define an action listener on the command link and set the autosubmit property to true
    - use the action listener to set the boolean value
    - define a value for the ID property of the command link
    - set the ID vaule to the PartialTrigger property of the panelGroup component
    Frank

Maybe you are looking for

  • Home Movies on Apple TV

    I understand that I can watch home movies on my computer via apple tv. I am planning on buying a second generation apple tv but before I do so I would like to make sure that there is a way to watch the home movies which I have imported into imovie on

  • OWA_SEC.CUSTOM package - Custom authentication procedures...

    Folks - I haven't ever used the OWA_SEC.CUSTOM package for custom authentication of a psp application - and now need to do so. The documentation doesn't have any examples of what I need to do. Although there is plenty of documentation - it all says t

  • "click to call" posibillity in cisco phones ?

    Hello Is there any way to call numbers on cisco phones directy from clik on website ? I am looking for sollution like in skype : https://support.skype.com/en/faq/FA12264/what-is-the-skype-add-on Users install add on on computer webbrowsers and number

  • How to back up an iPod 5th Gen iOS 8 without pass code

    Hello, The screen of my son's iPod touch was broken and now no longer accepts swipe or touch input.  We would like to back it up so we can restore on to a new iPod. We connected to iTunes on the computer normally used to sync it, but iTunes wants us

  • Rmic and java.rmi troubles

    Hi Have been trying to run the rmi calculator-example at http://java.sun.com/developer/onlineTraining/rmi/RMI.html, but keep getting: Exception in thread "main" java.lang.InternalError: Unexpected exception while defining class CalculatorImpl <<No st