Hello,

we should try to add your question to the faqs or something similar :-)

Regards

Bernd

Zied Hamdi wrote:
Hi Again Volker,

When I received your mail the two posts about the demo application were
already sent. I put it as blocker because for a person who is new to Tobago
there is just the demo as an entry point, and if things like <tc:command>
stops to work on Tobago we couldn't expect we have to use <tc:link> instead,
and I personaly was blocked, so I spoke in the name of someone in my
situation.

Now that the post is there I'll answer about what helped me go out of the
black hole (for people who may encounter the same problems as me) :

In this conversation Volker explains how to get the object the client
clicked on in the sheet:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg35720.html

Notice you're not obliged to use a listener, you can also call a normal
action and get the UIData through it "component path" as follows (in this
example, clicking on the image leads to show the detail of the selected
person):


<tc:column sortable="false" align="center">

 <tc:link id="editLink" action="#{personCtrl.edit}"
image="image/edit_icon.gif"
/>

</tc:column>

*where the action is:*

*public* String edit() {

 BasicPerson person = getRowData();

 showDetail( person );

*  return* "OK";

}

*protected* BasicPerson getRowData() {

 UIData data = (UIData)
FacesContext.*getCurrentInstance*().*getViewRoot*().findComponent(
"page:personForm:table:personData" );

 BasicPerson obj = (BasicPerson) data.getRowData();

*  return* obj;

}



*Thanks again to Volker :-)*
p.s: I suppose the answer goes directly to the jira database ?:-/ ...



On 6/14/07, Volker Weber (JIRA) <[email protected]> wrote:


    [
https://issues.apache.org/jira/browse/TOBAGO-427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]

Volker Weber updated TOBAGO-427:
--------------------------------

   Priority: Minor  (was: Blocker)

request for additional examples are minor not blocker.

If you want help, please ask on the list [EMAIL PROTECTED]



> There isn't any example in sheets on how we edit a sheet line :
hyperlink to the detail of the line
>
---------------------------------------------------------------------------------------------------
>
>                 Key: TOBAGO-427
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-427
>             Project: MyFaces Tobago
>          Issue Type: Improvement
>          Components: Demo
>    Affects Versions: 1.0.11
>         Environment: -
>            Reporter: Zied Hamdi
>            Priority: Minor
>
> I'm trying to use a edit hyperlink in each line of a sheet and I'm
having many troubles:
>   - The <tc:command > doesn't react: it seams the line selection takes
precedence
> - The <tc:button> doesn't select the line it is in, and there's no way to get through an EL expression the line number (to pass it as a parameter in the request). So : no way way to update the sheetState selection field,
and no way to know wich line's button was pressed.
> I'm really blocked on this part, please help!!!

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




Reply via email to