Re: tacos tree

2007-02-08 Thread Norbert Sándor

It seems I was to tired to do anything :)
Thanks!
Norbi

andyhot írta:

Norbert Sándor wrote:

Hello!


So, you've never used tacos in tap 4.0 ?

http://tacos.sourceforge.net/components/Tree.html

See the state parameter.

How can I specify the state of the tree (set of expanded/collapsed 
nodes)?

I don't find such parameter...

Thanks!
Norbi

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







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



Re: Debugging dojo.js

2007-02-08 Thread andyhot

Your @Shell component includes that.
http://tapestry.apache.org/tapestry4.1/components/general/shell.html

See the dojoSource parameter and use the following asset for it:
classpath:/dojo/dojo.js.uncompressed.js


Daniel Tabuenca wrote:

Is there a way to make dojo.js more human-readable? I know it's
compressed that way for more efficient network usage, but is there a
way to disable or use the original .js files when we need to debug?
For example, if I want to debug tapestry.form code?

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





--
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting 



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



Debugging dojo.js

2007-02-08 Thread Daniel Tabuenca

Is there a way to make dojo.js more human-readable? I know it's
compressed that way for more efficient network usage, but is there a
way to disable or use the original .js files when we need to debug?
For example, if I want to debug tapestry.form code?

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



Re: Tap 4.1.1 Cancel button not Async?

2007-02-08 Thread Daniel Tabuenca

Hi Jesse,

I have the same problem with refresh. I was looking at the link you
sent and notice that the signatures for cancel and refresh are both:

refresh:function(form, submitName)
and
cancel:function(form, submitName)

while the submit function is:

submit:function(form, submitName, parms)

The javascript call on my submit button is:

tapestry.form.cancel('Form','Submit_0',{"async":true,"json":false,"url":"/MyPage,$Component.$Form.sdirect?state:=BrO0ABXcPAQAACG1vZHVsZUlkc3IADmphdmEubGFuZy5Mb25nO4vkkMyPI98CAAFKAAV2YWx1ZXhyABBqYXZhLmxhbmcuTnVtYmVyhqyVHQuU4IsCAAB4cD5FVuANcyrP"})"


As you can see the call to cancel includes three parameters but the
cancel function defines only two and calls the submit function with
only two parameters. I'm not a javascript expert and have never used
it extensively, but it seems to me both cancel and refresh should take
three parameters and pass the third parameter on to submit. It would
make sense that my request is not being don asynchronously since the
third parameter is the one that instructs it to do it asynchronously.
Am I on the right track? Is this a bug? Or am I not understanding the
javascript correctly?


On 2/8/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:

I would look at the functions here:

http://tapestry.apache.org/tapestry4.1/javascript/form.html

That page also provides handy links to online source views of the
files they document so it should be easy to use as a reference.

On 2/8/07, Daniel Tabuenca <[EMAIL PROTECTED]> wrote:
> Any tips on how to debug this on the client side? I can use firebug,
> but where do I break to see where the decision is made to not do it
> via an ajax request?
>
>
> On 2/8/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
> > None. Maybe an unfortunate combination of the form and submit button
> > being async ? (potential bug , not sure)
> >
> > On 2/7/07, Daniel Tabuenca <[EMAIL PROTECTED]> wrote:
> > > I have a simple form:
> > >
> > >  > > listener="listener:submit" cancel="listener:cancel">
> > >
> > > with a simple cancel button:
> > >
> > > 
> > >
> > >
> > > When it renders the page tapestry generates:
> > >
> > >  > > 
onclick="tapestry.form.cancel('Form','Submit_0',{"async":true,"json":false,"url":"/residency/residency/html/Login,$PasswordRecover.$Form.sdirect?state:residency/html/Login=BrO0ABXcPAQAACG1vZHVsZUlkc3IADmphdmEubGFuZy5Mb25nO4vkkMyPI98CAAFKAAV2YWx1ZXhyABBqYXZhLmxhbmcuTnVtYmVyhqyVHQuU4IsCAAB4cDsrzkil5pr3"})"
> > > value="Cancel" id="Submit_0" name="Submit_0"/>
> > >
> > > However.. this seems to not be donde throuh an asynchronous request
> > > and the entire page loads. Any ideas why this could be happening?
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > Jesse Kuhnert
> > Tapestry/Dojo team member/developer
> >
> > Open source based consulting work centered around
> > dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

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




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



Re: @EventListener and unrendered components.

2007-02-08 Thread Daniel Tabuenca

Ok, I'll try to get an example up on the jira that demostrates this.

On 2/8/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:

AhThat is the bread & butter sort of logic I use often as well.
I'd need a specific example of how it's not working to be more
helpful. (preferrably in JIRA, most time spent on the list is fun
"talking time" whereas actually sitting down and fixing things is
reserved for fun "jira time" . ;) )

On 2/8/07, Daniel Tabuenca <[EMAIL PROTECTED]> wrote:
> Well Simply put... something like...  (in pseudo tapestry tags... hehe)
>
> 
>
> <@If condition=true >
>   
> 
>
> <@Else>
>  content..
> 
>
> 
>
>
>
> On 2/8/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
> > Ah...I guess that depends on how something is "conditionally"
> > rendered. If the renderComponent() method gets called on it and
> > Tapestry thinks you want it to get updated it'll happen.
> >
> > Need more info on how it's being conditionally rendered.
> >
> > On 2/7/07, Daniel Tabuenca <[EMAIL PROTECTED]> wrote:
> > > I'm trying out the new Tapestry 4.1.1 @EventListener annotation and it
> > > works great, except that if the event is on a component that is
> > > conditionally rendered, it breaks with the following error:
> > >
> > > FATAL exception raised: bad srcObj for srcFunc: onclick
> > >
> > > This is understandable since dojo cannot connect the requested event
> > > because the element does not exist.
> > >
> > > Is there a way to deal with this? Or should event listeners not be
> > > used with conditionally rendered components? Is there away to
> > > conditionally enable/disable EventListeners?
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > Jesse Kuhnert
> > Tapestry/Dojo team member/developer
> >
> > Open source based consulting work centered around
> > dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

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




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



Re: Tapestry 4.1.1 async and RedirectException

2007-02-08 Thread Jesse Kuhnert

Ehh...No not really. I mean it is sort of, which is what it should be
doing. Of course I don't have a remote debugger hooked up to your
machine so I can't decipher what isn't working for you.

On 2/8/07, Daniel Tabuenca <[EMAIL PROTECTED]> wrote:

Well... didn't work for me. I got the new page as part of the response
but it didn't render anywhere (just saw it in firebug). Is it possible
to send some sort of javascript to actually redirect the browser to a
new page? That is I don't want to send the new content and replace
the old one with javascript magic I simply want to send the url
and have the browser go to it... is this possible?


On 2/8/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
> It works...But not in the same way tacos does it and it's "not
> reccomended". I only added it in there so that people wouldn't get
> tripped up when it happened. (myself included ;) )
>
> If it works then consider yourself lucky.  (it does work of course,
> but it's questionable how well the page you get redirected to will be
> working )
>
> On 2/8/07, Daniel Tabuenca <[EMAIL PROTECTED]> wrote:
> > Does Tapestry 4.1.1 handle RedirectExceptions in ajax responses? I
> > remember Tacos intercepted them and generate javascript in the
> > response to do the actual re-direction. Is this implemented in
> > Tapestry? How do I do this?
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Jesse Kuhnert
> Tapestry/Dojo team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

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



