Re: Best practise to extend tapestry 5 so http sessions are stored in db

2010-06-26 Thread Britske
Great all I needed to know, thanks! Thiago H. de Paula Figueiredo wrote: > > Hi! > > On Sat, 26 Jun 2010 11:38:46 -0300, Britske wrote: > >> I'm assuming here that when swithing the storage for >> ApplicationStateManagerall things that once went to the sess

Best practise to extend tapestry 5 so http sessions are stored in db

2010-06-26 Thread Britske
I'm currently looking into scaling-out our frontend without using sticky-sessions (.i.e: redirecting the user based on session-id to the same server as he/she visited previously) Instead, I want to store the sessions in a memcached cluster which we have in use already. I looked into javadocs f

T5: native component needs asset: effects.js but I want to combine/minify js-files

2010-03-18 Thread britske
I've decorated ClientInfrastructure to supply my own set of required js-files. this is only 1 file containing complete prototype and a modified version of scriptaculous (stripped what I dont need, and some overridden controls) This all works well, but there is still a native component that injec

T5: logging statements logged twice using Log4j

2010-02-19 Thread britske
Hi, I'm having the problem (always had as far as I remember, but it starts to bug me now) that when using Log4j with Tapestry every log-statement is logged twice to the console. For example, the last few lines before the tapestry is initialized look like this: INFO - ApplicationContext.log(646

Re: T5: some automagical way to export versioned assets to CDN?

2010-01-22 Thread britske
49...@n2.nabble.com > > You can override AssetPathConverter service. > > example: > > http://code.google.com/p/corner/source/browse/corner3/trunk/src/main/java/corner/asset/services/impl/CDNAssetPathConverterImpl.java > > > > 2010/1/22 britske <[hidden > email]&

T5: some automagical way to export versioned assets to CDN?

2010-01-21 Thread britske
Versioning in Tapestry is really easy. Just increment the version-nr in appModule and you're set. However, I'd like my assets to live on a CDN. (Amazon S3 + cloudfront) . For this to work (along with versioning) I would have to do 2 conceptual things: 1. export assets to a specific s3 bucket l

Re: T5: how to eval 'canned' expansions (stored in db)?

2010-01-21 Thread britske
I'd rather have an all- tapestry solution. Neverthless i'll have a look thanks. 2010/1/21 Thiago H. de Paula Figueiredo [via Tapestry Users] < ml-node+4433143-269793...@n2.nabble.com > > On Thu, 21 Jan 2010 09:12:02 -0200, britske <[hidden > email]<http://n2.nabble

Re: T5: how to eval 'canned' expansions (stored in db)?

2010-01-21 Thread britske
rty expressions (as used by parameter bindings). > > The PCS caches the result, so it's reasonable to pass an a class and > an expression, get back a PC, and discard it. > > On Thu, Jan 21, 2010 at 3:12 AM, britske <[hidden > email]<http://n2.nabble.com/user/SendEm

T5: how to eval 'canned' expansions (stored in db)?

2010-01-21 Thread britske
I have a page showing different blocks (ala myYahoo , netvibes, etc) . Each block is a different component. One of these components gets it's content from a database and writes it in the BeginRender() - phase. The content to store in the database is some html possibly with tapestry expansions.

t5: when updating zone, non persistent fields outside of zone are null, is this expected?

2009-10-14 Thread Britske
Perhaps a pretty ignorant question, but: I have a searchresults-page with a zone-component which is updated through an ajax call. Another component lives within the zone-component and it's setuprender-method is called. In this method I need to access the 'searchresults-object' which is stored

Re: t5: autocomplete mixin gets autofocus on field. I don't want that.

2009-09-03 Thread Britske
Yeah thanks! totally missed that. Joachim Van der Auwera (PROGS bvba) wrote: > > You can disable the autofocus handling in the form component. > > Joachim > > Britske wrote: >> I have a textfield enriched with the autocomplete mixin. >> >&

t5: autocomplete mixin gets autofocus on field. I don't want that.

2009-09-02 Thread Britske
I have a textfield enriched with the autocomplete mixin. This field always gets the focus even though it isn't the first field of the form. Is there a way to disable this? I tried to circumvent this by having a javascript set the focus on another field, but without success: the autcomplete f

