Hi,
I've cast an eye on tapestry5-components and i get very interested on
the OnEvent mixin :
1. that's great that any event (change, clic, focus, ...) of any form
component can trigger a call on the server (i don't understand why the
TriggerFragment of Tapestry has been limited to CheckBoxes
Tapestry support for Java generics is very limited,
you need a value encoder to make this work,
also, add more details on who calls what... so more is known
of the problem you are trying to solve.
Davor Hrg
On Tue, Apr 1, 2008 at 1:43 PM, Alec Leamas <[EMAIL PROTECTED]> wrote:
> I have problem
I have problems passing my own datatype(s) to my own component. The
component takes two parameters, one List and one List.
MyMap is declared as MyMap extends TreeMap {...}.
The first parameter, a list of strings arrives safely to my component.
However, the other one, seems to be mixed up: whe
OK, thanks...
In my page, I have
The columns argument, a List is just fine.
The rows argument, a List is the problem.
The page has a List getRows() which is verified.
Looking in MyComponent.java, I have
@Parameter
private List rows;
@Parameter
private List columns;
public S
how is getRows declared in your page class ?
On Tue, Apr 1, 2008 at 2:09 PM, Michael Kolmodin <[EMAIL PROTECTED]>
wrote:
> OK, thanks...
>
> In my page, I have rows="prop:rows"/>
>
> The columns argument, a List is just fine.
> The rows argument, a List is the problem.
>
> The page has a List
public List getRows() {...}
Davor Hrg wrote:
how is getRows declared in your page class ?
On Tue, Apr 1, 2008 at 2:09 PM, Michael Kolmodin <[EMAIL PROTECTED]>
wrote:
OK, thanks...
In my page, I have
The columns argument, a List is just fine.
The rows argument, a List is the problem.
Quick Question:
How can we avoid the situation where a user tries to directly access the
URL corresponding to the page named "Secure" in this case. I mean
without going thru the login form.
Thanks
-Original Message-
From: Jacob Bergoo [mailto:[EMAIL PROTECTED]
Sent: 28 March 2008 23:2
Hi,
I tried to package the entities into a jar file so that it can be used in
another project, here is a sample:
1. downloaded
http://wiki.apache.org/tapestry-data/attachments/Tapestry5HowToUseTapestryHibernate/attachments/hb.zip
2. compile and try it, it works.
3. goto entities directory:
jar
It won't matter. That's why you use the @Secured("ROLE_ADMIN") annotation.
At best, an unauthenticated user will have ROLE_ANONYMOUS if the
AnonymousAuthenticationProvider is used. They will get an AccessDenied
exception.
I'm playing with a little older code that coughs up a hairball when it h
This is really sounding like something unrelated to Tapestry, and there
isn't enough code presented to tell.
Do you have proof that your code works outside of Tapestry? Why, and how,
did you EXTEND TreeMap? Do you have a unit test to prove that your MyMap
works?
If you can present a non-Tap
Or why not let Maven generate your Ant scripts, which then can be maintained
you?
See http://maven.apache.org/plugins/maven-ant-plugin/
This way, you can use the Tapestry QuickStart archetype to get going really
fast, and then switch to Ant.
HTH,
Olle
2008/3/31, 宁德辉 <[EMAIL PROTECTED]>:
>
> Wh
Ok. Got ya. Thankx
-Original Message-
From: Jonathan Barker [mailto:[EMAIL PROTECTED]
Sent: 01 April 2008 16:04
To: 'Tapestry users'
Subject: RE: T5: Problem with login form with Acegi
It won't matter. That's why you use the @Secured("ROLE_ADMIN")
annotation.
At best, an unauthenticat
Hi Tapestry community,
I have been trying to get an application running under IcedTea in Fedora
8 and have run into a few problems. For the most part everything seems
to work; there are just a few areas that cause errors.
It seems like the enhanced subclass being generated by Tapestry does no
Problem:
I would like to have a textfield with a button/link beside it that when
clicked adds an additional textfield with another button beside it. I would
like this to be done with Ajax, but I am not sure how to have the first
textfield and button render initially.
I basically have:
Hi Adam,
Is IcedTea a complete implementation? I couldn't compile a project that was
built in java 1.6 sun with idedtea and gave up on it.
As far as I know, yes. The missing parts that aren't implemented in
IcedTea are filled in by stubs from OpenJDK/Classpath I think. That
could be backwards,
Is IcedTea a complete implementation? I couldn't compile a project that was
built in java 1.6 sun with idedtea and gave up on it. Interested, why do you
want to use it, well I guess it is something that has to be got right
eventually so the more users the better.
Adam
On 01/04/2008, Joe Attardi <
Using addScriptLink() can only project
I am wondering if it's possible to produce a script link like the
following,
I am trying to write some T5 component using dojo which uses "djConfig"
paramenter.
-
To unsubscribe, e-m
Thanks for taking time to answer :-)
I first had all of this working for a single page. *After* that, I
started a refactoring effort to be able to share some parts of the code
with other pages. That is, I'm moving out some working code from the
page (java + template) to a component. All of thi
I figured it out. Here is an example of my solution:
+
---
Object onActionFromAddBlock()
{
// code to add another item to list of items
}
Peter Beshai
On Tue, Apr 1, 2008 at 12
I' m using IcedTea, and it seems to work OK. However, Tapestry is java
5/1.5, so I had set both the javac source code and target options to
"1.5" to get rid of some mysterious errors using T5. I guess T4 is the same.
--Alec
PS: Have to check if my own problems are related to IcedTea... DS
Sorry, the java code should be:
@Inject
@Property
private Block _formBlock;
Object onActionFromAddBlock()
{
// code to add another item to list of items
return _formBlock;
}
On Tue, Apr 1, 2008 at 2:54 PM, Peter Beshai <[EMAIL PROTECTED]> wrote:
> I figur
Alec Leamas wrote:
I' m using IcedTea, and it seems to work OK. However, Tapestry is java
5/1.5, so I had set both the javac source code and target options to
"1.5" to get rid of some mysterious errors using T5. I guess T4 is the
same.
I will give that a try... thanks!
Playing with 3.0M3. Very nice!
I did notice one oddity... maybe I"m just doing something stupid?
I mapped a property as an int. When I generated the class, I got:
public void setSize(int size) {
writeProperty("size", size);
}
public $classGen.formatJavaType(${attr.Type}) get
I'm trying to use the templates from
http://wiki.apache.org/tapestry/Tapestry5HowToEclipseCodeTemplates
However, when I import them into eclipse, only the t5form* templates
are correctly imported. I messed around a bit and find that the
others are not imported because of the line:
$
Has anybody had any luck or can anybody advise me on how to override the
icon image in the Grid component?
--
Bill @ PeoplePad
Hi Bill,
I just tried to figure this out, but was unable to get anywhere with it.
Here is the source where the assets are injected:
065@Inject
066@Path("sort-asc.png")
067private Asset _ascendingAsset;
068
069@Inject
070@Path("sort-desc.png")
071pri
My problem is not just with lists: If I use a custom type as parameter
instead of my List parameter I get the error: "Could not find a
coercion from type java.lang.String to type net.kln.yalt.report.Report"
where the Report is my custom type.
This is strange. I "have* been able to transfer the
thanks marcus, i'll see if i can use that without 'dirtying' my code too
much.
p.
Marcus Schulte wrote:
You can distinguish between a "normal" render and an "ajax"-render via
getRequestCycle().getResponseBuilder().isDynamic(),
hth,
Marcus
On 01/04/2008, Paul Stanton <[EMAIL PROTECTED]> wro
I'm not an expert but i guess the BeanEditForm component may give you
some hints about this.
regards,
César.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
No, it doesn't work with pages.
Please see https://issues.apache.org/jira/browse/TAPESTRY-2309
J
On Mar 14, 2008, at 1:38 PM, Jesper Zedlitz wrote:
Christian Koeberl wrote:
The replacement of $content$ is the t:container construct (see
https://issues.apache.org/jira/browse/TAPESTRY-1469).
Hello!
It is quite clear how to use this event if the
component is hardcoded in the template, you just use
onSelectedFromMySubmit() method in your component.
Is it possible to handle onSelected event for
dynamically generated Submit components? I have a loop
which generates several Submit compone
There is no conversion when passing parameters between components. I'm
pretty confident that the fact you are using generics here is
irrelevant. When you access the @Parameter for the first time Tapestry
calls the getter from the page, and the object returned is the object
that you are using in the
Is it possible for component to render it's tag from
parent component with informal parameters and return a
block to render inside it?
The following code throws an exception while tapestry
modifies the component class.
Object beginRender(MarkupWriter writer) {
writer.element(resources.get
What version of Tapestry are you using? This works in 5.0.11. Do you
have the matching afterRender block to close the div?
public Block beginRender(MarkupWriter writer) {
writer.write("Something else");
String elementName = _resources.getElementName("div");
Oh well, your reply gives me something to look into anyway. I'll try to solve
the issue with the ModalBox guys and post the solution here.
Thanks,
Petros
Howard Lewis Ship wrote:
>
> The question is: does this Modalbox send a request via XmlHttpRequest?
> And does it use Tapestry's handling o
I have the following code that works fine
AccountsList.tml
${account?.accountManager?.username}
AccountsList.java
...
private BeanModel model;
{
model = beanModelSource.create(Account.class, true, componentResources);
model.add("accountManager", null);
}
Now I replaced this
I will probably try subclassing grid and overriding the GridColumns.
Bill
On Tue, Apr 1, 2008 at 3:21 PM, Peter Beshai <[EMAIL PROTECTED]> wrote:
> Hi Bill,
>
> I just tried to figure this out, but was unable to get anywhere with it.
> Here is the source where the assets are injected:
>
> 065
Sorry for the delay - meetings all day.
Josh Canfield made a suggestion regarding setting a breakpoint. I would
echo that, and make sure that you try the same code in the page class.
You've shared the component code. Can you share the relevant page code?
(Declaration, initialization, getters a
Hi guys,
I've got a @Form which submits async, and a @Submit. I've also got an
onclick js event handler which is causing me some grief, but only for IE:
When the submit button is clicked, in Firefox the js is called, and then
the form submits as per expected. however in IE the js is called bu
39 matches
Mail list logo