Re: @EventListener and unrendered components.

2007-02-08 Thread Jesse Kuhnert

AhThat is the bread & butter sort of logic I use often as well.
I'd need a specific example of how it's not working to be more
helpful. (preferrably in JIRA, most time spent on the list is fun
"talking time" whereas actually sitting down and fixing things is
reserved for fun "jira time" . ;) )

On 2/8/07, Daniel Tabuenca <[EMAIL PROTECTED]> wrote:

Well Simply put... something like...  (in pseudo tapestry tags... hehe)



<@If condition=true >
  


<@Else>
 content..






On 2/8/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
> Ah...I guess that depends on how something is "conditionally"
> rendered. If the renderComponent() method gets called on it and
> Tapestry thinks you want it to get updated it'll happen.
>
> Need more info on how it's being conditionally rendered.
>
> On 2/7/07, Daniel Tabuenca <[EMAIL PROTECTED]> wrote:
> > I'm trying out the new Tapestry 4.1.1 @EventListener annotation and it
> > works great, except that if the event is on a component that is
> > conditionally rendered, it breaks with the following error:
> >
> > FATAL exception raised: bad srcObj for srcFunc: onclick
> >
> > This is understandable since dojo cannot connect the requested event
> > because the element does not exist.
> >
> > Is there a way to deal with this? Or should event listeners not be
> > used with conditionally rendered components? Is there away to
> > conditionally enable/disable EventListeners?
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Jesse Kuhnert
> Tapestry/Dojo team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

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



Re: Tap 4.1.1 Cancel button not Async?

2007-02-08 Thread Jesse Kuhnert

I would look at the functions here:

http://tapestry.apache.org/tapestry4.1/javascript/form.html

That page also provides handy links to online source views of the
files they document so it should be easy to use as a reference.

On 2/8/07, Daniel Tabuenca <[EMAIL PROTECTED]> wrote:

Any tips on how to debug this on the client side? I can use firebug,
but where do I break to see where the decision is made to not do it
via an ajax request?


On 2/8/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
> None. Maybe an unfortunate combination of the form and submit button
> being async ? (potential bug , not sure)
>
> On 2/7/07, Daniel Tabuenca <[EMAIL PROTECTED]> wrote:
> > I have a simple form:
> >
> >  > listener="listener:submit" cancel="listener:cancel">
> >
> > with a simple cancel button:
> >
> > 
> >
> >
> > When it renders the page tapestry generates:
> >
> >  > 
onclick="tapestry.form.cancel('Form','Submit_0',{"async":true,"json":false,"url":"/residency/residency/html/Login,$PasswordRecover.$Form.sdirect?state:residency/html/Login=BrO0ABXcPAQAACG1vZHVsZUlkc3IADmphdmEubGFuZy5Mb25nO4vkkMyPI98CAAFKAAV2YWx1ZXhyABBqYXZhLmxhbmcuTnVtYmVyhqyVHQuU4IsCAAB4cDsrzkil5pr3"})"
> > value="Cancel" id="Submit_0" name="Submit_0"/>
> >
> > However.. this seems to not be donde throuh an asynchronous request
> > and the entire page loads. Any ideas why this could be happening?
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Jesse Kuhnert
> Tapestry/Dojo team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

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



Re: Autocompleter and Dialog

2007-02-08 Thread Jesse Kuhnert

It's a bug if that's the case. I'd like all components to work under
any combination of situations people want so it'd be easy to qualify
it as a bug..

On 2/8/07, Jeremy F. Kassis <[EMAIL PROTECTED]> wrote:


I'm having the same problem. I looked into this once. It has something to do
with how the Dialog component works. It actually copies the DOM tree of the
elements within the Dialog into a DOM island that it stuffs under the window
or document object I think. So, basically, the Input element within your
form isn't the same input element that the autocompleter attached to. I may
look further at how to handle this, but it ain't trivial.

Here's what I'm thinking of...

Add a dojo listener to the show() method of the dialog that contains the
autocompleter.

Use tapestry.widget.synchronizeWidgetState("tagAutoCompleter", "Select",
tagAutoCompleter, true); to recreate the widget.




VitalyA wrote:
>
> Hi all,
> I use Tapestry 4.1.2 snapshot.
> Can I use together Dialog and Autocompleter components?
> I want to open Dialog which contains Autocompleter.
> Currently it doesn't work, Autocompleter rendered without options.
>Thanks in advance,
> Vitaly
>

--
View this message in context: 
http://www.nabble.com/Autocompleter-and-Dialog-tf2879504.html#a8878447
Sent from the Tapestry - User mailing list archive at Nabble.com.


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





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

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



Re: Scroll position to bottom after Ajax Response (T 4.1.2) - Hopefully easy answer

2007-02-08 Thread Jesse Kuhnert

Something like this:  http://www.javascriptkit.com/javatutors/advwin3.shtml

This seems like something the framework should do somehow...Maybe not though.

Either way it's very easy to add some javascript manually via java:

http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/services/ResponseBuilder.html

You'll notice that ResponseBuilder now implements
PageRenderSupport/ScriptProcessor - which are the main sort of
javascript processing interfaces for Tapestry traditionally...I guess
add something via

ResponseBuilder.addBodyScript(this/** this being your component, helps
the ajax processing */, "string of javascript stuff" );

On 2/8/07, Leffel, Daniel <[EMAIL PROTECTED]> wrote:

Hi all,
Hopefully easy question. I've built a little chat interface. After
submitting a chat message, the response builder returns the div to the
top scroll position. How can I reset the scroll position to the bottom
after the update.

I thought I could use something like:
var objDiv = document.getElementById("divExample");
objDiv.scrollTop = objDiv.scrollHeight;


Which component and which event do I attach to though? Is there a better
way (i.e. setting the property within the Java code instead -I'd prefer
to control it there)?

Danny

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





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

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



Re: Tapestry 4.1.1 async and RedirectException

2007-02-08 Thread Daniel Tabuenca

Well... didn't work for me. I got the new page as part of the response
but it didn't render anywhere (just saw it in firebug). Is it possible
to send some sort of javascript to actually redirect the browser to a
new page? That is I don't want to send the new content and replace
the old one with javascript magic I simply want to send the url
and have the browser go to it... is this possible?


On 2/8/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:

It works...But not in the same way tacos does it and it's "not
reccomended". I only added it in there so that people wouldn't get
tripped up when it happened. (myself included ;) )

If it works then consider yourself lucky.  (it does work of course,
but it's questionable how well the page you get redirected to will be
working )

On 2/8/07, Daniel Tabuenca <[EMAIL PROTECTED]> wrote:
> Does Tapestry 4.1.1 handle RedirectExceptions in ajax responses? I
> remember Tacos intercepted them and generate javascript in the
> response to do the actual re-direction. Is this implemented in
> Tapestry? How do I do this?
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

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




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



Re: @EventListener and unrendered components.

2007-02-08 Thread Daniel Tabuenca

Well Simply put... something like...  (in pseudo tapestry tags... hehe)



<@If condition=true >
 


<@Else>
content..






On 2/8/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:

Ah...I guess that depends on how something is "conditionally"
rendered. If the renderComponent() method gets called on it and
Tapestry thinks you want it to get updated it'll happen.

Need more info on how it's being conditionally rendered.

