Re: Exception while loading the page in Tapestry

2016-08-31 Thread mailingl...@j-b-s.de
Maybe a lower/upper case issue in your packege (directories) or filenames, so tml and classes do not match? Jens Von meinem iPhone gesendet > Am 01.09.2016 um 06:03 schrieb Kiran Govind : > > Hi, > > When I configured Tapestry and tried to run, I am getting the following > error: > > org.apa

Re: Dynamic Security Role Value - Tynamo Security

2016-06-28 Thread mailingl...@j-b-s.de
Maybe use a and move the role related code to your java page? Von meinem iPhone gesendet > Am 29.06.2016 um 08:24 schrieb Matthew Bush > : > > I want to dynamically set required roles at runtime dynamically rather than > have them statically coded. Is this possible? > > Taken from the tynam

Re: Page redirect in tapestry5

2016-03-03 Thread mailingl...@j-b-s.de
You can just return the string and tapestry locates the page on its own return cookieVal; Just make sure the cookieval is a valid page name (class name without package) Jens Von meinem iPhone gesendet > Am 04.03.2016 um 07:12 schrieb Anbazhagan.G : > > Hi All, > > I am working in web applica

Re: Loading templates at run-time in Tapestry 5.4

2016-02-29 Thread mailingl...@j-b-s.de
e it can do the job for me just > fine, and although having two templating systems isn't ideal, it's a lot > better than the current system that is in place. > > Thanks, > David. > > On Tue, Mar 1, 2016 at 12:05 PM, mailingl...@j-b-s.de > wrote: > >> Hi David!

Re: Loading templates at run-time in Tapestry 5.4

2016-02-29 Thread mailingl...@j-b-s.de
class file that > is loaded so that the user could then use tapestry in there (otherwise the > ComponentResources would be the .tml file that loaded it, not the > dynamically loaded one). > > The stack trace I was getting is here, although I don't think it's really > usefu

Re: Loading templates at run-time in Tapestry 5.4

2016-02-29 Thread mailingl...@j-b-s.de
t; dynamically. > > Thanks, > David. > > On Mon, Feb 29, 2016 at 6:37 PM, mailingl...@j-b-s.de > wrote: > >> Hi David! >> >> What do you mean by "external code"? Are you talking about external >> Tapestry pages/components and tml's you

Re: Loading templates at run-time in Tapestry 5.4

2016-02-28 Thread mailingl...@j-b-s.de
Hi David! What do you mean by "external code"? Are you talking about external Tapestry pages/components and tml's you need to integrate? Because you mentiond HTML not TML? Does "code" refer to Javascript? Is the external code self contained? What about an ugly but simple "iframe"? Jens Von m

Re: Tapestry is a sinking Ship

2016-02-13 Thread mailingl...@j-b-s.de
JT please try to make some facebook friends and stop polluting our inbox with non-technical questions about something you do not use or understand at all. If something in T5 is not working, is to complicated feel free to give us samples and the members of the T5 sect will pick it up and improve

Re: T5.3.8 ClassNotFound error ONLY when running on a virtualized server?!

2016-01-17 Thread mailingl...@j-b-s.de
Hi Georg! I doubt we are facing a real class loading issue. Do you have initialization code in your pages a static member or something similar? I might be entirely wrong but from a quick look at the stacktrace the trouble starts here > com.sixbuilder.ui.base.MyPage.getLastMaintenanceCompletion

Re: Is tapestry plastic incompatible with JEE specs?

2015-12-12 Thread mailingl...@j-b-s.de
>>> issue, some kind of problem could arise also in the core (read: ejb.jar) >>> module. >>> >>> The real showstopper is the pervasive usage that I'm doing of tapestry IOC. >>> >>> I like it, but if these problems cannot be so

Re: Is tapestry plastic incompatible with JEE specs?

2015-12-12 Thread mailingl...@j-b-s.de
, but if these problems cannot be solved, it may be better for me to > migrate to Guice or Spring. > > Thanks, > larzeni > > >> Sent: Friday, December 11, 2015 at 8:00 PM >> From: "mailingl...@j-b-s.de" >> To: "Tapestry users" >>

Re: Is tapestry plastic incompatible with JEE specs?

