Re: [WARNING] ASO auto-startup (Tap 4)

2007-02-20 Thread Gurps

ok, what if I have a daemon class that polls something in the database every
now and then. However, on tapestry startup it must be already initialized.
Would i use a runnable class and then just use hivemind.Startup? Is this the
best practise?

Thanks


Howard Lewis Ship wrote:
> 
> An "ASO" that exists at start is, ipso facto, a shared across all users
> object.
> 
> In that case, a HiveMind service is appropriate, rather than an ASO.
> 
> On 2/18/07, Gurps <[EMAIL PROTECTED]> wrote:
>>
>> Hi
>>
>> I have created an ASO and i'd like it to startup when everything
>> initialises:
>>
>> 
>> 
>> > configuration-id="tapestry.state.ApplicationObjects">
>> 
>> 
>> 
>> 
>>
>> 
>> 
>>   
>> 
>>
>>
>> It seems "hivemind.Startup" is not recognised. How do I do this in
>> tapestry
>> ???
>>
>> Cheers,
>> --
>> View this message in context:
>> http://www.nabble.com/ASO-auto-startup-%28Tap-4%29-tf3250438.html#a9035803
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> Howard M. Lewis Ship
> TWD Consulting, Inc.
> Independent J2EE / Open-Source Java Consultant
> Creator and PMC Chair, Apache Tapestry
> Creator, Apache HiveMind
> 
> Professional Tapestry training, mentoring, support
> and project work.  http://howardlewisship.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/ASO-auto-startup-%28Tap-4%29-tf3250438.html#a9072401
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



ASO auto-startup (Tap 4)

2007-02-18 Thread Gurps

Hi

I have created an ASO and i'd like it to startup when everything
initialises:











  



It seems "hivemind.Startup" is not recognised. How do I do this in tapestry
???

Cheers,
-- 
View this message in context: 
http://www.nabble.com/ASO-auto-startup-%28Tap-4%29-tf3250438.html#a9035803
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: table row class value dependent on iterated object

2006-12-05 Thread Gurps

Ok i get it. I ended up doing:



but how could i put the expression into say a bean or class ? ie. if i
wanted the logic in java and not in the .page file?

Thanks


Jessek wrote:
> 
> You could just use the standard tapestry EventOdd bean plus a little ognl:
> 
> 
> 
> Something like that anyway..
> 
> On 12/5/06, Gurps <[EMAIL PROTECTED]> wrote:
>>
>>
>> I have a for loop like so:
>>
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> and a bean declaration
>>
>> 
>>
>> My .CSS file contains a tr.even, tr.odd, tr.newalbum, etc..
>>
>> how do i (re)write the EvenOdd class such that i can highlight a row
>> based
>> on one of the fields in the "album" class?
>>
>> It's almost like i need to set a value inside the evenOdd class such that
>> when the loop calls getRowClass() it is derived from the object being
>> iterated on (album.status). It is the status that i wish to show?
>>
>> I have seen the source to the standard EvenOdd but how do I pass in a
>> value
>> to it?
>> --
>> View this message in context:
>> http://www.nabble.com/table-row-class-value-dependent-on-iterated-object-tf2764675.html#a7709035
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> Jesse Kuhnert
> Tapestry/Dojo team member/developer
> 
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/table-row-class-value-dependent-on-iterated-object-tf2764675.html#a7709445
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



table row class value dependent on iterated object

2006-12-05 Thread Gurps


I have a for loop like so:








and a bean declaration



My .CSS file contains a tr.even, tr.odd, tr.newalbum, etc..

how do i (re)write the EvenOdd class such that i can highlight a row based
on one of the fields in the "album" class?

It's almost like i need to set a value inside the evenOdd class such that
when the loop calls getRowClass() it is derived from the object being
iterated on (album.status). It is the status that i wish to show?

I have seen the source to the standard EvenOdd but how do I pass in a value
to it?
-- 
View this message in context: 
http://www.nabble.com/table-row-class-value-dependent-on-iterated-object-tf2764675.html#a7709035
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Checkbox in table (non-contrib)

2006-11-27 Thread Gurps

sure: page 330 to 334. section called "Adding a Delete checkbox"


