I wrote a component which shows some html from an external source. This html
may contain some links. If one of this links is clicked I need to call a
listener to set some parameters, but I don't know how to trigger the listener
in this case.
Please help.
Kay Thielmann
Mitarbeiter / BC
hi bill,
i posted a related comment on
https://issues.apache.org/jira/browse/TAPESTRY-1650
maybe you can take a look on it
g,
kris
Bill Holloway [EMAIL PROTECTED]
30.07.2007 01:14
Bitte antworten an
Tapestry users users@tapestry.apache.org
An
Tapestry users users@tapestry.apache.org
you could use the EventListener mechanism to intercept the clicks,
see http://tapestry.apache.org/tapestry4.1/ajax/eventlistener.html
If you know the link-id's in advance, it's particularly easy.
If you don't have control over the external links, you'll have to
come up with some javascript
We are using Tapestry 4.02 in a portal environment. So using AJAX or javascript
(even so it may not be barrier-free) is not so easy. I thought about something
like writing my own service or subclassing DirectService, or something like
that...
Any suggestions?
-Ursprüngliche Nachricht-
depends on how much control over the external links you do have.
If you can control their generation, you can do anything ;).
hard to say, without a more concrete knowledge of what these links should do,
why they cannot be generated by tapestry and what they may be allowed to know
about tapestry.
Hello, I've just seen a strange behaviour when selecting a date from
DorpDownDatePicker, because this component performs a submit.
Is it a bug ?
Thanks so far. In my freemarker-templates I wrote the links as if they would
have been renderered by DirectLink. Now Tapestry uses the trigger() Methode of
the Direct Interface. No real nice solution, but it works.
-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL
Hi all,
I would like have a table, where on every row will be radio select, I
was trying code below, and rendering was ok, but after submit form tapestry
5 throw null pointer.
Any ideas, please
Thanks
John
HTML:
t:form
t:radiogroup t:id=radioSelectedValue
table t:type=grid
I wouldn't mind implementing a hivemind service if I could solve the problem
this way, but I don't know how to implement the behaviour that I want. I
want exactly what you discribe happens in WebObjets: if at any point in the
ognl chain a null object is invoked, the hole expression evaluates to
Hi all,
I've tried to override default Tapestry as described here
(http://tapestry.apache.org/tapestry4.1/developmentguide/exceptionpages.html).
Unfortunately after adding
contribution configuration-id=tapestry.Infrastructure
property name=exceptionPageName value=GeneralErrorPage/
Hi,
please use
contribution configuration-id=tapestry.InfrastructureOverrides
instead of
contribution configuration-id=tapestry.Infrastructure
Mahmut
ccmail schrieb:
Hi all,
I've tried to override default Tapestry as described here
Hi,
please take my words with a grain of salt because I've never used this
in production but in my opiinon this should be the way to proceed:
have a look at this tapestry configuration point:
Am I too naive to expect maven build to just build without problems?
I checked the source I go to the root directory (above all the modules)
and I do mvn clean package I get errors. That classes are can not be
compiled. Some missing deps.
Any clue? Any guidance on how to successfully build
the errors are of this type:
/home/alex/sources/tapestry5/tapestry-test/src/main/java/org/apache/tapestry/test/JettyRunner.java:[89,12]
cannot find symbol
symbol : class Server
location: class org.apache.tapestry.test.JettyRunner
Hello!
I'm having this exception (
org.apache.tapestry.binding.AbstractBinding.createReadOnlyBindingException(
AbstractBinding.java:115)) when I call into my rewindFormComponent method
this code:
setStartRow(sliderValue);
and I set into jwc file:
parameter name=startRow required=no cache=true
this is the stack trace
org.apache.tapestry.binding.AbstractBinding.createReadOnlyBindingException(
AbstractBinding.java:115)
org.apache.tapestry.binding.ExpressionBinding.setObject(
ExpressionBinding.java:196)
$EditTable_16.setStartRow($EditTable_16.java)
Well, I'm having a very similar behaviour with Dialog component that
by default has a true parameter for optional parameter hidden.
parameter name=hidden default-value=true /
It seems that if you set a constant value (ognl:0 or true) to a
parameter then the parameter itself is regarded as
Well, I try to investigate into this, meanwhile if you could be so kind to
post a jira...
ciao,
kiuma
On 7/30/07, Martino Piccinato [EMAIL PROTECTED] wrote:
Well, I'm having a very similar behaviour with Dialog component that
by default has a true parameter for optional parameter hidden.
Thanks very much Martino,
an fool fault!, but it did not know clearly so that was the method
getAcceptsNull(), seemed to me very similar to isRequired() and I supposed
that they had the same function.
In the end, i think in extend the class
org.apache.tapestry.form.validator.Required
and it
Posted one for the parameter issue
https://issues.apache.org/jira/browse/TAPESTRY-1682
and another one for the Dialog component:
https://issues.apache.org/jira/browse/TAPESTRY-1683
I didn't do it first because I was trying to investigate myself but I
really have no time to do this now.
Ciao
Hi Folks,
I am trying to operate the index parameter as documented in the
contrib:table docs.
Can someone help clarify this for me?
Here is the documentary...
INDEX: If provided, the parameter is updated with the index of the loop on
each iteration.
Can someone elaborate on what the
I am using Eclipse WTP and Tomcat 5.5 to develop with Tapestry 5. Changes to
page classes are supposedly picked up by Tapestry, via an inspection of the
class path.
Now, when I change a page class, Tomcat notices the changed file and reloads
the whole context - effectively resetting the
2007/7/30, Ken nashua [EMAIL PROTECTED]:
Hi Folks,
I am trying to operate the index parameter as documented in the
contrib:table docs.
Can someone help clarify this for me?
Here is the documentary...
INDEX: If provided, the parameter is updated with the index of the loop on
each
Thanks for the pointer Nick!
I will try again.
Shing
--- Nick Westgate [EMAIL PROTECTED] wrote:
Hi Shing.
Nice to see you getting into T5. ;-)
Not sure why your
resources.renderInformalParameters(writer)
fails, but it's likely a clash with the
RenderInformals mixin
in
dont' know. I use dddp extensively without any unwanted submissions
(just double-checked). Are you sure you don't have any EventListeners
or stuff wired to them?
2007/7/30, Andrea Chiumenti [EMAIL PROTECTED]:
Hello, I've just seen a strange behaviour when selecting a date from
Hi!
Is it possible to use BeanEditForm component for
editing complex beans?
I have the following classes (getters and some
irrelevant things are stripped, which might make
classes slightly odd, but they have to be this way in
my case).
public class Item {
private String name;
I think this is a question from moonfly2004.
The way to help, I think, would be to work up examples in the wiki and as
you hit features that aren't implemented, suggest implementations and
workarounds. This will flesh out the functionality of T5 and provide
starting points for committers. You may
On Fri, 2007-07-27 at 17:37 -0300, Thiago H de Paula Figueiredo wrote:
And has anyone implemented a Select-like component for multiple option
selection? It would be very nice to have both multiselect and palette, as
T4 has.
Take a look at this thread, it's really easy to implement
On Mon, 30 Jul 2007 17:13:07 -0300, Martin Grotzke
[EMAIL PROTECTED] wrote:
On Fri, 2007-07-27 at 17:37 -0300, Thiago H de Paula Figueiredo wrote:
And has anyone implemented a Select-like component for multiple option
selection? It would be very nice to have both multiselect and palette,
Hi,
you should set up your environment as it's described in the tutorial
(http://tapestry.apache.org/tapestry5/tutorial1/env.html).
AFAIK T5 class reloading does work with jetty 5 + jetty launcher only.
Cheers,
Martin
On Mon, 2007-07-30 at 11:42 -0700, entelechon wrote:
I am using Eclipse
sorry, it was a bug in my js code.
On 7/30/07, Marcus Schulte [EMAIL PROTECTED] wrote:
dont' know. I use dddp extensively without any unwanted submissions
(just double-checked). Are you sure you don't have any EventListeners
or stuff wired to them?
2007/7/30, Andrea Chiumenti [EMAIL
I remember I had same problem once when I tried to compile some 5.0.5 snapshot
from subversion using maven 2.0.7. I think I solved this by modifiying the
tapestry-project/pom.xml like this:
dependency
groupIdorg.apache.tapestry/groupId
artifactIdtapestry-test/artifactId
Maybe this will help
https://issues.apache.org/jira/secure/ManageAttachments.jspa?id=12374984
How much science could there be to operating a parameter ?
Best regards
Ken in nashua
_
I did get the column parameter to operater correctly.
Index could not be that different could it?
Still shaking my head...
Best regards
Ken in nashua
_
http://im.live.com/messenger/im/home/?source=hmtextlinkjuly07
Ok, it seems I needed one of these...
property name=index/
in an auxillary page that operated one of my intermediary persistence
oriented templates.
Best regards
Ken in nashua
_
Need a brain boost? Recharge with a stimulating
Joost, thanks for the code snippet --I think it got me on the right track.
Can I define this snippet in Java code somehow?
t:parameter t:name=yourUnknowBeanPropertyCell
${myRow.yourUnknowBeanProperty.somethingPresentable}
t: parameter
I want tapestry to automatically know how to display the
To summarize... using a contrib component parameter may not be that straight
forward.
I had to open up the usage by specifying a binding.
Then the property...
property name=index/
Best regards
Ken in nashua
_
Need a brain
t:colorPicker size=3 color=color /
The informal parameter size3 is rendered if I
do the following changes to my ColorPicker.java
(without using mixins).
1) Remove @SupportsInformalParameters and
resources.renderInformalParameters(writer)
2) In the beginRender method, only
render the
I have a component that subclass AbstractField.
In the beginRender method of my component, how do
I get the name of the enclosing form ?
Thanks in advance for any assistance !
Shing
Home page : http://www.lombok.demon.co.uk/
Yes adasal,you are great.I'm a terminal user.I am unable to do what
one hopes to do
until now.I only learned how to use form in T5.
2007/7/31, adasal [EMAIL PROTECTED]:
I think this is a question from moonfly2004.
The way to help, I think, would be to work up examples in the wiki and as
you
For Select, a default encoder can be generated from the type of property
bound to the value parameter of the Select.
For Palette, what's bound is a List ... due to type erasure, even ListFoo
looks like List, and there is no effective way to determine the underying
element type, so you are forced
I've found out how to pass data between components so long as it's
downstream. Is there a way to pass data from a component (B) that is
physically below another component (A) to component A?
I've found that performing any data passing (per situation above)
during the RenderSetup, etc. methods
Hello,
I tried to do getNamespace().getPageNames() and all I got was the name of the
current page. Then I tried this:
ListString pages = new VectorString();
for ( Object id : getNamespace().getChildIds() )
{
INamespace lib = getNamespace().getChildNamespace( id.toString() );
BTW _resources.getComponentModel().getEmbeddedComponentIds() would be
really really useful if it didn't return an empty list every time
during my testing. Is there any way for a component to know what it
contains?
On 7/30/07, Todd Orr [EMAIL PROTECTED] wrote:
I've found out how to pass data
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Is there any way to bind messages into assets (JS or CSS)? This works
great with inline scripts (message prefix), but obviously not with
context resources.
Since assets are cached anyway, it seems like it should be simple to
implement, but I'm not
Hi Shing.
By inheriting from AbstractField you are using these mixins:
@SuppressWarnings(unused)
@Mixin
private RenderInformals _renderInformals;
@SuppressWarnings(unused)
@Mixin
private RenderDisabled _renderDisabled;
RenderInformals is rendering the informal
The id and name of a form are the same, so:
@Environmental
private FormSupport _formSupport;
...
String name = _formSupport.getClientId();
Cheers,
Nick.
Shing Hing Man wrote:
I have a component that subclass AbstractField.
In the beginRender method of my component, how do
I get the name
Joost, How did you add a row for the totals while keeping that row
from being sortable?
I don't want to add it outside of the grid's table structure, because
I want the columns to align. I did this in T4 using code like this:
span jwcid=tableView
table class=reportdata
tr
48 matches
Mail list logo