2015-12-11 Thread mailingl...@j-b-s.de
Hi! IWhy not having all T5 related jars in your war? Any particular reason why they are located in your ear? Jens Von meinem iPhone gesendet > Am 11.12.2015 um 19:05 schrieb Luca Arzeni : > > Hi there, > my environment is: > JBoss 7.2+ (actually 6.1.1.GA) or Wildfly 8.0 Final > Tapestry5

Re: Make Tapestry add an id to the tag of the grid

2015-09-18 Thread mailingl...@j-b-s.de
Hi! You asked for a workaround...why not using a css class temporarily until this issue is properly resolved? class="your-id-1" You can use a placeholder to dynamically provide different id's (well, css classes) per grid. At least a jquery selector will now be able to pick it up and I am awar

Re: Localized messages based on property value

2015-08-10 Thread mailingl...@j-b-s.de
Sorry Nathan I do not understand: do you want to spread properties belonging to one particular page accross multiple property files? Jens Von meinem iPhone gesendet > Am 10.08.2015 um 09:08 schrieb Nathan Quirynen : > > Hi, > > I have in some pages/components in my Tapestry (5.3.7) applicatio

Re: Filling some filed of a form selecting a row from a grid

2015-08-03 Thread mailingl...@j-b-s.de
was already a "tapestry-zed" solution since to me it > seems a common need... > > Do you know if tapestry 5.4 has some native support for jquery tables? > > Thanks, > larzeni > > > >> Sent: Monday, August 03, 2015 at 7:03 PM >> From: "maili

Re: Filling some filed of a form selecting a row from a grid

2015-08-03 Thread mailingl...@j-b-s.de
Maybe you have a look at jquery tables + ajax? https://www.datatables.net/examples/data_sources/server_side.html Jens Von meinem iPhone gesendet > Am 03.08.2015 um 17:55 schrieb Luca Arzeni : > > Thanks Kalle, > I appreciate your hint and I already used a solution like this for a shorter >

Re: decoupling business logic and frontend

2015-07-28 Thread mailingl...@j-b-s.de
I go with Thiago. We use different maven modules for our business logic and persistence classes so both maven modules are standalone using their own tests. There is no relation to Tapestry at all for these modules. We use Tapestry services and Tapestry IOC to tie it together in our webapps We

Re: [T5.4 build 22] Exception in ExceptionReport.tml

2015-07-18 Thread mailingl...@j-b-s.de
What exactly are you doing on your exception page? This error looks like a new thread is created which is "not possible" in GAE Jens Von meinem iPhone gesendet > Am 18.07.2015 um 10:47 schrieb Michał Więckowski > : > > Hello everyone, > > I've got a question regarding tapestry 5.4. I try t

Re: JumpStart Edit example - prepareForSubmit event handler

2015-05-11 Thread mailingl...@j-b-s.de
Hi Daniel, Do you use Hibernate? Maybe your instance is stored in the Hibernate Session Cache thus you get the same object? I had a similar issue when working with HSQL/Hibernate... Jens Von meinem iPhone gesendet > Am 08.05.2015 um 15:55 schrieb Poggenpohl, Daniel > : > > Hi, > > http://j

Re: SV: Generate link to Tapestry page from another program

2015-05-10 Thread mailingl...@j-b-s.de
Hi Jacob, You can use "/" to seperate your id's, for example: http://yourserver/tapestrypage/1/2/3/4 Will call the onActivate method in your tapestry page class named "TapestryPage". All params are passed via EventContext and you can access the values by index. In case your id's may be of type

Re: Are component parameters shared between sessions?

2014-09-18 Thread mailingl...@j-b-s.de
Hi Boris, can you share the real code because I am confused by "filter" and "selectedFilter". Both are of type "Filter", but assigned using "new"? Can you show the filter impl? Are you using a filter cache somewhere? Or a service class which is not created on a per request base but only once? And

Re: QName::=(NCName':')?NCName error when tml is parsed

2014-05-15 Thread mailingl...@j-b-s.de
It looks like the library mapping name is causing this effect: in case the name begins with a digit as first character like "1st" component rendering fails. Using "first" instead fixes the problem and everything works as expected. To me it looks like bug, but if it is expected behaviour I would

Fwd: QName::=(NCName':')?NCName error when tml is parsed

