Re: pac4j with tapestry-security

2017-04-28 Thread Dusko Jovanovski
Take a look at the excellent tynamo-federatedaccounts module at http://www.tynamo.org/tynamo-federatedaccounts+guide/ Cheers! On Fri, Apr 28, 2017 at 1:11 AM, Tapestry wrote: > Hey all! > > I am trying to use pac4j (https://github.com/bujiio/buji-pac4j) with > tapestry-security since my client

Re: Tynamo Security Login Page

2016-11-10 Thread Dusko Jovanovski
The behaviors that you are describing can be easily configured using Symbols. Take a look at the SecuritySymbols class: https://github.com/tynamo/tapestry-security/blob/master/src/main/java/org/tynamo/security/SecuritySymbols.java The Symbols that you are looking for are: LOGIN_URL and SUCCESS_URL

Re: Remove Tapestry Meta Tag

2014-11-13 Thread Dusko Jovanovski
Sure, you just need to override this symbol: SymbolConstants.OMIT_GENERATOR_META. Here's a sample of overriding it in a module: @Contribute(SymbolProvider.class) @ApplicationDefaults public static void provideSymbols(MappedConfiguration configuration) { // ... configuration.

Re: Tapestry-jpa commitAfter advisor problem

2014-09-25 Thread Dusko Jovanovski
The @CommitAfter annotation should be used as a convenience for simple scenarios, it doesn't support nesting. This has been discussed many times in the past on this mailing list. For the scenario that you described, I would remove the @CommitAfter annotation from method2, this way all of the code w

Re: How to Declare JSONObject function ?

2014-03-20 Thread Dusko Jovanovski
options.put("start", new JSONLiteral("function() {$(this).hide();}")); is the right way to pass the function, but it won't work for AJAX requests in tapestry 5.4. Could you please tell us what version of tapestry, tapestry-jquery you are using? And provide the stacktraces so we can debug further.

Re: shiro UsernamePasswordToken "RememberMe" problems

2014-03-11 Thread Dusko Jovanovski
t > implement this as a new default CookieRememberMeManager in > tapestry-security. Dusko, you mind if I use your SimplePrincipalSerializer? > > Kalle > > > On Thu, Mar 6, 2014 at 3:21 AM, Dusko Jovanovski > wrote: > > > Thanks for pointing that out, I wasn'

Re: shiro UsernamePasswordToken "RememberMe" problems

2014-03-06 Thread Dusko Jovanovski
ttpConnection.java:994) > [jetty-server-8.1.9.v20130131.jar:8.1.9.v20130131] > at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:640) > [jetty-http-8.1.9.v20130131.jar:8.1.9.v20130131] > at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) > [jetty-http-8.1.9.v20130131.jar:8.1.9.v20130131] > at > > org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) > [jetty-server-8.1.9.v20130131.jar:8.1.9.v20130131] > at > > org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628) > [jetty-io-8.1.9.v20130131.jar:8.1.9.v20130131] > at > > org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) > [jetty-io-8.1.9.v20130131.jar:8.1.9.v20130131] > at > > org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) > [jetty-util-8.1.9.v20130131.jar:8.1.9.v20130131] > at > > org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) > [jetty-util-8.1.9.v20130131.jar:8.1.9.v20130131] > at java.lang.Thread.run(Thread.java:662) [na:1.6.0_43] > > > > Regards, > Lidija > > > > On Thu, Mar 6, 2014 at 11:14 AM, Dusko Jovanovski > wrote: > > > Hello Lidija, could you try out this custom serializer and report back > with > > the results? > > > > https://gist.github.com/duskote/0f8cce8d1b0d1cc56844 > > > > > > >

Re: shiro UsernamePasswordToken "RememberMe" problems

2014-03-06 Thread Dusko Jovanovski
Hello Lidija, could you try out this custom serializer and report back with the results? https://gist.github.com/duskote/0f8cce8d1b0d1cc56844 On Thu, Mar 6, 2014 at 10:48 AM, Lidija Dolinar wrote: > Ah, I see, you ment SimplePrincipalSerializer from the patch. > > It doesn't effect cookie size

Re: Override AssertSource

2014-01-31 Thread Dusko Jovanovski
try configuration.addInstance(AssetSource.class, MyAssetSourceImpl.class); Here's the documentation for MappedConfiguration: http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/ioc/MappedConfiguration.html On Fri, Jan 31, 2014 at 5:05 PM, garz wrote: > Hi all, > > i want to overrid

Re: @Cached

2013-12-06 Thread Dusko Jovanovski
It works both in pages and components. On Fri, Dec 6, 2013 at 2:20 PM, John wrote: > does @Cached work in only pages, or should it work in components too?