Re: T5: HibernateEntityValueEncoder nullpointerException after Tapestry update

2009-08-19 Thread Britske
> > Uli > > On 19.08.2009 12:39 schrieb Britske: >> I'm in the process of updating from 5.0.17 to 5.1.0.5 and breaking my >> head on >> this one: >> >> Getting a NullPointerException in HibernateEntityValueEncoder when trying >> to >> loo

T5: HibernateEntityValueEncoder nullpointerException after Tapestry update

2009-08-19 Thread Britske
I'm in the process of updating from 5.0.17 to 5.1.0.5 and breaking my head on this one: Getting a NullPointerException in HibernateEntityValueEncoder when trying to loop a hibernate Entity where the entity has a multi-column id. I actually have this with every entity with a multi-column id so

Re: T5: service contribution conflict after updating from 5.0.17 to 5.1.0.5

2009-08-18 Thread Britske
Yeah that was it. I had t5c-commons still hanging around. Thanks. Carl Crowder wrote: > > Could it be that you have the older version of Tapestry still on the > classpath? Or some other Tapestry module that automatically adds itself? > > Britske wrote: >> Also: I s

Re: T5: service contribution conflict after updating from 5.0.17 to 5.1.0.5

2009-08-18 Thread Britske
Also: I should have added that I'm not contributing anything remotely related to AppModule.java Britske wrote: > > Hi all, > > I'm in the process of updating from 5.0.17 to the latest stable release: > 5.1.0.5 > Most of the process is pretty smooth except the follo

T5: service contribution conflict after updating from 5.0.17 to 5.1.0.5

2009-08-18 Thread Britske
Hi all, I'm in the process of updating from 5.0.17 to the latest stable release: 5.1.0.5 Most of the process is pretty smooth except the following: on page X I have an actionlink defined which updates a zone. (see snippets below) . The problem is thaty I'm getting a 'conflicting contribution

Re: t5: strategy for caching html output of component

2009-05-06 Thread Britske
as cookies disabled (and thus > url-rewriting > takes place)... > > in that case, the cache would be filled in with urls > containing his specific JSESSIONID, e.t.c. > > On Wed, May 6, 2009 at 2:16 AM, Britske wrote: >> >> ok solved (don't know why I didn'

Re: t5: strategy for caching html output of component

2009-05-05 Thread Britske
ok solved (don't know why I didn't see this earlier ;-) simply tested in template if cached html existed. if false --> render component if true --> use OutputRaw to output cached html of component. cheers, Britske Britske wrote: > > currently I'm working on a pa

Re: t5: strategy for caching html output of component

2009-05-05 Thread Britske
is some metnion in earlier posts of using a page's onActivate to return a TextStreamResponse but I don't see how this could help me... any help is highly appreciated. Britske Britske wrote: > > currently I'm working on a page with a lot of components. > > part of the

t5: strategy for caching html output of component

2009-05-05 Thread Britske
it in memcached using the pagename+ context as key. Thanks for you help, Britske -- View this message in context: http://www.nabble.com/t5%3A-strategy-for-caching-html-output-of-component-tp23394162p23394162.html Sent from the Tapestry - User mailing l

T5: how to add tuckey url rewrite filter to Tapestry Context

2009-03-10 Thread Britske
of this tapestry app is ROOT (which maps to the default in Tomcat) Anyone? Thanks, Britske -- View this message in context: http://www.nabble.com/T5%3A-how-to-add-tuckey-url-rewrite-filter-to-Tapestry-Context-tp22443644p22443644.html Sent from the Tapestry - User mailing list archive at N

Re: T5: getting to the url anchor-tag server side

2009-03-05 Thread Britske
Hmm, it seems a non -tapestry issue. Browsers don't send anchor-tags to the server... Britske wrote: > > Is there a way to get to the anchor of an url in tapestry? > > I tried getting it through getRequestGlobals().getHTTPServletRequest(), > but the anchor seems to be s

T5: getting to the url anchor-tag server side

2009-03-05 Thread Britske
Is there a way to get to the anchor of an url in tapestry? I tried getting it through getRequestGlobals().getHTTPServletRequest(), but the anchor seems to be stripped from the url that HTTPServletRequest gives me. Anyone? Thanks, Britske -- View this message in context: http

Re: T5: possible to combine prototype and scriptaculous js-files?

2009-02-27 Thread Britske
art-2/ Anyway, thanks for the great framework, Britske Howard Lewis Ship wrote: > > I have plans to automatically combine and minimize JavaScript, but I > don't know if it will make it into 5.1. > > On the other hand, the use of far-future expires header (and a version > n

T5: possible to combine prototype and scriptaculous js-files?

2009-02-26 Thread Britske
is there a way to configure tapestry to use a custom js-file including all the prototype and scriptaculous files I need? Currently my setup uses 7 js-files, 6 of which are added by tapestry. From a performance standpoint this can be improved. Thanks, Britske -- View this message in context

T5: accessing assets/files using apache httpd instead of tomcat

2009-02-26 Thread Britske
ny other reasons why I should forget this setup as soon as possible? Thanks, Britske -- View this message in context: http://www.nabble.com/T5%3A-accessing-assets-files-using-apache-httpd-instead-of-tomcat-tp9014p9014.html Sent from the Tapestry - User mailing list a

Re: T5: how to update zone on dom load

2008-11-27 Thread britske
s rendered) For instance, in both cases abstractTab.setupRender() is called, etc. public AbstractTab onActionFromRefreshZone() { nrOfReqs ++; if (!request.isXHR()) { return null; } return curTab; } Anyone have any clue why this might be happening? britske wrote: > &g

