A simple JSF Table CRUD - How To

Hello,
I have to build a few CRUDs for very simple tables (3 columns at most) implemented as JSF tables.
I wish the "Create" function to work as:
1. By clicking the "Create" button (or link?), append an empty row at the end of the table (or perhaps instert one at the start of te JSF table). I think it is not so good to insert new data using a separate form for it (and my users don´t like it either) for so simple tables.
2. Enter the data for the new row.
3. Clicking on "Save" button, commit all inserts and updates made to the database and refresh the table.
My problem is that I could'nt find a way to do point 1 (Insert row). I've searched the forum, studied the tutorials but found nothing of the sort.
So, I would be very grateful if some could explain me how to solve my problem.
Thanks a lot in advance,
AG

Mr Brenden
Yes, I'm new to JDeveloper. That does not mean I'm new to developing applications. I've been doing it for about 25 years (I'm quite old as you can see). I've been using some Oracle products (mostly Forms, Reports, Discovery and i'm allways been a fan of Designer). I'm not new to Forums (Eclipse RCP, Eclipse Birt, Java Sun Creator, etc) and I'm not new to JSF. I allways appreciate very much others help and always try to help them. I've posted work arounds and how tos for more than one subject. I allways take my time to thank people for the help. I've given may e-mail to newbies to give them a better help of subjects I know and they need. The thing I can't accept is that someone, in the name of Oracle, give answers that you can interpretate as "Don't bother, investigate and study!". I've received answers like "In this blog .......... you might find the answer to your problem in the entry ....). That is specific. Your answer sent me to a page that had 20 or more entries and not one of them touched the subject. The worst thing is that I already knew the site and read a lot of things in it.
I didn't lambaste against the comunity. I did it against you! It clearly stated "This is specifically directed to Mr Grant Ronald:" Looks like you dont have the habit to analize the posts. And I did it against you because you posted your answer in Oracles name!
I have to recognize I was quite rude and apologize for that in front of all buddies in the world of application development.
As I know this is not the right place for this kind of arguing, here is my email and name, for you or someone else who wants to continue the argument: [email protected] (Antonio Gurisatti)
As a last thing, I'll state my position:
People, in the name of the products company are supposed to know more than any one. I expect that if I see the words "Oracle Products management" at the bottom of their entry, they really know the product and that their help is the most effective and accurate (Mr Brendens reply was effective and accurate).
AG

