Re: component-writing question

2006-04-10 Thread Andreas Bulling
On 10. Apr 2006 - 10:29:20, Mike Snare wrote: | Clearly, some object used as an expression prefix on line 106 of | ShowAdminPanel is null. Put a breakpoint there and see what it is. Now it works - thanks! :-) - To unsubscribe, e

Re: component-writing question

2006-04-10 Thread Mike Snare
Clearly, some object used as an expression prefix on line 106 of ShowAdminPanel is null. Put a breakpoint there and see what it is. -Mike On 4/10/06, Andreas Bulling <[EMAIL PROTECTED]> wrote: > On 10. Apr 2006 - 10:15:16, Mike Snare wrote: > | Whenever you are asking for help with an exception,

Re: component-writing question

2006-04-10 Thread Andreas Bulling
On 10. Apr 2006 - 10:15:16, Mike Snare wrote: | Whenever you are asking for help with an exception, it helps to | automatically post the exception with stack trace (there are often | more than one, post all of them). | | All you have said is that you are getting an | ApplicationRuntimeException.

Re: component-writing question

2006-04-10 Thread Mike Snare
Whenever you are asking for help with an exception, it helps to automatically post the exception with stack trace (there are often more than one, post all of them). All you have said is that you are getting an ApplicationRuntimeException. Without more info, that's next to meaningless. -Mike On

Re: component-writing question

2006-04-10 Thread Andreas Bulling
On 10. Apr 2006 - 15:52:29, Andreas Bulling wrote: | I debugged the application step by step and the error | seems to occur in the DirectService service() method | when ResponseRenderer->renderResponse() gets called. I did some more steps and it seems as if the error occurs during page/component r

Re: component-writing question

2006-04-10 Thread Andreas Bulling
Please... Does one of the gurus have the (short) time to try to help me with my problem? As I wrote I'm able to create the DirectLinks using Java but when I click on the link I get an ApplicationRuntimeException. I debugged the application step by step and the error seems to occur in the DirectSer

Re: component-writing question

2006-04-10 Thread Andreas Bulling
On 10. Apr 2006 - 10:22:31, Andreas Bulling wrote: | Well, yes... that's what I also thought about... But the | question is: How can I fix this? Is there a way to "remove" the | body from getTabLink() after getTabLink().render(writer, cycle); | gets called? Finally I found a solution - at least to

Re: component-writing question

2006-04-10 Thread Andreas Bulling
On 09. Apr 2006 - 22:25:58, Sam Gendler wrote: | Sounds like your component output is occuring once for each tab, but | on each invocatino, it is writing content for each tab that follows | the current tab, as well as the current tab. So 1st tab get s written | once, then each tab after it. Then

Re: component-writing question

2006-04-09 Thread Sam Gendler
Sounds like your component output is occuring once for each tab, but on each invocatino, it is writing content for each tab that follows the current tab, as well as the current tab. So 1st tab get s written once, then each tab after it. Then 2nd tab gets written again, plus each tab after it, and

Re: component-writing question

2006-04-09 Thread Andreas Bulling
Well, in the meanwhile I've reached this point: @Component(type = "DirectLink", bindings = { "listener=ognl:listeners.onTabClicked", "parameters=ognl:tab.id" }) public abstract DirectLink getTabLink(); @Component(type = "Insert", bindings = { "value=ognl:page.getMessage(tab.title)" }) pu

Re: component-writing question

2006-04-09 Thread Andreas Bulling
On 09. Apr 2006 - 10:33:22, Mark Arnold wrote: | Hey Andreas, | | I'm just starting off with Tapestry, so I don't know too much about it | yet, but I just came accross the Delegator-Component after I read this | thread 30 minutes ago. | Maybe that hleps you with your problem. Here is the descrip

Re: component-writing question

2006-04-09 Thread Mark Arnold
Hey Andreas, I'm just starting off with Tapestry, so I don't know too much about it yet, but I just came accross the Delegator-Component after I read this thread 30 minutes ago. Maybe that hleps you with your problem. Here is the description for it: "A component which delegates its behavior (t

Re: component-writing question

2006-04-09 Thread Sam Gendler
Incidentally, another strategy for mixing an html template with direct java output would be to use an @Insert element that calls a method that returns the necessary string. That would allow you to call into multiple methods at various locations during the template rendering. I'm afraid I don't kn

Re: component-writing question

2006-04-09 Thread Andreas Bulling
On 09. Apr 2006 - 12:48:30, Mike Snare wrote: | Take a look at the Table and/or TableView components, as well as the | Palette components. They both allow the user of the component to | specify the css class for different elements in the component, and | images (Palette) that should be used to ren

Re: component-writing question

2006-04-09 Thread Mike Snare
Take a look at the Table and/or TableView components, as well as the Palette components. They both allow the user of the component to specify the css class for different elements in the component, and images (Palette) that should be used to render certain things like the move left/right buttons.

Re: component-writing question

2006-04-09 Thread Andreas Bulling
On 09. Apr 2006 - 12:40:47, Mike Snare wrote: | Nope. The user can just pass in classes for the borders, etc as they | see fit. You just use the value of the parameter as you need to. Sorry, thanks for your answer but I don't understand this... --

Re: component-writing question

2006-04-09 Thread Mike Snare
Nope. The user can just pass in classes for the borders, etc as they see fit. You just use the value of the parameter as you need to. On 4/9/06, Andreas Bulling <[EMAIL PROTECTED]> wrote: > On 09. Apr 2006 - 12:11:40, James Carman wrote: > | Well, the question needs to be asked. Why exactly do

Re: component-writing question

2006-04-09 Thread Andreas Bulling
On 09. Apr 2006 - 12:11:40, James Carman wrote: | Well, the question needs to be asked. Why exactly do you *have* to do all | the output in Java if you're rendering HTML? Well, that's related to the question I asked two weeks ago on this list I didn't get an answer for so far... The question was

RE: component-writing question

2006-04-09 Thread James Carman
Well, the question needs to be asked. Why exactly do you *have* to do all the output in Java if you're rendering HTML? -Original Message- From: Andreas Bulling [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Bulling Sent: Sunday, April 09, 2006 11:41 AM To: Tapestry users Subject: compone