Xkins does not replace Tiles. You can use Xkins with tiles. Tiles (among other things) arrange page layout. Xkins manage the look&feel of the page. Xkins does not replace struts tags as struts-layout does. Xkins are used inside taglibs to generate HTML (or other output) or as decorators of other tags (for example, as decorator of struts tags). Xkins comes with XkinsForms, that are a taglib that uses Xkins to generate forms for a page. Instead of use <table><tr> , etc, you can use XkinsForms <form:frame> <form:row> (http://xkins.sourceforge.net/xkinsforms.html) (or your own taglibs that uses Xkins) to generate the page. If you want your frame change from one skin to other, you just change the Xkin definition but nothing in the page. Xkins allow more than change just styles (as CSS whould be enough): if your frames are in xkins templates, you could change HTML code that generates the frame, not only the colors, fonts but also the <tr>, <td>, images, etc of the frame. This is an example of a struts page "decorated" with XkinsForms (this is a fragment of registration.jsp from struts example)
<%@ taglib uri="/WEB-INF/xkins-forms.tld" prefix="form" %> ....... ....... <html:form action="/saveRegistration" onsubmit="return validateRegistrationForm(this);"> <html:hidden property="action"/> <form:frame key="Registro"> <form:row> <form:field key="prompt.username"> <logic:equal name="registrationForm" property="action" scope="request" value="Create"> <html:text property="username" size="16" maxlength="16"/> </logic:equal> <logic:equal name="registrationForm" property="action" scope="request" value="Edit"> <html:hidden property="username" write="true"/> </logic:equal> </form:field> <form:field key="prompt.password"> <html:password property="password" size="16" maxlength="16"/> </form:field> </form:row> <form:row align="right"> <form:field key="prompt.password2"> <html:password property="password2" size="16" maxlength="16"/> </form:field> </form:row> <form:row> <form:field key="prompt.fullName"> <html:text property="fullName" size="50"/> </form:field> </form:row> <form:row> <form:field key="prompt.fromAddress"> <html:text property="fromAddress" size="50"/> </form:field> <form:field key="prompt.replyToAddress"> <html:text property="replyToAddress" size="50"/> </form:field> </form:row> <form:buttons> <td align="right"> <html:submit> <bean:message key="button.save"/> </html:submit> </td> <td align="left"> <html:reset> <bean:message key="button.reset"/> </html:reset> <html:cancel> <bean:message key="button.cancel"/> </html:cancel> </td> </form:buttons> </form:frame> </html:form> ........... ........... You can try it with Struts demo and see how the page looks different in each skin. You should deploy in your webapp skins/forms directory that comes with xkins bundle, among xkins-forms.properties and xkins-forms-definition.xml files. If you need further detail, please let me know. Cheers Guillermo. -----Original Message----- From: shankarr [mailto:[EMAIL PROTECTED] Sent: Jueves, 13 de Mayo de 2004 04:52 a.m. To: Struts Users Mailing List Subject: skins with Struts-Tiles framework Hello! I have an application build with Struts-Tiles framework. Now, I want to have multiple skin option for usrs to choose. I try xkins but seem it replace Tiles , which is no good to me else lot of changes. I try struts-layout but that is GPL and we cannot use that for commerical reasons. please provide help. *Richie* NOTA DE CONFIDENCIALIDAD Este mensaje (y sus anexos) es confidencial, esta dirigido exclusivamente a las personas direccionadas en el mail y puede contener informacion (i)de propiedad exclusiva de Interbanking S.A. o (ii) amparada por el secreto profesional. Cualquier opinion en el contenido, es exclusiva de su autor y no representa necesariamente la opinion de Interbanking S.A. El acceso no autorizado, uso, reproduccion, o divulgacion esta prohibido. Interbanking S.A no asumira responsabilidad ni obligacion legal alguna por cualquier informacion incorrecta o alterada contenida en este mensaje. Si usted ha recibido este mensaje por error, le rogamos tenga la amabilidad de destruirlo inmediatamente junto con todas las copias del mismo, notificando al remitente. No debera utilizar, revelar, distribuir, imprimir o copiar este mensaje ni ninguna de sus partes si usted no es el destinatario. Muchas gracias. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]