Questions tagged [tapestry]

Apache Tapestry is a Java web application framework that is organized around building pages from reusable components. Tapestry is a component-based framework, attempting to structure web applications into small, manageable and re-useable parts. Components consist of a component class file and often a component template file; also, components can have their own JavaScript and CSS. Tapestry template files are XHTML files, so they can be edited in

Filter by
Sorted by
Tagged with
0 votes
2 answers
49 views

Tapestry with printThis.js including unwanted href URL in printed page

Tapestry 5.4.5 using printThis.js 2.0 When using the print function we are getting unwanted href URL's included in the printed page. Adding class="hidden-print" to the <t:eventlink> ...
0 votes
0 answers
47 views

How to make source maps available with requireJS in Tapestry 5

My goal is to use Bootstrap5 Tooltips with my Tapestry 5.8.1 web application. I try to use requireJS for my JavaScript code as much as possible. So I use the Bootstrap5 JS files in their separated ...
  • 1,061
0 votes
0 answers
56 views

Upgrade Apache Tapestry from 3.0.4 to 5.x or 4.x

I have a system using Apache Tapestry 3.0.4 (with hibernate 2.1.8/mysql 4.0.20), it got online on 2006. It is still running. Is it possible to UPGRADE from 3.0.4 to 5.x? It seems 5.x is a totally ...
  • 1,671
1 vote
1 answer
140 views

Tapestry: How to display an alert dialog from my Java code

I'm actually writing a java code in the setupRender() method. Depending of a value provided by the server side, i would like to display an Alert dialog box to the user. By clicking on ok, the ...
  • 337
0 votes
0 answers
91 views

How to display a tooltip during mouseover on a select Option?

I'm actually working on a form that include a list box with Select options (using Tapestry 3.58). In the tml file, the select box is build as followed: <t:select t:id="selectPo" t:value=&...
  • 337
0 votes
2 answers
282 views

Listening on Apache Tapestry form events

I'm a Back-end dev, and recently inherited a couple of legacy Apache Tapestry systems. My skills with Tapestry are null my knowledge on javascript medium. I want to disable a submit button right ...
0 votes
0 answers
84 views

How to Debug web app tapestry in IntelliJ with jetty runner configuration

I'm using intelij as IDE in application tapesrty5 and for server i'm using jetty runner as plugin for intelij the problem is when i'm trying to run as debug mode the break point never been trigged ...
0 votes
0 answers
76 views

Is there in Tapestry common property to convert null string from server-side to empty string on client-side?

I am newbie for Tapestry5. I have found that null string value from server-side in textfield produces NullPointerException. The option to change null value string to empty string and vice versa on ...
  • 22.9k
4 votes
1 answer
274 views

Tapestry (5.7.2) - Refreshing an outer zone from a internal component via XHR

