Re: Validtion message for maxLength/minLength is messed
Vinicius Carvalho wrote: Hello there! ? I've noticied that Tapestry validation message's for min/max length is inverted: The error displayed is: The 8 field must have at least Password characters (only the portuguese version :) ) Checking the ValidationStrings for pt_BT confirmed that fields are inverted I guess this is a bug... please, file a JIRA with the correct ValidationStrings_pt_BR.properties attached. Does this happen in Tapestry 4.0, in 4.1 or in both ? As a workaround, you can try adding the correct WEB-INF/classes/org/apache/tapestry/valid/ValidationStrings_pt_BR.properties In most containers, this will 'shadow' the same file from tapestry's jar Also see http://tapestry.apache.org/tapestry4/UsersGuide/validation.html the 'validators: binding prefix' Is it possible to override it? Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr Tapestry / Tacos developer Open Source / J2EE Consulting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Validtion message for maxLength/minLength is messed
Happened on the 4.0.2, before posting the jira, let me download 4.1 and check if it is ok :) Regards On 9/2/06, andyhot [EMAIL PROTECTED] wrote: Vinicius Carvalho wrote: Hello there! ? I've noticied that Tapestry validation message's for min/max length is inverted: The error displayed is: The 8 field must have at least Password characters (only the portuguese version :) ) Checking the ValidationStrings for pt_BT confirmed that fields are inverted I guess this is a bug... please, file a JIRA with the correct ValidationStrings_pt_BR.properties attached. Does this happen in Tapestry 4.0, in 4.1 or in both ? As a workaround, you can try adding the correct WEB-INF/classes/org/apache/tapestry/valid/ValidationStrings_pt_BR.properties In most containers, this will 'shadow' the same file from tapestry's jar Also see http://tapestry.apache.org/tapestry4/UsersGuide/validation.html the 'validators: binding prefix' Is it possible to override it? Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr Tapestry / Tacos developer Open Source / J2EE Consulting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tacos -Unicode- How it works?
what difficulty are you having, exactly? Bear in mind that java (and tapestry) use the default locale to determine the charset used to read and write files if the Reader or Writer class does not explicitly have new charset set before reading or writing begins. So if your default locale is using a charset that is not compatible with the charset in your docs (utf-8?), then you'll have problems. If you want java to always use UTF-8 when reading and writing files, just place the following in your JAVA_OPTS environment variable: -Dfile.encoding=UTF-8 --sam On 8/25/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi I have difficulties to make work Tacos with unicode strings. Any suggestions? Should i set some options somewhere or decode, encode strings with some functions or .. Please help needed Best regards gant - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: How to be redirected from login form to BasePage?
The previously mentioned Enjoy Web Development with Tapestry 4 book is great, and the Tap in Action book is still very relevant to tap 4. Going with tap 3 now would be a mistake. Tap 4 was a big improvement and most of the available component libraries and such don't support Tap 3 any longer. --sam On 8/25/06, CIJOML [EMAIL PROTECTED] wrote: Hmmm my good friends uses T3 version and never worked with T4. I bought book Tapestry in action which is about T3...if you can recommend any book about T4, I can think about this revission. Thanks a lot Michal Dne čtvrtek 24 srpen 2006 22:43 hv @ Fashion Content napsal(a): If you are starting fresh why not base your app on Tap4 ? CIJOML [EMAIL PROTECTED] skrev i en meddelelse news:[EMAIL PROTECTED] Hi Ron, thanks very much, It helped me a lot! I had to do more changes ;) page name=Login specification-path=Login.page/ I forgot rename also page name! :( Thank you - probably a lot more questions will continue, while I am new to Tapestry kingdom :) Michal Dne čtvrtek 24 srpen 2006 16:19 Ron Piterman napsal(a): its cycle.activate(Home); Cheers,Ron CIJOML wrote: Hi, I wrote little application which now I want secure. So I developped login form, but I am unable to be redirected to BasePage after successfull login. When I call such page directly in DP.application, it renders: !DOCTYPE application PUBLIC -//Apache Software Foundation//Tapestry Specification 3.0//EN http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd; !-- generated by Spindle, http://spindle.sourceforge.net -- application name=DP engine-class=org.apache.tapestry.engine.BaseEngine descriptionDP Michal Semler/description page name=Home specification-path=Home.page/ !-- uvodni stranka -- library id=contrib specification-path=/org/apache/tapestry/contrib/Contrib.library/ library id=menu specification-path=/org/krysalis/menu/component/Menu.library/ /application But when I change Home.page to Login.page, it returns errors: Login process goes OK, and then I don't know how to call from cycle.activate my Home.page: My Login.java - package org.cijoml.ui.pages; import java.sql.SQLException; import org.apache.tapestry.IRequestCycle; import org.apache.tapestry.IPage; import org.apache.tapestry.html.BasePage; import org.cijoml.utils.IBatisUtil; import org.cijoml.model.Administrator; import com.ibatis.sqlmap.client.SqlMapClient; public abstract class Login extends BasePage { public abstract String getNick(); public abstract String getHeslo(); public abstract void setZprava(String zprava); public void login(IRequestCycle cycle) throws SQLException { if (isValidLogin(getNick(), getHeslo())) { cycle.activate(Home.page); return; } setZprava(Spatne jmeno nebo heslo!!!); } private boolean isValidLogin(String nick, String heslo) throws SQLException { return true; //this is not important for this case } } Login.html: html jwcid=@Shell title=Prihlaseni body span jwcid=@Conditional condition=ognl:zprava font color=red span jwcid=@Insert value=ognl:zprava Error Message /span /font /span p form jwcid=@Form listener=ognl:listeners.login table tr thJmeno Administratora: /th td input type=text jwcid=@TextField value=ognl:nick size=30/ /td /tr tr thHeslo: /th td input type=password jwcid=@TextField value=ognl:heslo hidden=ognl:true size=30/ /td /tr tr tdinput type=submit value=Login//td /tr /table /form /body /html Login.page: ?xml version=1.0 encoding=UTF-8? !DOCTYPE page-specification PUBLIC -//Apache Software Foundation//Tapestry Specification 3.0//EN http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd; !-- generated by Spindle, http://spindle.sourceforge.net -- page-specification class=org.cijoml.ui.pages.Login property-specification name=zprava type=java.lang.String/ property-specification name=nick type=java.lang.String/ property-specification name=heslo type=java.lang.String/ /page-specification Thanks a lot for help! Michal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: multiple stylesheets
This is exactly why I dont use the Border pattern. you dont need it if you use modern html markup. Page specific titles meta tags Occasional special stylesheets, javascript for a page id/class parameters on body tags variations of headers/footers/nav bars All go against using Border For an alternative to Border check out http://wiki.apache.org/tapestry/WysiwygWithoutBorder Henrik Brian Long [EMAIL PROTECTED] skrev i en meddelelse news:[EMAIL PROTECTED] Nick, that worked perfectly, thanks! I just had to change a few things for it to comply with T4, but unfortunately now I'm faced with another problem, there's no titles on my stylesheets. Border.html html jwcid=shell stylesheets=ognl:{assets.stylesheet1,assets.stylesheet2 } Border.jwc asset name=stylesheet1 path=context:css/style.css / asset name=stylesheet2 path=context:css/template.css / gives me: link rel=stylesheet type=text/css href=/fast-store-app/css/style.css / link rel=stylesheet type=text/css href=/fast-store-app/css/template.css / but I'd like: link rel=stylesheet type=text/css href=/fast-store-app/css/style.csstitle=default / link rel=stylesheet type=text/css href=/fast-store-app/css/template.css title=super/ So as I can select them on the fly from my browser's view-use style setting. If you or anyone else has already figured out how to do this I'd like to hear how it's done. Thanks again, Brian. On 9/1/06, Nick Westgate [EMAIL PROTECTED] wrote: Hi Brian. Hopefully someone using T4 can offer you more help, but in my current T3 project I do this via ... Border.jwc - which has a stylesheets parameter: ... component-specification class=blah.blah.Border allow-informal-parameters=no parameter name=stylesheets type=java.lang.Object direction=in/ component id=shell type=Shell binding name=title expression=title/ binding name=stylesheets expression=stylesheets/ binding name=doctype 'html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN' /binding /component ... SomePage.html - which passes the array of stylesheet assets: html head /head body jwcid=$content$ div jwcid=border stylesheets=ognl:{assets.common, assets.apply} ... SomePage.page - which defines the css assets: context-asset name=common path=css/common.css/ context-asset name=apply path=css/apply.css/ Cheers, Nick. Brian Long wrote: Hi all, I'm afraid I might have dug myself into a hole (again!), but I hope someone my have already encountered this problem and is willing to let me know of a possible solution. I'm trying to add multiple stylesheets to my web project, I'm currently using a @Shell component to enclose my web pages, this has a single stylesheet as per the example on the tapestry website. span jwcid=@Shell stylesheet=asset:stylesheet title=MyCorp Customer Login I want to add some more, and according to the component description there's a parameter stylesheets that will take an array of IAssets, this is want I'd like to do, the only problem is that my shell in inside a custom @Border component. Soo, I have a Border.html and Border.jwc and I have to try and create an array of IAssets (my list of stylesheets). How do I do this, create a Border.java? Any suggestions would be much appreciated . . . /Brian. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to let tapestry.asset.UnprotectedAssets used in T4.0.2?
I have to find the method to avoid it: module id=corner.asset version=1.0.0 contribution configuration-id=tapestry.asset.UnprotectedAssets if=class org.apache.tapestry.asset.UnprotectedResourceMatcher unprotected-resource contains=corner/* / /contribution /module 2006/9/3, Jun Tsai [EMAIL PROTECTED]: hi I have two project A,B and a base common project(corner).A use T4.0.2,B use 4.1.1. corner use 4.1.1.In corner I extend tapestry.asset.UnprotectedAssets module id=corner.asset version=1.0.0 contribution configuration-id=tapestry.asset.UnprotectedAssets unprotected-resource contains=corner/* / /contribution /module I find It can't used in T4.0.2 project.How to avoid it ? In hivemind I find contribution configuration-id=tapestry.asset.UnprotectedAssetsif= but I don't know to use it? Thanks -- Welcome to China Java Users Group(CNJUG). http://cnjug.dev.java.net
Re: How to let tapestry.asset.UnprotectedAssets used in T4.0.2?
module id=corner.asset version=1.0.0 contribution configuration-id=tapestry.asset.UnprotectedAssets if=class org.apache.tapestry.asset.ResourceMatcher unprotected-resource contains=corner/* / /contribution /module 2006/9/3, Jun Tsai [EMAIL PROTECTED]: I have to find the method to avoid it: module id=corner.asset version=1.0.0 contribution configuration-id=tapestry.asset.UnprotectedAssets if=class org.apache.tapestry.asset.UnprotectedResourceMatcher unprotected-resource contains=corner/* / /contribution /module 2006/9/3, Jun Tsai [EMAIL PROTECTED]: hi I have two project A,B and a base common project(corner).A use T4.0.2,B use 4.1.1. corner use 4.1.1.In corner I extend tapestry.asset.UnprotectedAssets module id=corner.asset version=1.0.0 contribution configuration-id=tapestry.asset.UnprotectedAssets unprotected-resource contains=corner/* / /contribution /module I find It can't used in T4.0.2 project.How to avoid it ? In hivemind I find contribution configuration-id=tapestry.asset.UnprotectedAssetsif= but I don't know to use it? Thanks -- Welcome to China Java Users Group(CNJUG). http://cnjug.dev.java.net -- Welcome to China Java Users Group(CNJUG). http://cnjug.dev.java.net