tapestry

How do I create a custom text field in Tapestry5 that renders some Javascript onto the page?

I have been trying to create a custom textfield in tapestry which will render some javascript when it gains focus. But I have been having trouble trying to find an example of this. Here is some of the code i have started off with: package asc.components; import org.apache.tapestry5.ComponentResources; import org.apache.tapestry5.Field...

Help creating a JavaScript mixin in Tapestry5?

I am creating a mixin which renders a javascript file when a textfield gains focus. I am new to the idea of mixins in Tapestry, and I am unsure of where to place my original javascript file which i wish to run when the textfield gains focus. The following is an example of my code: The Java mixin class: package asc.mixins; import org....

How to display a confirmation message in Tapestry5?

I am developing a website as part of my final year project and I want to display a message which confirms that an email has been sent. I know how to display custom error messages on a form i.e. You cannot go any further until the following errors are fixed : login name not known! I want to display a message which will say: your email h...

Code a search on my tapestry website?

What is the best way to code a search for my website developed in tapestry? I have the following code in my layout.tml: <div id="search" > <form method="get" action="#"> <div> <input type="text" name="s" id="search-text" value="" /> <input type="submit" id="search-submit" value="GO" /> </div> </form> I am just unsure o...

Tapestry 5, loading css from filesystem

We are creating a Tapestry 5 webapp with an external designer creating and maintaining the css-files of the application. We would like him to be able to make changes to the css-files without the need to change the webapp, prefarably in the configurable path in the filesystem. So what would the best way to do this with Tapestry 5? ...

tapestry5 page to render plain text

Hi All, I've been looking but can't find the the documentation: Is there a way to have a page render a response without the wrapping HTML elements and just print whatever is provided in the body of the tml or alternatively whatever is set in MarkupWriter.write during @BeginRender? I need a page that does some server side processing an...

Background image fixed with vertical scroll bar in IE, broken by Tapestry5 components/css

I have a gradient background image in my web application, it goes from dark at the top to light at the bottom. In Firefox, this image is handled properly, where upon scrolling vertically downwards on the page, the dark top section disappears. However, when I started testing in IE (I'm using IE8) the background image stays fixed behind t...

How to use a java socket in tapestry5?

How do I implement a java socket in tapestry5? What I want to do is create a socket which I can send an XmlHttpRequest over, through a piece of javascript code. function sendPost(url, postdata, callback) { xmlHttp=GetXmlHttpObject() if (xmlHttp==null) { alert ("Browser does not support HTTP Request") return } xmlHttp.onready...

Tapestry / JDBC - Storing Date

So Im using Tapestry and trying to store a date from a beaneditform into a simple Access database. It wont work, Im getting Null pointer exceptions and I cannot understand why. String onSuccess() { System.out.println("in on success!"); String nextPage = null; try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); connection =...

Displaying an applet in tapestry5?

I am getting a strange error when trying to display an applet on a page in my tapestry application. The error says that there is an incompatible magic value. Is there a certain way to display applets in tapestry? Any help would be great! ...

Updating a zone inside a form in Tapestry 5

I've got a Zone inside a Form, the Zone is updated with a block containing input fields which I would like to bind to the parent Form. Unfortunately this doesn't seem to work quite as easily as I hoped as I am greeted with the following error message. The Description component must be enclosed by a Form component. [at classpath:...Page....

Modifying FormInjector context information in Tapestry 5 dynamically

My current problem regards updating context information dynamically in FormInjector, my previous question Updating a zone inside a form in Tapestry 5 probably contains useful background information. I added the following in my template. <div t:type="FormInjector" t:id="injector" t:context="item.id"/> And the following in my component...

How to deploy a project developed in Tapestry5?

I have just completed a project as part of a college degree. However I would like to deploy the project and make it live. I am unsure of how to do this as I have never done it before? I know I need to buy a domain name and some server space to host the project. If anyone can point me in the right direction that would be great? Thanks in...

How can I lose my layout when adding Hibernate support to Tapestry?

So, I've started going through the tutorial on the Tapestry site. All fine, the application runs, and I get the starting page. But, the moment I add the libraries to my POM, and the project gets refreshed, I lose my Layout component, and all the 'properties', (So message:greet doesn't work anymore). How does this work? And more import...

Extract ID from Tapestry URLs

I have a tapestry url that looks like http://localhost:8888/forwardtask/88 how do i get the 88 bit? thanks. Tapestry is such a pain to use ...

Tapestry 5.2 where do I define a class?

I have a class that I am using for each row in a grid, it is the mix of multiple entities data. the question is where to put it? I tried placing the class in the component package and instantiating it within my page, tried returning the class from an injected service, and nesting the class within the page POJO. in all cases it will work ...

Tapestry error "does not contain a component"

Hi, i have this exception in a Tapestry 3 page. Component ????????????$Enhance_49@d4159f[??????Page] does not contain a component xComponent. The component exists, nobody here knows what kind of problem i have. Any help? ...

spring ntlm showing blank page on public ip

my tapestry4-springntlm application is able to access successfully inside (LAN),internal ip address. but when we set it to external ip address and access it from outside, i get 'blank page' 401. i suspect is because spring security setting. i'm trying to acess http://202.xxx/myapp/app and get 401+blank screen (fail)-see below my appC...

Tapestry5: Page with structure like page-loop-customComponent-form does not work

Hi All! I have the following situation: I have Page which activated in some context (for example "/page/ctx1") I have component DayJournalItem which inserted in page via t:loop <div t:type="Loop" t:source="journalDays" t:value="journalDay" t:encoder="dayEncoder"><t:DayJournalItem day="journalDay" cacheContainer="cacheContainer...

Tapestry dynamic generated image

Hi all. My Tapestry5 application generate dynamically images with jFreeChart every day. My problem is that i don't know how to show. I have tried to save them into the webapp folder, but it seems impossible, no file is created inside. I have tried a solution with StreamResponse without result. Another one is about IEngineService but ...