we are encountering an issue with Tapestry (version 5.7.2) and zone refreshing from components. We have a page that contains a loop of (zoned) components, where each component has a async event (see ...
1 vote
2 answers
197 views

Tapestry - how to get other component's field

I have a tapestry class which loads a variable public class Component1 { Object onActionFromEdit(MyClass object){ String param = object.getMyParam(); ...} } I would like to access the ...
  • 174
0 votes
0 answers
72 views

JUnit tests for Generic Links in tapestry

I have developed UI page which has href to external link. Now this external link is built (with db based key values for http request parameters) in a class which extends GenericLink of Tapestry. I am ...
  • 1,217
1 vote
1 answer
99 views

how to disable past date in tapx-datefield

hi im using tapx datefield date picker in my tapestry project, and i want to disable past dates so user cannot select past dates, how can i do that, i have tried several method and discover that tapx-...
0 votes
1 answer
257 views

Tapestry does not allow dynamic components?

Using Tapestry 5.3.7 I need to create page which contains multiple dynamic blocks. Example page tml: <t:form> <t:loop source="chosenBlockIds" value="blockId"> ...
0 votes
1 answer
97 views

How can I control which URL <t:pagelink> renders?

Background Tapestry's pagelink component shortens the logical name of a page to a nice and handy URL. For example (found in the Tapestry Documentation), if the page class is org.example.pages.address....
0 votes
2 answers
98 views

Tapestry override Authenticator

I am trying to use a custom authenticator for tapestry-security (org.tynamo.security). I have a custom authenticator public class EnvironmentalRealmAuthenticator extends ModularRealmAuthenticator And ...
  • 2,845
1 vote
1 answer
51 views

Tapestry `EntityManager` vs `EntityManagerManager`

In Tapestry there are (mainly) two ways to obtain an EntityManager instance: By injecting the EntityManager directly: @Inject @PersistenceContext(unitName = MyPersistenceUnit) private EntityManager ...
  • 2,845
0 votes
1 answer
136 views

How can i refresh my page in tapestry after some interval

I want to auto-refresh my web page within every 30 seconds and there is one condition if that condition is true I don't want to refresh it. How I should configure it?
0 votes
1 answer
530 views

JAVA; Occasionally: The requested operation cannot be performed on a file with a user-mapped section open

We are running java application on Tomcat 8.5, and occationally we get a FileNotFoundException - stacktrace below. We have added the folder on exclusion list from windows defender, but with no results....
  • 21
0 votes
1 answer
574 views

Render queue error in BeginRender[backoffice/Index:pagelink]: 64001 org.apache.tapestry5.ioc.internal.util.TapestryException: 64001

I'm migrating from Tapestry 5.2.4 to 5.3.2 in order to be compatible with spring 5. But when i chaned the version in the pom.xml and run my code it's work. but when i launch the site web i have an ...
  • 1
0 votes
0 answers
398 views

Persist annotation works only value Strategy Client . Tapestry application

Hi i am a new tapestry learner. I had a hard time learning @Persist. @Persist annotation only works with Strategy Client value @Persist(PersistenceConstants.CLIENT). if I try to use other strategies ...
0 votes
0 answers
57 views

Is pagelink with a zone possible

Is there a way I can direct the pagelink component that can be tied to a zone. I tried using eventlink and delegate to return the instance of an injected page. This works, but I have a dynamic number ...
0 votes
1 answer
177 views

How to force Apache Tapestry update javascript?

After changes of javascript (or in separate file or as part of page) browser doesn't refresh it. Could it be done by Apache Tapestry? The first solution it is look like generating script hash and ...
  • 22.9k
-1 votes
1 answer
98 views

Java and hibernate one application separate databases

I have been trying to find a solution but with no luck. I have an Java application (Tapestry) and Hibernate to connect to database. Now there are 3 companies that want to use the same instance of ...
0 votes
1 answer
64 views

Access public final static field from tml page

I have a grid where I would like to load the data from method. This method is taking String as a parameter and produce necessary List as output. For example, it can look like this: public List<...
  • 958
1 vote
0 answers
124 views

Tapestry Page turning to next page : Click on the next page (if the table content on the next page is editable, tapestry will report an error)

Click on the next page (if the table content on the next page table element contains <input: type="text"> ) org.apache.tapestry5.ioc.internal.util.TapestryException: The elementValue ...
0 votes
0 answers
59 views

How to use Tapestry IoC-Services on Websocket-Endpoints events like @OnOpen

In short, i want to know how i can get the message "We have some magic!", when i open a connection to the following websocket endpoint. Obviously, I still lack a little understanding here. First: The ...
  • 11
1 vote
1 answer
117 views

How to create a specific path in a maven archetype? [duplicate]

I want to make an Maven archetype with the following directory structure: /src/main/java/com/example/myapp/pages /src/main/java/com/example/myapp/components /src/main/java/com/example/myapp/services ....
  • 11
0 votes
0 answers
152 views

AjaxResponseRenderer in tapestry 5.1

I am working in a project with Tapestry 5.1 I have a problem injecting AjaxResponseRenderer because it doesnt exist in Tapestry 5.1 Here is what I want to do Myclass.java @Inject private ...
  • 588
1 vote
1 answer
79 views

Cannot execute Maven goal to build Tapestry 5.4.x from Getting started guide nor from the example source using Maven

I try to execute the Maven goal to build and run Apache Tapestry 5.4.x locally but it always failed: Ideas I tried: IntelliJ official Plugin arch type Getting started from tapestry.org Hotel booking ...
  • 2,175
1 vote
0 answers
129 views

How can I implement the PersitenceProvider into the runtime environment for a tapestry project?

Basically, I'm a newbie in Tapestry and I have to work on a project with this framework. In order to do this, I started the Tutorial Point and DoubleNegative jumpstart tutorials. So far, I managed to ...
  • 11
0 votes
2 answers
202 views

Why Jboss 7.2 is overwriting HTML form action path with the domain instead of relative path?

We are migrating our aplication server from Jboss EAP 6.4 to Jboss EAP 7.2 that is running an tapestry 5.4.1 application. When the page is loaded from an iframe, the server adds the domain to the ...
1 vote
2 answers
388 views

Is it possible to inject implementations for arbitrary types with Guice?

My Issue I am migrating from Tapestry IOC to Guice and I would like to for Guice to forward all unresolved injection requests to Tapestry IOC. This works in the individual case for example: bind(...
  • 393
0 votes
1 answer
152 views

How to implement pager change event in Tapestry's grid

How to implement pager change event in Tapestry's grid? I've read the documentation, but couldn't find the answer. So what I'm trying to do is, I want to reset the selectedItem to null everytime the ...
0 votes
2 answers
60 views

Checkboxes Inside A File Tree

So the issue is that I'm getting a runtime error about checkboxes generated inside a file tree needing to be inside a form element. Thing is, it is inside a form element but the form element is ...
0 votes
1 answer
189 views

Why @Secured is not working in Tapestry 5.4.0?

I just upgraded Tapestry 5.3.8 to 5.4.0, and then I found the @Secured annotation has an issue. If I go to page which has this @Secured, the exception org/apache/tapestry5/services/...
  • 51
0 votes
1 answer
119 views

JUnit5 tapestry messages NoSuchMethodError

I have a few tests using tapestry messages with Mockito like that: @Test void messageTest(@Mock Messages msg1) { Set<String> res = new HashSet<>(); res.add("1"); res.add("2");...
  • 2,845
0 votes
1 answer
132 views

submit form and store data in database using tapestry

I have been praticing tapestry for form submission and submitting data into database using hibernate. I am referring below two links for it. https://tapestry.apache.org/using-beaneditform-to-create-...
user avatar
0 votes
1 answer
430 views

Redirect from old URL to new URL in Apache Tapestry

I am brand new to Tapestry, so apologies if this is extremely easy to achieve, or if I am wrong about his things fit together. I a trying to redirect from an old URL to a new URL in tapestry. ...
  • 2,425
0 votes
1 answer
462 views

Tapestry page and API

I have an application which offers a frontend but should also allow API calls (modifying the application). Therefore I have an Index class which redirects to the frontend when the context is not ...
  • 2,845
0 votes
1 answer
217 views

Running Tapestry 5.3.8 on JBoss 7.1.1

I have run into multiple problems during JBoss 5 to 7.1.1 migration. One of them is Tapestry not working at all. The only "helpful" sign of this bug is that server responds with 404 whenewer I try to ...
0 votes
1 answer
665 views

Tapestry validation on disabled field

I basically have a textfield which may not be empty, so I added this validation: t:validate="required" (I actually have a few more validation criteria but they aren't relevant here). However, this ...
  • 2,845
0 votes
1 answer
199 views

Apache Tapestry @CommitAfter does not work after redirecting to another page

I have the following scenario in MyPage.java: import org.apache.tapestry5.Link; import org.apache.tapestry5.annotations.OnEvent; import org.apache.tapestry5.hibernate.annotations.CommitAfter; public ...
  • 982
0 votes
1 answer
121 views

Log event calls in tapestry

I want to log all event calls. For example if a user clicks on an ActionLink I want to get the information that the event Action just occurred. In the documentation regarding logging it is stated ...
  • 2,845
2 votes
1 answer
237 views

Tapestry event dynamic components

I want to implement an eventhandler for a component, which is dynamically generated. That means I have a Table, whichs source is bound to a custom TableModel (which implements an interface ...
  • 2,845
1 vote
1 answer
69 views

Tapestry SelectModelFactory Multiple LabelProperties

I have a select dropdown in a Tapestry form that is populated by objects through a SelectModelFactory. I am currently displaying the first name of the object to the client but I would like to display ...
1 vote
1 answer
197 views

Tapestry JPA Jackson Deserialization

I'm working on a project I didn't initially create, in which the data was stored in-memory. I'm curently moving this data into the database. I'm doing this using hibernate and tapestry JPA. At some ...
  • 2,845
0 votes
1 answer
5k views

Hibernate Unable to load class []

I recently added a few features (connecting database tables to other tables) using JPA (with hibernate). It worked fine before, but now I'm getting the exception org.hibernate.boot.registry....
  • 2,845
0 votes
1 answer
37 views

apache shiro url matching with apache tapestry

So here is my configuration configuration.add(factory.createChain("/abc/*") .add(factory.anon()).build()); configuration.add(factory.createChain("/pdf/pdfReport/*") .add(...
  • 2,653
1 vote
1 answer
308 views

Error creating quickstar maven project IntelliJ

I have the following error when I try to create a Maven Project using quickstart archetype. I am using IntelliJ 2018. This are the steps I do: Select archetype Maven configuration This is the error: [...
  • 202
0 votes
1 answer
49 views

Localization of e-mail templates in Tapestry 5?

Tapestry provides a great localization support for their pages and components. I would like to send localized e-mail corresponding to the users language preference. Anybody has come across a solution ...
  • 41

1
2 3 4 5
20