Re: Tapestry-Hibernate xml mapping
config hibernate.cfg.xml, add mapping xmls On Thu, Aug 4, 2011 at 7:56 PM, andreisirghi wrote: > Hi, can somebody inform me how can I notice tapestry-hibernate library that > I > want to load the mapping of entities from an xml file, i.e. without > annotations in entity classes. > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Tapestry-Hibernate-xml-mapping-tp4666037p4666037.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Korben Zhang
Re: Downloading T5 docs
checkout project then mvn site On Thu, Dec 25, 2008 at 5:51 PM, HHB wrote: > > Hey, > Any idea how to download T5 public documents for late night reading? > Thanks. > -- > View this message in context: > http://www.nabble.com/Downloading-T5-docs-tp21166544p21166544.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Korben Zhang
is http://howardlewisship.com ok?
When I access http://howardlewisship.com/tapestry-javaforge/tapestry-prop/ return "Reported Attack Site!" Browser: Firefox 3.0.3 -- Korben Zhang Blog: http://korben-zhang.blogspot.com | http://korbenzh.spaces.live.com
Re: 答复: Chinese can not display correctly
Is there any ways doesn't need native2ascii? 2008/6/25 滕训华 <[EMAIL PROTECTED]>: > Yes,chinese display correctly after compile by native tool,thanks very much > > -邮件原件- > 发件人: dhning [mailto:[EMAIL PROTECTED] > 发送时间: 2008年6月25日 14:38 > 收件人: Tapestry users > 主题: Re: Chinese can not display correctly > > Hi, > You should first utilize native2ascii(in jdk/bin) to convert the > appname_zh_CN.properties to asc, then it should solve your probelem. > I don't know why T5 deal with internationalization differently from T4. In > T4, we developer don't have to convert the resource files, we just need > input Chinese and it displays correctly. > > And if your IDE is eclipse, you can find some plugin to help you convert > encoding automatically. > > Thanks! > > DH > > > - Original Message - > From: "滕训华" <[EMAIL PROTECTED]> > To: "'Tapestry users'" > Sent: Wednesday, June 25, 2008 8:44 AM > Subject: Chinese can not display correctly > > > >I use the ${message:labelKey} in the tml and define the labelKey in the > > properties with Chinese characters,but when the page display ,the Chinese > > can not display correctly. > > > > > > > > By the way,my properties file is define with UTF-8 > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Korben Zhang Blog: http://korben-zhang.blogspot.com | http://korbenzh.spaces.live.com
Re: T5.0.7 still can't resolve encoding.
Charset puzzled me too. I add Chinese resources file. But cannot show properly. I have tried: 1.add org.springframework.web.filter.CharacterEncodingFilter, doesn't work; 2.native2ascii resource files, doesn't work; 3.add configuration.add("tapestry.supported-locales", "en,zh"); doesn't work; 4. public static PageResponseRenderer decoratePageResponseRenderer( @InjectService("PageMarkupRenderer") final PageMarkupRenderer markupRenderer, @InjectService("MarkupWriterFactory") final MarkupWriterFactory markupWriterFactory, final Object delegate) { return new PageResponseRenderer() { public void renderPageResponse(Page page, Response response) throws IOException { MarkupWriter writer = markupWriterFactory.newMarkupWriter(); markupRenderer.renderPageMarkup(page, writer); PrintWriter pw = response.getPrintWriter("text/html; charset=UTF-8"); writer.toMarkup(pw); pw.flush(); } }; } doesn't work; Is there a proposal method? On Dec 30, 2007 9:56 PM, yuan gogo <[EMAIL PROTECTED]> wrote: > Thanks for answering. > > But I DID add this into my AppModule, but the problem is still there. > I finanlly solved this by using Spring charset encoding filter. > > > > 2007/12/29, Michael Lake <[EMAIL PROTECTED]>: > > > > > > I'm also having this issue and i'm not even chinese.I did find this > > though: > > > > http://wiki.apache.org/tapestry/Tapestry5Utf8Encoding > > > > i'll give it a shot with 5.0.8-SNAPSHOT though > > > > On Dec 28, 2007, at 11:03 AM, Howard Lewis Ship wrote: > > > > > Thanks, will look into this. > > > > > > On Dec 27, 2007 6:59 PM, yuan gogo <[EMAIL PROTECTED]> wrote: > > >> I got t5.0.7 this morning. As I'm a Chinese user, I use utf-8 > > >> encoding for > > >> my application. > > >> > > >> But, while upload file and some text, I got this: > > >> > > >> java.lang.NullPointerException: charsetName > > >> > > >>java.lang.String.(String.java:442) > > >>java.lang.String.(String.java:516) > > >> > > >> org > > >> .apache > > >> .commons.fileupload.disk.DiskFileItem.getString(DiskFileItem.java: > > >> 349) > > >> > > >> org > > >> .apache > > >> .tapestry > > >> .upload > > >> .services > > >> .MultipartDecoderImpl.processFileItems(MultipartDecoderImpl.java:117) > > >> > > >> org > > >> .apache > > >> .tapestry > > >> .upload > > >> .services.MultipartDecoderImpl.decode(MultipartDecoderImpl.java:65) > > >> > > >> $ > > >> MultipartDecoder_1171ead916b > > >> .decode($MultipartDecoder_1171ead916b.java) > > >> > > >> $ > > >> MultipartDecoder_1171ead911d > > >> .decode($MultipartDecoder_1171ead911d.java) > > >> > > >> org > > >> .apache > > >> .tapestry > > >> .upload > > >> .services > > >> .MultipartServletRequestFilter > > >> .service(MultipartServletRequestFilter.java:40) > > >> > > >> $ > > >> HttpServletRequestHandler_1171ead911f > > >> .service($HttpServletRequestHandler_1171ead911f.java) > > >> > > >> $ > > >> HttpServletRequestHandler_1171ead911c > > >> .service($HttpServletRequestHandler_1171ead911c.java) > > >> > > >> org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:164) > > >> > > >> > > >> Alrough I solve this problem by add > > >> > > >>SetCharacterEncoding > > >> > > org.springframework.web.filter.CharacterEncodingFilter > > >> > > >> > > >>encoding > > >>utf-8 > > >> > > >> > > >> > > >>SetCharacterEncoding > > >>/* > > >> > > >> > > >> in my web.xml. > > >> > > >> But I hope this can be handled by tapestry. And a NULL check for > > >> charset > > >> name is necessary. > > >> > > >> Thank you all ! > > >> > > > > > > > > > > > > -- > > > Howard M. Lewis Ship > > > > > > Creator Apache Tapestry and Apache HiveMind > > > > > > - > > > 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] > > > > > -- Korben Zhang Blog: http://korben-zhang.blogspot.com | http://korbenzh.spaces.live.com
Re: Unit Test Cannot run correctly!
How did you inject DAO service? if you use Spring to manage DAOs, usage like other service. Spring will help you get right object instance. On 8/31/07, 小司 <[EMAIL PROTECTED]> wrote: > > My Application use spring2+tapestry5+hibernate3 ,it can work well in me > IE or FF > > so,I want to use Unit Test with testNG .I followed > > http://tapestry.apache.org/tapestry5/tapestry-core/guide/unit-testing-pages.html > > configrate spring with > http://wiki.apache.org/tapestry/Tapestry5SpringIntegration > > I want to test a tapestry page, but I got Exception .IPublicDAO is my > spring > class > > I didnot know wrong where I make. can anybody help me thanks a lot. > > Caused by: java.lang.RuntimeException: Error obtaining injected value for > field cn.crc.pjblog.pages.BlogPostOne.pdao: No service implements the > interface cn.crc.model.impl.IPublicDAO. > at org.apache.tapestry.internal.services.InjectWorker.inject( > InjectWorker.java:84) > at org.apache.tapestry.internal.services.InjectWorker.transform( > InjectWorker.java:53) > at > > $ComponentClassTransformWorker_114ba61b606.transform($ComponentClassTransformWorker_114ba61b606.java) > at > > $ComponentClassTransformWorker_114ba61b603.transform($ComponentClassTransformWorker_114ba61b603.java) > at > > org.apache.tapestry.internal.services.ComponentClassTransformerImpl.transformComponentClass > (ComponentClassTransformerImpl.java:131) > ... 48 more > Caused by: java.lang.RuntimeException: No service implements the interface > cn.crc.model.impl.IPublicDAO. > at org.apache.tapestry.ioc.internal.RegistryImpl.getService( > RegistryImpl.java:447) > at org.apache.tapestry.ioc.internal.ObjectLocatorImpl.getService( > ObjectLocatorImpl.java:45) > at org.apache.tapestry.ioc.services.TapestryIOCModule$2.provide( > TapestryIOCModule.java:132) > at $ObjectProvider_114ba61b5d4.provide($ObjectProvider_114ba61b5d4.java) > at $ObjectProvider_114ba61b5ce.provide($ObjectProvider_114ba61b5ce.java) > at org.apache.tapestry.internal.services.InjectWorker.inject( > InjectWorker.java:80) > ... 52 more > ... Removed 22 stack frames > > > > > -- > 得与失都是生活 > -- Korben Zhang http://korben-zhang.blogspot.com Backup Blog: http://korbenzh.spaces.live.com
T5: how to create comonents package like t4?
Hi,all T5 components was put in ${app-root}/components by default, I wanna create reusable components in different web applications. How to do? Thanks. -- Korben Zhang
Re: T5: Can I redirect to another page in setupRender()?
Yes, you can. See T5 core components, such as 'If'. use Object setupRender() {...} See page http://tapestry.apache.org/tapestry5/tapestry-core/guide/rendering.html remember boolean is an object too. On 7/17/07, Nick Westgate <[EMAIL PROTECTED]> wrote: Access validation should be done in onActivate(): http://tapestry.apache.org/tapestry5/tapestry-core/guide/pagenav.html Cheers, Nick. dtrebbien wrote: > I have two pages: ListRepositories and ViewRepository. ListRepositories is > supposed to give ViewRepository an id number by calling ViewRepository's > init() method. ViewRepository tracks whether it has been inited via a > boolean value. The problem is, I want to redirect back to ListRepositories > if a devious user just types in the URL for ViewRepository which would > bypass ListRepositories's call to ViewRepository's init(). > > Currently I just return false, but this causes Tapestry to complain with > something like "root component not defined". > > Does anyone know how to redirect to another page in the setupRender() > method? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Korben Zhang http://korben-zhang.blogspot.com Backup Blog: http://korbenzh.spaces.live.com
Re: The method onActionFrom[componentId] doesnot work in my application .
You can use form's action. As you define, you can use: void onActionFromXxxForm(){ } void onSuccess() should work, You can choose one. On 7/18/07, 小司 <[EMAIL PROTECTED]> wrote: hi: The method onActionFrom[componentId] doesnot work in my application . I use OnEvent annotation does not work too.When i click the submit button ,The method onActionFromSumm is not invoked. but the method onSuccess(),setupRender(),onActivate(),pageLoaded() all work well. I can not find the mistake where I make. anybody can help me?? the source code is : .html http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> -- Korben Zhang http://korben-zhang.blogspot.com Backup Blog: http://korbenzh.spaces.live.com
Re: T5.0.5 not support Chinese constants of enumeration types
not the best solution. if you need to support other language, what to do next? the best way is set all kinds source encode by utf-8 On 7/16/07, sun58224 <[EMAIL PROTECTED]> wrote: 采用message文件代替已经解决输入输出汉字问题,谢谢小司! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Korben Zhang http://korben-zhang.blogspot.com Backup Blog: http://korbenzh.spaces.live.com
Re: How to override GridPager component
11.jpg and 22.jpg are not exist. On 7/10/07, 小司 <[EMAIL PROTECTED]> wrote: This is tapestry's GidPager style 11.jpg I want to that 22.jpg How to do it??? Thanks -- 得与失都是生活 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Korben Zhang http://korben-zhang.blogspot.com Backup Blog: http://korbenzh.spaces.live.com