On Fri, 29 Jul 2011 22:19:03 -0300, Josh Canfield
wrote:
Sorry, I wasn't very clear. I want to "advise" some services in an
application that isn't being built using tapestry. First usage will be
for adding performance monitoring, but other usages are envisioned.
The server is using ATG's Nucl
What you need is a hook that says:
instantiate an instance of class
and you replace
Class.forName("xxx").newInstance()
with
mgr.getClassInstantiator("xxx").newInstance()
Or, you can define a proxy that takes an original object in its
InstanceContext. It can delegate each method to th
> I'm not sure what you are trying to do.
Sorry, I wasn't very clear. I want to "advise" some services in an
application that isn't being built using tapestry. First usage will be
for adding performance monitoring, but other usages are envisioned.
The server is using ATG's Nucleus for service bean
On Fri, 29 Jul 2011 19:58:40 -0300, David Canteros
wrote:
I have to implement an automatic login on my tap application. I use tap
5.2.6 and tapestry-security 0.3.1.
Initially I had a Login page with a login form, but now I have to pass
the username and password to the login page via url, l
You can have more than one onActivate method in a page class. Tapestry
determines, which to call by the parameter count. You can write a catch-all
onActivate. Code looks like this:
Object onActivate(EventContext context) {
}
If this is the only onActivate-method in the page it will always be
I'm not sure what you are trying to do.
You can use Plastic to create proxies around ordinary classes, as long
as the classes conform to an interface (this is what Tapestry IoC does
extensively).
Plastic rewrites your classes and, among other things, adds a new
constructor, and invalidates the ot
I did a gradle build 1st.
Then I was able to successfully "gradle idea"
The generated Idea project was all OK except I had to set the sub projects
SDK's manually.
Also I notice that my project libraries include both a groovy-all-1.7.4.jar
& a groovy-all-1.7.5.jar.
thanks a bunch for the help
happy
Hello:
First of all thanks for your help, I read the mails every day and I always
take something useful for my tap applications.
I have to implement an automatic login on my tap application. I use tap
5.2.6 and tapestry-security 0.3.1.
Initially I had a Login page with a login form, but now I ha
Interesting. I imagine that your tests work because you're using
groovy and not trying to access the class that you've transformed as
it's actual type.
@Test
public void monitor() {
String rootPackage = "org.apache.tapestry5.monitor.test";
DefaultMonitorNameGenerator nameGene
Hi Josh
This might help
http://tawus.wordpress.com/category/plastic/
regards
Taha
On Fri, Jul 29, 2011 at 11:25 PM, Howard Lewis Ship wrote:
> On Fri, Jul 29, 2011 at 10:19 AM, Josh Canfield
> wrote:
>> I'd like to integrate some advice used in a tapestry web project into
>> a non-tapestry w
> As far as I can remember someone committed a fix for this exact issue a
> while ago.
Try running gradle build first. The problem is there is no build
directory and the code is trying to exclude the generated-sources in
the build folder... I wrote the problem, but don't have time right now
to wri
As far as I can remember someone committed a fix for this exact issue a
while ago.
Doing a "gradle build" before using the idea task was a work-around before
it was fixed, is your source 100% up to date?
--
Chris
On Fri, Jul 29, 2011 at 11:14 PM, Jon Williams
wrote:
> I have the same problem w
I have the same problem w/"gradle idea" using Gradle 1.0-milestone-3.
On Fri, Jul 29, 2011 at 1:51 PM, Howard Lewis Ship wrote:
> I haven't tried milestone-4; I'm using milestone-3 and I think I'll
> stick there for a bit!
>
> On Fri, Jul 29, 2011 at 1:36 PM, Jon Williams
> wrote:
> > Hi Tapest
I haven't tried milestone-4; I'm using milestone-3 and I think I'll
stick there for a bit!
On Fri, Jul 29, 2011 at 1:36 PM, Jon Williams
wrote:
> Hi Tapestrians,
>
> Working with the SVN trunk I am unable to gradle the idea project into
> existence.
> I'm brand new to gradle, am I missing somethi
Hi Tapestrians,
Working with the SVN trunk I am unable to gradle the idea project into
existence.
I'm brand new to gradle, am I missing something? or is the idea task indeed
broken?
(using Gradle 1.0-milestone-4)
thanks
cut and paste from the terminal below
-
Jon-Williamss-MacBoo
You want to generate two links that are handled differently. Either
put a context value into each EventLink, or switch to ActionLink which
makes it easy to distinguish the two, by component id. Got duplicate
code? Refactor it into a common method.
2011/7/28 Михаил Слободянюк :
> Hi!
> If you wan
On Fri, Jul 29, 2011 at 10:19 AM, Josh Canfield wrote:
> I'd like to integrate some advice used in a tapestry web project into
> a non-tapestry web project. I can add a dependency on plastic, but not
> a tapestry-ioc.
>
> I'm at the experimental stage at this point and I've hit a snag. I
> figure
I'd like to integrate some advice used in a tapestry web project into
a non-tapestry web project. I can add a dependency on plastic, but not
a tapestry-ioc.
I'm at the experimental stage at this point and I've hit a snag. I
figure I can wade around for a couple hours, or Howard can whip up in
exam
You can use eventlink instead of actionlink and specify the event name
using "event" parameter.
regards
Taha
On Fri, Jul 29, 2011 at 7:34 PM, Julien Martin wrote:
> It would be nice if I could add several OnEvent to a method. I could for
> instance add the EventConstants.ACTION event as well as
It would be nice if I could add several OnEvent to a method. I could for
instance add the EventConstants.ACTION event as well as the ACTIVATE event
to my loadJobPostings() method.
Can anyone please help? Is there a better way?
J.
2011/7/29 Julien Martin
> I understand part of the problem now. Th
I understand part of the problem now. The method below is called before the
ajax method that return grid.getBody();
*@OnEvent(EventConstants.ACTIVATE)
void loadJobPostings() {
jobPostings = service.loadJobPostings();
}*
How can remedy this without doing something like this which
Here is the result of the first click:
Hibernate: select jobposting0_.id_job_posting as id1_0_,
> jobposting0_.job_posting_activated as job2_0_, jobposting0_.job_posting_body
> as job3_0_, jobposting0_.job_posting_contact_email as job4_0_,
> jobposting0_.job_posting_contact_name as job5_0_,
> jobp
No JS error is shown in firebug/firefox.
I am going to try with @Log
J.
2011/7/29 Taha Hafeez
> You can add @Log to the event handlers to log the calls.
>
> Did you check if you page has a javascript error ?
>
> regards
> Taha
>
> On Fri, Jul 29, 2011 at 7:02 PM, Julien Martin wrote:
> > No exc
Very weird. I am now realizing that it does work BUT I have to click twice
(not double click) on the action link for it to work.
Any idea why that is?
J.
2011/7/29 Julien Martin
> No exception is thrown...
> Is there any way to log the ajax calls?
> J.
>
>
> 2011/7/29 Taha Hafeez
>
>> There mus
You can add @Log to the event handlers to log the calls.
Did you check if you page has a javascript error ?
regards
Taha
On Fri, Jul 29, 2011 at 7:02 PM, Julien Martin wrote:
> No exception is thrown...
> Is there any way to log the ajax calls?
> J.
>
> 2011/7/29 Taha Hafeez
>
>> There must be
No exception is thrown...
Is there any way to log the ajax calls?
J.
2011/7/29 Taha Hafeez
> There must be some stack trace ? Can you share that ?
>
> regards
> Taha
>
> On Fri, Jul 29, 2011 at 6:54 PM, Julien Martin wrote:
> > I've added these as suggested. It still does not work...
> > Any ot
There must be some stack trace ? Can you share that ?
regards
Taha
On Fri, Jul 29, 2011 at 6:54 PM, Julien Martin wrote:
> I've added these as suggested. It still does not work...
> Any other idea?
> J.
>
>
> * @OnEvent(value = EventConstants.ACTION, component = "pause")
> Object pauseJobPost
I've added these as suggested. It still does not work...
Any other idea?
J.
* @OnEvent(value = EventConstants.ACTION, component = "pause")
Object pauseJobPosting(JobPosting jobPosting) {
service.pauseJobPosting(jobPosting);
return grid.getBody();
}
@OnEvent(value = Ev
Do the corresponding event handlers of these actionlinks return zone.getBody()
@InjectComponent
private Zone grid;
Object onUnPause()
{
return grid.getBody();
}
regards
Taha
On Fri, Jul 29, 2011 at 6:32 PM, Julien Martin wrote:
> Hello,
>
> I have a form that contains a number of action li
Hello,
I have a form that contains a number of action links. I would like to update
the whole enclosig form from an action link and have added a zone to that
purpose.
It is as follows:
*
unPause
thanks all,
I'll have a look at that.
J.
2011/7/29 Stephan Windmüller
> On 28.07.2011 16:12, Julien Martin wrote:
>
> > The current behavior is for my form *to consider that the current row is
> > always the last one*!!
>
> Please have a look at the parameter "defer" of the submit component:
>
>
On 28.07.2011 16:12, Julien Martin wrote:
> The current behavior is for my form *to consider that the current row is
> always the last one*!!
Please have a look at the parameter "defer" of the submit component:
http://tapestry.apache.org/current/tapestry-core/ref/org/apache/tapestry5/corelib/com
32 matches
Mail list logo