Spock is really making writing tests fun, instead of a chore.
@Unroll("toClass '#javaName' should be #expectedClass") def "toClass
tests"() { expect: PlasticInternalUtils.toClass(getClass().classLoader,
javaName) == expectedClass where: javaName |
expectedClass "java.lang.String" | String.class "ja
You have written
onSelectFrom instead of onSelectedFrom
secondly you have specified @Event which is unnecessary if you are using
onEventFromComponent syntax
regards
Taha
On Wed, Apr 6, 2011 at 10:42 AM, Amr Mohamed Mahmoud Hassanien <
amr.hassan...@dmi.ae> wrote:
>
> =
I updated the docs at http://tapestry.apache.org/css.html based on Howard's
answer.
On Apr 5, 2011 8:32 PM, "Taha Hafeez" wrote:
> Sorry typo!!
>
> On Wed, Apr 6, 2011 at 3:25 AM, Howard Lewis Ship
wrote:
>
>> Oops, sorry Taha, you got this a bit wrong.
>>
>> You use @Inject on a field, so this w
I thought the @Event annotation is enough if I am not following the convention,
I even tried the "selected" word it does not work.
Any idea what else may be causing the problem ... your help is much appreciated
..
Regards
Amr
-Original Message-
From: Taha Hafeez [mailto:tawus.tapes..
Hi Amr
You should either use @OnEvent or onEventFromComponent.
What you are doing wrong here is that you are specifying
@OnEvent(component='...') but you are not specifying the value for 'value'
attribute of the annotation which is by default 'action'. So this method
will be executed when there i
Hello,
I am doing a form component that can edit the object bound to it.
Here is an exemple:
I am editing a resource wich has a type, so I did this:
I use the class, labelFields and pkField to retrieve the corresponding
values in the bound object.
The templa
On Wed, Apr 6, 2011 at 12:12 AM, Igor Drobiazko
wrote:
> Both 5.3 and 5.4 are planned for 2011.
Remember Igor... You wrote it!
Cheers
--
Massimo
http://meridio.blogspot.com
-
To unsubscribe, e-mail: users-unsubscr...@tapestry
Im trying to call a page, that returns a dynamically generated pdf instead
of html. No problem with component events. But I just want to call something
like www.mydomain.de/example.pdf.
What I've tried is:
public boolean setupRender() throws IOException {
This this instead of @SetupRender:
@OnEvent(EventConstants.ACTIVATE)
StreamResponse onActivate() {
InputStream myPdfStream = // build your pdf
return new PDFStreamResponse(myPdfStream,"MyPDF");
}
On Wed, Apr 6, 2011 at 9:16 AM, Jens Reufsteck
wrote:
> I’m trying to call a page, that retu
And of course the PDFStreamResponse can be found on the wiki, along
with the entire example:
http://wiki.apache.org/tapestry/Tapestry5HowToCreateADynamicPDF
Adam
On Wed, Apr 6, 2011 at 9:32 AM, Adam Zimowski wrote:
> This this instead of @SetupRender:
>
> @OnEvent(EventConstants.ACTIVATE)
> Str
On Wed, Apr 6, 2011 at 12:51 PM, Bob Harner wrote:
> I updated the docs at http://tapestry.apache.org/css.html based on Howard's
> answer.
Thanks Bob!
Cheers
--
Massimo
http://meridio.blogspot.com
-
To unsubscribe, e-mail: us
Great, thanks! onActivate does the trick.
Jens
--
Jens Reufsteck
Marketing & Online Director
Staufenbiel Institut GmbH
Events & Recruiting Solutions
Wildunger Straße 6, 60487 Frankfurt am Main
www.staufenbiel.de www.mba-master.de www.absolventenkongress.de
Tel.: +49 (0)69 25537-140
Fax: +
On Wed, 06 Apr 2011 11:16:33 -0300, Jens Reufsteck
wrote:
I’m trying to call a page, that returns a dynamically generated pdf
instead of html. No problem with component events. But I just want to
call something like www.mydomain.de/example.pdf.
I understand, that this is probably not ex
Thanks, that was an interesting read, but it doesn't help solve my
problem. I still don't see how I would pass a persisted property-bound
parameter to the implementation mixin. The only related code I've seen
is like
@Component(parameters={"hidden=hide"})
but using that like this doesn't work
To add, I'm not sure creating a pure XHR request is working out quite
how I might have expected. The following javascript snippet:
var request = false;
try {
request = new XMLHttpRequest();
var url = "/ViewTransactionsTab:HideShow/" + escape(hide);
request
> When this is executed, it triggers the event method properly in the Java
> Page class, but it also triggers the render cycle in the page class as well,
> as far as my logs indicate.
Sounds like tapestry isn't detecting that you are doing XHR. It's
detected based on an HTTP header "X-Requested-Wi
Last time I did this I used a javascript cookie api.
--
View this message in context:
http://tapestry-users.832.n2.nabble.com/Implementation-mixin-and-persistence-tp6243796p6246820.html
Sent from the Tapestry Users mailing list archive at Nabble.com.
-
Dear Rich
I tried to implement what you desired ( to the best of my understanding)
this is it
import org.apache.tapestry5.ClientElement;
import org.apache.tapestry5.ComponentResources;
import org.apache.tapestry5.Link;
import org.apache.tapestry5.annotations.Environmental;
import org.apache.tape
Thanks Josh, you are right. Using the Prototype Ajax.request object
solved the problem (as it does include that header) and is easier to use
anyway. Thanks for the tip.
On 04/06/2011 12:51 PM, Josh Canfield wrote:
When this is executed, it triggers the event method properly in the Java
Page cl
Amazing, thanks for the example here. My implementation isn't exactly
the same, but your code example made the concept quite clear and I've
got it working now. Thanks!
On 04/06/2011 01:14 PM, Taha Hafeez wrote:
Dear Rich
I tried to implement what you desired ( to the best of my understanding)
I have updated the content of the
http://wiki.apache.org/tapestry/Tapestry5JSPEditorEclipse page but was
unable to add new attachments (not allowed to do "attachFile").
The new links (t5.2.5.tld and t5.3.0.tld) redirect to my GitHub account.
2011/4/5 Guerin Laurent
> You're welcome,
>
> t5.2.0.t
The Apache infrastructure guys have turned off attachments (apparently
long-term), due to abuse by the bad guys.
On Apr 6, 2011 5:56 PM, "Laurent Guerin" wrote:
> I have updated the content of the
> http://wiki.apache.org/tapestry/Tapestry5JSPEditorEclipse page but was
> unable to add new attachme
When I make a trivial change to a Tapestry page in development and refresh
my browser to cause a hot reload, it's taking about 11 seconds which is
getting annoying. I don't know exactly when this started (months ago), but
in an older workspace the page-reload time is about 0.3 second. Both are
us
How complicated are your pages? I've heard of these problems when
pages have deeply, deeply nested component structures (as in, loading
a page instantiates 15000 components).
The other thing that can slow things down is all the class path
searching involved in locating the page and component clas
Hi
Your BeanEditForm REQUIRES object, so you have to provide it... In your
template, it is not . Have you bound it in java class ??
Also, if you will elaborate/rephrase your problem, it will help
regards
Taha
On Wed, Apr 6, 2011 at 6:23 PM, selenar wrote:
> Hello,
>
> I am doing a form compo
Hi i have the following field.
public class FrameworkPage{
@Component(id = "frameworkName")
private TextField frameworkName;
public List onProvideCompletionsFromFrameworkName(final String partial)
{
return this.frameworkService.getFrameworkByName(partial);
}
}
What have you seen using Firebug or the Chrome debugger? There's no
particular reason for this to be failing suddenly in 5.2.5 if it was
working in 5.2.4.
On Wed, Apr 6, 2011 at 9:58 PM, cablepuff wrote:
> Hi i have the following field.
>
>
> public class FrameworkPage{
> @Component(id = "fr
27 matches
Mail list logo