Thanks a lot, this tip saved me a lot of work!! I also extracted some
other (to me) new knowledge about tapestry from your code sample, so
this was great help.
Inge :)
Nick Westgate wrote:
Hi Inge.
In your .page spec, use an ExternalLink and provide a PopupLinkRenderer.
CGLIB is an enhancement library that a lot of open source packages
use to create dynamic proxies of your classes (usually to bolt on their
specific accessors and proxy code to your POJOs). It's used by both spring
and hibernate pretty extensively, and it looks like you've got spring
runnin
I'm using the Sysdeo Eclispe Tomcat plugin:
http://www.sysdeo.com/eclipse/tomcatplugin
Now I can debug my tapestry app's !!!
I've got this resource from Kent's book, chapter 1:
http://www.agileskills2.org/EWDT/
gr
-Original Message-
From: Tomáš Drencák [mailto:[EMAIL PROTECTED]
Sent: vr
Jun Tsai wrote:
I find if I use
@InjectObject("spring:testService")
public abstract ITestService getTestService();
It throws a java.lang.IllegalArgumentException:
argument type mismatch.
If I use
@InjectObject("spring:testService")
public abstract Object getTestService();
ITestService
Hi Leonardo,
You wrote:
3) Develop with the Tapestry cache enabled. I found out I couldn't use
tapestry page cache while developing. It doesn't get any changes I make
to a page, and I end up rebouncing the app (yep, that's another
minute!). Am I doing something wrong?
Better is to set disab
I find if I use
@InjectObject("spring:testService")
public abstract ITestService getTestService();
It throws a java.lang.IllegalArgumentException:
argument type mismatch.
If I use
@InjectObject("spring:testService")
public abstract Object getTestService();
I works great.
What's happen?
I work with tomcat and there's an eclipse tomcat plugin. Hot deploying
works fine until I add/remove some methods, then I have to restart an
application. And I have turned off page chaching so changes can be
seen immediately. But its still not very fast... Maybe someone has
better develping/deploym
Not sure if I trully understand portlets, but isn't it that you have 1
portlet page, that has defined layout (which includes another e.g.
tapestry pages)? I've been looking at pluto's portal and there's file
pageregistry.xml and it seems that this is the layout file. There's
some fragment nodes loo
Hmm, I'm using the @InjectObject to inject spring
beans not proxyed with spring-aop and it's working great. but if use
@InjectObject to inject spring beans proxyed with Spring-AOP ,It throws
a java.lang.IllegalArgumentException:
argument type mismatch.
Jun Tsai
---
Andreas Andreou di.uoa.gr> writes:
>
> Kent Tong wrote:
>
> >Matt Doran papercut.biz> writes:
> >
> >
> >
> >>We're using Tapestry 3.0.3 and make a lot of use of the Table component.
I'd
> >>like to have the page navigation links (that allow you to navigate
through the
> >>pages) at the b
you could also just use if its a static error
from your properties file.
On 9/1/05, Ted Steen <[EMAIL PROTECTED]> wrote:
> If you write "message:page.error" tapestry will look for a message
> called "page.error", that is it will look in your .properties file for
> that message.
> If you want to d
hari ks wrote:
hi,
Has anyone faced this issue before:
in multi user environment, when end user waits for
some time and submits form, it causes stale link.
Check out the stateful parameter of Form component.
http://jakarta.apache.org/tapestry/tapestry/ComponentReference/Form.html
Our
appli
hi,
Has anyone faced this issue before:
in multi user environment, when end user waits for
some time and submits form, it causes stale link. Our
applicationas specified in one of my previous mail
uses ognl expressions in html directly to access page
instance variables without declaring in propert
The NumberTranslator internally uses java.text.DecimalFormat to
parse/format numbers. Unfortunately, DecimalFormat is only capable of
parsing/formatting numbers with at most double precision or smaller.
To work with BigDecimal (or BigInteger for that matter) you will need to
write your own Tran
Hi,
In our project, some developers coded in such a way
that html pages access page instance variables
directly through ognl expressions without specifying
in .page file .
What are the implications?
It would cause cross pollination of user data. (One
user data coming to another)
Will it caus
Hi again,
I have a couple of questions, maybe some of you can help me out. It
seems to me that web-app development using Tapestry is getting a bit
slow. I had to turn off page-caching, since my changes weren't showing
up, and now I end up doing a 10seconds change - compile - redeploy -
test c
If you write "message:page.error" tapestry will look for a message
called "page.error", that is it will look in your .properties file for
that message.
If you want to dynamically choose the message I think the best thing
would be to do like this:
public String getPageError() {
return getMessag
Tomas,
I am not sure what you mean by define page layout. Are you talking about
pages in the portal sense or in the tapestry sense? The persist state of
properties within your tapestry pages should be defined in your .page
files. Or I guess in your .java files if you are using annotations.
N
You could make it a ValidField and then write your own BigDecimal
validator to do the translation to and from strings, couldn't you?
--- Pat
> -Original Message-
> From: Ted Steen [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 01, 2005 2:40 PM
> To: Tapestry users
Hi all!
I need to work with BigDecimal in order to represent decimal numbers
with greater precision than float.
If I need to store the (float) number 27.9 in a BigDecimal it
transforms into 27.89857891452847...
In tapestry I have my @TextField with translator:number
tied to a propert
Andriy,
I was successful making links and forms work inside a portlet. What
portlet container are you using and what are the exceptions?
Ryan
Andriy <[EMAIL PROTECTED]>
Sent by: news <[EMAIL PROTECTED]>
09/01/2005 10:53 AM
Please respond to
"Tapestry users"
To
tapestry-user@jakarta.apac
Hello,
I have a simple question, when an error occurs in one of my pages i set
an attribute to a string that should be localized, but in my template
i don't konw how to insert it, i tried
but the page.error is resolved as a literal, noot an ognl expression.
Thank you
Jean-Yves
---
I see. Well let me back up to the larger problem then.
With the last version of the code I had a component called
AnchoredBlock. The component would render an anchor tag at the top and
then would add an anchor to every DirectLink contained inside of it.
This was needed so that if there were, for
It's just as well you can't; you don't want to be adding bindings
directly. The various setter methods exist for the framework, you
should treat components as immutable. This is why its going to be good
for everyone to break the inheretance requirement ... the IComponent
that will be exposed to yo
Is there a way to add a binding to a component programmatically? I see
that there is a setBinding() method in AbsractComponent, but I can't
really figure out how to manually construct an IBinding instance.
Have you looked at using Hivetranse? http://hivetranse.sourceforge.net/
It can be tricky at times. the documentation at the site wasn't obvious on
the some of the config stuff. So here is what I use for configuration in
hivemodule.xml, if it is of interest to you :-)
schema-id="hivetranse
I have a QueryComponent, which is responsible for performing queries and
allowing the user to select the result they with to work with. Also on
the page, I have a tab control, which has components which can perform
operations on the selected object from the QueryComponent. How should I
hook it up
I checked tapestry 3.03 api; there is no ButtonRenderer available. I
guess I will just stick to href links, and wait till I migrate to
v4.
Tks anyway. You have been a great help to me from the start.
--
waimun
On 9/1/05, Waimun Yeow <[EMAIL PROTECTED]> wrote:
> I got the following exception
If you still need I Kevin, I have a wrapper class around somewhere
that does aggressive type conversion and allows get/set of any bean property
by name e.g. public void setFieldByName(String FieldName, Object Value).
--- Pat
> -Original Message-
> From: Kevin Menard [mail
In HiveMind, the element (of , with BuilderFactory)
will do simple string->primitive conversions.
Alas, the element does no conversion at all.
This is really a HiveMind bug ... it should see if the object result
is java.lang.String and to a simple conversion for it.
Tapestry has a much more in
I agree, I started with the basic jsp/servlets before there was
anything like struts/jsf and now tapestry and their like. Not afraid
of the golden oldies if it gets the job done quicker and with less
pain. :)
-Nick
ps. Plus I already had my InitServlet for starting up my Cayenne
context, so this
The ButtonLinkRenderer is new to Tapestry 4.0. Also, as of beta-5, it
has been refactored to org.apache.tapestry.contrib.link along with the
other link renderers.
Here is the ButtonLinkRenderer class retrofitted for Tapestry 3.0. Note
that since ILinkComponent.getTarget() was not added until 4
I'm fairly old school, so a lot of my solutions kind of tend to
sidestep the platforms I use :). It's all a matter of using the right tool
for the right job.
--- Pat
> -Original Message-
> From: Nick Stuart [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 01, 2005 10
There was some shifting around in the generated code for properties.
Please use one of the listener interfaces for your purposes.
On 9/1/05, Alexandr Kundirenko <[EMAIL PROTECTED]> wrote:
> Hello All,
>
> I have persistent property which I want to initialize using
> another property value.
>
>
That works. Not very 'tapestry' like, but it works. :)
Thanks!
On 9/1/05, Patrick Casey <[EMAIL PROTECTED]> wrote:
>
> How about putting this line in your servlet:
> public void init(ServletConfig config) throws ServletException {
> super.init(config);
>
How about putting this line in your servlet:
public void init(ServletConfig config) throws ServletException {
super.init(config);
String temp =
config.getServletContext().getRealPath("work");
fWorkDirectory = temp;
if (fDebug)
We're trying to prevent redirecting to a page that we don't want the user to go
to.
Granted, they might learn after they get the exception page a couple of times
and
stop doing multiple submissions, that just isn't a very user friendly way of
handling
this issue.
What we need to do is find
Hi all, did some digging and all I can find are references that will
work 3.0 but not for 4. So, what is the best way to get the actually
full path in your webcontext to upload files to? In 3 you could do
something like:
String path =
getRequestCycle().getRequestContext().getServlet().getServletCo
On Sep 1, 2005, at 11:30 AM, Kent Tong wrote:
Try:
It will try to convert it automatically.
Hmm . . . but as far as I know, doesn't allow prefixes. Please
correct me if I'm wrong. I'd ideally be pulling this value out of my
app spec.
Thanks,
Kevin
Thanks Ryan!
But I'm little bit confused about first portlet... Where can I define
page layout to include different pages? How to navigate inside of each
page and retain state of other pages included in portlet?
Thanks
tomas
2005/9/1, Ryan Wynn <[EMAIL PROTECTED]>:
> The configuration change
Jesse Kuhnert gmail.com> writes:
>
> There are tons of different ways to coerce values built in to hivemind, but
> I think using the set-property element combined with a value of "ognl:true"
> might work?
Try:
It will try to convert it automatically.
--
Author of an e-Book for learning T
On Sep 1, 2005, at 11:26 AM, Jesse Kuhnert wrote:
Oh..Sorry..Not familiary with this "app-property" binding that you are
using. I've been using the symbols replacement package. ..If you
change your
setter to only accept booleans does it blow up?
Yeap, that's the problem. HiveMind throws a
Oh..Sorry..Not familiary with this "app-property" binding that you are
using. I've been using the symbols replacement package. ..If you change your
setter to only accept booleans does it blow up?
On 9/1/05, Kevin Menard <[EMAIL PROTECTED]> wrote:
>
>
> On Sep 1, 2005, at 10:51 AM, Jesse Kuhner
On Sep 1, 2005, at 10:51 AM, Jesse Kuhnert wrote:
There are tons of different ways to coerce values built in to
hivemind, but
I think using the set-property element combined with a value of
"ognl:true"
might work?
Well, the idea of having it as an app property is so that I only have
to
It seems that initial-value is assigned is piece of generated code...
Because:
=== PageLoader.constructComponent(...) ===
...
//NOT initialized at this point
container.finishLoad(cycle, this, containerSpec);
//INITIALIZED!!!
container.enterActiveS
Hello Ryan!
I also managed to make HelloWorld tutorial run as portlet. But its functionality
not very useful.
Did you tried to add some links or forms to your portlet?
I've tried but I've failed :(
Inserts work fine but links or forms throw exceptions...
Andriy
-
There are tons of different ways to coerce values built in to hivemind, but
I think using the set-property element combined with a value of "ognl:true"
might work?
On 9/1/05, Kevin Menard <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I've just created my first service and am trying to tie it in with
I ran into this on a recent project with a large number of components.
What I did was:
1. Move the component into a subdirectory.
2. Update (yourapp).application so that it knows where to find the
module. In my case this was as simple as:
3. I could then refer to the component using .
I am usi
Hello,
Is there a way I can organize components into subdirectories? For
example, if I have several modules in my web-app:
/module1
/module2
..
etc
I'd like to create some components, specific to those modules, just to
help with the web site's refactoring (so I can define common FORMs or a
Hi,
I've just created my first service and am trying to tie it in with
HiveMind. I have a boolean property in this service for indicating
whether or not to run in debug mode. In my app spec I have a meta
property called "debug" with a current value of "true". In my
I have a that uses
Hello All,
I have persistent property which I want to initialize using
another property value.
Page spec:
Page class:
/**
* Item which is initialized using value of #getItemClass
*/
@Persist
public abstract IPersistable getItem();
p
The configuration changes between web and portlet application are not that
bad. Get your web.xml and portlet.xml from
http://jakarta.apache.org/tapestry/tapestry-portlet/configuration.html
Then use View.html instead of Home.html as your start page. If you want
to change this to use a name bes
I know that there WAS Tree component documentaion, but where is it now???
http://jakarta.apache.org/tapestry/3.0.3/doc/ComponentReference/index.html
Very very strange thinks happens with tapestry documentaion... :(
-
To unsubscri
I got the following exception:
The content of element type "component" must match
"(property*,(binding|inherited-binding|listener-binding|static-
binding|message-binding)*)".
And here's my definition:
On 9/1/05, Alexandr Kundirenko <[EMAIL PROTECTED]> wrote:
> Yes, it is for 4.0 vers
I'm wondering if setting an unbound parameter programmatically in T4 should
be similar to the way that the IComponentVisitor classes do it, by manually
creating a binding and setting that. I suppose I could try that...
On 8/31/05, The Chris Method <[EMAIL PROTECTED]> wrote:
>
> I have a compone
To not spend more time about configuring Tapestry4 with JOnAS.
I finally choose to play tuto with Tapestry3.
I'll plan to move to Tapestry4 when i'm feeling myself good on Tapestry.
Thanks.
2005/9/1, Howard Lewis Ship <[EMAIL PROTECTED]>:
> You can download the Tapestry libraries and dependencies
Yes, it is for 4.0 version.
Not sure that it works for 3.0.3, try with 3x syntax
Use replace "value" attribute "expression", don't use binding
prefixes "literal" and "bean", etc
WY> I get the following exception:
WY> Attribute "value" must be declared for element type "binding"
WY> Is the follow
i'm learning also Tapestry with this good website :
http://www.sandcastsoftware.com/articlesandtutorials/brownbag/index.html#tapestry
2005/9/1, Kent Tong <[EMAIL PROTECTED]>:
> mohammad hassan shamsi gmail.com> writes:
>
> >
> > Hi All,
> > Im a beginner in Tapestry 4, im looking some example
I get the following exception:
Attribute "value" must be declared for element type "binding"
Is the following implementation for Tapestry 4? I am using 3.03. And
also, I think it should be beans.buttonRenderer.
On 9/1/05, Alexandr Kundirenko <[EMAIL PROTECTED]> wrote:
> There is simpler way:
Ok!
I made what are you tell me to do but I don't realy know how to
implement this.
My java class extends BasePage already and implements PageRenderListener
I saw an example (VLIB) from tapestry 4 package but I didn't undersand
how it works.
I made class MyEngine.java
package app.web;
impo
Andrei Stroescu wrote:
Ok!
I made what are you tell me to do but I don't realy know how to
implement this.
My java class extends BasePage already and implements PageRenderListener
I saw an example (VLIB) from tapestry 4 package but I didn't undersand
how it works.
I made class MyEngine.java
You can download the Tapestry libraries and dependencies from
http://howardlewisship.com/downloads/quick-start/
On 9/1/05, Kent Tong <[EMAIL PROTECTED]> wrote:
> hicham abassi gmail.com> writes:
>
> > I have troubles to get work my first HelloWorld :
> >
> > java.lang.NoSuchMethodError:
> >
> >
Stevens, Jeffrey L (Dev Resource Central hp.com> writes:
> My problem is that I would like to bing the selected attribute of a
> RadioGroup to specific values from this Test.Questions HashMap, but
> since it doesn't have the typical getter/setter methods how would I bind
> the value of the RadioG
hicham abassi gmail.com> writes:
> I have troubles to get work my first HelloWorld :
>
> java.lang.NoSuchMethodError:
>
> org.apache.hivemind.impl.RegistryBuilder.addModuleDescriptorProvider
> (Lorg/apache/hivemind/ModuleDescriptorProvider;)V
Are you sure you're using hivemind 1.1 beta?
--
Aut
Kent Tong wrote:
Matt Doran papercut.biz> writes:
We're using Tapestry 3.0.3 and make a lot of use of the Table component. I'd
like to have the page navigation links (that allow you to navigate through the
pages) at the both the top and bottom of the table.
Have you tried putting t
Here's some example application
http://nemesisit.rdsnet.ro/opendocs/tapehibe2/tapehibe2.html. I
haven't look at it in details and therefore don't know if it uses the
best patterns... I think it's also good to use DAO pattern with DAO
objects as services in hivemind - look at
http://www.theserversid
Andrei Stroescu ime.ro> writes:
>
> I tried to override handleStaleSessionException in my Own Class that
> excends BasePage but dindn't work.
You need to extend BaseEngine, not BasePage.
> this is overriding method:
>
> private void handleStaleSessionException(StaleSessionException ex,
> IR
There is simpler way:
--
aku
wctc> With CSS,
wctc> you can make a look like a button ...
wctc> -Original Message-
wctc> From: Waimun Yeow [mailto:[EMAIL PROTECTED]
wctc> Sent: donderdag 1 september 2005 12:27
wctc> To: tapestry-user@jakarta.apache.org
wctc> Subject: Pag
Anjali Abraham aztec.soft.net> writes:
>
> Hi All,
> I need code related help in generating cookies for my pages in
> tapestry4.0v like what I need to put the codes in .page and my java file..
class MyPage {
@InjectObject("service:tapestry.request.CookieSource")
public abstract
We could also use one of these for AJAX as well.
E
--- Tomá¹ Drenèák <[EMAIL PROTECTED]> wrote:
> Hi all,
> I'd like to try tapestry portlet support, but
> there's too little
> documentation or tutorials written on this topic
> (which I've
> found...). Is there somewhere study case application
>
With CSS,
you can make a look like a button ...
-Original Message-
From: Waimun Yeow [mailto:[EMAIL PROTECTED]
Sent: donderdag 1 september 2005 12:27
To: tapestry-user@jakarta.apache.org
Subject: PageLink with button
Hi,
How do I create a PageLink with a button instead of the regular
Matt Doran papercut.biz> writes:
> We're using Tapestry 3.0.3 and make a lot of use of the Table component. I'd
> like to have the page navigation links (that allow you to navigate through the
> pages) at the both the top and bottom of the table.
Have you tried putting two TablePages in a Table
Hi,
How do I create a PageLink with a button instead of the regular
href?
If there's anyone who have done it, please advise
Tks,
waimun
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [E
Hi Inge.
In your .page spec, use an ExternalLink and provide a PopupLinkRenderer.
Cheers,
Nick.
Inge Solvoll wrote:
I need to implement a popup window called by javascript. It will be a
dialog box in my application. In this win
mohammad hassan shamsi gmail.com> writes:
>
> Hi All,
> Im a beginner in Tapestry 4, im looking some example code.
> can anyone send me some simple examples that written in tapestry 4 or
> show me liks that i can downlad some
> tutorial code.
Try the workbench example in the distribution or
I need to implement a popup window called by javascript. It will be a
dialog box in my application. In this window, I want to load a page that
implements IExternalPage. From what I've seen so far, it looks like I
will have to implement a combination of ExternalLink and PopupLink
myself. Or are
Hello,
I have troubles to get work my first HelloWorld :
java.lang.NoSuchMethodError:
org.apache.hivemind.impl.RegistryBuilder.addModuleDescriptorProvider(Lorg/apache/hivemind/ModuleDescriptorProvider;)V
org.apache.tapestry.ApplicationServlet.constructRegistry(ApplicationServlet.java:263
hello,
is there some example (tutorial) to use hibernate with tapestry 4???
thanks, miso
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hey Nick,
Actually I always run inprod mode. Please look at me
newest question as I have distilled it down further. It
seems as though any renegade form request can be submitted
at any time and it attempts to be handled within the
current session even if it was rendered in a previous one.
I tried to override handleStaleSessionException in my Own Class that
excends BasePage but dindn't work.
this is overriding method:
private void handleStaleSessionException(StaleSessionException ex,
IRequestCycle cycle, ResponseOutputStream output) throws IOException,
ServletException
{
80 matches
Mail list logo