Re: Component that displays additional "containing Page" markup

2012-12-15 Thread bogdan_cm
Grid is much more powerful than I knew. Thank you guys for nudge in the right direction. I will be sticking with my component for this particular page, but I am replacing allot of other code with Grid. did the trick and works like a charm. Cannot believe I didn't see it earlier. Thanks again

Re: Component that displays additional "containing Page" markup

2012-12-13 Thread bogdan_cm
The other limiting thing I remember about the Grid component was that I could only display one "Object' per row. I could not do: Object1.Name Object2.NameObject3.NameObject4.Name Object5.Name Object6.NameObject7.NameObject8.Name As you can tell, I did not look at the Gri

Re: Component that displays additional "containing Page" markup

2012-12-13 Thread bogdan_cm
I will have a closer look at the Grid component. Thanks very much for the reply. Bogdan. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Component-that-displays-additional-containing-Page-markup-tp5718622p5718688.html Sent from the Tapestry - User mailing list archive

Re: Component that displays additional "containing Page" markup

2012-12-13 Thread bogdan_cm
Pagination is the reason for not using the Grid component. I want to paginate my results without holding anything in memory (session). For Grid I will select the entire set, @Persist it and then display portions on the page. What I am doing is a bit different. I always select the (number of tokens

Re: Component that displays additional "containing Page" markup

2012-12-12 Thread bogdan_cm
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 custom component will take care of pagination. This means I need my component to wrap around a Loop in the main page. The Loop will be iterating over a List of

Component that displays additional "containing Page" markup

2012-12-11 Thread bogdan_cm
Hello everyone, How can I allow "Page" information to be part of the component markup output? Take for example the zone component: --> component this is the time on day ${timeOfDay} -> this value comes from the Page containing the component When I write my own component, how can I pas

Re: Tapestry 5 book : some minor typos in Chapter 2

2012-08-27 Thread bogdan_cm
A couple more: Tapestry shares any single page instance between all threads -> should be "shares every single page". Storing only few values of persistent fields the session instead of entire page's structure -> The most part of Tapestry framework get along well without using HttpSession Tapes

Re: Update other zones on zonerefresh event

2012-08-15 Thread bogdan_cm
Found it. The method name is Object onRefresh() {} -- View this message in context: http://tapestry.1045711.n5.nabble.com/Update-other-zones-on-zonerefresh-event-tp5715431p5715459.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: Update other zones on zonerefresh event

2012-08-15 Thread bogdan_cm
Thanks very much for your reply. The missing part for me is the method which will capture the server side "zonerefresh" event. What is this method called? :)) There are three solutions for me: 1) a method similar to -> onZoneRefresh() { invoked when zonerefresh does it's XHR request. I would use

Update other zones on zonerefresh event

2012-08-14 Thread bogdan_cm
What I want to achieve is a "self refreshing cluster of zones" for a notification mechanism driven by the autorefresh event of a zonerefresh mixin. To simplify, a multiZoneUpdate that is triggered by a zonerefresh event from the mixin. How do I capture the "zonerefresh" event from the mixin ins

Re: Tapestry CheckList not displaying inside radiogroup

2012-08-14 Thread bogdan_cm
Finally solved by using Form fragments. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-CheckList-not-displaying-inside-radiogroup-tp5714471p5715430.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: Tapestry CheckList not displaying inside radiogroup

2012-07-16 Thread bogdan_cm
Please ignore. I believe this problem is related to the fact that I am initially hiding the div containing the checklist. If I test the radiogroup and checklist in isolation they work well. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-CheckList-not-displaying

Tapestry CheckList not displaying inside radiogroup

2012-07-15 Thread bogdan_cm
Hello everyone, I have a radiogroup that will open/close a div when clicked. This div contains a t:checklist component. The checklist will render itself correctly when outside the radiogroup, but will not do so inside the redio group. Any idea how I can convince the checklist component to displ

Re: JSON request construct in Tapestry

2012-06-26 Thread bogdan_cm
Thank you for the reply. -- View this message in context: http://tapestry.1045711.n5.nabble.com/JSON-request-construct-in-Tapestry-tp5714075p5714095.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To un

JSON request construct in Tapestry

2012-06-25 Thread bogdan_cm
I am trying to open Jira tickets directly from my application using atlassian's REST api. For this I need to create a JSON request and submit it to some Jira handled URL. Can I construct such a request in Tapestry? It's somewhat backword in that Tapestry becomes a client to the request. Assume h

Re: InjectPage into a service

2012-06-17 Thread bogdan_cm
Understood. Thanks for the reply. -- View this message in context: http://tapestry.1045711.n5.nabble.com/InjectPage-into-a-service-tp5713950p5713956.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To un

InjectPage into a service

2012-06-16 Thread bogdan_cm
Hi everyone, Is there a way to inject a page into a service via InjectPage annotation? I am trying the following and does not seem to work: package com.myapp.services; public class MyServiceImpl implements MyService { @InjectPage private Login loginPage; public Object consumer() { login

Re: Tapestry.ZONE_UPDATED_EVENT issue

2012-05-16 Thread bogdan_cm
Thank you both for the reply. "bind" was my first try and I eventually tried with "on". I'll try the Prototype version as well. Funky problem :). -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-ZONE-UPDATED-EVENT-issue-tp5708402p5711203.html Sent from the Tapest

Tapestry.ZONE_UPDATED_EVENT issue

2012-05-13 Thread bogdan_cm
Hello everyone, I have this nagging little problem handling the zone updated event. I tried all that I could find on this forum and still cannot solve it. My TML zone: Some other code here. my jquery event handler sitting in th

Re: HttpSessionListener interface implementation by Tapestry5 component

2012-03-16 Thread bogdan_cm
Thank you both very much for replying. It solved my problem. Bogdan. -- View this message in context: http://tapestry.1045711.n5.nabble.com/HttpSessionListener-interface-implementation-by-Tapestry5-component-tp5572413p5572656.html Sent from the Tapestry - User mailing list archive at Nabble.co

HttpSessionListener interface implementation by Tapestry5 component

2012-03-16 Thread bogdan_cm
Hi everyone, When a user logs out I want to remove it from my online_table. This can happen in two ways: 1. The user clicks LOGOUT link and I remove him from the online_table and invalidate his session. 2. The users simply closes the browser, in which case I am unaware that he left and the sess

Re: TAP5-746: Zone Refresher

2011-11-23 Thread bogdan_cm
Ha, one of the issues that come with not using Maven to refresh your repository :). Thanks very much for the reply's. -- View this message in context: http://tapestry.1045711.n5.nabble.com/TAP5-746-Zone-Refresher-tp4529253p5017815.html Sent from the Tapestry - User mailing list archive at Nabb

Re: TAP5-746: Zone Refresher

2011-11-23 Thread bogdan_cm
Yes, I'm using 5.3: tapestry-core-5.3.0.jar http://tapestry.1045711.n5.nabble.com/file/n5017803/1.jpg -- View this message in context: http://tapestry.1045711.n5.nabble.com/TAP5-746-Zone-Refresher-tp4529253p5017803.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: TAP5-746: Zone Refresher

2011-11-23 Thread bogdan_cm
Sadly no, My test: ${text} Failure creating embedded component 'zone' of com.example.tutorial.pages.Page: Unable to resolve 'zonerefresh' to a mixin class name. -- View this message in context: http://tapestry.1045711.n5.nabble.com/TAP5-746-Zone-Refresher-tp4529253p5017774.html Sent from the

Re: TAP5-746: Zone Refresher

2011-11-23 Thread bogdan_cm
Hi Taha, Now that the ZoneRefresh component is included in Tap-core, is there a working example anywhere? I have this in my .tml: My test: ${text} and when I run it i get: Failure creating embedded component 'zone' of com.example.tutorial.pages.Page: Unable to resolve 'tawus/zonerefresh' t

Re: Tapestry5.3 javax.inject.Named exception

2011-11-14 Thread bogdan_cm
Thank you for the reply. I am not using Maven to download. I just picked up the jars manually from: https://repository.apache.org/content/groups/staging/org/apache/tapestry/ I am using JRE 6 but the problem persists. Also, the jsr250 is now included: *ProjectClassLoader: entry=D:\jars\Tapestry5

Tapestry5.3 javax.inject.Named exception

2011-11-14 Thread bogdan_cm
Hi everyone, Is there are new dependency for Tap5.3 rc3 that we need to include? Since downloading this release candidate I get: 2011-11-14 09:53:17.389:INFO::jetty-6.1.26 2011-11-14 09:53:17.857:WARN::failed app: java.lang.NoClassDefFoundError: javax/inject/Named 2011-11-14 09:53:17.858:WARN::

EventLinks and their handlers

2011-11-09 Thread bogdan_cm
I am stuck on a rather silly operation. I have an eventLink in the tml and it's event handler in the class like so: tml ->< a t:id='postConversationLink'>click the link < / a > class -> @Component(parameters = {"event=postConversationEvent"}) private EventLink postConversati

Re: dynamically change the context information of an EventLink on the cliient side

2011-11-08 Thread bogdan_cm
Thank you both for the reply. Will investigate which method applies better to my needs. Cheers, Bogdan. -- View this message in context: http://tapestry.1045711.n5.nabble.com/dynamically-change-the-context-information-of-an-EventLink-on-the-cliient-side-tp4972710p4974985.html Sent from the T

dynamically change the context information of an EventLink on the cliient side

2011-11-07 Thread bogdan_cm
Hi All, I would appreciate your help with some ideas as I am trying to implement a chat component and I want to use Tap for the server page. The user will add text to a text input and click a link or hit enter. At this point I need to send what the user entered to the tapestry class. It would

Re: Importing a JQuery library stops Zones from responding to events from EventLink

2011-10-20 Thread bogdan_cm
Thanks very much for the reply. I'll give it a try :). -- View this message in context: http://tapestry.1045711.n5.nabble.com/Importing-a-JQuery-library-stops-Zones-from-responding-to-events-from-EventLink-tp4920064p4921664.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Importing a JQuery library stops Zones from responding to events from EventLink

2011-10-19 Thread bogdan_cm
Hi all, I have a page in which I declare a zone: @InjectComponent private Zone tokenDetailsZone; an EventLink for updating the zone: @Component(parameters = "event=updateContent","zone=tokenDetailsZone" }) private EventLink updateContent; and the event handler method:

Re: Meap Tapestry 5 book cancelled?

2011-09-28 Thread bogdan_cm
There are many many users of Tapestry that are very excited about the book but are not actively on the forums expressing it. I believe, like you said, this is the best thing that could have happened. I for one, cannot wait to get my hands on it. Good luck and "steady hand" :). -- View this

