You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by secam secam <se...@yahoo.fr> on 2004/04/13 17:35:05 UTC

is it possible in tapestry

hi,
 
If i create in my C:/ a file name test.html that contains this:
<html><head></head><body>
<form method="post" name="Form0"
action="/TorqueTapestry/app>
 <input type="hidden" name="service"
 value="direct/1/Test/form"/>
 <input type="hidden" name="sp" value="S0"/>
 <input type="hidden" name="Form0"
 value="user,pass"/>
  <table>
             <tr>
                 <td> Nom </td>
                 <td><input type="text" name="user"
 value=""
 size="12"/></td>
             </tr>
             <tr>
                 <td> Password </td>
                 <td><input type="password"
 name="pass" size="12"/></td>
             </tr>
             <tr align="right">
        <td colspan="2"><input type="submit"
 value="Login"/></td>
     </tr>
         </table>
 </form>
</body></html>
 
and i create a Test.page that contain :
 

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE page-specification

PUBLIC "-//Apache Software Foundation//Tapestry Specification 3.0//EN"

"http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd">

<!-- generated by Spindle, http://spindle.sourceforge.net -->

<page-specification class="Test">

<description><![CDATA[ add a description ]]></description>

<component id="form" type="Form">

<binding name="listener" expression="listeners.formSubmit" />

<binding name="stateful" expression="faux" />

</component> 

<component id="user" type="TextField" >

<binding name="value" expression="visit.username"/>

</component>

<component id="pass" type="TextField" >

<binding name="value" expression="visit.password"/>

</component>

</page-specification>

When i open my test.html can i have an interaction with Tapestry?
 
Thanks,
 
Pierre-Alexandre

		
---------------------------------
Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout !
Créez votre Yahoo! Mail

Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !

Re: is it possible in tapestry

Posted by "Kevin C. Dorff" <kd...@kcp.com>.
As somebody else said, no, just opening a tapestry .html file from your 
C: drive so Windows opens the .html file in Internet Explorer does 
nothing. This is because Tapestry is a SERVER SIDE framework... you need 
a server to do the work of the Tapestry application. Just opening the 
file does nothing. You need a servlet engine installed and a tapestry 
app installed within that servlet engine.

Kevin

secam secam wrote:

>hi,
> 
>If i create in my C:/ a file name test.html that contains this:
><html><head></head><body>
><form method="post" name="Form0"
>action="/TorqueTapestry/app>
> <input type="hidden" name="service"
> value="direct/1/Test/form"/>
> <input type="hidden" name="sp" value="S0"/>
> <input type="hidden" name="Form0"
> value="user,pass"/>
>  <table>
>             <tr>
>                 <td> Nom </td>
>                 <td><input type="text" name="user"
> value=""
> size="12"/></td>
>             </tr>
>             <tr>
>                 <td> Password </td>
>                 <td><input type="password"
> name="pass" size="12"/></td>
>             </tr>
>             <tr align="right">
>        <td colspan="2"><input type="submit"
> value="Login"/></td>
>     </tr>
>         </table>
> </form>
></body></html>
> 
>and i create a Test.page that contain :
> 
>
><?xml version="1.0" encoding="UTF-8"?>
>
><!DOCTYPE page-specification
>
>PUBLIC "-//Apache Software Foundation//Tapestry Specification 3.0//EN"
>
>"http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd">
>
><!-- generated by Spindle, http://spindle.sourceforge.net -->
>
><page-specification class="Test">
>
><description><![CDATA[ add a description ]]></description>
>
><component id="form" type="Form">
>
><binding name="listener" expression="listeners.formSubmit" />
>
><binding name="stateful" expression="faux" />
>
></component> 
>
><component id="user" type="TextField" >
>
><binding name="value" expression="visit.username"/>
>
></component>
>
><component id="pass" type="TextField" >
>
><binding name="value" expression="visit.password"/>
>
></component>
>
></page-specification>
>
>When i open my test.html can i have an interaction with Tapestry?
> 
>Thanks,
> 
>Pierre-Alexandre
>
>		
>---------------------------------
>Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout !
>Créez votre Yahoo! Mail
>
>Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


