Re: page activation + components

2008-04-29 Thread János Jarecsni
Hi, thx for the info! Another idea... is there a HttpRequest like object available to components and pages? If it were, then setting a request attribute would be ok for me. Anyway the per-request service is similar to this, so it will be ok for me. thx again janos 2008/4/29 Andy Huhn <[EMAIL PRO

T-4.1.6 - Ognl Bug or Tapestry Bug ?

2008-04-29 Thread Ken in nashua
I am operating 2 propertyselect components on a page and a collection. But those facts may be regardless of this arisen condition. All I know is my OGNL is failing when previously everythign was well. Stack trace below. I attribute the condition to OGNL unable to parse or articulate the follo

RE: T-4.1.6 bug updateComponent

2008-04-29 Thread Ken in nashua
I apologize... please discard that last stack trace... that was for the subsequent corruption issue. I hope to provide a use case for that. _ In a rush? Get real-time answers with Windows Live Messenger. http://www.windowslive.co

RE: T-4.1.6 bug updateComponent

2008-04-29 Thread Ken in nashua
Stack trace is below... any suggestions for workaround are greatly appreciated. Best regards Ken in nashua Hibernate: select roles0_.user_ID as user2_1_, roles0_.role_ID as role1_1_, role1_.id as id1_0_, role1_.description as descript2_1_0_, role1_.name as name1_0_, role1_.version as version1

T-4.1.6 bug updateComponent

2008-04-29 Thread Ken in nashua
Ok, my app runs nice and for my widget too. Handlers clicks, etc... Below...The update logic refuses to update, specifically updateComponent. Any ideas? T-4.1.6 warning: Scary thing about my logic for this is that outside of this issue... if I continue to operate DirectLink listeners off of th

Re: Tapestry 5 NetBeans 6 plugin - is it worth?

2008-04-29 Thread Lindsay Steele
Personally I think T5 support in Netbeans would be nice. I am leaning towards Netbeans as a development environment a lot more these days. 2008/4/30 Tomasz Dziurko <[EMAIL PROTECTED]>: > Recently I am looking in "Rich Client Programming - Plugging into the > NetBeans Platform" book just to ga

Re: T5Components help - RatingField exception

2008-04-29 Thread Josh Canfield
Tapestry is trying to assign null to your value (when you don't select a radiogroup nothing is returned). An int can't be null so you can change your property type to Integer, then it will be null when you choose nothing. If you want null to represent 0 then write your setRatingValue method to do t

T5Components help - RatingField exception

2008-04-29 Thread algirdas
If no star is selected and form is submitted, I get an exception org.apache.tapestry.runtime.ComponentEventException Failure writing parameter 'value' of component Index:ratingfield1.radiogroup: Failure writing parameter 'value' of component Index:ratingfield1: org.apache.tapestry.ioc.internal.u

Re: Autocomplete mixin + select event

2008-04-29 Thread Leon Derks
Thanks for the tips! Leon Steven Woolley wrote: I've got it working by overriding the Autocomplete mixin and putting the following in the AfterRender (instead of using a json object). String configS = "{indicator:'" + loaderId + "',frequency:.5,minChars:" + minChars

Tapestry 5 NetBeans 6 plugin - is it worth?

2008-04-29 Thread Tomasz Dziurko
Recently I am looking in "Rich Client Programming - Plugging into the NetBeans Platform" book just to gain some knowledge about what can and what can't be done under NB. As an exercise I started developing simple Tapestry 5 plugin for NB. Actually it lets user to choose T5 as a framework and create

Re: Autocomplete mixin + select event

2008-04-29 Thread Steven Woolley
I've got it working by overriding the Autocomplete mixin and putting the following in the AfterRender (instead of using a json object). String configS = "{indicator:'" + loaderId + "',frequency:.5,minChars:" + minChars + ",paramNa

Re: Autocomplete providecompletions + extra parameter

2008-04-29 Thread Josh Canfield
> Is it possible to add an extra context parameter to the providecompletions > method? You can change the content that is sent for the list by extending the Autocomplete mixin and override the generateResponseMarkup method. http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry/corelib/

Re: Autocomplete mixin + select event

2008-04-29 Thread Josh Canfield
In 5.0.11 I was unable to find a good extension point for the autocomplete mixin. The scriptaculous Ajax.Autocompleter does support updateElement and afterUpdateElement methods, but as far as I can tell you can't get them into the configuration because the JSONObject quotes its attributes (making t

Re: T5 actionlink, ajax zone and user onclick handler

2008-04-29 Thread Chris Lewis
Hi Tobias, Unfortunately I can't think of a clean workaround for that. The issues are all in the javascript and how events are dispatched and handled. Basically it comes down to 2 problems: 1) The W3C does not mandate even handler ordering, so if you register a handler before another there is no

T5: Recording custom validation errors onEvent(blur) on a form field

2008-04-29 Thread lebenski
Hi everyone, Ok this is what i'm looking for: A user types in their desired username, when the onBlur event happens on that input field (i.e. focus switches to the next field), IF the name is taken i'd like to utilise the standard tapestry validation error bubble, and display a message "User Nam

Re: T5 image submit

2008-04-29 Thread Daniel Leffel
Just look at the source for the regular submit and simply change the template to be type=image. I also added a parameter to the component so I could pass it the image to use. Email me offline if you're still having problems and I'll send you my code. On Tue, Apr 29, 2008 at 8:32 AM, Jack Nuzbit

Re: page activation + components

2008-04-29 Thread Andy Huhn
Hello, You can define the scope of each service...you can set that particular service to be tied to only one session. See http://tapestry.apache.org/tapestry5/tapestry-ioc/service.html, and search for "perthread". Thanks, Andy On Tue, 29 Apr 2008 18:02:52 +0200, "János Jarecsni" <[EMAIL PROTEC

Re: page activation + components

2008-04-29 Thread János Jarecsni
Hi there, the service approach (as I expected) is session-agnostic (and is page-independent so concurrent users would interfere badly), therefore is not ok. I will now try the Environment approach... if that is session-aware :) thx again janos 2008/4/29 János Jarecsni <[EMAIL PROTECTED]>: > Hi

T5: Page + render parts based on previous action

2008-04-29 Thread Leon Derks
Hello I want to render different parts in my page, based on an action in my previous page. For example I have an "edit" section and an "add" section. Based on the button I clicked in the previous page (edit or add button) I want to render the page with the corresponding section. What is th

T5 image submit

2008-04-29 Thread Jack Nuzbit
Hi All, Can anybody point me in the right direction for creating an image submit in tapestry 5. I've scoured the docs but i can't find anything. Many thanks, Jack

Re: page activation + components

2008-04-29 Thread János Jarecsni
Hi Chris, even so you could help :) I want this kind of generic way of passing around information (component to component communication :)) so I'll look for the solutions Kristian and you outlined. thanks! cheers, janos 2008/4/29 Chris Lewis <[EMAIL PROTECTED]>: > Janos, > > Without code or a d

