Thanks for the expansion - I'd already implemented James' suggestion but it
took me a while to work out I needed to inject the ApplicationStateManager.
I think your suggestion doesn't quite work for my problem because the
interfaces need to be different. My service provides an interface based o
Hello All,
This is Lakha, software engineer from india.
Can I have yahoo Email id of yours so that we can share the idea and try to
resolve the issue at earliest.
Kindly provide me the same so that, we can discuss the issue on chat.
Thanks...hoping positive reply from you all
Lakha
[EMAIL PRO
Hello jwcarman,
yes, its worked.
Thanks for your brilliant help.
Jwcarman, I just finished the study,I am very new in tapestry...I will need
your help for a few days...will you please?
Thanks...
have a wonderful time.
Lakha
This is Lakha, software engineer from India.I would l
>From Greg Cormier on the Tapestry Users list:
In your .application file,
m2f
Sent from www.TapestryForums.com
Read this topic online here: <>
http://www.tapestryforums.com/viewtopic.php?p=14764#14764
m2f
Hello jwcarman,
Thank you for your effort.
Could you please ping me at [EMAIL PROTECTED], i mean through chat I am
expecting your help.
I want to set any other page as a default page instead of HOME page
only...application wide.
Please, I would like if you can share your 5 minutes for me..
I would need to know the attribute names, in that case, yes? I was
hoping for a method which would allow me to pass all informal
parameters, no matter what they may be. Looking in to the tapestry
code for AbstractComponent, the bindings are totally private, as are
the methods for discovering whi
On 5/3/06, Wes Bramhall <[EMAIL PROTECTED]> wrote:
Well, I just started working on something very similar. I want to submit
a form using a LinkSubmit and render the response to that submission in
a new window. After looking at it myself for a little bit, I got the
window to pop up and the respon
You can add CSS classes to it so it renders in the apropriate TRs and TDs
and then define your own look and feel in CSS.
As in...
For some real tweaking like removing those unwished HTML code or introducing
the wished thead, tbody you'd have code some rendering code. The
Contrib:Table component
I just started using the Table component, it's very convenient for an
administration interface I'm building.
I noticed it outputs some rather weird markup - no thead/tbody, and each
header cell has an embedded together with an inline
Wow. That was actually it. Man, I need some sleep. Thanks tho.
On Thu, 2006-05-04 at 16:25 -0500, Paul Cantrell wrote:
> Just a sanity check: Make sure that the OGNL is referring to the
> class you think it is, not some other class that just happens to have
> an isShowMessages() method.
>
> Y
u bet!
Getting sick of this mail span these last days...
Can someone block this out or what?
On 5/4/06, Robin Ericsson <[EMAIL PROTECTED]> wrote:
Can't we just get rid of this?
On 5/4/06, Apache <[EMAIL PROTECTED]> wrote:
> affiliate-program (http://affiliate-program-.blogspot.com)
>
>
> -
Just a sanity check: Make sure that the OGNL is referring to the
class you think it is, not some other class that just happens to have
an isShowMessages() method.
You could do this by renaming isShowMessages() to isShowMessagesFoobar
(), and make sure that this causes a "no property" excepti
I've used setTimeout/ prototype / and dojo versions of doing loops with no
problems in tapestry.
Could it be that you are having an internal js error and you just aren't
seeing it ?
On 5/4/06, Kevin C. Dorff <[EMAIL PROTECTED]> wrote:
I want to periodically execute a Javascript method, based o
Hmm... I use plain old setTimeout in a few places in my app and
haven't had any problem. I wouldn't think that the timeout could be
eaten, could it? The only way to cancel it is to cancel it by the id.
-Mike
On 5/4/06, Kevin C. Dorff <[EMAIL PROTECTED]> wrote:
I want to periodically execute
Okay, I'm getting some weirdness with ognl. I have a component with 2
parameters:
@Parameter(defaultValue="true")
public abstract boolean isShowMessages();
@Parameter
public abstract Block getPreContent();
In the template, if I do "ognl:preContent" I get a
Hi,
I have an input field that needs to be validated like this:
validators="validators:required,min=1,max=X"
where X is a value that will be different whenever the page is loaded.
However, at least as far as I know, tapestry's validation mechanism only
allows you to set X to a static va
I want to periodically execute a Javascript method, based on time
(even if the user isn't doing anything in the browser, as long as the
browser is opened to my page). I have looked at the contrib:Timeout
but it APPEARS it only checks for the timeout if the user is doing
something in the page (movi
Hi,
Is anyone attending NFJS in Broomfield this weekend?
regards,
Mark
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I don't view most posts regarding flaws as "negative" - I just prefer
them to be associated with a corresponding issue so it can be tracked,
resolved (per a developer), and fixed (per the community). Try as we
might, there's a lot that gets forgotten i
Well, since Brian says that the docs are fixed in SVN, you could download it
and build the site (maven site) yourself. Then, refer to the "unrealeased"
docs from your local system. Or, refer to the free WAR file that I sent
earlier. It really helped me understand tables in Tapestry a bit better.
Ok, will do. I am having some trouble w/ the documentation on the
Validation framework. The documentation flaws have now led me to create
a lot of my own validators (which I must admit is some fun), where I
think I should have been able to use Tapestry's validators. But, I will
try to log some
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Martijn Hinten wrote:
> Well... In the end all of it is just plain Java. And we have the source
> code available. And google.
>
> But I have to admit, documentation is sparse and not at all allways
> correct. But hey, the best documentation is the sou
There is a great reference for Tapestry tables in the form of a war file
example:
http://weblogs.java.net/blog/johnreynolds/archive/2004/10/learn_by_teachi_1.
html
I'm not saying don't buy Kent's book (I just bought it and I really like
it), but there *are* free resources.
-Original Message-
You can pass the component itself into the .script as a parameter and
reference the attributes via ognl expressions.
On 5/4/06, Sam Gendler <[EMAIL PROTECTED]> wrote:
I need to access the informal parameter names and values individually
within a .script file. Is there any way to do this, even
Well... In the end all of it is just plain Java. And we have the source
code available. And google.
But I have to admit, documentation is sparse and not at all allways
correct. But hey, the best documentation is the source code, isn't it? ;-)
Peter Svensson wrote:
I think the general issu
I need to access the informal parameter names and values individually
within a .script file. Is there any way to do this, even if it means
creating a Map or something in java before passing that to the script?
--sam
-
To unsubs
Cleaning up that last message...
Ignore the last sentence; Tapestry doesn't store the username in the
session; my login method does that.
The "new way" code could be cleaned up, doesn't need the
ApplicationStateManager at all.
String key = "state:" + appName + ":visit";
Visit visit = (Vi
That's what I've been doing, keeping a static map in my Engine to
associate sessions with visits.
My login method does:
// After a successful login, associate the session with the visit.
WebSession session =
cycle.getInfrastructure().getRequest().getSession(false);
String
Tapestry's new validation framework covers a few of the basic
constraints one might want on a field: not empty, greater than zero,
etc.
However, I often find myself doing additional validation in a
listener method, as part of the processing. For example, I can't
write a generic "Incorrec
On May 4, 2006, at 12:52 PM, Apache wrote:
Hi there,
I have to dynamically create image based on some data stored in
user session. And the question is: how can I do it with Tapestry
4.0? I've tried to find some answers by searching previous posts
but all I find is either Tapestry3-based
I think the general issue here is that as the Tapestry community grows it
gets more and more lopsided, with just a handfull of guys having the clout
to give answers that require heavy lifting.
Add to this that there is _only_ Kent's book available, if you want very to
the point examples with good
Thanks a lot for that, James. From that thread
(http://forum.hibernate.org/viewtopic.php?t=958965), Hibernate's "Object
Session.merge(Object)" method looks like a viable option; it was
originally called "Object saveOrUpdateCopy(Object)" -- it returns the
persisted object if the transaction is succ
Hi,
You can also check out dev.opendating.org/javadoc/ . It does exactly
that as well. SessionListener deletes user session record when session
is destroyed.
Kind Regards,
adam
On 5/4/06, Mike Snare <[EMAIL PROTECTED]> wrote:
That's what I do, and it works for me.
-Mike
On 5/4/06, James Car
That's what I do, and it works for me.
-Mike
On 5/4/06, James Carman <[EMAIL PROTECTED]> wrote:
Perhaps you can key your logged in user list (make it a map) by the session
id? Wouldn't that work?
-Original Message-
From: Oscar Picasso [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 04,
Perhaps you can key your logged in user list (make it a map) by the session
id? Wouldn't that work?
-Original Message-
From: Oscar Picasso [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 04, 2006 12:54 PM
To: Tapestry users
Subject: Re: List of logged users
I have tried to implement the H
I have tried to implement the HttpSessionListerner solution.
I have a slight problem. In the HttpSessionListener.destroy method I need to
get a session scoped "user" state object.
This "user" state object is then removed from the list of currently logged
users. It works fine except I get an I
Hi there,
I have to dynamically create image based on some data stored in user session.
And the question is: how can I do it with Tapestry 4.0? I've tried to find some
answers by searching previous posts but all I find is either Tapestry3-based or
I can't see how can I properly access some pers
Yep that works. I just found it under
http://jakarta.apache.org/tapestry/tapestry/hivedocs/config/tapestry.state.FactoryObjects.html,
before reading you email. Thanks.
James Carman wrote:
> Try this...
>
>
>
>
> -Original Message-
> From: Stanczak Group [mailto:[EMAIL PROTECTED]
> Sent:
Try this...
-Original Message-
From: Stanczak Group [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 04, 2006 12:09 PM
To: Tapestry users
Subject: Re: Initialize a state object? StateObjectFactory
I've crated a service that implements the interface StateObjectFactory.
Then I added the in
You have multiple services which implement the same interface. HiveMind can
only auto-wire if there is exactly one service point which supports the
interface.
-Original Message-
From: Rob Dennett [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 04, 2006 12:01 PM
To: Tapestry users
Subject:
I've crated a service that implements the interface StateObjectFactory.
Then I added the invoke like so:
But I'm getting:
Unable to construct configuration tapestry.state.ApplicationObjects:
Element state-object/invoke-factory (at context:/WEB-INF/hi
I have a bunch of services defined in my hivemodule.xml file, but hivemind
doesn’t seem to be wiring them together. In the login service (see below)
which I use directly, the field that contains the instance of the userDAO
service is null. The LoginService interface does not contain setUserDAO
So do I just create a service using StateObjectFactory interface and
then put then invoke factory in place. Like so:
Stanczak Group wrote:
> Should I just create a customer session factory service and use it?
>
> Stanczak Group wrote:
>
>> Is the only
You could do it using Jakarta Commons Proxy
quite easily!
You'd create a "delegating" proxy and an ApplicationStateObjectProvider.
That way, every time that a method is called on the delegating proxy, it'd
forward that call to the object provided by the
ApplicationStateObjectProvider.
-Orig
Expanding on what James said and following up on a hint given by Howard
in an earlier thread, I have been using the approach of injecting the
ASO into services using the following approach: 1) create a proxy object
that implements the same interface as the ASO, 2) the proxy is a
threaded/pooled
Should I just create a customer session factory service and use it?
Stanczak Group wrote:
> Is the only method? or the best method?
>
> Stanczak Group wrote:
>
>> I've create a customer state object. I want to initialize it with a sale
>> rep. I have a sale rep repository that can do that. How
MyPage.page:
...
...
MyComponent.jwc:
...
...
-Mike
On 5/4/06, Carl Pelletier <[EMAIL PROTECTED]> wrote:
Thanks Mike, can you give me a example of that ? What you say is that i just
have to pass the listener method in parameter of the component ?
I saw something similar on the t
Is the only method? or the best method?
Stanczak Group wrote:
> I've create a customer state object. I want to initialize it with a sale
> rep. I have a sale rep repository that can do that. How do I go about
> using the sale rep repository to set the sale rep value?
>
> #
Just wanted to announce that i've created a user list for TapIDEA in
GoogleGroups. I just wasn't very happy with the javaforge forums.
Please don't use the javaforge forums any more.
You can checkout more info here http://tapidea.javaforge.com/mail-lists.html.
Cheers
Hugo
I've create a customer state object. I want to initialize it with a sale
rep. I have a sale rep repository that can do that. How do I go about
using the sale rep repository to set the sale rep value?
#
Thanks Mike, can you give me a example of that ? What you say is that i just
have to pass the listener method in parameter of the component ?
I saw something similar on the tapestry web site, but thay talk about
listenerInvoker ...
Thanks for any help!
Carl
On Thursday 04 May 2006 10:42, M
Hi all
I've been following a couple of tutorials but there is something I don't
understand about PageLinks.
I have a standard web application, with the classes inside WEB-INF/classes
and the .html pages at the same level as WEB-INF.
I created a PageLink on my index page, pointing to the page I w
I've needed to do the same thing, but usually the listener is
specified by the page as a parameter of the component. If you can do
that, it's transparent.
-Mike
On 5/4/06, Carl Pelletier <[EMAIL PROTECTED]> wrote:
Hi everyone, I looking for help on component.
I have a component in a page. Tha
Hi everyone, I looking for help on component.
I have a component in a page. That component old 4 links. On each link, I put
a DirectLink. I would like to put a Listener on the DirectLink that reference
a Listener on the page.
So each time someone click on a link in the component, I would like
Yes, that's it.
But what is the advantage of creating a new service in Roger's solution ?
Isn't the default service usable in this case like the solution
described in the blog
http://www.behindthesite.com/blog/C1931765677/E2094832857/index.html
Mark wrote:
I think what Stephane originally wan
Would this help?
@InjectObject("infrastructure:response")
public abstract WebResponse getWebResponse();
OutputStream os = getWebResponse().getOutputStream(contentType);
Stephane Decleire wrote:
> getResponseWriter was very usefull to get and store the result of a
> page generat
Thanks to everyone for your help. It turned out that Tapestry was complaining
about not being able to find org.dom4j.DocumentException. I was confused by
the error page and thought it was _throwing_ a DocumentException.
I feel appropriately stupid now.
Thanks again,
Rob
-Original Message
I think what Stephane originally wanted to do is use Tapestry to
generate the content.
Once he has the content, it goes out via JavaMail API.
I guess Roger's solution should be the way to do that.
MARK
Andreas Bulling wrote:
On 03. Mai 2006 - 23:02:53, Mark wrote:
| I would agree with you if T
getMarkupWriterSource().newMarkupWriter(pw, new ContentType("text/html"))
will do just fine.
Simply inject tapestry.markup.MarkupWriterSource in your page
Stephane Decleire wrote:
> getResponseWriter was very usefull to get and store the result of a
> page generated by Tapestry instead of sendi
getResponseWriter was very usefull to get and store the result of a page
generated by Tapestry instead of sending it to the user.
ByteArrayOutputStream out = new ByteArrayOutputStream();
IMarkupWriter writer = page.getResponseWriter(out);
cycle.activate(page);
cycle.renderPage(writer);
writer.fl
Very interesting approach.
Thanks
Mike Snare <[EMAIL PROTECTED]> wrote: The service implementation is a cover for
the singleton. Imagine:
/**
* A simple HiveMind service
*/
public interface ISomeService {
void doSomething();
}
/**
* The implementation of the hivemind service, delegates
Yep, it was removed.
getResponseWriter returned a IMarkupWriter instance and it was used
by Tapestry 3 to render the page.
Tapestry 4 uses an IMarkupWriter according to the page's content type.
You can override the page's content type by overriding
BasePage.getResponseContentType()
Also take a loo
The service implementation is a cover for the singleton. Imagine:
/**
* A simple HiveMind service
*/
public interface ISomeService {
void doSomething();
}
/**
* The implementation of the hivemind service, delegates to the singleton.
*/
public class SomeServiceImpl implements ISomeService {
I guess you get your singleton using a static method. But how do you write your
hivemodule.xml to do that ?
Mike Snare <[EMAIL PROTECTED]> wrote: I do a similar thing, and I have a
standard, plain vanilla singleton
that is accessed via a service wrapper by pages/services (purely for
injection's
That helps, thanks.
How would you do it in Tapestry 3?
Sam
-Original Message-
From: James Carman [mailto:[EMAIL PROTECTED]
Sent: Thu 5/4/2006 10:40 PM
To: 'Tapestry users'
Subject: RE: List of logged users
The HiveMind registry is located in the ServletContext. You can look it up
by
Hi,
It seems that the function getResponseWriter of the BasePage class no
more exists in T4 ...
Am i wrong ?
Is there an equivalent function ?
Thanks in advance.
--
Stéphane Decleire
05 56 57 99 20
06 63 78 69 06
Oops! The static field is private. But, I guess you could hard-code what
it's set to (or we can ask the tapestry folks to open that up).
-Original Message-
From: James Carman [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 04, 2006 8:40 AM
To: 'Tapestry users'
Subject: RE: List of logged
The HiveMind registry is located in the ServletContext. You can look it up
by doing:
servletContext.getAttribute( ApplicationServlet.REGISTRY_KEY_PREFIX +
);
Where is the name of your application servlet in web.xml
(you can probably set that up as a servlet context parameter if you have
to).
I do a similar thing, and I have a standard, plain vanilla singleton
that is accessed via a service wrapper by pages/services (purely for
injection's sake) but is accessed via standard java by the listener.
-Mike
On 5/4/06, Haldane, Sam <[EMAIL PROTECTED]> wrote:
How would one access tapestry
How would one access tapestry from a listener like this? For example, access a
tapestry application state object which holds the list of users.
Sam
-Original Message-
From: Martijn Hinten [mailto:[EMAIL PROTECTED]
Sent: Thu 5/4/2006 10:22 PM
To: Tapestry users
Subject: Re: List of logg
This was sent through the forum. I don't know (I doubt) if it'll get posted
back to the forum if you just reply via email.
-Original Message-
From: Greg Cormier [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 04, 2006 8:32 AM
To: Tapestry users
Subject: RE: can I set any other page as defa
Do you want to change it on a per-user basis or application-wide?
m2f
Sent from www.TapestryForums.com
Read this topic online here: <>
http://www.tapestryforums.com/viewtopic.php?p=14760#14760
m2f
In your .application file,
Greg
-Original Message-
From: Apache [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 04, 2006 8:30 AM
To: tapestry-user@jakarta.apache.org
Subject: can I set any other page as default except Home page
Hello all,
I wouls like to thanks you people in adv
Hello all,
I wouls like to thanks you people in advance..
I am newbie in Tapestry framework, although worked out small small application,
using every time one default page as Home page.
can I set any other page as default page? Its really urgent for me...if in case
any body have idea...please
Implement a HttpSessionListener. This listener will be notified of all
sessions that are destroyed (it's sessionDestroyed() method will be
called). In that method you can check which user is logged off en remove
that user from the (applicationscope, I guess) list.
See code sample below.
Good
You can use a session listener for this:
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpSessionListener
.html
You register it in your web.xml file.
-Original Message-
From: Oscar Picasso [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 04, 2006 8:15 AM
To: Tapestry users
S
Hi,
I am looking for advises on how to implement a use case that is, think, quite
common.
In my application users can log in. They can also loggout either explicitly or
because of session timeout.
In one part of my application I want to display the total number of logged
users and a list of e
Oh, that would be an option. Right now, you do the transaction demarcation
in your hivemodule.xml file.
-Original Message-
From: Mark [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 04, 2006 1:56 AM
To: Tapestry users
Subject: Re: [tapernate] Session-Per-Conversation...
I mainly wrote tha
I agree with you for static email but mines are not.
The sample of the "forgotten password" was just a simple one.
I need to build email content which depends on informations posted in
forms by the users.
So i think Tapestry should be the best "gun" for this use ;-).
James Carman wrote:
Tapes
Here is how I did it in Tapestry 4.
1. Create a service for sending mail
2. in service() method:
MailPage page = (MailPage) cycle.getPage("MailPage");
//set some properties on page ...
CharArrayWriter w = new CharArrayWriter();
PrintWriter pw = new PrintWriter(w);
//
On 03. Mai 2006 - 23:02:53, Mark wrote:
| I would agree with you if Tapestry would be used for email only and
| nothing else, but if you have an application that is all Tapestry and in
| one or two places the application requires sending out an email, I think
| using Tapestry for that would make
81 matches
Mail list logo