Thanks, Thiago. Yes, the wiki page should explain other ways of recording
errors instead of this one that, as you said, it is known as bad idea.
By the way, I have I doubt about this: one thing useful of this
onValidateFromComponentId methods that throw Exceptions is that you can
validate specific
I know there are alternatives to throwing ValidationExceptions, but I was
wondering what use does this has then? Is there really a case where you
could want to log with error level all the user input validation errors? I
ask because this method, throwing ValidationExceptions, appears on the wiki
pa
Cezary Biernacki wrote:
>
> On Thu, Mar 24, 2011 at 12:04 AM, Thiago H. de Paula Figueiredo <
> thiag...@gmail.com> wrote:
>
> > Why don't you set the application version symbol of your application
> to a
> > given value and never change it?
>
>
> Really? It will cause all caching problems tha
Hi Howard,
I wanted to know if there is a reason why Tapestry couldn't just answer the
requests for assets independently of the requested version. I believe that
it is better to answer with a newer version than to just not answering at
all… In AssetDispatcher, this could be done by just processin
But, for example, access control errors are very common across the
application, so having a common place to handle them appears to be
reasonable. Is there another way to centralize aspects like commons error
handlings (access control, objects not found, requests without the expected
context paramet
We want to handle exceptions in a centralized way, so in a Page or Component
we just throw an exception and "someone" handles that exception and shows
the error message accordingly. For this, we override RequestExceptionHandler
to show custom error messages depending on the type of error.
The prob
e the project and a README here:
https://github.com/raulmt/quilt-akismet
If you want to use it and have any question, just ask... and if you have a
comment or something that can be improved, it will be welcome.
Regards,
Raul.
--
View this message in context:
http://tapestry-users.832.n2.nabbl
There is an issue on jira about this problem:
https://issues.apache.org/jira/browse/TAP5-1115
Maybe you should vote for it ;)
The workaround I used was also target="_blank". But if you us
Content-disposition: attachment it will open a new tab/window but the
browser will close it just before show
Added to JIRA: https://issues.apache.org/jira/browse/TAP5-1403
Thanks for your opinion, Thiago.
Regards,
Raul.
--
View this message in context:
http://tapestry-users.832.n2.nabble.com/Arrays-in-a-RequestParameter-tp5889775p5896721.html
Sent from the Tapestry Users mailing list archive at Nabbl
Hi,
I've been trying to receive an array from client side JavaScript
(specifcally a sortable serialization, like the one in Scriptaculous) with
the @RequestParameter annotation, but apparently it cannot handle arrays
yet?
I can retrieve these params with
String positions = request.getParameter
Thanks, Stefan, but I'm asking specifically for the integration with
Tapestry. As I said, the library you mentioned as well as others I've found
changes and monitor the URL. But what would be the best way of integrating
this with Tapestry? I think I should override or wrap some Tapestry
JavaScript
There are many JavaScript libraries for handling the back button problem with
Ajax requests (the URL doesn't change, so a hit to the back button takes you
to the real previous page instead of the previous section loaded by Ajax).
Many of what I've found do this by appending # and parameters to the
Don't worry, Howard. I'm very thankful to you and the other commiters for
what you are doing with Tapestry. And that's why I try to not only report
you the problem but to also give a hand posting a solution or at least a
clue of what is happening when I can't handle it ;)
--
View this message in
Thanks to both of you. Josh, adding the JSON result processor to the
traditional requests I suppose it is harmless. But, the result processor for
the blocks I think it is the RenderCommandComponentEventResultProcessor, and
it does many things with Partial Markup Renders/Filters, etc, and it even
u
Hi,
I did not find a place to file an issue or something like that, so I'll
write it here: I'm using the Captcha components of Tapx project, and I think
the KaptchaImage component has a problem with Ajax requests. If you use a
Captcha in a form associated to a Zone and you make a mistake in the
c
Hi,
I'm integrating plupload (http://www.plupload.com/) with Tapestry and I
cannot find a solution to the last step. Plupload expects a response in JSON
format but the request it sends to Tapestry with the uploaded file is a
traditional request (because Ajax requests cannot send files unless the
Thiago, I'm not saying to change the behaviour of the flash persistence. What
I mean is to change the way the Form uses this. For example, the Form could
have two properties: one with @Persist(PersistenceConstants.FLASH) and one
without it, and access the correct one through a private method. If t
Today I found the same problem: persist flash doesn't behave well for an Ajax
request, because the error can be shown two times if you refresh the page
(first one with the form ajax response and second one if you refresh the
page). Maybe when processing the request, if it is an Ajax request, the
v
Thanks, Elin. The first mixin is exactly what I need. I did think about
wraping a function in tapestry.js to alter the behaviour, but I didn't like
it. But this mixin, at least, "alters the tapestry.js code" for the Zone
with the mixin only.
Still, altering the show function for a Zone could brea
Hi,
Consider the following scenario:
an item
an item
an item
Add new item
I want the Add new item button to add another li element to the items list,
but only requesting the new item to the server (something similar to what
ajaxForLoop/addRowLink does, but not within a Form). The only
Thank you, based2, but I think you didn't understand my problem. If you save
a link to a current asset in your application (which will have the current
version of your app at the beginning), later, if you update your app
changing the version number, then the link you saved will not work, because
t
I have an error in the second listener. It should be like this:
document.observe(Tapestry.TRIGGER_ZONE_UPDATE_EVENT, function(event) {
var element = event.findElement();
var zoneManager = Tapestry.findZoneManager(element);
K12.showLoading(zoneManager.element);
});
Regard
For example, you can listen to Tapestry.FORM_PROCESS_SUBMIT_EVENT to show the
div over the form, and then listen to Tapestry.ZONE_UPDATED_EVENT (this is
fired when you update the content of a Zone).
In order to put an overlay in all Zones, either associated with forms or
with links, you can obser
I don't know if I understand correctly your problem, but Tapestry fires some
JavaScript events when the form is submitting (see tapestry.js for details),
like Tapestry.FORM_VALIDATE_EVENT, Tapestry.FORM_PREPARE_FOR_SUBMIT_EVENT
and Tapestry.FORM_PROCESS_SUBMIT_EVENT. The latter two fire after
vali
Yes, Thiago, I was just about to post this other solution, which I finally
used, because although the previous one resolves the recursion problem, it
generates conflicts about the two services coexisting when it is needed. So
the decoration, like you said, does the same thing (in this case) and
do
I finally came up with a solution: instead of require the Request service
inside the contribute method or in the Module, I defined a BaseURLSource
service and declared it in the bind method. Then, on the contribute method I
receive this new service (which has a specific id in order to coexist with
Hi,
I've been tryin for a couple of hours this: I want to override a service
(BaseURLSource) but in order to do it, I need the Tapestry Request service.
I've tried this in a variety of forms:
- with a static contributeServiceOverride method that receives the Request
- with a normal contributeSer
Please, ignore this message… the problem is not about ServiceOverride,
Tapestry wasn't even considering this contribution but it was because of my
fault. Sorry for that.
Regards.
--
View this message in context:
http://tapestry-users.832.n2.nabble.com/ServiceOverride-fails-but-contributing-to-A
Hi, I'm trying to move my application to T5.2.0, but I have a strange
problem: I override the RequestExceptionHandler service to generate my own
exception reporting (specially on production). I followed the cookbok on
Tapestry site
(http://tapestry.apache.org/tapestry5.2-dev/cookbook/exceptions.h
I wanted to switch to T5.2, and I found exactly this problem. I have an app
with many modules, and one of them is the "CoreModule", which maps all its
components to the LibraryMapping "core".
In Tapestry documentation, it says:
Note: it is possible to add a mapping for "core". "core" is the core
Hi,
In Tapestry, assets are versioned with the application version appended to
the start of all classpath and context assets. This is a great feature
because of effective cache and cache invalidation after an application
upgrade.
But, problems come when I linked one of these assets before upgrad
Thiago, this snippet, at least in T5.1, does not always work. Tapestry also
"listens" the submit event of the form (in fact, it replaces the onsubmit
property of the form). So, if you have bad luck, the submission of the form
will ocurr before FCK can update the linked field.
To ensure that FCK u
Hi,
I'm trying to use an AjaxFormLoop for rows that have a textfield and a radio
button. Outside the AjaxFormLoop I have a RadioGroup component to "contain"
all the Radio. But when I click the addRowLink I have an error because
RadioContainer is not in the environment (which is normal because Rad
Thanks, Thiago!
Although, thinking about it, I don't know if what I am doing is the best way
for accomplish what I want. The original requirement for my app was to be
capable of creating "user feedback messages" (like the ones Twitter has on
its settings page) on the client as a response for some
Hello,
Is there a way to distinguish action (or component events) requests from the
page render requests? I know that the request URL contains enough
information to figure it out... indeed, Tapestry has to do exactly that to
know which service must handle that. In fact, I found the method that do
asset =
> _assetSource.getAsset(_resources.getBaseResource(), path,
> _resources.getLocale());
> Element dest = writer.getDocument().find("html/head");
> if (dest != null) {
> dest.element("script", "src", asse
https://issues.apache.org/jira/browse/TAP5-935
If you have something to add or clarify, please do it as well ;)
Thiago H. de Paula Figueiredo wrote:
>
> Em Mon, 23 Nov 2009 19:13:09 -0200, raulmt escreveu:
>
>> Hello,
>
> Hi!
>
>> should I post a ticket in j
Hello,
Combining Javascripts feature in T5.1 is great, but sadly I had to disable
it. I use TinyMCE and this library uses its own path (where tiny_mce.js
"lives") to load other files that are needed (themes, languages, etc.). The
problem arises when tiny_mce.js is in the combined virtual asset be
ath visible to the application (via
HttpServletRequest.getPath() ).
On Tue, Apr 7, 2009 at 10:05 AM, raulmt wrote:
>
> I have the same issue with google... the links on google have the jsessionid
> with ";" converted to hexa and the application crashs anyone has a
> solution to
I have the same issue with google... the links on google have the jsessionid
with ";" converted to hexa and the application crashs anyone has a solution
to this?
Regards.
I am seeing bot requests to our site which have the session id encoded
in the request url because they are not using c
when rendering a page. At that
> time, the base URL of the rendered page is known, it is the current
> request path. The issue for you is that you are effectively changing
> the base URL on the fly on the client side, and Tapestry isn't
> prepared for that.
>
> On Thu, Jan 8, 2
equest path optimizations that are causing you trouble.
>
> On Thu, Jan 8, 2009 at 11:29 AM, raulmt wrote:
>>
>> Hi,
>>
>> I'm trying to obtain the URL of an image (which is in the context, but
>> the
>> path is obtained from the DB) to pass it to a F
Hi,
I'm trying to obtain the URL of an image (which is in the context, but the
path is obtained from the DB) to pass it to a Flash application. This is the
line i'm using:
String imageURL = assetSource.getAsset(null, sewerGraph.getMapImagePath() ,
threadLocale.getLocale()).toClientURL();
The va
TAPESTRY-2561 and
> https://issues.apache.org/jira/browse/TAPESTRY-2468.
>
>
> On Fri, Oct 31, 2008 at 6:22 PM, raulmt <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> I'm load testing my T5 application in a Jboss server. Using jmeter with
>> 50
>>
Hi,
I'm load testing my T5 application in a Jboss server. Using jmeter with 50
threads making an HTTP request to a tapestry page that has medium
processing, the application stops responding after 5k - 7k requests. It's
weird because a new request stays waiting for ever, but the server doesn't
use
uests to the server, so
> T5 has no way of knowing what scripts the browser may or may not have
> already loaded. This is theoretically possible with some kind of
> persistent page composition graph, but that would be complicated and
> probably wasteful. Why bother the server with someth
Hello,
I have a zone that is updated with an ajax request. Inside this zone, I use
an InPlaceEditor components (from t5components) many times (one for each row
in a table). The InplaceEditor component include a javascript library,
controls.js, with the IncludeJavascruptLibrary annotation.
On the
JDBCContext) is lost. It seems like, at least for the JDBC
>> case, the Transaction object should only have begin() invoked once.
>>
>> Please add a bug to JIRA; I'll change the source to invoke
>> session.beginTransaction() rather than Transaction.begin() after
>
Hi,
I'm using T5.0.12, Hibernate 3.2.6GA and MySQL 5.1. I ran into a problem
when I wanted to make two commits on the same request. The first commit
worked fine, but the second works "partially" (for example, an entity
deletion on the second transaction doesn't ocurr).
Debugging, I realized
ge/component/mixin sub-
> packages). Then cast to your interface, instead of to the actual
> page. Personally, I think this is a cleaner solution, anyway (knowing
> the property you want to set beforehand, but not knowing the actual
> class/page name until runtime smells like you w
ectPage
> private MyPage page;
> ...
>
> page.setSomething("");
>
> Robert
>
> On Jun 2, 2008, at 6/25:04 PM , raulmt wrote:
>
>>
>> Hi,
>>
>> I'm trying to obtain a page from it's name to set a property on it.
>
Hi,
I'm trying to obtain a page from it's name to set a property on it. I'm
trying something like this:
Component page = componentSource.getPage("MyPage");
MyPage myPage = (MyPage)page;
myPage.setSomething("");
This code fails in the cast, despite a
System.out.println(page.getClass().getName(
Hi,
Are you using Java 6 on Windows?? On my Mac, with Java 5, this works
perfectly, but on my Windows machine, using Java 6, I have exactly the same
problem with inPlace="true" in the Grid component. I downgraded my Windows
machine to Java 5 and it worked fine. Apparently, Java 6 doesn't have eno
Regards.
Howard Lewis Ship wrote:
>
> I would factor out the shared interfaces into a library-core that
> could be inheritted by the app-core and by the add-on projects.
>
> At runtime, T5 IoC will be able to knit together everything.
>
> On Wed, Mar 19, 2008 at 2:41 PM, rau
Hi,
I have a core app and others projects (say project1 to projectN) that add
functionality to this core (they are kind of extensions). The core app is
packaged as a war and project1 to N as jars.
The problem I have is that the core app doesn't have any dependency by code
to the others projects
55 matches
Mail list logo