T5 Embedded Components

2012-12-07 Thread captain_rhino
Embedded components I have a page (welcome) in which I am looking to use a custom simpletextfiled component to display numerous text fields (in the future I envisage simpledate and simple select components, The simpleTextfield contains numerous other divs, css and other components). public class

Base page action with null session object

2012-10-02 Thread captain_rhino
I don't expect the full asnwer just some general pointers to help me investigate... I have a simple base action that extends the majority of my page actions. Intermittently userWorkspace is null after only a few minutes of activity for users (session timeout set to 30 mins). Can anyone suggest a

foward to https

2012-09-19 Thread captain_rhino
using createPageRenderLinkWithContext appears to create a link with http. How do i change this to https? Thanks in advance. -- View this message in context: http://tapestry.1045711.n5.nabble.com/foward-to-https-tp5716403.html Sent from the Tapestry - User mailing list archive at Nabble.com.

How to use a html url tag in a form error message

2012-09-11 Thread captain_rhino
In an eror mesage for a form I would like to use within the error message the following text To correct error message please *click here* to complete the journey Unfortunatley all the special characters are escaped. I have used the t:outputraw component to previously wrap stuff. Is there a way

Intercepting exceptions/errors in logic within page objects

2012-07-19 Thread captain_rhino
I have several pages that several methods within them public class Page public void onActivate(EventContext ec){ //Code } public void onSuccess(){ //code } void onSelectedFromAButton(){ //code } In tapestry if any of the code goes wrong within my methods, in Tapestry wh

Non Maven project Tapestry 5.3

2012-06-21 Thread captain_rhino
For complicated company polictical reasons I need to demonstrate a non maven eclipse project. Does any have a good example of this they could share? An axample project or typical non-maven project structure. I am basically just looking to produce a tapestry war using eclispe export functionalit

memcached sticky session

2012-05-21 Thread captain_rhino
Is there any thing I have to configure or add to my tapestry project if i want to use memcached sticky sessions please with my apache tomcat server? Any experiances/general advice much appreciated. -- View this message in context: http://tapestry.1045711.n5.nabble.com/memcached-sticky-session-tp

OnValidate reset form values on error

2012-02-14 Thread captain_rhino
In my onvalidate I attempt to change a different form value from one that I was validating (reset it to blank) but the field always displays the original form value) and not blank as I would wish. Can anyone suggest anything obviously wrong? thx in adavnce @Property @Persist private String ans

Kaptcha - alternative libraries

2012-02-06 Thread captain_rhino
I have used the standard kaptcha and I'm happy with it. The problem is the end users (and the boss) don't think it is easily read.. I explained to him this is kind of how they are but he's seen others that look easier to read and have functionality such as a refresh icon (to change the text of the

Field predix and suffix's for required fields and currency

2012-01-20 Thread captain_rhino
I can see how the localisation of field labels are done in Tapestry... something like... with a properties file like email-confirmation-label=Confirmation Email but how are field post prefixes and suffix's handled. I need suffix's for required fields i.e. the field name followed by a "*" an

Creating Model objects

2012-01-17 Thread captain_rhino
I may have missed something here but when dealing with simple pages is it best to simple include the fields in your page objects or group them in 'model' classes (like Person below)? Is there good technical reasons to do it one way or does it come down to personal preference? Thx in advance.

Re: Advice on creating new components

2012-01-17 Thread captain_rhino
Thx for the advice! -- View this message in context: http://tapestry.1045711.n5.nabble.com/Advice-on-creating-new-components-tp5142727p5151135.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscri

Advice on creating new components

2012-01-13 Thread captain_rhino
Good afternoon. A few pointers on how to go about doing the following would be apprecaited from anyone please. I have a page where one and ONLY ONE of the following unique identifiers needs to appear on screen to a user, have values entered into those fields and have the values of the fields val

Re: How to handle urls for a White Label site

2012-01-03 Thread captain_rhino
I got some basic rewriting of differrent partners working. One for Lloyds and one for Amex. Simple requests such as http://localhost:8080/makeaclaim/lloyds/test or http://localhost:8080/makeaclaim/amex/test got url rewrote to makeaclaim.partner.test So good so far. I have a Test class where

Re: How to handle urls for a White Label site

2011-12-22 Thread captain_rhino
The following seems to work but I'm not an experieinced tapestry developer so comments are more than welcome. Thx for the advice so far. public Link transformPageRenderLink( Link defaultLink, PageRenderRequestParameters parameters) {

Re: How to handle urls for a White Label site

2011-12-22 Thread captain_rhino
I think i can see how to rewrite the incoming urls but the outgoing ones I seem to be stuck in a loop? Any suggestions? Am i coding correctly for outgoing urls please? import com.axa.cao.pages.partner.Test; import com.axa.cao.pages.partner.TestDetails; public class UrlLinkTransformer implement

How to handle urls for a White Label site

2011-12-21 Thread captain_rhino
A little xmas cheer to all! I'm in the process of creating a white label site to handle insurance claims for different partners. I'm looking for a general steer on how to handle the urls. The web page flow is generic for all the different white label partners. Currently external sites use the f

date field as 3 drop down fields

2011-12-06 Thread captain_rhino
I am looking to implement a date field as 3 separate drop downs lists of day, month and year in T5. Has anyone already developed a component that does this? -- View this message in context: http://tapestry.1045711.n5.nabble.com/date-field-as-3-drop-down-fields-tp5051531p5051531.html Sent from t