jake123 wrote:
> 
> 
> 
> Gurps wrote:
>> 
>> Hey guys,
>> 
>> Actually i found a different solution which is outlined in Kent Tong's
>> book. I totally missed it (Kent: Please put Checkbox in the index so we
>> can look at the example easily!!)
>> 
>> 
> 
> Do you have the page number in Kent Tong's book for the checkbox example?
> 
> Thanks,
> Jacob
> 

-- 
View this message in context: 
http://www.nabble.com/Checkbox-in-table-%28non-contrib%29-tf2703459.html#a7569224
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Checkbox in table (non-contrib)

2006-11-27 Thread Gurps

Hey guys,

Actually i found a different solution which is outlined in Kent Tong's book.
I totally missed it (Kent: Please put Checkbox in the index so we can look
at the example easily!!)

Basically, you put an ad-hoc invoke listener inside the for loop. The for
loop sets the currentBean per iteration and inside the delete method, you
would already know which item is the current one. So this method works per
row in your table rather than submitting a whole list and iterating it (as
you might do in JSP via request params).

I'll put up a small example soon.

G.


Srinivas Yermal-2 wrote:
> 
> Hi Karthik,
> 
> For some reason this doesnt seem to be working for me. I have the same
> requirement and tried describing it earlier on. Later I had to settle for
> this -
> 
> http://mail-archives.apache.org/mod_mbox/tapestry-users/200611.mbox/ajax/[EMAIL
>  PROTECTED]
> Srini.
> 
> On 11/26/06, Karthik N <[EMAIL PROTECTED]> wrote:
>>
>> 1. if you can modify your pojo have a boolean isChecked in it which you
>> can
>> wire to the checkbox in your for loop
>> 2. if not, wrap a DTO around your pojo which has this boolean
>> 3. during the rewind cycle the checked boolean will be set
>> 4. in your listener method you can iterate through the List that was used
>> for the For Loop and figure the selected rows by using the isChecked
>> method
>>
>> On 11/25/06, Gurps <[EMAIL PROTECTED] > wrote:
>> >
>> >
>> >
>> > I have a pojo bean which renders its attributes as a row in a For loop
>> in
>> > a
>> > non-contrib table.
>> >
>> > What i want to do is provide a checkbox at the end of each row which
>> > enables
>> > the selected beans to be identified in the listener method.
>> >
>> > I don't know if only the primary keys or the whole row is stored or
>> > anything. And this must be in a NON-Contrib table.
>> >
>> > Any help most appreciated, an example is the best way!
>> > Thanks
>> > --
>> > View this message in context:
>> >
>> http://www.nabble.com/Checkbox-in-table-%28non-contrib%29-tf2703459.html#a7538325
>> > Sent from the Tapestry - User mailing list archive at Nabble.com.
>> >
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>>
>>
>> --
>> Thanks, Karthik
>>
>>
> 
> 
> -- 
> http://www.indygosoft.com
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Checkbox-in-table-%28non-contrib%29-tf2703459.html#a7557608
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Checkbox in table (non-contrib)

2006-11-25 Thread Gurps


I have a pojo bean which renders its attributes as a row in a For loop in a
non-contrib table.

What i want to do is provide a checkbox at the end of each row which enables
the selected beans to be identified in the listener method.

I don't know if only the primary keys or the whole row is stored or
anything. And this must be in a NON-Contrib table.

Any help most appreciated, an example is the best way!
Thanks
-- 
View this message in context: 
http://www.nabble.com/Checkbox-in-table-%28non-contrib%29-tf2703459.html#a7538325
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Component won't remember value

2006-11-06 Thread Gurps

I did some more experimenting and ended up using a Border component. However,
how do I set the value of something that is in a border? I tried treating it
like any other component eg:

((Border) getBorder()).setSearchText(getSearchText())

but it didn't work. I think the Border component is treated a little
differently to vanilla components?