request-response loop (delegate?)

Posted by Matt Kerr <ma...@centralparksoftware.com>.
dear list -
i was hoping to save information about the visitor/session at >the very 
end< of the request-response loop.  (not on the page, but on like 
Visit/Application/or-something)

i have read the (incomplete?) user's guide and the (obsolete?) 
developer's guide ... but i cant seem to find this one :-/  scanning 
through the api is daunting.

any info appreciated, tia
matt


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


RE: is it possible in tapestry

Posted by "Howard M. Lewis Ship" <hl...@comcast.net>.
We'll be hashing out some ideas on the Wiki once Tapestry 3.1 gets underway.

--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Tapestry: Java Web Components 
Creator, HiveMind
http://howardlewisship.com


> -----Original Message-----
> From: Hunter Kelly [mailto:retnuh@eircom.net] 
> Sent: Tuesday, April 13, 2004 1:10 PM
> To: Tapestry users
> Subject: Re: is it possible in tapestry
> 
> 
> On Tuesday 13 April 2004 17:55, Howard M. Lewis Ship wrote:
> > This isn't the best idea; the way that Tapestry encodes 
> URLs and query
> > parameters is likely to change in the next release.
> >
> 
> Is there any kind of document/Wiki page/roadmap/post to the 
> list/something
> that describes what the new URL plan is?
> 
> I'd love to have a look (or an idea) of what's going to 
> happen - we have to do
> some URL trapping/munging at certain points in our 
> application.  We haven't
> done it yet, because I didn't want to get too down and dirty 
> with Tapestry's
> url stuff - and I may just put it off if there is already a 
> plan for what to 
> do next...
> 
> H
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: is it possible in tapestry

Posted by Hunter Kelly <re...@eircom.net>.
On Tuesday 13 April 2004 17:55, Howard M. Lewis Ship wrote:
> This isn't the best idea; the way that Tapestry encodes URLs and query
> parameters is likely to change in the next release.
>

Is there any kind of document/Wiki page/roadmap/post to the list/something
that describes what the new URL plan is?

I'd love to have a look (or an idea) of what's going to happen - we have to do
some URL trapping/munging at certain points in our application.  We haven't
done it yet, because I didn't want to get too down and dirty with Tapestry's
url stuff - and I may just put it off if there is already a plan for what to 
do next...

H

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Java Script in tapestry

Posted by Robert Zeigler <rd...@u.arizona.edu>.
Take a look at the "script" component. 

http://jakarta.apache.org/tapestry/doc/ComponentReference/Script.html


Robert

Amit wrote:

>Hi ,
>How do we add java script code in tapestry to refer to an element on the
>screen.
>For example in a regular HTML/Java Script code combination w could refer to
>it as
>document.forms[0].<elementName>.<property>
>In the case of tapestry how do we figure out the <element Name >
>
>Thanks
>Amit
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Java Script in tapestry

Posted by Programozás <pr...@hotmail.com>.
You can pass a parameter to the script holding the component instance you'd
like to reference.
Norbi

----- Original Message ----- 
From: "Amit" <am...@coreobjects.com>
To: "Tapestry users" <ta...@jakarta.apache.org>
Sent: Wednesday, April 14, 2004 9:19 AM
Subject: Java Script in tapestry


> Hi ,
> How do we add java script code in tapestry to refer to an element on the
> screen.
> For example in a regular HTML/Java Script code combination w could refer
to
> it as
> document.forms[0].<elementName>.<property>
> In the case of tapestry how do we figure out the <element Name >
>
> Thanks
> Amit
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Java Script in tapestry

Posted by Bryan Lewis <br...@maine.rr.com>.
Two other possibilities:

(1)  Chapter 10 of the Tapestry book shows the use of the Script
component for a similar case, the simple referencing of a form element.