2014-05-11 Thread mailingl...@j-b-s.de
Hi Andi, hi Kristian! We solved the puzzle several days ago, but unfortunately the mail never appeared in the mailing list even my phone tells me it is sent :-( See below Thanks Jens Von meinem iPhone gesendet Anfang der weitergeleiteten E‑Mail: > Von: "mailingl...@j-b-s.de" &g

Re: T5.3: per page context session storage?

2013-11-07 Thread mailingl...@j-b-s.de
I think it strongly depends... Overuse of session when parameters will do is as wrong as trying to avoid session at all by making the rest complicated and unmaintainable. If you need security / permission there is no decision you can make. For writing stateful wizard like dialogs it depends on

Re: Fun with Enums - suggestion wanted for edit subset of enum types (netmask)

2013-10-31 Thread mailingl...@j-b-s.de
Well, the values shown solely depends on your model. Just filter / sort it accordingly? By default Tapestry adds all enum values to options (see EnumSelectModel). Unfortunately you can not derive from EnumSelectModel, so I would try to start from AbstractSelectModel copy and paste a few lines fr

Re: grid if eventlink

2013-10-28 Thread mailingl...@j-b-s.de
Hi Andreas! If you make use of @Property annotation tapestry creates get and set methods for you. if you mix it with self-written methods you have to set "read" and "write" annotation params to "false" accordingly to avoid creation. Just have a look at the @Property documentation. Jens Von me

Re: onActivate not called / Ajax / Shiro

2013-10-27 Thread mailingl...@j-b-s.de
Hi Lenny Thanks for your answer. I guess my description was somehow incomplete... OnActivate from the "unauthorized" page is not called, that's surprising to me. The user has permission to view the page in general but misses certain functionality permissions triggered by event callback method

Re: Embedding a file on a page using StreamResponse from another component.

2013-10-24 Thread mailingl...@j-b-s.de
Hi Steve! Why not simply use the session? If the user has to authenticate anyway? In case you want avoid a session you can create onetime tokens. Unfortunately checking token validity or detecting outdated tokens requires persistence somehow... Jens Von meinem iPhone gesendet > Am 24.10.2013

Re: [T5.4] BeanEditor and Friends don't look as good as in Tap 5.3

2013-10-16 Thread mailingl...@j-b-s.de
Hi, just my two cents: In general coupling bean editor (and friends) tightly to bootstrap is strange even I am aware its the de facto standard. Furthermore I can not believe it will ever produce a layout which makes all of us happy. Is it not possible to add a additional, optional parameter to

Re: Select onChange with a context value

2013-06-26 Thread mailingl...@j-b-s.de
Hi Ben! AFAIR you can pass a context but this value remains constant and is independent from the selection made. So at the very end I used bind like you did. Same problem applies to Checkboxes, so I do not know if Tapestry generally misses something or we simply did not find it yet... Why did

Re: Sessions getting mixed up

2013-06-17 Thread mailingl...@j-b-s.de
Maybe I do net get it, but why can't you make use of a service having "Request Scope"? So Tapestry creates a new Instance per Request and you attach / inject yor session here? Jens Sent from my iPhone On 17.06.2013, at 15:50, Michael Gentry wrote: > Could Tapestry throw an exception if you u

Re: best way of incorporating static pages?

2013-06-16 Thread mailingl...@j-b-s.de
Hi Magnus! I tend to believe a CMS is way to slow to combine it with Tapestry. Furthermore if you serve pages by a CMS link you will notice a difference in Look and Feel and linking back to the T5 app may be difficult. CMS is perfect to allow a user (non dev) to edit pages like "about us", "we

Re: best way of incorporating static pages?

2013-06-12 Thread mailingl...@j-b-s.de
Hi John I use (basically) OutputRaw for something similar. You can either try to use a regex to strip all unwanted elements from the CMS html or mark a div or introduce a new element (easier to exactly find the content and drop the rest). Unfortunately most work is related to "links": you have

Re: Embedding content from separate modules (a.k.a plugins)

2013-06-10 Thread mailingl...@j-b-s.de
And I forgot: Try to make the enum static and/or set a serialuid in your page class, maybe this helps too... Sent from my iPhone On 11.06.2013, at 08:23, "mailingl...@j-b-s.de" wrote: > Hi Ilya > > I make a shot into the dark: you are using persist therefore an instance

Re: Embedding content from separate modules (a.k.a plugins)

2013-06-10 Thread mailingl...@j-b-s.de
Hi Ilya I make a shot into the dark: you are using persist therefore an instance of your enum is stored in the session. When you recompile a new class is loaded and the two enums belong to different classes/classloaders now, thus you get a CCE. If you move it out of your page it should work. J

Re: PageURL Rewriting, pulling name instead of id

2013-06-10 Thread mailingl...@j-b-s.de
Be carefull with article names...make sure a name is unique in all supported languages similar to the PK-ID you are using right now. From experience a name is usually not sufficient to guarantee this, thus attributes like color or size are required as well in your final name or as part of your A

Re: How to add a link to a file stored in directory?

2013-06-04 Thread mailingl...@j-b-s.de
Hi Petr! You are really refering to a file in your src directory? When you use maven to build it the file is copied to target/ and you access it simply by "return.txt" using the classloader because target/resources is stripped when building the jar/war. Set a break point and check if you reall

Re: How to add a link to a file stored in directory?

2013-05-30 Thread mailingl...@j-b-s.de
Hi Petr! Have a look at: http://tawus.wordpress.com/2011/07/30/tapestry-jfreechart-integration/ Here you can see how to stream any kind of data. StreamResponse was discussed here before: http://apache-tapestry-mailing-list-archives.1045711.n5.nabble.com/T5-1-Return-a-file-as-response-of-a-Actio

Re: how to use HibernateEntityValueEncoder

2013-05-13 Thread mailingl...@j-b-s.de
Hi Ken! Just a shot in the dark: Are you sure the PKs of your hibernate beans are not null (maybe you have a newly created bean instance which is not persited yet)? Afair the HibernateValueEncoder requires properly filled PK fields otherwise pk.toString() fails. Unfortunately the stacktrace i

Re: hover pop show image widget

2013-05-13 Thread mailingl...@j-b-s.de
Hi Ken! I use bootstrap / tapestry-jquery for this. See: http://tapestry5-jquery.com/mixins/docstooltip Sent from my iPhone On 13.05.2013, at 04:29, nhhockeyplayer nashua wrote: > Hi Folks, > > Is there a hover show widget? Something like what netflix does when you hover > over a movie, it

Re: How to stay on same page

2013-05-13 Thread mailingl...@j-b-s.de
Hi Ken! Can you paste your onPassivate method? Maybe you always return Team.class as context parameter instead of beanType member? I expect you want to see the selection in the URL like: query/team right? Than you need an proper on activate, too. So if you use your enum ReportType in onPassiva

Re: [T5 5.3.6] Dead Lock while initializing tapestry

2013-04-20 Thread mailingl...@j-b-s.de
return mongoDB; >} > } > > About MongoDB also nothing special. The module is taken from > https://github.com/mlusetti/tapestry-mongodb-core (look at earlier revisions). > > > BR, > Arunas > > > On 18/04/2013 18:53, mailingl...@j-b-s.de wrote: >> Ar

