Hi,
You can persist your field in the session using @Persist or in
".page" file persist="session", or if your fields are encapsulated in
an object you can persist the object in the session using ASO.
Numa
Le 11 avr. 07 à 06:28, tapuser a écrit :
Hi,
My domain object has 20 Fields. I
Hi,
I have a login page, when user logins, it navigates to next page. How can I
hide the login page when I click the back button from IE. I am using
onActive() in Login page likes:
String onActivate()
{
if (!_user.isLogin()== true) {
return null;
Hi,
My domain object has 20 Fields. I am trying to place these fields in two
pages ( 10 Each). While I am saving the 1st 10 fields in page one, the
remaining 10 fields are getting reset to null values. The same true when I
am updating the values in 2nd Page ( 1st Page values are getting reset.
If you are using a DirectLink or a Submit button you do not need to use
the @EventListener annotation. You can specify using updateComponents
which elements to refresh. See
http://tapestry.apache.org/tapestry4.1/components/link/directlink.html
and http://tapestry.apache.org/tapestry4.1/components/f
The documentation is always ahead of the non-snapshot JARs.
On 4/10/07, Bruce Petro <[EMAIL PROTECTED]> wrote:
Ah... the docs must be 5.0.4 compatible, but I assumed they were older
not newer. THANKS!
-Original Message-
From: robert zeigler [mailto:[EMAIL PROTECTED] On Behalf Of
Robert
Hi I was wondering what the correct way would be to create an
EventListener that returns a confirm when a button is clicked.
I have the following that doesn't work:
@EventListener(elements="deleteButton", events="onclick")
public String testThis(){
"oops"
Guess I need to run the ognl unit tests in 1.4 occasionally...
On 4/10/07, Hugo Palma <[EMAIL PROTECTED]> wrote:
I'm asking because i'm getting this error running it:
Caused by: java.lang.RuntimeException: java.lang.RuntimeException:
java.lang.NoSuchMethodError: java.lang.Integer.valueO
I am needing to provide sortable contrib:Tables in my application, but I
need them to survive a session timeout. I normally buckle and make the
TableView source persist in the session, but that is never a very nice
solution. I am providing my own IBasicTableModel, so I'm reloading the
table data
Ah... the docs must be 5.0.4 compatible, but I assumed they were older
not newer. THANKS!
-Original Message-
From: robert zeigler [mailto:[EMAIL PROTECTED] On Behalf Of
Robert Zeigler
Sent: Tuesday, April 10, 2007 5:00 PM
To: Tapestry users
Subject: Re: T5 ... assets and paths changing?
Actually, T5.0.3 didn't remove path; path was added after 5.0.3.
For T5.0.3 you do:
@Inject("../edit.png")
private Asset _icon;
Robert
On Apr 10, 2007, at 4/103:55 PM , Bruce Petro wrote:
It appears that T5.0.3 has removed @Asset and @Path
How do we then load an image to be used either direc
It appears that T5.0.3 has removed @Asset and @Path
How do we then load an image to be used either directly or as a BG
image?
I've looked all over including the Introduction page where you appear to
keep a running feature changes list.
Thanks
@Inject
@Path("../edit.png")
No things should still work the same with 4.1.1. .(but upgrading might
be a good idea either way)
The error you got means that you don't have a component defined in
your page with an id of "div1". Your example before on how you were
defining your div blocks was incorrect and I provided an example
Hi Jesse,
I did try this approach previously, thinking OGNL would use the Map key
as a property like in your example (I think that's what it's doing in
your example?). But following your example very closely, I get this
exception:
Unable to read OGNL expression...source is null for getPrope
You want to do something like this instead for your divs:
Then your updateComponents statement becomes
updateComponents="ognl:{page.components.foo.clientId,page.components.someOtherDiv.clientId}"
On 4/10/07, Matt Larson <[EMAIL PROTECTED]> wrote:
Jesse,
Thanks for your response. This feels
Jesse,
Thanks for your response. This feels like the problem, that the IDs on
the tags are not being matched. However due to my lack of
knowledge about Tapestry's internals, I haven't been able to implement
your suggestion.
What I can't figure out is how to get the clientId out of the OGN
This could also be written as:
Block onBeforeRenderBody() { return _sidebar; }
On 4/10/07, Yann Ramin <[EMAIL PROTECTED]> wrote:
Just figured out you can return the block in a render stage to get it to
render. Deceptively simple, but the docs (from my reading), didn't
mention it.
@Bef
Just figured out you can return the block in a render stage to get it to
render. Deceptively simple, but the docs (from my reading), didn't
mention it.
@BeforeRenderBody
Block doSidebar()
{
return _sidebar;
}
Yann Ramin wrote:
I got a good st
Hi,
I am also having the same issue. I want add a button to the tree
table's row. Any idea?
Thanks.
Sri
anil wrote:
>
> Hi -
>
> I'm using the contrib:TreeView and related components (TreeDataView &
> TreeNodeView) to display a table of contents for a book.
>
> I'd like to keep the mak
I got a good start on this, but still missing something fundamental.
In Page.java, I have the Sidebar component.
In Page.html, I pass the component in a parameter
In Layout.java I have a sidebar block
@Parameter(required=true)
private Block _sidebar;
What I can't figure out is how t
I'm asking because i'm getting this error running it:
Caused by: java.lang.RuntimeException: java.lang.RuntimeException:
java.lang.NoSuchMethodError: java.lang.Integer.valueOf(I)Ljava/lang/Integer;
at ognl.ASTProperty.toSetSourceString(ASTProperty.java:548)
at
org.apache.tapestry.services.i
I am also interested in portlets, very similar to this requirements. I also
could not find much help.
Anyone any pointers ??
thanks,
Sunil
jake123 wrote:
>
> Hi All,
> at our company we are going to build a page where our clients will be able
> to choose from maybe 10-15 different Portlets to
If the sidebar really changes for each page, then it can be a Block
parameter to the layout component. This will allow the layout
component to control where, within its templates, the sidebar appears.
Check out the t:parameter documentation.
On 4/10/07, Stephane PAQUET <[EMAIL PROTECTED]> wrote:
Yes, from what I understand persist is just to keep value between
request. so every-time you request the page the object is in this
case recreated.
If you want to keep this object across a session you need ASO (see T5
doc on persistence).
You can also (but will not be kept a session level
Just one question, why don't you use a CSS layout + ASSET in stead
of component (this does not apply to the sidebar).
Rgds,
SP
On Apr 10, 2007, at 8:28 AM, Yann Ramin wrote:
I'm using T5 to do some experimental testing, creating some mockup
applications to teach me more about the framework.
Hi,
Can anyone tell me how to create an off-line version of the tapestry 4.1
website?
I tried to download it by getting the tapestry-site project from svn, and build
it with maven - something I've not used before, by following instructions on
the tapestry site, but, 1. the instructions didn't
Thanks everyone for the confirmation about the visit object - I've been using
the ASO idea, but sticking to a "visit" object at present - worried about
drifting too far down aisles unknown (to me a beginner) and getting stuck!
- Original Message
From: Howard Lewis Ship <[EMAIL PROTECTE
26 matches
Mail list logo