Re: kaptcha

2011-11-22 Thread captain_rhino
Is there a maven dependency for tapestry-kaptcha module or is there some other way I can build it? -- View this message in context: http://tapestry.1045711.n5.nabble.com/kaptcha-tp5013121p5014170.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: kaptcha

2011-11-22 Thread captain_rhino
Where do i get the tapestry-kaptcha module from? Is there a maven repository. Thanks for all help so far. -- View this message in context: http://tapestry.1045711.n5.nabble.com/kaptcha-tp5013121p5013697.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

kaptcha

2011-11-22 Thread captain_rhino
I might be going mad but how do I use the org.apache.tapestry5.kaptcha.components.KaptchaField org.apache.tapestry5.kaptcha.components.KaptchaImage component. I can see the API docs but is there an example and none of the compenents aoppear in my project? Any examples would be appreciated? I

kaptcha

2011-11-22 Thread captain_rhino
I might be going mad but how do I use the org.apache.tapestry5.kaptcha.components.KaptchaField org.apache.tapestry5.kaptcha.components.KaptchaImage component. I can see the API docs but is there an example and none of the compenents aoppear in my project? Any examples would be appreciated? I

Re: List Form Validation Error

2011-11-21 Thread captain_rhino
I think I've worked it out. referring to articles: T5: Recording errors for fields in a loop and Cross Validation in dynamic Forms The item you are iterating around must store the controlname of the element you ultimately want the error to appear on. When you create your list (probably is onAc

List Form Validation Error

2011-11-21 Thread captain_rhino
I have a form where I iterate around a list. Each input has its own submit button. When I validate the input it always marks the last element in the list as invalid and NOT the one that actually contains the error. A few other people seem to have had this issue. The posts mention setting the co

Validation of List objects

2011-11-18 Thread captain_rhino
I have a page object with the following @Property @Persist private List infoList; @Property private Section info; My tml then iterates around the list

Re: Dynamic Questions on a page - T5

2011-11-03 Thread captain_rhino
That would definitely seem to be the way forward. When formfragments become visible is it possible to use different Scriptilicious or Jquery effects like fade-in or slide down to make the form fragment visible and hidden and if so how do you integrate this. I guess it may have something to do wit

Dynamic Questions on a page - T5

2011-11-03 Thread captain_rhino
Firstly I'm still relatively new to Tapestry but know the basics but I ama reasonaly experienced struts web developer. I'm looking for a general steer on how to do the following in Tapestry 5. Any examples welcome but I'm not stupid or lazy enough to ask for a full solution. For my current proj

Re: Page url rewrite

2011-10-21 Thread captain_rhino
Thankls for your advice. I can see how you would capture request information using ActivationRequestParameter but cannot see how in a page context you would add parameters in the same way that addparameter works on a link? Link link = linkSource.createPageRenderLinkWithContext(PolicySign

Re: Page url rewrite

2011-10-21 Thread captain_rhino
I found a way of doing this unless anyone know any different. Is there a way to this with the page object rather than using a link. @Inject private PageRenderLinkSource linkSource; @Log public Object onSubmitFromPolicySigninForm() { Link link = linkSource.cre

Page url rewrite

2011-10-21 Thread captain_rhino
I understand how I can read from a query string ith Tapestry but how do i write a query string of a specfic page request. For example My initial request is myapp/redirect?sourceSiteId=aUniqueValue I use @ActivationRequestParameter to capture the value of the parameter. My redirect page then

T3.5 datepicker problem

2011-10-17 Thread captain_rhino
I've download T3.5 using maven and have just added a few datepicker to my simple pages, but none of the javascript datepickers actually work - they display but no interactivity. I've noticed that none of the js libraries are present in my project such as /assets/1.0-SNAPSHOT/stack/en/core-datefie

Tapestry integration with Maven and subversion

2011-08-22 Thread captain_rhino
I've been building a tapestry prototype over the last few weeks for a new project. I've been happily building away and running through jetty. Now has come the time that other developer(s) are going top have to work on the project. I am no expert in Maven but on a high level how would I integrate

Checking For Updates to a properties file

2011-08-18 Thread captain_rhino
I'm looking to be able to listen on changes to a proerties or resource file and then dynamically load those into static classes in my web app and I was wondering if anyone please had any example code for the following from the tapestry online docs. >From http://tapestry.apache.org/class-reloading

Re: Unable to resolve 'tapx/datefield' to a component class name.

2011-07-22 Thread captain_rhino
Thanks for you help. As a bit of a maven/tapestry novice I realised I had not added the dependcies in the POM correctly com.howardlewisship tapx-core ${tapx-release-version}

Unable to resolve 'tapx/datefield' to a component class name.

2011-07-21 Thread captain_rhino
Can anyone spot my deliberate mistake please? I currently recieve the following exception. Caused by: org.apache.tapestry5.ioc.util.UnknownValueException: Unable to resolve 'tapx/datefield' to a component class name. I'm just trying to use some of the tapx extension s. .tml file http://tapestry

Date Field with day, month year and datepicker component

2011-07-21 Thread captain_rhino
The current datepicker component does not enable individual day,month, year to be inoutted through 3 individual drop down boxes. I have seen some discussion on the subject but can someone point me in the right direction on how to achieve such a component? Is there a component out there that alred