[T4] about JSON in Tapestry

2007-07-02 Thread #Cyrille37#
Hi, I can see that JSon is implemented in Tapestry4.1.x (IJSONRender,ResponseBuilder) Today I use JSon for communicate between Java Applet and WebApp, I've go a Servlet that make the bridge from JSon call to the WebApp via some Spring Beans. Perhaps I can stop to use this Servlet and

Re: getInfrastructure() is null

2007-07-02 Thread Igor Drobiazko
Hi, I'm not sure I understand what you want to do. What do you mean by Inside BaseEngine's setLocale method. Do you have your own implementation of the IEngine interface or do you extend BaseEngine? In both cases you have to tell tapestry to use your class. For that purpose you have the

Re: [T4] about JSON in Tapestry

2007-07-02 Thread Igor Drobiazko
Hi, in tapestry JSON is used to render the asynchronous response to the client. Lets say you have an ajax component which has some javascript. The component provides needed data for its javascript via JSON. I'm not sure whether it is your scenario but you could have a look at:

Re: [T4] about JSON in Tapestry

2007-07-02 Thread #Cyrille37#
Igor Drobiazko a écrit : Hi, in tapestry JSON is used to render the asynchronous response to the client. Lets say you have an ajax component which has some javascript. The component provides needed data for its javascript via JSON. I'm not sure whether it is your scenario but you could have

T5.0.5: How to display rows conditionally in the Grid component?

2007-07-02 Thread Erik Vullings
Hi all, I want to use the Grid component to display a list of questions and answers: since there are many questions, I don't want the user to see them all at once, but instead show them conditionally as needed. For example, when clicking yes (answer), it will show some subsequent questions

[T4] documentation about @Radio and @FieldLabel in a @For loop

2007-07-02 Thread #Cyrille37#
Hi, I think it miss some documentation about @Radio and @FieldLabel in a @For loop. While reading the T4 documentation I could not make working those component together. I've finally found the solution here : Radio button labels

Re: [T4] documentation about @Radio and @FieldLabel in a @For loop

2007-07-02 Thread #Cyrille37#
#Cyrille37# a écrit : Hi, I think it miss some documentation about @Radio and @FieldLabel in a @For loop. While reading the T4 documentation I could not make working those component together. I've finally found the solution here : Radio button labels

Re: getInfrastructure() is null

2007-07-02 Thread munich
Yes. BaseEngine is extended and the methods are overwritten. en.domain.com should be English and fr.domain.com should be French for example. However, as getInfrastructur() sometimes returns null, this is not working that way. Original-Nachricht Datum: Mon, 2 Jul 2007

RE: T5 Decoupling a Template From its Component Class