T5: how to update zone on dom load

2008-11-27 Thread britske
Hi, I've created a zone which get's a couple of updates from various external websites. The zone initally (on page load) contains some local info, but needs to be dynamically extends with the sources extracted from these websites. I want to call a server-side method (onActionFromRefreshZone) whi

T5: actionlink calls onActivate twice: detecting first time

2008-09-30 Thread Britske
run in the render-action only? And how would I make sure that indeed it is only run in the Render-action? Thanks in advance, Britske -- View this message in context: http://www.nabble.com/T5%3A-actionlink-calls-onActivate-twice%3A-detecting-first-time-tp19745430p19745430.html Sent from the Tapestr

Re: T5: possible to get the 'real' object instead of a proxy?

2008-07-11 Thread Britske
, or hold onto it after > the end of the current request. > > On Fri, Jul 11, 2008 at 11:04 AM, Britske <[EMAIL PROTECTED]> wrote: >> >> and this would also give me a session bound to the current thread? Like, >> I >> would inject in into a custom single

Re: T5: possible to get the 'real' object instead of a proxy?

2008-07-11 Thread Britske
to do this. > > I don't use tapestry-hibernate so that's all I can say about that. > > By the way, the Session/SessionImplementor interfaces and the way > they're used isn't bad design - it's exactly what interfaces are for. :) > > -Filip > > Britske

Re: T5: possible to get the 'real' object instead of a proxy?

2008-07-11 Thread Britske
t; I don't use tapestry-hibernate so that's all I can say about that. >> >> By the way, the Session/SessionImplementor interfaces and the way they're >> used isn't bad design - it's exactly what interfaces are for. :) >> >> -Filip >> >>

T5: possible to get the 'real' object instead of a proxy?

2008-07-11 Thread Britske
When injecting a (hibernate) Session a proxy to the actual session is returned. However, when using the session in a lot of my dao-services I need to have access to the 'real' underlying session instead of just the proxy. Is there a way to do this? Some background: after revisioning my da

Re: T5: what part of tapestry adds Jsessionid

