|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Patch for ww2Hi Greg, We are using your great lib for multiple webapps we are currently developping at work. We are using berkano-user-mgt-webwork with webwork 2. Most of the features are ok except user preferences. In fact, the template hasn't been updated (seems to be the only one). You will find enclosed a patch. Please, let us know if this patch is ok for you :o) Keep on doing this good job. Regards, Fred. *DISCLAIMER* This e-mail (including any attachments) may contain information which is privileged or confidential or constitute non-public information.It is to be conveyed only to the intended recipient(s).If you received this e-mail in error, please notify the sender immediately by e-mail or telephone and delete the e-mail from your system without reading, copying or disclosing its contents to any other person. [patch_user_pref_ww2.patch] Index: src/main/views/berkano/profile/preferences.ftl =================================================================== --- src/main/views/berkano/profile/preferences.ftl (revision 317) +++ src/main/views/berkano/profile/preferences.ftl (working copy) @@ -16,7 +16,7 @@ <@ww.iterator value="app.preferencesInfo"> <#switch preferenceWidget.name> <#case 'dropdown'> - <@ww.select name="keyName" id="pref-${keyName}" list="allowedValues" listKey="key" listValue="getText(value)" label="getText(keyName)"/> + <@ww.select name="%{keyName}" id="pref-${keyName}" list="allowedValues" listKey="key" listValue="getText(value)" label="%{getText(keyName)}"/> <br /> <#break> <#case 'combobox'> @@ -24,14 +24,14 @@ <br /> <#break> <#case 'radios'> - <@ww.radio name="keyName" id="pref-${keyName}" list="allowedValues" listKey="key" listValue="getText(value)" label="getText(keyName)"/> + <@ww.radio name="%{keyName}" id="pref-${keyName}" list="allowedValues" listKey="key" listValue="getText(value)" label="%{getText(keyName)}"/> <br /> <#break> <#case 'radios-and-text'> <div class="radios-and-text"> - <@ww.radio name="'${keyName}predefined'" id="pref-${keyName}-predefined" value="${keyName}" list="allowedValues" listKey="key" listValue="getText(value)" label="getText(keyName)" onclick="'${keyName}.readOnly=true;${keyName}.value=this.value'"/> + <@ww.radio name="%{${keyName}predefined}" id="pref-${keyName}-predefined" value="%{${keyName}}" list="allowedValues" listKey="key" listValue="getText(value)" label="%{getText(keyName)}" onclick="${keyName}.readOnly=true;${keyName}.value=this.value"/> <input type="radio" name="${keyName}predefined" value="" id="pref-${keyName}-custom" onclick="${keyName}.readOnly=false"/> - <@ww.textfield name="keyName" id="pref-${keyName}" value="${keyName}"/> + <@ww.textfield name="%{keyName}" id="pref-${keyName}" value="%{${keyName}}"/> </div> <br /> <#break> @@ -40,7 +40,7 @@ <br /> <#break> <#case 'text'> - <@ww.textfield name="keyName" id="pref-${keyName}" label="getText(keyName)" value="${keyName}"/> + <@ww.textfield name="%{keyName}" id="pref-${keyName}" label="%{getText(keyName)}" value="%{${keyName}}"/> <br /> <#break> <#default> @@ -49,7 +49,7 @@ </#switch> </@ww.iterator> - <@ww.hidden name="app" value="app.name"/> + <@ww.hidden name="app" value="%{app.name}"/> <div class="form-buttons"> <@ww.submit value="%{getText('preferences.form.submit')}" /> </div> Index: pom.xml =================================================================== --- pom.xml (revision 317) +++ pom.xml (working copy) @@ -21,6 +21,12 @@ </includes> </resource> <resource> + <directory>src/main/resources</directory> + <includes> + <include>**/*</include> + </includes> + </resource> + <resource> <directory>src/main/i18n</directory> <includes> <include>**/*</include> --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Patch for ww2Hey,
Thanks Fred - I just applied your patch. Indeed, I started migrating to webwork-2.2.x a while ago, but hadn't needed the preferences screen until now. See http://jira.codehaus.org/browse/BERKANO-29 Please let me know if/when your migration to ww2.2 + berkano is fully operational :) Cheers g On 24/08/06, Fred <fburlet@...> wrote: > > Hi Greg, > > We are using your great lib for multiple webapps we are currently developping > at work. We are using berkano-user-mgt-webwork with webwork 2. Most of the > features are ok except user preferences. In fact, the template hasn't been > updated (seems to be the only one). > You will find enclosed a patch. Please, let us know if this patch is ok for > you :o) > > Keep on doing this good job. > > Regards, > > Fred. > > > *DISCLAIMER* > This e-mail (including any attachments) may contain information which is privileged or confidential or constitute non-public information.It is to be conveyed only to the intended recipient(s).If you received this e-mail in error, please notify the sender immediately by e-mail or telephone and delete the e-mail from your system without reading, copying or disclosing its contents to any other person. > > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > > > --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
| Free embeddable forum powered by Nabble | Forum Help |