Re: Loving the eclipse-tapestry5-plugin

2013-12-03 Thread Dusko Jovanovski
Use the update site from the readme. https://github.com/anjlab/eclipse-tapestry5-plugin#install On Tue, Dec 3, 2013 at 2:40 PM, Athneria, Mahendra < mahendra.athne...@atos.net> wrote: > I am not able to download it from Eclipse. > > Is there any other way to install it on Eclipse?? > > Regards,

Re: Quick ActivationContext question

2013-08-13 Thread Dusko Jovanovski
I'm not sure what your exact scenario is, but are you aware that you can pass an varargs parameter to the createEventLink method? http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/ComponentResourcesCommon.html#createEventLink(java.lang.String, java.lang.Object...) Seems like exactly

Re: how to trigger onValueChanged from AutoComplete mixin?

2013-05-28 Thread Dusko Jovanovski
Autocomplete only triggers the EventConstants.PROVIDE_COMPLETIONS event. Take a look at the onClick function in controls.js (line 183) (Tapestry 5.3). That's the place that you need to modify to get the desired behavior. On Mon, May 27, 2013 at 11:25 PM, George Ludwig wrote: > I've got a custom

Re: Tapestry IoC: @Startup with ordering constraint

2013-05-28 Thread Dusko Jovanovski
+1 On Mon, May 27, 2013 at 7:50 PM, Eli Doran wrote: > I like the simplicity of using the @Startup annotation compared to the > startup contribution method. > > However, it doesn't have the ability to order its execution as in the > contribution method. > > It seems it would be a simple thing t

Re: [5.3.6] A homepage instead of "Index"

2012-12-11 Thread Dusko Jovanovski
Try overriding the SymbolConstants.START_PAGE_NAME symbol. On Tue, Dec 11, 2012 at 10:55 PM, Muhammad Gelbana wrote: > I'm not sure if that's a usual requirement but here it is. I need to have > another page as a default homepage instead of the "Index" page. I can do > that by returning the page

Re: How to create custom using t:loop functionality

2012-10-18 Thread Dusko Jovanovski
The jumpstart project is an awesome resource for beginners http://jumpstart.doublenegative.com.au/jumpstart/examples/ For your scenario, take a look at http://jumpstart.doublenegative.com.au/jumpstart/examples/tables/li

Re: foward to https

2012-09-19 Thread Dusko Jovanovski
Link link = pageRenderLinkSource.createPageRenderLinkWithContext(Index.class); link.setSecurity(LinkSecurity.FORCE_SECURE); or String link = pageRenderLinkSource.createPageRenderLinkWithContext(Index.class).toAbsoluteURI(true); On Wed, Sep 19, 2012 at 7:52 PM, captain_rhino < graeme.kitc...@axa

Re: loading .js and in a specific order

2012-09-15 Thread Dusko Jovanovski
That shouldn't be a problem, you can access that parameter within AssetPathConverter (I'm assuming you are using a constant or a symbol for the googleMapsKey). It might seem complicated, but in the long run it should be worth it, since this override provides a way to import libraries from CDN. On

Re: loading .js and in a specific order

2012-09-15 Thread Dusko Jovanovski
n use @Import for the google maps library instead of the import via script. On Sat, Sep 15, 2012 at 10:05 PM, Dusko Jovanovski wrote: > You can use the @Import annotation on render methods. Try this: > @Import(library = {"context:js/OverlappingMarkerSpiderfier.js"}) > void afterRend

Re: loading .js and in a specific order

2012-09-15 Thread Dusko Jovanovski
You can use the @Import annotation on render methods. Try this: @Import(library = {"context:js/OverlappingMarkerSpiderfier.js"}) void afterRender(){} On Sat, Sep 15, 2012 at 7:12 PM, sommeralex wrote: > Hi! > > I need to ensure that google maps api 3 is loaded before > OverlappingMarkerSpiderfier

Re: AjaxResponseRenderer help

2012-08-12 Thread Dusko Jovanovski
@Component(parameters = { "event=ModeUpdate", "zone=zone1" }) private EventLink UpdateOff; This should do the trick. On Sun, Aug 12, 2012 at 3:30 PM, Angelo C. wrote: > How to specify two zones in a event link? > > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/A

Re: AjaxResponseRenderer help

2012-08-12 Thread Dusko Jovanovski
You are missing the zone parameter on your eventLink component. On Sun, Aug 12, 2012 at 2:31 PM, Angelo C. wrote: > Hi, > > I am trying out AjaxResponseRenderer to update multiple zones in a page, > here is the code: > > java: > > @Inject > private AjaxResponseRenderer ajaxResponseRenderer; > >

