You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Bernd Bohmann (JIRA)" <de...@myfaces.apache.org> on 2007/11/25 19:45:43 UTC

[jira] Created: (TOBAGO-553) Support for click and dblClick action for the sheet

Support for click and dblClick action for the sheet
---------------------------------------------------

                 Key: TOBAGO-553
                 URL: https://issues.apache.org/jira/browse/TOBAGO-553
             Project: MyFaces Tobago
          Issue Type: Improvement
          Components: Core, Themes
            Reporter: Bernd Bohmann
            Assignee: Bernd Bohmann
             Fix For: 1.0.13


similar to tc:columnSelector you can define a columnEvent tag for direct selection  

<tc:sheet  >
          <tc:columnEvent event="click" >
             <tc:command action="#{controller.editAddress}" /> 
          </tc:columnEvent>
 <tc:sheet  >


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TOBAGO-553) Support for click and dblClick action in the sheet

Posted by "Helmut Swaczinna (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TOBAGO-553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12556554#action_12556554 ] 

Helmut Swaczinna commented on TOBAGO-553:
-----------------------------------------

Please add support for tc:command onclick attribute

> Support for click and dblClick action in the sheet
> --------------------------------------------------
>
>                 Key: TOBAGO-553
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-553
>             Project: MyFaces Tobago
>          Issue Type: Improvement
>          Components: Core, Themes
>            Reporter: Bernd Bohmann
>            Assignee: Bernd Bohmann
>             Fix For: 1.0.13
>
>
> similar to tc:columnSelector you can define a columnEvent tag for direct selection  
> <tc:sheet  >
>           <tc:columnEvent event="click" >
>              <tc:command action="#{controller.editAddress}" /> 
>           </tc:columnEvent>
>  <tc:sheet  >

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (TOBAGO-553) Support for click and dblClick action in the sheet

Posted by "Bernd Bohmann (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/TOBAGO-553?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bernd Bohmann resolved TOBAGO-553.
----------------------------------

    Resolution: Fixed

> Support for click and dblClick action in the sheet
> --------------------------------------------------
>
>                 Key: TOBAGO-553
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-553
>             Project: MyFaces Tobago
>          Issue Type: Improvement
>          Components: Core, Themes
>            Reporter: Bernd Bohmann
>            Assignee: Bernd Bohmann
>             Fix For: 1.0.13
>
>
> similar to tc:columnSelector you can define a columnEvent tag for direct selection  
> <tc:sheet  >
>           <tc:columnEvent event="click" >
>              <tc:command action="#{controller.editAddress}" /> 
>           </tc:columnEvent>
>  <tc:sheet  >

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TOBAGO-553) Support for click and dblClick action in the sheet

Posted by "Bernd Bohmann (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TOBAGO-553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12549951 ] 

Bernd Bohmann commented on TOBAGO-553:
--------------------------------------

I did not try multi row selection.

The UIData should be a parent of the Action Component. You can get all attributes from the UIData.

The clicked row is the current row of the UIData or you can get the selected row from sheet State.
It should be not diffence between a row with a tc:link or row with a columnEvent.

It should be possible to reload parts outside the sheet without reloading the sheet, if not it's a bug.  

> Support for click and dblClick action in the sheet
> --------------------------------------------------
>
>                 Key: TOBAGO-553
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-553
>             Project: MyFaces Tobago
>          Issue Type: Improvement
>          Components: Core, Themes
>            Reporter: Bernd Bohmann
>            Assignee: Bernd Bohmann
>             Fix For: 1.0.13
>
>
> similar to tc:columnSelector you can define a columnEvent tag for direct selection  
> <tc:sheet  >
>           <tc:columnEvent event="click" >
>              <tc:command action="#{controller.editAddress}" /> 
>           </tc:columnEvent>
>  <tc:sheet  >

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TOBAGO-553) Support for click and dblClick action in the sheet

Posted by "Helmut Swaczinna (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TOBAGO-553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12556553#action_12556553 ] 

