Hi,
I extend VelocityECSLayout to provide different layout template for the
user admin1
Here is my own Layout class:
public class Admin extends VelocityECSLayout {
public Admin() {
}
public void doBuild( RunData data ) throws Exception {
try{
if (data.getUser().getUserName().compareTo("admin1") == 0) {
data.setLayoutTemplate("/admin.vm"); //use admin.vm as the
layout template for user admin1
}
}
catch(Exception e){}
super.doBuild(data);
}
}
It works fine if I don't call setScreenTemplate in the my screen classes.
However, if I call
setScreenTemplate, the layout template is set back to the default one. How
could I tell
Turbine/Velocity not to do that?
Thanks
Xun
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]