On 2/7/07, Daniel Tabuenca <[EMAIL PROTECTED]> wrote:
> I'm trying out the new Tapestry 4.1.1 @EventListener annotation and it
> works great, except that if the event is on a component that is
> conditionally rendered, it breaks with the following error:
>
> FATAL exception raised: bad srcObj for srcFunc: onclick
>
> This is understandable since dojo cannot connect the requested event
> because the element does not exist.
>
> Is there a way to deal with this? Or should event listeners not be
> used with conditionally rendered components? Is there away to
> conditionally enable/disable EventListeners?
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

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




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



Re: Directlink, works in ie thought not firefox?

2007-02-08 Thread Daniel Tabuenca

Strange. When I see errors like this the first thing I typically think
is weird errors in your javascript or non-standard html. I used to run
into strange bugs before because of doing non-standard html such as
writing  rather than . Always use firebug or some
other development verification tool to verify that your
html/css/javascript etc... are valid, especially if things work in one
browser but not another.


On 2/8/07, Josh Joy <[EMAIL PROTECTED]> wrote:

Hi,

I checked my tomcat configuration, and on the box I
had tomcat 5
installed rather than tomcat 5.5
After reinstalling, the problem disappeared.

Thanks,
Josh

Josh Joy wrote:
> Hi All,
>
> I'm having an odd situation pop up...I have a page
> which has several
> directlinks on it. The page shows search results,
and
> the directlinks
> are basically new query terms, ie will basically
link
> back to the same
> page just different data. Each of these directlinks
> invoke a listener
> and pass a parameter to it.
>
> The issue I'm seeing, is that on the initial page
> load, all the
> directlinks seems to be working. However, only in
> firefox, when I click
> the directlink again, the listener is not invoked (I
> also added debug
> statements to the method and see no entry) and all I
> see instead is a
> blank html page. Though, when I do this in Internet
> Explorer, everything
> works fine. Has anyone seen anything like this? The
> only thing I can
> think of is that my URL is too long and firefox
can't
> handle it and ie
> can? Though when I look at the url on the initial
page
> load and
> subsequent hits, it seems to be the exact same?
>
> Thanks in advance,
> Josh
>
>
-
> To unsubscribe, e-mail:
[EMAIL PROTECTED]
> For additional commands, e-mail:
[EMAIL PROTECTED]
>
>
>
>



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




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



Re: Tapestry 4.1.1 async and RedirectException

2007-02-08 Thread Jesse Kuhnert

It works...But not in the same way tacos does it and it's "not
reccomended". I only added it in there so that people wouldn't get
tripped up when it happened. (myself included ;) )

If it works then consider yourself lucky.  (it does work of course,
but it's questionable how well the page you get redirected to will be
working )

On 2/8/07, Daniel Tabuenca <[EMAIL PROTECTED]> wrote:

Does Tapestry 4.1.1 handle RedirectExceptions in ajax responses? I
remember Tacos intercepted them and generate javascript in the
response to do the actual re-direction. Is this implemented in
Tapestry? How do I do this?

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





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

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



Re: @EventListener and unrendered components.

2007-02-08 Thread Jesse Kuhnert

Ah...I guess that depends on how something is "conditionally"
rendered. If the renderComponent() method gets called on it and
Tapestry thinks you want it to get updated it'll happen.

Need more info on how it's being conditionally rendered.

On 2/7/07, Daniel Tabuenca <[EMAIL PROTECTED]> wrote:

I'm trying out the new Tapestry 4.1.1 @EventListener annotation and it
works great, except that if the event is on a component that is
conditionally rendered, it breaks with the following error:

FATAL exception raised: bad srcObj for srcFunc: onclick

This is understandable since dojo cannot connect the requested event
because the element does not exist.

Is there a way to deal with this? Or should event listeners not be
used with conditionally rendered components? Is there away to
conditionally enable/disable EventListeners?

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





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

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



Re: Tap 4.1.1 Cancel button not Async?

2007-02-08 Thread Daniel Tabuenca

Any tips on how to debug this on the client side? I can use firebug,
but where do I break to see where the decision is made to not do it
via an ajax request?


On 2/8/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:

None. Maybe an unfortunate combination of the form and submit button
being async ? (potential bug , not sure)

On 2/7/07, Daniel Tabuenca <[EMAIL PROTECTED]> wrote:
> I have a simple form:
>
>  listener="listener:submit" cancel="listener:cancel">
>
> with a simple cancel button:
>
> 
>
>
> When it renders the page tapestry generates:
>
>  
onclick="tapestry.form.cancel('Form','Submit_0',{"async":true,"json":false,"url":"/residency/residency/html/Login,$PasswordRecover.$Form.sdirect?state:residency/html/Login=BrO0ABXcPAQAACG1vZHVsZUlkc3IADmphdmEubGFuZy5Mb25nO4vkkMyPI98CAAFKAAV2YWx1ZXhyABBqYXZhLmxhbmcuTnVtYmVyhqyVHQuU4IsCAAB4cDsrzkil5pr3"})"
> value="Cancel" id="Submit_0" name="Submit_0"/>
>
> However.. this seems to not be donde throuh an asynchronous request
> and the entire page loads. Any ideas why this could be happening?
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

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




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



Re: Web page refresh problem

2007-02-08 Thread Daniel Tabuenca

Beware, however. never use disable-caching=true in production.
Your server will blow up very quickly. I've found even during
development, reloading a complex page several times will cause memory
problems and incredibly slow speed. I'm not sure if this is still true
for 4.1.1. Luckily tapestry 5 will free us from such issues.

On 2/8/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:

Yep.

Try adding "-Dorg.apache.tapestry.disable-caching=true" to whatever
starts up your web server.
(http://tapestry.apache.org/tapestry4.1/usersguide/configuration.html
)

