tapestry

Internationalized page properties in Tapestry 4.1.2

The login page in my Tapestry application has a property in which the password the user types in is stored, which is then compared against the value from the database. If the user enters a password with multi-byte characters, such as: áéíóú ...an inspection of the return value of getPassword() (the abstract method for the correspondin...

Setting ISO-8859-1 encoding for a single Tapestry 4 page in application that is otherwise totally UTF-8

I have a Tapestry application that is serving its page as UTF-8. That is, server responses have header: Content-type: text/html;charset=UTF-8 Now within this application there is a single page that should be served with ISO-8859-1 encoding. That is, server response should have this header: Content-type: text/html;charset=ISO-8859-1 ...

Should one use Tapestry 5 for a production release?

We're starting a large web project, mostly green field. I like the Tapestry framework for java/web solutions. I have concerns about starting a Tapestry 5 project since T5 is still in beta. However, if I understand the documentation correctly, T4 development will not be supported by T5 and up. My question: Should I begin a large project f...

How can I hide extra component span tags in Tapestry?

If I use a span tag to render a component like <span jwcid="@If" .../>, my HTML ends up with a bunch of useless span tags. Most of the time, that's ok, but in some cases, it's interfering with my CSS or making the page invalid. Is there a way to tell Tapestry to process the tag, but not actually render it? ...

Is there an easy way to add a "Choose" option to a Tapestry PropertyModel dropdown

I have a Tapestry PropertyModel for gender. Right now the dropdown just shows Male and Female because those are the only values in my model. I'd like to add a "Choose an Option" option. Is there a standard way to do this without having to add a fake value to my model? I'd also like it to be smart enough to know that if the field is re...

Tapestry 4: Asset Cache Control?

I use Tapestry 4, and whenever we push a release that changes any assets (image, style sheet, JS library), we get problems because users still have the old version of the asset in their browser cache. I'd like to set up some easy way to allow caching, but force a new asset download when we update the application. Simply disallowing cachi...

How Can I put information in a outputstream from tapestry5 ?

How Can I put information in a outputstream from tapestry5 ? I need a page when a user enters it open a dialog for save or open the file with the outputstream information. I write the next code: public class Index { @Inject private RequestGlobals requestGlobals; @OnEvent("activate") public void onActivate() { try { HttpS...

Using JSCookMenu in tapestry5

I'm try to upgrade my project using tapestry4 to tapestry5. And I'm looking for a component to use JSCookMenu in tapestry5. ...

How can I use InvokeListener in tapestry5?

How can I convert this code <span jwcid="permissionInEachStep@InvokeListener" listener="listener:onEditPermissionInEachStep"/> into tapestry5 or have a different way to invoke method? ...

What java web framework best accomodates web ui designers?

What Java web framework out there best supports a role of "web UI designer", that is, lets you: Use popular web design tools (xhtml validators, css editors, what have you) on your views/pages View changes without running on a server Rapidly prototype different UI options Supports a (somewhatly) clean separation between "developer" and ...

Smack api and Java

I am using Tapestry 5, Smack api 3.1.0. I have established a connection and am able to communicate with a user through the xmpp server but the replies i get are sent to the standard output as they come in: Chat chat = connection.getChatManager().createChat("[email protected]", new MessageListener() { public void processMessage(Chat c...

How do I use a base class or interface with a grid or loop component in Tapestry 5?

I have a concrete class A that extends BaseA and implements InterfaceA. I want to loop through a list of A using either the base class or interface as the looping variable. Trying something like this: <t:loop source="listOfA" value="propertyOfTypeBaseA"> ${propertyOfTypeBaseA.someField} </t:loop> gives me an error "Could not fin...

Piecemeal Conversion from Struts to Tapestry 5

I have a Struts (1.3.8) application that I'd like to convert to Tapestry 5. There will probably not be time to do the whole conversion in one fell swoop. I'd like to deliver new functionality in Tapestry and convert existing Struts / JSPs as time permits. Has anyone attempted something like this? Can Struts and Tapestry co-exist? ...

Difference between Apache Tapestry and Apache Wicket

Apache Wicket ( http://wicket.apache.org/ ) and Apache Tapestry ( http://wicket.apache.org/ ) are both component oriented web frameworks - contrary to action based frameworks like Stripes - by the Apache Foundation. Both allow you to build your application from components in Java. They both look very similar to me. What are the differen...

Is there any Wicket-like web framework to use with Scala (besides lift)?

Hello I want to start a project using the Scala language. While searching for web frameworks I've found Lift. However, it is not what I was looking for: a web framework that has complete separation of HTML and code. Lift does have some nice features (and a learning curve) but we need to have complete separation of HTML and code. I was h...

Technologies required to build an end to end web application?

I want to develop a web application, like an online scheduler. (Yes I know it's been done a million times.) Most of my experience is in Java, so I want to leverage that when considering technologies. I've primarily been a systems developer with little exposure to UI programming, so I think this is where I will need to do most of my lear...

How can you set focus to an HTML input element without having all of the HTML?

First, the background: I'm working in Tapestry 4, so the HTML for any given page is stitched together from various bits and pieces of HTML scattered throughout the application. For the component I'm working on I don't have the <body> tag so I can't give it an onload attribute. The component has an input element that needs focus when the...

Using Tapestry jwcid attribute and @Block component for CSS classing?

How does the Block component handle CSS classes? I have code like this: <style type="text/css"> .nameColumnHeader { width: 30%; } .nameColumnValue { width: 30%; vertical-align:top; } </style> ... <table> <tr> <th><span jwcid="nameColumnHeader@Block">...</span></th> <th><span jwcid="nameColumnValue@Block">...</span</th> <...

Expired Session Redirect in Tapestry 4

How can you change the page displayed by Tapestry 4 when the user's session expires? ...

How would you recommend I extend the Insert class in Tapestry 4?

I don't have much Tapestry experience so I don't really know where to start. I need to extend the Insert component with a new component, say NewInsert, that applies a given CSS class to what is being inserted. How should I do this? I basically want to end up with something that generates something like <span class="myClass">The value</...