Re: TextStreamResponse and XML and UTF-8

2007-11-13 Thread Nick Westgate
> The problem is the that I can't make TextStreamResponse to show UTF-8 (greek > in my case) characters. > Dont know if it's related with this post: > > http://www.nabble.com/T5-confused-about-Services-and-XmlHttpResponse-tf4160459.html#a11839004 Yes, my previous post pointed out a solution. Her

Re: T5: CreatePageLink and list of context

2007-11-13 Thread Nick Westgate
Probably better to look at the createPageLink parameters: http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry/ComponentResourcesCommon.html #createPageLink(java.lang.String,%20boolean,%20java.lang.Object...) Try passing p.toArray(). Cheers, Nick. Ezra Epstein wrote: Take a look a

Re: T5 Previewable pages

2007-11-12 Thread Nick Westgate
$Remove$ is not yet implemented. You can accomplish what you're trying to do with Any: http://wiki.apache.org/tapestry/Tapestry5AnyComponent In that case the runtime href will be prefixed with "t:" to override the (informal) additional href used for preview. The cleaner option is to write your

Re: T3: Spindle Tomcat

2007-11-08 Thread Nick Westgate
With T3 & Spindle I always used the Sysdeo Tomcat plugin before WTP. Spindle adds a nature to the project in the .project file. E.g. in Eclipse 3.1 it is: com.iw.plugins.spindle.core.tapestrynature You could try adding the (new version) Spindle nature to a WTP project, but this is pretty hac

Re: T5 how to control login state

2007-11-03 Thread Nick Westgate
You've had the misfortune to run into this bug quicker than most. Follow the advice here: http://wiki.apache.org/tapestry/Tapestry5RootPathEmptyResponse And everyone, please vote for this bug! Cheers, Nick. Josh Canfield wrote: Your BasePage class should be in /src/main/java//base/ Your Star

Re: T5.0.6 I'm lost after upgrade T5