Re: [T5 5.3.6] Dead Lock while initializing tapestry

2013-04-18 Thread mailingl...@j-b-s.de
Are you spawning a new thread in your MongoDBImpl.java:30 which makes use of T5 services, too? From the Stacktrace you are (well T5 IOC is) building the mongodb service right now. What happens in the ctor of your class? Can you paste some code?? Jens Sent from my iPhone On 18.04.2013, at 17:

Re: Nested Form Support

2013-01-17 Thread mailingl...@j-b-s.de
To me it sounds like you need dividing all your form parts into components and on a per page basis you have only one form containing 1..n of your components. I do not see the point why all your components have to be forms. The form is just enclosing/surrounding your components. That's at least t

Re: Component that displays additional "containing Page" markup

2012-12-13 Thread mailingl...@j-b-s.de
We use GridDataSource for paging large sets too. getAvailableRows is the total number of entries prepare tells you the slice to be rendered depending on grids "rows per page" setting. Simply load the whole slice in prepare and return the single row entity by getRowValue Jens Sent from m

Re: Component that displays additional "containing Page" markup

2012-12-12 Thread mailingl...@j-b-s.de
Hi Bogdan! Any reason why you can not use tapestry's grid component? Jens Sent from my iPhone On 12.12.2012, at 15:43, bogdan_cm wrote: > Thank you both for replying. > > Now that I read it after a day, my question is not very clear. Here is a > more to the point explanation. > > My cust

Re: Component that displays additional "containing Page" markup

