Re: Patternstring for Email validator

2008-01-09 Thread Ulrich Stärk
Have a look at the code for the 4.1 Email validator at http://tapestry.apache.org/tapestry4.1/apidocs/src-html/org/apache/tapestry/form/validator/Email.html That one should cover most cases. Uli mj123 schrieb: I need a Regular expression that will validate an email adrress entered Currently I

Re: How to make drop down box from ArrayList

2008-01-10 Thread Ulrich Stärk
It would be better to inform us about the Tapestry version you are using instead of sending us a disclaimer that is longer than the rest of your mail. Uli Yeeswara Nadapana (HCL Financial Services) schrieb: Hi, Please suggest me a simple way to show my ArrayList of string objects as

Re: T4: Newbie's questions

2008-01-10 Thread Ulrich Stärk
Zheng, Xiahong schrieb: Hi, I am exploring Tapestry (currently looking at 4.1.4 snapshot). So far, the experience has been very positive. I was able to convert a Struts based application to Tapestry4 in just a couple days. However, I still need answer to the following questions, 1) Layout mana

Re: T4.1 friendly URLs and session restart

2008-01-15 Thread Ulrich Stärk
Override the default StaleSession page with your own implementation. Just create a page called e.g. MyStaleSession and use an InfrastructureOverride in Hivemind like this: Look here http://www.nabble.com/forum/ViewPost.jtp?post=7217351&framed=y here http://tapestry.apache.org/tapestry4.

Re: tapestry-spring

2008-01-16 Thread Ulrich Stärk
Instructions on how to configure the correct maven repository can be found at http://howardlewisship.com/tapestry-javaforge/ (linked to from the tapestry-spring site): howardlewisship.com Tapestry @ JavaForge http://howardlewisship.com/repository/ Also read this http://www.nabble.com/

Re: tapestry-spring

2008-01-16 Thread Ulrich Stärk
It's not broken it's just not generating directory listings. Uli HongDa Tang schrieb: http://howardlewisship.com/repository/ seems to be broken. Does anyone know of a mirror site for http://howardlewisship.com/repository/ where I can use maven to retrieve tapestry-spring library version 1.0.

Re: [T4.1.3] Problems with async DireckLink

2008-01-16 Thread Ulrich Stärk
Please post the DirectLink definition and the rest of the logic you wrote to switch tabs. Pai911 schrieb: Dear all: The following is the template for three tabs. When each tab is clicked, switchTab listener should be invoked to set the tab property and asynchrounously update [EMAIL PROTECTED

Re: [T4.1.3] Problems with async DireckLink

2008-01-16 Thread Ulrich Stärk
etTab(tabName); } I think it's more likely related to the version of IE It seems to happen in certain version of IE Thank you!! Ulrich Stärk wrote: Please post the DirectLink definition and the rest of the logic you wrote to switch tabs. Pai911 schrieb: Dear all: The following is th

Re: [T4.1.3] Problems with async DireckLink

2008-01-16 Thread Ulrich Stärk
switchTab(String tabName) { this.setTab(tabName); } I think it's more likely related to the version of IE It seems to happen in certain version of IE Thank you!! Ulrich Stärk wrote: Please post the DirectLink definition and the rest of the logic you wrote to switch tabs. Pai911 schrieb: D

Re: [T4.1.3] Problems with async DireckLink

2008-01-17 Thread Ulrich Stärk
This looks correct to me. I even tried your code with Tapestry 4.1.3 and it works correctly both in Firefox and IE 6.0. Are you really sure, that the whole page is reloading? How do you know? Uli Am Do, 17.01.2008, 08:13, schrieb Pai911: > > So, you read this in mail box > Then I think I should r

Re: tapestry-spring

2008-01-17 Thread Ulrich Stärk
thing as I suggested. Uli Ulrich Stärk schrieb: http://howardlewisship.com/repository/com/javaforge/tapestry/tapestry-spring/1.0.0/tapestry-spring-1.0.0.pom works OK. As does http://howardlewisship.com/repository/com/javaforge/tapestry/tapestry-spring/1.0.0/tapestry-spring-1.0.0.jar It&

Re: tapestry-spring

2008-01-17 Thread Ulrich Stärk
ository/) - Original Message From: Ulrich Stärk <[EMAIL PROTECTED]> To: Tapestry users Sent: Wednesday, January 16, 2008 8:34:11 AM Subject: Re: tapestry-spring It's not broken it's just not generating directory listings. Uli HongDa Tang schrieb: http://h

