t;
>
>
> On Tue, 2011-02-08 at 12:56 -0200, Thiago H. de Paula Figueiredo wrote:
> > On Tue, 08 Feb 2011 12:50:57 -0200, Benny Law
> > wrote:
> >
> > > I understand that Tapestry is doing this to avoid potential conflicts,
> > > but can somebody provide
I understand that Tapestry is doing this to avoid potential conflicts, but
can somebody provide a real example of when this is necessary? This behavior
seems to be causing confusion and inconvenience to people, myself included.
Even when the danger of the conflict is real, there are still cases whe
Thanks Stephan, I got it working now.
I wonder if built-in support for this has been requested as an enhancement?
Benny
On Fri, Feb 4, 2011 at 12:59 PM, Stephan Windmüller <
stephan.windmuel...@tu-dortmund.de> wrote:
> On 04.02.2011 17:44, Benny Law wrote:
>
> > Thanks
ld and couldn't find anything.
Do I need to create a wrapper for it? Thanks.
Benny
On Fri, Feb 4, 2011 at 4:30 AM, Stephan Windmüller <
stephan.windmuel...@tu-dortmund.de> wrote:
> On 02.02.2011 16:39, Benny Law wrote:
>
> > Yes, I am doing cross-field validation (e.g. quantity
...@gmail.com> wrote:
> Why don't you use onPrepareFromQuantity(Integer quantity) instead? Does
> this validation require other fields to be checked?
>
>
> On Wed, 02 Feb 2011 12:49:58 -0200, Benny Law
> wrote:
>
> T
arifies my question. Thanks.
Benny
On Wed, Feb 2, 2011 at 6:21 AM, Thiago H. de Paula Figueiredo <
thiag...@gmail.com> wrote:
> On Wed, 02 Feb 2011 02:26:45 -0200, Benny Law
> wrote:
>
> Hi,
>>
>
> Hi!
>
> I have a loop inside a form that renders a textfie
Hi,
I have a loop inside a form that renders a textfield and some other
controls. When I am doing cross field validations in the ValidateForm event
while iterating over a collection (the source of the loop), I would like to
record error messages against the form with the field in error to get the
routing, I recall needing one a while go and found one.
>
> Norman Franke
> Answering Service for Directors, Inc.
> www.myasd.com
>
>
>
>
> On Jan 15, 2011, at 1:14 PM, Benny Law wrote:
>
> I am developing a mobile application with Tapestry 5. Sometimes, when
>&g
routing, I recall needing one a while go and found one.
>
> Norman Franke
> Answering Service for Directors, Inc.
> www.myasd.com
>
>
>
>
> On Jan 15, 2011, at 1:14 PM, Benny Law wrote:
>
> I am developing a mobile application with Tapestry 5. Sometimes, when
>&g
I am developing a mobile application with Tapestry 5. Sometimes, when
entering data on a form, I need to display another page (some kind of
look-up) where the user can eventually select some value that needs to be
brought back to the original form. For desktop web applications, I could
implement th
Thanks everyone for your help. The patch for
https://issues.apache.org/jira/browse/TAP5-1040 is the best solution for me
for now.
Warm regards,
Benny
suggest a solution for this please?
Benny
On Wed, Jan 12, 2011 at 9:47 AM, Benny Law wrote:
> Hi François,
>
> Thanks for the info. I am aware of TAPS-840 but haven't studied the patch.
> It looks like that's the only solution for now. Without ,
> Firefox 3.6 renders
> of
> modern browser run html5 tag even if you are not using
> .
>
> For client side detection Modernizr <http://www.modernizr.com/%20>is very
> fine.
>
>
> 2011/1/12 Benny Law
>
> > I am trying to convert my pages to HTML5 but am having problem getting
I am trying to convert my pages to HTML5 but am having problem getting the
correct DOCTYPE to be output. The I put in the .tml file is
ignored, and the generated HTML code has no DOCTYPE. I'm interested in how
people are working around this. Thanks.
Benny
>
> p.
>
>
> On 10/01/2011 8:00 AM, Thiago H. de Paula Figueiredo wrote:
>
>> On Sun, 09 Jan 2011 18:58:47 -0200, Benny Law
>> wrote:
>>
>> However, I am beginning to lose heart when most people seem to have
>>> simply given up on this component t
The DateField has always been on my list of things that require
fixes/enhancements/workarounds for some minor flaws, but I never got to it
because of other higher priority issues I had to deal with. I was always
annoyed by the fact that I couldn't cancel the popup just by clicking
outside like I ca
Hi Paul,
I share your view on this topic. Some time ago, I was struggling a bit with
trying to control the precise formatting of numeric fields, and I eventually
had to create a new translator with a new binding. The toClient() method of
the translator takes care of the required formatting specifi
I am using Tapestry on a project that manages humanitarian aid delivery, and
I think it's serious enough. Not only is Tapestry used for serious projects,
it's also for serious developers. Tapestry does come with a steep learning
curve, and it requires you to unlearn many old ways of doing things. I
erve", "submit", function(event) {
if (this.submitted) {
event.stop();
} else {
this.submitted = true;
};
});
});
Benny
On Fri, Dec 10, 2010 at 2:43 PM, David Rees wrote:
> On Thu, Dec 9, 2010 at 2:57 PM, Benny Law wrote:
> &g
Keep in mind that a form could be submitted by pressing the Enter key inside
a text field. A safer approach would be to prevent the form itself from
being submitted more than once, regardless of how it is submitted.
Benny
2010/12/9 françois facon
> Hi David
>
> about stopping the event.
> did y
Or, if you really want the textarea to be readonly (vs disabled), just add
the readonly="readonly" attribute. This allows the user to set focus to it
and copy content from it but not change the content, and it doesn't get the
disabled appearance.
Benny
On Mon, Jul 12, 2010 at 8:46 AM, Christophe
Try giving your MyLayout component an id in MyPage.tml and use that id in
the event handler name. You can't reference the id of the form component
because it's not a direct child of the page. When an event bubbles up, it
will appear to be coming from the immediate child. I think you can even omit
t
Hi Nicolas,
Take a look at this:
http://tapestry.apache.org/tapestry5.1/tapestry-ioc/startup.html
Benny
On Mon, May 31, 2010 at 10:50 AM, Nicolas Gillet - MARKET-IP <
nicolas.gil...@market-ip.com> wrote:
> Hello,
>
> I am looking for a way to execute a piece of code only once at server
> start
there are things that can be done in limited
> ways
> to open up the most common components in ways that don't break their
> encapsulation (e.g. maybe events) but allow for easier extension. Back to
> the issue of documentation (which the wiki might help with), maybe as a
> commu
On Thu, May 13, 2010 at 3:29 PM, Thiago H. de Paula Figueiredo <
thiag...@gmail.com> wrote:
> On Thu, 13 May 2010 15:44:50 -0300, Benny Law
> wrote:
>
> I want the user to consciously choose a value.
>>
>
> does
> the trick, no?
>
No, because I don't w
the time that renders, showBlankOption will see
> "blankOption" as being ALWAYS instead of AUTO.
>blankLabel="Select one...";
> } else {
>blankOption=NEVER;
> }
> }
>
> }
>
> Which you could then use like:
>
>
>
> which seems very
BlankOption thing? Just add your blank option
> directly to the list select-options. Then there is no blank option at all...
>
>
> Am 13.05.2010 um 16:43 schrieb Benny Law:
>
> > Thanks Geoff, but no, it doesn't. Your example shows how the Select
> > component works
blenegative.com.au/jumpstart/examples/select/varied/$N/$N/$N/$N
>
> Cheers,
>
> Geoff
>
> On 14/05/2010, at 12:11 AM, Benny Law wrote:
>
> > We are talking about subclassing a Tapestry component here. To give you
> an
> > example, I wanted to subclass the Select
I think tapestry can't free you from your dirtyness, you should
> try soap :)
>
>
> Am 13.05.2010 um 14:28 schrieb Benny Law:
>
> > I also wish component subclassing was at least an option. What I don't
> like
> > about copying and pasting from a Tapestry c
I also wish component subclassing was at least an option. What I don't like
about copying and pasting from a Tapestry component is that I end up relying
on some internal packages and classes. That makes me feel dirty.
Benny
On Thu, May 13, 2010 at 7:47 AM, Andreas Bohnert wrote:
> I agree.
> I
>
> I took a look to:
>> http://wiki.apache.org/tapestry/Tapestry5HowtoSelectWithObjects
>>
>
> That approach, in my humble opinion, is plain wrong. You have to retrieve a
> list of objects when you need just one of them (wrong) or put a list in a
> session (very wrong). Create one instance of Opti
Yes, I'm pretty sure. In fact, I even tried moving the
Thanks Thiago. Norman's solution is working fine for me, so I will leave it
like that. (I like keeping my JavaScript to the .tml file as much as
possible to maintain a cleaner separation between the page template and the
page class.) But thanks again for your suggestion. Your approach may come in
h
Thanks Norman, I'll try your suggestion.
Thiago, I don't see your comments (except your friendly "Hi"). Could you
respond again please? Thanks.
Regards,
Benny
On Thu, Feb 4, 2010 at 5:50 PM, Thiago H. de Paula Figueiredo <
thiag...@gmail.com> wrote:
> On Thu, 04 F
Hi everyone,
I have a zone that contains some *dynamic* JavaScript that sets a global
JavaScript object. However, Tapestry seems to be dropping the
Hi Matias,
I would use the same approach, except I would use a JavaScript function
similar to this one to update the zone instead of firing a click event on
the link:
function updateZoneFromActionLink( actionLinkId ) {
var actionLink = $(actionLinkId);
Tapestry.findZoneManager( actionLink
I haven't tried it myself, but the Tapestry documentation says that you can
create an event handler in your special page to catch exceptions and
redirect to a different exception page:
Object onException( Throwable cause ) {
return MySpecialExceptionReport.class;
}
Don't know if t
Hi,
I have a subclass of the Select component in which I would like to override
the default ValueEncoder. The problem is, the default binding method for the
encoder parameter defined in the superclass (Tapestry's Select class) has
package private scope, so I can't override it. What is the correct
Benny
On Sat, Oct 24, 2009 at 5:36 PM, Benny Law wrote:
> Hello everyone,
>
> Is there any reason why the t-error CSS class is not assigned to a Select
> component when it is in error? Moreover, a Select component in error does
> not get the keyboard focus when the form is rendere
This was my first day of work after a long holiday break, and I finally got
something reasonably clean that I can share. To recap, my goal was to create
a generic solution for allowing precise control of the number format used in
a TextField that can be customized per field instance. The approach I
On Thu, Dec 24, 2009 at 5:41 AM, Thiago H. de Paula Figueiredo <
thiag...@gmail.com> wrote:
>
> This is very clever! I guess it'll work. :) Just pay attention that the
> parameter received by the translate is a FieldTranslator, not a Translator
> itself.
>
> Thanks Thiago. I already found out the
c 2009 14:01:03 -0200, Benny Law
> escreveu:
>
> Hi Thiago,
>>
>
> Hi!
>
>
> should be displayed. Where I got lost is figuring out how to provide the
>> custom translator from within NumericField.
>>
>
> In this case, I think it would be easier
should be displayed. Where I got lost is figuring out how to provide the
custom translator from within NumericField.
Thanks in advance,
Benny
On Wed, Nov 18, 2009 at 8:11 PM, Thiago H. de Paula Figueiredo <
thiag...@gmail.com> wrote:
> Em Wed, 18 Nov 2009 22:02:42 -0200, Benny Law
&
Hi, sorry for jumping in, but I ran into this before myself. I still don't
quite understand the need for T5 to do this though: If the zone is being
replaced during the update, how can element IDs be duplicated inside the
zone? Losing control over element IDs is a bit inconvenient, and that's one
of
Hi Jacob,
It sounds like you have nested forms which is not allowed.
Benny
On Thu, Dec 10, 2009 at 11:07 PM, Jacob Mouka wrote:
> Hi all (apologies if this is really obvious, but I can't find the info in
> the docs/examples)
>
> I have some sub-components (with form elements) in a form and I w
23493373.html
>
>
> On Wed, Dec 2, 2009 at 8:37 PM, Benny Law wrote:
> > Can someone show me how I can turn off the fading yellow effect when a
> zone
> > is updated?
> >
> > Thanks in advance.
> >
> > Benny Law
> >
>
> ---
Thanks Dave. I can't believe I missed that in the component reference!
Benny
On Wed, Dec 2, 2009 at 9:07 PM, David Rees wrote:
> On Wed, Dec 2, 2009 at 5:37 PM, Benny Law wrote:
> > Can someone show me how I can turn off the fading yellow effect when a
> zone
> >
Can someone show me how I can turn off the fading yellow effect when a zone
is updated?
Thanks in advance.
Benny Law
20:12:22 -0200, Benny Law
> escreveu:
>
>
> Is there a simpler way to do this, i.e. specify formatting for TextField?
>> If custom Translators is the way to go, has anyone built something for
>> numbers that reflects the current locale?
>>
>
> Implement your o
I am having some difficulty finding documentation and examples on how to
control the formatting of numbers in TextField components. I have a page
where I use two TextFields to display the latitude and longitude of a GPS
location in decimal degrees. The default formatting provided by Tapestry
only d
tried that too, but it does not work.
> The context is null.
>
> Here's how i do it:
>
> @Inject
> private org.apache.tapestry5.services.Context context;
>
> Should that work?
>
> Stefan
>
>
>
> Am 30.10.2009 um 23:50 schrieb Benny Law:
>
>
> Hi
Hi Stefan,
Try injecting org.apache.tapestry5.services.Context into your service and
use its getInitParameter() method to retrieve your context parameters.
Regards,
Benny Law
On Fri, Oct 30, 2009 at 3:56 PM, Stefan wrote:
> Hi,
>
> is there a way to get access to the ServletContext
,
TextField with regard to validation errors?
Thanks,
Benny Law
alidations).
>
> On Mon, Oct 19, 2009 at 2:57 PM, Ulrich Stärk wrote:
> > You can make form fields conditionally visible using the if or
> formfragment
> > components. Apart from that, manually performing validation in the
> > corresponding onValidate event handler method is t
to be provided (one that is already
provided by the required validator). Is there a way to dynamically add
validators to a field when a form is submitted before validations are
performed? I am using T5.1. Thanks.
Benny Law
Would it be reasonable to request that "is" be recognized as a valid getter
prefix for java.lang.Boolean properties in Tapestry? (Hibernate allows it.)
Howard?
Benny
On Tue, Oct 13, 2009 at 1:01 PM, Benny Law wrote:
> Thanks for your speedy response, Lance. I wish java.lang
eveloper-Site/en_US/-/USD/viewproductdetail-start?productref=7224-javabeans-1.01-fr-spec-oth-js...@cds-cds_developer
> 2009/10/13<https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/viewproductdetail-start?productref=7224-javabeans-1.01-fr-spec-oth-js...@cds-cds_deve
write-only.
Apparently, it did not recognize the getter with the "is" prefix. Changing
the expression to ${user.isMobileUser()} fixed the problem.
Can somebody confirm whether Tapestry recognizes the "is" getter prefix for
Boolean (not boolean) properties?
Thanks,
Benny Law
t;
> http://tapestry.apache.org/tapestry5/tapestry-ioc/startup.html
>
>
> Benny Law escribió:
>
> Thanks Ben, this looks reasonably clean to me. Unless somebody else offers
>> a
>> better idea, I will probably go with this approach.
>>
>> Benny
>>
>> On Wed, O
ter, just specify it in web.xml instead:
>
>
>t5
>com.whatever.MyFilter
>
>
> This still requires that the registry has been created at the point
> that it is requested, but at least you don't have to have access to
> the servlet context.
>
> Ben
>
>
outside of normal injection, so
having a convenient way to get to it in Tapestry would be nice, although it
may open up opportunities for abuse.
Benny Law
On Wed, Oct 7, 2009 at 4:58 AM, Ben Gidley wrote:
> You can get it from the servlet context - it adds it to a context variable.
> Re
Hello,
How can I obtain a service from the IoC registry inside a static
initializer? Injection doesn't seem to work with static members, so I need
to access the registry directly, or is there a better way?
Thanks,
Benny Law
This may not be the best solution, but you could create an empty (and
invisible) pagelink like
and reference its href with $('mylink').href when opening the popup. You
might also want to consider using simulated popups like Prototype Window (
http://prototype-window.xilinus.com).
Benny
On Fri, O
gt;
> > I believe you just have to inject SymbolSource into your class and get
> the
> > parameter value from there. The ServletContextSymbolProvider should be on
> > top of the situation :)
> >
> > On Wed, Sep 30, 2009 at 8:39 PM, Benny Law
> wrote:
> >
Hello,
I define the application version along with some other things as
context-params in web.xml. What is the best way to read these parameters in
T5? Thanks.
Benny
Thanks Thiago. Somehow, I missed those additional links in the left nav. Now
I have a bit more info to go on.
Benny
On Tue, Sep 29, 2009 at 4:52 PM, Thiago H. de Paula Figueiredo <
thiag...@gmail.com> wrote:
> Em Tue, 29 Sep 2009 17:00:34 -0300, Benny Law
> escreveu:
>
> Hi
rote:
> Em Tue, 29 Sep 2009 16:23:02 -0300, Benny Law
> escreveu:
>
> Hello,
>>
>
> Hi!
>
> Can someone point me to the most up-to-date and detailed documentation on
>> using Hibernate with T5 (but not Spring)?
>>
>
> http://tapestry.apache.org/
Hello,
Can someone point me to the most up-to-date and detailed documentation on
using Hibernate with T5 (but not Spring)?
Thank you,
Benny
gt;
> Best Regards
>
> Sebastian
>
> Benny Law schrieb:
>
> Thanks Geoff. I can't access this link for some reason, but I'll try again
>> later.
>> Here is my JavaScript (feel free to critique):
>>
>> document.observe("dom:loaded", funct
mixin. The mixin's
> JavaScript might be similar to yours.
>
>
> http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/javascript/creatingmixins1
>
> Cheers,
>
> Geoff
>
>
> On 24/09/2009, at 7:34 AM, Thiago H. de Paula Figueiredo wrote:
>
> Em Wed, 23
I was wondering if Tapestry automatically prevents a form from being
submitted more than once (like when you press the Enter key quickly a few
times when you are in a text field)? In my quick test, it seemed that
something was providing this protection. I have some JavaScript that will
provide this
nd a few decent
> solutions
> (as the posting above mentions), but the framework is still very
> vulnerable.
>
>
> Cheers,
>
> Alex K
>
> On Thu, Sep 10, 2009 at 8:56 AM, Benny Law wrote:
>
> > Pardon me if I am mistaken, but shouldn't .class and .tml fil
Pardon me if I am mistaken, but shouldn't .class and .tml files be under
WEB-INF and hence inaccessible automatically?
Benny
On Thu, Sep 10, 2009 at 2:52 AM, martijn.list wrote:
> Angelo Chen wrote:
>
>> how to close access to ".class" and ".tml"?
>>
>>
>
> This has been posted to the list multi
er common.
> Why don't you make it be a tapestry built-in?
>
> On Thu, Sep 10, 2009 at 11:30 AM, Benny Law
> wrote:
>
> > I would try something like this:
> > in B class...
> >
> > @PageAttached
> > private void redirectToC() {
> > // ...
&
I would try something like this:
in B class...
@PageAttached
private void redirectToC() {
// ...
throw new RedirectException("..."); // URL for C
}
You will need to create RedirectException. I believe there is something in
the wiki on how to handle this exception in AppModule.
Hope thi
void onValidateForm() {
>if (_form.getHasErrors()) {
>return;
>}
>...
>
> Geoff
> http://jumpstart.doublenegative.com.au:8080/jumpstart/
>
>
> On 02/09/2009, at 12:20 PM, Benny Law wrote:
>
> Thanks for alerti
x27;s a long-standing problem with recording errors in
> onSuccess().
>
>https://issues.apache.org/jira/browse/TAPESTRY-1972
>
> Geoff
>
>
> On 02/09/2009, at 7:59 AM, Benny Law wrote:
>
> Thanks Sebastian. I agree that only business logic related validation
>>
using reflection
>
>
> --
> Best Regards / Viele Grüße
>
> Sebastian Hennebrueder
> -
> Software Developer and Trainer for Hibernate / Java Persistence
> http://www.laliluna.de
>
> Benny Law schrieb:
>
> Hi Onno,
>>
>> I am all for clean and maint
Hi Onno,
I am all for clean and maintainable code, and that's why I think
ValidateForm can be cleaner if I didn't need to check for field errors
first.
On the main Tapestry 5.1 page, the Login example calls the authenticator in
onValidateForm, but the same example in the User Guide under Input
Va
Thanks for your response. Could you explain what you mean by keeping my
validation "in the correct callback"?
Benny Law
On Sun, Aug 30, 2009 at 1:40 AM, newtonik wrote:
>
> I think you should use the onValidateForm for both field level and
> cross-field validation to keep
something, or are there others who share my view?
Thanks in advance,
Benny Law
81 matches
Mail list logo