Hi Claude,
you can use chenillekit mixin OnEvent (). Here is the link:
http://www.chenillekit.org/chenillekit-tapestry/ref/org/chenillekit/tapestry/core/mixins/OnEvent.html
If you are developing with Tapestry 5.1, then put
org.chenillekit
chenillekit-tapestry
1.2.0
It's more fun to create your own ResultProcessor, though :) You'll get to
try out the real power of T5.
On Thu, Jul 8, 2010 at 1:28 PM, Borut Bolčina wrote:
> Thanks for ultra fast responses. I guess they went through
> AjaxComponentEventResultProcessor :-)
>
> Until I try implementing the proces
On Thu, 08 Jul 2010 10:50:40 -0300, fdesbois
wrote:
I resolve my problem setting the Content-Length of the result Stream :
@Override
public void prepareResponse(Response response) {
response.setHeader("Content-Length", "" + length);
}
where length = inputStream.available
On Thu, 08 Jul 2010 10:38:51 -0300, matt22 wrote:
hmmm, yes...
But I want to insert components dynamically, in class:
TML:
Two suggestions:
1) Implement a RenderCommand that adds the Blocks to the RenderQueue and
return it in getListOfComponents(). You'll need to cast the blocks to
Rend
Le Thu, 08 Jul 2010 08:56:12 -0300,
"Thiago H. de Paula Figueiredo" a écrit :
> On Thu, 08 Jul 2010 08:34:06 -0300, fdesbois
> wrote:
>
> > Hi,
>
> Hi!
>
> > How can I disable Transfer-Encoding chunked ? I tried to do this in
> > the StreamResponse :
>
> I really don't know the answer, but I
tapestry does not support dynamic component creation... for good reason
please search the user list for "static structure, dynamic behaviour" to
get more
information on that.
g,
kris
Von:matt22
An: users@tapestry.apache.org
Datum: 08.07.2010 15:39
Betreff:Re: Multiple Compo
hmmm, yes...
But I want to insert components dynamically, in class:
TML:
> correct... create a block with multiple coponents
>
> g,
> kris
>
>
>
> Von:matt22
> An: users@tapestry.apache.org
> Datum: 08.07.2010 07:15
> Betreff:Multiple Components in
>
>
>
> Hi,
> Is i
Your problem is almost identical to the problem of doing client-side validation
with AJAX. I think this will provide most of the solution:
http://jumpstart.doublenegative.com.au/jumpstart/examples/input/ajaxvalidators1
You'd replace CustomError with your textfield. CustomError is liste
On Thu, 08 Jul 2010 09:18:12 -0300, Claude Dubois
wrote:
Does anyone have any idea of how it is possible to detect "onBlur" like
we could do in Javascript?
Tapestry works on the server-side, so you need to listen to the Javascript
event yourself then trigger a server-side event to proces
Hello everybody,
I'm developing a Tapestry 5 application, and I would like to add an
autocomplete functionality, but not like the one integrated in T5.
What I want to do is to search in my database the corresponding name of one
part from its number, e.g. to detect the "onblur" action on my textf
Le Thu, 08 Jul 2010 08:56:12 -0300,
"Thiago H. de Paula Figueiredo" a écrit :
> On Thu, 08 Jul 2010 08:34:06 -0300, fdesbois
> wrote:
>
> > Hi,
>
> Hi!
>
> > How can I disable Transfer-Encoding chunked ? I tried to do this in
> > the StreamResponse :
>
> I really don't know the answer, but I
On Thu, 08 Jul 2010 08:34:06 -0300, fdesbois
wrote:
Hi,
Hi!
How can I disable Transfer-Encoding chunked ? I tried to do this in
the StreamResponse :
I really don't know the answer, but I guess this is related to the server
configuration, not Tapestry-related.
--
Thiago H. de Paula F
On Thu, 08 Jul 2010 02:25:03 -0300, matt22 wrote:
Hi,
Hi!
Is it possible to inject componets in setupRender, or beginRender?
You can only inject components in classes using the @InjectComponent
annotation.
If in layout i have 5 components and i want to inject only some of the
compone
Hi,
I have a problem with Transfer-Encoding chunked on an kml/xml file. I
need to disable it to use the full response as one element for
OpenLayers javascript framework.
How can I disable Transfer-Encoding chunked ? I tried to do this in
the StreamResponse :
@Override
public void prepare
Thanks for ultra fast responses. I guess they went through
AjaxComponentEventResultProcessor :-)
Until I try implementing the processor class, I found a compromise.
return org.apache.tapestry5.json.JSONObject jsonObject = new
org.apache.tapestry5.json.JSONObject(JSONSerializer.toJSON(userData).to
You'll probably want to contribute it to AjaxComponentEventResultProcessor
though.
On 08.07.2010 12:36, Christophe Cordenier wrote:
Hi
You will have to create your own ComponentEventResultProcessor and
contribute it in your AppModule class :
public void contributeComponentEventResultProcessor
Hi
You will have to create your own ComponentEventResultProcessor and
contribute it in your AppModule class :
public void contributeComponentEventResultProcessor(
MappedConfiguration
configuration) {
configuration.addInstance(net.sf.json.JSONObject.class,
YouProcessor.class);
}
2
Hello,
Is it possible to configure return types?
In one of my event methods I was trying to return net.sf.json.JSONObject
instead of org.apache.tapestry5.json.JSONObject and got this error message:
[ERROR] TapestryModule.RequestExceptionHandler Processing of request failed
with uncaught exceptio
add an If-component to your page class like this
@Component(parameters = {"test=whatever"}
private If ifWhateverIsTrue
and put your components in you page-template between the if-tag
like this:
. put you components/html code here ..
with regards
Sven Homburg
Founder of the Chenille K
Hi,
Doing some more debugging I would that element.remove == null. The whole
function doesn't exist on the element. When I add a null check, I run
into a similair problem on the formFragment where element.isDeepVisible
== null.
In IE8 I also encounter the problem as described in
https://is
Hi everybody!
I'm facing a problem I can't resolve, even after hours of reflexion and
tests so I'm asking for help :)
Here is my need : I would like to display the error message corresponding to
each field of my form just above the label of this field.
I've made some research and have found a ve
Hi
Is it possible to get access to the event handler method annotation during
rendering of compoment, which triggers corresponding event ?
How is it possible (the best way) ?
Let say I have a custom link component SecuredLink placed in TestPage and event
handler for SecuredLink event on the sam
Make sure com.mycompany.model.User has non-args public constructor.
On Thu, Jul 8, 2010 at 12:49, Halil Karakose wrote:
> Changing javassist jar didn't work. I still receive the errors.
>
> By the way, the exception is thrown by
> "org.hibernate.tuple.entity.PojoEntityTuplizer".
> Is there a inco
Ahh, makes sense now. I changed all the fields to public because of that
little gotcha.
Josh Canfield wrote:
>
>> I have a class that I am using for each row in a grid, it is the mix of
>> multiple entities data. the question is where to put it?
>
> Are you using it in more than one page? Wit
Changing javassist jar didn't work. I still receive the errors.
By the way, the exception is thrown by
"org.hibernate.tuple.entity.PojoEntityTuplizer".
Is there a incompatibility with the hibernate jars?
One more issue is that the logging level of the stack trace is in WARN
level. And I still hav
25 matches
Mail list logo