You can use
http://tapestry.apache.org/5.3/apidocs/org/apache/tapestry5/services/PageRenderLinkSource.html#createPageRenderLink(java.lang.Class)
@Inject
private PageRenderLinkSource linkSource
form.recordError(someField, "my link is " +
linkSource.createPageRenderLink(MyPage.class));
there a
Hi Tapestry Users,
What is the best way to include a link to a page from the java class?
I have a form, returning an error that states: "The ip address you entered
is public and in use - please try again or search for it to see it's
current use"
I would like to put a link in that error message t
Yes, decorating didn't seem possible - so have (for now) copied and
overridden PersistentLocaleImpl to allow null.
It is part of a requirement to always force locale through uri, except for
english which is on unlocalized. So need to clear persistentlocale when
switching to english.
Locale switch
I'm surprised that PersistentLocale does not have the ability to clear the
value once it's set. Looking at PersistentLocaleImpl it doesn't allow
setting to null.
Perhaps you could override / decorate PersistentLocale to support clearing
the value (by setting null).
If decorating, you'll likely re
Following a beta release vote, I've generated the first beta preview
release of Apache Tapestry 5.4.
The bundles version of Bootstrap has been updated to 3.0.3, and jQuery to
1.10.2.
Tapestry now bundles moment.js, and adds new components LocalDate and
TimeInterval. LocalDate displays a date/time
Hi Eugen,
my javascript file is located in META-INF/modules/. It is loaded without
problems when I call js.require("myModule.js");. Just the invoke call
gives the problem.
Anyway, I've missed that some form input values should be up to date
when doing the zone update request. So I did a litt
Thanks Lance, got it working.
public interface HibernateInitializer {
public void initialize();
}
public class HibernateInitializerImpl implements HibernateInitializer {
@Inject
SolrIndexer solrIndexer;
@Inject
private HibernateSessionSource hss;
@Override
public v
Or file a JIRA. A beta has just came out, so a new release isn't far. :)
On Tue, 17 Dec 2013 18:03:04 -0200, Lance Java
wrote:
I'm surprised that PersistentLocale does not have the ability to clear
the
value once it's set. Looking at PersistentLocaleImpl it doesn't allow
setting to null.
Hi Geoff.
A bit of an old thread now, but am also looking for a way to clear/reset
persistent locale.
Did you/anyone come up with a solution?
/magnus
On Sat, Nov 24, 2012 at 3:57 AM, Geoff Callender <
geoff.callender.jumpst...@gmail.com> wrote:
> Once I have gone to a specific locale I can't
> Awesome, it is working now
Great!
> THANK A LOT, LANCE
You're welcome :)
I'm assuming it's obvious that the source of the list is irrelevant and
that my solution will work regardless.
Awesome, it is working now
THANK A LOT, LANCE
On 12/17/2013 6:45 PM, Lance Java wrote:
Eg: https://gist.github.com/uklance/8003728
NB not tested and needs to be tweaked to support paging.
-
To unsubscribe, e-mail: users-u
/>
But thank for your explain. I think I will change the source to the
griddatasource like your suggestion and then trying to merge the filter
with my custom griddatasource
On 12/17/2013 6:45 PM, Lance Java wrote:
Eg: https://gist.github.com/uklance/8003728
NB not tested and needs to
Eg: https://gist.github.com/uklance/8003728
NB not tested and needs to be tweaked to support paging.
Yes, and as I said the grid component ALWAYS acts upon a GridDataSource
even if you provide a List.
So, instead of passing a List to the grid (and having Tapestry create a
CollectionGridDataSource under the hood) you should pass your own custom
GridDataSource.
This custom GridDataSource will dele
Hi Matthias,
how do You define the myModule?
It should be a javascript file in META-INF/modules/myModule.js to be
automatically loaded as module.
alternatively You can contribute the ModuleManager in Yout AppModule
to laod desired JS file as module:
@Contribute(ModuleManager.class)
public s
Hi Lance,
Like I said in the previous email, grid can only take a list from a
Filter component in my current system (since the filter only return a
list to the outside, nothing else). Modified a component will require a
lot of crazy talking (which I wanna take away of) to other developers
and
I'm not convinced you should be doing this in a HibernateConfigurer since
you need the SessionSource. HibernateConfigurers are executed before the
SessionFactory exists.
Can you add the listener in a @Startup method or some @EagerLoad service?
Tapestry's grid expects a GridDataSource as the "source" parameter.
What you may not know is that tapestry has a TypeCoercer to make things
easy for us. If you provide a list as the source of a grid, tapestry will
happily TypeCoerce the list to a GridDataSource (which is what is happening
in your
19 matches
Mail list logo