Currently the Editor component does not support an asynchronous submit (AJAX).
for example:
1.build a form with submit button to save data to database.
2.add a mixins which listening click event to this submit button with
ajax request & callback.
3.when user click this submit button,the form will
I don't of any a solution to making T5 work with JBoss 5.1.*, but it's
fine with 5.0.1 if you follow http://wiki.apache.org/tapestry/HowToRunTapestry5OnJBoss5
.
On 30/10/2009, at 11:42 AM, Thiago H. de Paula Figueiredo wrote:
It's just a wild guess, but check if the Tapestry JARs are
corru
It's just a wild guess, but check if the Tapestry JARs are corrupted. This
can cause all sorts of strange behaviour.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, software architect and developer, Ars Machina Te
hi, i'm trying to deploy my application on JBoss and just run into a problem.
although deployment went fine, seems that tapestry components have not been
registered. i got a message about available pages & components:
01:12:03,575 INFO [STDOUT] - Available pages:
ApplicationBasePage: org.myapp.we
Hi Thiago!
I found the problem.
I had added "/foo/.*" and "/bar/.*" but that didn't ignore "/foo" + "/bar"
so I had to add them as well.
Thanks anyway and sorry for disturbing you!
Thanks again for the help with Login / ILogin.
/Gunnar
2009/10/29 Thiago H. de Paula Figueiredo
> Em Thu, 29
Em Thu, 29 Oct 2009 19:37:37 -0200, Gunnar Eketrapp
escreveu:
I was wrong it does get called but it seems like T5 handles my servlet
pathes anyway
Please post your whole contributeIgnoredPathsFilter method.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hiber
I was wrong it does get called but it seems like T5 handles my servlet
pathes anyway
2009/10/29 Gunnar Eketrapp
> Hi!
>
> For some reason my method to ignore path's does not get called!
>
>
> public static void contributeIgnoredPathsFilter(Configuration
> configuration)
> {
>
>
Hi!
For some reason my method to ignore path's does not get called!
public static void contributeIgnoredPathsFilter(Configuration
configuration)
{
}
Any clue anyone?
Thanks in advance!
/Gunnar Eketrapp
2009/10/27 Gunnar Eketrapp
> Great and Thanks!
>
> 2009/10/26 Thiago H. de
Super thanks now it works!
2009/10/29 Gunnar Eketrapp
> Aha! One moment!
>
> 2009/10/29 Thiago H. de Paula Figueiredo
>
> Em Thu, 29 Oct 2009 18:23:37 -0200, Gunnar Eketrapp <
>> gunnar.eketr...@gmail.com> escreveu:
>>
>> Hi!
>>>
>>
>> Hi!
>>
>> Yeaa 100% sure !
>>>
>>
>> So where is ILogin l
Aha! One moment!
2009/10/29 Thiago H. de Paula Figueiredo
> Em Thu, 29 Oct 2009 18:23:37 -0200, Gunnar Eketrapp <
> gunnar.eketr...@gmail.com> escreveu:
>
> Hi!
>>
>
> Hi!
>
> Yeaa 100% sure !
>>
>
> So where is ILogin located? It shouldn't be in the pages, components,
> mixins nor base packag
Em Thu, 29 Oct 2009 18:23:37 -0200, Gunnar Eketrapp
escreveu:
Hi!
Hi!
Yeaa 100% sure !
So where is ILogin located? It shouldn't be in the pages, components,
mixins nor base packages, as it would be enhanced by Tapestry.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapes
Hi!
Yeaa 100% sure !
// Setup Login page to redirect to the secured page after
the login
Object obj = componentSource.getPage(Login.class);
ILogin login = (ILogin) obj;
login.setRedirectTo(page);
I am using T5.1.0.5 by the way.
/Gu
Also on there is the "tapestry.file-check-interval" which specifies how
long Tapestry should wait before rechecking for changes. In production,
I set that to "1y" because the files aren't going to change. However I
don't know if this affects asset loading or not, but I *think* that once
the fir
I have a simple parent-child page demo at
http://lombok.demon.co.uk/tapestry5Demo/test/parentwindow
The parent page displays number 1,2,..., n.
The child page is a pop up to change n.
The entered n from the pop up is returned to the parent page and the parent
page is redisplay with the n
Hello
i have already encounter this kind of problem, we solved it by using a
decorator to cache asset access with something like, it was for Tapestry
5.0.18 :
public class AssetSourceCacheDecorator implements AssetSource {
private final Map cache =
CollectionFactory.newConcurrentMap();
private
Doesn't limiting the supported locales to just the ones you support help?
http://tapestry.apache.org/tapestry5.0/guide/conf.html
Uli
Am 29.10.2009 19:39 schrieb Christiansen Merel:
Hello out there,
We're running a quite busy website with tapestry 5.0.18 and we're
hitting a performance problem
That's weird. It's exactly how I'm doing it:
PageCallbackContainer login = (PageCallbackContainer)
componentSource.getPage(Login.class);
login.setCallback(new PageCallback(pageName, pageActivationContext,
linkSource));
Link link = linkSource.createPageRenderLink(Login.class);
response.sendRedir
Hello out there,
We're running a quite busy website with tapestry 5.0.18 and we're
hitting a performance problem with the ClasspathResource class.
We're using classpath asset and none of them is localised. For each
hit on a page using a classpath asset, we end having 2 missed queries
on the Class
Em Thu, 29 Oct 2009 16:00:01 -0200, Josh Canfield
escreveu:
This could be naive since I don't use the grid, but can't you just
store the results in a property of the page/component when
getAvailableRows is called?
That's a nice idea. I would just store the results in a property of the
Gri
Em Thu, 29 Oct 2009 15:45:36 -0200, Paul Field
escreveu:
I never understand how to "inject" mock members annotated
with @Parameter into a page when testing with Testify.
I'm not sure I understand the question. I thought @Parameter only made
sense for components - not pages.
That's exactly
This could be naive since I don't use the grid, but can't you just
store the results in a property of the page/component when
getAvailableRows is called? It sounds like you can successfully run
the query twice so you must have the info you need at that point. Use
a getter method for your query that
> I never understand how to "inject" mock members annotated
> with @Parameter into a page when testing with Testify.
I'm not sure I understand the question. I thought @Parameter only made
sense for components - not pages.
> PS. Oh, what about @Environmental members? Same question.
I haven't tr
Em Thu, 29 Oct 2009 15:17:21 -0200, Szemere Szemere
escreveu:
I think however that it would be natural to use dictionary order as the
default ordering. Do others agree?
That's a good thing for a JIRA. :)
--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructo
> I guess you're using a List or a Collection as the grid's source.
Yes.
Thanks for the suggestion, I will take a look at it.
I think however that it would be natural to use dictionary order as the
default ordering. Do others agree?
Szemere
Em Thu, 29 Oct 2009 14:23:10 -0200, Szemere Szemere
escreveu:
The ordering in Grid sorts by character value (uppercase before
lowercase), not by dictionary order e.g.
ADrian
Aardvark
Adrian
I guess you're using a List or a Collection as the grid's source.
Outside a Grid, you can do String
The ordering in Grid sorts by character value (uppercase before lowercase),
not by dictionary order e.g.
ADrian
Aardvark
Adrian
Is there an easy way to change this?
Szemere
Hi
You can also have a look at
http://www.chenillekit.org/demo/tapcomp/oneventdemo
to see how Ajax call can be made easily with Tapestry and ChenilleKit
2009/10/29 cordenier christophe
> And Render Request of course.
>
> So you can also re-render the page and use the RenderSupport to add your
Hi!
I never understand how to "inject" mock members annotated
with @Parameter into a page when testing with Testify.
Anyone knows how to do that?
Mats
PS. Oh, what about @Environmental members? Same question.
-
To unsubscribe
Hi Angelo,
> I attempted to do some page/component testings with PageTester, finally
gave
> up, lately tried again with Testify, and gave up as well, following the
> tutorials, it works, but when trying to apply the test to an existing
> project, can not make it work, probably we need some more t
Hi Mats,
> I use Testify to smoke test our pages, and currently I have
> problems with a non-empty onActivate() function:
>
> public Object onActivate(Long id) {
> // ...
> }
>
> What do I need to mock to get this onActivate() function to
> be called?
To get the onActivate calle
Hi Mats,
Sorry for the delay replying - I've been on holiday. Did you get this
resolved?
I think you'd get this kind of error if you put your tests inside one of
Tapestry's controlled packages (e.g. the pages or components packages). Or
make your pages subclasses of the test classes.
However,
olle.hal...@gmail.com wrote on 09/10/2009 16:24:43:
> I'm struggling with writing a test for a page that just redirects to an
> external page.
>
> The page basically looks like this:
>
> public class Redirecter {
>
> @Inject
> private UrlManager urlManager;
>
> public Object onActivate()
Hum ... your advice seemed quite straighforward
By some reason I can't cast to the interface either ...
Weirdo ...
I have rebuild the project and restarted the APP since i thought that the
old Login.class could spoke me ...
java.lang.ClassCastException com.tellpoker.pages.Login cannot be c
Thanks a lot !!!
2009/10/29 Ulrich Stärk
> Have your page implement an interface that provides methods for setting the
> desired information and cast the result from componentSource.getPage() to
> that interface.
> The reason behind this is that the thing returned from componentSource is a
> byt
Ahh, I'm so sorry. Yeah, PageRedirectException can be used to force a redirect.
Uli
Am 29.10.2009 15:15 schrieb Thiago H. de Paula Figueiredo:
Em Thu, 29 Oct 2009 12:12:37 -0200, Ulrich Stärk
escreveu:
http://tapestry.apache.org/tapestry5.1/guide/pagenav.html
asianCoolz is asking about Ta
Have your page implement an interface that provides methods for setting the desired information and
cast the result from componentSource.getPage() to that interface.
The reason behind this is that the thing returned from componentSource is a bytecode-enhanced
version of your Login page and thus c
The question was about Tapestry 4. And the answer I guess is to throw
a PageRedirectException.
Andrus
On Oct 29, 2009, at 4:12 PM, Ulrich Stärk wrote:
http://tapestry.apache.org/tapestry5.1/guide/pagenav.html
Am 29.10.2009 14:54 schrieb asianCoolz:
public void pageValidate(PageEvent event)
Em Thu, 29 Oct 2009 12:12:37 -0200, Ulrich Stärk
escreveu:
http://tapestry.apache.org/tapestry5.1/guide/pagenav.html
asianCoolz is asking about Tapestry 4.
From the documentation at
http://tapestry.apache.org/tapestry4.1/usersguide/events.html:
"Throw PageRedirectException to activate
And Render Request of course.
So you can also re-render the page and use the RenderSupport to add your
Javascript.
When the user click on the link, try to update the a state in your page
(keep it via @Persist or Activation/Passivation), and during re-render, add
your javascript call in SetupRende
http://tapestry.apache.org/tapestry5.1/guide/pagenav.html
Am 29.10.2009 14:54 schrieb asianCoolz:
public void pageValidate(PageEvent event) {
//how to use pageEvent to sendRedirect to google.com ?
-
To unsubscribe,
Hi!
I just switched from my own brewed secured page implementation that was
based on checking access rights in onActivate()
to the smarter more transparent solution outlined in Jumpstart app.
I.e. ProtectedPage annotation + ProtecetdPageGateKeeper dispatcher.
It works like a charm except for the
Sorry i have said something wrong, RenderSupport is not available in Action
Request, only in Ajax Action Request.
2009/10/29 vos
>
> Hi Christophe,
> Thanks for your answer.
> I tried to code with the renderSupport as you told me.
>
> here is the javascript for my pop up
>
>
>fu
public void pageValidate(PageEvent event) {
//how to use pageEvent to sendRedirect to google.com ?
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.a
Hi Christophe,
Thanks for your answer.
I tried to code with the renderSupport as you told me.
here is the javascript for my pop up
function choisir(choix){
window.opener.document.forms["add_search_form"].elements["departure"].value=choix;
Thanks for opening TAP5-913, Dmitry. I'll try to apply this tonight.
Unfortunately the test system for Tapestry doesn't work for Snow
Leopard, so I have to run in a VM to verify everything is passing.
--
Kevin
On Wed, Oct 28, 2009 at 7:31 AM, Dmitry Gusev wrote:
> I've made a Pull request on
Hello
>>How can i get the opener page in my java class ?
To update a field on the opener, you have to do it with Javascript, not on
server side. There is many alternatives for this :
- Using Ajax request on link click to get the name from server side and
update client via Javascript
- Do it with
Hi,
I have a pop up with a grid. When i click in a line of my grid, i want to
get the object for the clicked row.
here is the parent .tml which call the pop up :
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
Em Thu, 29 Oct 2009 09:04:00 -0200, mirlan escreveu:
Hi,
Hi!
It is compiling without errors but when i run HbAction page it gives me
exceptions.
Without the stack traces, it's nearly impossible to help you.
--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and ins
First: Don't hijack other people's thread. Create a new one (don't hit reply
and just change the topic).
Second: Read the wiki article again and compare it with what you got.
Uli
Am 29.10.2009 12:04 schrieb mirlan:
Hi,
I am trying to integrate tapestry5 with Hibernate. I have done all steps wh
Hi,
I am trying to integrate tapestry5 with Hibernate. I have done all steps which
are defined in
http://wiki.apache.org/tapestry/Tapestry5HowToUseTapestryHibernate .
It is compiling without errors but when i run HbAction page it gives me
exceptions.
org.example.example1.web.pages.HbAction.o
Hi,
I updated my app to tapestry5.2.0.0-SNAPSHOT and GAE SDK 1.2.6 and had
errors like:
* java.lang.VerifyError Stack size too large
* java.lang.ClassFormatError: Invalid length 65050 in LocalVariableTable in
class file org/apache/tapestry5/corelib/components/Form
The first error seemed to be
I would love to see your code samples!
Also, a blog posting some good examples from your work would probably be
another great resource for the T5-community. You're very right that we need
good examples of complex interactions made easy by T5.
Regards
Inge
On Thu, Oct 29, 2009 at 4:15 AM, Vangel
I have the exact same problem/question?
When I call prepare myself and update my "availableRows" parameter. Once the
getAvailableRows run, the parameter is reseted by itself. How to use
GridDatasource the correct way?
Franz Amador wrote:
>
> I'm starting to use Grid to display the paged, sorta
53 matches
Mail list logo