select Component or iframe?

2008-04-03 Thread 滕训华
I am a new to tapestry and I learn the component of tapestry.But now I can not decide which should be used. The layout components or the frame page.Because I think if layout component is used in every page then when we switch the page,it must reload related components ,is it right? Any suggesti

Re: select Component or iframe?

2008-04-03 Thread dhning
I think they are different. Frame is used in frameset page, but layout component is to provide a common page structure. Just like when you write html, you can't decide use frame or div. Thanks! DH - Original Message - From: "滕训华" <[EMAIL PROTECTED]> To: "'Tapestry users'" Sent: Thur

Re: T5: Beaneditform Validation differences between IE6 and firefox2.0?

2008-04-03 Thread dhning
Josh, thanks you for the response. I mistake the validation via ajax in Firefox, the http requests are to download tapestry error images like field-error-marker.gif&error-bever-right.png, sorry about that. I have change "onAction" to "onSuccess", but js error still exists in IE, debugger shows

答复: select Component or iframe?

2008-04-03 Thread 滕训华
Thanks your reply. Yes ,you are right,Actually I am considering this issue.Suppose,in an application,every page has the "copyrights" and "control header" information,I can make a layout component including the copyrights and control header or menu and my main body,then I use this component in eve

答复: select Component or iframe?

2008-04-03 Thread Kristian Marinkovic
IMHO frames are bad practice... from a pure HTML view i'd rather go with layout components g, kris 滕训华 <[EMAIL PROTECTED]> 03.04.2008 09:53 Bitte antworten an "Tapestry users" An "'Tapestry users'" Kopie Thema 答复: select Component or iframe? Thanks your reply. Yes ,you are right

Re: select Component or iframe?