Re: removing attributes from session from pages other than the one setting it

2011-07-15 Thread bogdan_cm
I solved it another way: Page X persists the session object. Page X also defines a method which invokes componentResources.discardPersistentFieldChanges. I navigate to page Y. On page Y I @InjectPage X and, at the appropriate time I invoke the method on page X that discards all persistent data

Re: removing attributes from session from pages other than the one setting it

2011-07-15 Thread bogdan_cm
Yep, it does not solve my problem. Being on another page than the one setting the object in session, discarding will not remove my object of interest. Still digging for a solution. I wonder if I could just cast the session back to a Servlet HttpSession and just invoke removeAttribute from there. Th

Re: removing attributes from session from pages other than the one setting it

2011-07-15 Thread bogdan_cm
I'll have a look. Thanks very much for the reply. -- View this message in context: http://tapestry.1045711.n5.nabble.com/removing-attributes-from-session-from-pages-other-than-the-one-setting-it-tp4592795p4592862.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

removing attributes from session from pages other than the one setting it

2011-07-15 Thread bogdan_cm
Hi again everyone, I have hit another snag. Page X contains a session persistent field: @Persist private ArrayList paginatedResults; I am navigating away from page X to page Y. On page Y I want to remove the persisted object "paginatedResults" from the session. I am looking

