Hello, well as some of you know im following the "WebObjects
developers book" and some tutorials and wikis,
Im trying to make a WOHyperLink who has a WOImage inside.. so the idea
is that when I put the moouse over the image change... something
really simple... I have the following
in wod
HomeLink : WOHyperlink {
onMouseOver = onMouseOver;
onMouseOut = onMouseOut;
directActionName = "default";
imageName = imageName;
}
HomeImage : WOImage {
filename = unhighlightedImage;
border = 0;
}
and in the .java
public String onMouseOver(){
WOResourceManager rM = application().resourceManager();
String url = rM.urlForResourceNamed(highlightedImage, null, null,
context().request());
return imageName + ".src= '"+ url+"';";
}
public String onMouseOut(){
WOResourceManager rM = application().resourceManager();
String url = rM.urlForResourceNamed(unhighlightedImage, null, null,
context().request());
return imageName + ".src= '"+ url+"';";
}
I know there is a trick due that the book its made for Project builder
and the depreciated tools.. so how can I achive this in WOLips?
Regards
Gustavo.
PS BTW I was able to make the connection to the database depending on
admin or client and show a the corresponding page.. "Small step for
WOcommunity, BIG Step for me!!! :D"
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]