Grid is much more powerful than I knew. Thank you guys for nudge in the right
direction.
I will be sticking with my component for this particular page, but I am
replacing allot of other code with Grid.
did the trick and works like a charm. Cannot believe I didn't see
it earlier.
Thanks again
The other limiting thing I remember about the Grid component was that I could
only display one "Object' per row.
I could not do:
Object1.Name Object2.NameObject3.NameObject4.Name
Object5.Name Object6.NameObject7.NameObject8.Name
As you can tell, I did not look at the Gri
I will have a closer look at the Grid component. Thanks very much for the
reply.
Bogdan.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Component-that-displays-additional-containing-Page-markup-tp5718622p5718688.html
Sent from the Tapestry - User mailing list archive
Pagination is the reason for not using the Grid component. I want to paginate
my results without holding anything in memory (session). For Grid I will
select the entire set, @Persist it and then display portions on the page.
What I am doing is a bit different. I always select the (number of tokens
Thank you both for replying.
Now that I read it after a day, my question is not very clear. Here is a
more to the point explanation.
My custom component will take care of pagination. This means I need my
component to wrap around a Loop in the main page. The Loop will be iterating
over a List of
Hello everyone,
How can I allow "Page" information to be part of the component markup
output? Take for example the zone component:
--> component
this is the time on day ${timeOfDay} -> this value comes from the Page
containing the component
When I write my own component, how can I pas
A couple more:
Tapestry shares any single page instance between all threads -> should be
"shares every single page".
Storing only few values of persistent fields the session instead of entire
page's structure ->
The most part of Tapestry framework get along well without using HttpSession
Tapes
Found it. The method name is Object onRefresh() {}
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Update-other-zones-on-zonerefresh-event-tp5715431p5715459.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
--
Thanks very much for your reply. The missing part for me is the method which
will capture the server side "zonerefresh" event. What is this method
called? :))
There are three solutions for me:
1) a method similar to -> onZoneRefresh() { invoked when zonerefresh does
it's XHR request. I would use
What I want to achieve is a "self refreshing cluster of zones" for a
notification mechanism driven by the autorefresh event of a zonerefresh
mixin.
To simplify, a multiZoneUpdate that is triggered by a zonerefresh event from
the mixin.
How do I capture the "zonerefresh" event from the mixin ins
Finally solved by using Form fragments.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Tapestry-CheckList-not-displaying-inside-radiogroup-tp5714471p5715430.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
-
Please ignore. I believe this problem is related to the fact that I am
initially hiding the div containing the checklist. If I test the radiogroup
and checklist in isolation they work well.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Tapestry-CheckList-not-displaying
Hello everyone,
I have a radiogroup that will open/close a div when clicked. This div
contains a t:checklist component. The checklist will render itself correctly
when outside the radiogroup, but will not do so inside the redio group.
Any idea how I can convince the checklist component to displ
Thank you for the reply.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/JSON-request-construct-in-Tapestry-tp5714075p5714095.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
-
To un
I am trying to open Jira tickets directly from my application using
atlassian's REST api. For this I need to create a JSON request and submit it
to some Jira handled URL. Can I construct such a request in Tapestry? It's
somewhat backword in that Tapestry becomes a client to the request.
Assume h
Understood. Thanks for the reply.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/InjectPage-into-a-service-tp5713950p5713956.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
-
To un
Hi everyone,
Is there a way to inject a page into a service via InjectPage annotation?
I am trying the following and does not seem to work:
package com.myapp.services;
public class MyServiceImpl implements MyService
{
@InjectPage
private Login loginPage;
public Object consumer()
{
login
Thank you both for the reply. "bind" was my first try and I eventually tried
with "on". I'll try the Prototype version as well.
Funky problem :).
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Tapestry-ZONE-UPDATED-EVENT-issue-tp5708402p5711203.html
Sent from the Tapest
Hello everyone,
I have this nagging little problem handling the zone updated event. I
tried all that I could find on this forum and still cannot solve it.
My TML zone:
Some other code here.
my jquery event handler sitting in th
Thank you both very much for replying. It solved my problem.
Bogdan.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/HttpSessionListener-interface-implementation-by-Tapestry5-component-tp5572413p5572656.html
Sent from the Tapestry - User mailing list archive at Nabble.co
Hi everyone,
When a user logs out I want to remove it from my online_table. This can
happen in two ways:
1. The user clicks LOGOUT link and I remove him from the online_table and
invalidate his session.
2. The users simply closes the browser, in which case I am unaware that he
left and the sess
Ha, one of the issues that come with not using Maven to refresh your
repository :).
Thanks very much for the reply's.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/TAP5-746-Zone-Refresher-tp4529253p5017815.html
Sent from the Tapestry - User mailing list archive at Nabb
Yes, I'm using 5.3: tapestry-core-5.3.0.jar
http://tapestry.1045711.n5.nabble.com/file/n5017803/1.jpg
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/TAP5-746-Zone-Refresher-tp4529253p5017803.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
Sadly no,
My test: ${text}
Failure creating embedded component 'zone' of
com.example.tutorial.pages.Page: Unable to resolve 'zonerefresh' to a mixin
class name.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/TAP5-746-Zone-Refresher-tp4529253p5017774.html
Sent from the
Hi Taha,
Now that the ZoneRefresh component is included in Tap-core, is there a
working example anywhere?
I have this in my .tml:
My test: ${text}
and when I run it i get:
Failure creating embedded component 'zone' of
com.example.tutorial.pages.Page: Unable to resolve 'tawus/zonerefresh' t
Thank you for the reply.
I am not using Maven to download. I just picked up the jars manually from:
https://repository.apache.org/content/groups/staging/org/apache/tapestry/
I am using JRE 6 but the problem persists. Also, the jsr250 is now included:
*ProjectClassLoader: entry=D:\jars\Tapestry5
Hi everyone,
Is there are new dependency for Tap5.3 rc3 that we need to include? Since
downloading this release candidate I get:
2011-11-14 09:53:17.389:INFO::jetty-6.1.26
2011-11-14 09:53:17.857:WARN::failed app: java.lang.NoClassDefFoundError:
javax/inject/Named
2011-11-14 09:53:17.858:WARN::
I am stuck on a rather silly operation. I have an eventLink in the tml and
it's event handler in the class like so:
tml ->< a t:id='postConversationLink'>click the link < / a >
class ->
@Component(parameters = {"event=postConversationEvent"})
private EventLink postConversati
Thank you both for the reply. Will investigate which method applies better to
my needs.
Cheers,
Bogdan.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/dynamically-change-the-context-information-of-an-EventLink-on-the-cliient-side-tp4972710p4974985.html
Sent from the T
Hi All,
I would appreciate your help with some ideas as I am trying to implement a
chat component and I want to use Tap for the server page.
The user will add text to a text input and click a link or hit enter. At
this point I need to send what the user entered to the tapestry class. It
would
Thanks very much for the reply. I'll give it a try :).
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Importing-a-JQuery-library-stops-Zones-from-responding-to-events-from-EventLink-tp4920064p4921664.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
Hi all,
I have a page in which I declare a zone:
@InjectComponent
private Zone tokenDetailsZone;
an EventLink for updating the zone:
@Component(parameters = "event=updateContent","zone=tokenDetailsZone" })
private EventLink updateContent;
and the event handler method:
There are many many users of Tapestry that are very excited about the book
but are not actively on the forums expressing it. I believe, like you said,
this is the best thing that could have happened.
I for one, cannot wait to get my hands on it.
Good luck and "steady hand" :).
--
View this
I solved it another way:
Page X persists the session object. Page X also defines a method which
invokes componentResources.discardPersistentFieldChanges.
I navigate to page Y. On page Y I @InjectPage X and, at the appropriate time
I invoke the method on
page X that discards all persistent data
Yep, it does not solve my problem. Being on another page than the one setting
the object in session, discarding will not remove my object of interest.
Still digging for a solution. I wonder if I could just cast the session back
to a Servlet HttpSession and just invoke removeAttribute from there. Th
I'll have a look. Thanks very much for the reply.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/removing-attributes-from-session-from-pages-other-than-the-one-setting-it-tp4592795p4592862.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---
Hi again everyone,
I have hit another snag.
Page X contains a session persistent field:
@Persist
private ArrayList paginatedResults;
I am navigating away from page X to page Y. On page Y I want to remove the
persisted object "paginatedResults" from the session.
I am looking
Current configuration that works:
Layout Template sample (MemberPagesLayout.tml):
;
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
Alternative Reality - your secret life
...
Thanks for the reply.
The sure way of determining that my js is not making it into the page is
that i'm not seeing the side effect. My js will modify the width/height of
the jpg images on the page.
Currently, to make it work I have copied the javascript into the header of
the Layout page. But i
Hi all,
In my Tap app I have a simple js file which contains:
This library resides under: Web-Content/assets/js/test.js
The page for which I want to import this library has the following
annotation above the class declaration:
@Import(library="context:/assets/js/test.js")
public class Memb
Thanks all very much for the replies.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/expansions-and-expresion-language-tp4474896p4479930.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---
Hi everyone,
I know I found it someplace but for the life of me i cannot find it again.
There was a reference on how to use expansions, how to invoke methods from
templates, how to generate numeric intervals in the template and a few
other things. Kind'a like an expression language for Tap.
A
Got it, noted, and never again.
Thanks for the reply,
Bogdan
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/resource-shared-accross-threads-tp4370064p4370272.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
Hi again,
I have a Index class which declares another object as a private instance
variable:
private User user = new User();
This object will hold some attributes of the user. It's constructor will
populate it with default values.
Index template has the ability to update the attributes
Interesting. I just did not realize the class property will be assigned the
map keys one by one as I loop through them (the documentation clearly states
this ).
Thanks for the reply,
Bogdan.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/getter-setter-for-textfield-co
Hi all,
I have a textfield component inside a loop. The value of the text
component is set like this:
The entire loop is enclosed in a . When i try to submit the form, I
get the following error:
An exception has occurred: Failure writing parameter 'value' of component
Index:textfield: Expr
Very useful stuff. Thanks very much for replies.
Cheers,
Bogdan.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Using-Environmental-and-JavaScriptSupport-Object-to-dynamically-load-css-based-on-browser-tp4283102p4298913.html
Sent from the Tapestry - User mailing list a
Thank you very much for the responses. very useful stuff.
Cheers.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Using-Environmental-and-JavaScriptSupport-Object-to-dynamically-load-css-based-on-browser-tp4283102p4298887.html
Sent from the Tapestry - User mailing list ar
Hi,
There is one post regarding this here:
http://tapestry.1045711.n5.nabble.com/Using-conditional-comments-with-Import-stylesheet-quot-quot-td3827508.html#a3887176
http://tapestry.1045711.n5.nabble.com/Using-conditional-comments-with-Import-stylesheet-quot-quot-td3827508.html#a3887176
but I
Hi,
I have a Tap5 service called QueryFactory. This service will include
dozens of methods for database interaction: selects, inserts, updates etc.
This being an Web App, potentially multiple users ( threads ) will have the
service injected at the same time and "potentially" invoke the same met
The typos are intentional so that HTML is not rendered when i post. Was in a
hurry, sorry about that.
Managed to get passed by using: ${myValueHere} directly in tml ( as you
suggested ).
Thanks all for the replies,
Bogdan.
--
View this message in context:
http://tapestry.1045711.n5.nabble.c
I have this piece of code(only relevant part included):
"t:label for=userName> LABEL BODY /t:label"
"input type="text" t:id="userName" t:type="TextFieldd" t:value="userName"
t:validate="required"/"
I would expect, when rendered, to have something like this:
LABEL BODY: TEXTFIELD
instead
I have this piece of code(only relevant part included):
LABEL BODY:
I would expect, when rendered, to have something like this:
LABEL BODY: TEXTFIELD
instead, what I have is:
User Name TEXTFIELD -> which is what the label displays if there is no
body
What am i doing wrong here? If I a
53 matches
Mail list logo