Get component position from backing bean
[Logo]
Forums for ICEfaces and ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
Get component position from backing bean  XML
Forum Index -> General Help
Author Message
klaussemarsse

Joined: 08/04/2008 00:00:00
Messages: 7
Offline


Hello to all,

I am struggling to find a way to get the position of a ice:commandLink or any ice component (top, left coordinates) from a managed bean.

Please can someone tell me if exist a way to do that, or am I wasting my time????

Thanks.
Regards
patrick.corless

Joined: 26/10/2004 00:00:00
Messages: 680
Offline


public void Actionlistener(ActionEvent event) {
FacesContext context = FacesContext.getCurrentInstance();
Map requestParams =
context.getExternalContext().getRequestParameterMap();
// get mouse coordinate of user click
int x = Integer.parseInt((String) requestParams.get("ice.event.x"));
int y = Integer.parseInt((String) requestParams.get("ice.event.y"));


}
[Email]
Baleyba

Joined: 16/11/2006 00:00:00
Messages: 110
Offline


Hi patrick,

thanks for your solution.


I would like to get the position after a drag and drop. But I don't see "ice.event.x" and "ice.event.y"parameters into dragEvent.

Do you know a solution to get this information in this case ?

thanks for your help.

regards,
Bal.

JBoss 4.2.3 | Java 1.6.0_16 | IceFaces 1.8.2
 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team