Helmut Swaczinna commented on TOBAGO-553:
-----------------------------------------

tc:columnEvent does not work with selectable="none" 

> Support for click and dblClick action in the sheet
> --------------------------------------------------
>
>                 Key: TOBAGO-553
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-553
>             Project: MyFaces Tobago
>          Issue Type: Improvement
>          Components: Core, Themes
>            Reporter: Bernd Bohmann
>            Assignee: Bernd Bohmann
>             Fix For: 1.0.13
>
>
> similar to tc:columnSelector you can define a columnEvent tag for direct selection  
> <tc:sheet  >
>           <tc:columnEvent event="click" >
>              <tc:command action="#{controller.editAddress}" /> 
>           </tc:columnEvent>
>  <tc:sheet  >

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TOBAGO-553) Support for click and dblClick action in the sheet

Posted by "Helmut Swaczinna (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TOBAGO-553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12555283#action_12555283 ] 

Helmut Swaczinna commented on TOBAGO-553:
-----------------------------------------

The tc:columnEvent stil does not work (with 1.0.14 snapshot). This is my jsp code:

      <tc:sheet id="testTable" 
        columns="80px;80px" 
        showHeader="true"
        showRowRange="none"
        showPageRange="none"
        showDirectLinks="none"
        first="0"
        selectable="none"
        state="#{controller.sheetState}"               
        var="row"
        value="#{controller.list1}">
        <tc:columnEvent event="click" > 
          <tc:command
            onclick="alert('Hallo')"
            action="#{controller.anotherAction}">
          </tc:command>
        </tc:columnEvent> 
        <tc:column label="Column 1">
          <tc:out id="column1" 
            value="#{row.column1}"/>
        </tc:column>            
        <tc:column label="Column 2">
          <tc:out id="column2" 
            value="#{row.column2}"/>
        </tc:column>            
      </tc:sheet>

The action is not called and there's no javascript alert in the generated HTML. 
Is there a working example in the demo?

> Support for click and dblClick action in the sheet
> --------------------------------------------------
>
>                 Key: TOBAGO-553
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-553
>             Project: MyFaces Tobago
>          Issue Type: Improvement
>          Components: Core, Themes
>            Reporter: Bernd Bohmann
>            Assignee: Bernd Bohmann
>             Fix For: 1.0.13
>
>
> similar to tc:columnSelector you can define a columnEvent tag for direct selection  
> <tc:sheet  >
>           <tc:columnEvent event="click" >
>              <tc:command action="#{controller.editAddress}" /> 
>           </tc:columnEvent>
>  <tc:sheet  >

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TOBAGO-553) Support for click and dblClick action in the sheet

Posted by "Helmut Swaczinna (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TOBAGO-553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12547844 ] 

Helmut Swaczinna commented on TOBAGO-553:
-----------------------------------------

Is this feature already available in the current nightly build? I tried it but it did not work (nothing happens when a
row is clicked).

Some questions:

Can I use the tc:columnEvent together with multi row selection? 
Is it possible to request the selected rows in the column event action?
How do I get the row clicked in the action? 
Also with rendered partially attribute when the sheet is not on the reloaded part of the page?

I need the selectionChangeListener (or columnEvent) to update a panel when the user changes the selection in the sheet
without reloading the sheet itself. With the patch I posted for the selectionChangeListener this was possible.

> Support for click and dblClick action in the sheet
> --------------------------------------------------
>
>                 Key: TOBAGO-553
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-553
>             Project: MyFaces Tobago
>          Issue Type: Improvement
>          Components: Core, Themes
>            Reporter: Bernd Bohmann
>            Assignee: Bernd Bohmann
>             Fix For: 1.0.13
>
>
> similar to tc:columnSelector you can define a columnEvent tag for direct selection  
> <tc:sheet  >
>           <tc:columnEvent event="click" >
>              <tc:command action="#{controller.editAddress}" /> 
>           </tc:columnEvent>
>  <tc:sheet  >

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.