T5 : pop up windows and refesh parent

2008-01-03 Thread dwi ardi irawan
hi..i've got another problem here i try shing man component : PageLinkPopup (from tassel) and tried this : [PlayerGrid.tml] Search code above is display the search page... in the seach page pop up, when i enter the keywords and submit it, i called onclick=" opener.location.reload(true);" in the

Re: [T5] Tapestry 5 and IntelliJ IDEA

2008-01-03 Thread Paudi Moriarty
Yes, I used that intention to fetch the external resource and then ended up with the same error. I tried to add xmlns="http://www.w3.org/1999/xhtml"; to the element but that precludes using the tapestry namespace! I guess I can live with it, but it would be nice to have proper validation. On 02

How to create PERTHREAD_SCOPE object?

2008-01-03 Thread Donyee
I want to create a new object per request, and my code is like: @Scope(IOCConstants.PERTHREAD_SCOPE) public Encoder buildEncoder() { System.out.println("new Encoder()...*"); return new Encoder(); } when i request my page with IE and FireFox,

Re: [T5] Tapestry 5 and IntelliJ IDEA

2008-01-03 Thread Zsolt Salamon
I use IDEA 7.0.2. I use html extension not tml. So my templates is html type by default not xml. If you add tml extension like html type that do the same too. My every template is start with a html tag. The first tag is contains the xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.

[T5] Grid : how to overload a cell whose name is know at runtime ?

2008-01-03 Thread Francois Armand
Hello, I would like to overload a grid cell. It's easy if I know the name of the cell, say "mycell" : 8<--- here goes the template for mycell 8<--- My problem is that I want to overload o

Re: How to create PERTHREAD_SCOPE object?

2008-01-03 Thread Massimo Lusetti
On Jan 3, 2008 10:49 AM, Donyee <[EMAIL PROTECTED]> wrote: > is there anything wrong with my code? You actually didn't show your code. -- Massimo http://meridio.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

Javascript error when moving from 5.0.6 to 5.0.7

2008-01-03 Thread Mahen Perera
Hi all, I switched from 5.0.6 to 5.0.7 ,, and now getting some java scripts errors. I didn't get these when using 5.0.6. For example, Following is on of the pages in my app: CreateTest.tml --> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> Create Test

Re: Temporary objects in OGNL

2008-01-03 Thread Kaspar Fischer
On 31.12.2007, at 09:07, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote: Have a look at http://www.ognl.org/2.6.9/Documentation/html/LanguageGuide/varref.html I actually tried this before: only outputs "foo" once. Shouldn't it emit this string twice? I tend to use complex ognl for r

Re: Javascript error when moving from 5.0.6 to 5.0.7

2008-01-03 Thread Mohammad Shamsi
Hi, Try to deploy your application in ROOT context, i got some java script error in 5.0.7 when i deploy my application with a context other than ROOT (/). On Jan 3, 2008 1:51 PM, Mahen Perera <[EMAIL PROTECTED]> wrote: > Hi all, > > > > I switched from 5.0.6 to 5.0.7 ,, and now getting some ja

RE: Javascript error when moving from 5.0.6 to 5.0.7