(2)  Give the form element an explicit name (e.g., jwcid="myFieldName")
for reference from javascript.  Here's a text field that can be filled
by a <select> list.

    <input jwcid="categoryField@TextField" size="15"
value="ognl:data.category"/>
    <select jwcid="@Select"
onchange="this.form.categoryField.value=this.options[this.selectedIndex]
.text">
        <span jwcid="@Foreach" source="ognl:categories"
value="ognl:currentCategory">
            <span jwcid="@Option" label="ognl:currentCategory"
selected="ognl:categorySelected"/>
        </span>
    </select>


----- Original Message ----- 
From: "Amit" <am...@coreobjects.com>
To: "Tapestry users" <ta...@jakarta.apache.org>
Sent: Wednesday, April 14, 2004 3:19 AM
Subject: Java Script in tapestry


> Hi ,
> How do we add java script code in tapestry to refer to an element on
the
> screen.
> For example in a regular HTML/Java Script code combination w could
refer to
> it as
> document.forms[0].<elementName>.<property>
> In the case of tapestry how do we figure out the <element Name >
>
> Thanks
> Amit
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Java Script in tapestry

Posted by Amit <am...@coreobjects.com>.
Hi ,
How do we add java script code in tapestry to refer to an element on the
screen.
For example in a regular HTML/Java Script code combination w could refer to
it as
document.forms[0].<elementName>.<property>
In the case of tapestry how do we figure out the <element Name >

Thanks
Amit



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


RE: is it possible in tapestry

Posted by "Howard M. Lewis Ship" <hl...@comcast.net>.
Chapter 8 in the book -- JSP / Tapestry integration via the Tapestry JSP taglib.

--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Tapestry: Java Web Components 
Creator, HiveMind
http://howardlewisship.com


> -----Original Message-----
> From: secam secam [mailto:secam2004@yahoo.fr] 
> Sent: Wednesday, April 14, 2004 2:58 AM
> To: Tapestry users
> Subject: RE: is it possible in tapestry
> 
> 
> Can you explain a bit more your solution?
> Does that mean that it's possible to integrate a
> servlet in tapestry that interact with it ?
> 
> Pierre-Alexandre
> 
>  --- "Howard M. Lewis Ship" <hl...@comcast.net> a
> écrit : > This isn't the best idea; the way that
> Tapestry
> > encodes URLs and query parameters is likely to
> > change in the next release.
> > 
> > Better to have a standard HTML form submit to an
> > external page (much less guesswork in the URL),
> > then have servlet-style code inside
> > activateExternalPage() to dig out query parameters.
> > 
> > --
> > Howard M. Lewis Ship
> > Independent J2EE / Open-Source Java Consultant
> > Creator, Tapestry: Java Web Components 
> > Creator, HiveMind
> > http://howardlewisship.com
> > 
> > 
> > > -----Original Message-----
> > > From: secam secam [mailto:secam2004@yahoo.fr] 
> > > Sent: Tuesday, April 13, 2004 11:35 AM
> > > To: tapestry-user@jakarta.apache.org
> > > Subject: is it possible in tapestry
> > > 
> > > 
> > > hi,
> > >  
> > > If i create in my C:/ a file name test.html that
> > contains this:
> > > <html><head></head><body>
> > > <form method="post" name="Form0"
> > > action="/TorqueTapestry/app>
> > >  <input type="hidden" name="service"
> > >  value="direct/1/Test/form"/>
> > >  <input type="hidden" name="sp" value="S0"/>
> > >  <input type="hidden" name="Form0"
> > >  value="user,pass"/>
> > >   <table>
> > >              <tr>
> > >                  <td> Nom </td>
> > >                  <td><input type="text"
> > name="user"
> > >  value=""
> > >  size="12"/></td>
> > >              </tr>
> > >              <tr>
> > >                  <td> Password </td>
> > >                  <td><input type="password"
> > >  name="pass" size="12"/></td>
> > >              </tr>
> > >              <tr align="right">
> > >         <td colspan="2"><input type="submit"
> > >  value="Login"/></td>
> > >      </tr>
> > >          </table>
> > >  </form>
> > > </body></html>
> > >  
> > > and i create a Test.page that contain :
> > >  
> > > 
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > 
> > > <!DOCTYPE page-specification
> > > 
> > > PUBLIC "-//Apache Software Foundation//Tapestry
> > Specification 3.0//EN"
> > > 
> >
> "http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd">
> > 
> > <!-- generated by Spindle,
> > http://spindle.sourceforge.net -->
> > 
> > <page-specification class="Test">
> > 
> > <description><![CDATA[ add a description
> > ]]></description>
> > 
> > <component id="form" type="Form">
> > 
> > <binding name="listener"
> > expression="listeners.formSubmit" />
> > 
> > <binding name="stateful" expression="faux" />
> > 
> > </component> 
> > 
> > <component id="user" type="TextField" >
> > 
> > <binding name="value" expression="visit.username"/>
> > 
> > </component>
> > 
> > <component id="pass" type="TextField" >
> > 
> > <binding name="value" expression="visit.password"/>
> > 
> > </component>
> > 
> > </page-specification>
> > 
> > When i open my test.html can i have an interaction
> > with Tapestry?
> >  
> > Thanks,
> >  
> > Pierre-Alexandre
> > 
> > 		
> > ---------------------------------
> > Yahoo! Mail : votre e-mail personnel et gratuit qui
> > vous suit partout !
> > Créez votre Yahoo! Mail
> > 
> > Dialoguez en direct avec vos amis grâce à Yahoo!
> > Messenger !
> > 
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > tapestry-user-help@jakarta.apache.org
> >  
> 
> 
> 	
> 
> 	
> 		
> Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit 
> partout ! 
> Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/
> 
> Dialoguez en direct avec vos amis grâce à Yahoo! Messenger 
> !Téléchargez Yahoo! Messenger sur http://fr.messenger.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


