Dear all:
I was doing some async calls in T4.
After the components is updated asynchronously, the javascript event
associated with it will by broken.
Thus, I have to specify the "script" component in the "updateComponents"
attribute
However, the script has two parts ---"body" & "initialization
5.0.11 allows you to refer to a page or component by its normal and
optimized (aka, "munged") name.
On Wed, Feb 20, 2008 at 6:33 PM, David Kendall
<[EMAIL PROTECTED]> wrote:
> Tapestry 5 has logic that munges the name of a component based upon
> various heuristics.
>
> For example - if we have a
web services,
XMLRPC,
some other coom api...
On Thu, Feb 21, 2008 at 1:20 AM, Angelo Chen <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have a t5 app(app A) that uses Tapestry-Hibernate, now I need to write a
> new T5 app(app B) that need to :
>
> 1) Access tthe entities in the first app
> 2) use
i try to use
document.all.myhidden.value = "hiddenvalue";
but it is useless,how can i set the hidden value before form submit???thanks a
lot!
Oliver Lee
2008-02-21
Tapestry 5 has logic that munges the name of a component based upon
various heuristics.
For example - if we have a component in a class called
com.company.components.test.TestComponent - then when we refer to it in
another component template it is addressed as test.Component. The
initial Test* par
Hey John,
I had a similar issue in my development environment. It turned out that
I had enabled an "experimental" feature in Firefox (pipelining, I
believe? I can't remember what it was called) that was supposed to
increase the number of simultaneous connections my browser made to the
web server
Hi,
I have a t5 app(app A) that uses Tapestry-Hibernate, now I need to write a
new T5 app(app B) that need to :
1) Access tthe entities in the first app
2) use some services in the first app as well
Any idea how to structure the app A so that it will be available to the app
B? Thanks,
A.C.
--
This also works out of the box with a DirectLink and you can even update
a component when some javascript or dom event is triggered by simply
adding an EventListener to your page class. E.g.
@EventListener(targets="targetComponent", events="onmousover")
public void updateSomething(IRequestCycle
In that case, why not just trigger the action yourself?
void onSelected() {
resources.triggerEvent("action",contextArray,null);
}
Robert
On Feb 20, 2008, at 2/203:24 PM , Joachim Van der Auwera wrote:
I am creating a component which behaves like an ActionLink but is
form aware in the sense
Is anyone else seeing this? In T4.1.5, I'm seeing all the client-side
validation errors momentarily displayed when I submit cancel, eg.
submitType="cancel"/>
I'm pretty sure this wasn't happening in 4.1.3.
Cheers,
Geoff
http://files.doublenegative.com.au/jumpstart
I am creating a component which behaves like an ActionLink but is form
aware in the sense that the form is submitted and then the actionlink is
called.
It all works fine when I persist the link (building it in the render
phase). But was hoping to not need the persit. Then again, it should not
plese post a JIRA issue
On Feb 20, 2008 10:04 PM, Davor Hrg <[EMAIL PROTECTED]> wrote:
> this looks like a bug...
>
> to go arround it you can call:
> private void onActionFromLink1()
> {
> // Some Business logic
> // Navigation logic
> this.componentRes
this looks like a bug...
to go arround it you can call:
private void onActionFromLink1()
{
// Some Business logic
// Navigation logic
this.componentResources.triggerEvent( "Link2", null,null );
}
but beware this will not generate anothers request,
an
Hi,
putting a grid in a form is really fantastically simple. I have one
issue though: if a user modifies some fields on one page and then goes
to the next using the pager, the changes are lost (there is no submit
of the form). I can see why it was implemented this way, but believe
that this is goi
Hi Uli,
I didn't say I was using form component. So I cannot use your solution.
Loïc
I'm working on a project where I need multiple files (40 - 50) to be
uploaded from a single page.
The "tapestry-upload" module is unsuitable because the "t:upload"
component only allows you to select one file at a time. Selecting 50
files from the "browse for file" dialog one at a time would
What is it you're trying to accomplish?
Robert
On Feb 20, 2008, at 2/202:31 PM , Joachim Van der Auwera wrote:
Indeed. Problem is that I don't need it until the button is clicked.
Then in the onSelected() I build the "Link" to redirect to.
It seems a bit backward (and waste of data in the ses
Indeed. Problem is that I don't need it until the button is clicked.
Then in the onSelected() I build the "Link" to redirect to.
It seems a bit backward (and waste of data in the session) if I have to
build this link during render and persist it until the button is clicked
(if it is).
Any idea
getting a NPE trying to access the page's root element (page is null).
Page is obtained from the active page from the page render queue.
So, it looks like you're trying to create an action link while no page
is rendering.
Cheers.
Robert
On Feb 20, 2008, at 2/202:03 PM , Joachim Van der Auwera
Davor,
Thanks, I will try to figure out writing a custom component for this.
Kind regards,
Joachim
Davor Hrg wrote:
it is not too complicated either,
but you must decide on how to pass
link's context into the form
and then submit the form
and work with data as it was only in the form
Does anybody have an idea what I am doing wrong?
Using the latest snapshot of tapestry5.
In the following code :
@Inject
private ComponentResources resources;
/**
* Act upon the "link"
*/
void onSelected()
{
Link link = resources.createActionLink( "action", false,
You might also consider emplying some kind of concurrency control for
long-living objects, i.e. automatic versionning and attach/detach
strategies.
Renat
On 20/02/2008, Davor Hrg <[EMAIL PROTECTED]> wrote:
>
> the reason you should be most concerned is that
> in one request session#1 loads the ob
Sorry, I don't quite get how is that related.
In this case, I am not using onActivate and onPassivate at all.
I am just trying to get an action link in an event handler method.
Cheers,
Jeffrey Ai
quick guess
are you returning any null values in onPassivate ?
Davor Hrg
--
View this messa
Right. The javadoc of "createActionLink" doesn't tell anything when it
should be used.
To my opinion, it makes sense to allow it be used in event handler methods.
Cheers,
Jeffrey Ai
--
View this message in context:
http://www.nabble.com/T5-5.0.10%3A---ComponentResources.createActionLink-broke
On Wed, Feb 20, 2008 at 5:37 PM, Filip S. Adamsen <[EMAIL PROTECTED]> wrote:
> Sorry, my bad. That is indeed not possible at the moment.
I did post and example in my first message in this thread where I was
playing with it, but I couldn't get Tapestry to process my renamed
method, so I gave it a r
You could also go and reinvent the wheel. But if you were smart and
using T4 you'd just add async="true" to your form component and you are
set. If you also want to reload the comments on your page without
reloading the whole page wrap them in an Any component and pass its id
to the updateCompo
> Hi,
>
> is there a way to change only components and not reload the hole page? In
> example i have an activex component on the page (an image viewer). I can
> control the image viewer with java script ( goToNextPosition() and so on).
> For every position the user should be able to make some comme
Sorry, my bad. That is indeed not possible at the moment.
-Filip
Robin Helgelin skrev:
On Wed, Feb 20, 2008 at 3:35 PM, Filip S. Adamsen <[EMAIL PROTECTED]> wrote:
Can't you just override the method instead and call the super method at
the right time?
Sure, but currently Tapestry class tran
Sabine K. wrote:
Hi,
is there a way to change only components and not reload the hole page? [...] Is
there
a way to do this with tapestry, or with tapestry + ajax?
Hello Sabine,
Tapesty has some Ajax facilities, which are describe here :
http://tapestry.apache.org/tapestry5/tapestry-core
On Wed, Feb 20, 2008 at 3:35 PM, Filip S. Adamsen <[EMAIL PROTECTED]> wrote:
> Can't you just override the method instead and call the super method at
> the right time?
Sure, but currently Tapestry class transformation doesn't support
this. Or maybe I'm just blind :)
--
regards,
Robin
--
I did, but it's not the most ideal one. I removed the listener from the
form altogether and bound it to the submit button. IIRC, I had to do
this asynchronously as well, but I can't recall why.
--
Kevin Menard
Servprise International, Inc.
Remote reboot & power control for your network
www.serv
Bad luck. As I see you are the reporter of that bug. Did you find a
workaround?
A.
Kevin Menard schrieb:
autosubmit="false" is currently broken. You can track the following
issue:
https://issues.apache.org/jira/browse/TAPESTRY-2003
--
autosubmit="false" is currently broken. You can track the following
issue:
https://issues.apache.org/jira/browse/TAPESTRY-2003
--
Kevin Menard
Servprise International, Inc.
Remote reboot & power control for your network
www.servprise.com +1 508.892.3823 x308
> -Original M
Worked instantly. Thanks.
But shouldn't "elements" work as well?
Kevin Menard schrieb:
-Original Message-
From: Andy Pahne [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 20, 2008 10:41 AM
To: Tapestry users
Subject: [4.1.5] @EventListener question
Page class:
@EventListen
I changed my @EventListener like that:
@EventListener(
targets = "formField1",
events = "onchange",
async=true,
autoSubmit=false)
And it submits the form, although I added "autoSubmit=false".
I think I'll need some time to get used to it...
A.
Kevin
> -Original Message-
> From: Andy Pahne [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 20, 2008 10:41 AM
> To: Tapestry users
> Subject: [4.1.5] @EventListener question
>
> Page class:
>
> @EventListener(elements = "formField1",
> events = "onchange", async
Hi,
I am trying out the @EventListener Ajax features and already got some
impressive results without knowing anything about Javascript, but
there's one thing that does not work:
Template:
Page class:
public void formSubmit() {
setMessage("Form 1 submitted");
Hi,
is there a way to change only components and not reload the hole page? In
example i have an activex component on the page (an image viewer). I can
control the image viewer with java script ( goToNextPosition() and so on).
For every position the user should be able to make some comments with s
Can't you just override the method instead and call the super method at
the right time?
-Filip
Robin Helgelin skrev:
On Feb 19, 2008 8:47 PM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
I think it's because the code you add is effectively inside a block,
i.e. in Java it would be:
{
int i =
Bugs fixed =)
Thanks!
2008/2/20, Davor Hrg <[EMAIL PROTECTED]>:
>
> public static void
>
> contributeComponentClassTransformWorker(OrderedConfiguration
> configuration, PropertyAccess propertyAccess)
> {
> configuration.add("InjectSelectionModel", new
> InjectSelectionModelWorker(prop
Hi all,
JumpStart 3.3 is now available for Tapestry 5.0.10. New features
include:
* Improved explanations.
* Improved custom exception page handling.
* Joda-time components updated to use 5.0.10's new DateField.
* Minor bug fixes and code improvements.
You'll
Hey... Thanks. This was the required hint.
It was my own fault. :o(
I didn't recognize the difference "ApplicationObjects" and
"ApplicationServices" and so tried to define this all the time in an
objects-element. When changing to service, all is fine. :o)
Nevertheless I'll try to backup your i
On Feb 20, 2008 11:12 AM, Ivan Dubrov <[EMAIL PROTECTED]> wrote:
transformation.extendMethod(TransformConstants.CONTAINING_PAGE_DID_ATTACH_SIGNATURE,
> tokenField + " = " + interField + ".checkBefore(" + configField +
> ");");
>
> transformation.extendMethod(TransformConstants.CONTAINING_PAGE_
the reason you should be most concerned is that
in one request session#1 loads the object
in other request session#2 loads objects
if you use relations from second request LazyLoadExceptions will happen
if you try to force old object from #1 to session#2 you can fix problems
but this is not recomen
BTW, I think there is a bug in the transform method, instead of this:
// Extend class
transformation.extendMethod(TransformConstants.BEGIN_RENDER_SIGNATURE,
tokenField + " = " + interField + ".checkBefore(" + configField + ");");
transformation.extendMethod(TransformConstants.CLEANUP_RENDER_SI
prefixMethod appeared only in 5.0.6 (AFAIR). Now it's possible to
implement method transformation. Here is working code from our project:
// Add to transform method
for (TransformMethodSignature method :
transformation.findMethodsWithAnnotation(Secured.class)) {
transformMethod(transformati
please add an issue in
http://code.google.com/p/tapestry5-components/issues/list
2008/2/20, Andreas Pursian <[EMAIL PROTECTED]>:
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Hi Sven (all),
>
> at first, i would like to thank you and the other people behind
> t5components for your great
This is a great list to have around - perhaps we can add reasons for
each of the steps. Davor I've heard what you're saying before, but I
forget the reason behind it (I assume LazyLoadException has something to
do with it). Is it for keeping http session free of large objects?
Preventing LazyLo
Hi,
I have exactly the same problem, I make a simple class to test, it works in
5.0.7, but fails in 5.0.9 and 10:
page class:
public class TestPage1 {
@Inject
private ComponentResources resources;
private Object[] _objs;
public Class onActivate(Object[] obj) {
_objs =
49 matches
Mail list logo