Re: T5 actionlink, ajax zone and user onclick handler

2008-04-29 Thread Tobias Wehrum
Hi Chris, first let me please thank you for the example you've written. It's quite informative. I've discovered a problem with updating a zone - I think it's no problem of your mixin, but you may have an idea how to fix it. The problem is: When I use have an actionlink with the confirm mixi

PropertySelect help... thanks

2008-04-29 Thread Ken in nashua
Folks, I have rigged up a handler for my property select user interface @EventListener(events = { "onchange" }, targets = { "itemsPerPageSelect" }, submitForm = "galleryForm", async = true) public void itemsPerPageChangeListener(IRequest

Re: multiple context values

2008-04-29 Thread Geoff Callender
You need the "list" binding prefix so you can do this: t:context="list:p.productId, p.categoryId". It's available 2 ways that I know of: 1. You can add it to your project by hand from http://wiki.apache.org/tapestry/Tapestry5HowToAddBindingPrefix 2. You can get it for free by including the

#this variable

2008-04-29 Thread rohan.kalyan
Hi all, we are using ognl-2.7.3-20080211.212409-1.jar in our application and we recently shifted from tapestry 4.0.2 to 4.1.5. we were facing a problem while using ognl for complex expression. (Unable to parse OGNL expression) Exception was occuring and in some forums we came to know about the use

Re: Localization of default messages

2008-04-29 Thread Manuel Corrales
Thank you very much! On Tue, Apr 29, 2008 at 9:11 AM, Michael Gerzabek <[EMAIL PROTECTED]> wrote: > Manuel, > > you simply put > org.apache.tapestry.corelib.components.Errors_es.properties (I suppose) in > your resources. If you use the maven archetype this should be > PROJECT_HOME/src/main/resou

Re: Localization of default messages

2008-04-29 Thread Michael Gerzabek
Manuel, you simply put org.apache.tapestry.corelib.components.Errors_es.properties (I suppose) in your resources. If you use the maven archetype this should be PROJECT_HOME/src/main/resources Manuel Corrales schrieb: Hi, i was checking the documentation but was not able to find how can i do

Autocomplete providecompletions + extra parameter

2008-04-29 Thread Leon Derks
Hello Is it possible to add an extra context parameter to the providecompletions method? For example like this: List onProvideCompletionsFromAccountName(Long categoryId, String partial) { List matches = productDAO.findByPartialNameInCategory(partial, categoryId); ... } How

Localization of default messages

2008-04-29 Thread Manuel Corrales
Hi, i was checking the documentation but was not able to find how can i do to change the default messages. For instance, when you use a beanform or a t:errors, you get a default heading text saying something like: "You should fix the next errors" :P or when you insert a non parseable date on a Date

Autocomplete mixin + select event

2008-04-29 Thread Leon Derks
Does the autocomplete mixin fire some kind of event, after I have selected an item from the autocomplete-menu? Because I want to update other fields, based on the value that I selected. How can I do this? - To unsubscribe, e-

Re: CSS styles override

2008-04-29 Thread Manuel Corrales
Thanks! On Tue, Apr 29, 2008 at 5:52 AM, Christian Köberl < [EMAIL PROTECTED]> wrote: > > > Manuel Corrales-2 wrote: > > > > I wonder if there is any way of skip the default style or if there is > > a reset style, because i am finding not to easy to override the default > > style, so i think it w

Re: page activation + components

2008-04-29 Thread Chris Lewis
Janos, Without code or a description of your actual goal, I'm finding your situation too hypothetical to really digest. The one thing I can point out is what you said about wanting a component to set a property in the page. If you want to do that, then you have to know the class of the page and so

Re: T5: How send "/" as symbol in t:ac parameter?

2008-04-29 Thread Szemere Szemere
Not sure about this specific case, but if you upgrade your Tapestry version then even this might break. You are generally better off coding as (YMMV): t:ac="prop:specificContext()" Object[] specificContext() { Object[] context = Object[2]; context[0] = "catalog"; context[1] = "somefil

Re: page activation + components

2008-04-29 Thread János Jarecsni
Hi Chris, I thought of pages as "contexts" for the components embedded within them. So, in one event handler of a component I would like to set some property or another (in the page object), and the other components in the page, which are also able to access this property may change their appearan

Grid - sort link context parameters

2008-04-29 Thread Szemere Szemere
I have a page that needs parameters to work e.g. http://localhost/tapestryapp/pagename/3/4 which includes a grid component with sortable columns. Even though I have an onPassivate method, when I click on the sort column link, the context (3/4) is not included. Q1. Should this work as described an

T5: Obtain custom annotation from page class

2008-04-29 Thread Adam Zimowski
I'm annotating page classes with my own annotations, but when I retrieve page from the cache the page does not carry my annotation. This is understandable because T5 creates them on its own (javassist magic, etc) but if I need Annotation instance, not the String value from ComponentModel.getMeta()

Re: page activation + components

2008-04-29 Thread Chris Lewis
Janos, I'm having a hard time understanding a case that a component should know in which page it is embedded, so my suggestion probably wasn't a good one. Activation contexts aren't meant for components but for pages - you should be using component parameters to configure them, and if it's a more

Re: page activation + components

2008-04-29 Thread Michael Gerzabek
@Retain private String param; Salue János Jarecsni schrieb: and how a component can get to know the page in which it is included? I mean, I can't @InjectPage, as the component will be included in many kinds of pages. @Kristian: thx for the many ways :) I'll try these, hope that the @Environmen

Re: page activation + components

2008-04-29 Thread János Jarecsni
and how a component can get to know the page in which it is included? I mean, I can't @InjectPage, as the component will be included in many kinds of pages. @Kristian: thx for the many ways :) I'll try these, hope that the @Environmental stuff is scalable (I'm trying to bypass session creation as

Problem in tapestry form submition with ajax

2008-04-29 Thread Parakrama Ranasinghe
I have a html page which has two ' ' tags. First div tag consist with static content. My second div tag contains a form. When I submit that form my tapestry page will validate that form and if there are errors they will display inside the form.

Question about ApplicationInitializerFilter

2008-04-29 Thread Michael Gerzabek
Hi, I've a Service that extends ApplicationInitializerFilter: public interface DatabaseUpdateManager extends ApplicationInitializerFilter { public void update() throws SQLException; } I made it a service because I thought then it would be easy to collect contributions from other modules.

Re: CSS styles override

2008-04-29 Thread Christian Köberl
Manuel Corrales-2 wrote: > > I wonder if there is any way of skip the default style or if there is > a reset style, because i am finding not to easy to override the default > style, so i think it would be great to have some way of disable it or at > least provide some reset css style. > See con

Re: page activation + components

2008-04-29 Thread Michael Gerzabek
6) @Retain could do the job. Your String will be available until the end of the request. János Jarecsni schrieb: Hi there, I have an activatable page, in its onActivate(String param) method I save the param to a normal instance variable of the page class (no persistence!). How can any compone

Re: page activation + components

2008-04-29 Thread Chris Lewis
5) @InjectPage the page and call the getter Kristian Marinkovic wrote: > hi janos, > > there are several possibilities: > > 1) declare a component parameter and pass in the variable > > 2) put it in a ASO and inject the ASO in all your components (using > @ApplicationState) > the drawback is that

Re: page activation + components

2008-04-29 Thread Kristian Marinkovic
hi janos, there are several possibilities: 1) declare a component parameter and pass in the variable 2) put it in a ASO and inject the ASO in all your components (using @ApplicationState) the drawback is that any other page or component will be able to access the ASO 3) put it into the Enviro

Re: T5: Getting Request Info

2008-04-29 Thread Kristian Marinkovic
yes you can... i have a Dispatcher that invalidates the httpsession if a user specific ASO returns true on isLogout(). g, kris Marcus <[EMAIL PROTECTED]> 28.04.2008 21:59 Bitte antworten an "Tapestry users" An "Tapestry users" Kopie Thema Re: T5: Getting Request Info Hi, Can I inv