[T4] - Tapestry.bind basic Ajax example

2007-10-19 Thread Loïc Talbot
Hi there, I'm trying to do an XHR request using the same method as @DirectLink component. Here is the code: script type=text/javascript var xmlDoc = new ActiveXObject(Microsoft.XMLDOM); var content; function SendAjaxRequest() { tapestry.bind

Re: T4: creating search form and search result on one page

2007-10-19 Thread Andreas Andreou
remove public Collection list; inside search(), just do setList( getService().search(getClient()) ); On 10/19/07, Joshua Jackson [EMAIL PROTECTED] wrote: Here is the html template of search form and search result underneath it: span jwcid=@Layout form jwcid=[EMAIL PROTECTED]

Re: how to have persistent data in querystring?

2007-10-19 Thread Britske
Well i guess the onPassivate-method isn't entirely out of the question since it gives a central place to handle this on the page-level as well. The tagging-variant seems nicer though. I thought i read somewhere in the documentation that a 'client-side persistence strategy' was on the horizon,

Re: t5 form submit not fired

2007-10-19 Thread Britske
ok that explains a few things ;-) thanks for clearing that up. Nick Westgate wrote: 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

Re: Tapestry 5 Roadmap

2007-10-19 Thread kranga
That is an incredible statement! There have been numerous discussions on this mailing list on the way T4 was made completely incompatible since it was going to incorporate the very best and then T5 was made even more incompatible to incorporate the latest. This has been a vexing issue with

Tapestry 4.1.3 Archetype

2007-10-19 Thread Daniel Ruiz
hello, is there anything like ' this ' for tapestry 4.1.3 snapshot? HYPERLINK http://tapestry.apache.org/tapestry5/quickstart/http://tapestry.apache.org /tapestry5/quickstart/ Thanks, []´s Daniel Ruiz Internal Virus Database is out-of-date. Checked by AVG Free Edition. Version:

RE: T5: A Form without a Session

2007-10-19 Thread Kristian Marinkovic
hi josh,you can pass your own ValidationTrackerwith a persistence strategyof your choiceto the form component using the tracker parameter. And the default tracker with session persistence will not be created.or you can create your own form

Re: multiple select dropdown

2007-10-19 Thread Tapestry240
For multiple select box you do a multiple and define size. Seems like there is no way you can do a multiple select on a dropdown though. Daniel Jue wrote: Look at the Palette or Enhanced Palette code. On 10/17/07, Daniel Jue [EMAIL PROTECTED] wrote: I think you define a size variable that

Re: Tap 4.0.2 to 4.1.2 migration loop / ognl issue

2007-10-19 Thread andyhot
But i 1would point out that this is a good opportunity to clean up your markup Jesse Kuhnert wrote: Sounds like it's just an OGNL bug. If you file it here I should be able to fix it fairly quickly as it looks like something that'll be easy to do: http://jira.opensymphony.com/browse/OGNL

Tap 4.0.2 to 4.1.2 migration loop / ognl issue

2007-10-19 Thread Dom Couldwell
Hi, I'm migrating an existing project which uses 4.0.2 to use 4.1.2 and I'm having and ognl / loop related issue. Here's the snippet that works on 4.0.2 td jwcid=@For source=ognl:tab.searchCriteriaOptions value=ognl:currentFilterGroup

Re: t5 form submit not fired

2007-10-19 Thread Britske
thanks for mentioning the difference. In my case a dropdown-change causes a result-set to reload based on a new query which is shown as the main result on the page. Since this almost means rendering the entire page again, there isn't much difference between streaming the diference as Json or

Re: how to have persistent data in querystring?

2007-10-19 Thread Britske
your welcome;-) i have a look it myself. Josh Canfield-2 wrote: I haven't played with the client persistence strategy, but the documentation ( http://tapestry.formos.com/nightly/tapestry5/tapestry-core/guide/persist.html) says The field is persisted onto the client; you will see an

T5: page with form re-rendering