karthik.nar wrote:
> 
> glad it worked.
> 
> i think one of the powers of tapestry is the ability to be able to tap
> into
> lifecycle methods, as also register listeners (like pageBeginRender)
> 
> i don't have exact answers to your question "but is this optimal?" - it
> depends on what you want to do.  if you want your component to be agnostic
> of the page it is in, then it's better to follow the approach of the page
> injecting the initial value as done below.
> 
> you could also configure your component to accept a parameter and set that
> as the initial value of the text field.  this parameter could then be
> bound
> to a value on your page.
> 
> hth - karthik.
> 
> 
> On 11/2/06, Gurps <[EMAIL PROTECTED]> wrote:
>>
>>
>> Karthik.Nar,
>>
>> I made the change below to Result.java. It seems to work, but is this
>> optimal? Is there a way for the component to automatically find out it's
>> "parent page" to bind the value without using a "double" bucket brigade
>> and/or without using component injection. I'm new to Tapestry still, so
>> might not understand even what i'm talking about!
>> Is this the best practice? Thank you for your advice.
>>
>> Result.java
>> ---
>> package uk.co.gd.dao;
>>
>> import org.apache.tapestry.annotations.InjectComponent;
>> import org.apache.tapestry.event.PageBeginRenderListener;
>> import org.apache.tapestry.event.PageEvent;
>> import org.apache.tapestry.html.BasePage;
>>
>> public abstract class Result extends BasePage implements
>> PageBeginRenderListener {
>>
>> @InjectComponent("searchComponent")
>> public abstract SearchComponent getSearchComponent();
>>
>> public abstract void setSearchText(String searchText);
>> public abstract String getSearchText();
>>
>> public void pageBeginRender(PageEvent event) {
>> if (event.getRequestCycle().isRewinding()) {
>> System.out.println("in pagebeginrender but
>> rewinding");
>> return;
>> }
>>
>> System.out.println("in pagebeginrender not rewinding");
>>
>> ((SearchComponent)
>> getSearchComponent()).setSearchText(getSearchText());
>> }
>> }
>>
>>
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Component-won%27t-remember-value-tf2547494.html#a7197552
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Component won't remember value

2006-11-02 Thread Gurps

Karthik, i'll try the methods below too.
I guess what i'm trying to understand is the equivalent of a JSP
RequestScope. To me, the component should just "remember" it's value between
pages (and not session scope), but i'm still unclear.

Also in my app below, i don't think the component is really being "shared"
but rather duplicated twice even though it's a component - am I correct in
my own example? I think it may be better to put teh component in a Border
type component itself. I was looking at the Tapestry Petstore example
(implemented in Tap 3 at http://pwp.netcabo.pt/lneves/tapestryapps/). They
have a search component in a border but i don't know if it "persists" it's
search words between page requests. Can anyone find a running demo online
somewhere? 

Confused :-/


karthik.nar wrote:
> 
> glad it worked.
> 
> i think one of the powers of tapestry is the ability to be able to tap
> into
> lifecycle methods, as also register listeners (like pageBeginRender)
> 
> i don't have exact answers to your question "but is this optimal?" - it
> depends on what you want to do.  if you want your component to be agnostic
> of the page it is in, then it's better to follow the approach of the page
> injecting the initial value as done below.
> 
> you could also configure your component to accept a parameter and set that
> as the initial value of the text field.  this parameter could then be
> bound
> to a value on your page.
> 
> hth - karthik.
> 
> 
> On 11/2/06, Gurps <[EMAIL PROTECTED]> wrote:
>>
>>
>> Karthik.Nar,
>>
>> I made the change below to Result.java. It seems to work, but is this
>> optimal? Is there a way for the component to automatically find out it's
>> "parent page" to bind the value without using a "double" bucket brigade
>> and/or without using component injection. I'm new to Tapestry still, so
>> might not understand even what i'm talking about!
>> Is this the best practice? Thank you for your advice.
>>
>> Result.java
>> ---
>> package uk.co.gd.dao;
>>
>> import org.apache.tapestry.annotations.InjectComponent;
>> import org.apache.tapestry.event.PageBeginRenderListener;
>> import org.apache.tapestry.event.PageEvent;
>> import org.apache.tapestry.html.BasePage;
>>
>> public abstract class Result extends BasePage implements
>> PageBeginRenderListener {
>>
>> @InjectComponent("searchComponent")
>> public abstract SearchComponent getSearchComponent();
>>
>> public abstract void setSearchText(String searchText);
>> public abstract String getSearchText();
>>
>> public void pageBeginRender(PageEvent event) {
>> if (event.getRequestCycle().isRewinding()) {
>> System.out.println("in pagebeginrender but
>> rewinding");
>> return;
>> }
>>
>> System.out.println("in pagebeginrender not rewinding");
>>
>> ((SearchComponent)
>> getSearchComponent()).setSearchText(getSearchText());
>> }
>> }
>>
>>
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Component-won%27t-remember-value-tf2547494.html#a7142978
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Component won't remember value

2006-11-02 Thread Gurps

Karthik.Nar,

I made the change below to Result.java. It seems to work, but is this
optimal? Is there a way for the component to automatically find out it's
"parent page" to bind the value without using a "double" bucket brigade
and/or without using component injection. I'm new to Tapestry still, so
might not understand even what i'm talking about!
Is this the best practice? Thank you for your advice.

Result.java
---
package uk.co.gd.dao;

import org.apache.tapestry.annotations.InjectComponent;
import org.apache.tapestry.event.PageBeginRenderListener;
import org.apache.tapestry.event.PageEvent;
import org.apache.tapestry.html.BasePage;

public abstract class Result extends BasePage implements
PageBeginRenderListener {

@InjectComponent("searchComponent")
public abstract SearchComponent getSearchComponent();

public abstract void setSearchText(String searchText);
public abstract String getSearchText();

public void pageBeginRender(PageEvent event) {
if (event.getRequestCycle().isRewinding()) {
System.out.println("in pagebeginrender but rewinding");
return;
}

System.out.println("in pagebeginrender not rewinding");

((SearchComponent) 
getSearchComponent()).setSearchText(getSearchText());
}
}



karthik.nar wrote:
> 
> you are setting the searchText on the Result page and not on the
> SearchComponent in the result page.
> 
> since you have the searchText on the Result page you need to now
> "transfer"
> it to the SearchComponent in the result page.
> 
> you can consider setting the searchText of the SearchComponent in the
> pageBeginRender method of Result.java
> 
> On 10/31/06, Gurps <[EMAIL PROTECTED]> wrote:
>>
>>
>> I have 2 pages. A Home.html and a Result.html.
>> I have 1 component (SearchComponent) which is to be SHARED across both
>> pages. The component is a simple textfield.
>>
>> When submitting a value in the first page, it then goes to the result
>> page.
>> However the component don't remember it's value the first time. On
>> subsequent submits it remembers it (probably because you stay on the
>> reult
>> page behind the scenes).
>>
>> Does anyone have any idea what to do? Much appreciated. Here is the
>> simple
>> code:
>>
>> Home.java
>> ---
>> package uk.co.gd.dao;
>>
>> import org.apache.tapestry.html.BasePage;
>>
>> public abstract class Home extends BasePage {
>> }
>>
>>
>> Home.page
>> ---
>> 
>> > Foundation//Tapestry
>> Specification 4.0//EN"
>> "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";>
>>
>> 
>> 
>> 
>>
>>
>> Home.html
>> 
>> 
>> 
>> 
>> 
>> 
>>
>>
>> Result.java
>> 
>> package uk.co.gd.dao;
>>
>> import org.apache.tapestry.html.BasePage;
>>
>> public abstract class Result extends BasePage {
>> public abstract void setSearchText(String searchText);
>> }
>>
>>
>>
>> Result.page
>> --
>> 
>> > Foundation//Tapestry
>> Specification 4.0//EN"
>> "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";>
>>
>> 
>> 
>> 
>>
>>
>> Result.html
>> 
>> 
>> 
>> you entered: 
>> 
>> 
>>
>>
>> SearchComponent.java
>> -
>> package uk.co.gd.dao;
>>
>> import org.apache.tapestry.BaseComponent;
>> import org.apache.tapestry.IPage;
>> import org.apache.tapestry.IRequestCycle;
>> import org.apache.tapestry.annotations.InitialValue;
>> import org.apache.tapestry.annotations.InjectPage;
>>
>> public abstract class SearchComponent extends BaseComponent {
>>
>> @InjectPage("Result")
>> public abstract Result getResultPage();
>>
>> @InitialValue("literal:")
>> public abstract String getSearchText();
>>
>> public IPage onOk(IRequestCycle cycle) {
>> System.out.println(new java.util.Date() + ": over here
>> SearchComponent: "
>> + getSear

RE: how to persist id parameter?

2006-11-02 Thread Gurps



Patrick Casey wrote:
> 
> 
>   I'd warn against using persistent ID objects as keys for edit forms.
> The problem is that Tapestry persists properties on a page/session key. So
> for any given session, page "foo" has a set of persistent properties.
> 
>   Lets say though that you have a page called "editUser".
> 
>   You have a list of users.
>   User clicks open in new tab on bob. 
>   editUser -> Bob opens up. Key = Bob
>   User clicks open in new tab on ted.
>   editUser -> ted opesns up. Key = Ted.
>   User update's bob's entry. 
>   User presses save.
>   Ted's record just got updated.
> 
>   The solution turns out to be stuffing the edited in the form via a
> hidden field. Stuff it on "top" of the form so it bootstraps the record
> during rewind just like you're doing, but don't trust the page to persist
> it
> for you; send it out with the form so you can guarantee it comes back with
> the form.
> 
>   --- Pat
> 
>> -Original Message-
>> From: Steven Wisener [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, July 19, 2005 7:26 PM
>> To: Tapestry users; Jer Kah
>> Subject: Re: how to persist id parameter?
>> 
>> I think he got that far...the problem is posting back to the form. I
>> made the ID property persistent to solve the problem (it is stored in
>> the session, so it won't be null on the second page render), but you
>> should be able to use a Hidden component as well:
>> 
>> In your form, add:
>> 
>> > listener="ognl:listeners.initObject"
>> />
>> 
>> If the rest of the components rely on the object being initialized,
>> make sure it appears first in the form. Your page class should look
>> something like this:
>> 
>> public void pageBeginRender(PageEvent event) {
>> if (getId() != null) {
>> initObject(event.getRequestCycle());
>> }
>> }
>> 
>> public void initObject(IRequestCycle cycle) {
>> setObject(getObjectFromDatabase(getId());
>> }
>> 
>> So here's the basic flow: The first time the page is loaded, the id
>> property is set and initObject loads it. When the form is submitted,
>> the id is not set yet in pageBeginRender, so initObject is not called.
>> When the render hits the Hidden component however, initObject is
>> called because it is its listener method. As long as you only need the
>> object loaded after the Hidden component is rendered in the rewind,
>> you should be golden. I haven't actually tested this out yet, but I
>> think it should work.
>> 
>> --Steven
>> 
>> 
> 
> 
> 

how exactly would you "stuff" the parameter?
Thanks
-- 
View this message in context: 
http://www.nabble.com/how-to-persist-id-parameter--tf129027.html#a7133422
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Component won't remember value

2006-10-31 Thread Gurps

I have 2 pages. A Home.html and a Result.html.
I have 1 component (SearchComponent) which is to be SHARED across both
pages. The component is a simple textfield.

When submitting a value in the first page, it then goes to the result page.
However the component don't remember it's value the first time. On
subsequent submits it remembers it (probably because you stay on the reult
page behind the scenes).

Does anyone have any idea what to do? Much appreciated. Here is the simple
code:

Home.java
---
package uk.co.gd.dao;

import org.apache.tapestry.html.BasePage;

public abstract class Home extends BasePage {
}


Home.page
---

http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";>






Home.html








Result.java

package uk.co.gd.dao;

import org.apache.tapestry.html.BasePage;

public abstract class Result extends BasePage {
public abstract void setSearchText(String searchText);
}



Result.page
--

http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";>






Result.html



you entered: 




SearchComponent.java
-
package uk.co.gd.dao;

import org.apache.tapestry.BaseComponent;
import org.apache.tapestry.IPage;
import org.apache.tapestry.IRequestCycle;
import org.apache.tapestry.annotations.InitialValue;
import org.apache.tapestry.annotations.InjectPage;

public abstract class SearchComponent extends BaseComponent {

@InjectPage("Result")
public abstract Result getResultPage();

@InitialValue("literal:")
public abstract String getSearchText();

public IPage onOk(IRequestCycle cycle) {
System.out.println(new java.util.Date() + ": over here 
SearchComponent: "
+ getSearchText());

if (cycle.isRewinding())
System.out.println(new java.util.Date() + ": over here 
SearchComponent:
rewinding");
else
System.out.println(new java.util.Date() + ": over here 
SearchComponent:
not rewinding");

Result resultPage = getResultPage();
resultPage.setSearchText(getSearchText());
return resultPage;
}
}


SearchComponent.jwc


http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";>














SearchComponent.html










-- 
View this message in context: 
http://www.nabble.com/Component-won%27t-remember-value-tf2547494.html#a7099616
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Page workflow/Border component issue

2006-10-12 Thread Gurps

Hi,

I think i'm missing some fundamentals in the problem below regarding page
flows and border components.

Take a look at my test app at http:// gurpal.dyndns.org: 8080/dwc/app  (i've
put in spaces in this URL to prevent URL mining).

1. In the Search box type in say something like "pop" and you'll see some
results
2. Note that the word "pop" didn't get "saved" inside the search box
3. Now in the SAME page (with the results from previous search) type in say
"beats" and you'll see some results
4. Note that THIS time the word "beats" got saved.

Why doesn't the word that you enter gets saved in the first hit? Here is how
the page is constructed:

1. Border component which contains the header of the page (search box and
some navigation links)
2. A Home page which is quite empty except for a line of text
3. A Result page which shows a simple table via a DB lookup
4. The Border component contains the Go! button listener which then sets the
text in the Result page
5. The Result page then uses the text and performs the DB lookup

Is this the Best Practice method of doing this? I'll be attaching some code
later today, but like to get this thread started if anyone has any ideas.

Thanks,
-- 
View this message in context: 
http://www.nabble.com/Page-workflow-Border-component-issue-tf2428952.html#a6772394
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Search Text

2006-08-17 Thread Gurps

maybe do it using javascript highlighting or more complicated put some sort
of post-filter after rendering the content (don't know how to do it in
tapestry but know via JSP/JSTL)...


Peter Dawn wrote:
> 
> guys,
> is there a component which allows text search. its sort of similar to
> what the tassel site has, but i want the user to search through text,
> as in general paragraphs. this info is not stored in the db but
> locally within that page. so the ability to search within the content
> of a page.
> any ideas.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Search-Text-tf2119682.html#a5847713
Sent from the Tapestry - User forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: what we need: tutorials like this

2006-08-15 Thread Gurps

Absolutely, i already have it. but it just doesn't cover things 100% like
this. As I said it needs to be step by step - take a look at the dotnet
tutorials, escpecially on stuff like rewinding/post-back/data binding.
Believe me, I'd rather be doing Tapestry that ASP.NET !!


karthik.nar wrote:
> 
> get yourself a  copy of Enjoying Web Development with Tapestry by Kent
> Tong.  It's got the tutorial approach to tapestry.
> 
> On 8/15/06, Gurps <[EMAIL PROTECTED]> wrote:
>>
>>
>> We need an equivalent set of tutorials very simiar to the asp.net
>> quicjkstarts tutorial, but with tapestry. Step by step, building on
>> simple
>> examples to more complex ones:
>>
>> http://www.dotnetjunkies.com/quickstart/aspplus/doc/quickstart.aspx
>>
>> This would make tapestry easier to work with and gain more popularity!
>>
>> Cheers
>> --
>> View this message in context:
>> http://www.nabble.com/what-we-need%3A-tutorials-like-this-tf2110281.html#a5817876
>> Sent from the Tapestry - User forum at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> Thanks, Karthik
> 
> 

-- 
View this message in context: 
http://www.nabble.com/what-we-need%3A-tutorials-like-this-tf2110281.html#a5820401
Sent from the Tapestry - User forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



what we need: tutorials like this

2006-08-15 Thread Gurps

We need an equivalent set of tutorials very simiar to the asp.net
quicjkstarts tutorial, but with tapestry. Step by step, building on simple
examples to more complex ones:

http://www.dotnetjunkies.com/quickstart/aspplus/doc/quickstart.aspx

This would make tapestry easier to work with and gain more popularity!

Cheers
-- 
View this message in context: 
http://www.nabble.com/what-we-need%3A-tutorials-like-this-tf2110281.html#a5817876
Sent from the Tapestry - User forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to store the query parameters in a Table component?

2006-08-08 Thread Gurps

Hi, this is exactly my problem too. Have you found the solution? many thanks
-- 
View this message in context: 
http://www.nabble.com/How-to-store-the-query-parameters-in-a-Table-component--tf1685056.html#a5701412
Sent from the Tapestry - User forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]