| Author |
Message |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 03/06/2008 11:11:59
|
ikrahne
Joined: 03/06/2008 08:36:25
Messages: 20
Offline
|
Hi,
I am curious how to set a ToolTip on an Datatable-Element, depending on the current row.
I need a popup when the user moves the mouse over the "ROW.name" element. It should open "onMouseOver" and close, when the user leaves the "ROW.name" element (onBlur ?).
Should I use a Window-Control or wrap the "h:outputText" element by a "Menu-Control"? Any Ideas ?
Thanks for any help!
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 03/07/2008 10:56:50
|
adina_mihai
Simplica Team
Joined: 04/01/2007 00:00:00
Messages: 183
Offline
|
Hello!
The best solution is to use popupmenu component inside a dataTd, but you have to make a trick, to obtain a different instance of popupmenu on every iteration through dataModel.
Inside the java bean, you should have:
That's all
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 03/07/2008 11:30:55
|
ikrahne
Joined: 03/06/2008 08:36:25
Messages: 20
Offline
|
Thank you very much! I'll try it!
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 03/12/2008 11:58:32
|
ikrahne
Joined: 03/06/2008 08:36:25
Messages: 20
Offline
|
Hi there,
your example worked so far ... but not in the way as I expected ;)
I need a <h:outputText> Tag to render the data in the first "<e:dataTd>" cell, like this:
I want a popup, when the user moves the mouse over the <h:output> Text.
The "<e:div>" Container doesn't resize the cell (Table-Row) to the desired height, if the "#{ROW.entity.data}" has to be wrapped to multiple lines (because it doesn't fit in one line).
The manual states, that all ECruiser Components have an "popupComponent" Tag. So I tried successfully :
However I've got some style-issues with TextArea ... so I tried to switch to an ECruiser component, more similar to "<h:outputText>" and tried <e:label>.
However <e:label> doesn't have an popupComponent-Attribute. ECComponent seems to have it, but it is not defined in the TLD for "Labels" ... Am I missing something?!
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 03/12/2008 12:14:21
|
ikrahne
Joined: 03/06/2008 08:36:25
Messages: 20
Offline
|
One more thing with the popup, putting a <h:output>-Tag in a facet doesn't seem to work for me.
This doesn't render a popup:
This renders the popup :
but I's rather like to use standard JSF Components inside the popup ... any ideas here ?!
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 03/13/2008 14:08:15
|
adina_mihai
Simplica Team
Joined: 04/01/2007 00:00:00
Messages: 183
Offline
|
Regarding dataTable, why don't you use simple:
Regarding popupmenu, why do you need a facet, when you have a menucell tag which accomplish your needs?
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 03/14/2008 06:21:16
|
ikrahne
Joined: 03/06/2008 08:36:25
Messages: 20
Offline
|
Because your solution doesn't work. I need the popup when the mouse cursor moves over the displayed text in the first column. I don't need a popup area before ar after the data.
But I figured it out. Your first solution almost worked:
the missing part was to set
in the div-container. Now the h:output tag is rendered and an individual "per row" popup appears when moving the mouse over the text in the first column.
The complete code:
Thanks for your help.
|
|
|
 |
|
|