Re: [4.1] Howto create an ILink for a page

2008-01-18 Thread Ulrich Stärk
You should be able to do something like this: @InjectObject("engine-service:page") public abstract IEngineService getPageService(); and then construct your link like String pageName = "SomePage"; ILink pageLink = getPageService().getLink(false, pageName); Uli Andy Pahne schrieb: Hello, I h

Re: T4.1.3 Page rewind

2008-01-25 Thread Ulrich Stärk
Page rewinding is a necessary mechanism to map HTML attribute names and their values to the corresponding page properties. When the page is rendered, Tapestry generates HTML attribute names and values for each element inside your form. When the form is submitted the same mechanism makes sure th

Re: Will there be $content$ and $remove$ functionality in T5?

2008-01-31 Thread Ulrich Stärk
IIRC someone posted a T5 equivalent of one of these for T5 to this list some time ago. You might want to search the archives. Uli Jan Vissers schrieb: We use this quite often in T4, for web design/prototyping purposes. - To

Re: Tapestry and Article at Theserverside.com

2008-02-01 Thread Ulrich Stärk
-- /| /| | | ||__|| | Don't feed | / O O\__ | / \the trol

Re: What does it take to be banned from this mailing list?

2008-02-01 Thread Ulrich Stärk
Angelo Turetta schrieb: I think [EMAIL PROTECTED] (A.K.A. [EMAIL PROTECTED]) has well passed the limit I would tolerate if the matter was in my hands And for what matters, I would also inform his friends at wicket, which being another of apache's projects should be bound by the same ethics

Re: pageAttached() and validate()

2008-02-13 Thread Ulrich Stärk
What's wrong with Filips answer? Uli riccaruf schrieb: Hi guys, any news for this question ? thanks -Rick Filip S. Adamsen-2 wrote: That would be - as you suggest - the pageBeginRender method. -Filip Dan Adams skrev: Perhaps someone could clear something up for me. What is the order tha

Re: T4.1 : clientSideValidation

2008-02-14 Thread Ulrich Stärk
I attached some minor documentation improvement to http://issues.apache.org/jira/browse/TAPESTRY-1086 some time ago which documents the need of a @Body component in order for client side validation to work. Maybe someone could have a look at it and commit it... Uli Andreas Andreou schrieb: D

Re: [4.1] Checkbox component updates value to false regardless of selection

2008-02-18 Thread Ulrich Stärk
Bind the value property of your checkbox to a page property. E.g. in your page class: public abstract boolean isChecked(); public abstract void setChecked(boolean checked); and in your template: Hotels Uli Am Mo, 18.02.2008, 13:03, schrieb Andy Pahne: > > Hello, > > I have a problem with wha

Re: [4.1] Checkbox component updates value to false regardless of selection

2008-02-18 Thread Ulrich Stärk
it might be the right time now to post your complete page class and page template before we start doing wild guesses... Uli Am Mo, 18.02.2008, 15:34, schrieb Andy Pahne: > > Nope > > > > Andreas Andreou schrieb: >> That's weird... >> I have so many checkboxes working here... >> >> Perhaps you're

Re: [4.1] Checkbox component updates value to false regardless of selection

2008-02-18 Thread Ulrich Stärk
Andy Pahne schrieb: Ulrich Stärk schrieb: it might be the right time now to post your complete page class and page template before we start doing wild guesses... Here you are: Unless you are calling setSearchForHotels() or setSearchForHolidayHomes() in your parent class your code should

Re: form aware page and action links

