thanks Jiju
On 12/15/06, jiju <[EMAIL PROTECTED]> wrote:
PageBeginRenderListener will be called in the case of rendering a
component
in ajax context also.
Bcose, the difference in ajax calls is only in the clientside,rest remains
the same as normal calls
karthik G wrote:
>
> Thanks !
>
> Par
PageBeginRenderListener will be called in the case of rendering a component
in ajax context also.
Bcose, the difference in ajax calls is only in the clientside,rest remains
the same as normal calls
karthik G wrote:
>
> Thanks !
>
> Pardon me ... i have not looked into the Ajax support that you
Thanks !
Pardon me ... i have not looked into the Ajax support that you have built
into tapestry...but we have lots of ajax-related requirement and I would
need all of that real soon.
Say I later choose to render this component in response to ajax request,
then I wonder if the PageBeginRenderList
I think the context of saying "this page is about to render" is true
no matter which object you attach the listener to.
On 12/14/06, karthik G <[EMAIL PROTECTED]> wrote:
Hi All,
I understand that PageBeginRenderListener gets called during render and
rewind of a Page. I later created a component
Hi All,
I understand that PageBeginRenderListener gets called during render and
rewind of a Page. I later created a component that is embedded inside a page
and moved the content from the Page to the newly created Component. Now my
component implements PageBeginRenderListener and does everything
Not surprising to hear about struts doing something like that. Naughty
naughty struts developers
You will probably have better luck writing whatever javascript you are
writing using a javascript template. Within the template you can call
whatever component methods you want. (like getClientId(
Using javascript I have to access n'th textfield html objects rendered using
for Loop component.
But the name & ids are generated dynamically by Tapestry,its not possible to
access a particular textfield.
But in the case of struts it will render all the loop elements with the same
name, we can a
I have created addRows & delete rows using ajax -direct link using tacos, its
working fine
But still I have a doubt, it will work only when my contactList is stored in
session (@Persist)
i.e during rewind process it will check the values in the hidden fields with
that of the elements
in the con
And, the coolest thing is that this sort of thing *can* be inherited
without using annotations (by putting it in a common superclass).
Otherwise, you have to use XML in your spec files to inject stuff into
all of your subclasses.
On 12/14/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
Yes. Any/al
I'm trying to use the Table component. Behind the Table, I've
implemented an IBasicTableModel to provide the data. In that class, I
pass in a DAO and a partially filled out object (data in the object is
obtained from a form).
In the My implementation of IBasicTableModel, when the getCurrentRows
I'll answer some of my own question. I realized you can return ILink
to handle the service cases and do a cycle.activate(IPage) to handle
the page cases and return null. That handles some of the problem.
Unfortunately I still had to customize each page but it did not take
as long as I thought it w
What's going on is that Tapestry is in a snapshot stage, where we don't have
official releases published to the central Maven repository, but do have
-SNAPSHOT releases (a concept within Maven) published to a public repository
at Apache. So if you don't want to build it all yourself, you need to
I think the proper solution may be to add the following to your pom.xml:
apache.snapshots
http://people.apache.org/maven-snapshot-repository
howardlewisship.com
http://howardlewisship.com/repository
Sorry, did not switch the message format.
Ashish
-Original Message-
From: Ashish Kheterpal [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 14, 2006 1:33 PM
To: Tapestry users
Subject: RE: Re: For Component Question
Also, attaching the html, if it is not viewable in the me
Hi,
This is what I want to be able to do with # of columns as a parameter
and the #rows being determined at runtime depending on the entries in
the list.
I am not sure, if it is doable with either "Contrib:Table" or "For"
components. Is it ?
-Original Message-
Fr
Also, attaching the html, if it is not viewable in the message.
This is what I want to be able to do with # of columns as a parameter
and the #rows being determined at runtime depending on the entries in
the list.
I am not sure, if it is doable with either "Contrib:Table" or "For"
Components. Is
Hi,
This is what I want to be able to do with # of columns as a parameter
and the #rows being determined at runtime depending on the entries in
the list.
I am not sure, if it is doable with either "Contrib:Table" or "For"
components. Is it ?
Table 1 (Display with 3 Columns)
Entry1
E
I have a bunch of links I'm trying to convert to a dropdown list. The
problem is once I do that they all go to a listener that could either
return an IPage or an ILink. Currently some of the links are
DirectLinks and some are links to custom services such as a FOP pdf
service, a CSV service or a
Wow, that's awesome :) I just got Ron's method working but I wouldn't mind
giving this a try as well!!
Thanks everyone, I think my app is working properly in 4.1.1 now, I'll need to
do some testing. Bye bye 4.0! Knock on wood...
-Greg
-Original Message-
From: Jesse Kuhnert [mailto:[EMA
Yes. Any/all hivemind services that don't have more than one
definition for the same class interface will be automatically wired
into your components/pages just by declaring the abstract getter or
setter. That's it.
On 12/14/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
This sounds promising,
This sounds promising, and I am now on 4.1.1-SNAPSHOT...
public abstract ApplicationStateManager getASM();
As easy as declaring this in a BasePage subclass???
-Greg
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of James
Carman
Sent: Thursday, December 14,
getPage().getRequestCycle().getInfrastructure().getApplicationStateManager()
will give you the ASM from every component.
take the getPage() out when the class is a page class.
so i think this will let you go ?
Cheers,
Ron
[EMAIL PROTECTED] wrote:
I'm replacing the old getVisit() object.
S
What version of Tapestry are you using? 4.1? If so, then it can
autowire stuff for you out of the HiveMind registry. Just declare an
abstract getter that returns an ApplicationStateManager. If you're on
4.0, you can download the tapestry-autowire source and build it (via
SVN http://svn.javafor
Thanks Andy, things semi-work now! Sorry, it's been a really rough week as far
as Tapestry goes!
Greg
-Original Message-
From: andreas a [mailto:[EMAIL PROTECTED] Behalf Of andyhot
Sent: Thursday, December 14, 2006 3:04 PM
To: Tapestry users
Subject: Re: Proper way to get ApplicationStat
I'm replacing the old getVisit() object.
So most of my pages have a call to getVisit(), which returns my AdminVisit
object, which has the information about if they are logged in, what permissions
they have etc.
Almost every page calls getVisit(), my Border also calls getVisit() to
determine if
[EMAIL PROTECTED] wrote:
> This is fun!
>
>
>Unable to read context:/WEB-INF/Border.jwc: Attribute "property" is
> required and must be specified for element type "inject".
>
> So I fix it up...
>
> property="adminVisit" />
>Unable to read context:/WEB-INF/Border.jwc: Attribute "
Oops! I think it should be
http://tapestry.apache.org/tapestry4/UsersGuide/spec.html#spec.inject
Shing
--- [EMAIL PROTECTED] wrote:
> This is fun!
>
> object="adminVisit" />
>Unable to read context:/WEB-INF/Border.jwc:
> Attribute "property" is required and must be
> specified fo
Tell us when do you need it and why... *maybe* we can tell you how...
Cheers,
Ron
[EMAIL PROTECTED] wrote:
Thanks Dennis - I'm not sure I understand how to go about fixing the problem if
it's null at the times I need it :)
Greg
Greg,
You can do what you described before, but pull your
Actually, I just tried changing the store to a string and I get the same
behavior.
-Original Message-
From: andreas a [mailto:[EMAIL PROTECTED] On Behalf Of andyhot
Sent: Wednesday, December 13, 2006 5:08 PM
To: Tapestry users
Subject: Re: Problem w/ Tacos AjaxForm & AjaxSubmit
There's a
This is fun!
Unable to read context:/WEB-INF/Border.jwc: Attribute "property" is
required and must be specified for element type "inject".
So I fix it up...
Unable to read context:/WEB-INF/Border.jwc: Attribute "name" must be
declared for element type "inject".
Cute?
---
Thanks Dennis - I'm not sure I understand how to go about fixing the problem if
it's null at the times I need it :)
Greg
>
>
Greg,
You can do what you described before, but pull your visit object in your
SomePage.java classes where you need it. As Ron pointed out, ASM uses
other service w
[EMAIL PROTECTED] wrote:
Thanks. I was hoping to avoid this in every page file, but I think I will go
this route since it seems to be the easiest.
-Greg
-Original Message-
From: Shing Hing Man [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 14, 2006 2:16 PM
To: Tapestry users
Subjec
Thanks. I was hoping to avoid this in every page file, but I think I will go
this route since it seems to be the easiest.
-Greg
-Original Message-
From: Shing Hing Man [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 14, 2006 2:16 PM
To: Tapestry users
Subject: RE: Proper way to get Ap
Add the following to your .page file :
Then add the following in your .jave file :
Public abstract AdminVisit getAdminVisit();
Please checkout the doc :
http://tapestry.apache.org/tapestry4/UsersGuide/state.html#state.aso
Shing
--- [EMAIL PROTECTED] wrote:
> Unfortunately I can't use JD
Unfortunately I can't use JDK 1.5. Which is what a lot of documentation seems
to cover, everyone loves annotations but I get left out!
Thanks,
Greg
-Original Message-
From: Wes Bramhall [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 14, 2006 2:04 PM
To: Tapestry users
Subject: RE: Pr
Are you able to use Java 1.5? The way we do it is by injection using
annotations.
@InjectState("adminVisit")
Public abstract AdminVisit getAdminVisit();
We inject the visit on our base page and have a convenience method on
our base component to get it from the page. ASOs can also be accessed in
o
Thanks for the response. I'm using tapestry 4.0.2 and see no mention of
translators in the docs. Am I missing it?
-Original Message-
From: andreas a [mailto:[EMAIL PROTECTED] On Behalf Of andyhot
Sent: Wednesday, December 13, 2006 5:08 PM
To: Tapestry users
Subject: Re: Problem w/ Tacos Aj
I think you can access the ASM only in the context of a request.
Cheers,
Ron
[EMAIL PROTECTED] wrote:
Hmm oh dear, just found this at the bottom of my HUGE stack trace... related
perhaps? I'm not doing something good with hivemind?
Caused by: java.lang.IllegalStateException: The Infrastructur
Yesterday's 4.1.1-SNAPSHOT works fine with JVM1.4!
-Greg
-Original Message-
From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 13, 2006 2:19 PM
To: Tapestry users
Subject: Re: Tapestry 4.1 on a JVM 1.4
I think it's deploying as we speak. Shouldn't be much longer th
Hmm oh dear, just found this at the bottom of my HUGE stack trace... related
perhaps? I'm not doing something good with hivemind?
Caused by: java.lang.IllegalStateException: The Infrastructure service has not
yet been initialized.
I need help with ASO's.
In my Application Servlet..
public class PCTAdminApplicationServlet extends ApplicationServlet ..
I have a static variable "asm". I have my init() method with the following :
public void init() throws ServletException
{
super.init();
...
Registr
Hi,
Please bind the "persist" parameter of Table or TableView to
"literal:client" -- this will store the Table state on the client side and
will not require a session.
Best regards,
-mb
Carlos.Fernandez wrote:
>
> Can you use the contrib:table without the use of an httpsession?
>
> I am curr
Yes, in Hungary. Although it's not too late yet, I'm very tired :|
You're right, I will try it, but only tomorrow ;)
Regards:
Norbi
Ron Piterman írta:
Norbert Sándor wrote:
Sorry, I don't fully understand...
If I understand the new API well, my query in the implementation of
getValues() shou
Norbert Sándor wrote:
Sorry, I don't fully understand...
If I understand the new API well, my query in the implementation of
getValues() should return a list of full hibernate objects in my case.
I don't see how can I still query only the ID and the label - although
today was a long day :)
So
Sorry, I don't fully understand...
If I understand the new API well, my query in the implementation of
getValues() should return a list of full hibernate objects in my case.
I don't see how can I still query only the ID and the label - although
today was a long day :)
Regards:
Norbi
Ron Piter
BTW - I am the initiator of this change - sorry if I made you any
trouble, but I hope you can also see the benefit...
If you follow my prev. posting, I you should also add a class check in
the getPK and getLabel - because the value object is also passed to
these objects. - I agree, its not soo
I think you get a List from hibernate?
you can change your model to extract object[0] as key, object[1] as
value, and return the whole object for getForPrimaryKey( key ) - ( I
think its another method signature- but the same meaning)...
Cheers,
Ron
Norbert Sándor wrote:
Hello,
Unfortunatelly
This is quite easy to do you create Spring factory bean that provides the
service
To make this work I cheated an chucked the registry onto a Singleton. I
suspect other strategies are possible.
e.g.
public class HivemindFactoryBean implements FactoryBean {
private String serviceId;
privat
Hello,
Unfortunatelly I've not followed the discussion about the subject.
As the new doc says for IAutocompleteModel.getValues():
* Expected to return a list of all possible values, filtering out
values that
* match the specified String in the label
representation of the value.
Sorry
It works that way on purpose. You aren't supposed to be storing it or
thinking about how to store it. If you follow the advice I gave
earlier in this thread on the approach involving hivemind you'll
probably have better luck.
On 12/14/06, explido <[EMAIL PROTECTED]> wrote:
thanks dave,
the dif
WoW!!
It works!
Thank you very much
I've done the two things that you described and it started to work right
away!.
Thank you very much.
Now to the next (unknown...) problem... :-)
Best regards!
Shing Hing Man wrote:
>
> The Border.java should extends BaseComponent instead
> of
Actually i remember thinking (or reading about) yet another way..
Make the loop have 10 more rows, and render them hidden (display:none)
Then, the js can make them visible on demand.
Robert Zeigler wrote:
> One other way to do this is to have a (tapestry component) hidden form
> field (make sur
yet another option on similar lines is to have display=none for a bunch of
fields that are actually there in your HTML form and rendered via tapestry,
but show up only when the user clicks on the button to add a row. ( of
course that would mean that you cannot support "infinite" adds! )
On 12/14/
The Border.java should extends BaseComponent instead
of BasePage.
Also,
In Border.jwc, set the class parameter in
to the associated java class (full package name of
Border.java. eg class="man.components.Border").
Shing
--- Thx1011 <[EMAIL PROTECTED]> wrote:
>
> Ok, I'll post the code:
>
>
One other way to do this is to have a (tapestry component) hidden form
field (make sure "raw" is set to true). Then when you submit, you can
use js to save the information from the js-added form fields into your
hidden field, and parse it server-side. It would be much more /elegant
/to have th
Ok, I'll post the code:
The Home.html:
Tapestry Study
The Home.page:
The Border Component:
The Border.JWC file:
The Border.JAVA file (section of interest):
public abstract class Border extends BasePage implements
PageBegin
yep, there's no nice Tapestry way in what you're trying to do, esp.
if you're trying to *avoid ajax*.
Incidentally, this was the most interesting question i got asked while
presenting
Tapestry in out local JUG. It got me thinking of adding a few js helper
functions
that would know how to add new f
also you can consider using Tacos if you're wed to tapestry 4.0.x
On 12/14/06, Ron Piterman <[EMAIL PROTECTED]> wrote:
Tapestry traces the rendered components and uses this info on rewind -
its better not to temper with that.
If you need JS magic, try using T41 - using Ajax this should be
possi
Tapestry traces the rendered components and uses this info on rewind -
its better not to temper with that.
If you need JS magic, try using T41 - using Ajax this should be
possible, though only straight-forward for jesse and other enlightend
developers :)
Cheers,
Ron
Jiju Mathew wrote:
Hi All
well, it should work - check if tapestry is actually using your border's
class, it might be you have a configuration error somewhere...
This should be quite clear if you examine the exception page tapestry
generates: NoSuchPropertyException - look on which class there is no
such property...
It might help if you post some code and the actual exception (you only
posted the stack trace).
-Original Message-
From: Thx1011 [mailto:[EMAIL PROTECTED]
Sent: quinta-feira, 14 de dezembro de 2006 11:00
To: users@tapestry.apache.org
Subject: Re: Moving Components inside a Border Componen
Hi All,
I have a list of contacts in MyPage class.Tapestry rendered all the
contacts
in the list asTextFields using @For Loop component ,I have modified some
of the
contact details and submit ,its working fine.
But after the page is rendered if I am adding one more row to the list
using javasc
Hi!
Thanks for your help, but I think that this is not quite the problem that I
have...
Let's suppose one component named XPTO, that takes one parameter PARM.
So in my "normal" Home page I use it like this:
This is ok, I think.
Now I move that line to inside the HTML new component named Bo
Hello!
If a component is without a jwc file, why cannot it be declared
explicitly in the library/application file?
Like:
class="com.example.SomeComponent" />
IMHO this explicit declaration would be a more natural extension of the
framework than using component-class-packages:
- The exten
you put it in the template of the component, and thats it.
if you want it to be configured from the page/container you use
parameter chain.
for example:
your border might contain (and probably will):
...
since the title is different in every page you add
a title parameter to your border:
@P
Hi! (I'm a newbie, so please bear with me...)
I'm trying to build a Border Component.
So far so good, it works as long as I don't embed
another component.
For example if on my Home.Html page I add
http://new.mail.yahoo.com
-
The tapestry-acegi library works (we use it at work currently and it's
been working flawlessly). I don't know about the wiki page, but it
appears to be quite well written. I'm glad someone took the time to
document my work for me. :-)
On 12/14/06, Firas Adiler <[EMAIL PROTECTED]> wrote:
Hell
Hello,
Following steps in this thread
http://forum.springframework.org/showthread.php?t=24013 I managed to get
acegi working using JdbcDaoImpl. Now I get an ApplicationRuntimeException as
soon as I call the webapp url. Unfortunatly, I can't rollback the changes
that affected this misbehavior, sin
thanks dave,
the difference seems to be that i'm using Tap 4.1.1 S and there is no way to
store a ResponseBuilder via RequestGlobals
http://tapestry.apache.org/tapestry4.1/tapestry-framework/apidocs/org/apache/tapestry/services/RequestGlobals.html
4.1.1 API Doc
... still struggling
marco
-
Hi Igor,
I am planning to integrate Tapestry with some portal and CMS solutions
available commercially or in open source form. Accessing content repository
like Apache Jackrabbit via Tapestry components (and/or portlets) seems a
goal to pursue. I am very interested in your work so far. Can you pl
70 matches
Mail list logo