1 Reply Latest reply on Jul 12, 2007 11:03 AM by Ilya Shaikovsky

    Help on using tomahawk dataTable with ajax4jsf

    Dante Vazquez Newbie

      Hi everyone.

      Im working in a project where I need to display some database info in a dataTable using Tomahawk. I also need some way to select a row to edit it. Are there any code or pointers you can give me? I need that when the row is selected for edition, some fields of type inputText display the row info (like id,name,etc), and then the user can edit this inputText components, requesting an update using an ajax commandButton. I'd appreciate any help you can give me.

      PD: Is there any way to disable or activate a jsf component depending on the user selection of a menu, in combination with ajaxfjsf??

      Thanks.
      Dan

        • 1. Re: Help on using tomahawk dataTable with ajax4jsf
          Ilya Shaikovsky Master

          1) some bean has a boolean property
          2) some output text have rendered attribute mapped to this boolean property.
          3) some input text have rendered attribute mapped to this boolean property but inverted.
          4) input and output mapped to the one value property
          5) by sending ajax submit you change bolean property value and reRender parent component for this input and output (outputPanel)

          So input activated and output disactivated. here you are. :)