2008-01-03 Thread Mahen Perera
Thanks Shamsi for that.. will try that,,, My component is also not getting displayed..after I move to 5.0.7 ,,, I mean the icon is displayed in the page, but the calendar is not popping up when I click it.. it worked in 5.0.6 -Original Message- From: Mohammad Shamsi [mailto:[EMAIL PROTE

Re: How to create PERTHREAD_SCOPE object?

2008-01-03 Thread Donyee
In AppModule.java @Scope(IOCConstants.PERTHREAD_SCOPE) public Encoder buildEncoder() { System.out.println("new Encoder()...*"); return new Encoder(); } in my page class: @Inject private Encoder encoder; 2008/1/3, Massimo Lusetti <[EMAIL PROT

Re: How to create PERTHREAD_SCOPE object?

2008-01-03 Thread Massimo Lusetti
On Jan 3, 2008 1:44 PM, Donyee <[EMAIL PROTECTED]> wrote: > In AppModule.java > @Scope(IOCConstants.PERTHREAD_SCOPE) > public Encoder buildEncoder() { > System.out.println("new Encoder()...*"); > >return new Encoder(); >} > > in my page class

Re: How to create PERTHREAD_SCOPE object?

2008-01-03 Thread Davor Hrg
you have to use an interface for this to work Encoder + EncoderImpl @Scope(IOCConstants.PERTHREAD_SCOPE) public Encoder buildEncoder() { System.out.println("new Encoder()...*"); return new EncoderImpl(); } there is probably a warning in the log

Re: T5.0.7 still can't resolve encoding.

2008-01-03 Thread Korben Zhang
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 w

Re: T5.0.7 still can't resolve encoding.

2008-01-03 Thread Zsolt Salamon
I put this annotation to every page object. @Meta(value = {"tapestry.response-content-type=text/html", "tapestry.response-encoding=ISO-8859-2"}) public class MyPageObject { } The encoding is ISO-8859-2 because my DB encoding that. And in every language properties file I use unicode escape ch

T-4.1.3 - @EventListener quiz question

2008-01-03 Thread Ken in nashua
Which syntax is valid? 1. @EventListener(events = { "onChange" }, targets = { "tableSizeSelect" }, submitForm = "galleryForm", async = true) 2. @EventListener(events="onchange", targets="tableSizeSelect", submitForm="galleryForm", async=true

Re: T-4.1.3 - @EventListener quiz question

2008-01-03 Thread Kevin Menard
Either is correct. You can pass a single String in place of a String[] if you only need one value. If you have more than one target or event, you have to use the first form. On 1/3/08 11:05 AM, in article [EMAIL PROTECTED], "Ken in nashua" <[EMAIL PROTECTED]> wrote: > > > Which syntax is val

Re: T-4.1.3 - @EventListener quiz question

2008-01-03 Thread Jesse Kuhnert
You can step up and read the documentation for yourself if you like - see "A note about event names" at the bottom of this page: http://tapestry.apache.org/tapestry4.1/ajax/eventlistener.html. Also see the referenced site - http://www.quirksmode.org/js/introevents.html - for a more detailed explan

RE: T-4.1.3 - @EventListener quiz question

2008-01-03 Thread Ken in nashua
Thanks Kevin for stepping up. Close but no cigar. Syntax #1 does not work under any conditions. Syntax #2 does work. Now if any takers out there want to step up and explain why that would be great.Best regards Ken in nashua From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: T-4.1.3 - @EventLis

Re: Temporary objects in OGNL

2008-01-03 Thread Marcus Schulte
Oh, sorry, I didn't realize, you want to cache results between different OGNL expressions. Different ognl expressions only share the page as common context. So you'd need sth. like: Page: ... public abstract Object getThat(); ... Template: ... xyz="ognl: that=components.table.tableRow.ge

T5.0.7: PageTester.renderPage chokes on page URLs that have blanks

2008-01-03 Thread Franz Amador
My page unit test dies in PageTester.renderPage. The actual death is at URLChangeTracker.add(URL), line 72, namely URI resourceURI = url.toURI(); which gives a URL parsing error. The problem seems to be that my page URL has blanks: file:/C:/Documents and Settings/Franz/workspace/pi-tapestry

RE: T5.0.7: PageTester.renderPage chokes on page URLs that have blanks

2008-01-03 Thread Joel Wiegman
This is a known issue: https://issues.apache.org/jira/browse/TAPESTRY-1568 -Original Message- From: Franz Amador [mailto:[EMAIL PROTECTED] Sent: Thursday, January 03, 2008 2:50 PM To: Tapestry Subject: T5.0.7: PageTester.renderPage chokes on page URLs that have blanks My page unit test

Re: JSR-168/JSR-286 revisited --- what's happening at the 'neighbours'

2008-01-03 Thread Emmanuel Sowah
Wao, this Wicket framework is becoming hotter and hotter each day. Worth taking a serious look at it. On Jan 2, 2008 9:06 PM, Jan Vissers <[EMAIL PROTECTED]> wrote: > http://wicket.apache.org/ > > Apart from wicket also switching to slf4j, the new version now also > supports JSR-168/JSR-286. Appa

BeanEditor & TextArea

2008-01-03 Thread Mark Horn
I'm sorry if the answer for this is out there, but I have not been able to find it. I'm trying to use a BeanEditor and defined a TextArea for a property instead of the default TextField. Here is a snip-it form my template file

Re: JSR-168/JSR-286 revisited --- what's happening at the 'neighbours'

2008-01-03 Thread Chris Lewis
Emmanuel, I have not been using tapestry long. In fact it was only a few months ago that I first heard of tapestry 4, at which point I bought Kent Tong's book and began examining its possible use. Until tapestry I had avoided web development in Java because I could not justify the time it too

Re: BeanEditor & TextArea

2008-01-03 Thread Josh Canfield
I believe you need to add Cell to the end of your parameter name. This question comes up a lot, so if that doesn't work you should be able to find some examples by searching the list. http://www.nabble.com/Tapestry---User-f340.html indexes this list for searching. Josh On Jan 3, 2008 1:05 PM, Ma

Re: JSR-168/JSR-286 revisited --- what's happening at the 'neighbours'

2008-01-03 Thread Yunhua Sang
> > Emmanuel, > > please cease with your regurgitated points > and annotations. We all know. We also all know about Wicket. It too is a > respectable and highly visible framework. Your points, which now are > just rants, are falling on dead ears here. If you seek an audience, > kindly find a more r

T5.0.7: Custom validator for BeanEditForm field?

2008-01-03 Thread Franz Amador
I'm having trouble figuring out how to do custom validation for a field created by BeanEditForm. In particular, I can't find the component id for such a field. The bean property name doesn't work. "beaneditform." doesn't work either. I'd like to be able to use an onValidateFrom... method, b

Re: JSR-168/JSR-286 revisited --- what's happening at the 'neighbours'

2008-01-03 Thread Emmanuel Sowah
Guys, I read somewhere some time back that Kent Tong, a Tapestry commiter, is writing a book on Wicket. Anyone has info on the status of this? And Kent, if your reading, could you please shed some light on the availability of your book on Wicket? Regards, Emmanuel On Jan 3, 2008 10:11 PM, Chris

Re: JSR-168/JSR-286 revisited --- what's happening at the 'neighbours'

2008-01-03 Thread Fravia HCU
Somewhere in Utrecht, Francis Amanfo is laughing. As for the book, I'm sure it will be a boon for Wicket developers. I enjoyed his T4 sample book. Maybe you can ask Kent directly instead of trolling. On Jan 3, 2008 6:09 PM, Emmanuel Sowah <[EMAIL PROTECTED]> wrote: > Guys, > > I read somewher

Re: [ANN] Tapestry 5 book is available for pre-order

2008-01-03 Thread Andy Huhn
Hi Alexander, I know this is out of your control...but I thought you may have some insight into the status. Do you know how soon this book will be available? I've pre-ordered, and I'm very much looking forward to getting my copy! Andy On Wed, 2007-11-14 at 09:45 +, Kolesnikov, Alexander GN

Re: T5.0.7: PageTester.renderPage chokes on page URLs that have blanks

2008-01-03 Thread Franz Amador
Thanks. Actually, the fix turns out to be easy. I added it as a comment to the JIRA issue: This fixed the problem for me. In PageTesterContext.getResource, change line 49 return f.toURL(); to this return f.toURI().toURL(); (which just follows the suggestion in the J

Re: BeanEditor & TextArea

2008-01-03 Thread Mark Horn
Josh - thanks for the suggestion and link. Unfortunately the still does not work. I did find this listing that talks about the same issue http://www.nabble.com/Can-we-use-Text-Area-for-String-field-in-BeanEditor--td13920248.html#a13920248 At the end Howard suggests the use of a new Annotation

Re: BeanEditor & TextArea

2008-01-03 Thread Howard Lewis Ship
That is strange, it should work as you have shown it. I know this behavior works ... there are unit tests to verify it. Ooops, please file a bug. I see the problem; BeanEditForm supports informal parameters, but BeanEditor does not! On Jan 3, 2008 1:05 PM, Mark Horn <[EMAIL PROTECTED]> wrote: >

Re: BeanEditor & TextArea

2008-01-03 Thread Mark Horn
Thanks Howard. I have created the bug in JIRA it is https://issues.apache.org/jira/browse/TAPESTRY-2013 On 1/3/08, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > That is strange, it should work as you have shown it. I know this > behavior works ... there are unit tests to verify it. > > Ooops,

T5: jscalendar and prototype

2008-01-03 Thread Foror
jscalendar requires prototype and scriptaculo libs? If is not requires, why they appear in a web-page? public class MyPage { @Inject @Path("${tapestry.jscalendar}/skins/aqua/theme.css") private Asset themeStylesheet; @Inject @Path("${tapestry.jscalendar}/calendar_stripped.js"

T5: get tapestry event, action and params of current page request

2008-01-03 Thread Foror
How to keep a URL of current page (event, action and context) that then to repeat this request? URL: /mailmessage:trash?t:ac=400 public class MailMessage extends DefaultBase {} In DefaultBase need get ":trash" and "t:ac=400" -

T5: jscalendar and prototype

2008-01-03 Thread Foror
Addition for previous: Page not contains Form component - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[T5] 5.0.7 - Help with log4j.properties file

2008-01-03 Thread buckofive
Hi all, I'm stuck at the moment trying to get log4j to log any 3rd party libraries. It seems to work fine for classes within my web project(ie page classes etc.) and if I set the root level to debug I get what looks like mostly web container statements. Any help would be much appreciated. H