2007-11-03 Thread Nick Westgate
Try adding setters to your fields. Cheers, Nick. Josh Canfield wrote: @InjectPage private Home home; The error message seems a little strange, but the code above is injecting a page called Home. Does that page load correctly if accessed directly? Josh On 11/3/07, Michael Bernagou <[EM

Re: T5: component expansion unexpected

2007-11-02 Thread Nick Westgate
You are ending the element before the inner (etc) renders. Instead, you should end the writer in afterRender: void afterRender(MarkupWriter writer) { writer.end(); // } The corelib components are good examples to copy. Cheers, Nick. Angelo Chen wrote: Hi, I have a com

Re: Submitting Html Form is not working properly in Tapestry 5

2007-11-02 Thread Nick Westgate
> I am using Tapestry 5. I don't think so. Your code is using Tapestry 4 syntax. Cheers, Nick. Imran Amajd wrote: Hello EveryBody, I am using Tapestry 5. Problem: There is a submit button attached with listener (say OnSave()) and a text field after the Submit button on html form. like

Re: [T3] Spindle for Tapestry 3 and Eclipse 3.3

2007-11-01 Thread Nick Westgate
Wow! Great news. What a sterling guy Geoff is. There will be some happy developers out there I'm sure. Cheers, Nick. Jesse Kuhnert wrote: From a message given to me by Geoff about a small update he's made for eclipse 3.3 tapestry 3 users : =

Re: T5 which button did you hit?

2007-11-01 Thread Nick Westgate
Oops, that should be: To get the "submit" event from the component named Submit, use: onSubmitFromSubmit() You can see it's better to give meaningful names to your components. Cheers, Nick. Nick Westgate wrote: There are some docs about this here: http://tapestry.apach

Re: T5 which button did you hit?

2007-10-31 Thread Nick Westgate
There are some docs about this here: http://tapestry.apache.org/tapestry5/tapestry-core/guide/event.html To get the "success" event from the component named Form, use: onSuccessFromForm() To get the "submit" event from the component named Submit, so use: onSuccessFromSubmit() It's good practice

Re: T5 : Localization of input validation

2007-10-31 Thread Nick Westgate
Or just look on the wiki: http://wiki.apache.org/tapestry/Tapestry5HowToOverrideTheDefaultErrorMessageBanner Cheers, Nick. Marcus wrote: Hi Stephane, search this forum for "*T5 How to Override the default banner message" * Marcus

Re: Expression syntax Tapestry 5

2007-10-31 Thread Nick Westgate
Details of prop are here: http://tapestry.apache.org/tapestry5/tapestry-core/guide/parameters.html Cheers, Nick. Peter Stavrinides wrote: Thanks Chris, that helps answer my question. Peter Chris Lewis wrote: I could be mistaken, but I think you'll find the "language", if you can call it that

Re: Mixing T5 and Guice --- best practices

2007-10-30 Thread Nick Westgate
Jan, forgot to add I know you saw this last time around. ;-) Cheers, Nick. Jan Vissers wrote: On the why of Guice... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Mixing T5 and Guice --- best practices

2007-10-30 Thread Nick Westgate
This is almost a FAQ. See the older post here: http://tapestryjava.blogspot.com/search?q=guice Also see the "Why Not ..." sections: http://tapestry.apache.org/tapestry5/tapestry-ioc/ Cheers, Nick. Jan Vissers wrote: On the why of Guice... Not trying to offend anyone here, but maybe T5 already

Re: [T5] Problem with multiple forms in a loop

2007-10-29 Thread Nick Westgate
I didn't see Olof's original post, but this is what the PREPARE event is for. Use it to set up the object that is being edited using the form context. Also, note that there is a limitation with form validation. From the docs: - tracker - org.apache.tapestry.ValidationTracker - defaultTracker - pr

Re: T5: redirect with parameters (was ActionLink with two parameter context)

2007-10-29 Thread Nick Westgate
The subject for this thread was wrong. @Inject EditPage editPage; Object onActionFromEdit(Long id) { editPage.setId(id); return editPage; } Cheers, Nick. Angelo Chen wrote: Hi, I redirect to another page in my ActionLink using following code: Class onActionFromEdit(Lon

Re: T5: ActionLink with two parameter context

2007-10-29 Thread Nick Westgate
The context is a list, so you pass it a list with two entries. Cheers, Nick. Angelo Chen wrote: Hi, I need to pass two paramters as context in an ActionLink, how to do that? thanks. A.C. - To unsubscribe, e-mail: [EMAIL PR

Re: upgrading 5.0.5 to 5.0.6 breaks the app

2007-10-28 Thread Nick Westgate
Please look for the recent thread "T5: How to upgrade from 5.0.5 to 5.0.6". Cheers, Nick. Marc A. Donis wrote: Hi again, First off, I am having an issue (with 5.0.5) concerning returning null from my ValueEncoder's toValue method. I expect the value to be simply set to null, but instead I

Re: T5 page without a class (only a template)

2007-10-27 Thread Nick Westgate
No. The class defines the page. This is implicit in the design. The alternatives are a slippery slope to configuration complexity. Cheers, Nick. Ben Gidley wrote: Hi, Is it possible to create a T5 page that doesn't have a class - only a template. For example I have a simple case of a page th

Re: T5: inject ComponentResources in a service

2007-10-26 Thread Nick Westgate
At a glance, you just want to call createPageLink on a Page. So you could inject the PagePool to get the page and go from there. That's an internal service though ... can't see an obvious way to do this without "more than a glance". ;-) Cheers, Nick. Angelo Chen wrote: hi davor, correction,

Re: T5: Multiple onPassivate

2007-10-25 Thread Nick Westgate
Depends on what's in your page. onPassivate is called to build the context for a link. Cheers, Nick. Angelo Chen wrote: Hi, I did a test, when a page with a form is displayed, it has one onActivate call but more than 10 onPassivate call in my test case, why? A.C. -

Re: T5: hidden fields

2007-10-24 Thread Nick Westgate
You should use getElementName() after the name parameter. Cheers, Nick. Kristian Marinkovic wrote: for the time being there is no Hidden component available in T5 you can use the component below: public class Hidden extends AbstractTextField { @Override protected void writeFi

Re: T[5] Organizing components/layouts

2007-10-24 Thread Nick Westgate
You need to use Cheers, Nick. Ying Lee wrote: Thx, it works. There seems to be some inconsistency here. When I try: it doesn't work.. Ronald Date: Wed, 24 Oct 2007 13:53:09 -0400 From: [EMAIL PROTECTED] To: users@tapestry.apache.org Subject: Re: T[5] Organizing components/layouts Take a

Re: T[5] Organizing components/layouts

2007-10-24 Thread Nick Westgate
Try because of name optimizations: http://tapestry.apache.org/tapestry5/tapestry-core/guide/component-classes.html Cheers, Nick. ronaldlee wrote: Hi, I am able to create a simple layout components. But I want to organize my components by putting them into a sub-package under the default "com

Re: [T5]: how to prevent onActivate() from firing with activationcontext

2007-10-24 Thread Nick Westgate
I'm not going to delve into the logic of your use case. Just put have one activate handler: void onActivate(Object[] context) { if (context.length == 0) { // handle no context { else { // handle context { } Cheers, Nick. Britske wrote: for a page, I hav

Re: [t5] decoding utf-8 in form submissions

2007-10-24 Thread Nick Westgate
x27;d like to mention, that removing upload component from form resolved the decoding issues. But I still have the question: is it somehow possible to have a form with upload components and working UTF-8 decoding? Lauri Nick Westgate wrote: Look at the Tapestry console output for exception lo

Re: [t5] decoding utf-8 in form submissions

2007-10-24 Thread Nick Westgate
class RequestGlobals. So I rewrite it to 'getRequest'. 2. likewise, method 'setCharacterEncoding' does not in HttpServletResponse, so I rewrite it to 'setEncoding'. thanks. Ken Nick Westgate wrote: If you are using file upload there may be an inc

Re: [t5] decoding utf-8 in form submissions

2007-10-21 Thread Nick Westgate
If you are using file upload there may be an incompatibility. Otherwise, are you sure you added this line to contributeRequestHandler()? configuration.add("Utf8Filter", utf8Filter); // handle UTF-8 Cheers, Nick. Lauri Benno wrote: Hi, I'm totally lost on this. I'm using UTF-8 on my applic

Re: T5: Editing of form

2007-10-21 Thread Nick Westgate
Don't forget that Tapestry has docs: http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html#orgapachetapestrycorelibcomponentssubmit Use onSelectedFromSubmitButtonName(). Cheers, Nick. Angelo Chen wrote: Hi Jonathan, That's a good idea, two buttons, 'save' and 'save & f

Re: [T5] Connection between symbols and messages

2007-10-20 Thread Nick Westgate
The unification makes sense. But how would intentional overriding (as is usual for messages) versus unintentional collisions be handled? Conventions or some kind of extra scoping? Cheers, Nick. Howard Lewis Ship wrote: I don't see this as a problem, message catalog and symbols are very closely

Re: T5: Multiple forms in a page

2007-10-20 Thread Nick Westgate
Use "From" to specify which component you want events from. http://tapestry.apache.org/tapestry5/tapestry-core/guide/event.html Cheers, Nick. Angelo Chen wrote: Hi, I have two forms so far in one page, so there are two submit buttons. now how to detect which form fires those events like onVal

Re: T5: To submit or to success?

2007-10-18 Thread Nick Westgate
For a use case where some action doesn't depend on validation. Perhaps there some parts of a page are validated, but a cancel or delete button or something would need to operate regardless. Cheers, Nick. Angelo Chen wrote: Hi, in a form, after onValidate there are still two events: onSubmit a

Re: Templates and t:body

2007-10-18 Thread Nick Westgate
In Tapestry (all versions) when you use the word "include" to describe something, you should be thinking about components. Either the header goes in your Border/Layout component, or you make a header component which gets rendered in a Border. The documentation for Tapestry's special t:body eleme

Re: t5 form submit not fired

2007-10-18 Thread Nick Westgate
Hugo defined myAction as returning a StreamResponse -> no redirect. Geert-Jan says myAction returns void -> a redirect occurs. Cheers, Nick. Hugo Palma wrote: If your getting a page redirect then your doing something wrong in your code. If you post it i can try and find the problem. Britske

Re: T5: PropertyAccess service not injecting?

2007-10-17 Thread Nick Westgate
It's here: http://tapestry.apache.org/tapestry5/tapestry-core/guide/component-classes.html Cheers, Nick. lasitha wrote: Christian, i haven't tested this, but i did notice the line at the top of the wiki page seems incorrect: @Inject PropertyAccess _access; AFAIK, injected properties _have_ to

Re: does logical expression in prop expression allowed ?

2007-10-17 Thread Nick Westgate
Please read the docs. I have pointed them out several times now. Cheers, Nick. Mohammad Shamsi wrote: hi, can i write a logical expression in page ? ${12 < item.id} - To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: T3 Eclipse 3.3

2007-10-17 Thread Nick Westgate
I keep Eclipse 3.1 installed for those legacy projects. Cheers, Nick. James Sherwood wrote: Hey all, I am trying to upgrade to the latest eclipse and was wondering what editor people use for Tapestry in the newer eclipses. We used spindle but it does not work in the newer eclipses. Any he

Re: T5 - t:label component.

2007-10-17 Thread Nick Westgate
In addition to the other posters ... Tapestry follows the DRY (Don't Repeat Yourself) coding principle: the label is defined in only one place but used in multiple places. Of course you should put the label text in a .properties file for l10n. The behaviour you are seeing for default label names

Re: how to set two or more context ...?

2007-10-17 Thread Nick Westgate
GNL. Your choice. Cheers, Nick. Mohammad Shamsi wrote: Hi Nick, you really think that this is quite simple ? i just want a simple url : go for doing this, i most add a method to page class. Wow!!! :( On 10/17/07, Nick Westgate <[EMAIL PROTECTED]> wrote: Binding expressions are quit

Re: T5: creating a link

2007-10-17 Thread Nick Westgate
Not yet. If you desire one, please log a JIRA. Cheers, Nick. Angelo Chen wrote: using getLocalName, getLocalPort works, but is there easier way? Nick Westgate wrote: Get the rest from: @Inject RequestGlobals globals; ... globals.getHTTPServletRequest().get... Cheers, Nick

Re: how to set two or more context ...?

2007-10-17 Thread Nick Westgate
Binding expressions are quite simple at this time. See Binding Expressions: http://tapestry.apache.org/tapestry5/tapestry-core/guide/parameters.html Use context="${editLinkContext} and create the context in Java. List getEditLinkContext() ... Cheers, Nick. Mohammad Shamsi wrote: hi all, i h

Re: button component ??

2007-10-17 Thread Nick Westgate
There is no button component yet. Feel free to write it! One option that (I think) works in most browsers is: Add a String getCancelUrl() to your page class. Cheers, Nick. Mohammad Shamsi wrote: hi all, i need a button in a form for cancel operation and back to prev, page. but i just have

Re: T5: creating a link

2007-10-17 Thread Nick Westgate
Get the rest from: @Inject RequestGlobals globals; ... globals.getHTTPServletRequest().get... Cheers, Nick. Angelo Chen wrote: Hi Nick, This works, however it does not show the main part, http://localhost:8080, any way to retrieve this as well? thanks. A.C. Nick Westgate wrote

Re: T5: creating a link

2007-10-17 Thread Nick Westgate
@Inject private ComponentResources resources; ... String url = resources.createPageLink("pageName", false, context).toURI(); Cheers, Nick. Angelo Chen wrote: Hi, I need to create a link in the code so that it can be mailed to users, example, if I have a page called Confirmation, th

Re: T3: enable/disable one column according to the other columns result

2007-10-16 Thread Nick Westgate
k fields on the last column according to the 2nd column's value. e.g. if table's 2nd column value is 'Failed' of any row then I want to disable the last field of that row. And if 2nd column value is 'Passed' then I want to leave enable the field. I don't know ho

Re: T3: enable/disable one column according to the other columns result

2007-10-16 Thread Nick Westgate
It's not clear what you mean by enable/disable. You can use @If when you want to include/exclude content. Cheers, Nick. Nazmul Bhuiyan wrote: I'm using T3. I'm trying to enable/disable last table cell according to my 2nd column value. My code below: -span jwcid="@Insert" value="ognl

Re: T5: refreshing page when there is an error

2007-10-16 Thread Nick Westgate
.6-SNAPSHOT and exprience some strange behaviour on properties with @Persist("flash"). if i hit ctrl+r (page reload) the properties are not set back properly and therefore their value remains. ... but i have to check whether this is an error on my side i'll report back when i

Re: T5: refreshing page when there is an error

2007-10-16 Thread Nick Westgate
into the same form, then click 'refresh', those new errors got erased, but the error in #1 remains, anyway to clear them totally? Nick Westgate wrote: You mean refreshing without a submit, right? So onValidate isn't called in that case - only when the form submits. You can clear

Re: can i change locale manually or not ???

2007-10-16 Thread Nick Westgate
x27;t have AppModule class, where can i find docs or guide for Application Module Class in T5 On 10/16/07, Nick Westgate <[EMAIL PROTECTED]> wrote: Have you changed the line in your AppModule.java to the following? configuration.add("tapestry.supported-locales", &q

Re: can i change locale manually or not ???

2007-10-16 Thread Nick Westgate
nceLocale changed to German, but i see English Locale (Default Locale) again On 10/16/07, Nick Westgate <[EMAIL PROTECTED]> wrote: The docs are out of date, hence the wiki. "Don't effect" is not specific enough. Give us the info to help you. What are you trying do? What are

Re: T5: refreshing page when there is an error

2007-10-16 Thread Nick Westgate
You mean refreshing without a submit, right? So onValidate isn't called in that case - only when the form submits. You can clear the form errors in an event handler, but realistically this can become problematic ... It's likely that the behaviour you want can be provided by: (a) copying and chan

Re: T5: Pluggable javascript libraries?

2007-10-16 Thread Nick Westgate
The conclusion was that it should be researched in a branch. Howard wants the AJAX support to be of the same quality as the rest of the framework, so realistically this may take a while. Cheers, Nick. Chris Lewis wrote: Was it said that would be implemented? I mean I think it could be a good

Re: T5: refreshing page when there is an error

2007-10-16 Thread Nick Westgate
ith the validation errors. if more people agree with "flash" as default strategy for the ValidationTracker we could add a jira :)... g, kris Nick Westgate <[EMAIL PROTECTED]> 16.10.2007 05:04 Bitte antworten an "Tapestry users" An Tapestry users Kopie T

Re: can i change locale manually or not ???

2007-10-15 Thread Nick Westgate
The docs are out of date, hence the wiki. "Don't effect" is not specific enough. Give us the info to help you. What are you trying do? What are the names of your localized files? How is this event being invoked from your .tml file? Cheers, Nick. Mohammad Shamsi wrote: i was read in tapestry l

Re: T5 Order in which modules load

2007-10-15 Thread Nick Westgate
y custom code. I just have a clue if I can override that, or where I would even start to look :) Thanx for the tips though, at least I don't appear to be going crazy ;) Martin Nick Westgate wrote: Doesn't an ordered configuration help you there? http://tapestry.apache.org/tapestry5/

Re: T5: refreshing page when there is an error

2007-10-15 Thread Nick Westgate
I agree it should be "Flash". I copied Form and changed it to that. It should be possible for a user to configure this. Cheers, Nick. Thiago H de Paula Figueiredo wrote: On Mon, 15 Oct 2007 15:36:26 -0300, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: Form has a clearErrors() method. This

Re: T5: Setting properties to null

2007-10-15 Thread Nick Westgate
This was changed a month ago by Howard. There's already a complaint attached to the closed issue: https://issues.apache.org/jira/browse/TAPESTRY-1648 Perhaps it should be re-opened and re-examined. Cheers, Nick. Hugo Palma wrote: It seems that properties associated with form fields are never s

Re: T5 Order in which modules load

2007-10-14 Thread Nick Westgate
Doesn't an ordered configuration help you there? http://tapestry.apache.org/tapestry5/tapestry-ioc/configuration.html#Ordered%20List The order of module processing shouldn't be important since the final ordering is imposed by resolving all such configurations after loading. (Sorry, I haven't exp

Re: [T5] Recommended naming of configurations

2007-10-14 Thread Nick Westgate
Tapestry-ioc already calls the "something" a configuration: http://tapestry.apache.org/tapestry5/tapestry-ioc/configuration.html so Howard's "configure" naming suggestion looks even better. (This has been discussed previously in this list.) Cheers, Nick. lasitha wrote: Howard, Just in case t

Re: t5 : how to set page paramaters in pagelink ?

2007-10-14 Thread Nick Westgate
There are at least 2 ways to do this. If you follow Serge's suggestion of a context, you need to use the context to set "name" in page B using the onActivate event: http://tapestry.apache.org/tapestry5/tapestry-core/guide/pagenav.html The alternative is to use an ActionLink instead of PageLink i

Re: how to inject PersistentLocale for manage app locales ??

2007-10-14 Thread Nick Westgate
I can't check the code right now, but pageAttached may be too early. Try either onActivate or setupRender. Cheers, Nick. Mohammad Shamsi wrote: i wrote this code to change locale, but i got NullPointerException, any idea please? public class Start { @Inject PersistentLocale locale;

Re: T5 2 question about loop component parameters

2007-10-14 Thread Nick Westgate
On 10/14/07, Nick Westgate <[EMAIL PROTECTED]> wrote: The value and index have to go somewhere. Why not in your page class? Cheers, Nick. Mohammad Shamsi wrote: hi all, please take a look at my page bellow, ???

Re: T5 2 question about loop component parameters

2007-10-14 Thread Nick Westgate
The value and index have to go somewhere. Why not in your page class? Cheers, Nick. Mohammad Shamsi wrote: hi all, please take a look at my page bellow, ??? ${item.firstName} ${item.lastName} ${item.ph

Re: [T5] RadioGroup

2007-10-14 Thread Nick Westgate
there are all my Parameters but the annotated values in my own component seem never be initialized. What am am I missing? Regards, Michael Nick Westgate schrieb: The obvious answer to your question is the source for RadioGroup.java. ;-) http://tapestry.apache.org/tapestry5/apidocs/src-html/org

Re: T5: styling the error messages

2007-10-13 Thread Nick Westgate
Override the error CSS in your own CSS file, and please add a note here: http://wiki.apache.org/tapestry/Tapestry5HowToOverrideTheDefaultErrorMessageBanner Cheers, Nick. Angelo Chen wrote: Hi, shows list errors in a red box, any way to style this? thanks. A.C. -

Re: [T5] RadioGroup

2007-10-13 Thread Nick Westgate
The obvious answer to your question is the source for RadioGroup.java. ;-) http://tapestry.apache.org/tapestry5/apidocs/src-html/org/apache/tapestry/corelib/components/RadioGroup.html Basically, RadioGroup is responsible for the collective behaviour of Radios when each is rendering, and when the

Re: [T5] Label

2007-10-13 Thread Nick Westgate
Hi Michael. In the future it should be easy to do this with a Mixin, but there are a couple of problems that might (or might not) get in the way currently. Anyway, it's very easy to write components. Just take the Radio.java source eg from http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/ ta

Re: T5: How to set persisted variable to null

2007-10-12 Thread Nick Westgate
Getters/setters are only required for JavaBean conformity, e.g. to use prop. I've just tested this on 5.0.5 (maybe 5.0.6 later if I get time) ... There is a bug - setting the property to null doesn't work. If someone can verify this on 5.0.6 before I do, please log a JIRA. Cheers, Nick. Josh

Re: how to translate input into double/float value

2007-10-12 Thread Nick Westgate
You provide a translator. The framework provides one for Double etc: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/translator/ You can add more in your AppModule.java, like this ... (I know this seems like overkill, but will likely be improv

Re: parameter binding broken in T-4.1.* - PROPERTYSELECTION

2007-10-11 Thread Nick Westgate
I'm just giving the standard response for this problem, though I don't know if T4 has changed such that a different solution is possible. http://thread.gmane.org/gmane.comp.java.tapestry.user/23236/focus=23293 For instance, maybe you need to use "ognl:tableSource" in your template depending on th

Re: unique ID

2007-10-10 Thread Nick Westgate
Encode to hex or base64 to make the link "presentable". Also the user's id should be unique, so use that for uniqueness. Store a randomized token (number or string etc) in the user's data and then encode/encrypt the id and the token in the link. Cheers, Nick. Angelo Chen wrote: Hi, Sorry, th

Re: parameter binding broken in T-4.1.* - PROPERTYSELECTION

2007-10-10 Thread Nick Westgate
Hi Ken. I haven't really used T4, but I suspect you may need to bind the parameter to a persistent property in your Home page: Now, you may have noticed that no-one else has replied to you, and in the interests of improving the signal-to-noise ratio of the list I'd like to make a polite su

Re: [T5] exception when assigning two Mixins simultaneously that return boolean "true" on setupRender

2007-10-10 Thread Nick Westgate
I logged a JIRA for this a few moons back: https://issues.apache.org/jira/browse/TAPESTRY-1662 The other JIRA (1805) is more concerned with symmetry of the render events called before & after. Certainly a bit more work needs to be done there. Cheers, Nick. Todd Orr wrote: I'm receiving this

Re: T5: Component returns page?

2007-10-09 Thread Nick Westgate
Yep, no problem at all. Allowed and recommended for page navigation events: http://tapestry.apache.org/tapestry5/tapestry-core/guide/event.html Cheers, Nick. Angelo Chen wrote: Hi Josh, I see no problem compnent returning pages, example: I have a layout component which defines several actions

Re: T5: why not able to locate js?

2007-10-07 Thread Nick Westgate
Move your js up one directory from WEB-INF. See here: http://wiki.apache.org/tapestry/Tapestry5WhereToStoreExternalResources The contents of WEB-INF are protected from browsing. Most assets are usually placed above it. Cheers, Nick. Angelo Chen wrote: if I remove the context, then I have to p

Re: Parameter(s) translate, value are required for org.apache.tapestry.corelib.components.TextField, but have not been bound.

2007-10-06 Thread Nick Westgate
If no value is supplied, T5 checks for a property name based on the id. But the id is simply a string and not interpreted as a prop expression, so "." doesn't mean anything special there. That might be an interesting enhancement though. I'll add a JIRA. Cheers, Nick. Marc A. Donis wrote: Aha.

Re: t5: no root element has been defined

2007-10-06 Thread Nick Westgate
The exception means your Java class was found, but not the template. Carefully check your project details against Marcus's notes below. Check your pom.xml for the tapestry version etc. Cheers, Nick. Christian Gruber wrote: Actually, I'm getting it from the tutorial as well. That is, I'm gett

Re: T5: how to use message catalogs for individual page

2007-10-06 Thread Nick Westgate
a project checkout using the commands in the tutorial for 5.0.6-SNAPSHOT. It complains about missing Start.html. I noticed that a bug fix for this was checked into SVN. Will this be added to the snapshot? Thanks, Michael Nick Westgate wrote: I verified today that this works. How are you

Re: T5: how to use message catalogs for individual page

2007-10-06 Thread Nick Westgate
I verified today that this works. How are you using the properties? Are you launching from Eclipse or maven? Do you get any console errors or exceptions? Cheers, Nick. mnguyen21 wrote: Hello, I'm trying to follow the form tutorial and am having some trouble with the message catalog. The tu

Re: For compoenent

2007-10-05 Thread Nick Westgate
Please post relevant source snippets so someone can comment on them. Cheers, Nick. Ravi Shankar wrote: I am using tapestry 4.1.3 and I am quite new to the framework. I am adding a for component to a page class that is used in HTML table for generating data rows. The source for the component is

Re: t5: no root element has been defined

2007-10-05 Thread Nick Westgate
5.0.5 uses *.html 5.0.6 uses *.tml Cheers, Nick. Heck, Bob wrote: Am I really this dense? I just can't get this to work. Simple hello world Start.tml Start.java in package described in web.xml Using Tapestry 5.0.5 Try my local:8080/Start and get this java.lang.IllegalStateException No r

Re: T4: How to set the option value for the Option component?

2007-10-04 Thread Nick Westgate
Well, not using Select and Option, which I presume you are using for a reason. PropertySelection is more customizable. Cheers, Nick. Joshua Jackson wrote: Looks like I have no other option here. Thanks Nick. :) On 10/5/07, Nick Westgate <[EMAIL PROTECTED]> wrote: Use the source.

Re: T4: How to set the option value for the Option component?

2007-10-04 Thread Nick Westgate
Use the source. That's delegated to the surrounding Select: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/form/Option.java?view=markup Looks like you'll have to copy Option and start hacking. Cheers, Nick. Joshua Jackson wrote: Dear all,

Re: T5: Newbie question - creating and accessible a new page

2007-10-04 Thread Nick Westgate
This should work if you restarted the server after creating the new page. Hugo just posted he is having problems with template reloading in 5.0.6. Your problem might be related. Cheers, Nick. jblier wrote: Although the tutorial Guess Hi/Lo (5.0.5) lets me access the guess page directly, I'm t

Re: coercion error?

2007-10-04 Thread Nick Westgate
Note there are cleaner ways of writing the HTML. The "Tapestry Way" is to to get components to do the work for you. You could use your own link component or an Action or (*)PageLink: main (*) This will work for ActionLink, but PageLink currently doesn't support "disabled". (There is already a J

Re: [T5] Component Parameters

2007-10-04 Thread Nick Westgate
You would use the "prop:" binding prefix or an expansion. Please see "Binding Expressions" and "Expansions": http://tapestry.apache.org/tapestry5/tapestry-core/guide/parameters.html http://tapestry.apache.org/tapestry5/tapestry-core/guide/templates.html The prop binding language is very simple, s

Re: [T5] every user sharing the same session

2007-10-04 Thread Nick Westgate
This is less a Tapestry topic and more of a web dev/J2EE topic. Web servers usually use a cookie to identify the session. If you open a new window in the same browser, the same cookie is supplied, therefore the same session. If you open a new browser instance, then it will be in a new session. U

Re: T5: Mixin on Form does not work as expected

2007-10-04 Thread Nick Westgate
Looks plausible. Add it to JIRA so it doesn't get lost! Cheers, Nick. Kristian Marinkovic wrote: Hi howard, i think i was able to localize the root cause of the exception if you confirm it i'll add a JIRA ComponentPageElementImpl is responsible for calling the render phase methods of th

Re: How to turn off element type warnings/errors in Eclipse?

2007-10-03 Thread Nick Westgate
I'm using the standard WTP in Eclipse 3.3, and have no warnings in templates that begin with: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> Cheers, Nick. Robert A. Decker wrote: http://tapestry.apache.org/schema/tapestry_5_0_

Re: T5: How can I use Application Message Catalog

2007-10-03 Thread Nick Westgate
That's a bit old now. ;-) See how you go with 5.0.5 first. If that works ok, start reading the posts in the list about the changes to upgrade to 5.0.6. Cheers, Nick. (?) ?? wrote: You restarted the container, right? Tomcat or Jetty? Either way, it should have worked. I restarted Jetty b

Re: [T5] Basic Ajax

2007-10-03 Thread Nick Westgate
You want to use an action link, not a page link. See the example in this post: http://article.gmane.org/gmane.comp.java.tapestry.user/49791/ You'll probably want to alter it to do something like: return TextStreamResponse("text/html", ...) Cheers, Nick. Borut Bolčina wrote: I am making s

Re: T5: How can I use Application Message Catalog

2007-10-03 Thread Nick Westgate
But I rename it to "app.properties" and move to WEB-INF, It did not work. You restarted the container, right? Tomcat or Jetty? Either way, it should have worked. Tapestry 5.0.5 or 5.0.6? Cheers, Nick. - To unsubscribe, e-mail:

Re: T5:image component in wiki

2007-10-03 Thread Nick Westgate
The primary reason I put it there is for people who (like me) want to create Tapestry templates that are "previewable". That is, you can just open them with a web browser see something similar to what will be generated at runtime. In this case if the src path is valid you'll see the image. Cheer

Re: T5: How can I use Application Message Catalog

2007-10-03 Thread Nick Westgate
How are you using the messages? Cheers, Nick. (株)ジインズ 岸野 wrote: Sorry. I made "app.properties" under "WEB-INF". But ignored. file name should be app.properties and put it under WEB-INF directory. (株)ジインズ 岸野 wrote: Hi, I want to use Application Message Catalog to define common labels.

Re: Typo or intentional mistake?

2007-10-03 Thread Nick Westgate
A tragic mistake! The only paragraph about Tapestry and they get it wrong! Cheers, Nick. Borut Bolčina wrote: Hello, can't help myself to let all know. On pages 10 and 11 of the "Beggining JBoss Seam From Novice to Professional" there is a paragraph about Tapestry: Tapestry is another web fr

Re: [T4]: Where is the Foreach component ?

2007-10-03 Thread Nick Westgate
Please replace "Foreach" with "For" and log a doicumentation JIRA. Cheers, Nick. Joshua Jackson wrote: When running to examples located here: http://tapestry.apache.org/tapestry4.1/components/form/select.html I get this exception: org.apache.hivemind.ApplicationRuntimeException Component 'For

Re: [T5] Linkable rows with Grid component

2007-10-02 Thread Nick Westgate
I think there's a good argument for making the components as malleable as possible - much more so than the other framework APIs. The exposure to upgrade breakages is probably a necessary trade-off. E.g. for the full utility of mixins to be realized: https://issues.apache.org/jira/browse/TAPESTRY-1

Re: T3: Upload

2007-10-01 Thread Nick Westgate
lassLoader delegate: false repositories: /WEB-INF/classes/ --> Parent Classloader: [EMAIL PROTECTED] : UploadPage But com.fujitsu.efi.web.pages.test.UploadPage class exists in WEB-INF/classes directory. Thanks Naz Nick Westgate wrote: What about your .page file? Cheers, Nick. Nazmul

Re: i don't like the new tapestry 5 based on xml ?

2007-09-29 Thread Nick Westgate
at least some degree of branding. Many frameworks do this (rhtml anyone?), and probably for several reasons, but branding is certainly one of them. PS So does that mean I must rename all of my templates to *.tml? Nick Westgate wrote: Marketing eh? Interesting idea. Here are the actual

  1   2   3   4   >