Re: Javascript library not loaded into the page via @Import

2011-07-11 Thread bogdan_cm
Current configuration that works: Layout Template sample (MemberPagesLayout.tml): ; http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> Alternative Reality - your secret life ...

Re: Javascript library not loaded into the page via @Import

2011-07-11 Thread bogdan_cm
Thanks for the reply. The sure way of determining that my js is not making it into the page is that i'm not seeing the side effect. My js will modify the width/height of the jpg images on the page. Currently, to make it work I have copied the javascript into the header of the Layout page. But i

Javascript library not loaded into the page via @Import

2011-07-11 Thread bogdan_cm
Hi all, In my Tap app I have a simple js file which contains: This library resides under: Web-Content/assets/js/test.js The page for which I want to import this library has the following annotation above the class declaration: @Import(library="context:/assets/js/test.js") public class Memb

Re: expansions and expresion language

2011-06-11 Thread bogdan_cm
Thanks all very much for the replies. -- View this message in context: http://tapestry.1045711.n5.nabble.com/expansions-and-expresion-language-tp4474896p4479930.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

expansions and expresion language

2011-06-09 Thread bogdan_cm
Hi everyone, I know I found it someplace but for the life of me i cannot find it again. There was a reference on how to use expansions, how to invoke methods from templates, how to generate numeric intervals in the template and a few other things. Kind'a like an expression language for Tap. A