2008-02-19 Thread Ulrich Stärk
I just got this great idea how to do it in T4: Use persistent fields and an EventListener like this: @Persist("session") public abstract Object getField(); @EventListener(elements="linkId1 linkId2 ...", events="onclick", submitForm="yourFormId") public void doSomething() { // do something i

T4 EventListeners broken?

2008-02-19 Thread Ulrich Stärk
Today I noticed a strange behaviour of T4's EventListeners. I wanted an Any component which renders as a button to submit a form and call my listener method after form submission. The docs say that's what the EventListener's submitForm parameter is for. So I went about and wrote an EventListene

Re: T4 EventListeners broken?

2008-02-19 Thread Ulrich Stärk
Forgot to add code examples: page class: public abstract class TestPage extends BasePage { public abstract boolean getChecked(); @EventListener(targets="submitFormAsync", events="onclick", submitForm="myForm", async=true) public void submitFormAsync() { System.out.println(

Re: Only reload components?

2008-02-20 Thread Ulrich Stärk
You could also go and reinvent the wheel. But if you were smart and using T4 you'd just add async="true" to your form component and you are set. If you also want to reload the comments on your page without reloading the whole page wrap them in an Any component and pass its id to the updateCompo

Re: Only reload components?

2008-02-20 Thread Ulrich Stärk
This also works out of the box with a DirectLink and you can even update a component when some javascript or dom event is triggered by simply adding an EventListener to your page class. E.g. @EventListener(targets="targetComponent", events="onmousover") public void updateSomething(IRequestCycle

Re: [4.1.5] Suggest component

2008-02-21 Thread Ulrich Stärk
This is the rendered code, could you please provide the corresponding template and page class code? Uli Am Do, 21.02.2008, 13:28, schrieb Andy Pahne: > Hi, > > I try to imlement a suggest feature with the Suggest component. > Unfortunatly the suggestions do not render properly. I had a look at th

Re: [4.1.5] Suggest component

2008-02-21 Thread Ulrich Stärk
clude some css or javascript somewhere that might interfere with the suggest component. If you do include something try leaving it out. Uli Andy Pahne schrieb: Ulrich Stärk schrieb: > This is the rendered code, could you please provide the corresponding > template and page

Re: [4.1.5] Suggest component

2008-02-21 Thread Ulrich Stärk
d. I can't see why it works for me but not for you. Do you have any entries in your info log? Mine is full of entries like listSource was called List contains 3 items, filter is 'de' Uli Andy Pahne schrieb: Ulrich Stärk schrieb: > Almost no is not none :) > > Your co

Re: [4.1.5] Suggest component

2008-02-21 Thread Ulrich Stärk
for your different behaviour in different browsers: I've got IE6 and FF2 here and with both it works. Uli Andy Pahne schrieb: Ulrich Stärk schrieb: Correct - everything. And it works here... I don't get it. It might be possible that your browser can't find ../css/demo.css de

Re: Vista problem

2008-02-23 Thread Ulrich Stärk
You are definitely experiencing some configuration issues here that have nothing to do with Tapestry. Your webapp isn't even loaded. Please go and read the Netbeans and Tomcat docs on how to deploy your webapp to Tomcat. As for the problem with the manager app: check the Tomcat configuration files,

Re: ognl message inside javascript

2008-02-24 Thread Ulrich Stärk
I guess you could do this with the Script component. Please refer to the documentation. Uli learner schrieb: i have javascript function like below.how to put ognl message key inside my alert as below... function doSomething(){ doSomething(); alert('ognl:key '); return callAnother()

Re: [4.1.5] @EventListener and dynamic responses

2008-02-27 Thread Ulrich Stärk
Your placeHolder hast to be a Tapestry component not just a div container. Just replace id="placeHolder" with jwcid="[EMAIL PROTECTED]" and it should work. Uli Andy Pahne schrieb: I am trying to show some parts of a page that were initially hidden, depending on some event that is asynchrono

Re: [4.1.5] @EventListener and dynamic responses

2008-02-27 Thread Ulrich Stärk
Oh sorry, sure it can only work if the whole form reloads because the form has to know of the now present input field. Uli Andy Pahne schrieb: Correction. It works when I update the whole form component, but not if I try to update only the [EMAIL PROTECTED] component. Thanks Ulrich, you po

Re: AW: T4: binding stylesheets to components

2008-03-11 Thread Ulrich Stärk
My web apps have a layout of context |-- Home.html |-- WEB-INF | |-- app.application | `-- Echo.html `-- css `-- style.css Echo.html is the template for a component which gets included in Home.html. If I include jwcid="@Style" href="css/style.css" rel="stylesheet" type="text/css" media="

Re: wiki update for Eclipse WTP instructions

2008-03-12 Thread Ulrich Stärk
Quote: This How-To was written and tested with the following configuration: * Tapestry 4.0 So if you change this HOWTO to use T4.1's DTD please also make sure that everything else works with T4.1 and update the "Tested Configuration" section. You should also emphasize somewhere in the beg

Re: Need to prevent entire page from rendering

2008-03-14 Thread Ulrich Stärk
In T4.1 have a look at the async and optionally the updateComponents parameters of the Form component. Uli parker-jones schrieb: I have a page, sort of a control panel, that I am using some ajax scripts, such as a timer that continually updates a div tag, and other similar things going on. I w

Re: How to use Autocompleter in tapestry4.1

2008-03-17 Thread Ulrich Stärk
The second and third parameters to DefaultAutocompleteModel are the names of fields of the objects you pass as the first parameter. I.e. if you had a User object with the fields id and name and you wanted id to be the keyField and name to be the labelField you would have to have getters for those f

Re: How to call EJB from T5 application?

2008-03-30 Thread Ulrich Stärk
HHB schrieb: Hi. In a Tapestry 5 application, how to call EJBs? Thanks. Look it up using JNDI or some other method and use it. Uli - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to call EJB from T5 application?

2008-03-30 Thread Ulrich Stärk
HHB schrieb: Is it possible to employ some kind of DI? what about writing a custom service and register it with T5 application? Ulrich Stärk wrote: HHB schrieb: Hi. In a Tapestry 5 application, how to call EJBs? Thanks. Look it up using JNDI or some other method and use it. Uli You

Re: Tapestry users declined for the first time in 3 years, says this researh site ...

2008-05-02 Thread Ulrich Stärk
Rob Smeets schrieb: Hi guys, I don't mean to cause any depression or controversy but I saw this research results and thought you might want to know. Because this makes me worry about the future of Tapestry. According to the research, Tapestry users declined drastically by 45% for the first time

Re: Instability in Tapestry 5.0.12-SNAPSHOT

2008-05-19 Thread Ulrich Stärk
According to java package naming conventions [1] the package name should reflect the domain of the developing organization which is org.apache.tapestry and not org.apache.tapestry5. These conventions are there for a purpose (in this case to ensure uniqueness of package names by using DNS names

Re: help in index page cache tapestry5.11

2008-05-22 Thread Ulrich Stärk
If there's not too much information to be stored, you could cache the result of your queries using one of tapestry's persitence mechanisms [1] or in an ASO [2] and only re-execute your queries when the data has changed. Uli [1] http://tapestry.apache.org/tapestry5/tapestry-core/guide/persist.html

Re: Setup render for authentication check?

2008-05-22 Thread Ulrich Stärk
I'd use the pageAttached method. Uli Am Do, 22.05.2008, 11:00, schrieb Leon Derks: > Hello > > Is the SetupRender method the correct place to check if the user has the > priviliges to view the page? > > For example something like this: > > @SetupRender > boolean setupRender() { > if(user has

Re: Russian symbols problems

2007-07-07 Thread Ulrich Stärk
Have you tried this: http://wiki.apache.org/tapestry/Tapestry5Utf8Encoding This will ensure that pages served by Tapestry are UTF8 encoded. For me this was enough to make T5 serve German UTF8 characters correctly. Uli Foror schrieb: I'm using message properties files in UTF-8 with russian s

Re: T4 - T5 Guide?

2007-07-12 Thread Ulrich Stärk
Indeed there is no automated way to upgrade to T5 but you also don't have to abolish everything. For example your T4 listener methods will become event handler methods, access to page properties via ognl will be done using a new syntax. Other things have similar counterparts in T5. You still ha

Re: [T5] Problem with special characters and forms

2007-08-01 Thread Ulrich Stärk
This has been discussed a dozen times before. Please search the list archives for UTF-8 related topics. Have a look at http://wiki.apache.org/tapestry/Tapestry5Utf8Encoding. Uli Marcelo lotif schrieb: Hi all, when i submit a form with a special character i get a crazy character on the java cl

presentation materials wanted

2007-08-02 Thread Ulrich Stärk
Hi all, I'm giving a 4-day workshop on web development with Tapestry at my university for some postgraduate students and wanted to ask if anybody would be willing to share his/her presentation materials with me. Thanks in advance, Uli

problems with tapestry-spring 1.0.0 and tapestry 4.1.2 when using maven

2007-08-02 Thread Ulrich Stärk
Hi List, I just stumbled over this problem while starting a new project using maven. This project ought to depend on Tapestry 4.1.2-SNAPSHOT and tapestry-spring 1.0.0 for Spring integration. Because tapestry-spring 1.0.0 depends on groupId tapestry and artifactIds tapestry and tapestry-annota

Re: Tapestry component library - searching for a treeview component

2007-08-06 Thread Ulrich Stärk
Have a look at the Tapestry Workbench sample application, there are two examples of how to display data as a tree. If I remember correctly one of those uses the Table component of the contrib library to render itself. Cheers, Uli Mateus Lucio dos Santos schrieb: Hi !!! I'm new to tapestry fr

Re: [T4.1]Returning a list to a page

2007-08-09 Thread Ulrich Stärk
You'll have a property for the list in page A and an abstract setter for this property. So now in page B just inject page A using the @InjectPage annotation, call the setter for this list and return the page object in your listener method. Or use the PropertyUtils.write(pageObject, "propertyName"

Re: [T4.1]Returning a list to a page

2007-08-09 Thread Ulrich Stärk
Where's the problem to do the same thing with the name of the calling page? Store the name in a string property of page B before activating it... Uli Paolo Scopa schrieb: No prob. As i said to uli, i might call B from different pages, not only A. Maybe i should use a common interface for those

Re: not found in application namespace ERROR!!

2007-08-13 Thread Ulrich Stärk
You forgot to write a corresponding page class for Page3. If you did make sure that you either referenced it in your Page3.page or that you put it into the package denoted by the org.apache.tapestry.page-class-packages configuration property (see http://tapestry.apache.org/tapestry4.1/usersguid

[T4] update documentation to reflect client:page and client:app state scopes

2007-08-17 Thread Ulrich Stärk
Hi, could someone please update the docs for 4.0 and 4.1 to document the client:app and client:page scopes introduced in July 2005? Maybe just copy over the desciption from hibernate.persist.xml. Cheers, Uli - To unsubscribe,

RE: [T4] update documentation to reflect client:page and client:app state scopes

2007-08-21 Thread Ulrich Stärk
Did so on saturday. Uli On Mi, 22.08.2007, 08:47, [EMAIL PROTECTED] sagte: > please file a jira issue for this. Otherwise it'll get lost. > >> -Original Message- >> From: Ulrich Stärk [mailto:[EMAIL PROTECTED] >> Sent: Friday, August 17, 2007 6:41 PM >>

Re: [T4] compputing url relative to the context

2007-08-22 Thread Ulrich Stärk
Let Tapestry inject the infrastructure:contextPath object like @InjectObject("infrastructure:contextPath") public abstract String getContextPath(); Then write some computeUrl method similar to this one (just typed this in, no guarantee that this will work). public String computeUrl() { Strin

RE: [T5] Marking fields in error

2007-08-22 Thread Ulrich Stärk
Right now it seems that the path for the marker image is hardcoded. But you could try to create a file org/apache/tapestry/field-error-marker.png in your classpath and store your own marker there. This should override the default marker. This is similar to http://wiki.apache.org/tapestry/Tapestry5H

Re: [T4] compputing url relative to the context

2007-08-22 Thread Ulrich Stärk
Well, rename computeUrl() to getYouNameIt() and access it using ognl:youNameIt from your template or page specification. Uli #Cyrille37# schrieb: Ulrich Stärk a écrit : Let Tapestry inject the infrastructure:contextPath object like @InjectObject("infrastructure:contextPath") publi

Re: T5:Simple form submit

2007-08-22 Thread Ulrich Stärk
And what exactly is the question? Angelo Chen schrieb: Thanks nick, it's just what I need, one more question: Nick Westgate wrote: There is a login example right here: http://tapestry.apache.org/tapestry5/tapestry-core/guide/validation.html Cheers, Nick. Angelo Chen wrote: Hi, I

Re: [T4] compputing url relative to the context

2007-08-22 Thread Ulrich Stärk
() { String locale = getLocaleItem().getLanguage(); return getContextPath() + "/Public/flags/" + locale + ".gif"; } and then simplify your expression to ognl:computeUrl. It's a question of style but I find it more readable that way. Uli #Cyrille37# schrieb: Ulrich Stä

Re: T5:Simple form submit

2007-08-22 Thread Ulrich Stärk
nent class org.example.hilo.pages.Login, but are not present in the component template but it still works, why? Ulrich Stärk wrote: And what exactly is the question? Angelo Chen schrieb: Thanks nick, it's just what I need, one more question: Nick Westgate wrote: There is a login example r

Re: DynamicSelectionList Hivemind NullPointerException

2007-08-22 Thread Ulrich Stärk
Well, some mandatory parameter of some component must not be null :-) How about giving us a bit more? Page template, page class, line in the template at which the error occurs... Uli Jacob Arnold schrieb: I'm trying to get the DynamicSelectionList component working in an existing Tapestry 4.

Re: DynamicSelectionList Hivemind NullPointerException

2007-08-22 Thread Ulrich Stärk
d the package names: http://lombok.demon.co.uk/tapestry4Demo/pages/dynamicSelectionList/TestDSLComponent2Source.html The error occurs on line 7 of TestDSLComponent2.page: class="gov.nmcourts.caselookup.pages.TestDSLComponent2"> Thanks, Jacob Ulrich Stärk wrote: Well, some m

Re: DynamicSelectionList Hivemind NullPointerException

2007-08-23 Thread Ulrich Stärk
ost(ApplicationServlet.java:168) ... I'm guessing I have some strange configuration, since I know this code works elsewhere. Here's how I specify the library in my .application file: specification-path="classpath:/man/library/ManSH.library"/> J Ulrich Stärk wrote: Plea

Re: T5: Hibernate

2007-09-09 Thread Ulrich Stärk
The Hibernate configuration element doesn't expect a package with annotated classes as one might assume but expects an annotated package with package-level annotations like @GenericGenerator. So you must explicitly add every annotated class to your Hibernate configuration with a element (or do

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

2007-10-18 Thread Ulrich Stärk
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 lowercase URLs which results in many org.apache.tapestry.PageNotFoundException since I use uppercase first letter of my pages)

Re: T4.1.3 : 100% CPU usage on tomcat due to server-side email validation

2007-10-23 Thread Ulrich Stärk
I just came to the same conclusion. The problem is with the ([-_\\.]*[A-Za-z0-9]+)* part of the regexp in the user as well as the domain part. Apart from that this regexp will reject email addresses which are valid according to RFC 3696 like [EMAIL PROTECTED] Uli andyhot schrieb: hmmm - nice

Re: T4.1.3 : 100% CPU usage on tomcat due to server-side email validation

2007-10-23 Thread Ulrich Stärk
I now remember where I saw that one before. Jeffrey Friedl included it in "Mastering Regular Expressions". In print! :) Uli andyhot schrieb: hmmm - nice report - looks like that specific email regex is problematic when the given string is not email and contains lots of chars (>25-30 result in

Re: T4.1.3 : 100% CPU usage on tomcat due to server-side email validation

2007-10-23 Thread Ulrich Stärk
I Just created a JIRA report and a fix for that problem. https://issues.apache.org/jira/browse/TAPESTRY-1857 Uli Ulrich Stärk schrieb: I just came to the same conclusion. The problem is with the ([-_\\.]*[A-Za-z0-9]+)* part of the regexp in the user as well as the domain part. Apart from that

Re: T4.1.3 : 100% CPU usage on tomcat due to server-side email validation

2007-10-24 Thread Ulrich Stärk
eep for both of you guys, or is it some time zone illusion?) Thx again Ch. 2007/10/24, andyhot <[EMAIL PROTECTED]>: thx for all - i'll see if i can have the test do performance check, and commit asap Ulrich Stärk wrote: I Just created a JIRA report and a fix for that problem. http

[T4] How to get the path a service is encoded to

2007-10-25 Thread Ulrich Stärk
I've got the rounded service encoded to the path /rounded by contributing to the tapestry.url.ServiceEncoder configuration-id. The exact line in my hivemodule.xml is . I now want to get the path the service is encoded to programmatically in a component class but I can't see how. Any ideas? Uli -

[T4] How to get the path a service is encoded to

2007-10-25 Thread Ulrich Stärk
I've got the rounded service encoded to the path /rounded by contributing to the tapestry.url.ServiceEncoder configuration-id. The exact line in my hivemodule.xml is . I now want to get the path the service is encoded to programmatically in a component class but I can't see how. Any ideas? Uli -

Re: T4.1.3 : 100% CPU usage on tomcat due to server-side email validation

2007-10-26 Thread Ulrich Stärk
0-9a-z]+"; Additionally, are email addresses like [EMAIL PROTECTED] allowed by the RFC? They are allowed by some mail providers, I actually own one such address. Ch. 2007/10/24, Ulrich Stärk <[EMAIL PROTECTED]>: GMT +1 Uli Christian Dutaret schrieb: Thx for the swift fix. I&

Re: non-Session Object for From Submission

2007-10-30 Thread Ulrich Stärk
zaxeer schrieb: Hi devs, thanks for your replies i am already doing some thing like this in pageBeginRender public void pageBeginRender(PageEvent event) { if (event.getRequestCycle().isRewinding()) { return; } if(getUSERINFO () == null){ set

Re: Initialize objects - like in HttpServlet's init()

2007-11-03 Thread Ulrich Stärk
T5 hast its own IoC container incorporated for which you could write a new service and have it injected into your page classes using the @Inject annotation. For more information consult the Tapestry IoC documentation at http://tapestry.apache.org/tapestry5/tapestry-ioc/. Uli llonely schrieb:

Re: After upgrade to T4.1.3: clientValidationEnabled together with PropertySelection does not work any more

2007-11-05 Thread Ulrich Stärk
Sounds like http://issues.apache.org/jira/browse/TAPESTRY-1806. I suggest you write a very simple test demonstrating the issue and attach it to the JIRA issue report. Uli On So, 4.11.2007, 20:48, spot_ sagte: > > Hi > > after upgrading my webapp from Tapestry 4.1.2 to 4.1.3 form components > with

Re: Tapestry 4.1.3 and hibernate integration

2007-11-05 Thread Ulrich Stärk
There are several ways to do this. One of them is writing a Hivemind service which handles the SessionFactory and have that injected into your pages (you have to make sure to properly open and close your sessions though). A very good example can be found in Kent Tongs book (http://www.agileskills2.

another tapestry 4.1.3 archetype

2007-11-05 Thread Ulrich Stärk
Hi all, for the workshop I held with some students a month ago I created a maven archetype that uses Tapestry, Hibernate and Spring. This one is very similar to the current tapestry-archetype but is based on more recent Tapestry (4.1.3), Hibernate (3.2.5.ga) and Spring (2.0.7) versions and also

Re: another tapestry 4.1.3 archetype

2007-11-05 Thread Ulrich Stärk
Ulrich Stärk schrieb: Hi all, for the workshop I held with some students a month ago I created a maven archetype that uses Tapestry, Hibernate and Spring. This one is very similar to the current tapestry-archetype but is based on more recent Tapestry (4.1.3), Hibernate (3.2.5.ga) and Spring

Re: asset from byte array or stream

2007-11-08 Thread Ulrich Stärk
An asset is nothing more than a representation of an URL to some kind of image or style sheet. When asked to return it's content it will employ the asset service to do so. You should create an engine service that displays the image data with content-type image/* and call it from your page (much lik

Re: Get application context from within a BasePage subclass

2007-11-20 Thread Ulrich Stärk
What version of Tapestry are you referring to? Tapestry 5 doesn't use subclasses of BasePage anymore, that's Tapestry 4. But you are trying to use T5s spring integration, that is a little bit odd... Have a look here http://www.nabble.com/another-tapestry-4.1.3-archetype-tf4754756.html#a13600914

Re: Finding a DOM node in tapestry-4.1.*

2007-11-23 Thread Ulrich Stärk
Block as well as RenderBlock don't render the tag name as used in the template, just the body specified within the Block component. If you want some enclosing element just wrap it up in a div element: Uli Ken in nashua schrieb: Well Upon examining the render

Re: [T4] Problems with Dialog component

2007-11-23 Thread Ulrich Stärk
I had a similar problem with the FloatingPane Dojo widget disappearing behing certain elements. In my case this was because Internet Explorer interpreted the z-index CSS attribute (which forces the FloatingPane to be rendered on top of every other element) different than Firefox. While Firefox

Re: Dynamic pages (or: arguments to pages)

2007-11-26 Thread Ulrich Stärk
With Tapestry 4.1 you would inject the WebRequest object and call getParameterValue() on it (see http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/web/WebRequest.html). To inject the WebRequest use @InjectObject("infrastructure:request") public abstract WebRequest getRequest();

Re: Dynamic pages (or: arguments to pages)

2007-11-27 Thread Ulrich Stärk
s on it But first, read about the external service and about implementing IExternalPage Ulrich Stärk wrote: With Tapestry 4.1 you would inject the WebRequest object and call getParameterValue() on it (see http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/web/WebRequest.htm

Re: Dynamic pages (or: arguments to pages) [T4]

2007-11-29 Thread Ulrich Stärk
These are just guesses, I haven't tried them nor verified them. I could imagine that the parameter isn't available via the WebRequest because the page didn't get called by a GET request directly but with the help of the service encoder, so your parameter isn't there anymore when the page get's

[T4] why/when use the external service

2007-11-29 Thread Ulrich Stärk
Hi List, I don't really understand when one should use the ExternalService and what exactly it is good for. According to the JavaDocs and TiA the external service enables me to bookmark pages and pass parameters to them. But according to my understanding I can create a bookmark to every page in

Re: [T4] why/when use the external service

2007-11-29 Thread Ulrich Stärk
eezers are used to decode-encode to strings making the process transparent to the developer (you can add your own squeezers, since for complex objects the whole instance is serialized) - ServiceEncoders are easy to writer + make nicer urls On Nov 29, 2007 11:21 PM, Ulrich Stärk <[EMAIL PROTECTED

Re: T4: From the client side, how do you programmatically update a component?

2007-12-01 Thread Ulrich Stärk
I can't follow you. You want a component to update itself asynchronously upon a user's click on a DirectLink? Why don't you just use DirectLink's updateComponents parameter with async="true"? Uli Kalle Korhonen schrieb: I have a use case where I need to "click on" a directllink to updatecompo

Re: Web Content Management Systems

2007-12-07 Thread Ulrich Stärk
You could write some components against the JCR API and access the underlying repository Magnolia uses (I don't know if this is possible with OpenCms). Have a look at the Jackrabbit website (that's the repository implementation Magnolia uses) to learn how to register the repository with JNDI. T

Re: Web Content Management Systems

2007-12-07 Thread Ulrich Stärk
on the roadmap is to implement the backend storage to be amazon s3. Performance is good because for example, all the information to display a image is returned in a single lucene document. meta information for the content is stored in the filesystem as xml files. Phillip - Original Message

Re: T4: Returning a file to be downloaded on response

2007-12-17 Thread Ulrich Stärk
Look harder :-) http://wiki.apache.org/tapestry/SendingDiferentContentTypes Apart from that this topic has been discussed several times on this list, just search the archives. You might also want to look at the http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/contrib/services

T5: translate input according to locale

2008-06-14 Thread Ulrich Stärk
Hi list, For a multi-language application I'd like my users to be able to input data according to their locale, e.g. different date formats (dd.mm.) or different ways of seperating decimal places (',' instead of '.'). In T4 the translators took into account the user's locale but in T5 this

Re: T5: translate input according to locale

2008-06-14 Thread Ulrich Stärk
the user's browser. Is there some way to get an authoritative answer as to which locale the user is using or do I have to see wheter the PersistentLocale is set and if not take the one from RequestGlobals? Uli Ulrich Stärk schrieb: Hi list, For a multi-language application I'd like

Re: T5: translate input according to locale

2008-06-15 Thread Ulrich Stärk
y5/corelib/components/Output.html for the input issue: i search for a suggestion too 2008/6/14 Ulrich Stärk <[EMAIL PROTECTED]>: Hi list, For a multi-language application I'd like my users to be able to input data according to their locale, e.g. different date formats (dd.mm.)

Re: Where can i get t5.0.13

2008-06-16 Thread Ulrich Stärk
tengxh schrieb: Where can i get the new version t5.0.13? 5.0.13 is still being voted on. As soon as the polls are closed and Howard has evaluated the votes he will put up the release. Give it a few more days or use the snapshot releases. Uli

Re: Select model issue

2008-06-25 Thread Ulrich Stärk
getValidBaseTypes has to return an Object which implements org.apache.tapestry5.SelectModel. If you want to filter out some enum values that shouldn't be displayed you could extend EnumSelectModel and overwrite the getOptions() method. In your own implementation make a call to the super class'

How to have localized translators

2008-06-25 Thread Ulrich Stärk
Hi List, I'd like my users to be able to input data in their respective locale. For example in most european countries you use the ',' to seperate the decimal places from the integer part of a number. For a quick workaround I'm using a patched version of Tapestry wich adds a Locale parameter

Re: T5$B!'(B Hibernate warning

2008-06-26 Thread Ulrich Stärk
Or create a file package-info.java in your package directory and put "package yourpackage;" into it. You can also add package documentation or package-level annotations to it. If you use JavaDoc this file will then be processed instead of package.html. Uli Am Do, 26.06.2008, 06:58, schrieb Daniel

  1   2   3   4   5   6   7   >