2008-07-11 Thread Britske
(See, for example: > http://code.google.com/p/tapestry5-cayenne/source/browse/trunk/tapestry5-cayenne-server/src/main/java/com/googlecode/tapestry5cayenne/services/CayenneRequestFilter.java) > > Robert > > On Jul 10, 2008, at 7/1012:30 PM , Britske wrote: > >> >> yeah I reali

Re: T5: what part of tapestry adds Jsessionid

2008-07-10 Thread Britske
protected void onAction() { > if (_nonPersistedTracker.getHasErrors()) { > _tracker = _nonPersistedTracker; > } else { > _tracker = null; > } > } > } > > Josh > > On Thu, Jul 10, 2008 at 10:30 AM, Britske <[E

Re: T5: what part of tapestry adds Jsessionid

2008-07-10 Thread Britske
being logged in, its about the user > have a session. > > On Thu, Jul 10, 2008 at 8:52 AM, Britske <[EMAIL PROTECTED]> wrote: >> >> partially related to a post I send a couple of days ago, but perhaps this >> explains better what I'm trying to do. >> &

T5: what part of tapestry adds Jsessionid

2008-07-10 Thread Britske
partially related to a post I send a couple of days ago, but perhaps this explains better what I'm trying to do. I'm trying to strip the jSessionId from displaying in the url if: 1. user doesn't have cookies (otherwise it won't display anyway) 2. user is not logged in. I wanted to implement t

Re: T5: getting current hibernate session (per-thread) from singleton-service

2008-07-09 Thread Britske
irected to a real per-thread Hibernate > session. > > On Wed, Jul 9, 2008 at 9:27 AM, Britske <[EMAIL PROTECTED]> wrote: >> >> I found some partial references on the list, but nothing that really >> answered >> the question, so: >> How can I get the

T5: getting current hibernate session (per-thread) from singleton-service

2008-07-09 Thread Britske
tCurrentSession(){ return shadowBuilder.build(hibernateSessionManager, "session", Session.class); } However this still doens't ensure (I think) that hibernateSessionManager belongs to the current thread. Can anyone shed some light on this? I would highly appreciate it! Cheers, brit

Re: stripping jsessionid in custom dispatcher depending on ASM.

2008-07-08 Thread Britske
perhaps I should have mentioned that the code for checking if the user-instance exists or not isn't here yet, but it isn't really relevant for the problem. Thanks. Britske wrote: > > I want to strip JsessionId from the url (for browsers who dont support > cookies) for

stripping jsessionid in custom dispatcher depending on ASM.

2008-07-08 Thread Britske
turn straightaway, but the above code enabled me to see that indeed this code stripped the added jsessionid that super.encode*Url() added. So where is the other method that's adding jsessionid? Cheers, Britske -- View this message in context:

how to get the nice ajax form-validations when using beaneditform.recordError()

2008-07-07 Thread Britske
I get nice ajax validations on fields when using the @Validate-annotation etc. I want that as well for cross-field validation, but instead I get the 'general' validation box in red above my form. I used the following validation-code to check if the two passwords supplied are the same, and if no

Re: T5: beaneditform: properties don't get populated although model is bound

2008-07-07 Thread Britske
be sent to the > client. > > Martijn > > > On Mon, 2008-07-07 at 15:27 -0700, Britske wrote: >> I've got a beaneditform which displays a userprofile, with among other >> things >> 2 passwordsfields. >> When displaying an existing userprofile a

Re: T5: beaneditform: properties don't get populated although model is bound

2008-07-07 Thread Britske
partially answering my own question: it doens't happen when both passwordfields are changed from type: passwordField to type: textField. Perhaps this is a bug in passwordField? Kind regards, Britske Britske wrote: > > I've got a beaneditform which displays a userprofile,

T5: beaneditform: properties don't get populated although model is bound

2008-07-07 Thread Britske
I've got a beaneditform which displays a userprofile, with among other things 2 passwordsfields. When displaying an existing userprofile all fields except the password fields are rendered, (the password fields remain empty), although values for the password-fields exists in the bound userprofile.

t5: rollback when profile update is cancelled with beaneditform

2008-07-07 Thread Britske
hi, I was quickly testing creating and updating userprofiles using beaneditform. To me, the most logical thing to do was combine Create and Update in one page: if a User-instance exists in the applicationstate --> user is displayed using beaneditform and fields can be edited, if no user-instan

T5: how to add a LinkFactoryListener to the existing linkFactory-service

