The offender is **tapestry-bootstrap** as it rolls it's own version of
validation.js which is out-of-date (compared to 5.3.6). We've patched it
(will try to get that into tapestry-bootstrap lib) and it works.
Szemere
We have two web apps, both on Tapestry 5.3.6. One (app A) came through
prior Tapestry versions from ~5.0.x maven archetype. The other (app B)
started with 5.3.6.
The problem is number validation doesn't work in App A. It appears to be
because the numerifformat definition in the validation.js file
I've used both Tapestry (nearly 5 years) and Grails (1 year before junking
application).
Grails has some really nice features, such as url mapping and the built-in
MVC framework.
I didn't like:
1) Lack of type-safety. Many errors would present themselves only at
runtime, which slowed productivity
I'm getting a strange cast class exception with the grid component, along
the lines of:
Render queue error in BeginRender[admin/WidgetList:grid.rows.gridcell]:
com.companyname.data.Widget cannot be cast to
com.companyname.data.Widget_$$_javassist_0
The code is simple and clean and I don't get it e
I recently upgraded from 5.2.5 to 5.3, which I must say was very
straightforward. :)
A minor issue we've just noticed is, that Grid now shows as columns any public
static fields of the objects listed by the grid. Is this by design (a change in
spec) or a bug?
The workaround is simple, simply u
I see the too in development. Version 5.1.2?
Szemere
On 27 Oct 2011, at 16:43, Muhammad Gelbana wrote:
> Please specify the exact scenario to reproduce this issue and state the
> version you are using
>
> On Thu, Oct 27, 2011 at 12:17 PM, Leon Derks
> wrote:
>
>>
>> Hello
>>
>> I see this
oss" in:
>>
>>http://wiki.apache.org/tapestry/Tapestry5HowTos
>>
>> Cheers,
>>
>> Geoff
>>
>> On 13/09/2011, at 10:49 PM, Szemere Szemere wrote:
>>
>>> Has anyone got a tapestry app working successfully on JBoss7?
>>>
&g
Has anyone got a tapestry app working successfully on JBoss7?
We've been trying to port our Tapestry app that works nicely on JBoss4. Or
current issue is that browser request seem to make it through to Tapestry (we
can see TimingFilter results in the log) but nevertheless we get a JBoss style
4
We're getting occasional reports from users that the grid pager does not
allow them to jump to particular pages. For example, after the page loads,
user clicks on page 5 (out of 6 pages), but then clicking on page 4 keeps
them on page 5.
Has anyone else experienced this, or have a suggestion as to
Resurrecting an old thread. We recently upgraded from 5.0.18 to 5.1.0.x and
have unsuspectingly got hammered by this feature (bug).
When making application breaking changes like this between versions, it
would be nice if there was a warning or error message for it.
The docs are also out of date o
Afaik any Hibernate object stored in the HTTPSession will be
Hibernate-detached between HTTP requests. It is not refreshed/merged
automatically on a new HTTP request, so it will be outside the Hibernate
session on the second request which is probably not what you want.
It is generally a much bette
> I guess you're using a List or a Collection as the grid's source.
Yes.
Thanks for the suggestion, I will take a look at it.
I think however that it would be natural to use dictionary order as the
default ordering. Do others agree?
Szemere
The ordering in Grid sorts by character value (uppercase before lowercase),
not by dictionary order e.g.
ADrian
Aardvark
Adrian
Is there an easy way to change this?
Szemere
The method you used in 5.0.14 is no longer allowed. If you search through
the archives you will find out why; though as far as I recall, it is due to
the method being insecure or causing potential sharing of variables across
user sesssions.
So you have to replace it with something else. Personall
It may not be related but when I upgraded from Tapestry 5.0.18 to 5.1.0.5 at
the beginning of this week, I found that while createPageLink would accept a
null context, createPageRenderLinkWithContext would not.
Szemere
All this renewed talk about OnActivate, has finally piqued my interest in
digging down into EventContext. i should get to it next week. I never looked
at it before because there wasn't any documentation (18 months ago).
If EventContext is easy to use, then it should really be the only way to
acces
I have to say this feature nearly killed me when I started using Tapestry. I
just couldn't get the logic of how it's supposed to work. I don't think the
EventContext method is in the spirit of quick and easy programming, whilst
the onActivate doesn't seem very robust.
I solved the above issue by us
Excuse my ignorance, does Testify work with Tapestry 5.0.18? The current
version of Testify seems to require Tapestry 5.1.05. Is there a version
that works with 5.0.18>
Szemere
Using the BeanEditForm, my object has a numeric value (e.g. 120,000,000.00)
which gets displayed in scientific notation (e.g. 1.2E8). That's fine,
except when I try to save the validator complains that 1.2E8 is not a valid
number.
Is this a known issue (searching the mailing lists proved blank)?
+1
If found this Jetty Q affected my Tapestry experience. To fix it, I
commented out, the requestLog tag in the standard Tapestry POM, which
starts:
HTH,
Szemere
Just to complete my story, I've got JNDI working again by reverting to a
prior version of the maven-jetty-plugin. I forced maven to use version 6.1.7
(by adding a version tag), viz:
org.mortbay.jetty
maven-jetty-plugin
6.1.7
Tapestry Infodea explains it nicely. That was my working setup in T5 5.0.11.
But I've just upgraded to 5.0.18, which has a newer version of Jetty and so
as per Jetty website, I changed the jetty.env-xml configuration to add an
extra scoping parameter:
*[scope]*
* *
Quartz is an effective way of scheduling things. I've used the Quartz
servlet before - search the mailing list for my notes.
Szemere
Why not include the config needed for tapestry-hibernate in the pom, but
comment it out. That way you don't automatically get the cruft if you don't
want hibernate, but if you do it's really easy to figure out how to include
it.
Szemere
Feels like a Hibernate question, not Tapestry. Does your table have the
right index, do you need to have 10k transactions in a single web-request?
Szemere
Completely agree with the sentiments expressed. Too often I've had to use
Google or similar to find what I'm looking for in the Tapestry
documentation. Having it split across at least 4 different places and in
some places confused with Tapestry4 is awkward.
Szemere
Thanks Howard. Works and goes a long way! Saves about 70% of the start-up
time.
Szemere
I want to persist on a form the filename used in the file upload component.
Is there an appropriate way to do that? I'm worried about writing:
@Persist
private UploadedFile uploadfile;
because I think that could clutter memory with a lot of file streams (within
the UploadedFile).
Szemere
Thanks for the suggestion, thought I couldn't get that quite to work. I'm on
Tapestry 5.0.11 and got the following. Upgraded to 5.0.15 to see if that
made any difference (a better error message ensues), but it hasn't done the
trick.
5.0.11
[INFO] Starting jetty 6.1.7 ...
2008-11-10 21:24:14.344::I
Is there an easy way to have Tapestry auto-load or auto-request the start
page when the core Tapestry servlet loads up?
The first page to load when we restart Tapestry takes over 10seconds (mostly
because of Hibernate and number of linked pages), which we only get to when
making the first request
I've got to say, I prefer the low-tech way of just sorting the collection
before I give it to the Tapestry grid - it's a lot simpler than the above.
This doesn't explain why you have the above issue, but it does give you a
workaround.
Szemere
You're on the right track. Tapestry-hibernate essentially provides the
"session per request" paradigm in an easy to use way within Tapestry pages.
In the java file for a page you can now add:
@Inject
private Session session;
And any of the methods can use the session to pull data from your databas
+1 for t5.enhanced
I read that as category
"com.company.webapp.Page"
-->
"t5.enhanced.com.company.webapp.Page"
Szemere
I don't think so, at least not in ordinary Tapestry. For your example, I'm
not sure that even OGNL would help out.
I'm using a Loop in a Form to create a list of checkboxes. I'm having
trouble getting hold of the list after it has been submitted. How is it
possible to get hold of the collection of objects associated with the loop?
The individual checkBoxItems get serialised fine, but a persisted list of
them (
Sorry you also need, step:
5. In pom.xml add
quartz
quartz
1.5.2
:)
Szemere
We got Quartz working with:
1. In src/main/webapp/WEB-INF/web.xml, we add:
QuartzInitializer
org.quartz.ee.servlet.QuartzInitializerServlet
1
2. Put quartz.properties at:
src/main/resources/quartz.properties
3. Out job file at:
src/main/resources/quartz.jobs.xml
4. T
To integrate GWT and Tapestry, we're using separate projects in Eclipse.
One for GWT code (uses Ant as build tool) and the other for Tapestry (Maven
based).
I looked at maven-gwt a few months back and I decided against using it,
because it didn't seem easy to use, give a big enough benefit for lea
We integrated GWT in Tapestry in a basic but effective fashion. Tapestry
does the "single click then display page" stuff and GWT does the interactive
application functionality.
We treat GWT and Tapestry as separate projects, so the integration is
light. Tapestry has a template page wrapper around
This is a classic problem. The path to your assets is shifted by one level
because of the parameter you are passing.
Not sure of the fix for your specific case, but if you referenced an asset
like this in a .tml, you would use
href="${asset:context:org/atlog/mjweb/components/xfade2.css}"
HTH,
Sz
I don't have a solution to this, but would also be interested to hear of
one.
I can certainly recommend JBoss as a wrapper around Tomcat to solve the
classloader issues. It's auto-deploy feature is really effective. You could
say it's a little like taking a sledgehammer to crack a nut, but you can
slim the sledgehammer (JBoss) down and it does the job effectively and so
muc
Take a look at
http://wiki.apache.org/tapestry/Tapestry5HowToIncludeJavaScript
This explains how to do it.
Szemere
On Wed, May 21, 2008 at 6:23 AM, Ken <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I wrote a template file like below:
>
>
> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
>
>
>
+1 for org.apache.tapestry5
Tapestry 5 is fundamentally separate as a product from tapestry 4.
tapestry.v5 gains nothing extra. V6 is far off and marketing-wise it would
not be much of an issue to keep the package name at that time (under the
hood item, post sale).
Szemere
I agree with the sentiments above - the framework should provide basic
services and give others the ability to extend it. However I think there is
a lot of value in making it easy for folks to use popular bindings. I for
one, am not a big fan of having to incorporate additional code into my
project
Your images/pic.gif is relative to the current page url (which includes
your context parameters), so will get caught as a page request by Tapestry.
You should probably use src="${asset:context:images/pic.gif}" instead.
Szemere
On Mon, May 12, 2008 at 11:23 AM, Tomasz Dziurko <[EMAIL PROTECTED]>
It is generally wise to have your links in the form:
${asset:context:styles/style.css}
Then the links will work even if you have parameters that change the
relative depth of the URL path.
Szemere
Not sure about this specific case, but if you upgrade your Tapestry version
then even this might break. You are generally better off coding as (YMMV):
t:ac="prop:specificContext()"
Object[] specificContext() {
Object[] context = Object[2];
context[0] = "catalog";
context[1] = "somefil
I have a page that needs parameters to work
e.g. http://localhost/tapestryapp/pagename/3/4
which includes a grid component with sortable columns. Even though I have
an onPassivate method, when I click on the sort column link, the context
(3/4) is not included.
Q1. Should this work as described an
Mon, Apr 14, 2008 at 10:44 PM, Filip S. Adamsen <[EMAIL PROTECTED]> wrote:
> Hi,
>
> onActivate(Object[]) is always called first because it counts as a method
> having an infinite amount of parameters, so to speak. At least that's the
> way I see it.
>
> -Filip
&g
I've been playing around with onActivate methods recently, that is with
multiple parameters and multiple methods. I don't understand its behaviour
- it does not seem to match up with the lore on the mailing lists (apologies
for the lack of references). I was wondering if anyone has recent experien
Thanks - that was it.
My problem; having dug deeper now and lest anyone else runs into this; was
that:
mvn war:inplace tomcat:inplace
creates lib+classes directories under src\main\webapp\WEB-INF and mvn
clean doesn't get rid of them. Deleting these 2 directories did the
trick.
On Thu, Mar 6,
I experimented with Tomcat Maven plugin today and got my app working fine.
However when switching back to using Jetty (mvn jetty:run), I started to get
a strange error message:
2008-03-06 18:38:16.990::WARN: Failed startup of context
[EMAIL PROTECTED]
/appname,/home/user/appname}
java.lang.Runtim
I'm having trouble including an image source URL in my .tml files. The URL
has & and ? characters in it. If I use &, then the T5 XML validation
complains that I have unterminated entities (not surprising). However if I
replace & with & (ampersand-"amp"-semicolon) then the whole 5 character
string g
What you posted has
org.apche.commons
rather than
org.apache.commons
Are you missing an 'a' in apache?
On Jan 29, 2008 6:31 PM, Jacob Bergoo <[EMAIL PROTECTED]> wrote:
>
> Hi All,
> I am new to Maven 2 but I am learning as fast as I can. My plan is to set
> up
> a project that is working with Sp
I'm going through something similar right now. Looking at the docs:
http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html#orgapachetapestrycorelibcomponentstextfield
it seems that your:
value="user.loginUser"
determines the field that gets updated when the form is submitt
I too don't have the line with:
xml version="1.0" encoding="UTF-8"
and it all works fine in Eclipse 3.3.1.1 (I believe I have WST or at least
some of its plugins).
How can Tapestry 5 handle a scenario where I have a loop in a .tml file that
calls method in the page.java which then calls components to render (e.g.
PageLinks)?
Can someone point me towards example code?
Tks
59 matches
Mail list logo