Hi LLTYK,
you need a corresponding passivate Method in your page class for the "t:ac" to
be appended to created links. Or use the annotation @PageActivationContext on
your fields. Maybe that causes your problem.
Regards nillehammer
- original Nachricht
Betreff: T5.2 - Activation
Hi Benny,
put the following method into your class file:
@SetupRender
final void renderDocType(final MarkupWriter writer) {
writer.getDocument().raw("");
}
If you use a central Layout component, put it there. Otherwise put it into the
page classes.
I have tested this with Tap 5.2, but it s
Hi List,
I have just stepped into the same problem as the original poster of this
thread:
http://tapestry.markmail.org/message/ma3wvd6rk4fm56hr?q=SupportsInformalParameters#query:SupportsInformalParameters+page:1+mid:3ma5dlzcmvjjyoit+state:results
I found the solution described by Josh Canfiel
Hi Donny,
If you think a bit further, assigning the value based on the type is the only
sensible way to do it. If the value was assigned based on the variable name,
you would have to use that exact variable name in every component and page you
want to use your SessionState-Object. That is extre
Hi list,
I've got an entity "Area" which can have child-Areas asf. I want to implement a
component "AreaDisplay" that renders an actionLink for each area that shall
update a zone with children. The tml is as follows:
http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";
xmlns:p="tapestry:p
Hi Howard,
just a minor error. On the index page (http://tapestry.apache.org/index.html)
the paragraph "Tapestry is ... scalable" occurs twice with slightly different
content. (Or was that on purpose? :-)) ) Thanks for the great work, nillehammer
- original Nachricht
Betreff: Tapest
p; Online Director
>
> Staufenbiel Institut GmbH
> Events & Recruiting Solutions
>
> Wildunger Straße 6, 60487 Frankfurt am Main
> www.staufenbiel.de www.mba-master.de www.absolventenkongress.de
>
> Tel.: +49 (0)69 25537-140
> Fax: +49 (0)69 25537-2140
>
> Gesc
ender not called for components
Gesendet: Mi, 17. Nov 2010
Von: Stephan Windmüller
> On Wed, 17. Nov 2010, nille hammer wrote:
>
> > > |
> > > |
> > > | public boolean isSetupRender() {
> > > | // Do stuff
> > > | return false;
> > &g
Hi Stephan,
> |
> |
> | public boolean isSetupRender() {
> | // Do stuff
> | return false;
> | }
I don't know whether this will solve your problem, but you don't need to put in
an extra t:if to prevent your component from rendering. I suggest doing the
checks in setupRender and return
Hi Jens,
just to make sure:
> maybe I wasn't quite clear: on some startups my dispatcher is used (and than
> is always used, which is what I want). On other startups (i.e. restarting
> jetty/tomcat) the dispatcher is never used. Though log show, that it is
> instantiated. But then it feels, as if
might be happy with
POST-requests. That too would spare you from the problems described in my
previous mail. In this case you would't be using the activation context but
forms.
Cheers nillehammer
- original Nachricht
Betreff: Re: Re: XML requests
Gesendet: Mo, 15. Nov 2010
Hi niksami,
> Basically I need to receive XML as a parameter, for
> example as a String in onActivate() method.
I would not recommend to use this approach. And if you do it although, beware
of some special characters in the XML that might be interpreted by Tapestry.
E.g. an XML containing a "/"
Hello Niksa,
> In my application I need to receive XML requests, and then to send the
> response back to the client in XML format too. I tried to find some nice
> solution here, but with no success. I hope you can give me some short code
> examples.
As far as I understand this is not supported ou
Thiago you Brazilian Genius!
> Are you using Windows?
Hate to admit, yes. I have to use Windows, because it's a company Laptop.
> If yes, read this:
> http://docs.codehaus.org/display/JETTY/Files+locked+on+Windows.
I have read that. I have copied the hole configuration for the default servlet
Hi folks,
I am starting to develop mixins. As a start I have implemented the
Confirm-Mixin exactly as shown in the wiki:
http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplained. Everything
works as expected.
Next I wanted to tweak the JavaScript a bit. But after saving the changes and
Thanks for the answers. I understand that ServiceBinder (and all the stuff
behind it) come from tapestry packages cannot invoke my package-private
constructors. By now I code builder methods for all implementations. That works
for me and is not too much more code than calling the bind() methods.
ate
> classes. There would be IllegalAccessExceptions.
>
>
> On Thu, 4 Nov 2010 14:37:21 +0100 (MET), "nille hammer"
> wrote:
> > Hi List,
> >
> > long time no write.
> >
> > I have got used to defining a public interface for my services pair
Hi List,
long time no write.
I have got used to defining a public interface for my services paired with a
package-private implementation. Tapestry's autobinding with ServiceBinder
complains about the implementations not being public. I do not want to make the
implementations public. So I am af
Hi Guys,
great news!
> I am already wandering how I tested before without it!!
Well in the end I did not automatically test my pages at all, just manually
(please don't beat me! ;-) ). But I'm starting right now I promise!
Regards, nillehammer
==
http://www.winfonet.eu
- original Nachricht --
Hi learning,
use Tapestry's RequestGlobals service
(http://tapestry.apache.org/tapestry5.1/apidocs/org/apache/tapestry5/services/RequestGlobals.html).
It gives you access to the HttpServletRequest which inherits a method
getRemoteAddr() from ServletRequest.
You can inject RequestGlobals into y
Hi,
This is NOT a thread issue, but behavoiour that one would expect with values
persisted in the session. The requests coming all from within the same session
store and fetch the (same) value in the sesion.
Add this to the java file
@PageAttached
private void showPageInstance() {
System.out
Hi learning,
use the if-Component in conjunction with a parameter for your layout-component
that controlls the rendering. Your layout.tml would contain
your Layout.java would contain
@Parameter
@Property(write=false)
private boolean cachingDisabled;
And in the tml of the page us
Hi Kai,
instead of ActionLink use EventLink, if you can.
The tml would look like:
more
more
I´d use a more "eventish" name for the event. How about "detailClicked"?
Regards, nillehammer
==
http://www.winfonet.eu
- original Nachricht
Betreff: Re: ActionLink in bundle message
Gesende
Hi Peter,
I presume that the error occurs, because in developent environment the file is
accessible as file whilst in production it is packed into a jar.
There are some other implementations for interface SymbolProvider, look here:
http://tapestry.apache.org/tapestry5.1/apidocs/org/apache/tapes
: T5 Module methods call
Gesendet: Mo, 29. Jun 2009
Von: Thiago H. de Paula Figueiredo
> Em Mon, 29 Jun 2009 16:15:51 -0300, nille hammer
> escreveu:
>
> > Hi Haipeng,
>
> Hi everyone!
>
> >> but this one is not called:
> >> public s
Hi Haipeng,
> but this one is not called:
> public static void contributeIgnoredPathsFilter(Configuration
> configuration)
> {
> configuration.add("/dwr/.*");
> configuration.add("/scripts/.*");
> configuration.add("/logout");
>
> }
The contribution method is
Hi Angelo,
This is done in the pom.xml. The important tag is
org.apache.maven.plugins
maven-war-plugin
WEB-INF/classes/log4j.properties
true
Regards, nillehammer
==
http://www.winfonet.eu
- original Nachricht
Betreff: t5: text file and tomcat deployme
Hi Stephan,
> Of course a user should not be assigned twice
> to a job.
This sounds like a valid use case for a Set rather than a List. To achieve this
implement a reasonable equals-Method for User and rewrite your Job-class/your
helper Bean DisplayJob to return a Set. As implementation of Set us
Hi Cid,
I have just been to the toilett and have thought about your question. Maybe you
could nest component B in component A directly rather than in the page? Example
follows:
in page.tml
...
...
in a.tml
...
...
Would that be an option?
Regards, nillehammer
==
http://www.winfonet.eu
ry key) and some other
> info from database and renders it...
> another component needs this ID to query DB and render some other
> information...other way is that it has to make unnecessary same query to
> first get ID and then use it ! So what do you suggest ?
>
>
>
>
>
Hi Peter,
Isn't this a question of disambiguation of Services either with ids or with
t...@local annotation as described here:
http://tapestry.apache.org/tapestry5.1/tapestry-ioc/service.html ? Or did I get
lost somewhere?
Regards, nillehammer
==
http://www.winfonet.eu
- original Nachri
Hi Cid,
You could use Tapestry's Envronment feature. Look here for documentation:
http://tapestry.apache.org/tapestry5.1/guide/env.html
Although I think you should design your components a bit differently, so that
you don't need to do this. Maybe you could give us some more details on your
spe
Hi Gutemberg,
Grid needs a collection as its source parameter. HashMap (i.e. the
Map-Interface) is no collection itsself, but provides two methods to get the
collections "Collection values()" or "Set> entrySet()". Use
one of those as source for Grid.
One sidenote, HashMap does not garantuee
Hi Kalle,
> How does the page pool work - are less used pages removed from
> the pool only when other pages push them out or is the cache cleared
> periodically?
Page pooling is done separately for each page (and localization of the page).
I.e. If you have a Page MyPage for locale de and for en t
Hi Martin,
thanks for the hint.
>
> protected Class getValueClass()
> {
> return (Class) ((ParameterizedType)
> getClass().getGenericSuperclass()).getActualTypeArguments()[0];
> }
>
>
> I use something similar in DAOs, idea came from here:
> https://www.hibernate.org/328.html
Similar to t
Hi Thiago,
> Hi Hammer! :)
Friends call me nille.
> Hey! That's my open source code being used by someone besides me! Nice. :D
Just trying to learn from the masters ;-)
> .Maybe the solution to what you want to do is to use
> ApplicationStateManager directly.
That's the trick! Thinking about y
Hi Kai,
I use a layout component for every of my pages (look
here:http://tapestry.apache.org/tapestry5.1/guide/layout.html). So this seems
to be a good place to include the stylesheet. I use a single file for my hole
app.
Regards, nillehammer
==
http://www.winfonet.eu
- original Nachrich
Hi List,
in many of my pages I find myself doing similar things. I collect data with a
form and store it in a SessionState field. Then i forward to a summary page. In
onActivate of summary page check for existence of SessionState value whith
boolean valueExists. If value exists I show the summa
Hello Charles,
according to PrimaryKeyEncoder's api-doc
(http://tapestry.apache.org/tapestry5.1/apidocs/org/apache/tapestry5/PrimaryKeyEncoder.html)
a ValueEncoder should be used. See docs here:
http://tapestry.apache.org/tapestry5.1/apidocs/org/apache/tapestry5/ValueEncoder.html
I myself have
Hi Igor,
that is great news. Can't wait to get a copy of that. Be sure I will travel to
Düsseldorf to have it signed by you ;-)
Greetings from Darmstadt and have a nice weekend, nillehammer
==
http://www.winfonet.eu
- original Nachricht
Betreff: Re: best book for T5
Gesendet: Fr,
Hi Thibaut,
this is not an ajax problem. The important part of the error message is "The
Select component must be enclosed by a Form component" t:select is a tapestry
component that can only be located somewhere within t:form tags.Something
similar to the following should work:
figuration.addInstance("PageRender",
> PageRenderDispatcher.class);
> }
>
>
> I think you have to specify one more constraint to insert your
> Dispatcher between the ComponentEvent and PageRender dispatcher.
>
> configuration.add("LoginDispatcher", loginDispatche
Hi List,
I have implemented a LoginDispatcher like explained in the wiki
(http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatcher). Then I
contributed it to the MasterDispatcher's configuration with the following code:
configuration.add("LoginDispatcher", loginDispatcher, "before:PageRe
tEffect
Gesendet: Fr, 22. Mai 2009
Von: Igor Drobiazko
> Take a look into this thread:
>
> http://www.nabble.com/How-do-I-remove-the-yellow-fade-that-occurs-when-updat
> ing-the-Zone-component--tt23493373.html#a23493373
>
> On Fri, May 22, 2009 at 8:26 AM, nille hammer
> wrot
Hello List,
I have made the step from serverside-only webapps to using ajax now. Doing this
two questions came up. Of which the first one is:
I have a t: zone with update="slideup" and show="slidedown". I'd like to tweak
the duration of those two effects like with the original Scriptaculous eff
Yeah, not very hard... I have implemented a Tapestry service for that purpose:
HLSLocator.java
- original Nachricht
Betreff: Re: Apache Tapestry on Google Maps
Gesendet: Mo, 11. Mai 2009
Von: Alex Shneyderman
> Howard, do you seriously think it is hard to locate you? He, he ...
>
Hi zack,
"Caused by: org.apache.tapestry5.ioc.internal.util.TapestryException: A
document must have exactly one root element. Element is already the
root element. [at classpath:com/inavero/pulse/pages/report/Edit.tml, line
78]"
Search Edit.tml and )if existent) UnitTree.tml. I am pretty sure you
Hi Howard,
maybe to small to be mentioned, but www.salsadeli.de is running with T5.0.18. I
have developed it all by myself.
What I find most impressive about T5 is the clean code one produces. Compare
the amount and style of code needed to do a simple form in Struts or JSF to
that needed in T5
Hi Reinhold,
either delete the context-Attribute in your template or provide an event
handler with a parameter holding the context-value (e.g. public void
onActionFromSampleLink(final int value) ). It is just a guess, but I am pretty
sure that tapestry is confused by the fact that you provide a
Hi Alfie,
I think you must provie Palette with a SelectModel, OptionModel and
ValueEncoder for the objects to display. See page on the wiki:
http://wiki.apache.org/tapestry/Tapestry5AnotherSelectWithObjects
Hope this helps, nillehammer
- original Nachricht
Betreff: Palette and t
Hi dwi,
you do not need the password to be output to implement that feature. In fact it
is very insecure and uncommon to implement something like "Your current
passoword is: xxx" . This would mean you had to store the password in clear
text. This as Thiago already pointed out is insecure.
Thin
Hi Dante,
the convention for naming of handle methods of submit events is
"onSelectedFrom". Rewrite your code as follows and it shuld work. The
annotaded way should work too, although I have never used it myself.
public class Start{
void onSelectedFromBtnA(){
// this should work
}
void onSelect
Hi Ulli,
a primary key being null (the field in the object not the value in the
db-table) occurs, when an entity is created in the app-tier and not yet stored
to the database. That is one way (and afaik the most common) for the OR-mapper
to know that the entity is new and has to "ask" for a valu
Hi Howard,
if none of your co-committers can spare time, I will be happy to jump in for T5.
Cheers, nillehammer
- original Nachricht
Betreff: JavaLobby Web Framework Comparison
Gesendet: Mo, 19. Jan 2009
Von: Howard Lewis Ship
> JavaLobby is looking to create a comprehensive web fra
Hi Mark,
first I have to admit I am not familliar with Tapestry´s testing mechanisms so
this information is based on browsing through the javadocs rather than
experience. I think this is the class you are looking for:
http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/internal/ser
Hi Antonio,
you cannot iterate over a Map as it does not implement Collection. Try the
Map´s methods .values() or .entrySet() and iterate over their return values.
For further information look here:
http://java.sun.com/javase/6/docs/api/java/util/Map.html
Regards nillehammer
- original N
Hi CG,
the inPlace attribute of the t:grid tag does what you are asking for. For
further infos look here:
http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Grid.html
Cheers nillehammer
- original Nachricht
Betreff: [T5] Grid paging re
Hi all,
I wanted to know whether anyone else from this list had the opportunity to be
in Düsseldorf yesterday.
Igor and Renat did a really good job showing how quickly and easily you get an
application running with Tapestry 5. They have been given a hard time by the
audience asking loads of
Hi list,
to answer Howard´s question, yes I would like that feature. Exactly as
described. At the moment I prefix my page class names with the package name. I
am not happy with that. I´d prefer to suffix them with "Page".
And my opinion to the discussion whether generation of urls should be
c
Hello Tommy,
rewrite
to
If you explicitly name a model (t:model="option"), it has to be an
implementation of org.apache.tapestry.SelectModel. Your Enum "Option"
apparently is not an implementation of that. That causes the exception I think.
For Enums it is not necessary to explicitly name a
Hi Konstanin,
I don´t think Filips post was irony. It really is simple. Anyway answering your
question: Simply returning a component from a getter (in your case a Link from
getMyDynaObject) won´t cause tapestry to render it. For a component to be
rendered you have to place it somewhere in the
Hi Guys,
"validate=required" on a checkbox does not make sense to me. A chekbox can
either be unchecked (resulting in false) or checked (resulting in true). I.e.
the validation "required" can never fail. Could it be you are talking about
t:radio and t:radiogroup ?
Regards nillehammer
- or
Hi ice,
> public Object onSubmit()
> {
> return Start.class;
> }
Rename the method to onSuccess(). That should solve the problem.
Regards, nillehammer
- original Nachricht
Betreff: Tapestry 5 server side validation
Gesendet: Do, 05. Jun 2008
Von: ice96<[EMAIL PROTECTED]>
>
Hi Igor,
I am going to be there. I do not exactly live near Düsseldorf (actually near
Frankfurt), but meeting some fellows of the mail list in real life is
definately worth a travel.
I have looked at the rheinjug.de Website. No registration needed? Just come and
listen? Is that right?
Lookin
Hi Joachim,
a ValidationTracker ist pushed into the environment by the tapestry Form
component during its beginRender()-method and popped from it during
cleanupRender(). I don´t think, there is a ValidationTracker available in the
environment for pages that do not contain forms (or you might ha
Hi Robin,
could Maven's access to the internet be interupted (e.g. no/wrong proxy, no
access to internet at all, network problems, firewall...)? That really is a
short output and I once got sth. similar when I had no acces to the internet
and so Maven could not download the libs.
Greetz nille
Hi Lakshitha,
the event handler Methods for Submit-Buttons end with "ed". See this for an
example
(http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry/corelib/components/Submit.html)
rename your methods to:
onSelectedFromUpload()
onSelectedFromNext()
That should fix it.
Hi Guys,
just a little side note on Filip´s suggesion. Instead of initializing the
BeanModel in onActivate() you could do this:
private final BeanModel model; {
model = beanModelSource.create(User.class, false, componentResources);
model.get("username").sortable(false);
}
Mind the final. T
Hi Andrew,
if I got you right, Component hands over a parameter grouper to Sub-Component
although grouper actually is null. This seems a bit smelly. Perhaps you should
rethink your concept (no offense meant :-) ).
But anyway, maybe Tapestry's Environment service could solve your problem. That
Hi Topby,
@Inject private ComponentResources resources;
and then resources.getPageName();
should do the trick.
Good night, nillehammer
- original Nachricht
Betreff: T5 - integrating with a RIA
Gesendet: Mo, 26. Mai 2008
Von: Toby Hobson<[EMAIL PROTECTED]>
> I'm trying to integr
Hi Tomasz,
if I have understood your problem right, what you are facing is caused, because
you use EventLink. EventLink implements the redirect-Pattern. That means a
request is not responded directly with the result page but with a redirect to
that page. Use PageLink instead. That sends the re
Hi guys,
I had a similar problem with relative urls. I have added a line to the method
contributeApplicationDefaults in the AppModule class. The line is:
configuration.add(TapestryConstants.FORCE_ABSOLUTE_URIS_YSMBOL, "true");
After that tapestry is not generating relative urls any more.
Hope t
Hi Juliane,
templates and classes for pages or components have to be in the same package.
Secondly, pages (i.e. Start) must go to the pages subpackage whilst components
(i.e. Layout) must go to the components subpackage. The resulting package
structure for your example would be:
de...pages.Sta
Hi all,
using an ActionLink one has to assign an id. By this id the event hander is
determined. So far so easy. But having assigned an id, a particular ActionLink
can only be used once per template. With EventLink one can assign an event
attribute and can put several links into a template poi
Hi Toby,
the correct attribute is t:blankLabel, not t:blankValue. And I recommend you
use a message from a message catalog, except a literal String.
Regards nillehammer
- original Nachricht
Betreff: T5 Blank option for select component
Gesendet: Mo, 12. Mai 2008
Von: Toby Hobson
Hi Michael,
I´ve tried the ServiceStatus. It is very interesting. Thank you for the hint.
Hi Peter,
yea a MessageSource would be cleaner than what I did. I will try to come to
that later. I have an impatient customer and have to get the application
running. In case I have something, I´ll keep
Hi Michael,
I have tried your suggestion. In my environment (5.0.11) it does not work. Even
with explicit id "Messages" provided, the ioc-container throws a
RuntimeException complaining that Messages is not a defined service. You must
have done sth. else to make your suggestion work in your en
>
> Betreff: Re: Re: [T5] Sending Email from Tapestry
> Gesendet: Fr, 18. Apr 2008
> Von: Thiago HP<[EMAIL PROTECTED]>
>
> > On 4/18/08, nille hammer <[EMAIL PROTECTED]> wrote:
> >
> > > Hi Thiago,
> >
> > Hi, Nille!
> &
n 4/18/08, nille hammer <[EMAIL PROTECTED]> wrote:
>
> > Hi Thiago,
>
> Hi, Nille!
>
> > thanks for the advice that makes perfect sense! What is left is my first
> question, where does Tapestry how to choose the right message catalogue? If
> I injected the Con
localized messages into
BookingSummary.properties?
Thanks and regards, nillehammer
- original Nachricht
Betreff: Re: [T5] Sending Email from Tapestry
Gesendet: Fr, 18. Apr 2008
Von: Thiago HP<[EMAIL PROTECTED]>
> On 4/18/08, nille hammer <[EMAIL PROTECTED]> wro
Dear List,
I am currently buidling an ordinary booking application. When a customer books
something I collect everything in a Booking object. I display the data in a
page BookingSummary, which contains a link "confirm booking". When booking is
confirmed I want to create a confirmation email t
Hi Fernando,
Why should it? Couldn´t you return the desired page from the event handler
method?
greetz nillehammer
- original Nachricht
Betreff: EventLink taking optional page
Gesendet: Fr, 18. Apr 2008
Von: Fernando Padilla<[EMAIL PROTECTED]>
> Does anyone else want a patch to
Hi Petros,
the problem is caused by the expression
context="{account?.accountManager?.username}". With "?." you tell Tapestry:
"The value might be null, please check before calling the Method." As null
values aren´t allowed in context, you must not tell Tapestry that your values
might be null.
etreff: Re: T5 : session timeout
Gesendet: Do, 10. Apr 2008
Von: Peter Stavrinides<[EMAIL PROTECTED]>
>
> Hello Nille
>
> I think you are confused here, the check we are referring to is for a
> data object within an ASO and not for the ASO.
>
>
> nille hammer wr
Hello Peter, hello Stephane,
according to Tapestry manual
(http://tapestry.apache.org/tapestry5/tapestry-core/guide/appstate.html) the
preferred way to check for ASO existence is to provide a boolean variable with
the name of the ASO field suffixed Exists alongside with your ASO-variable
(e.g
Salut Stephane,
in case it does not matter that a particular instance of a Page is returned
(and thanks to @Persist and @ApplicationState this seldomly is), I use to
return the class Object of the page (e.g. MyPage.class) rather than "this". If
I got the manual right, this leaves the decision,
Hello Michael,
there is an application wide properties file which is accessable by every page
and component within your application. It is located in
WEB-INF/.properties. depends on the filter name you have
chosen for the tapestry filter. As one usually does not change that, this would
be pe
Moin Moritz,
ich könnt ja in Deutsch antworten, aber dann sind die anderen vielleicht böse.
Hello Moritz,
funny to comunicate with a fellow German in English, but I think it´ s better
to stick to common ground. There is a quite easy way to accomplish, what you
want. The Grid component uses a com
Hi Jack,
>> my.package.tapestry.pages.util.MyFormat
Putting a none page class into the page package is a bad idea! Only Page
classes should go into the pages package. If you just need a custom Format move
it to some other package (excluding pages, components, base and services). If
you want to
89 matches
Mail list logo