2012-12-12 Thread mailingl...@j-b-s.de
Hi! From an Object oriented aspect you are coupling components to particular pages, when I understand you correctly. This is for my personal opinion a wrong design. Can't you not just pass the additional info as parameter from your page to your component (as Taha suggested it)? Or are you displ

Re: Bean Editor class cast issue method access issue

2012-12-10 Thread mailingl...@j-b-s.de
Hi Ken, I really wonder what happens to your coach instance. Are you sure its a coach? As I see java.lang.Object as class name I doubt it is still your coach or ever was. Even if you assign a coach to an object variable it remains coach. Can you check/debug what happens to your instance? Jens

Re: Referencing files from a jar

2012-11-28 Thread mailingl...@j-b-s.de
Hi! When looking at: http://tapestry.apache.org/assets.html Section "Assets in Templates" its "asset:" instead of "classpath:" So give this a try (untested)? Jens Sent from my iPhone On 28.11.2012, at 18:05, mwrohde wrote: > Ok, thanks for the replies so far. > > In the tml I've got: > <$

Re: How onActivate () will be called automatically

2012-10-23 Thread mailingl...@j-b-s.de
Try @Inject YourService service; In the class and call whatever method you need from onActivate() { service.whatEver(); } ? Or do you want a service instance passed due to some magic url parameter? like corsion from number to a db pojo for example? Jens Sent from my iPhone On 23.10.2

Re: cannot output table tags in outputraw compnnent

2012-09-29 Thread mailingl...@j-b-s.de
I do not understand what you are trying to achieve > in a template is identically to right? There is no need to wrap html elements inside outputraw within a template. Use output raw to stream html from your page class, for example assume you have a preformated product description Incl bold, un

Re: My little problem with Tap listing

2012-09-17 Thread mailingl...@j-b-s.de
I gues you want to use the foreign key pointing from comment to blog, but you are using the "id" (autoinc pk of comment?) instead. session.createCriteria(Comment.class).add(Restrictions.eq("id",blog)).list(); return l; Jens Sent from my iPhone On 18.09.2012, at 03:02, Taha Siddiqi wrote: >

Re: Sevice State / Stateless

2012-09-14 Thread mailingl...@j-b-s.de
I'll guess the question is how to use services at all... As IOC services are usually singletons changing state via setters will affect all threads which deal with this service thus data may creep from one session to another and will introduce concurrency problems immediately. In case a service i

Re: Downloading content from tapestry.apache.org

2012-09-11 Thread mailingl...@j-b-s.de
wget ? http://www.gnu.org/software/wget/ Sent from my iPhone On 12.09.2012, at 01:32, Jay Ginete wrote: > On 9/12/2012 7:07 AM, ZiciuM wrote: >> How to download all tutorials, references, docs from apache.tapestry.org so >> that I can work in offline mode? >> >> >> >> -- >> View this messag

Re: Submitting a form from another page

2012-09-03 Thread mailingl...@j-b-s.de
What about placecing the login form in your layout page/class and surround it by a in your layout tml and implement a "boolean isUserLoggedIn()" method in your layout class? See T5 doc: Api docs/corelib/components/if User Guide/Layout Component Jens Sent from my iPhone On 03.09.2012,

Re: Iterating a map in template

2012-08-02 Thread mailingl...@j-b-s.de
I expect count to be of type MapEntry or in case getCounts() returns cnts.values() instead it has to be of type string? Jens Sent from my iPhone On 03.08.2012, at 02:40, "Angelo C." wrote: > Hi, > > I'm trying to iterate a map in template with following code, but, it turns > out that the ent

Re: Creating a linked list of pages for easy backward navigation?

2012-08-01 Thread mailingl...@j-b-s.de
Hi Ludwig Am I right you are always using the same page for your refinement selection? Or is it more like a wizzard containing multiple pages? For the first I wonder if this is really a T5 problem.. Can't you just use a stack like object and push/pop the values you need to create/recreate the

Re: #again #strange No service implements the interface tap.execounting.dal.mediators.TeacherMedImpl

2012-07-31 Thread mailingl...@j-b-s.de
Can you provide the tapestry page, class and interface sources? Jens Sent from my iPhone On 31.07.2012, at 15:21, bigcache1 wrote: > http://pastebin.com/s8g87ZtC Startup log > > Addition: Other injects are fine. > > > > -- > View this message in context: > http://tapestry.1045711.n5.nabb