RE: Loop and javascript

2011-07-21 Thread ashu.soman
The generated code anyway won’t show t:id.. but if I give id instead of t:id, it trats it as css id and the generated html would have automatically generated id by tapestry instead of the id given by us in id=”${}” Warm Regards, Ashutosh Soman From: Thiago H. de

Re: Pass component property into page.

2011-07-21 Thread Igor Drobiazko
Just as a side note: Environmental is not the only way. Component parameters are actually bidirectional. For example property bindings are writable. A component parameter is not limited to provide values for components. It may be used to populate a value from the component to its container. A good

Re: How to use ContextResourceSymbolProvider

2011-07-21 Thread Михаил Слободянюк
Hi! I simply use this code for it: public static void contributeApplicationDefaults( MappedConfiguration configuration) { ResourceBundle bundle = ResourceBundle.getBundle("Cpu"); Enumeration e = bundle.getKeys(); while (e.hasMoreElements()) {

Re: Question about navigation with controllers

2011-07-21 Thread Robert Zeigler
> > > What are the implications here, regarding persistence from one page to the > next? Since I'm just generating a link for the next page, I wouldn't be > able to set values on the page before doing the redirect. > Depends on how you're persisting/communicating values. For instance, you abso

Re: Issue with configuration of IDE used for a Tapestry project

2011-07-21 Thread Josh Canfield
>For instance I have a beaneditform in one of my > templates and I can't use auto-completion for some of the attribute i.e. the > *clientValidation* attribute. I don't think the Intellij plugin is sophisticated enough to do that kind of introspection. clientValidation parameter is inherited from

Re: Pass component property into page.

2011-07-21 Thread Thiago H. de Paula Figueiredo
Hi! On Thu, 21 Jul 2011 17:48:37 -0300, Josh Canfield wrote: I'm not sure how this helps the OPs problem though. BeginRender for your component is going to happen after the layout component has started rendering, and already output the title. Right? Right! t:mycomponent won't get

Re: Pass component property into page.

2011-07-21 Thread Josh Canfield
> You'll need to use the Environmental service in your page and add some > custom object on it, typically in @BeginRender. Then, in your component, you > invoke some method in this object. In the page, in some event after > @BeginRender, you get the value back. I'm not sure how this helps the OPs

Re: Issue with configuration of IDE used for a Tapestry project

2011-07-21 Thread Julien Martin
Can any Intellij user please help me with this issue? Regards, Julien. 2011/7/15 Julien Martin > Hello, > > I use Intellij as my IDE and only some of the available attributes for some > components are available. For instance I have a beaneditform in one of my > templates and I can't use auto-com

Re: Question about navigation with controllers

2011-07-21 Thread Thiago H. de Paula Figueiredo
On Thu, 21 Jul 2011 16:59:32 -0300, Norman, Jason wrote: Would I get the response from RequestGlobals? If so, I guess I would have to inject that into my controller also, right? You can inject Request directly. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibern

Re: How to use ContextResourceSymbolProvider

2011-07-21 Thread Josh Canfield
You can also set them from the command line: -Dtapestry.production-mode=false which is mostly how I choose to do it... On Thu, Jul 21, 2011 at 11:35 AM, Mark wrote: > On Thu, Jul 21, 2011 at 10:27 AM, Erik Fäßler > wrote: >> Goal: Being able to configure my WebApp from >> file rather than bei

Re: Question about navigation with controllers

2011-07-21 Thread Norman, Jason
Well, I don't hate that idea. It seems pretty close to what I'm already doing. Couple of questions about it. Would I get the response from RequestGlobals? If so, I guess I would have to inject that into my controller also, right? What are the implications here, regarding persistence from one pa

Re: 100% CPU load after hot deploy of Tapestry 5 Application on Tomcat 6

2011-07-21 Thread Peter Stavrinides
Martin thanks, I will try this, will let you know. Cheers, Peter - Original Message - From: "Martin Strand" To: "Tapestry users" Sent: Wednesday, 20 July, 2011 12:52:52 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Re: 100% CPU load after hot deploy of Tapestry 5 Application

Re: 100% CPU load after hot deploy of Tapestry 5 Application on Tomcat 6

2011-07-21 Thread Peter Stavrinides
Hi Guys, Thanks for the attempts... these machines are monsters, 8 cores and about 32 gigs... Tomcat has more resources allocated than it should ever need, the CPU never drops just grows after the hot deploy (and only then). The machine doesn't fall over either because of the extensive resourc

Re: Question about navigation with controllers

2011-07-21 Thread Robert Zeigler
Hm, well, on an event, tapestry is definitely looking for a result from the event; it normally falls to the ComponentEventResultProcessor service to handle that return value and determine what to send the client, with the default action being (for void event handlers) to re-render the page. Jus

Question about navigation with controllers

2011-07-21 Thread Norman, Jason
Hello, I'm working on porting a fairly large Tap3 application to Tap5. I understand there is a large difference, and many of the concepts don't translate. But I am hoping for a little nudge in the right direction, since I've spent a few days searching the web for ideas. I have a lot of existin

Re: Pass component property into page.

2011-07-21 Thread George Christman
ah okay, Thanks -- View this message in context: http://tapestry.1045711.n5.nabble.com/Pass-component-property-into-page-tp4620541p4620616.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe,

Re: Pass component property into page.

2011-07-21 Thread Thiago H. de Paula Figueiredo
On Thu, 21 Jul 2011 15:32:27 -0300, George Christman wrote: Yes, in my example I'm trying to pass a title generated in the page component back to the layout component. Tapestry's philosophy is that components (including pages) are and should be black boxes, so the normal flow is from top

Re: How to use ContextResourceSymbolProvider

2011-07-21 Thread Mark
On Thu, Jul 21, 2011 at 10:27 AM, Erik Fäßler wrote: > Goal: Being able to configure my WebApp from > file rather than being forced to edit the code every time I change > deployment (from test to productive for instance; You probably already know this, but you can set these from web.xml with some

Re: Pass component property into page.

2011-07-21 Thread George Christman
Yes, in my example I'm trying to pass a title generated in the page component back to the layout component. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Pass-component-property-into-page-tp4620541p4620575.html Sent from the Tapestry - User mailing list archive at Nabble

Re: Pass component property into page.

2011-07-21 Thread Josh Canfield
Pages don't have parameters. It's not really clear to me from your example what it is you're trying to do. Are you trying to have your component define the title of the page? On Thu, Jul 21, 2011 at 11:22 AM, George Christman wrote: > Does anybody know how to pass a prop:value from the compone

Pass component property into page.

2011-07-21 Thread George Christman
Does anybody know how to pass a prop:value from the component back to the page? I know how to do this very easily from the page to the component, just not in reverse. I tried ***Custom Component*** http://tapestry.1045711.n5.nabble.com/Pass-component-property-into-page-tp4620541p4620541.html S

Re: HLS visits Boston ... care for a drop-by?

2011-07-21 Thread George Christman
That sounds pretty sweet Howard, wish your family and friends were in Albany :) Good luck in Boston! -- View this message in context: http://tapestry.1045711.n5.nabble.com/HLS-visits-Boston-care-for-a-drop-by-tp4620291p4620468.html Sent from the Tapestry - User mailing list archive at Nabble.com.

RE: [Tapestry 5.1.0.5] Accessing Tapestry Page Model to find Inputs/outputs of a page/component

2011-07-21 Thread Nazare Thibaut
> Thiago H. de Paula Figueiredo : thank for the tip, I will look into it right > away. > Andreas Andreou : I knew someone would have had the idea before me :) As > soon as I have something robust enough I will share it with pleasure. My next problem is how characterizing an input (parameters

Re: T5.2.6 JSONLiteral Bug

2011-07-21 Thread Howard Lewis Ship
JSONLiteral is a hack ... in fact, it transforms what is being sent into something that is no longer JSON. This is necessary for certain components that initialize themselves using JavaScript object notation (not JSON, which is a specific subset). The JSONLiteral often is a symbol (to reference a

HLS visits Boston ... care for a drop-by?

2011-07-21 Thread Howard Lewis Ship
Hello all, I'll be visiting my friends and family in Boston in August (19th - 28th). If you are in the greater Boston area and are using Tapestry, please get in touch; I'd love to drop in, see what you're doing, and talk about Tapestry 5.3 and beyond. -- Howard M. Lewis Ship Creator of Apache T

Re: How to use ContextResourceSymbolProvider

2011-07-21 Thread Josh Canfield
Hmm... I can't find any code that's using it. All my incantations ended up causing recursion with the Alias service. Here is something that works by being lazy: @Contribute(SymbolSource.class) public void addTestResourceSymbols(OrderedConfiguration configuration,

Re: Unable to resolve 'tapx/datefield' to a component class name.

2011-07-21 Thread Taha Hafeez
You can check the startup logs to check if the component is getting loaded. You should see something like tapx/DateField in the log. If it is not then the jar is some how not getting loaded. regards Taha On Thu, Jul 21, 2011 at 8:45 PM, captain_rhino wrote: > Can anyone spot my deliberate mist

How to use ContextResourceSymbolProvider

2011-07-21 Thread Erik Fäßler
Hey all, I've been struggling for a while with what seems to be a simple task at first: "On WebApp startup, load a configuration file - located in the app's context, i.e. in the WEB-INF directory - and contribute its contents to Tapestry's SymbolSource service." I always get in trouble by

Unable to resolve 'tapx/datefield' to a component class name.

2011-07-21 Thread captain_rhino
Can anyone spot my deliberate mistake please? I currently recieve the following exception. Caused by: org.apache.tapestry5.ioc.util.UnknownValueException: Unable to resolve 'tapx/datefield' to a component class name. I'm just trying to use some of the tapx extension s. .tml file http://tapestry

Re: [Tapestry 5.1.0.5] Accessing Tapestry Page Model to find Inputs/outputs of a page/component

2011-07-21 Thread Thiago H. de Paula Figueiredo
On Thu, 21 Jul 2011 10:49:32 -0300, Nazare Thibaut wrote: Hello, Hi! But I was unable to get Tapestry representation of a page. You can get that by using the ComponentSource service and its methods, then use the Component.getComponentResources().getEmbeddedComponent() and Component.

Re: [Tapestry 5.1.0.5] Accessing Tapestry Page Model to find Inputs/outputs of a page/component

2011-07-21 Thread Andreas Andreou
i can't really help - just want to say this brings back some nice memories, http://blog.andyhot.gr/A_new_tool_for_Tapestry/ http://blog.andyhot.gr/diagrams_for_tapestry/ I wish your project goes forward! On Thu, Jul 21, 2011 at 16:49, Nazare Thibaut wrote: > Hello, > > It’s my first message here

Re: Loop and javascript

2011-07-21 Thread Thiago H. de Paula Figueiredo
On Thu, 21 Jul 2011 10:53:00 -0300, Ashutosh, Soman wrote: Hi!! Hi! As mentioned above, I tried using id="${}" instead of t:id, but the function getElementbyId() returns element based on t:id and not id This isn't true. Check the generated HTML and the post it here. -- Thiago H. de Pa

RE: Loop and javascript

2011-07-21 Thread Ashutosh, Soman
Hi!! As mentioned above, I tried using id="${}" instead of t:id, but the function getElementbyId() returns element based on t:id and not id which I tried and experimented with for quite some time now. And sadly, t:id soesn't accept ${} types of values, it needs to be hardcoded. Warm Regards,

[Tapestry 5.1.0.5] Accessing Tapestry Page Model to find Inputs/outputs of a page/component

2011-07-21 Thread Nazare Thibaut
Hello, It’s my first message here and I’m French, English is not my native language; please excuse typing errors. I looked for answers in the Tapestry 5 wiki and by searching in the mail archive but I might have used wrong keywords. My goal is to generate a directed graph of my tapestry website

Re: Loop and javascript

2011-07-21 Thread Thiago H. de Paula Figueiredo
On Thu, 21 Jul 2011 04:31:43 -0300, ashu.soman wrote: Hi, Hi! I need to use javascript in a loop which uses t:id of an element(a radio button). The javascript in an onclick event on another element(an image). But since tapestry is not allowing me to put t:id in t:id="${}" this fashion, i'

Re: Loop and javascript

2011-07-21 Thread LLTYK
Use a mixin. They allow you to get the autogenerated Tapestry ids and pass those to javascript. Or you can change your javascript to use event.target instead of the id. That will let you know what image was clicked, and then you can traverse the dom for the nearest radiobutton. -- View this messa

Re: Loop and javascript

2011-07-21 Thread ashu.soman
For Tapestry 5 of course. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Loop-and-javascript-tp4618424p4618425.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-ma

Loop and javascript

2011-07-21 Thread ashu.soman
Hi, I need to use javascript in a loop which uses t:id of an element(a radio button). The javascript in an onclick event on another element(an image). But since tapestry is not allowing me to put t:id in t:id="${}" this fashion, i'm facing problem. Basically what i want to do is check correspond

Date Field with day, month year and datepicker component

2011-07-21 Thread captain_rhino
The current datepicker component does not enable individual day,month, year to be inoutted through 3 individual drop down boxes. I have seen some discussion on the subject but can someone point me in the right direction on how to achieve such a component? Is there a component out there that alred