2007-07-02 Thread Martin Grotzke
Digging through the code I notice there is a PageTemplateLocator interface which seems like the appropriate service to override. What I have tried is to add the following method to my AppModule class public static void bind(ServiceBinder binder) { ServiceBindingOptions options =

RE: T5 Decoupling a Template From its Component Class

2007-07-02 Thread Kristian Marinkovic
hi martin, if you use the ServiceBinder to contribute a class that implements an already contributed interface you have to assign an id for your class by invoking withId, because the Interface is no longer sufficient to identifiy the service binder.bind(PageTemplateLocator.class,

Re: Why suddenly all my pages in Tapestry seems to be missing?

2007-07-02 Thread Eko S.W.
Yes!!! That was true. I have relocated all my HTML pages in src/main/webapp/WEB-INF, but not in main/resources (somehow there are still weird behaviour if put them here) And all *.html were saved... I use local SVN server :p Thanks for your reply, Love u very much, Eko SW

T5 optional css for component

2007-07-02 Thread Janko Muzykant
hi all, i would like to have an optional css for each of my components. optional, because depending on component's parameter i would like/wouldn't like to include its css link. Lets imagine edit box with calendar for example - depending on parameter provided in template file, calendar's css file

Re: T5 XHTML compliant markup

2007-07-02 Thread Martin Grotzke
On Fri, 2007-06-29 at 11:57 -0700, Howard Lewis Ship wrote: This is an unimplemented feature; currently Tapestry isn't smart enough to output well-formed markup just because the template specified an XML doctype. Please check JIRA and add an issue if not present. I couldn't find an appropriate

Need Quick Help on t:if else statement

2007-07-02 Thread Eko S.W.
Dear community, Is there else clause in t:if construct ??? I've try (but maybe not hard), but can not find it. That is, is there an else if you use t:if ??? * I imagine it to be like this : t:if test=ifSummaryActive t:if else /t:if Currently, to give the same behaviour I create a

Set component parameters from page class

2007-07-02 Thread Martin Dietze
Hi, I'd like to set some component paramameters (disabled for inputs) from within my page classes. As far as I've seen so far the usual way to do this would be to put a name=${prop:value} attribute into my template. Can this also be done by using a simple setter in my Java code? This would

Re: Need Quick Help on t:if else statement

2007-07-02 Thread Erik Vullings
Hi Eko, t:if test=myObjectExists Whatever t:parameter name=elsePlease select an object first!/t:parameter /t:if Cheers Erik On 7/2/07, Eko S.W. [EMAIL PROTECTED] wrote: Dear community, Is there else clause in t:if construct ??? I've try (but maybe not hard), but can not find

Re: T5 optional css for component

2007-07-02 Thread Erik Vullings
Hi Janko, In your html template, you could use: t:if test=includeCalendar Include css file t:parameter name=else do something else /t:parameter /t:if Cheers Erik On 7/2/07, Janko Muzykant [EMAIL PROTECTED] wrote: hi all, i would like to have an optional css for each

tapestry.InfrastructureOverrides example?

2007-07-02 Thread munich
Has anyone got an example of how to use the tapestry.InfrastructureOverrides hook? I would like to overwrite the Locale and in order to do so also inject the tapestry.globals.WebContext to such a service (and then overwrite the Locale depending on the WebContext). Thanks!

Re: T5 optional css for component

2007-07-02 Thread Janko Muzykant
hi Erik, thank you for your answer, but it seems not to be so easy. all style links should be placed in the head section and if i try to use following: t:if test=includeCalendar *link* rel=stylesheet href=arkusz.*css* type=text/*css* / /t:if css link will be printed out exactly in place where

how to overwrite the Locale in BaseEngine

2007-07-02 Thread munich
What would be the most reliable way to overwrite the Locale for the Component and Page messages inside an extended BaseEngine? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: how to overwrite the Locale in BaseEngine

2007-07-02 Thread Hans Drexler
On Mon, 02 Jul 2007 13:05:39 +0200, munich wrote What would be the most reliable way to overwrite the Locale for the Component and Page messages inside an extended BaseEngine? - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: T5 optional css for component

2007-07-02 Thread Marcus
Hi Janko, You could try: @Inject @Path(context:assets/css/layout.css) private Asset _layoutCss; public Asset getLayoutCss() { if (yourCondition) return _layoutCss; else return ; } head link href=${layoutCss} rel=stylesheet type=text/css/ /head Marcus

RE: T5 Decoupling a Template From its Component Class

2007-07-02 Thread Martin Grotzke
On Mon, 2007-07-02 at 11:03 +0200, Kristian Marinkovic wrote: hi martin, if you use the ServiceBinder to contribute a class that implements an already contributed interface you have to assign an id for your class by invoking withId, because the Interface is no longer sufficient to

T5 How to Override the default banner message (Errors component)

2007-07-02 Thread Marcus
Hi, Is there any way to override the banner message displayed above the errors? (t:errors/ component) The default value is You must correct the following errors before you may continue.. I have tried in Application Message Catalog (WEB-INF/app.properties), but :-( default-banner=Other Message

Re: T5 optional css for component

2007-07-02 Thread Janko Muzykant
hi Marcus, this solution is perfect provided i have a htmlhead/head/html template defined separately for each page. but usually this is written once in some Border or Layout component's template. In such a case I cannot predict how many css links will be placed inside head section because

Re: T5 How to Override the default banner message (Errors component)

2007-07-02 Thread Ulrich Stärk
Create a directory org/apache/tapestry/corelib/components/ in your source directory and place an Errors.properties file there. If you also want to override the default validation messages place a ValidationMessages.properties file in org/apache/tapestry/corelib/internal/. Uli Marcus schrieb:

Re: T5 optional css for component

2007-07-02 Thread Kristian Marinkovic
you can add additional HTML nodes to your document whenever you want. all you need is the MarkupWriter: Element e = writer.getDocument().getRootElement().find(head); e.element(link,) // adds new element you could also contribute a css helper class that implements PageRenderCommand to the

Re: Set component parameters from page class

2007-07-02 Thread Massimo Lusetti
On 7/2/07, Martin Dietze [EMAIL PROTECTED] wrote: Hi, I'd like to set some component paramameters (disabled for inputs) from within my page classes. As far as I've seen so far the usual way to do this would be to put a name=${prop:value} attribute into my template. Can this also be done by

Re: Set component parameters from page class

2007-07-02 Thread Francois Armand
Martin Dietze wrote: Hi, I'd like to set some component paramameters (disabled for inputs) from within my page classes. As far as I've seen so far the usual way to do this would be to put a name=${prop:value} attribute into my template. Can this also be done by using a simple setter in my Java

Re: Set component parameters from page class

2007-07-02 Thread Martin Dietze
On Mon, July 02, 2007, Massimo Lusetti wrote: I'd like to set some component paramameters (disabled for inputs) from within my page classes. As far as I've seen so far the usual way to do this would be to put a name=${prop:value} attribute into my template. Can this also be done by using a

Selenium problem with T4.1.2

2007-07-02 Thread Geoff Callender
Hi, My Selenium tests that worked with T4.1.1 now fail with T4.1.2. They still work just fine with Selenium IDE but not in Selenium TestRunner which runs the whole suite in an IFRAME. It looks like client-side validation, which used to work, is now dead in TestRunner. Could this be the

T4.1.2 Question - libs that changed

2007-07-02 Thread Jan Vissers
Hi, In order for T4.1.1 to operate properly on OC4J, I had to 'tweak' some hivemind stuff in 1.1.1 That's the reason why I am now asking which T4.1.2 libraries in the distribution have actually been changed. Only the tapestry-[]-4.1.2.jar and ognl-2.7.jar ones? Thanks, -J.

Accessing ThreadLocale in BaseEngine

2007-07-02 Thread munich
Does anyone know how to access ThreadLocale (in order to change it) inside a BaseEngine class (a class extending BaseEngine) ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Set component parameters from page class

2007-07-02 Thread Martin Dietze
On Mon, July 02, 2007, Francois Armand wrote: I'm not sure I have correctly understood your concern, so excuse me if I answer to something else ;) When you have a component with parameter, you have two way to specify it the actual parameter value : - in the template, with

Re: [t5] no support for block parameters?

2007-07-02 Thread Dan Adams
hmm. This seems like a very clean way of doing it for more well-defined instances but I think it might be a little too much overhead other situations. For instance, I'll often want to define a block within a template and then just get the values from within the block but having to define an

Antwort: RE: T5 Decoupling a Template From its Component Class

2007-07-02 Thread Kristian Marinkovic
service implementations contributed to the alias service will override the other service implementations. this is also true for implementations originally provided by tapestry the additional id is to distinguish multiple implementations of the same interface. in your case you should only need it

Re: Set component parameters from page class

2007-07-02 Thread Francois Armand
Martin Dietze wrote: Yes, this is how I found it in the documentation. However I'd like to be able to do something like: | @Component(id=myInput) | private TextField _myInput; [...] | _myInput.setDisabled(true); You can use parameter expansion in Java code : 8---

Re: Antwort: RE: T5 Decoupling a Template From its Component Class

2007-07-02 Thread Martin Grotzke
On Mon, 2007-07-02 at 16:06 +0200, Kristian Marinkovic wrote: service implementations contributed to the alias service will override the other service implementations. this is also true for implementations originally provided by tapestry the additional id is to distinguish multiple

T4.1.2 - css background images not working - bug?

2007-07-02 Thread Jan Vissers
Hi, Moving from 4.1.1 to 4.1.2 I noticed that css background images are broken. For example: #logo { float: left; padding-top: 15px; padding-left: 200px; padding-bottom: 40px; background: url(../images/logo.gif) no-repeat; background-position: 5% 50% } background:url Worked

Re: Set component parameters from page class

2007-07-02 Thread Martin Dietze
On Mon, July 02, 2007, Francois Armand wrote: @Component(parameters=disabled=prop:isdisabled) private TextField textField; public boolean getIsdisabled() { return disabled; } @SetupRender void setup() { if(should de disabled) { disabled = true;

Re: T5.0.5: How to display rows conditionally in the Grid component?

2007-07-02 Thread Daniel Jue
Is the Grid component really an appropriate choice for this? I imagine you want the questions going one per row, with an answer column. When a condition is met so that a new question should be shown, your page could rebuild the list of questions (append new question to the end) . The

T5 XHTML strict conformance

2007-07-02 Thread Michael Gottschalk
Hi, I have some questions in addition to the issue with non-well-formed XML generation. In order to be XHTML strict compliant, some standard components also need to be changed in tapestry 5, I think. Should I open bug reports for all problems I find? Or is XHTML strict conformance not

[T5] Is there a working Acegi example available?

2007-07-02 Thread Daniel Jue
I am beating my head against a brick wall. I am trying to get Acegi working (using Spring to configure it). I have it working to the point where a secured page (secured in the xml files, not using any annotations for securing classes) redirects me to a login page. If I type in a login/password

[T4.1.2] Honeycomb or Tapernate ?

2007-07-02 Thread #Cyrille37#
Hi, After hard work and neuronal sport, I come to the moment where I to implement a real database access and replace my fake data objects. So I can see there is 2 Hibernate/Tapestry4 integration project. Have you got some comments to help me make the choice ? Thanks Cyrille.

Re: [T5] Is there a working Acegi example available?

2007-07-02 Thread Daniel Jue
Dear List, I'm sorry, I think I found my problem, and it was a stupid one. It took a 3rd cup of coffee to make it appear. I wasn't prefixing my Authority strings with ROLE_ i.e. my DB had ADMIN stored in a field instead of ROLE_ADMIN This still doesn't explain why I wasn't redirected

Re: OGNL 2.7 Must use #this

2007-07-02 Thread Kalle Korhonen
Hey Jesse - saw you had marked http://jira.opensymphony.com/browse/OGNL-97as resolved so I assumed the fix might be in the latest snapshot ognl-2.7.1-20070630.205921-4 posted later but there were no changes as far as I could notice. Certainly don't want to sound impatient as you are doing superb

Re: Hackish(?) Workaround for Entities In Templates

2007-07-02 Thread Steven Coco
Hi. This thread is bit old, but I've just gotten back on to this. I implemented the mapping you showed here, and it works enough to allow Tap to serve the doctype to the user, and not raise any exceptions. But the entities still don't work. In fact, character references don't work either:

Re: Need Quick Help on t:if else statement

2007-07-02 Thread Nick Westgate
Another option is to use the negate parameter. Then you only need the one logic method, and you can have the if's wherever you want: t:if test=ifSummaryActive ... /t:if ... t:if test=ifSummaryActive negate=true ... /t:if Cheers, Nick. Erik Vullings wrote: Hi Eko, t:if

Re: Selenium problem with T4.1.2

2007-07-02 Thread Jesse Kuhnert
That's an internal error thrown by the mozilla dom implementation. nsiDOMEventListener is the class and handleEvent is the method NS_ERROR_XPC.blahblah is just some constant and the hex-y looking string is probably the current op code in the current pseudo js vm context...(i think?) Other

Re: T4.1.2 Question - libs that changed

2007-07-02 Thread Jesse Kuhnert
http://tapestry.apache.org/tapestry4.1/tapestry-framework/dependencies.html On 7/2/07, Jan Vissers [EMAIL PROTECTED] wrote: Hi, In order for T4.1.1 to operate properly on OC4J, I had to 'tweak' some hivemind stuff in 1.1.1 That's the reason why I am now asking which T4.1.2 libraries in the

Re: T4.1.2 - css background images not working - bug?

2007-07-02 Thread Jesse Kuhnert
Tapestry doesn't process your css files or the images it referencesunless for some reason your relative context image path is somehow setup to match an asset Tapestry is managing it should be handled by your servlet container. Is that not the case here? On 7/2/07, Jan Vissers [EMAIL

Re: OGNL 2.7 Must use #this

2007-07-02 Thread Jesse Kuhnert
That looks like the right one to me. The code you provided in the test case was re-produced / fixed. You did mention something about object[linkProperty] not working before you provided a code example but I'm assuming the code example was what was intended to be fixed Does the same test

Re: OGNL 2.7 Must use #this

2007-07-02 Thread Kalle Korhonen
The unit test doesn't succeed for me (and neither does the real world example, which is slightly different, but I assume the unit test would cover for it). Well, if you say the unit test should pass now, I'll double-check I have the right version and get back to you. Kalle On 7/2/07, Jesse

4.1.1 upgrade to 4.1.2 async listener no longer works

2007-07-02 Thread Paul Stanton
Hi, I've upgraded to 4.1.2 from 4.1.1 and am getting the following when I try to load one of my Dojo Dialogs (async). It seems tapestry is trying to call getPage with a null page name, but I'm not sure why formSubmit is being called at all (unless it's part of a rewind?) The trigger is

Re: 4.1.1 upgrade to 4.1.2 async listener no longer works

2007-07-02 Thread Jesse Kuhnert
Components implementing IFormComponent that are targeted with an @EventListener do now have their surrounding forms submitted automatically as part of the async request. If there is something in your logic that doesn't need/want this to happen you can set the autoSubmit = false parameter in the