Hey everyone,
I am pretty new to Tapestry5 -- have been a user of Tapestry 4 for over 5
years though. Finally got the balls to upgrade to 5.
My question is in regards to how to integrate application state managers
into my app in tapestry. I read
http://tapestry.1045711.n5.nabble.com/Threading-an
This is a newbie question but I was unable to find much documentation about
it.
I want to create a component composed of other components for example:
I have a page with a grid component (from tapHotels example):
# Details
${curr
Thanks Taha -- I am playing around with the
Entity Grid with Criteria Disabled
Entity Grid with Criteria Enabled
Entity Grid with Search
Entity Grid with Edit
and its very helpful. It actually gives me direction and guidance on some
other things I will need to do soon too -- such as adding items
So this is a follow-up:
I've gotten it mostly working but for some reason the defaults on my
component are not overriding the defaults in the original grid component.
Not sure why. So here are the relevant parts:
My page:
http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";>
btw solved by using a combination of what Tawa and Thiago suggested.
@Component(publishParameters="all params you wish to publish and not
override"
parameters = {empty="prop:empty"}
private Grid grid;
@Parameter(value = "block:empty", defaultPrefix = BindingConstants.LITERAL
I had this exact problem. The reason turned out was that the authorization
filter was not setting the the url. To fix this I overrode the
SecurityFilterChainFactory service:
In your app module do:
public static void bind(ServiceBinder binder)
{
//override
binder.bind(Secur
I have some questions about linksubmit/submit in a loop. I have some enums
{e1, e2, e3} for example. In the loop I generate a linksubmit for each enum
and pass the enum in the linksubmit context parameter and an event called
"handleEnum" in the event parameter. From what I understand, theoretically
Oh and I don't know if this is relevant but I am using tapestry 5.3.0.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/LinkSubmit-in-a-loop-tp4742981p4742985.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
Thanks Taha -- that fixed #1 for me.
Is there a way to have my onSuccess method inside the component and not in
the page containing the component? and is there a way to use the parameters
of the component -- they are all null when either of the event listener
methods are called.
--
View this mes
I don't know about the weird response code but...your stream response code
looks pretty much the same as mine except I set the content length ie:
arg0.setContentLength(getStream.available());
in your prepareResponse method
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/
Basically I have a inPlace=true grid and some linksubmits to various
exporting options. When the submits are hit, some data from the grid is
exported. That works great. However once things are exported and downloaded,
the paging and other partial page submits on the page don't work for the
grid. Fr
Sure:
CSV
@SuppressWarnings("unused")
@Component(parameters = {"event=clicky", "defer=false"})
private LinkSubmit link;
@OnEvent(value="submit")
Object
sorry, had some weird formatting issue, here is whats between the li:
csv
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/StreamResponse-onSuccess-does-not-stream-back-data-tp4759347p4760322.html
Sent from the Tapestry - User mailing list archive a
CSV
Sorry had some formatting issues, this is the tml missing in my [revious
post. Just a simple link.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/StreamResponse-onSuccess-does-not-stream-back-data-tp4759347p4760327.html
Sent from the Tapestry - User mailing list arc
Sure (and thanks as usual Taha!) so I have a wrapper around a grid and the
csv export. I simplified the code quite a bit so hopefully its easy to
understand.
page tml:
in myGrid.tml
Move along, nothing to see.
in MyGrid.java
@Compo
Sorry hese:
The missing tml is just simply:
CSV
Yeah I don't think it's your code -- i just prefer annotations over
convention. You could try something like
https://addons.mozilla.org/en-US/firefox/addon/tamper-data/ for your browser
you will be able to follow the each request/response -- p
Doh I guess my email program doesn't looks like it doesn't like this tag:
--a t:id="link"--CSV--/a--
just replace the "--" with > and < as appropriate.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/StreamResponse-onSuccess-does-not-stream-back-data-tp4759347p47633
That's pretty smart -- but yeah does seem hacky. I will await the responses
from the gurus as I am curious myself.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/redirect-after-post-messes-with-my-StreamResponse-tp4763647p4764032.html
Sent from the Tapestry - User mailing
Thanks Taha -- I'll make a self running example to see if I can reproduce it.
Been a little busy lately but I should have it sometime this week. Thanks
again for taking a look.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/StreamResponse-and-inPlace-Grid-question-tp47600
Thanks Joost, interesting, I will try your workaround as well and take a look
at your proposed workaround. This should indeed save me a ton of time.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/StreamResponse-and-inPlace-Grid-question-tp4760076p4771433.html
Sent from the
So say I have a component that wraps a grid like:
SomeGrid.tml
http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";
xmlns:p="tapestry:parameter">
SomeGrid.java
@SuppressWarnings("unused")
@Component(parameters={"overrides=prop:overrides", ...other params...})
private Grid grid
Hmm...so publishParameters in the container component? I'll give that a shot
later today.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Grid-overrides-question-tp4807689p4811311.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
--
I also just got the news as I signed up for the MEAP.
On related note:
I hope this project gets ressurected but I understand Tapestry is a labor of
love and a lot of work by all the developers involved and writing a book is
yet another huge task.
I am loving Tapestry and everytime I need it to
Hey guys, just wanted to finally follow up. Time has been scarce lately so I
didn't get a chance to post my findings. Again thanks to Taha and especially
Joost for helping with this issue -- you guys made me look in the right
places especially that JIRA issue.
So basically I do have the same prob
Is there a way to do a validator that depends on other Fields? So for
example, the Min validator can check against a static number - is there
anyway to pass in the user input from another field to the validator.
So say
And I basically want to make sure "end" > "start". I know I can check this
w
That makes sense. But is there a way I can wrap this up into a validator that
say takes a fieldid, and then server side, the validator can grab the value
of the field id (in the same form of course) and compare it to the field the
validator is attached to?
This way I can just plug this to several
I almost did that and I have a similar requirement. I basically have 2 fields
which can be a number or date or whatever. And I need different validators
depending on their type.
I almost went with doing my own abstract field but I ended up doing
something different. I made a parameter thats a str
Correction FieldTranslatorSource should be FieldValidatorSource.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Validator-abilities-tp4845773p4854511.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---
That is really cool. Did not know you can do that with Tapestry. I'm just
lurking but thanks -- I have a similar requirement for my app too.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Injecting-domain-object-into-all-pages-tp4848523p4854537.html
Sent from the Tapestry
Well I guess another week, another conundrum. I hope maybe you guys have some
suggestions
So say I have a Bean like:
public class Bean
{
private String name;
private Map map;
public String getName() { return name;}
public Integer getMap(String columnHeader) {return
ma
As usual -- the tap user forums comes through again. Step1 I need to
make/initialize my own BeanModel as Norman suggested -- step 2 is I need to
do my own PropertyConduit that will access my map. Makes complete sense,
thanks. I'll give it a go.
--
View this message in context:
http://tapestry.104
You can override GridDataSource:
So you can do something like:
This is something I did to put nulls at the bottom when a user sorts the
grid. I hope it is helpful.
@Override
public void prepare(int startIndex, int endIndex, List
sortConstraints)
{
// your own initialization code
So I am trying to put some simple profiling in my methods.
Here is what I have:
@Aspect
public class Profiler
{
@Pointcut("execution(* *(..)) && within(com.myclasses.*)")
public void allMethods() {}
@Around("allMethods()")
public Object profile(ProceedingJoinPoint pjp) throws
Basically both -- com.myclasses is everything in my project. I would be happy
if any methods were profiled. But right now, there are no trace messages
being outputted at all (tapestry, spring, or otherwise).
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Tapestry5-and-Spri
Thanks Thiago -- I will probably return to this issue later. None of my
beans, spring or not, are being profiled. Unfortunately -- just too many
other things to attend to.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Tapestry5-and-Spring-AOP-profiling-tp4899677p4916294.h
When you get the ajax response back, did any of ids change? The stuff in the
zone changes but the javascript code from the mixin doesn't . I am not an
expert but thats the only thing I can think of.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Mixins-stop-working-after-a
Indeed -- thanks for the link Thiago. I am trying to spread the use of
Tapestry in my organization. Good design seems to take care of everything
else (from performance, to flexibility and maintenance). This is more
validation that Tapestry was coded very well which I will pass around to my
coworke
37 matches
Mail list logo