2008-04-03 Thread dhning
I am not good at UI design. The websites I viewd rarely use frame page in their front pages, but it is common in admin backend pages. Maybe frame set layout in front pages is not so flexible. Above is my understanding, may be wrong^_^ Thanks! DH - Original Message - From: "滕训华" <[EMA

答复: select Component or iframe?

2008-04-03 Thread 滕训华
Yes,I agree with you,but I want to know if using the layout component then switch page ,will it lost the performace?because every switch,the copyrights or menu or control header will reload. -邮件原件- 发件人: Kristian Marinkovic [mailto:[EMAIL PROTECTED] 发送时间: 2008年4月3日 16:01 收件人: Tapestry user

RE: Zone and block : xmlns problem

2008-04-03 Thread Cordenier Christophe
Hello Fernando, Thank you for your answer. In fact, I have tried to put the namespace in a root div element in the block, and it works fine. Best Regards, Christophe. -Message d'origine- De : Fernando Padilla [mailto:[EMAIL PROTECTED] Envoyé : mercredi 2 avril 2008 18:00 À : Tapestry u

users@tapestry.apache.org

2008-04-03 Thread Martin Kersten
As far as I am aware, this is due the fact that in xml you dont have   definied. What you have is   which also work in html. There should be a way to tell DreamWeaver to use #160 instead of the symbol nbsp. Cheers, Martin (Kersten) -Ursprüngliche Nachricht- Von: 滕训华 [mailto:[EMAIL PR

Re: T5: Expansions & prefixes

2008-04-03 Thread Andy Blower
Filip - that looks really good work. I didn't realise new bindings can be created. I'm surprised that you're using %d, %s etc rather than the standard {0} {1} ResourceBundle parameters. To me it would be nicer expressed like this: (can you overload bindings?) ${message:key(param0,param1,...,pa

Re: [T5]: label in properties file

2008-04-03 Thread Petros Petrou
I think you need to move your FindCoops.properties file to be next to your .tml file and not the .java file. Petros Andy Huhn-2 wrote: > > OK, this is driving me crazy. > > I have a .tml named FindCoops.tml that contains the following fragment: > > > t:value="userPstlCode" /> > > In the

T5 Checkbox Problem

2008-04-03 Thread Tim Sawyer
Hi Folks, I have a list of checkboxes on a page:                             ${actor.name}         The method to return the displayActorList is   public List getDisplayActorList()   {     if (this.getActorList() == null)     {       this.setActorList(this.getStoredActorList());     }     r

users@tapestry.apache.org

2008-04-03 Thread 滕训华
When we create html or tml with dreamwaver,it will create many “ ” in the td element.But when we use the file to run,tapestry will report error because of the   except clearing all “ ” ,how to slove this problem?

Re: T5 : Dependant dropdown boxes

2008-04-03 Thread Daniel Alonso
Stephane Decleire wrote: > > Has anyone already tried to implement dependant dropdown boxes with the > Ajax features of Tapestry 5.0.11 ? > I would like to implement a component to get a user address (country, > zipcode, city) and i would like to present the user the cities according > to th

T5 Tapestry.onDOMLoaded internet explorer 7

2008-04-03 Thread Riccardo Ruffilli
Hi Everybody, I've got a problem on loading the Tapestry.onDOMLoaded content in i.e and I can't understand in anyways what it's happening...:( I've put a simple alert with the support.addScript("alert('test!');"); so I've got something like this (I miss I've got the right context menu... but

Grid cmpnt and Ajax

2008-04-03 Thread Petros Petrou
I have the following grid that displays search results Everything works fine and I can see that only the searchResultsBlock is returned as an Ajax request. However, when more than 10 entities are found and I click on the second page the whole page is returned and not ju

users@tapestry.apache.org

2008-04-03 Thread Filip S. Adamsen
Have you declared a doctype in the file causing the issue? See the section on Template Doctypes here: http://tapestry.apache.org/tapestry5/tapestry-core/guide/templates.html -Filip On 2008-04-03 11:03, Martin Kersten wrote: > As far as I am aware, this is due the fact that in xml you dont have  

Re: T5 Checkbox Problem

2008-04-03 Thread Dmitry Shyshkin
When form submission occurs Tapestry5 do not look at binding that was used during render phase. Instead it use ValueEncoder to restore object from String id. If you do not provide an ValueEncoder (I think you don't, do you?) tapestry will use default. Default ValueEncoder use java serialization

Re: 答复: select Component or iframe?

2008-04-03 Thread Filip S. Adamsen
Hi, I recommend that you don't use frames. As has been mentioned earlier, it's a bad practice that carries a number of usability issues with it. Also, Tapestry's rendering is so fast that you likely won't gain anything by using frames. It will probably just bite later when you need to have a more

[T5] Interesting bug of link render?

2008-04-03 Thread dhning
Hi, I get a intersting problem: Start.java: public class Start { private int _result; public int getResult() { return this._result; } public void setResult(int result) { _result = result; } int onPassivate() { return _result; } void onA

Re: [T5]: label in properties file

2008-04-03 Thread Andy Blower
I thought the properties file needs to end up next to the class file in the classpath when the project is built - regardless of where it comes from. (src/main/java/... or src/main/resources/... or wherever) Petros Petrou wrote: > > I think you need to move your FindCoops.properties file to b

Re: T5: Expansions & prefixes

2008-04-03 Thread Filip S. Adamsen
Hi, On 2008-04-03 11:26, Andy Blower wrote: Filip - that looks really good work. I didn't realise new bindings can be created. I'm surprised that you're using %d, %s etc rather than the standard {0} {1} ResourceBundle parameters. To me it would be nicer expressed like this: (can you overload

Re: T5: Expansions & prefixes

2008-04-03 Thread Filip S. Adamsen
Hi, I just use another name entirely. -Filip On 2008-04-03 11:59, Andy Blower wrote: Understanding dawned about 5 minutes after submitting the message - always the way. You can't override bindings because MappedConfiguration.add() throws an exception if the key is not unique. Have you figured

Re: T5: Expansions & prefixes

2008-04-03 Thread Andy Blower
Understanding dawned about 5 minutes after submitting the message - always the way. You can't override bindings because MappedConfiguration.add() throws an exception if the key is not unique. Have you figured out how to do this from the T5 source code, or is there some documentation I've missed?

Re: T5: Beaneditform Validation differences between IE6 and firefox2.0?

2008-04-03 Thread Filip S. Adamsen
Hi, Howard changed something a few days ago in 5.0.12, might be what you need: https://issues.apache.org/jira/browse/TAPESTRY-2320 -Filip On 2008-04-03 09:55, dhning wrote: Josh, thanks you for the response. I mistake the validation via ajax in Firefox, the http requests are to download tapes

Re: T5: Expansions & prefixes

2008-04-03 Thread Andy Blower
Thanks for all the replies everyone. This is good, but it'd be better if the prefix could be passed in from the template. I guess it would need another property & setter. I'm still a novice with Tapestry, but I can't think of a way of doing this without creating a component and having it take a p

problem with showing dialog box inside an listener method

2008-04-03 Thread Sricharan
hi everyone, i am using tapestry 4.1.5 i have an custom dialog box which should be shown on button click so i placed that (dialog).getComponent(custom dialog).show() in side the listener method of button submit.Here it is going to the that line and coming out but the dialog is not displaying i am

RE: T5.0.11: @Persist("flash") values are not retained if validation fails

2008-04-03 Thread Joel Wiegman
Sure... An example is below. The "values" field disappears from the screen if validation fails. //JAVA public class MyClass { //(assume getters and setters exist) @Persist("flash") List values; public void onPrepare() { //populate values with stuf

ComponentEventException on Form Submit with Ajax

2008-04-03 Thread Petros Petrou
The form below works fine when the Submit button is pressed but the exception below is thrown when the myRadioButton is selected. It looks like the onclick="this.form.submit()" is making it fail. Any ideas how I can solve this ? org.apache.tapestry.runtime.ComponentEventException Return type org

AW: problem with showing dialog box inside an listener method

2008-04-03 Thread Stroeber, Andreas
Your html code snippet is missing but would be helpful. -Ursprüngliche Nachricht- Von: Sricharan [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 3. April 2008 13:26 An: users@tapestry.apache.org Betreff: problem with showing dialog box inside an listener method hi everyone, i am using

Re: ComponentEventException on Form Submit with Ajax

2008-04-03 Thread Dmitry Shyshkin
What do you want to achieve by returning Block from onSucess event? As you can read from http://tapestry.apache.org/tapestry5/tapestry-core/guide/pagenav.html Block is not a valid return value for listener method. P.S. I think it is a typo, but you return myBlock from method as declared as _v

Re: ComponentEventException on Form Submit with Ajax

2008-04-03 Thread Stephane Decleire
I think there's a good sample in the Tap 5 documentation : http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry/corelib/components/Delegate.html Stephane Dmitry Shyshkin a écrit : What do you want to achieve by returning Block from onSucess event? As you can read from htt

problem with showing dialog box inside an listener method

2008-04-03 Thread Sricharan
hi everyone, i am using tapestry 4.1.5 i have an custom dialog box which should be shown on button click so i placed that (dialog).getComponent(custom dialog).show() in side the listener method of button submit.Here it is going to the that line and coming out but the dialog is not displaying i am

Re: [T5]: label in properties file

2008-04-03 Thread Andy Huhn
Thanks for your reply, Petros. I tried that, and I have the same issue. Here is my directory structure: src main java com companyname pages coops FindCoops.java webapp coops FindCoops.tml FindCoops.properties I ha

Re: [T5]: label in properties file

2008-04-03 Thread Filip S. Adamsen
Hi, Try putting it in src/main/resources/com/companyname/pages/coops. -Filip On 2008-04-03 14:23, Andy Huhn wrote: Thanks for your reply, Petros. I tried that, and I have the same issue. Here is my directory structure: src main java com companyname pages

AW: problem with showing dialog box inside an listener method

2008-04-03 Thread Stroeber, Andreas
As far as I can see your code, this problem should not occur. Perhaps you should post all your html-, page definition and java-class-code or simply test it by generating a simple web page with just one button and one dialog. There you can experiment on how to use it. It did so, too and it was v

Re: T5: Strategy for pages that edit beans

2008-04-03 Thread Andy Blower
I have encountered a similar issue, and the use of onPrepare() doesn't make sense to me. Surely there's no point persisting any fields and then resetting in onPrepare() is there? May as well just remove the @Persist. There must be something I'm missing here.. can anyone fill me in? Howard Lewis

problem with custom dialog

2008-04-03 Thread sricharan kuna
hi everyone, i am using tapestry 4.1.5 i have an custom dialog box which should be shown on button click so i placed that (dialog).getComponent(custom dialog).show() in side the listener method of button submit.Here it is going to the that line and coming out but the dialog is not displaying i am

T5: AppPropertyEditBlocks and @Inject ASO

2008-04-03 Thread Michael Capper
Summary: I seem to get a different ASO injected in the AppPropertyEditBlocks page than on the rest of my app. Hi, in my Database Users may save, amongst others, WeightMeasurements. When the user wants to view or edit the Measurements, I want to display the weight value in the user's preferred un

T5:calendar component problem

2008-04-03 Thread Natia Gdzelishvili
hi, I have a problem with tapestry calendar component, on page I have: In firefox when i click calendar icon calendar is displayed but IE it doesn't Please help Thanks in advance

Re: T5: Expansions & prefixes

2008-04-03 Thread Filip S. Adamsen
Hi, It's done. You can see the result at http://wiki.apache.org/tapestry/Tapestry5HowToAddMessageFormatBindingPrefix. I've tested this on two of my sites and it works beautifully. I've added support for multi-part keys so you can do stuff like ${format:gender-,prop:user.gender} which will ge

Re: @tacos:dojowidget problem

2008-04-03 Thread Andreas Andreou
I tried that in tacos 4.1.1 and 4.1.2-SNAPSHOT with no problems... so, could it be something else? When are you getting the exception, on render or on submit? Is the form completely inside the floatingPane? On Thu, Apr 3, 2008 at 7:55 AM, abhilash <[EMAIL PROTECTED]> wrote: > > Hi all, > I am us

Re: problem with custom dialog

2008-04-03 Thread Andreas Andreou
Are you binding the hidden parameter of your dialog? Perhaps its value should be persisted as well... On Thu, Apr 3, 2008 at 11:38 AM, sricharan kuna <[EMAIL PROTECTED]> wrote: > > hi everyone, > i am using tapestry 4.1.5 > i have an custom dialog box which should be shown on button click > so

Re: T5: Strategy for pages that edit beans

2008-04-03 Thread samlai
What about calling discardPersistentFieldChanges onCleanupRender? http://tapestry.apache.org/tapestry5/tapestry-core/guide/persist.html Clearing Persistent Fields If you reach a point where you know that all data for a page can be discarded, you can do exactly that. The method discardPersisten

Re: T5: AppPropertyEditBlocks and @Inject ASO

2008-04-03 Thread Michael Capper
My Bad! I Used @Inject for an ASO instead of the usual @ApplicationState... no wonder it did nothing. Michael Capper wrote: > > Summary: I seem to get a different ASO injected in the > AppPropertyEditBlocks page than on the rest of my app. > -- View this message in context: http://www.nabb

Re: T5.0.11: @Persist("flash") values are not retained if validation fails

2008-04-03 Thread Robert Zeigler
Hi Joel. What you put in that onValidateForm is going to be important. :) @Persist("flash") persists a value in the session until (and only until) it has been re-accessed (once). At that point, it is yanked from the session. So if you're reading your List values in the onValidateForm, you're

Re: T5 Tapestry.onDOMLoaded internet explorer 7

2008-04-03 Thread Josh Canfield
The problem is that IE doesn't see javascript on the same line as the opening html comment. What version of tapestry are you using? I see the space added correctly in 5.0.11. On Thu, Apr 3, 2008 at 3:55 AM, Riccardo Ruffilli <[EMAIL PROTECTED]> wrote: > > Hi Everybody, > > I've got a problem on

Re: [T5]: label in properties file

2008-04-03 Thread Josh Canfield
As I understand it putting your template files in webapps is an exception for some people who can't get away from that folder structure. I believe everything else needs to be found on the classpath. Your properties file should be in a folder that gets put in the WEB-INF/classes folder, or into your

Re: error on DateField component

2008-04-03 Thread Josh Canfield
Generally your questions are more likely to be answered if you provide some information about your problem. How about: What version of Tapestry are you using? (4.x.x? 5.x.x?) What browser are you using? What DateField are you using? How are you adding the DateField? Even better, dig deeper: What

dojo 0.4.3 documentation

2008-04-03 Thread Carlos F
has anyone been able to successfully build the dojo 0.4.3 docs? I am asking here because: 1- tap 4.1.x uses it (so I am hoping someone else has done this), 2 - the dojo site's copy doesn't work, and 3 - folks have been asking about it for 2+ weeks on the dojo forums and it is still not function

Re: T5: Expansions & prefixes

2008-04-03 Thread Howard Lewis Ship
On Wed, Apr 2, 2008 at 11:43 AM, Andy Blower <[EMAIL PROTECTED]> wrote: > > I'm accessing message catalogs using expansion with a prefix. e.g. > ${message:this-is-my-key} > > 1) Is there a list of prefixes anywhere, or have I got them all now? > (literal, prop, message) http://tapestry.apache.

Re: [T5.0.11]:Select component - possible bug

2008-04-03 Thread Howard Lewis Ship
The default for the value parameter, on many components, is a property of the container whose property name matches the component id ... if such a property exists. Thus is virtually the same as . This is to encourage people to give their form control components, such as Select and TextField, and

Partial Page Render Support

2008-04-03 Thread Fernando Padilla
I was looking over the code, and I noticed that it doesn't actually support Script and Style Links. I would love that to be supported.. for example, you could bring in Zones from other pages, even if those pages want styles/scripts not already loaded. Does anyone have anything against a zone

Re: ComponentEventException on Form Submit with Ajax

2008-04-03 Thread Petros Petrou
Yes returning void is a typo. What I am trying to achieve is the following: I have two versions of a searchCriteriaForm. I have a second form (configureSearchCriteriaForm) that contains two radio buttons. Depending on which radio button is selected an "onclick" event submits this form to decide

Re: T5: Strategy for pages that edit beans

2008-04-03 Thread Petros Petrou
Hugo, Your UserPage.tml/UserPage.java is the view and your User POJO the model, right ? The way I see the probem is who ever (eg UserListPage, Register Link) needs to use the UserPage needs to pass in te POJO, otherwise the UserPage wont know what to display. What are the UseCases that you need

T5: FormInjector example

2008-04-03 Thread Zheng, Xiahong
Can somebody post an example how to use this component? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

afterUpdateElement for AutoCompleter of Tapestry 4.1.5

2008-04-03 Thread Sumanth Dupuguntla
Hi all, I'm working on migration of tapestry 4.0.2 to 4.1.5. Previously I was using tacos autocompleter where I used to "afterUpdateElement" parameter and in the javascript I am setting the required vales in the html form but now in tapestry 4.1.5 I'm using dojo autocompleter I couldn't find the

Re: [T5]: label in properties file

2008-04-03 Thread Andy Huhn
Thank you so much for your help, Petros, Filip, Josh. This did the trick! My new directory structure is src main java com companyname pages coops FindCoops.java resources com companyname pages coops

Re: Re : Re : T5: Layout question

2008-04-03 Thread Julian Wood
Hey that's pretty nice. Solves https://issues.apache.org/jira/browse/TAPESTRY-2309 for me, anyway. J On 2-Apr-08, at 10:59 AM, Peter Beshai wrote: What if you try making the element the border object? Like so: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3.org/1999/xhtm

Re: ComponentEventException on Form Submit with Ajax

2008-04-03 Thread Dmitry Shyshkin
You can return Block or Component from listener only when tapestry is precessing _ajax_ request. 'this.form.submit()' is not an ajax. As I know currently there is no ajax support for radio button (may be I am wrong), but you can look into code of TriggerFragment mixin and adopt this code for rad