On 2/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am newbie to tapestry. Lately I download the tapestry and try to develop a 
test project to learn how it works. Now I encounter a problem. I think it is 
basic; but after searching around the FAQ and mail archive 
(http://mail-archives.apache.org/mod_mbox/tapestry-users/), I do not see any 
similar problem as mine. So I post it here. Hope some can give me a help.
>
> I follow the Quick Start 
(http://tapestry.apache.org/tapestry4.1/quickstart/helloworld.html) page to 
develop my test project.
>
> The problem is, after refreshing the web page, I can not see any change made 
to the Home.html, in which I add a few line of Javascript. Even a simple html tag 
(like button), it won't appear on the web page (e.g., 
http://localhost:8080/hello/app). However, there is no problem if I create another 
example.war directly without using tapestry.  For example, in example.war, I 
create a page named index.html. Then, I add a button, which would appeared after 
pressing refresh button.
>
> Is it because tapestry maintain a cache state, which might increase the speed 
of loading web pages?
>
> Environment I use is Jboss 4.0.5 GA, Debian Sarge testing, JDK1.5.x,  Firefox 
(2.0.0.1)
>
> Thanks your help.
>
> I appreciate it.
>
> Following is the content of Hello.html:
>
> 
> 
> Tutorial: Hello World
> 
>  
> 
> var request = false;
> try {
> request = new XMLHttpRequest();
> } catch (trymicrosoft) {
> /* for M$ IE */
> try {
> request = new ActiveXObject("Msxml2.XMLHTTP");
> } catch (othermicrosoft) {
> try {
> request = new ActiveXObject("Microsoft.XMLHTTP");
> } catch (failed) {
> request = false;
> }
> }
> }
> if (!request){
> alert("Error initializing XMLHttpRequest!");
> }else{
> alert("request object obtained!");//test
> }
> 
> 
> 
> Hello World Tutorial!
>
> 
> The current data and time is:
> 
> June 26 
2005
> 
> 
> 
> 
> refresh
> 
> 
> 
> 
> 
>
>
>
>
>  ___
>  您的生活即時通 - 溝通、娛樂、生活、工作一次搞定!
>  http://messenger.yahoo.com.tw/


--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com



Re: Tap 4.1.1 Cancel button not Async?

2007-02-08 Thread Jesse Kuhnert

None. Maybe an unfortunate combination of the form and submit button
being async ? (potential bug , not sure)

On 2/7/07, Daniel Tabuenca <[EMAIL PROTECTED]> wrote:

I have a simple form:



with a simple cancel button:




When it renders the page tapestry generates:



However.. this seems to not be donde throuh an asynchronous request
and the entire page loads. Any ideas why this could be happening?

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





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

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



Re: Directlink, works in ie thought not firefox?

2007-02-08 Thread Josh Joy
Hi,

I checked my tomcat configuration, and on the box I
had tomcat 5
installed rather than tomcat 5.5
After reinstalling, the problem disappeared.

Thanks,
Josh

Josh Joy wrote:
> Hi All,
>
> I'm having an odd situation pop up...I have a page
> which has several 
> directlinks on it. The page shows search results,
and
> the directlinks 
> are basically new query terms, ie will basically
link
> back to the same 
> page just different data. Each of these directlinks
> invoke a listener 
> and pass a parameter to it.
>
> The issue I'm seeing, is that on the initial page
> load, all the 
> directlinks seems to be working. However, only in
> firefox, when I click 
> the directlink again, the listener is not invoked (I
> also added debug 
> statements to the method and see no entry) and all I
> see instead is a 
> blank html page. Though, when I do this in Internet
> Explorer, everything 
> works fine. Has anyone seen anything like this? The
> only thing I can 
> think of is that my URL is too long and firefox
can't
> handle it and ie 
> can? Though when I look at the url on the initial
page
> load and 
> subsequent hits, it seems to be the exact same?
>
> Thanks in advance,
> Josh
>
>
-
> To unsubscribe, e-mail:
[EMAIL PROTECTED]
> For additional commands, e-mail:
[EMAIL PROTECTED]
>
>
>
>   



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



Re: Web page refresh problem

2007-02-08 Thread Jesse Kuhnert

Yep.

Try adding "-Dorg.apache.tapestry.disable-caching=true" to whatever
starts up your web server.
(http://tapestry.apache.org/tapestry4.1/usersguide/configuration.html
)

On 2/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Hi,

I am newbie to tapestry. Lately I download the tapestry and try to develop a 
test project to learn how it works. Now I encounter a problem. I think it is 
basic; but after searching around the FAQ and mail archive 
(http://mail-archives.apache.org/mod_mbox/tapestry-users/), I do not see any 
similar problem as mine. So I post it here. Hope some can give me a help.

I follow the Quick Start 
(http://tapestry.apache.org/tapestry4.1/quickstart/helloworld.html) page to 
develop my test project.

The problem is, after refreshing the web page, I can not see any change made to 
the Home.html, in which I add a few line of Javascript. Even a simple html tag 
(like button), it won't appear on the web page (e.g., 
http://localhost:8080/hello/app). However, there is no problem if I create 
another example.war directly without using tapestry.  For example, in 
example.war, I create a page named index.html. Then, I add a button, which 
would appeared after pressing refresh button.

Is it because tapestry maintain a cache state, which might increase the speed 
of loading web pages?

Environment I use is Jboss 4.0.5 GA, Debian Sarge testing, JDK1.5.x,  Firefox 
(2.0.0.1)

Thanks your help.

I appreciate it.

Following is the content of Hello.html:



Tutorial: Hello World

 

var request = false;
try {
request = new XMLHttpRequest();
} catch (trymicrosoft) {
/* for M$ IE */
try {
request = new ActiveXObject("Msxml2.XMLHTTP");
} catch (othermicrosoft) {
try {
request = new ActiveXObject("Microsoft.XMLHTTP");
} catch (failed) {
request = false;
}
}
}
if (!request){
alert("Error initializing XMLHttpRequest!");
}else{
alert("request object obtained!");//test
}



Hello World Tutorial!


The current data and time is:

June 26 
2005




refresh









 ___
 您的生活即時通 - 溝通、娛樂、生活、工作一次搞定!
 http://messenger.yahoo.com.tw/



--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


Re: Equivalent of this.form.events.submit() in Tap 4.1.1

2007-02-08 Thread Daniel Tabuenca

Thanks for the information. Although now I realized that an easy way
to do what I want is to simply use an EventListener to submit the form
since previously I was using it to submit the form on onChange events
on a dropdown. Now I can just put an onchange eventListener on the
dropdown component and have it submit the form.


On 2/8/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:

IComponent.getClientId() works well for every component.

You could do something like document.getElementById("") using the
value obtained from getClientId(). (or just use dojo.byId("") )

On 2/6/07, Daniel Tabuenca <[EMAIL PROTECTED]> wrote:
> I know in tapestry 4.1.1 this API changed and you have to use the
> tapestry.form.submit(formName) call. What is the easiest most
> straightforward way of getting the name of the enclosing form so that
> I can submit it?
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

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




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



Re: Equivalent of this.form.events.submit() in Tap 4.1.1

2007-02-08 Thread Jesse Kuhnert

IComponent.getClientId() works well for every component.

You could do something like document.getElementById("") using the
value obtained from getClientId(). (or just use dojo.byId("") )

On 2/6/07, Daniel Tabuenca <[EMAIL PROTECTED]> wrote:

I know in tapestry 4.1.1 this API changed and you have to use the
tapestry.form.submit(formName) call. What is the easiest most
straightforward way of getting the name of the enclosing form so that
I can submit it?

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





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

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



Re: Tap4.1.2. - @DropDownDatePicker component validation - resets to previous value for invalid dates without user awareness

2007-02-08 Thread Jesse Kuhnert

Do you mean with like with a ValidationDelegate on the form ?

Oh,..#$! ..The widget is doing that locally. Fine. I can fix that with
a local tapestry patch I guess.. (i might remember more easily with a
JIRA ticket )

On 2/6/07, Anna Vo <[EMAIL PROTECTED]> wrote:

The @DropDownDatePicker resets to the previous value if someone manually
changes the date to an invalid one, but the user is unaware of any
validation issues.

For example, we have an Expiration Date field that is set for 2/28/2007
and a user manually changes it to 2/29/2008. When they submit the form
(without focusing on the next field) the form passes validation and the
user thinks that the date they entered is fine. However, what ends up
happening is the date just reverts back to the previous value and the
user is now unaware that the changes they made on that date were
incorrect and not saved.

Is there anyway to indicate to the user that an error occurred? Thanks
in advance.


Anna

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





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

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



Re: Autocompleter and Dialog

2007-02-08 Thread Jeremy F. Kassis

I'm having the same problem. I looked into this once. It has something to do
with how the Dialog component works. It actually copies the DOM tree of the
elements within the Dialog into a DOM island that it stuffs under the window
or document object I think. So, basically, the Input element within your
form isn't the same input element that the autocompleter attached to. I may
look further at how to handle this, but it ain't trivial.

Here's what I'm thinking of...

Add a dojo listener to the show() method of the dialog that contains the
autocompleter.

Use tapestry.widget.synchronizeWidgetState("tagAutoCompleter", "Select",
tagAutoCompleter, true); to recreate the widget.




VitalyA wrote:
> 
> Hi all,
> I use Tapestry 4.1.2 snapshot.
> Can I use together Dialog and Autocompleter components?
> I want to open Dialog which contains Autocompleter.
> Currently it doesn't work, Autocompleter rendered without options.
>Thanks in advance,
> Vitaly
> 

-- 
View this message in context: 
http://www.nabble.com/Autocompleter-and-Dialog-tf2879504.html#a8878447
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Scroll position to bottom after Ajax Response (T 4.1.2) - Hopefully easy answer

2007-02-08 Thread Leffel, Daniel
Hi all,
Hopefully easy question. I've built a little chat interface. After
submitting a chat message, the response builder returns the div to the
top scroll position. How can I reset the scroll position to the bottom
after the update. 

I thought I could use something like:
var objDiv = document.getElementById("divExample");
objDiv.scrollTop = objDiv.scrollHeight;


Which component and which event do I attach to though? Is there a better
way (i.e. setting the property within the Java code instead -I'd prefer
to control it there)?

Danny

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



Re: tacos tree

2007-02-08 Thread andyhot

Norbert Sándor wrote:

Hello!


So, you've never used tacos in tap 4.0 ?

http://tacos.sourceforge.net/components/Tree.html

See the state parameter.

How can I specify the state of the tree (set of expanded/collapsed 
nodes)?

I don't find such parameter...

Thanks!
Norbi

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





--
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting 



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



tacos tree

2007-02-08 Thread Norbert Sándor

Hello!

How can I specify the state of the tree (set of expanded/collapsed nodes)?
I don't find such parameter...

Thanks!
Norbi

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



Re: tacos 4.1.0-snapshot with tapestry 4.1.1

2007-02-08 Thread andyhot

Sándor Norbert wrote:

Will this combo work?

Thanks!
Norbi

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



yes

--
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting 



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



tacos 4.1.0-snapshot with tapestry 4.1.1

2007-02-08 Thread Sándor Norbert

Will this combo work?

Thanks!
Norbi

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



disabling cookies in jetty5

2007-02-08 Thread Peter Schröder
hi there,

my question is not tapestry-related, but you might know that also:

how do i configure jetty5 to use url-rewriting instead of cookies? i am using 
the jettylauncher-plugin for eclipse and did not find any information about 
configuring...

kind regards,
peter

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



Re: Tapestry 4.1.2 Snapshot:Problem with async Form

2007-02-08 Thread Shing Hing Man
It is the missing backslash ! 
Thanks!

Shing 


--- andyhot <[EMAIL PROTECTED]> wrote:

> it's the 
> 
> try 
> 
> 
> Shing Hing Man wrote:
> > I have a Form component with parameter async=true,
> and
> > a plain html
> > submit button to submit the form. 
> > The Form parameter updateComponents is set to the
> id
> > of a piece of html code
> > that display  a value entered in the form.
> > When I click the submit button, the form is
> submitted
> > asynchronously. 
> > But the piece of html specified in the
> updateComponent
> > is not updated.
> > A debug message says  
> > WARNING: 15:11:46: No ajax-response elements
> recieved.
> >
> > But in FireBug, I get the expected response :
> >
> >
> >  html
> > PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> >
> >
> >
>
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";
> > [
> >
> > 
> >
> > ]>
> >
> >  > type="element">
> >
> >
> >
> > Your have entered : Holmer 
> >
> >  
> >
> > 
> >
> > ===
> > My Tapestry page is given below. Any help would be
> 
> > very much appreciated.
> >
> > Shing 
> >
> > ==
> > Java class : 
> >
> > public abstract class TestAjaxForm extends
> BasePage{
> > private static Logger log =
> > Logger.getLogger(TestAjaxForm.class);
> > 
> > 
> > public  abstract String getFirstName();
> > 
> > public abstract void setFirstName(String str);
> >
> >
> > public void formSubmit(IRequestCycle cycle){
> > log.info("formSubmit: " + getFirstName());
> > 
> > }
> > }
> >
> > ===
> > TestAjaxForm.page :
> >
> >   
> >
> > 
> >  >   "-//Apache Software Foundation//Tapestry
> > Specification 4.0//EN" 
> >  
> >
>
"http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";>
> >
> >
> >  > class="man.pages.ajaxform.TestAjaxForm"> 
> >
> > 
> >  > value="listener:formSubmit" />
> >  > value="ognl:{'output'}" />  
> >  > value="ognl:true"/>
> >
> > 
> > 
> > 
> >  > value="component:firstNameTF"/> 
> >
> > 
> > 
> > 
> > 
> >  > value="validators:required" />
> > 
> > 
> > 
> >   
> > 
> >
> > ===
> > TestAjaxForm.html :
> >
> > 
> >  >   title="TestAjaxForm" 
> >   ajaxEnabled="true" 
> >   browserLogLevel="DEBUG"
> >debugEnabled="true"
> >   
> debugContainerId="literal:debugContainer" >
> > TestAjaxForm
> >  
> > 
> >   
> > 
> > 
> > 
> > 
> > 
> >   First
> > Name 
> >> value=""/> 
> >  
> > 
> > 
> > 
> > 
> >
> > Your have entered :  > jwcid="@Insert" value="ognl:firstName"/> 
> >  
> > 
> > 
> >   > page="literal:Home">Home
> > 
> >   
> >
> > Home page :
> >   http://uk.geocities.com/matmsh/index.html
> >
> >
> > 
> >
>
___
> 
> > Inbox full of unwanted email? Get leading
> protection and 1GB storage with All New Yahoo! Mail.
> http://uk.docs.yahoo.com/nowyoucan.html
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> >   
> 
> 
> -- 
> Andreas Andreou - [EMAIL PROTECTED] -
> http://andyhot.di.uoa.gr
> Tapestry / Tacos developer
> Open Source / J2EE Consulting 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


Home page :
  http://uk.geocities.com/matmsh/index.html



___ 
Copy addresses and emails from any email account to Yahoo! Mail - quick, easy 
and free. http://uk.docs.yahoo.com/trueswitch2.html

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



Re: Tapestry 4.1.2 Snapshot:Problem with async Form

2007-02-08 Thread Shing Hing Man
Thanks for the suggestion!
But @Submit (or  @Submit with async="ognl:true)
does not solve the problem.

Shing 



--- Andrea Chiumenti <[EMAIL PROTECTED]> wrote:

> hi,
> try replacing
> 
> with
>  value="Submit"/>
> 
> ciao,
> kiuma
> 
> On 2/8/07, Shing Hing Man <[EMAIL PROTECTED]> wrote:
> >
> > I have a Form component with parameter async=true,
> and
> > a plain html
> > submit button to submit the form.
> > The Form parameter updateComponents is set to the
> id
> > of a piece of html code
> > that display  a value entered in the form.
> > When I click the submit button, the form is
> submitted
> > asynchronously.
> > But the piece of html specified in the
> updateComponent
> > is not updated.
> > A debug message says
> > WARNING: 15:11:46: No ajax-response elements
> recieved.
> >
> > But in FireBug, I get the expected response :
> >
> >
> >  html
> > PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> >
> >
> >
>
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";
> > [
> >
> > 
> >
> > ]>
> >
> >  > type="element">
> >
> >
> >
> > Your have entered : Holmer 
> >
> >
> >
> > 
> >
> > ===
> > My Tapestry page is given below. Any help would be
> > very much appreciated.
> >
> > Shing
> >
> > ==
> > Java class :
> >
> > public abstract class TestAjaxForm extends
> BasePage{
> > private static Logger log =
> > Logger.getLogger(TestAjaxForm.class);
> >
> >
> > public  abstract String getFirstName();
> >
> > public abstract void setFirstName(String
> str);
> >
> >
> > public void formSubmit(IRequestCycle
> cycle){
> > log.info("formSubmit: " +
> getFirstName());
> >
> > }
> > }
> >
> > ===
> > TestAjaxForm.page :
> >
> >
> >
> > 
> >  >   "-//Apache Software Foundation//Tapestry
> > Specification 4.0//EN"
> >
> >
>
"http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";>
> >
> >
> >  > class="man.pages.ajaxform.TestAjaxForm">
> >
> > 
> >  > value="listener:formSubmit" />
> >  > value="ognl:{'output'}" />
> >  name="clientValidationEnabled"
> > value="ognl:true"/>
> >
> > 
> >
> >  type="FieldLabel">
> >  > value="component:firstNameTF"/>
> >
> > 
> >
> >  type="TextField">
> >  value="literal:First
> > Name"/>
> >  > value="validators:required" />
> >  value="ognl:firstName"/>
> > 
> >
> >
> > 
> >
> > ===
> > TestAjaxForm.html :
> >
> > 
> >  >   title="TestAjaxForm"
> >   ajaxEnabled="true"
> >   browserLogLevel="DEBUG"
> >debugEnabled="true"
> >   
> debugContainerId="literal:debugContainer" >
> > TestAjaxForm
> > 
> >
> >
> > 
> >
> >
> > 
> >
> >   First
> > Name
> >> value=""/> 
> >
> >  value="Submit"/>
> > 
> >
> > 
> > condition="ognl:firstName !=
> > null" >
> > Your have entered :  > jwcid="@Insert" value="ognl:firstName"/> 
> >
> > 
> > 
> >   > page="literal:Home">Home
> > 
> >
> >
> > Home page :
> >   http://uk.geocities.com/matmsh/index.html
> >
> >
> >
> >
>
___
> > Inbox full of unwanted email? Get leading
> protection and 1GB storage with
> > All New Yahoo! Mail.
> http://uk.docs.yahoo.com/nowyoucan.html
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> 


Home page :
  http://uk.geocities.com/matmsh/index.html



 
 
Yahoo! Photos is now offering a quality print service from just 7p a photo. 
http://uk.photos.yahoo.com

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



Re: Tapestry 4.1.2 Snapshot:Problem with async Form

2007-02-08 Thread Andrea Chiumenti

:)

On 2/8/07, andyhot <[EMAIL PROTECTED]> wrote:


it's the 

try 


Shing Hing Man wrote:
> I have a Form component with parameter async=true, and
> a plain html
> submit button to submit the form.
> The Form parameter updateComponents is set to the id
> of a piece of html code
> that display  a value entered in the form.
> When I click the submit button, the form is submitted
> asynchronously.
> But the piece of html specified in the updateComponent
> is not updated.
> A debug message says
> WARNING: 15:11:46: No ajax-response elements recieved.
>
> But in FireBug, I get the expected response :
>
>
>  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>
>
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";
> [
>
> 
>
> ]>
>
>  type="element">
>
>  
>
> Your have entered : Holmer 
>
>  
>
>   
>
> ===
> My Tapestry page is given below. Any help would be
> very much appreciated.
>
> Shing
>
> ==
> Java class :
>
> public abstract class TestAjaxForm extends BasePage{
> private static Logger log =
> Logger.getLogger(TestAjaxForm.class);
>
>
> public  abstract String getFirstName();
>
>   public abstract void setFirstName(String str);
>
>
>   public void formSubmit(IRequestCycle cycle){
>   log.info("formSubmit: " + getFirstName());
>
>   }
> }
>
> ===
> TestAjaxForm.page :
>
>
>
> 
>"-//Apache Software Foundation//Tapestry
> Specification 4.0//EN"
>
> "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";>
>
>
>  class="man.pages.ajaxform.TestAjaxForm">
>
> 
>  value="listener:formSubmit" />
>value="ognl:{'output'}" />
>value="ognl:true"/>
>
> 
>
>   
>value="component:firstNameTF"/>
>
>   
>
>   
>   
>  value="validators:required" />
>   
>   
>
>
> 
>
> ===
> TestAjaxForm.html :
>
> 
>  title="TestAjaxForm"
> ajaxEnabled="true"
> browserLogLevel="DEBUG"
>debugEnabled="true"
>debugContainerId="literal:debugContainer" >
> TestAjaxForm
>  
>
>
> 
>
>
>   
>
>   First
> Name
>value=""/> 
>
>   
>   
>
> 
>  
> Your have entered :  jwcid="@Insert" value="ognl:firstName"/> 
>  
>   
>   
> page="literal:Home">Home
> 
>
>
> Home page :
>   http://uk.geocities.com/matmsh/index.html
>
>
>
> ___
> Inbox full of unwanted email? Get leading protection and 1GB storage
with All New Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>


--
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting


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




Re: Tapestry 4.1.2 Snapshot:Problem with async Form

2007-02-08 Thread andyhot

it's the 

try 


Shing Hing Man wrote:

I have a Form component with parameter async=true, and
a plain html
submit button to submit the form. 
The Form parameter updateComponents is set to the id

of a piece of html code
that display  a value entered in the form.
When I click the submit button, the form is submitted
asynchronously. 
But the piece of html specified in the updateComponent

is not updated.
A debug message says  
WARNING: 15:11:46: No ajax-response elements recieved.


But in FireBug, I get the expected response :


http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";
[



]>



   

Your have entered : Holmer 

	   	   




===
My Tapestry page is given below. Any help would be 
very much appreciated.


Shing 


==
Java class : 


public abstract class TestAjaxForm extends BasePage{
private static Logger log =
Logger.getLogger(TestAjaxForm.class);


public  abstract String getFirstName();

public abstract void setFirstName(String str);


public void formSubmit(IRequestCycle cycle){
log.info("formSubmit: " + getFirstName());

}
}

===
TestAjaxForm.page :

  



Specification 4.0//EN" 
 
"http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";>



class="man.pages.ajaxform.TestAjaxForm"> 
   


value="listener:formSubmit" />
		
value="ognl:{'output'}" /> 

   


	

value="component:firstNameTF"/> 
		   
	








  



===
TestAjaxForm.html :


	  title="TestAjaxForm" 
	  ajaxEnabled="true" 
	  browserLogLevel="DEBUG"

   debugEnabled="true"
   debugContainerId="literal:debugContainer" >
TestAjaxForm
 

  






  First
Name 
  
value=""/> 
 
		




   
Your have entered :  
	   	   
	
	

 Home

  


Home page :
  http://uk.geocities.com/matmsh/index.html



___ 
Inbox full of unwanted email? Get leading protection and 1GB storage with All New Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html


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


  



--
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting 



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



Re: Tapestry 4.1.2 Snapshot:Problem with async Form

2007-02-08 Thread Andrea Chiumenti

hi,
try replacing

with


ciao,
kiuma

On 2/8/07, Shing Hing Man <[EMAIL PROTECTED]> wrote:


I have a Form component with parameter async=true, and
a plain html
submit button to submit the form.
The Form parameter updateComponents is set to the id
of a piece of html code
that display  a value entered in the form.
When I click the submit button, the form is submitted
asynchronously.
But the piece of html specified in the updateComponent
is not updated.
A debug message says
WARNING: 15:11:46: No ajax-response elements recieved.

But in FireBug, I get the expected response :


http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";
[



]>



   

Your have entered : Holmer 

   



===
My Tapestry page is given below. Any help would be
very much appreciated.

Shing

==
Java class :

public abstract class TestAjaxForm extends BasePage{
private static Logger log =
Logger.getLogger(TestAjaxForm.class);


public  abstract String getFirstName();

public abstract void setFirstName(String str);


public void formSubmit(IRequestCycle cycle){
log.info("formSubmit: " + getFirstName());

}
}

===
TestAjaxForm.page :




http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";>








   
















===
TestAjaxForm.html :



TestAjaxForm








  First
Name
   





   
Your have entered :  
   


 Home



Home page :
  http://uk.geocities.com/matmsh/index.html



___
Inbox full of unwanted email? Get leading protection and 1GB storage with
All New Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html

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




Tapestry 4.1.2 Snapshot:Problem with async Form

2007-02-08 Thread Shing Hing Man
I have a Form component with parameter async=true, and
a plain html
submit button to submit the form. 
The Form parameter updateComponents is set to the id
of a piece of html code
that display  a value entered in the form.
When I click the submit button, the form is submitted
asynchronously. 
But the piece of html specified in the updateComponent
is not updated.
A debug message says  
WARNING: 15:11:46: No ajax-response elements recieved.

But in FireBug, I get the expected response :


http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";
[



]>



   

Your have entered : Holmer 

 



===
My Tapestry page is given below. Any help would be 
very much appreciated.

Shing 

==
Java class : 

public abstract class TestAjaxForm extends BasePage{
private static Logger log =
Logger.getLogger(TestAjaxForm.class);


public  abstract String getFirstName();

public abstract void setFirstName(String str);


public void formSubmit(IRequestCycle cycle){
log.info("formSubmit: " + getFirstName());

}
}

===
TestAjaxForm.page :

  


http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";>


 
   


  

   



 
   








  


===
TestAjaxForm.html :



TestAjaxForm
 

  





  First
Name 
   
 




   
Your have entered :  
 


 Home

  

Home page :
  http://uk.geocities.com/matmsh/index.html



___ 
Inbox full of unwanted email? Get leading protection and 1GB storage with All 
New Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html

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



AW: handling logout

2007-02-08 Thread Peter Schröder
hi thomas,

we have a problem using the restart-service, because it is redirecting to the 
home page, where we perform an initial parameter-check. so the user will end up 
on an exception page telling him, that his query-parameters are missing...

our current solution is to inject the webRequest and invalidate the 
actual-server-session. but i think that this might cause problems with the 
tapestry-visit application-state-manager.

kind regards
peter

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 8. Februar 2007 15:04
An: users@tapestry.apache.org
Betreff: RE: handling logout

We do the same thing Holger does. Some code, below.

By the way, I heard a rumor that if you implement SSO via CAS, there's no 
logout function.  Has anyone had any experience with that?


@InjectObject("engine-service:restart")
public abstract IEngineService getRestartService();

/**
 * Perform logout tasks.
 * @return the tasks.
 */
public ILink logout() {
  LOG.debug("User " + getUser() + " is logging out.");
   
  return getRestartService().getLink(false, null);
}



-Original Message-
From: Holger Stolzenberg [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 08, 2007 4:13 AM
To: Tapestry users
Subject: AW: handling logout

My logout button is calling a listener method. The listener is returning ILink. 
In this listener method I am doing logout specific actions and after that I am 
returning the link to the restart service.

-Ursprüngliche Nachricht-
Von: Peter Schröder [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 8. Februar 2007 09:41
An: Tapestry users
Betreff: handling logout

hi there

what is the default way in tapestry 4 to lougout a user? is it enough to 
destroy servlet-session or should one use the reset-service to do that?

kind regards,
peter

-Ursprüngliche Nachricht-
Von: Stony Zhang [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 8. Februar 2007 07:13
An: 'Tapestry users'
Betreff: RE: How to link to another website

Thanks a lot. I have done that with @Any...

-Original Message-
From: Daniel Tabuenca [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 08, 2007 1:11 PM
To: Tapestry users
Subject: Re: How to link to another website

Like I said, if you need to generate the url use @GenericLink. Also, keep in 
mind that you can add dynamic content to any tag using the @Any component. For 
example:
CLiCK ME On 2/7/07, Stony Zhang <[EMAIL 
PROTECTED]> wrote:
> Thanks Daniel,
> But "WEBSITE_URL" need be got in server side.
> and I can't use ognl:weburl to do that.
>
> Best wishes,
> Stony
>
> -Original Message-
> From: Daniel Tabuenca [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 08, 2007 11:53 AM
> To: Tapestry users
> Subject: Re: How to link to another website
>
> You mean to another non-tapestry website? You just do  href="WEBSITE_URL"> 
>
> If you don't want to use a static URL in your template then you could 
> also use the @GenericLink component.
> On 2/7/07, Stony Zhang <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> >  I want to a link to another website. Anyone can tell me how 
> > to
do
> > it?
> >
> > Thanks you in advance!
> >
> >
> >
> > Yours Stony
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



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


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


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


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


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



RE: handling logout

2007-02-08 Thread Thomas.Vaughan
We do the same thing Holger does. Some code, below.

By the way, I heard a rumor that if you implement SSO via CAS, there's no 
logout function.  Has anyone had any experience with that?


@InjectObject("engine-service:restart")
public abstract IEngineService getRestartService();

/**
 * Perform logout tasks.
 * @return the tasks.
 */
public ILink logout() {
  LOG.debug("User " + getUser() + " is logging out.");
   
  return getRestartService().getLink(false, null);
}



-Original Message-
From: Holger Stolzenberg [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 08, 2007 4:13 AM
To: Tapestry users
Subject: AW: handling logout

My logout button is calling a listener method. The listener is returning ILink. 
In this listener method I am doing logout specific actions and after that I am 
returning the link to the restart service.

-Ursprüngliche Nachricht-
Von: Peter Schröder [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 8. Februar 2007 09:41
An: Tapestry users
Betreff: handling logout

hi there

what is the default way in tapestry 4 to lougout a user? is it enough to 
destroy servlet-session or should one use the reset-service to do that?

kind regards,
peter

-Ursprüngliche Nachricht-
Von: Stony Zhang [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 8. Februar 2007 07:13
An: 'Tapestry users'
Betreff: RE: How to link to another website

Thanks a lot. I have done that with @Any...

-Original Message-
From: Daniel Tabuenca [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 08, 2007 1:11 PM
To: Tapestry users
Subject: Re: How to link to another website

Like I said, if you need to generate the url use @GenericLink. Also, keep in 
mind that you can add dynamic content to any tag using the @Any component. For 
example:
CLiCK ME On 2/7/07, Stony Zhang <[EMAIL 
PROTECTED]> wrote:
> Thanks Daniel,
> But "WEBSITE_URL" need be got in server side.
> and I can't use ognl:weburl to do that.
>
> Best wishes,
> Stony
>
> -Original Message-
> From: Daniel Tabuenca [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 08, 2007 11:53 AM
> To: Tapestry users
> Subject: Re: How to link to another website
>
> You mean to another non-tapestry website? You just do  href="WEBSITE_URL"> 
>
> If you don't want to use a static URL in your template then you could 
> also use the @GenericLink component.
> On 2/7/07, Stony Zhang <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> >  I want to a link to another website. Anyone can tell me how 
> > to
do
> > it?
> >
> > Thanks you in advance!
> >
> >
> >
> > Yours Stony
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



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


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


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


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



Directlink, works in ie thought not firefox?

2007-02-08 Thread Josh Joy
Hi All,

I'm having an odd situation pop up...I have a page
which has several 
directlinks on it. The page shows search results, and
the directlinks 
are basically new query terms, ie will basically link
back to the same 
page just different data. Each of these directlinks
invoke a listener 
and pass a parameter to it.

The issue I'm seeing, is that on the initial page
load, all the 
directlinks seems to be working. However, only in
firefox, when I click 
the directlink again, the listener is not invoked (I
also added debug 
statements to the method and see no entry) and all I
see instead is a 
blank html page. Though, when I do this in Internet
Explorer, everything 
works fine. Has anyone seen anything like this? The
only thing I can 
think of is that my URL is too long and firefox can't
handle it and ie 
can? Though when I look at the url on the initial page
load and 
subsequent hits, it seems to be the exact same?

Thanks in advance,
Josh

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



Tapestry 4.1.1 async and RedirectException

2007-02-08 Thread Daniel Tabuenca

Does Tapestry 4.1.1 handle RedirectExceptions in ajax responses? I
remember Tacos intercepted them and generate javascript in the
response to do the actual re-direction. Is this implemented in
Tapestry? How do I do this?

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



Re: Tacos-like AJAX effects in Tapestry 4.1

2007-02-08 Thread Daniel Tabuenca

Thanks, this is exactly what I was looking for. I'll use the ideas
from those scripts to get them working until the real solution makes
it into Tap.

On 2/8/07, andyhot <[EMAIL PROTECTED]> wrote:

Daniel, we're looking for the best way to include those in tapestry's
ajax cycle
and components.

The basis for that will be this module:
http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/fx.js?view=markup

You can go ahead and use it if you're anxious ;)


Daniel Tabuenca wrote:
> Thanks. I don't need very advanced effects. Just the basic ones and
> I'd like to avoid another framework. Dojo has support for effects.
> With tacos 4.0 you could add pre and post effects to all ajax requests
> and the dojo effects would be applied automatically. I guess my
> question is how do I, for example, easily fade in or highlight the
> changes in the webpage after an async request? I know dojo can do the
> effects, but how do I wire them to the response from a  @Directlink
> with async=true request?
>
> On 2/8/07, Stefan Esterer <[EMAIL PROTECTED]> wrote:
>>
>> 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]
>>
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting


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




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



Re: Tacos-like AJAX effects in Tapestry 4.1

2007-02-08 Thread andyhot
Daniel, we're looking for the best way to include those in tapestry's 
ajax cycle

and components.

The basis for that will be this module:
http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/fx.js?view=markup

You can go ahead and use it if you're anxious ;)


Daniel Tabuenca wrote:

Thanks. I don't need very advanced effects. Just the basic ones and
I'd like to avoid another framework. Dojo has support for effects.
With tacos 4.0 you could add pre and post effects to all ajax requests
and the dojo effects would be applied automatically. I guess my
question is how do I, for example, easily fade in or highlight the
changes in the webpage after an async request? I know dojo can do the
effects, but how do I wire them to the response from a  @Directlink
with async=true request?

On 2/8/07, Stefan Esterer <[EMAIL PROTECTED]> wrote:


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]




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





--
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting 



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



Re: Tacos-like AJAX effects in Tapestry 4.1

2007-02-08 Thread Daniel Tabuenca

Thanks. I don't need very advanced effects. Just the basic ones and
I'd like to avoid another framework. Dojo has support for effects.
With tacos 4.0 you could add pre and post effects to all ajax requests
and the dojo effects would be applied automatically. I guess my
question is how do I, for example, easily fade in or highlight the
changes in the webpage after an async request? I know dojo can do the
effects, but how do I wire them to the response from a  @Directlink
with async=true request?

On 2/8/07, Stefan Esterer <[EMAIL PROTECTED]> wrote:


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]




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



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]



AW: handling logout

2007-02-08 Thread Holger Stolzenberg
My logout button is calling a listener method. The listener is returning ILink. 
In this listener method I am doing logout specific actions and after that I am 
returning the link to the restart service.

-Ursprüngliche Nachricht-
Von: Peter Schröder [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 8. Februar 2007 09:41
An: Tapestry users
Betreff: handling logout

hi there

what is the default way in tapestry 4 to lougout a user? is it enough to 
destroy servlet-session or should one use the reset-service to do that?

kind regards,
peter

-Ursprüngliche Nachricht-
Von: Stony Zhang [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 8. Februar 2007 07:13
An: 'Tapestry users'
Betreff: RE: How to link to another website

Thanks a lot. I have done that with @Any...

-Original Message-
From: Daniel Tabuenca [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 08, 2007 1:11 PM
To: Tapestry users
Subject: Re: How to link to another website

Like I said, if you need to generate the url use @GenericLink. Also, keep in 
mind that you can add dynamic content to any tag using the @Any component. For 
example:
CLiCK ME On 2/7/07, Stony Zhang <[EMAIL 
PROTECTED]> wrote:
> Thanks Daniel,
> But "WEBSITE_URL" need be got in server side.
> and I can't use ognl:weburl to do that.
>
> Best wishes,
> Stony
>
> -Original Message-
> From: Daniel Tabuenca [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 08, 2007 11:53 AM
> To: Tapestry users
> Subject: Re: How to link to another website
>
> You mean to another non-tapestry website? You just do  href="WEBSITE_URL"> 
>
> If you don't want to use a static URL in your template then you could 
> also use the @GenericLink component.
> On 2/7/07, Stony Zhang <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> >  I want to a link to another website. Anyone can tell me how 
> > to
do
> > it?
> >
> > Thanks you in advance!
> >
> >
> >
> > Yours Stony
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



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


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


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



handling logout

2007-02-08 Thread Peter Schröder
hi there

what is the default way in tapestry 4 to lougout a user? is it enough to 
destroy servlet-session or should one use the reset-service to do that?

kind regards,
peter

-Ursprüngliche Nachricht-
Von: Stony Zhang [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 8. Februar 2007 07:13
An: 'Tapestry users'
Betreff: RE: How to link to another website

Thanks a lot. I have done that with @Any...

-Original Message-
From: Daniel Tabuenca [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 08, 2007 1:11 PM
To: Tapestry users
Subject: Re: How to link to another website

Like I said, if you need to generate the url use @GenericLink. Also,
keep in mind that you can add dynamic content to any tag using the
@Any component. For example:
CLiCK ME
On 2/7/07, Stony Zhang <[EMAIL PROTECTED]> wrote:
> Thanks Daniel,
> But "WEBSITE_URL" need be got in server side.
> and I can't use ognl:weburl to do that.
>
> Best wishes,
> Stony
>
> -Original Message-
> From: Daniel Tabuenca [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 08, 2007 11:53 AM
> To: Tapestry users
> Subject: Re: How to link to another website
>
> You mean to another non-tapestry website? You just do  href="WEBSITE_URL"> 
>
> If you don't want to use a static URL in your template then you could
> also use the @GenericLink component.
> On 2/7/07, Stony Zhang <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> >  I want to a link to another website. Anyone can tell me how to
do
> > it?
> >
> > Thanks you in advance!
> >
> >
> >
> > Yours Stony
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



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


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