RE: is it possible in tapestry

Posted by secam secam <se...@yahoo.fr>.
Can you explain a bit more your solution?
Does that mean that it's possible to integrate a
servlet in tapestry that interact with it ?

Pierre-Alexandre

 --- "Howard M. Lewis Ship" <hl...@comcast.net> a
écrit : > This isn't the best idea; the way that
Tapestry
> encodes URLs and query parameters is likely to
> change in the next release.
> 
> Better to have a standard HTML form submit to an
> external page (much less guesswork in the URL),
> then have servlet-style code inside
> activateExternalPage() to dig out query parameters.
> 
> --
> Howard M. Lewis Ship
> Independent J2EE / Open-Source Java Consultant
> Creator, Tapestry: Java Web Components 
> Creator, HiveMind
> http://howardlewisship.com
> 
> 
> > -----Original Message-----
> > From: secam secam [mailto:secam2004@yahoo.fr] 
> > Sent: Tuesday, April 13, 2004 11:35 AM
> > To: tapestry-user@jakarta.apache.org
> > Subject: is it possible in tapestry
> > 
> > 
> > hi,
> >  
> > If i create in my C:/ a file name test.html that
> contains this:
> > <html><head></head><body>
> > <form method="post" name="Form0"
> > action="/TorqueTapestry/app>
> >  <input type="hidden" name="service"
> >  value="direct/1/Test/form"/>
> >  <input type="hidden" name="sp" value="S0"/>
> >  <input type="hidden" name="Form0"
> >  value="user,pass"/>
> >   <table>
> >              <tr>
> >                  <td> Nom </td>
> >                  <td><input type="text"
> name="user"
> >  value=""
> >  size="12"/></td>
> >              </tr>
> >              <tr>
> >                  <td> Password </td>
> >                  <td><input type="password"
> >  name="pass" size="12"/></td>
> >              </tr>
> >              <tr align="right">
> >         <td colspan="2"><input type="submit"
> >  value="Login"/></td>
> >      </tr>
> >          </table>
> >  </form>
> > </body></html>
> >  
> > and i create a Test.page that contain :
> >  
> > 
> > <?xml version="1.0" encoding="UTF-8"?>
> > 
> > <!DOCTYPE page-specification
> > 
> > PUBLIC "-//Apache Software Foundation//Tapestry
> Specification 3.0//EN"
> > 
>
"http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd">
> 
> <!-- generated by Spindle,
> http://spindle.sourceforge.net -->
> 
> <page-specification class="Test">
> 
> <description><![CDATA[ add a description
> ]]></description>
> 
> <component id="form" type="Form">
> 
> <binding name="listener"
> expression="listeners.formSubmit" />
> 
> <binding name="stateful" expression="faux" />
> 
> </component> 
> 
> <component id="user" type="TextField" >
> 
> <binding name="value" expression="visit.username"/>
> 
> </component>
> 
> <component id="pass" type="TextField" >
> 
> <binding name="value" expression="visit.password"/>
> 
> </component>
> 
> </page-specification>
> 
> When i open my test.html can i have an interaction
> with Tapestry?
>  
> Thanks,
>  
> Pierre-Alexandre
> 
> 		
> ---------------------------------
> Yahoo! Mail : votre e-mail personnel et gratuit qui
> vous suit partout !
> Créez votre Yahoo! Mail
> 
> Dialoguez en direct avec vos amis grâce à Yahoo!
> Messenger !
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tapestry-user-help@jakarta.apache.org
>  


	

	
		
Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout ! 
Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/

Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !Téléchargez Yahoo! Messenger sur http://fr.messenger.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