Re: resource shared accross threads

2011-05-04 Thread bogdan_cm
Got it, noted, and never again. Thanks for the reply, Bogdan -- View this message in context: http://tapestry.1045711.n5.nabble.com/resource-shared-accross-threads-tp4370064p4370272.html Sent from the Tapestry - User mailing list archive at Nabble.com.

resource shared accross threads

2011-05-04 Thread bogdan_cm
Hi again, I have a Index class which declares another object as a private instance variable: private User user = new User(); This object will hold some attributes of the user. It's constructor will populate it with default values. Index template has the ability to update the attributes

Re: getter/setter for textfield component

2011-05-04 Thread bogdan_cm
Interesting. I just did not realize the class property will be assigned the map keys one by one as I loop through them (the documentation clearly states this ). Thanks for the reply, Bogdan. -- View this message in context: http://tapestry.1045711.n5.nabble.com/getter-setter-for-textfield-co

getter/setter for textfield component

2011-05-04 Thread bogdan_cm
Hi all, I have a textfield component inside a loop. The value of the text component is set like this: The entire loop is enclosed in a . When i try to submit the form, I get the following error: An exception has occurred: Failure writing parameter 'value' of component Index:textfield: Expr

Re: Using @Environmental and "JavaScriptSupport Object" to dynamically load css based on browser

2011-04-12 Thread bogdan_cm
Very useful stuff. Thanks very much for replies. Cheers, Bogdan. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Using-Environmental-and-JavaScriptSupport-Object-to-dynamically-load-css-based-on-browser-tp4283102p4298913.html Sent from the Tapestry - User mailing list a

Re: Using @Environmental and "JavaScriptSupport Object" to dynamically load css based on browser

2011-04-12 Thread bogdan_cm
Thank you very much for the responses. very useful stuff. Cheers. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Using-Environmental-and-JavaScriptSupport-Object-to-dynamically-load-css-based-on-browser-tp4283102p4298887.html Sent from the Tapestry - User mailing list ar

Using @Environmental and "JavaScriptSupport Object" to dynamically load css based on browser

2011-04-04 Thread bogdan_cm
Hi, There is one post regarding this here: http://tapestry.1045711.n5.nabble.com/Using-conditional-comments-with-Import-stylesheet-quot-quot-td3827508.html#a3887176 http://tapestry.1045711.n5.nabble.com/Using-conditional-comments-with-Import-stylesheet-quot-quot-td3827508.html#a3887176 but I

perthread or singleton

2011-03-18 Thread bogdan_cm
Hi, I have a Tap5 service called QueryFactory. This service will include dozens of methods for database interaction: selects, inserts, updates etc. This being an Web App, potentially multiple users ( threads ) will have the service injected at the same time and "potentially" invoke the same met

Re: Label not displaying it's body

2011-03-04 Thread bogdan_cm
The typos are intentional so that HTML is not rendered when i post. Was in a hurry, sorry about that. Managed to get passed by using: ${myValueHere} directly in tml ( as you suggested ). Thanks all for the replies, Bogdan. -- View this message in context: http://tapestry.1045711.n5.nabble.c

Label not displaying it's body

2011-03-03 Thread bogdan_cm
I have this piece of code(only relevant part included): "t:label for=userName> LABEL BODY /t:label" "input type="text" t:id="userName" t:type="TextFieldd" t:value="userName" t:validate="required"/" I would expect, when rendered, to have something like this: LABEL BODY: TEXTFIELD instead

Label not displaying it's body

2011-03-03 Thread bogdan_cm
I have this piece of code(only relevant part included): LABEL BODY: I would expect, when rendered, to have something like this: LABEL BODY: TEXTFIELD instead, what I have is: User Name TEXTFIELD -> which is what the label displays if there is no body What am i doing wrong here? If I a