Re: Adding a dynamic sub directory to URL

2012-07-18 Thread Dusko Jovanovski
Take a look at http://tynamo.org/tapestry-routing+guide It's a tynamo module written for this purpose. On Wed, Jul 18, 2012 at 3:04 AM, dkeenan wrote: > This looks perfect! Tapestry is outstandingly good. > > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Adding-a

Re: Problem with range operator

2012-07-08 Thread Dusko Jovanovski
I made an oversight, try this: //html code On Sun, Jul 8, 2012 at 11:54 AM, bhorvat wrote: > Hm...Well it says here that it should > http://tapestry.apache.org/property-expressions.html > > "The rangeOp creates a range object that will iterate between the two > values. The upper and lower

Re: Problem with range operator

2012-07-08 Thread Dusko Jovanovski
I don't think you can use it like that, only with fixed values. On Sun, Jul 8, 2012 at 11:35 AM, bhorvat wrote: > That is the option, but tapestry has this cool option so I would like to > use > it > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Problem-with-range-

Re: Problem with range operator

2012-07-08 Thread Dusko Jovanovski
Why don't you just return an array from 1 to lastDayInMonth? .tml t:source="rangeOfDates" .java public List getRangeOfDates() { List list = new LinkedList(); for(Integer i=1; i <=lastDayInMonth; i++) list.add(i); return list; } On Sun, Jul 8, 2012 at 10:55 AM, bhorvat wrote: > I have a s

Re: How to have every second value in the t:loop different

2012-07-04 Thread Dusko Jovanovski
Hello there If the change you want to apply to those elements is purely visual, I would suggest the :nth-child(even) pseudo selector [1]. On the other hand, if you still want to apply that particular class to the div, I would suggest this approach: You return the wanted class

Re: T5 template expansion for component

2012-06-19 Thread Dusko Jovanovski
I don't see why you couldn't customize t:label, it supports informal parameters, everything you pass as an attribute will be passed down to the tag. In the for parameter of t:label you pass the server id of the component. On Tue, Jun 19, 2012 at 5:47 PM, Norman Franke wrote: > I'm creating a li

Re: How to create Ajax subforms (recursive forms)?

2012-06-16 Thread Dusko Jovanovski
Have you tried the AjaxFormLoop component? I think that you can accomplish your scenario with it. Here is a live demo from the jumpstart project: http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/formloop1 And here is the documentation for the component: http://tapestry.apache.org/cur

Re: How to pass page name with parameters in pagelink

2012-02-22 Thread Dusko Jovanovski
tml: More news java: @Inject private PageRenderLinkSource pageRenderLinkSource; public Link getLinkWithParameters() { Link link = pageRenderLinkSource.createPageRenderLink(MoreNews.class); link.addParameter("startIndex", "3"); link.addParameter("endIndex", "11"); return link; } I would recommen

Re: Tynamo Security Components

2012-02-20 Thread Dusko Jovanovski
t the component basically does, or use some of the other components like lacksRole but it becomes very messy if there are more roles or permissions that need to be checked. I hope I'm clearer this time, looking for some feedback from the community On Mon, Feb 20, 2012 at 11:57 AM, Dusko Jovano

Tynamo Security Components

2012-02-20 Thread Dusko Jovanovski
Hello Tynamo developers First of all, I love the module, keep up the good work. I would like to propose one improvement for all the security components (org.tynamo.security.components package), an "else" block parameter (very similar to the tapestry "if" component). That would come in pretty hand

Re: How to create my own zone update Effect?

2012-02-19 Thread Dusko Jovanovski
I can point you to this article by Howard: http://tapestryjava.blogspot.com/2011/12/adding-ajax-throbbers-to-zone-updates.html He covers everything you are trying to do. Cheers On Sun, Feb 19, 2012 at 6:20 PM, Bo Gao wrote: > How to create my own zone update Effect? > The most important thing

Re: Perform tasks when starting the application

2012-02-15 Thread Dusko Jovanovski
Annotate your method with @Startup and it will be executed when starting the application. Reference: http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/ioc/annotations/Startup.html On Wed, Feb 15, 2012 at 8:22 PM, iberck wrote: > I need to perform certain tasks when starting the ap

Re: Mixin for select

2012-02-14 Thread Dusko Jovanovski
Take a look here: http://tapestry.apache.org/component-mixins.html and here: http://tapestry.apache.org/5.3.2/apidocs/org/apache/tapestry5/annotations/BindParameter.html 2012/2/14 Михаил Слободянюк > Hi! > > How i do bound Select's parametels (model, label etc.) from mixin? > > Mihail. >

