[T 5.1] Problem with: Block parameters are only allowed directly within component elements

2009-06-04 Thread Stefan Esterer

Hi List...

I just switched from Tapestry 5.0.18 to Tapestry 5.1.0.5 and I'm
experiencing a problem with the IF component. 
I'm not quite sure if this is a bug or feature, so please enlighten me *g*

For demonstration I just use the tutorial IF example
(http://tapestry.apache.org/tapestry5.1/tapestry-core/ref/org/apache/tapestry5/corelib/components/If.html).
 
It looks like this


Welcome back, ${user.firstName}

Login /
Register



This works perfectly fine. Only if I add a additional  I get a problem.


Welcome back, ${user.firstName}

  
 Login /
 Register
 



Using the template with the additional  I get this exception:

java.lang.RuntimeException
Block parameters are only allowed directly within component elements.

Is this a design decision or a bug?

Thx for your help
Stefan Esterer
-- 
View this message in context: 
http://www.nabble.com/-T-5.1--Problem-with%3A-Block-parameters-are-only-allowed-directly-within-component-elements-tp23865519p23865519.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Tacos-like AJAX effects in Tapestry 4.1

2007-02-08 Thread Stefan Esterer

if i had to implement such effects, i would use
http://script.aculo.us/
a neat javascript library which does such things for you...

greetings
stefan


Daniel Tabuenca wrote:
> 
> Is there a way to add rendering effects such as fade in and fade out
> with standard Tapestry 4.1 like you could in Tacos with the preEffects
> and postEffects parameters? If not, where would I find information on
> how to implement this?
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tacos-like-AJAX-effects-in-Tapestry-4.1-tf3183712.html#a8862150
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T4.1.1 Client-side validation problems

2007-01-12 Thread Stefan Esterer

Can you post your script, page and html file so we can study it?


Jim Downing-2 wrote:
> 
> Can anyone help me to get client-side validation working?
> 
> I've enabled client side validation on my form component, and used a 
> ScriptIncludes component to load the dojo components, but now whenever I 
> submit the form (whether or not there are any invalid inputs) the 
> following message is appended in a div at the end of the document: -
> 
> ERROR: 12:03:28: Error validating TypeError : value has no properties : 
> http://localhost:8084/spectrasub/submission?service=asset&path=%2Fdojo%2Fdojo.js
>  
> : line 24
> 
> Any ideas what gives?
> 
> thanks,
> jim
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T4.1.1-Client-side-validation-problems-tf2952160.html#a8296253
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Client Side Validation: Custom Validation Function

2007-01-12 Thread Stefan Esterer

Hi all...

I have a question concerning the creation of a custom client side validation
Javascript function.. I used this page
http://tapestry.apache.org/tapestry4.1/javascript/form.html to inform
myself.

I'm also able to bind my custom function as a constraint, but I have two
questions:

In the tutorial a function should be binded like this
field_name1: myValidationFunction
But how can I access in this function the value of the fieldname? 
I'm using my function in this way
field_name1: myValidationFunction,field
In this way i have a function myValidationFunction(field) and with the
variable field i can access the content of the field. is this the correct
way?

the other question is, how can i send a plain string object to my function?
if I have the binding like this
field_name1: myValidationFunction,"true"and the definition of the
function like this myValidationFunction(bool) 
Then the content of bool is alway "1" ... Do I miss something?

thx for your help
stefan
-- 
View this message in context: 
http://www.nabble.com/Client-Side-Validation%3A-Custom-Validation-Function-tf2965263.html#a8296244
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tapestry 4.1.1: incorrect dojoPath, tapestryPath - session id is appended

2007-01-04 Thread Stefan Esterer

I'm having the same problems with the snapshots..

Did you find the problem?

thx
stefan


Anna Vo wrote:
> 
> A little while ago I had posted this error, which occurs the first time
> our site is loaded:
> 
> Could not load 'dojo.logging.Logger'; last tried '__package__.js'
> dojo.js;jsessioni... (line 14)
> Could not load 'tapestry.namespace'; last tried '/__package__.js'
> dojo.js;jsessioni... (line 14)
> [Exception... "'Error: Could not load 'tapestry.form'; last tried
> '/__package__.js'' when calling method:
> [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c
> (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "" data: no]
> 
> 
> Upon further investigation we found that these errors occurred because
> the paths were generated with the session appended to our path like so:
> 
> 
> dojo.registerModulePath("tapestry",
> "/assets/d431c0b6798a8384233a1c5202c55e26/tapestry");
> 
> 
> /assets/static/tapestry/;jsessionid=3ju0baj5pbt8g/namespace.js
> 
> 
> We traced it to the EngineServiceLink and this bit of code:
> 
> // TODO: This is somewhat questionable right now, was added in to
> support TAPESTRY-802
> if (_cycle != null)
> result = _cycle.encodeURL(result);
> return result;
> 
> 
> We searched around for a bit and found this link which seems very
> similar to our issue: http://issues.apache.org/jira/browse/TAPESTRY-950
> 
> It looks like this issue was fixed. Just wondering if there is something
> we are missing? We are using Tapestry 4.1.1. We worked around it by
> overriding the AjaxShellDelegate and specifying the dojoPath and
> tapestryPath. 
> 
> 
> Anna
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tapestry-4.1.1%3A-incorrect-dojoPath%2C-tapestryPath---session-id-is-appended-tf2914703.html#a8156015
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Asynchronous Selection Boxes work with Firefox 2.0 but not with Internet Explorer 6/7

2006-12-28 Thread Stefan Esterer


Do you need more information posted on the jira bug?

greetings
stefon


Stefan Esterer wrote:
> 
> Hi again..
> 
> I have a problem with selectionboxes which are dependent from one another
> and are changend asynchron on selection.
> 
> In Firefox 2 this is working with no problems.
> Internet Explorer 6 and 7 are first showing an empty selection box and
> then an exception.
> 
> I have created a JIRA entry with attached files. 
> https://issues.apache.org/jira/browse/TAPESTRY-1206
> 
> I hope somebody could help with this
> 
> thx 
> stefon
> 

-- 
View this message in context: 
http://www.nabble.com/Asynchronous-Selection-Boxes-work-with-Firefox-2.0-but-not-with-Internet-Explorer-6-7-tf2865941.html#a8072772
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Asynchronous Selection Boxes work with Firefox 2.0 but not with Internet Explorer 6/7

2006-12-21 Thread Stefan Esterer

Hi again..

I have a problem with selectionboxes which are dependent from one another
and are changend asynchron on selection.

In Firefox 2 this is working with no problems.
Internet Explorer 6 and 7 are first showing an empty selection box and then
an exception.

I have created a JIRA entry with attached files. 
https://issues.apache.org/jira/browse/TAPESTRY-1206

I hope somebody could help with this

thx 
stefon
-- 
View this message in context: 
http://www.nabble.com/Asynchronous-Selection-Boxes-work-with-Firefox-2.0-but-not-with-Internet-Explorer-6-7-tf2865941.html#a8009105
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: need "please wait" notice for slow loading pages

2006-12-07 Thread Stefan Esterer

Hi!

thx for your helpful description!
if you cound create a little simple example it would be great.

thx for your effort
stefan


Marilen Corciovei wrote:
> 
> The concept is simple. You have 2 pages. The one from which you go and
> the one which is supposed to follow which is rather slow. The first page
> contains a hidden div which gets visible when the user submits the form.
> This div is the one which you see with the animated gif. When the slow
> page has finished it's load it will replace the first page. This is
> based on the fact that the browser will keep the old page until the new
> one is loaded.
> 
>   listener="ognl:listeners.validateAction"
>  value="message:validate"
>  onClick="doWait(this, false);"
> />
> 
> The doWait just shows the hidden div/iframe. The only complicated part
> was to make the div/iframe about the combo boxes. If this is what you
> need I could create a working simple example.
> 
> Len 
> www.len.ro
> 
> 
> On Thu, 2006-12-07 at 01:24 -0800, Stefan Esterer wrote:
> 
>> Hi..
>> 
>> and how did you get this working?
>> 
>> thx
>> stefan
>> 
>> 
>> Marilen Corciovei wrote:
>> > 
>> > I implemented something js based here: http://www.resa-air.com/a5/be
>> > while wanting for the flights results to come up. 
>> > 
>> > Len
>> > www.len.ro
>> > 
>> > On Wed, 2006-12-06 at 13:07 -0800, Sam Gendler wrote:
>> > 
>> >> Does anyone have a mechanism for displaying some kind of please wait
>> >> mechanism while waiting for a slow loading page to be rendered?  I can
>> >> think of a couple of potential solutions:
>> >> 
>> >> 1.  Submit form, have listener send to a please wait page which does
>> >> nothing but send another request which will actually load the page in
>> >> question.  The problems with this include pages that require lots of
>> >> data in the form submission.  I'd have to stick it in the session or
>> >> throw it in a hidden form.  If it is a lot of data, it could be quite
>> >> slow.  No control over when the browser stops displaying the message -
>> >> usually first byte in.  If there is network latency, that could still
>> >> leave several seconds without the message in view.
>> >> 
>> >> 2.  If Tapestry supports it, I can render the header of the page,
>> >> including a div that says please wait, then flush to the browser
>> >> before initializing the model.  At the end of the page, render some js
>> >> that will hide the div.  Only problem here is flushing before the page
>> >> is completely rendered.  Is this possible in Tapestry?
>> >> 
>> >> Note: I cannot use an ajax update of the entire page and use the
>> >> effects available in an AjaxForm to render the message.  At least, I
>> >> don't think I can.  I haven't done an analysis of the pages in
>> >> question, but I'd really prefer top have my solution work on any page,
>> >> rather than just on ajax-y ones.  It would, however, be nice to have a
>> >> solution which looks the same whether dong an ajax update (using
>> >> preEffect and effect) and when doing a full page reload after a normal
>> >> POST.
>> >> 
>> >> Thanks
>> >> 
>> >> --sam
>> >> 
>> >> -
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >> 
>> > 
>> > 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/need-%22please-wait%22-notice-for-slow-loading-pages-tf2770707.html#a7736096
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: need "please wait" notice for slow loading pages

2006-12-07 Thread Stefan Esterer

Hi..

and how did you get this working?

thx
stefan


Marilen Corciovei wrote:
> 
> I implemented something js based here: http://www.resa-air.com/a5/be
> while wanting for the flights results to come up. 
> 
> Len
> www.len.ro
> 
> On Wed, 2006-12-06 at 13:07 -0800, Sam Gendler wrote:
> 
>> Does anyone have a mechanism for displaying some kind of please wait
>> mechanism while waiting for a slow loading page to be rendered?  I can
>> think of a couple of potential solutions:
>> 
>> 1.  Submit form, have listener send to a please wait page which does
>> nothing but send another request which will actually load the page in
>> question.  The problems with this include pages that require lots of
>> data in the form submission.  I'd have to stick it in the session or
>> throw it in a hidden form.  If it is a lot of data, it could be quite
>> slow.  No control over when the browser stops displaying the message -
>> usually first byte in.  If there is network latency, that could still
>> leave several seconds without the message in view.
>> 
>> 2.  If Tapestry supports it, I can render the header of the page,
>> including a div that says please wait, then flush to the browser
>> before initializing the model.  At the end of the page, render some js
>> that will hide the div.  Only problem here is flushing before the page
>> is completely rendered.  Is this possible in Tapestry?
>> 
>> Note: I cannot use an ajax update of the entire page and use the
>> effects available in an AjaxForm to render the message.  At least, I
>> don't think I can.  I haven't done an analysis of the pages in
>> question, but I'd really prefer top have my solution work on any page,
>> rather than just on ajax-y ones.  It would, however, be nice to have a
>> solution which looks the same whether dong an ajax update (using
>> preEffect and effect) and when doing a full page reload after a normal
>> POST.
>> 
>> Thanks
>> 
>> --sam
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/need-%22please-wait%22-notice-for-slow-loading-pages-tf2770707.html#a7735720
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Injecting hivemind properties into spring beans

2006-12-07 Thread Stefan Esterer

Hi guys...

My goal would be to be able to define a bean in the spring config file like
this:

Code:






In this property class i would habe a setMessages(Messages messages). This
would help me to localize my PropertySelections...

Is there a way to get the messages object of tapestry into a spring bean?
Or is there another way to be able to localize property selections?!

thx
Stefan 
-- 
View this message in context: 
http://www.nabble.com/Injecting-hivemind-properties-into-spring-beans-tf2773128.html#a7735411
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tapestry-testng 1.0.0 SNAPSHOT source code

2006-11-24 Thread Stefan Esterer

hi,

a small little example how to use tapestry-testng would be really great!
i would help if I get one running...

thx for your great work
stefon



KEGan wrote:
> 
> Hi,
> 
> Anyone knows where I can get the source code for
> tapestry-testng-1.0.0-20060919.184624-2.zip ?? This is the lastest release
> right ? I search in JavaForge, but no luck.
> 
> BTW, anyone has reference to examples of using tapestry-testng. I know
> there
> are abundance of this is Tapestry internal unit test, but it hard to
> understand (for me), and the example is not testing 'real' tapestry pages
> as
> in everyday use.
> 
> Thanks.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/tapestry-testng-1.0.0-SNAPSHOT-source-code-tf2690407.html#a7526413
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tapestry Dialog Component Problem 4.1.1

2006-11-21 Thread Stefan Esterer

Hello Peter,

thanks for your hint! That was the problem.

I hadn't bound the parameter hidden, but when I bound it to an abstract
property it works!

thx Christine



Peter Beshai wrote:
> 
>>Binding for parameter hidden
> (ExpressionBinding[frontend/Taetigkeitserfassung true]) may not be
> updated.
> 
> Generally when that happens, it means that you have bound a constant to
> the 
> parameter hidden when you defined the component. Try binding hidden to a 
> property instead.
> 
> For instance
> @Component(bindings={"hidden=true"}) would give that error, but
> @Component(bindings={"hidden=dialogHidden"}) along with a public abstract 
> boolean getDialogHidden() / public abstract void setDialogHidden(boolean 
> hidden) may work.
> 
> If you haven't bound the hidden parameter, then I have no idea :-)
> 
> 
> --
> Peter Beshai - Using Tapestry 4.1.1
> 
> Pure Mathematics Student
> University of Waterloo
> 
> 
> 
> 
> 
>>From: Tine <[EMAIL PROTECTED]>
>>Reply-To: "Tapestry users" 
>>To: users@tapestry.apache.org
>>Subject: Tapestry Dialog Component Problem 4.1.1
>>Date: Fri, 17 Nov 2006 02:15:19 -0800 (PST)
>>
>>
>>Hi Guys...
>>
>>I try to use the new Dialog component.
>>I have a directLink which binds to this methood:
>>
>>public void editTime(){
>>  Dialog dialog = ((Dialog)getComponent("addTimeDialog"));
>>  dialog.show();
>>  }
>>
>>The dialog.show() execution results in this exception:
>>"
>>Exception invoking listener method editTime of component
>>frontend/Taetigkeitserfassung: Binding for parameter hidden
>>(ExpressionBinding[frontend/Taetigkeitserfassung true]) may not be
updated.
>>"
>>
>>Do I miss something or is there a bug in the current snapshot?
>>Sadly the documentation of this component is not ready at this time.
>>So any hint would be very appreciated!
>>
>>thx
>>Tine
>>--
>>View this message in context: 
>>http://www.nabble.com/Tapestry-Dialog-Component-Problem-4.1.1-tf2650605.html#a7396866
>>Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
> 
> _
> Achetez ce que vous voulez, quand vous voulez sur Sympatico / MSN
> Magasiner 
> http://magasiner.sympatico.msn.ca/content/shp/?ctId=101,ptnrid=176,ptnrdata=081805
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tapestry-Dialog-Component-Problem-4.1.1-tf2650605.html#a7438881
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tapestry Dialog Component Problem 4.1.1

2006-11-17 Thread Stefan Esterer

Hi..

I have a similar problem.. can anybody lend us a helping hand?

greetz
Stefon


Tine wrote:
> 
> Hi Guys...
> 
> I try to use the new Dialog component.
> I have a directLink which binds to this methood:
> 
> public void editTime(){
>   Dialog dialog = ((Dialog)getComponent("addTimeDialog"));
>   dialog.show();
>   }
> 
> The dialog.show() execution results in this exception:
> "
> Exception invoking listener method editTime of component
> frontend/Taetigkeitserfassung: Binding for parameter hidden
> (ExpressionBinding[frontend/Taetigkeitserfassung true]) may not be
> updated.
> "
> 
> Do I miss something or is there a bug in the current snapshot? 
> Sadly the documentation of this component is not ready at this time.
> So any hint would be very appreciated!
> 
> thx
> Tine
> 

-- 
View this message in context: 
http://www.nabble.com/Tapestry-Dialog-Component-Problem-4.1.1-tf2650605.html#a7402522
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]