2008-06-19 Thread Britske
I'm trying to add a custom made LinkFactoryListener to the existing LinkFactory-service, but with now success. I must admit I'm really not fluent with Tapestr-ioc so I think it might me something obvious. I tried several things, for instance trying to contribute a listener to the LinkFactory (if

Re: getting ClassFactory is matched by 2 services After upgrade from 5.06 -> 5.0.11

2008-05-19 Thread Britske
the @Builtin or the @ComponentLayer annotation. This marker > annotation will select the correct implementation: either the general > ClassFactory (used by the IoC container) or the one used when working > with component code. You probably want @Builtin. > > On Sun, May 18, 2008 at 6:40 AM,

getting ClassFactory is matched by 2 services After upgrade from 5.06 -> 5.0.11

2008-05-18 Thread Britske
that exactly one service implement the interface. I'm getting the error (I think), I'm just not sure where to look to change it. For instance, I have nothing defined in my AppModule that could be the cause. Anyone? Thanks, Britske -- View this message in context: http://www.nab

T5: possible to call 'template expansion service' to flexibily render blocks which are not known a priori

2008-04-14 Thread Britske
these posts. If anyone has a better solution for the general problem outline above, of course I'm interested as well. Thanks, Britske -- View this message in context: http://www.nabble.com/T5%3A-possible-to-call-%27template-expansion-service%27-to-flexibily-render-blocks-which-ar

T5: NoClassDefFoundError while upgrading to 5.0.10

2008-04-07 Thread Britske
far more creepier errors: org.apache.tapestry.internal.services.TransformationException StackMapTable format error: bad class index Thanks, Britske -- View this message in context: http://www.nabble.com/T5%3A-NoClassDefFoundError-while-upgrading-to-5.0.10-tp16538525p16538525.html Sent from the Tapestry - User mailing l

RE: T5: nested loops don't work (can't figure this one out)