Re: exclude a column from a grid component, by a condition

2012-01-31 Thread Dusko Jovanovski
Try this: .tml: .java: public String getExcludeColumn(){ if(excludeCondition) return "somecolumn"; else return null; } I didn't test this code, but it should work. 2012/1/31 Vladimir Bauer > Good day everybody! > > I need to exclude a column from a grid component, by a conditio

Re: reading an asset into a string

2012-01-13 Thread Dusko Jovanovski
It's here: http://tapestry.apache.org/assets.html#Assets-InjectingAssets On Fri, Jan 13, 2012 at 4:01 PM, angelochen wrote: > hi, > i checked that link, but can't find info. > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/reading-an-asset-into-a-string-tp5142710p514

Re: reading an asset into a string

2012-01-13 Thread Dusko Jovanovski
Yes, see http://tapestry.apache.org/assets.html On Fri, Jan 13, 2012 at 3:40 PM, angelochen wrote: > is this possible? > > @Inject @Path("context:/js/init.photoswipe.js") >private Asset myEffects; > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/reading-an-asset

Re: How to override the sort image tooltip of a grid ?

2011-12-28 Thread Dusko Jovanovski
This is really an IE issue. In order to get IE to behave correctly, use an empty title attribute (title=""). Here's a small jQuery snippet that solves your problem (not tested, i don't have access to IE7) jQuery('.t-sort-icon').attr('title', ''); On Wed, Dec 28, 2011 at 9:38 AM, danyboy85 wrote:

Re: Alerts

2011-12-23 Thread Dusko Jovanovski
Try manager.alert(Duration.TRANSIENT, Severity.INFO, "INFO TRANSIENT"); This will display the message for 15 seconds before closing. There is an open JIRA that would allow us to set this duration at: https://issues.apache.org/jira/browse/TAP5-1640 -- Dusko Jovanovski On Fri, Dec 23,

Re: T5.3: unable to change color of beaneditor border

2011-12-04 Thread Dusko Jovanovski
Try replacing your entry in your layout.css with this snippet: DIV.t-beaneditor { border: 2px outset blue !important; } On Mon, Dec 5, 2011 at 12:53 AM, George Ludwig wrote: > I'm want to change the border color of all the beaneditors to blue, so I > added this to my layout.css: > > DIV.t-bea

Re: JQueryDateField is not popuping up

2011-11-16 Thread Dusko Jovanovski
mbol, which both Prototype (included by default in Tapestry) and jQuery use. Look into jQuery.noConflict(); <http://api.jquery.com/jQuery.noConflict/> I personally find it easiest to just add that line at the end of the included jQuery library. -- Dusko Jovanovski On Wed, Nov 16, 2011 at 10:2

Re: fckeditor for Tapestry 5.3

2011-11-14 Thread Dusko Jovanovski
Without looking at your code I can only guess you have forgotten to pass the zone as parameter somewhere, or the request isn't ajax. Something like this: Link Attach the source if you still have errors after trying this. On Mon, Nov 14, 2011 at 1:19 AM, TG wrote: > Ok I managed to fix the per

Re: fckeditor for Tapestry 5.3

2011-11-12 Thread Dusko Jovanovski
. > > You are reading our minds, we are currently working on an ajax-upload component based on this this demo right here: http://aquantum-demo.appspot.com/file-upload Follow our public github profile to get it as soon as it comes out https://github.com/plannowtech -- Dusko Jovanovski >

Re: fckeditor for Tapestry 5.3

2011-11-11 Thread Dusko Jovanovski
You can try out our implementation: https://github.com/plannowtech/tapestry5-ckeditor It's still not thoroughly tested, but should work fine. Any remarks/complaints/bugs should be reported on GitHub. -- Dusko Jovanovski On Fri, Nov 11, 2011 at 4:50 AM, TG wrote: > Do we have one? If

Re: Beaneditform with two submit buttons?

2011-11-06 Thread Dusko Jovanovski
You should add this: xmlns:p="tapestry:parameter" to the root element in your .tml file, and use p:id instead of t:parameter name="id" On Sun, Nov 6, 2011 at 6:12 PM, TG wrote: > I changed my codes to something like this - > > > > > > > > > >

Re: remove red cross from the field vlidator

2011-08-20 Thread Dusko Jovanovski
Try overriding the img.t-error-icon rule in your css. Sample: img.t-error-icon{ margin-left: 0; width: 0; height: 0; background: none; } The background: none; line would get rid of the image, but you would still have some white space, so i added the other rules On Sat, Aug 20, 2011 at 4:20 AM,