2007-10-19 Thread Angelo Chen
Hi, I have a form like following, it sets a persisted variable(country) in the page class, initially it includes addressHK component in the page, when user choose 'US' and click submit, the page is supposed to be refreshed withh addressUS component included, but it never happen, it seems page was

RE: Templates and t:body

2007-10-19 Thread Heck, Bob
Ok, still have a problem. No error, just no header rendered. --- Here is my Header.java file: package try.tapestry.components; public class Header { public Header() { } }

Re: T5: page with form re-rendering

2007-10-19 Thread Angelo Chen
problem solved, test should be: test=isUS Angelo Chen wrote: t:if test=${isUS}t:addressUS //t:if t:if test=${isHK}t:addressHK //t:if input type=submit name=Submit id=Submit value=Submit / /t:form -- View this message in context:

Re: Templates and t:body

2007-10-19 Thread Howard Lewis Ship
Tapestry mandates a certain organization to your classes. If you page class is org.example.pages.MyPage then your component class (here, Header) must be org.example.components.Header. The .pages. and .components. part is very specific to Tapestry, hard-wired into the framework. Those are

Re: Tap 4.0.2 to 4.1.2 migration loop / ognl issue

2007-10-19 Thread Dom Couldwell
Done http://jira.opensymphony.com/browse/OGNL-130 Thanks, Dom Dom Couldwell Global Markets Research +1(212)250-7082 Jesse Kuhnert [EMAIL

Re: Tapestry 4.1.3 Archetype

2007-10-19 Thread Kevin Menard
http://tapestry.apache.org/tapestry4.1/tapestry-archetype/index.html I haven't tried it, though. In case you need to find it again, it's on the T4.1 page, left-hand nav, under Modules. -- Kevin On 10/19/07 3:01 PM, in article [EMAIL PROTECTED], Daniel Ruiz [EMAIL PROTECTED] wrote: hello,

RE: Templates and t:body

2007-10-19 Thread Heck, Bob
Ok Found the answer as to why this was not working. This may be trivial to seasoned users, but a hard catch for a newbie. For components, such as the Header we have been talking about, the .java file AND the .tml file need to both reside in the components package. I had been putting the .tml

Re: Tap 4.0.2 to 4.1.2 migration loop / ognl issue

2007-10-19 Thread Jesse Kuhnert
Sounds like it's just an OGNL bug. If you file it here I should be able to fix it fairly quickly as it looks like something that'll be easy to do: http://jira.opensymphony.com/browse/OGNL (the fix will come in the form of a new 2.7.2-SNAPSHOT build off of http://opencomponentry.com/repository/

RE: Tapestry 4.1.3 Archetype