RE: is it possible in tapestry

Posted by "Howard M. Lewis Ship" <hl...@comcast.net>.
This isn't the best idea; the way that Tapestry encodes URLs and query parameters is likely to
change in the next release.

Better to have a standard HTML form submit to an external page (much less guesswork in the URL),
then have servlet-style code inside activateExternalPage() to dig out query parameters.

--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Tapestry: Java Web Components 
Creator, HiveMind
http://howardlewisship.com


> -----Original Message-----
> From: secam secam [mailto:secam2004@yahoo.fr] 
> Sent: Tuesday, April 13, 2004 11:35 AM
> To: tapestry-user@jakarta.apache.org
> Subject: is it possible in tapestry
> 
> 
> hi,
>  
> If i create in my C:/ a file name test.html that contains this:
> <html><head></head><body>
> <form method="post" name="Form0"
> action="/TorqueTapestry/app>
>  <input type="hidden" name="service"
>  value="direct/1/Test/form"/>
>  <input type="hidden" name="sp" value="S0"/>
>  <input type="hidden" name="Form0"
>  value="user,pass"/>
>   <table>
>              <tr>
>                  <td> Nom </td>
>                  <td><input type="text" name="user"
>  value=""
>  size="12"/></td>
>              </tr>
>              <tr>
>                  <td> Password </td>
>                  <td><input type="password"
>  name="pass" size="12"/></td>
>              </tr>
>              <tr align="right">
>         <td colspan="2"><input type="submit"
>  value="Login"/></td>
>      </tr>
>          </table>
>  </form>
> </body></html>
>  
> and i create a Test.page that contain :
>  
> 
> <?xml version="1.0" encoding="UTF-8"?>
> 
> <!DOCTYPE page-specification
> 
> PUBLIC "-//Apache Software Foundation//Tapestry Specification 3.0//EN"
> 
"http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd">

<!-- generated by Spindle, http://spindle.sourceforge.net -->

<page-specification class="Test">

<description><![CDATA[ add a description ]]></description>

<component id="form" type="Form">

<binding name="listener" expression="listeners.formSubmit" />

<binding name="stateful" expression="faux" />

</component> 

<component id="user" type="TextField" >

<binding name="value" expression="visit.username"/>

</component>

<component id="pass" type="TextField" >

<binding name="value" expression="visit.password"/>

</component>

</page-specification>

When i open my test.html can i have an interaction with Tapestry?
 
Thanks,
 
Pierre-Alexandre

		
---------------------------------
Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout !
Créez votre Yahoo! Mail

Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org