2008-03-28 Thread Britske
tlist.add(list.subList(counter, > Math.min(counter+maxListsize, list.size(; > > Gotta love those! > > >> -Original Message- >> From: Britske [mailto:[EMAIL PROTECTED] >> Sent: Thursday, March 27, 2008 2:25 PM >> To: users@tapestry.apache.org

T5: nested loops don't work (can't figure this one out)

2008-03-27 Thread Britske
Hi, I'm breaking my head on this one. I have 2 nested loops where the value of the outer loop is used as the source of the inner loop. The problem is that getCurPhotoAsThumb() is never called (as noticed by debugging) thus nothing is rendered. I've made sure that getCurThumbSublist() has at

Re: T5: AJAX and Firefox doesn't work

2008-01-02 Thread Britske
.7). > > On Jan 2, 2008 1:43 AM, Britske <[EMAIL PROTECTED]> wrote: >> >> A strange thing happens. >> >> following an example of returning a streamresponse based on a user-click, >> this all works well in IE7 but not in Firefox. Instead firefox exectutes

T5: template parser XHTML-well formed --> javascript goes wrong

2008-01-02 Thread Britske
Hi , I have a template which includes a javascript-function: function asyncCall (){ if(($('quickTextField').value.length > 2)) { new Ajax.Request ('${quickSearchBoxLink}', {asynchronous:true,onSuccess:handleResponse}); } } However, this gets converted to (note the > instead of '

T5: AJAX and Firefox doesn't work

2008-01-02 Thread Britske
A strange thing happens. following an example of returning a streamresponse based on a user-click, this all works well in IE7 but not in Firefox. Instead firefox exectutes the action and the simply fires an onActivate-event rendering the action useless (the page is simply loaded again as if the

Re: T5: Linkage error .... violates loader constraints

2007-12-21 Thread Britske
nd recreate the base > class > twice? > > On Dec 21, 2007 10:37 AM, Britske <[EMAIL PROTECTED]> wrote: > >> >> As an addition: >> >> also pointing out what type of errors are likely to cause these errors >> would >> help. >> I know t

Re: T5: Linkage error .... violates loader constraints

2007-12-21 Thread Britske
well. Are there any others that I should track in my code? Thanks again, Geert-Jan Britske wrote: > > I'm going slightly insane on this one.. > that's because everything worked fine, and after some slight modifications > (none that could cause such errors I believe) I c

T5: Linkage error .... violates loader constraints

2007-12-21 Thread Britske
I'm going slightly insane on this one.. that's because everything worked fine, and after some slight modifications (none that could cause such errors I believe) I can't backtrack anymore where things went wrong. The error I'm getting is this: Could not convert 'page.quickNavigation' into a co

t5: violates loader constraints-error when loading pages into ioc-injected class-instance

2007-12-06 Thread Britske
I created a class PageRegistry and defined it in Spring. I use @Inject to inject the singleton-instance of this class. (This worked before with other classes). in the constructor of PageRegistry I fill a map with page-instances. (So that i can access some methods of a page when I dont have acce

Re: T5: "conditional parameter binding" or something

2007-12-04 Thread Britske
&& facet.getFacet().isSelected()) { facetMaxInc++; } } and check on facetMaxInc. Britske wrote: > > I need a bit of introduction to lay down the problem, so please bare with > me: > > I have a component

T5: "conditional parameter binding" or something

2007-12-04 Thread Britske
I need a bit of introduction to lay down the problem, so please bare with me: I have a component which renders lists of items. A parameter (childcounter) keeps track of the number of rendered items in the current List. I have the requirement. to be able to define on a per-page basis how many i

Re: T5: problems when extending DateField. More flexibility needed?

2007-11-29 Thread Britske
OK , I'll do that. How about issue 2? Andreas Andreou wrote: > > That's the same as > https://issues.apache.org/jira/browse/TAPESTRY-1795 > only for Tapestry-5... add an issue for it > > On Nov 28, 2007 6:39 PM, Britske <[EMAIL PROTECTED]> wrote: >&

T5: problems when extending DateField. More flexibility needed?

2007-11-28 Thread Britske
Hi, I extended datafield to call a defined callback function in javascript. like so: public class MyDateField extends DateField { protected void configure(JSONObject setup) { setup.put("onUpdate", "callOnUpdate"); super.configure(setup);

Re: T5: how to let subclass decide which component to render

2007-11-16 Thread Britske
some time to figure this one out, but now its working like a charm! //Geert-Jan Britske wrote: > > I've got a page-class hierachy which all use component BaseLayout as their > layout. This BaseLayout-component contains a component called QuickForm. > > Each page-class must

T5: why is a coorcion needed from subclass to abstract superclass?

2007-11-16 Thread Britske
just curious: why is it needed to make a cooercion from a page subclass to an abstract superclass? Isn't the cast already implictly defined by the 'super-sub relation'? Geert-Jan -- View this message in context: http://www.nabble.com/T5%3A-why-is-a-coorcion-needed-from-subclass-to-abstract-

T5: how to let subclass decide which component to render

2007-11-16 Thread Britske
I've got a page-class hierachy which all use component BaseLayout as their layout. This BaseLayout-component contains a component called QuickForm. Each page-class must render a QuickForm-component but the implementation may differ (so there is more than 1 actual QuickForm-component. I started

Re: T5: referencing embedded Component is null in onActivate(). What am I missing?

2007-11-14 Thread Britske
rnings. > > On Nov 14, 2007 7:31 AM, Britske <[EMAIL PROTECTED]> wrote: >> >> I've got a embedded component (a searchform) on a page. On >> page.onActivate() >> I need to reference this embedded component (to set a couple of its >> input-fields based on th

T5: referencing embedded Component is null in onActivate(). What am I missing?

2007-11-14 Thread Britske
I've got a embedded component (a searchform) on a page. On page.onActivate() I need to reference this embedded component (to set a couple of its input-fields based on the url of the page). However, although the embedded component is correctly set-up in the page I get a nullPointerException when I

T5: datefield with custom configure howTO

2007-11-13 Thread Britske
I subclassed the DateField-component to MyDateField with the purpose to overwrite the configure-method, since I need a custom method to go off when I select a date in the calendar. I did the following in MyDateField: (where onSelect1 is a function defined in my page). protected void configure

Re: T5: A component returning StreamResponse?

2007-11-04 Thread Britske
Not sure if you solved this already, but anyway: Regarding the exception you got: Borut BolĨina-2 wrote: > > then I get Exception: > Component ui/dialog/JQModalAjax does not contain an embedded component > with > id 'wizardStep1'. > > which is true, as I don't have WizardStep1 in my ui/dial

T5: how to pass a component as a parameter? --> getting unbound errors

2007-10-30 Thread Britske
a quick background first: I'm creating a component which can display a 'list of lists'. For flexibility I want to implement this as a composite-pattern in which a CompositeFlexList-component can render one or more FlexList-components as it's childs. (CompositeFlexList extends FlexList). This wor

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

2007-10-24 Thread Britske
Make that: onActivate(Object[] list) { if(params==null || params!=list) //actually a method doing a compare on the elements of the list { //handle context params = list; } } Britske wrote: > > Thanks, removed the onActivate() without params. > > Moreover, i didn'

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

2007-10-24 Thread Britske
> { > if (context.length == 0) > { > // handle no context > { > else > { > // handle context > { > } > > Cheers, > Nick. > > > Britske wrote: >> for a page, I have two activation-methods: >>

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

2007-10-24 Thread Britske
for a page, I have two activation-methods: onActivate() onActivate(Object[] list); when i provide an activation context to the page both methods are called -onactivate() first-. This seems correct behavior according to some forum-posts i've read. However, both methods call a method syncLists()

Re: T5: how to let pojo (no component) have reference to PropertyAccess

2007-10-23 Thread Britske
ve it ;-) Britske wrote: > > I have a helperclass SelectModelRepository which centralizes logic > concerning selectmodels which different pages/ components can access. This > class needs a reference to PropertyAccess to do some of its work, which > normally is availab

T5: how to let pojo (no component) have reference to PropertyAccess

2007-10-23 Thread Britske
I have a helperclass SelectModelRepository which centralizes logic concerning selectmodels which different pages/ components can access. This class needs a reference to PropertyAccess to do some of its work, which normally is available as: @Inject PropertyAccess _access. However, this only work

Re: t5 form submit not fired

2007-10-19 Thread Britske
nformation for that field to be updated and use Javascript to > populate the field. > > Your stream response can be XML, JSON, or HTML depending on what your > needs > are... > > Josh > > > On 10/18/07, Britske <[EMAIL PROTECTED]> wrote: >> >> &

Re: how to have persistent data in querystring?

2007-10-19 Thread Britske
ttp://tapestry.formos.com/nightly/tapestry5/apidocs/src-html/org/apache/tapestry/internal/services/ClientPersistentFieldStorageImpl.html#line.41 > ) > > If you want attractive URLs then I'd say this isn't what you are looking > for... Although I got to learn a bit about it s

Re: template-expansion sees hibernate-entity as java.lang.Boolean?

2007-10-19 Thread Britske
ppening in: org.apache.tapestry.internal.services.PropertyConduitSourceImpl.readMethodForTerm(PropertyConduitSourceImpl.java:370) and states: Could not convert 'firstresult.poi.city.name' into a component parameter binding: Class java.lang.Boolean does not contain a property named 'name' (within property expression 'firstresult.poi.city.na

Re: how to have persistent data in querystring?

2007-10-19 Thread Britske
look at > http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry/services/ComponentClassTransformWorker.html > > and the source for the @Environmental annotation might help > http://tapestry.apache.org/tapestry5/apidocs/src-html/org/apache/tapestry/internal/services/Environment

Re: t5 form submit not fired

2007-10-18 Thread Britske
code. > If you post it i can try and find the problem. > > Britske wrote: >> after the onchange occurs, this is what happens in my app: >> >> 1. onMyAction is executed() (this is an actionlink which returns nothing >> (void) which results in a client-side redir

Re: t5 form submit not fired

2007-10-18 Thread Britske
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 wrote: >>> after the onchange occurs, this is what happens in my app: >>> 1. onMyAction is execute

Re: t5 form submit not fired

2007-10-18 Thread Britske
hange the selectbox value ? > It won't refresh because all your doing is call a javascript function. > There's no redirect. > > Britske wrote: >> since your example effectively calls a ActionLink through AJAX, a >> redirect >> DOES happen. It's the result

Re: t5 form submit not fired

2007-10-18 Thread Britske
javascript. There's no page reload of for submission. > > Britske wrote: >> yeah indeed it is only called once when the template is rendered, I >> discovered now. >> However i don't need to return a dynamic url or whatever based on the >> getTheLink-metho

Re: how to have persistent data in querystring?

2007-10-18 Thread Britske
query string then you can create a link > and > add parameters to it from within your page. > > http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry/Link.html > > > Josh > > On 10/18/07, Britske <[EMAIL PROTECTED]> wrote: >> >> >> o

Re: t5 form submit not fired

2007-10-18 Thread Britske
es the call to the server whenever the > javascript function is called. > So, if you call the function from an onchange event on a select the > method will be called every time you change the selectbox. > > > > > > Britske wrote: >> Yeah i see/know, bu

Re: t5 form submit not fired

2007-10-18 Thread Britske
#x27;s what AJAX is all about, you make a request to the > server and then update a portion of your page based on the response from > the server using javascript. There's no page reload of for submission. > > Britske wrote: >> yeah indeed it is only called once when the

template-expansion sees hibernate-entity as java.lang.Boolean?

2007-10-18 Thread Britske
first of all, excuse me for the post-flood, but I had some standing issues. Perhaps some of these questions can help others as well so here this one goes: I was on a roll until i wanted to include the name of a City-instance through a template expansion, which gave the error: Could not convert

how to have persistent data in querystring?

2007-10-18 Thread Britske
okay, I like peristent data very much. On the other hand I want to have pages in which several persistent properties are encoded into the querystring (for better bookmarking and other requirements from a user-perspective). so my question is: is there a way to encode / decode certain persistent p

Re: t5 form submit not fired

2007-10-18 Thread Britske
he listener method > to which your getTheLink method should be returning the URL to is called > whenever you call the "sendRequest" function. > > > Britske wrote: >> thanks that works partially. >> >> However, the event is only catched twice: >>

Re: t5 form submit not fired

2007-10-18 Thread Britske
the client > > return new TextStreamResponse("text/xml", jsonObject.toString()); > } > > And that's it. Works great. All you have to do now is call the > sendRequest function from whatever javascript event you want to catch. > Hope this helps. >

t5 form submit not fired

2007-10-18 Thread Britske
I have a use-case in which i need to catch a onchange of of select-component on the server-side. The only way I know how to do that is do a javascript onchange='this.form.submit()' and catch the onsubmit() event on the serverside. This works well when i don't have a submit-component in the form

RE: T5: how to insert string including markup to template (2nd try)

2007-10-17 Thread Britske
wonder how I missed that one ;-) thanks! Jonathan Barker wrote: > > Use the OutputRaw component. > >> -Original Message- >> From: Britske [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, October 17, 2007 12:16 PM >> To: users@tapestry.apache.org >

T5: how to insert string including markup to template (2nd try)

2007-10-17 Thread Britske
accidently submitted my first blank post so here it goes again: i have a variable for example: String text = "some text here"; In my template in want to insert it: ${text} however the html-tags get encoded as text, so the marktup doesn't show. So, is there a way to insert text including marku

T5: how to insert string including markup to template

2007-10-17 Thread Britske
-- View this message in context: http://www.nabble.com/T5%3A-how-to-insert-string-including-markup-to-template-tf4641184.html#a13255720 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mai

t5: mock-up templates with sample-content then replace in t5

2007-10-01 Thread Britske
Hi, in T4 it is possible to mock-up pages in your favorite html-editor (say dreamweaver) including sample-content (for tables for example). How can I achieve the same in T5. I mean, I can add a table (see below) with dynamic content, but is it possible to add sample content (which is replace

Re: [T5]: binding issue: supplying parameter to component --> always null

2007-09-28 Thread Britske
che/tapestry/corelib/components/Grid.html > > I haven't written the code, but that seems to be what makes sense to me... > Josh > > > On 9/27/07, Britske <[EMAIL PROTECTED]> wrote: >> >> >> Hi all, >> >> I guess I'm missing something here,

[T5]: binding issue: supplying parameter to component --> always null

2007-09-27 Thread Britske
Hi all, I guess I'm missing something here, maybe a trival thing so bear with me please.;-) I'm trying to extend the T5 grid / griddatasource for my requirements. For some event-handling in GridColumn I need to reference the field _model of type BeanModel which exists in the Grid-class from Grid

  1   2   >