2007-10-19 Thread Daniel Ruiz
Thanks Kalle, I will take a look on Trails too, and sorry about the 'snapshot'. :D []´s Daniel Andrade Ruiz -Original Message- From: Kalle Korhonen [mailto:[EMAIL PROTECTED] Sent: Friday, October 19, 2007 3:46 PM To: Tapestry users Subject: Re: Tapestry 4.1.3 Archetype Well, there's

T5: A Form without a Session

2007-10-19 Thread Josh Canfield
I'd like to add a form component to my page, I haven't found a way to do it without causing a session to be created when the page is first accessed. I'm fine if a session is created when the user actually submits the form, to handle validation etc. but some forms are rarely used and session

Re: how to have persistent data in querystring?

2007-10-19 Thread Josh Canfield
I haven't played with the client persistence strategy, but the documentation ( http://tapestry.formos.com/nightly/tapestry5/tapestry-core/guide/persist.html) says The field is persisted onto the client; you will see an additional query parameter in each URL (or an extra hidden field in each form).

Re: t5 form submit not fired

2007-10-19 Thread Josh Canfield
The whole point of AJAX is not having to return the whole page. You just want to return the part of the page that needs updating. If selecting a field in a drop down is supposed to add a dependant drop down (choose a country changes possible address fields for instance), then you only return

Re: Tapestry 5 Roadmap

2007-10-19 Thread Christian Gruber
Egregious? That demands and answer and perhaps an apology. Firstly, try porting and app from Weblogic Portal 8 to Weblogic Portal 9. It has conversion tools, but it's not compatible without up- conversion. Upconversion doesn't count. Then think of eclipse and the plugins geared for such.

Re: [T5] Connection between symbols and messages

2007-10-19 Thread Jesse Kuhnert
I know from a user perspective I'd like to have things be able to default all the way out to symbol / global properties file definitions when developing libraries and such if possible There may be some performance or other internal framework decisions / reasoning behind it but I started to

component list parameters?

2007-10-19 Thread Christian Gruber
Hi, So I'm wondering if this is possible, and if not, has this been thought of? I'm wanting to add a variable list of parameters to a component, because it can take an arbitrary number of them and loop overthem. So I'm looking at something like this. A.tml div xmlns:t=blah t:b

AW: Tapestry 5 Roadmap

2007-10-19 Thread Maximilian Weißböck
We have a T3 and a T4 Appliaction in production and hopefully will start a T5 development soon. I do not see a real big problem in this versions not beeing compatible. I also think you compare different kind of beasts if you compare Websphere with Tapestry. It's more like EJB 2.x to EJB 3 -

Re: T4: creating search form and search result on one page

2007-10-19 Thread Andreas Andreou
Why dont you debug your getService().search() method and see what arguments it gets and what it returns ? It should help you find where and what the problem is... Joshua Jackson wrote: It stilll doesn't work. Does anyone have a complete sample code for this? thanks in advance, On

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

2007-10-19 Thread Britske
Has anyone ever experienced something similar? or has anyone used hibernate lazy-associations succesfully with expansions in T5? I'm still not sure if it's a hibernate or a tapestry thing. FYI; the error is happening in:

Re: t5 form submit not fired

2007-10-19 Thread Britske
A changes your method somehwat to return void -- redirect to current page (Thanks Nick for mentioning the difference) Could you eleborate what exactly you stream to the client in the StreamReponse you give back? This must be the entire page right? You can't just stream changes back to the

Re: T5 Desired complex community components

2007-10-19 Thread Borut Bolčina
Hi, here is a good place to start: http://www.jsfmatrix.net/ Click on the demo links to see what other frameworks have. The list of components is long... Regards, Borut 2007/10/17, Daniel Jue [EMAIL PROTECTED]: I was wondering what kind of components people are looking for that are not yet

Re: Tapestry 4.1.3 Archetype

2007-10-19 Thread Kalle Korhonen
Well, there's the Trails archetype that uses T4.1.3: http://trailsframework.org/Quick+Start. And btw, 4.1.3 is released, not a snapshot. Kalle On 10/19/07, Daniel Ruiz [EMAIL PROTECTED] wrote: hello, is there anything like ' this ' for tapestry 4.1.3 snapshot? HYPERLINK

[T5] Connection between symbols and messages

2007-10-19 Thread Dan Adams
So right now I have a situation where I need my library to provided some default values for some things it provides. The natural place for this seems to be FactoryDefaults. The problem is that certain things are only looked up in the component messages when determining defaults and it doesn't

Re: T4: creating search form and search result on one page

2007-10-19 Thread Joshua Jackson
It stilll doesn't work. Does anyone have a complete sample code for this? thanks in advance, On 10/19/07, Andreas Andreou [EMAIL PROTECTED] wrote: remove public Collection list; inside search(), just do setList( getService().search(getClient()) ); -- What you want today, may not exist

Re: T4.1: How to filter out exceptions from bots?

2007-10-19 Thread Malin Ljungh
Thanks A LOT! Exactly what I was looking for - works great! Malin On 10/18/07, Ulrich Stärk [EMAIL PROTECTED] wrote: Malin Ljungh schrieb: Hi all, I've got some annoying stack traces in my log from bots, primarily a bot called LiteFinder but also Googlebot. (the LiteFinder seems to get