Similar Messages

  • Simple custom JSF table

    Could somebody point me to a complete example of a custom simple JSF table component?
    I don’t want special effects; I look for pedagogical code that teaches appropriate way of construct a custom JSF table, from beginning to end.
    thanks!

    Pedagogical code? :)
    Explore the source code of any open source UIData components.

  • Updateable (CRUD) JSF Table - Button Enabling in ADF BC

    Hellow everyone,
    The scene:
    An updateable (CRUD) JSF table with "Create", "Commit", "Rollback" buttons.
    By default, this buttons have the "Disabled" property binded to something like #{!bindings.Commit.enabled}
    When page is rendered for the first time, the create button is enabled and the Commit and Rollback are disabled.
    This two buttons get enabled if I insert a row in the table but not if I change data in a row.
    So, I tried to do force the enablement of the buttons by:
    1. Setting autosubmit = true for the inputText components in the table columns. (Tried it, no change)
    2. Created a ChangeListener method in the pages backing bean and asigned it to the ValueChangeListener property of the inputText components. The method is:
    public void valueChanged(ValueChangeEvent event) {
    this.getSaveBtn().setDisabled(false); // saveBtn == Commit
    As I expected, it didn't work. The buttons state must be saved in a some kind of persistence. In other products you use to save this kind of states in a session or request bean. But looking at the standard binding used by JDeveloper (#{!bindings.Commit.enabled} I deduce that this kind of persistence is used in a different way.
    Unfortunatelly I didn't find information about the subject in JDevs documentation nor this forum.
    The question:
    Does anyone knows how can I learn to use this "bindigs" object used by JDev or how to use this kind of temporary peristence in JDev? I presume I can just forget all about it and use a session bean to manage all temporary persistence of this kind but I'd like to do it in JDevs way.
    Thanks a lot for any help.
    AG

    If you don't care about the buttons themselves providing a visual cue that data has changed, then the easiest thing is to just remove the disabled property - then it will default to false and the button will always be enabled.
    i.e., change this:
    <af:commandButton actionListener="#{bindings.Commit.execute}" text="Commit"
      disabled="#{!bindings.Commit.enabled}"/>to this:
    <af:commandButton actionListener="#{bindings.Commit.execute}" text="Commit"/>If you do need the buttons to be visual cues I would suggest setting the partial triggers property on the button to point to the table. (Although I haven't tried it in this case - I've never worked with an editable adf table before...)

  • How to populate a jsf table with an array?

    I have a JSF project where I'm using a table and I would like to populate that table with some custom information without using a database. I'm trying to write my own data provider. I was wondering if anyone knows how to populate a jsf table using an array. Any help would be appreciated. Thanks.

    Hey thanks for replying. I'm not quite sure what you mean, but I am using a woodstock table in Netbeans. I would love to skip writing the data provider since I've never done that before, but I'm not sure how I would go about populating the table with a regular List or Model. I have populated a JTable with my own model, but never a woodstock table. They don't seem to work the same way. Thanks for the help. I've spent hours trying to figure this out.

  • How it use Filter Id and FilterPanelFocusid in JSF Table component

    How it use FilterId and FilterPanelFocusid in JSF Table component

    How it use FilterId and FilterPanelFocusid in JSF Table component

  • Error in running a simple JSF app developed in Jdeveloper over weblogic

    I have a developed a simple JSF application using Jdeveloper 11g.
    To this application i have added a webservice proxy which generates the proxy client which communicates with the peoplesoft webservice.
    when i run the standalone proxy class, it is able to connect to the webservice and get the required data.
    But as i deploy the whole JSF application (where the managed bean calls a method in the client) in Integrated weblogic server, i get an XMLStreamReaderException.
    To debug this issue i deployed the war file in apache-tomcat6.0.26 with all the reqquired libraries in the Lib folder, it actually worked , my jsf application was able to get the data from the webservice.
    This makes me think that there is some problem in the way Jdeveloper is packaging the application.I have added all the lib & jar through "libraries &classpath" setting on project properties.But i am sure there is some problem in this process.
    I just need some help in understanding how to package an application,how to make sure all lib & jar are included in the war file??
    Any help is appreciated.
    The error i get in the weblogic is
    com.sun.xml.ws.streaming.XMLStreamReaderException: unexpected XML tag. expected: {http://peoplesoft.com/KCM_WEB_CASE_CI}Get__CompIntfc__KCM_WEB_CASE_CIResponse but found: {http://schemas.xmlsoap.org/ws/2002/xx/secext}Get__CompIntfc__KCM_WEB_CASE_CIResponse
    avax.faces.el.EvaluationException: com.sun.xml.ws.streaming.XMLStreamReaderException: unexpected XML tag. expected: {http://peoplesoft.com/KCM_WEB_CASE_CI}Get__CompIntfc__KCM_WEB_CASE_CIResponse but found: {http://schemas.xmlsoap.org/ws/2002/xx/secext}Get__CompIntfc__KCM_WEB_CASE_CIResponse
    at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)
    at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
    at javax.faces.component.UICommand.broadcast(UICommand.java:387)
    at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
    at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
    at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227
    thanks in advance
    Ash

    HI
    First of all, how do you concluded that you're dealing with packaging problem?? It seems problem is in response from web service. The toolkit you have is not able to parse the soap response. Tomcat solves problem probably because of the different jars he has for web service client.
    In either way, i have personally experienced problems with JD packaging (11g). The WAR created by JD was working well in embedded WLS shipped with JD, but when deployed to production WLS 10.3.1, i got a "IO exception; premature end of file". The only solution was to create a WAR by ant.
    Here is ANT sample script for building java classes, packaging into war, deploying to WLS (for this last one, you need to reference external jar):
    <target name="build">
    <!-- compile -->
    <javac debug="true" debuglevel="${debuglevel}" source="${source_version}" target="${target_version}" destdir="${output.dir}">
    <src path="${src.location}"/>
    </javac>
    </target>
         <target name="war" depends="build">
    <delete file="${target_war_file}"/>
    <war destfile="${target_war_file}" webxml="src/WEB-INF/web.xml" manifest="/src/META-INF/MANIFEST.MF" update="true">
    <classes dir="${output.dir}"/>
    <lib dir="${build_libs.location}">
    <include name="**/*.jar"/>
    </lib>
    <!-- include important jsf files files -->
    <zipfileset dir="${path.to.conf.folder}" prefix="WEB-INF">
    <include name="adfc-config.xml"/>
    <include name="trinidad-config.xml"/>
    <include name="web.xml"/>
    <include name="weblogic.xml"/>
    </zipfileset>
    </war>
    </target>
         <taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy">
    <classpath>
    <pathelement location="c:/oracle/wlserver_10.3/server/lib/weblogic.jar"/>
    </classpath>
    </taskdef>
    <target name="deploy">
    <wldeploy action="deploy" verbose="true" upload="true" remote="true" debug="true" name="${wls.app.name}" user="${wls.user}" password="${wls.password}" adminurl="${wls.admin.url}"
    targets="${wls.targets}" securitymodel="CustomRoles" source="${target_war_file}" nostage="false"/>
    </target>
    <target name="undeploy">
    <wldeploy action="undeploy" verbose="true" name="${wls.app.name}" user="${wls.user}" password="${wls.password}" adminurl="${wls.admin.url}" targets="${wls.targets}" failonerror="false"/>
    </target>
    <!--     properties for deploy
         wls.targets=DefaultServer
         wls.user=weblogic
         wls.password=weblogic1
         wls.app.name=myapp
         wls.admin.url=t3://127.0.0.1:7101
         -->
    Regards

  • Binding a JSF table to a list of data that does not come from a database

    Retrieving data from a database I can just use the jDev wizard to "Create EJB from table" and bind the EJB to a JSF table through a NamedQuery.
    However, in this instance I am retrieving a list of data from an existing API or a WebService.
    Does anyone have a good example of how best to do this?

    Hi There,
    I have make change as you suggested in your post.
    But I am getting error that "org.apache.jasper.el.JspPropertyNotFoundException - /presale.jspx(86,56) '#{saveData._nameList}' Property '_nameList' not found on type dbtransaction.SaveData"
    Where list is nameList which simply fetch data from Database and send it to the table
    Here is my jspx code.
    <tr:table var="row" value="#{saveData._nameList}">
                                  <tr:column>
                                       <f:facet name="header">
                                            <tr:outputText value="Name" />
                                       </f:facet>                              
                                  </tr:column>
                             </tr:table>
    I have just create one ArrayList object in Backing bean i.e. nameList and put getter setter functions for it.
    Please help me out for this issue.
    Thank You,
    Navnath

  • Sending email from a simple JSF Form

    Hi,
    Sorry if this is a very basic question. I have a simple JSF (with ADF BC) form that collects information and I store the submitted values in the backing bean. I am even able to display the input values in a than you page. I just want a pointer on how I can use this data in the backing bean to email that data.
    I have tried importing the JavaMail.jar and activation.jar files into my project and tried a few sample java programs I found to do this simple task. But, I am not sure I am importing the right classes to use this in a JSF program. For eg. this program right here.. not sure if the oracle.jbo.Session is the right class to import for Session.
    package view.beans;
    import javax.mail.*;
    import javax.mail.internet.*;
    import java.util.*;
    import oracle.jbo.Session;
    public class javaMailer{
        public javaMailer() {
        public void postMail( String recipients[ ], String subject, String message , String from) throws MessagingException
            boolean debug = false;
             //Set the host smtp address
             Properties props = new Properties();
             props.put("mail.smtp.host", "smtp.jcom.net");
            // create some properties and get the default Session
            Session session = Session.getDefaultInstance(props, null);
            session.setDebug(debug);
            // create a message
            Message msg = new MimeMessage(session);
            // set the from and to address
            InternetAddress addressFrom = new InternetAddress(from);
            msg.setFrom(addressFrom);
            InternetAddress[] addressTo = new InternetAddress[recipients.length];
            for (int i = 0; i < recipients.length; i++)
                addressTo[i] = new InternetAddress(recipients);
    msg.setRecipients(Message.RecipientType.TO, addressTo);
    // Optional : You can also set your custom headers in the Email if you Want
    msg.addHeader("MyHeaderName", "myHeaderValue");
    // Setting the Subject and Content Type
    msg.setSubject(subject);
    msg.setContent(message, "text/plain");
    Transport.send(msg);
    Thanks in advance for your time.
    Edited by: Karthik on Nov 10, 2008 10:20 AM

    Thanks John. Stupid me. I added the jar files to my Web-INF folder but never added the jar files to the ViewController project through the Project Properties window. Once I did that, the errors disappeared.
    Thanks for your help! :-)

  • JSF table component with paging

    Are you aware of any existing JSF table component with both navigation and paging ?
    I want to display the content of a database table with a large number of rows. The table component should be able to navigate through the entire table content, but building only a small ResultSet and dinamically populate it with data as we perform navigation.
    Thanks,
    Cosmin

    Thanks for the answer.
    But data scroller just takes a ResultSet and display it with navigation. It doesn't know about the total number of rows in the table. It only display the number of records in the ResultSet.
    What I am looking for is a data scroller which based on some input parameters knows how to split the table in several ResultSets, dinamically change the ResultSet and display the total number of rows in the table and not in the current ResultSet.

  • Customizing column sorting in new jsf table

    The new JSF table in the creator 2 is great. I like it. It includes so many out of the box features. It is the reason we use the creator for our current project.
    But I cannot figure out how to customize the column sorting.
    Why do I need column sorting?
    I need to sort a column that can include ad IP address or a host name. Our customer can either use a host name or an IP address to address a device in the network, both in the same column.
    Now sorting an IP address is already difficult. It is actually a sort over a 4 byte number. Sorting over host names is normal alphabetic string sorting.
    How to sort over both in the same column?
    This cannot be done using standard sorting. I need to use a validator or something similar to customize the sorting of this column.
    Can anybody help me with a hint if:
    1- Customizing sorting over a column is possible. (I really would like to keep all other sorting features (icons, multi column support...)).
    2- A hint or code sample, how to do this.
    If this is not possible, I urge the creator team to think of implementing this soon. Otherwise one killer feature of the creator 2 will lose a lot of its teeth.

    Thx mayagiri for your reply!
    But including the src-code for the dataprovider package into a test project, and debugging in the creator-ide has done the thing!
    Here our solution:
    Class ToCompare is the object type which address field displayed in a page, simply containing a table with 2 adress colums, that can be sorted either according to our ip/hostname-comparison or according to String.compare().
    * ToCompare.java
    * Created on 10. Februar 2006, 10:41
    * This class is a basic model object,
    * with a field - String address - according
    * to which it shall be sortable.
    package comparator;
    * @author mock
    public class ToCompare {
         * holds the IP or Host address
        private String address=null;
         * Instance of a Comparator class that
         * provides our sorting algorithm
        private RcHostComparator hostComparator=null;
        /** Creates a new instance of ToCompare */   
        public ToCompare() {
            this("defaultHost");       
         * when creating a new ToCompare instance,
         * the hostComparator is created for it
         *  @ param aAddress - IP or Hostname
        public ToCompare(String aAddress) {
            address=aAddress;
            hostComparator=new RcHostComparator(address);
        public String getAddress() {
            return address;
        public RcHostComparator getHostComparator() {
            return hostComparator;
    }Here the code of the Class RcHostComparator, it is created with the address field of the ToCompare object that it holds. It first checks if the address field is an IP or not, and then chooses the comparison algorithm according to its own field state and the field state of the object to compare to:
    * RcHostComparator.java
    * Created on 10. Februar 2006, 10:43
    *  This class is used to provide a method for
    *  comparing objects that have an address field,
    *  containing either IP adresses or hostnames.
    package comparator;
    import java.text.CollationKey;
    import java.text.Collator;
    import java.util.Comparator;
    import java.util.Locale;
    * @author mock
    public class RcHostComparator implements Comparator
         * holds the IP or Host address
        private String address=null;
         * Is the address an IP
        private boolean isIPAddress=false;
         * if (!isIPAddress) this is created out of the address
         * to provide a performant way of comparing it with another
         * CollationKey, in order to sort Strings localized
         *  @ see java.text.Collator
         *  @ see java.text.CollationKey
        private CollationKey hostnameCollationKey=null;
         * if (isIPAddress) this array holds
         * the 4 byte of the Ip address to compare
        private int[] intValues=null;
         * minimum for IP bytes/ints
        private static final int minIntValue=0;
         * maximum for IP bytes/ints
        private static final int maxIntValue=255;
         * Creates a new instance of IpComparator
         *  @ param aAddress  - holds the IP or Host address
        public RcHostComparator(String aAddress) {
            address=aAddress;
             * check if address is an IP
            isIPAddress=checkIP();
             * if Hostname -> instantiate localized CollationKeys
            if(!isIPAddress){
                 Collator _localeCollator=Collator.getInstance(Locale.getDefault());
                 hostnameCollationKey=_localeCollator.getCollationKey(address);
            }else{}
         *  Here the comparison of the address fields is done.
         *  There a 4 cases:
         *  -1 both Hostnames
         *  -2 aObject1 IP, aObject2 Hostname
         *  -3 aObject1 Hostname, aObject2 IP
         *  -4 both IPs
         *  @ param aObject1, aObject2 - Comparator objects
        public int compare(Object aObject1, Object aObject2)
          int _result= 0;
          if(aObject1 instanceof RcHostComparator && aObject2 instanceof RcHostComparator )
               RcHostComparator _ipComparator1=(RcHostComparator)aObject1;
               RcHostComparator _ipComparator2=(RcHostComparator)aObject2;
               *  Compare algorithms, according to address types
               if(!_ipComparator1.isIPAddress()&&!_ipComparator2.isIPAddress()){
                       *  If both addresses are Strings use collationKey.compareTo(Object o)
                    _result=_ipComparator1.getHostnameCollationKey().compareTo(_ipComparator2.getHostnameCollationKey());
               }else{
                       *  IPs are smaller than Strings -> aObject1 < aObject2
                    if(_ipComparator1.isIPAddress()&&!_ipComparator2.isIPAddress()){
                         _result=-1;
                    }else{
                                *  IPs are smaller than Strings -> aObject1 > aObject2
                         if(!_ipComparator1.isIPAddress()){
                              _result=1;
                         }else{
                             int _intIndex=0;
                             int[] _int1=_ipComparator1.getIntValues();
                             int[] _int2=_ipComparator2.getIntValues();
                                      * compare IP adresses per bytes
                             while(_result==0 && _intIndex<4){
                                  if(_int1[_intIndex]>_int2[_intIndex]){
                                       _result=1;
                                  }else if(_int1[_intIndex]<_int2[_intIndex]){
                                       _result=-1;
                                  }else{}                            
                                             _intIndex++;
          }else{}   
          return _result;
         *  checks if the address field holds an IP or a hostname
         *  if (_isIP) fill intValues[] with IP bytes
         *  if (!isIP)  create hostnameCollationKey
        private boolean checkIP(){
           boolean _isIP=false;
           String[] _getInts=null;
            *  basic check for IP address pattern
            *  4 digits also allowed, cause leading
            *  0 stands for octet number ->
            *  0172=122                  ->
            *  0172.0172.0172.0172 = 122.122.122.122
           boolean _firstcheck=address.matches("[0-9]{1,4}\\.[0-9]{1,4}\\.[0-9]{1,4}\\.[0-9]{1,4}");
           if(_firstcheck){
                _getInts=address.split("\\.");           
                intValues=new int[4];
                for (int _count=0; _count<4; _count++){
                   try{                     
                       int _toIntValue;
                       if(_getInts[_count].startsWith("0")){
                                // if leading 0 parse as octet -> radix=8
                               _toIntValue=Integer.parseInt(_getInts[_count], 8);                          
                       }else{  
                                // parse as is -> radix=10 -> (optional)
                               _toIntValue=Integer.parseInt(_getInts[_count]);                          
                       if(_toIntValue<minIntValue||_toIntValue>maxIntValue){
                              // out of unsigned byte range -> no IP
                              return _isIP;
                       }else{
                              // inside byte range -> could be part of an IP
                              intValues[_count]=_toIntValue;
                   }catch(NumberFormatException e){
                           // not parseable -> no IP
                           return _isIP;
               // all 4 bytes/ints are parseable and in unsigned byte range -> this is an IP
                _isIP=true;
           }else{}      
           return _isIP;
        public boolean isIPAddress() {
                return isIPAddress;
        public int[] getIntValues() {
                return intValues;
        public CollationKey getHostnameCollationKey() {
                return hostnameCollationKey;
        public String getAddress()
            return address;
    }The page bean holds an array of ToCompare objects. It is the model for a new table component, hold by an ObjectArrayDataProvider. Here a code excerpt:
    public class Page1 extends AbstractPageBean
        private ToCompare[] toCompare= new ToCompare[]{
            new ToCompare("1.1.1.1"),
            new ToCompare("2.1.1.1"),
            new ToCompare("9.1.1.1"),
            new ToCompare("11.1.1.1"),
            new ToCompare("0172.0172.0172.0172"),
            new ToCompare("123.1.1.1"),
            new ToCompare("a"),
            new ToCompare("o"),
            new ToCompare("u"),
            new ToCompare("z"),
            new ToCompare("�"),      
            new ToCompare("�"),
            new ToCompare("�")        
         * This method is automatically generated, so any user-specified code inserted
         * here is subject to being replaced
        private void _init() throws Exception
            objectArrayDataProvider1.setArray(toCompare);
        private TableRowGroup tableRowGroup1 = new TableRowGroup();   
        private ObjectArrayDataProvider objectArrayDataProvider1 = new ObjectArrayDataProvider();
    }The relevant .jsp section for the two column table looks like:
    <ui:tableRowGroup binding="#{Page1.tableRowGroup1}" id="tableRowGroup1" rows="10" sourceData="#{Page1.objectArrayDataProvider1}" sourceVar="currentRow">
      <ui:tableColumn binding="#{Page1.tableColumn1}" headerText="SortIP" id="tableColumn1" sort="#{currentRow.value['hostComparator']}">
        <ui:staticText binding="#{Page1.staticText1}" id="staticText1" text="#{currentRow.value['address']}"/>
      </ui:tableColumn>
      <ui:tableColumn binding="#{Page1.tableColumn2}" headerText="SortString" id="tableColumn2" sort="address">
        <ui:staticText binding="#{Page1.staticText2}" id="staticText2" text="#{currentRow.value['address']}"/>
      </ui:tableColumn>
    </ui:tableRowGroup>Sorting localized with Locale="DE_de" according to ip/hostcompare sorts:
    SortIP
    1.1.1.1
    2.1.1.1
    9.1.1.1
    11.1.1.1
    0172.0172.0172.0172
    123.1.1.1
    a

    o

    u

    zWhereas normal sort over String address whitout localization sorts:
    SortString
    0172.0172.0172.0172
    1.1.1.1
    11.1.1.1
    123.1.1.1
    2.1.1.1
    9.1.1.1
    a
    o
    u
    z


    �Not that short, but I hope it will help - if anyone has the need for another than the default sorting algorithms
    Best regards,
    Hate E. Lee

  • Migrating to myfaces from simple jsf

    Hi all,
    I have been using simple Jsf API in my application until now. but i want to take advantage of myfaces... i want to migrate my current application to myfaces without much change in the code.. can anybody tell me how to do that ?
    thanx in advance

    Hey there !!!
    It's really simple. Download the latest myfaces 1.1.1 distribution & locate blank.war file in myfaces-examples zip file. Now remove all the jar files from WEB-INF/lib of your application & copy all the jar files from WEB-INF/lib of blank.war file to WEB-INF/lib of your application.
    Before removing jar files from WEB-INF/lib of your application take a backup of them. You might need them to resolve extra jar file references in your application. Now if you face any problem just post a message here.

  • Simple/ Advanced  table

    I have a query.
    In my page
    I Have a Simple/Advanced table.
    For each row of the Table i need to have a link, which will open a new page where there will be one more Table(Simple/Adavnced), which would be a Child record. And I should be able to add more rows.
    I know this would be possible using the Table in Table solution.
    But opening the child Records Table in another page, add the records and then go back to the page Containing the Master Table.
    IS this possible?
    If so how?
    Can anybody tell me?

    Hi Pradeep,
    I think HGrid would be the good option for table-in-table parent-child relationship.
    --Prasanna                                                                                                                                                                                                                                   

  • Pagination - hibernate with JSF table using ObjectListDataProvider

    Hello All,
    How we can use the JSF table component & pagination option avilable in JSC for records pagination using ObjectListDataProvider? Let say I have 100 recorsd and I want to do pagination of them of Page Size = 5 (total pages 20), then how to proceed?
    We have the hibernate working with JSC, and now I am looking for this advanced implementation using JSC & Hibernate.
    Surya
    --Thoughts can bring change                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I have a problem with pagination and hibernate and I want to take a ride on your question: when the page is loaded I load all data from database. Then I have a filter I made that retrieves some of the data and reloads the table, and that works fine. But when I hit the next page button, the table goes to second page, but without the filter, i.e, with all data again.
    I think it has someting to do with the place where I do the initial load, with full data. I've put this code in _init:
        private void _init() throws Exception {
            try {
                Integer empresaId = new Integer(this.getSessionBean1().getCodEmpresaLog());
                    getSessionBean1().getTituloReceberDataProvider().atualizaListaTitulos(empresaId);
            } catch(Exception ex) {  
                log("Erro para pegar empresas : ", ex);
                error("Erro para pegar empresas : " + ex.getMessage());
        }And to filter, I use this method, called by a button:
    getSessionBean1().getTituloReceberDataProvider().filtraListaTitulos(empresaId, sCodCliente, sSituacao, dataDe, dataA);This method repopulates the dataset and it works, but when I change pages it loads full data again. Someone has some light to shed on this?
    Thanks in advance!

  • Tooltip on the header of JSF table Component

    How to add an Tooltip to the header of the JSF table copmponent?
    Please reply....

    You normally use the HTML 'title' attribute for this. Almost every JSF HTML component also supports it.

  • In Table Control How to get only a single row .

    Hi
    In Table Control How to get only a single row .I am able to decrease it its height to 4 but then 2 rows is getting dsplayed .I want only one row to be display and 2nd row should be deactivated or not visible.
    regards
    Avik
    Edited by: Julius Bussche on Jan 30, 2009 1:10 PM
    Removed friendly greeting from the subject title

    Hi Avik
    use this code it will help you.
    MODULE passdata OUTPUT.
      READ TABLE it_revision INTO wa_rev INDEX tab_clc-current_line.
      IF sy-subrc = 0.
        LOOP AT SCREEN.
          IF screen-group1 = '111'.      " 111 IS THE GROUP NAME
            screen-input = 1.          " input mode
            screen-active = 1.         " input mode.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
          IF screen-group1 = '111'.       "GROUP NAME
            screen-input = 0.           " display mode
            screen-active = 1.          " DISPLAY MODE.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
    ENDMODULE.                 " PASSDATA  OUTPUT
    Make sure in group tou are passing the field name that you want in input mode on the base of other field
    Hope it will help you.
    Thanks
    Arun Kayal.

Maybe you are looking for

  • Won't show up in my itunes

    hi just bought my ipad 2 yesterday and i plug it into my pc windows xp and it will not show up on my itunes on the left bar?

  • How do I change a project's name?

    In the manual I followed the instructions below but it doesn't work.  If I double click on a project name in the library, it just opens the project (in other words, the text of the name can not be edited).  If I single click on the name of the projec

  • Problems in Reporting

    Hi All, Can anyone list out the problems you have faced in Reporting Enviroment in Support project.. what kind of tickets will get from client side in Reporting ? Thanks  Linda ([email protected])

  • Source of supply (info record) in Shopping cart-extended classic

    Hi experts, We are on SRM 7.0. We have changes from classic scenario to extended classic scenario, and after this a problem has come up? When I create s a shopping cart for a product number, I have to allocate the vendor manually. If I activate the s

  • Quick Module Question

    I have a link bar component that is linked to a ViewStack component, which has four stacks. I want to use modules in the last three stacks and my question is: Will the modules load when the user clicks on that particular stack, or will all of them be