Re: T3: Stop back button

2008-06-01 Thread zack1403

Do you really think this is the right thread for that question? Also, I doubt
posting the same question twice will increase your chances of having it
answered. In relation to your question, just make sure that the user cant
access or makes changes to the survey if it has already been submitted .
Don't take the back button away from users. If you need more help, I would
start another topic (but really I would just do some basic research before
posting again).

Zack


James Sherwood wrote:
> 
> Hello,
> 
> Our application submits a form then shows the results(like a survey form). 
> Problem is the users can hit the browser's back button and see the form 
> again and we do not want that.  Any ideas how to make it show anything but 
> the form?
> 
> --James
> 
> - Original Message - 
> From: "Javier Sanchez" <[EMAIL PROTECTED]>
> To: "Tapestry users" 
> Sent: Friday, May 30, 2008 6:46 PM
> Subject: Re: T3: Stop back button
> 
> 
>> Isn't obvious?  What exactly do you want your application to do?
>>
>> On Fri, May 30, 2008 at 1:46 PM, James Sherwood 
>> <[EMAIL PROTECTED]>
>> wrote:
>>
>>> Hello all,
>>>
>>> We are using tapestry 3.  We need to make it so when a user submits a 
>>> form
>>> and then presses the back button, it does not show them the form.
>>>
>>> Any ideas?
>>>
>>> --James
>>>
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>>
>>
>> __ Information from ESET Smart Security, version of virus 
>> signature database 3148 (20080530) __
>>
>> The message was checked by ESET Smart Security.
>>
>> http://www.eset.com
>> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-call-service-during-startup--tp17558546p17594477.html
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: t5-components MultipleSelect use

2008-06-01 Thread zack1403

One last issue if i persist my list thats going into the value attribute
it all works fine until i refresh the page once.  At which point i get this:
object is not an instance of declaring class.  Any idea what that might be? 
Originates at
org.apache.tapestry.commons.models.GenericMultipleSelectModel.getOptions(GenericMultipleSelectModel.java:83)

Any thoughts?

Zack

zack1403 wrote:
> 
> That actually did help being able to look through the code (some links are
> broken from the 87.193.218.134 site).  My issue that I was trying hard to
> just have strings in the list.  It looks like a getter is required to pull
> a value so once i created an object with one attribute (value) i was able
> to get it working.  Is there a way I was missing to get it to work with
> just a list of strings? Are their plans for a multiple select checkbox
> component similar to this?
> 
> Thanks for the help,
> Zack
> 
> 

-- 
View this message in context: 
http://www.nabble.com/t5-components-MultipleSelect-use-tp17524086p17594119.html
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: T5 tapestry-hibernate

2008-06-01 Thread sparqle

I figured it out. I was missing some dependencies. It works now.


sparqle wrote:
> 
> I have read all the help documents, but can't figure out how to make
> tapestry-hibernate work. I am not using maven. I am using the t5demo war
> file from the "Tapestry for Non Believers" article as a starting point
> (and imported it into Eclipse). I removed all the tapestry-5.0.10 jars and
> put in 5.0.11 jars (including tapestry-hibernate).
> 
> Then I did the following:
> 1. Added hibernate3.jar and hibernate-annotations files into the lib
> folder
> 2. Added mysql jdbc driver file into the lib folder
> 3. Added hibernate.cfg.xml (copied from Howard's forms - part 2 article -
> modified username/pw/db etc) to the WebContent folder.
> 4. Created a db with the appropriate name.
> 5. Got the persistence-api.jar and jta.jar files into the lib folder.
> 
> 
> If I start the application, I always get the following error message: 
> 
> Render queue error in BeginRender[Start:layout.pagelink_0]: Exception
> constructing service 'ValueEncoderSource': Error invoking service builder
> method org.apache.tapestry.services.TapestryModule.build(Map) (at
> TapestryModule.java:1567) (for service 'ValueEncoderSource'): Error
> invoking service contribution method
> org.apache.tapestry.hibernate.HibernateModule.contributeValueEncoderSource(MappedConfiguration,
> HibernateSessionSource, Session, TypeCoercer): Exception constructing
> service 'HibernateSessionSource': Error invoking service builder method
> org.apache.tapestry.hibernate.HibernateModule.build(Logger, List,
> RegistryShutdownHub) (at HibernateModule.java:124) (for service
> 'HibernateSessionSource'): org/dom4j/DocumentException
>  
> Do I need to add anything to AppModule to enable tapestry-hibernate, or is
> it not finding my hibernate.cfg.xml file? I also tried putting my
> hibernate.cfg.xml file into the src folder - but that didn't help. I am
> wondering whether this error has to do with Hibernate Annotations etc?
> Someone had mentioned in the forum that the wrong version of Hibernate
> could cause this. I have tried both 3.2.6 and 3.2.2 and I still get the
> same message. If I remove tapestry-hibernate, at least the application
> starts.
> 
> Here are the contents of my hibernate.cfg.xml file
> 
>  "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
>
> "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd";>
> 
> 
>  name="hibernate.connection.driver_class">com.mysql.jdbc.Driver
>  name="hibernate.connection.url">jdbc:mysql://localhost:3306/mydb
>  name="hibernate.dialect">org.hibernate.dialect.MySQL5InnoDBDialect
> un
> mypass
> update
> false
> true
> 
> 
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5-tapestry-hibernate-tp17591952p17592698.html
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: Equivalent of jwcid="$content$" in T5

2008-06-01 Thread Robert Zeigler
t:container doesn't exclude it's children.  Tapestry templates have to  
be valid xml documents.  That means there has to be a single root  
element. It's often inconvenient to have to have such a single root  
element in components. Imagine, for example, a component that renders  
a subset of cells of a table row; you don't want to surround that  
with, eg, a div, because the div will be output, as well, and that  
would result in invalid (x)html (or, at the very least, semantically  
incorrect (x)html), along the lines of: ...tr> (div's aren't supposed to go around td's).


 was created to circumvent the problem, by providing a  
"root" element which won't be rendered (so you would do:  
.. in the above example).   As  
a side effect, some users have reported that content outside of the  
 element isn't rendered.  I haven't duplicated that  
behavior.  And it's quite contrary to what  is supposed  
to do, since it's supposed to be a root element.


Short answer is that there is currently /no/ equivalent in T5 of  
$content$


Robert

On Jun 1, 2008, at 6/17:50 PM , Andrew Pietsch wrote:


Hi Robert,

Thanks for that.  As I see it  seems to be the inverse  
of what

I want.  It excludes it's children from the output, whereas $content$
excludes everything but its children from the output.

Does anyone know if the equivalent functionality is planned?

Cheers
Andrew


On Mon, Jun 2, 2008 at 9:51 AM, Robert Zeigler <[EMAIL PROTECTED]>  
wrote:



$content$ is NOT the same as 

 is the equivalent to the T3 "RenderBody" component.

The closest thing to $content$ is , but even that  
isn't quite

the same thing as $content$.

Robert


On Jun 1, 2008, at 6/16:07 PM , Marcus wrote:

Hi Andrew,


$content$  =   (

http://tapestry.formos.com/nightly/tapestry5/tapestry-core/guide/templates.html
)

for $remove$ you can use t5components/remove or search on list for  
"public

class Remove"


Marcus




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





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



Re: Equivalent of jwcid="$content$" in T5

2008-06-01 Thread Marcus
Hi Andrew,

Sorry about $content$, Robert is right about T5  and T3 RenderBody.

Marcus


Re: Equivalent of jwcid="$content$" in T5

2008-06-01 Thread Andrew Pietsch
Cool, thanks for that.

On Sun, Jun 1, 2008 at 7:17 PM, Igor Drobiazko <[EMAIL PROTECTED]>
wrote:

>
> http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/components/Remove.html
>
> On Sun, Jun 1, 2008 at 10:17 AM, Jabbar <[EMAIL PROTECTED]> wrote:
>
> > Hello Andrew,
> >
> > I assume you are trying to create a border component with your use of
> > $content$ and $remove$, in which case you can use the Layout
> > component. However if you are trying to $remove$ a tag from some html
> > returned to you by your designer, sorry cant' help! If you find or if
> > somebody else knows please let us know.
> >
> >
> >
> > 2008/6/1 Andrew Pietsch <[EMAIL PROTECTED]>:
> > > Hi all,
> > >
> > > Does T5 have an equivalent of the $content$ and $remove$ components
> found
> > in
> > > previous versions?  I've been looking but can't seem to find anything
> > > (except perhaps the DiscardBody body mixin for $remove$).
> > >
> > > Thanks
> > > Andrew
> > >
> >
> >
> >
> > --
> > Thanks
> >
> >  A Jabbar Azam
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Best regards,
>
> Igor Drobiazko
>


Re: Equivalent of jwcid="$content$" in T5

2008-06-01 Thread Andrew Pietsch
Hi Robert,

Thanks for that.  As I see it  seems to be the inverse of what
I want.  It excludes it's children from the output, whereas $content$
excludes everything but its children from the output.

Does anyone know if the equivalent functionality is planned?

Cheers
Andrew


On Mon, Jun 2, 2008 at 9:51 AM, Robert Zeigler <[EMAIL PROTECTED]> wrote:

> $content$ is NOT the same as 
>
>  is the equivalent to the T3 "RenderBody" component.
>
> The closest thing to $content$ is , but even that isn't quite
> the same thing as $content$.
>
> Robert
>
>
> On Jun 1, 2008, at 6/16:07 PM , Marcus wrote:
>
>  Hi Andrew,
>>
>> $content$  =   (
>>
>> http://tapestry.formos.com/nightly/tapestry5/tapestry-core/guide/templates.html
>> )
>>
>> for $remove$ you can use t5components/remove or search on list for "public
>> class Remove"
>>
>>
>> Marcus
>>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Equivalent of jwcid="$content$" in T5

2008-06-01 Thread Andrew Pietsch
Howdy,

I'm actually trying to instrument pre-exising HTML with tapestry
components.  As such the common style marking is duplicated in many files
and I need to remove it (since my layout component provides it).   The best
way for me to do that in the past has been to use the $content$ component as
it causes tapestry to ignore any markup outside that component.

Cheers

On Sun, Jun 1, 2008 at 6:17 PM, Jabbar <[EMAIL PROTECTED]> wrote:

> Hello Andrew,
>
> I assume you are trying to create a border component with your use of
> $content$ and $remove$, in which case you can use the Layout
> component. However if you are trying to $remove$ a tag from some html
> returned to you by your designer, sorry cant' help! If you find or if
> somebody else knows please let us know.
>
>
>
> 2008/6/1 Andrew Pietsch <[EMAIL PROTECTED]>:
> > Hi all,
> >
> > Does T5 have an equivalent of the $content$ and $remove$ components found
> in
> > previous versions?  I've been looking but can't seem to find anything
> > (except perhaps the DiscardBody body mixin for $remove$).
> >
> > Thanks
> > Andrew
> >
>
>
>
> --
> Thanks
>
>  A Jabbar Azam
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Equivalent of jwcid="$content$" in T5

2008-06-01 Thread Robert Zeigler

$content$ is NOT the same as 

 is the equivalent to the T3 "RenderBody" component.

The closest thing to $content$ is , but even that isn't  
quite the same thing as $content$.


Robert

On Jun 1, 2008, at 6/16:07 PM , Marcus wrote:


Hi Andrew,

$content$  =   (
http://tapestry.formos.com/nightly/tapestry5/tapestry-core/guide/templates.html
)

for $remove$ you can use t5components/remove or search on list for  
"public

class Remove"


Marcus



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



T5 tapestry-hibernate

2008-06-01 Thread sparqle

I have read all the help documents, but can't figure out how to make
tapestry-hibernate work. I am not using maven. I am using the t5demo war
file from the "Tapestry for Non Believers" article as a starting point (and
imported it into Eclipse). I removed all the tapestry-5.0.10 jars and put in
5.0.11 jars (including tapestry-hibernate).

Then I did the following:
1. Added hibernate3.jar and hibernate-annotations files into the lib folder
2. Added mysql jdbc driver file into the lib folder
3. Added hibernate.cfg.xml (copied from Howard's forms - part 2 article -
modified username/pw/db etc) to the WebContent folder.
4. Created a db with the appropriate name.
5. Got the persistence-api.jar and jta.jar files into the lib folder.


If I start the application, I always get the following error message: 

Render queue error in BeginRender[Start:layout.pagelink_0]: Exception
constructing service 'ValueEncoderSource': Error invoking service builder
method org.apache.tapestry.services.TapestryModule.build(Map) (at
TapestryModule.java:1567) (for service 'ValueEncoderSource'): Error invoking
service contribution method
org.apache.tapestry.hibernate.HibernateModule.contributeValueEncoderSource(MappedConfiguration,
HibernateSessionSource, Session, TypeCoercer): Exception constructing
service 'HibernateSessionSource': Error invoking service builder method
org.apache.tapestry.hibernate.HibernateModule.build(Logger, List,
RegistryShutdownHub) (at HibernateModule.java:124) (for service
'HibernateSessionSource'): org/dom4j/DocumentException
 
Do I need to add anything to AppModule to enable tapestry-hibernate, or is
it not finding my hibernate.cfg.xml file? I also tried putting my
hibernate.cfg.xml file into the src folder - but that didn't help. I am
wondering whether this error has to do with Hibernate Annotations etc?
Someone had mentioned in the forum that the wrong version of Hibernate could
cause this. I have tried both 3.2.6 and 3.2.2 and I still get the same
message. If I remove tapestry-hibernate, at least the application starts.

Here are the contents of my hibernate.cfg.xml file

http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd";>


com.mysql.jdbc.Driver
jdbc:mysql://localhost:3306/mydb
org.hibernate.dialect.MySQL5InnoDBDialect
un
mypass
update
false
true





-- 
View this message in context: 
http://www.nabble.com/T5-tapestry-hibernate-tp17591952p17591952.html
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: Equivalent of jwcid="$content$" in T5

2008-06-01 Thread Marcus
Hi Andrew,

$content$  =   (
http://tapestry.formos.com/nightly/tapestry5/tapestry-core/guide/templates.html
)

for $remove$ you can use t5components/remove or search on list for "public
class Remove"


Marcus


Re: T3: Stop back button

2008-06-01 Thread James Sherwood

Hello,

Our application submits a form then shows the results(like a survey form). 
Problem is the users can hit the browser's back button and see the form 
again and we do not want that.  Any ideas how to make it show anything but 
the form?


--James

- Original Message - 
From: "Javier Sanchez" <[EMAIL PROTECTED]>

To: "Tapestry users" 
Sent: Friday, May 30, 2008 6:46 PM
Subject: Re: T3: Stop back button



Isn't obvious?  What exactly do you want your application to do?

On Fri, May 30, 2008 at 1:46 PM, James Sherwood 
<[EMAIL PROTECTED]>

wrote:


Hello all,

We are using tapestry 3.  We need to make it so when a user submits a 
form

and then presses the back button, it does not show them the form.

Any ideas?

--James



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






__ Information from ESET Smart Security, version of virus 
signature database 3148 (20080530) __


The message was checked by ESET Smart Security.

http://www.eset.com




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



Re: T5 OnActivate

2008-06-01 Thread maxthesecond

Yes there was an image

I use the tree component found in 

http://wiki.apache.org/tapestry/Tapestry5HowToCreateYourOwnComponents


In it, there is a javascript in which two icons are used the tipical + and -
icons to represent opened and closed folders, those icons are aded on the
window.onload event, it creates in img object and ataches it's src to a
string holding the path to images (in my case images/)


In another page wich also uses the tree component the
baseUri="http//localhost:8080/app/testtree"
and the generated src="http//localhost:8080/app/images/dhtmlgoodies.gif"

and indeed my images are in webapp/images  so everithing goes fine.


On the new page Im building the
baseUri="http//localhost:8080/app/admin/page/0"
and the generated source is
src="http//localhost:8080/app/admin/page/images/dhtmlgoodies.gif

So the problem seems not to be related at all to the onActivate method but
rather to jscript, in the first case as my page was just one level above the
root level, the constructed src matched the image, but if the page is
further levels depth the src only removes the last one and tapestry
interprets it as a call to the correct page with a weird context.

How to solve it? don't know I'll try tomorrow!
thanks


 













-- 
View this message in context: 
http://www.nabble.com/T5-OnActivate-tp17583640p17590070.html
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: t5-components MultipleSelect use

2008-06-01 Thread zack1403

That actually did help being able to look through the code (some links are
broken from the 87.193.218.134 site).  My issue that I was trying hard to
just have strings in the list.  It looks like a getter is required to pull a
value so once i created an object with one attribute (value) i was able to
get it working.  Is there a way I was missing to get it to work with just a
list of strings? Are their plans for a multiple select checkbox component
similar to this?

Thanks for the help,
Zack


Weisu wrote:
> 
> Hi Zack, please look at the t5component demo site @
> http://87.193.218.134:8080/t5c-demo/multipleselectpage, the java source  @
> http://tapestry5-components.googlecode.com/svn/trunk/demo/src/main/java/org/apache/tapestry/demo/pages/MultipleSelectPage.java,
> the tml @
> http://tapestry5-components.googlecode.com/svn/trunk/demo/src/main/resources/org/apache/tapestry/demo/pages/MultipleSelectPage.tml
> 
> zack1403 wrote:
>> 
>> @
>> http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/components/MultipleSelect.html
>> the docs say its not required but I guess I need it.  Do you have a
>> snippet similar to what you gave for selectModel?  Or further
>> documentation on initiating an instance of a select model
>> 
>> Thanks,
>> Zack
>> 
>> Weisu wrote:
>>> 
>>> You need to define encoder in your tml file, this is my:
>>> >> encoder="selectModel" 
>>> model="selectModel"
>>> value="selectedDistricts"/>
>>> 
>>> 
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/t5-components-MultipleSelect-use-tp17524086p17588928.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Tap 5.0.12 snapshot: How to access the application wide message catalog in a contribution

2008-06-01 Thread Shing Hing Man
Hi,
  In a contribution to a  StrategyBuilder configuration, I would like to 
access the application wide messaga catalog.  


public static IComputeWorker buildComputeWorker(
Map configuration,
@InjectService("StrategyBuilder")
StrategyBuilder builder) {
StrategyRegistry registry = StrategyRegistry
.newInstance(IComputeWorker.class, 
configuration);

return builder.build(registry);
}


public static void contributeComputeWorker(
MappedConfiguration 
configuration,
@InjectService("MaximaScriptExecuter")
IScriptExecuter maximaScriptExecuter,
Messages applWideCatalog) {
configuration.add(CrtBean.class, new CrtCW());

DerivativeCW derivativeCW = new DerivativeCW();
// Like to do : derivativeCW.setProperty(a value from  
applWideCatalog)

derivativeCW.setExecuter(maximaScriptExecuter);

configuration.add(DerivativeBean.class, derivativeCW);
Tex2ImCW tex2imWorker = new Tex2ImCW();
configuration.add(Latex2GifBean.class, tex2imWorker);

}


How to make the application wide catalog available in the above  method 
contributeComputeWorker?
Thanks in advance for any assistance!

Shing


Home page : http://www.lombok.demon.co.uk/



  __
Sent from Yahoo! Mail.
A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html

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



Re: [T5]How to change the asset url prefix?

2008-06-01 Thread Sven Homburg
i forgotten:

the URIAssetAliasManager is only availble in the t5components-SNAPSHOT


2008/6/1 Sven Homburg <[EMAIL PROTECTED]>:

> the t5components library contains an URIAssetAliasManager
> let you point to asset location via unified resource 
> identifier
>
> sample:
> @Inject
> @Path("uri:ftp://somehost/mypic.png";)
> private Asset myRemoteAsset
>
> 2008/6/1 Jun Tsai <[EMAIL PROTECTED]>:
>
> My all assets (images,javascripts) are placed on other server machine.I
>> want
>> to change the T5 application's asset prefix url.How to?
>>
>> Thanks.
>> --
>> regards,
>> Jun Tsai
>>
>
>
>
> --
> with regards
> Sven Homburg
> http://tapestry5-components.googlecode.com
> http://chenillekit.googlecode.com




-- 
with regards
Sven Homburg
http://tapestry5-components.googlecode.com
http://chenillekit.googlecode.com


Re: t5-components MultipleSelect use

2008-06-01 Thread Weisu

Hi Zack, please look at the t5component demo site @
http://87.193.218.134:8080/t5c-demo/multipleselectpage, the java source  @
http://tapestry5-components.googlecode.com/svn/trunk/demo/src/main/java/org/apache/tapestry/demo/pages/MultipleSelectPage.java,
the tml @
http://tapestry5-components.googlecode.com/svn/trunk/demo/src/main/resources/org/apache/tapestry/demo/pages/MultipleSelectPage.tml

zack1403 wrote:
> 
> @
> http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/components/MultipleSelect.html
> the docs say its not required but I guess I need it.  Do you have a
> snippet similar to what you gave for selectModel?  Or further
> documentation on initiating an instance of a select model
> 
> Thanks,
> Zack
> 
> Weisu wrote:
>> 
>> You need to define encoder in your tml file, this is my:
>> >  encoder="selectModel" 
>>  model="selectModel"
>>  value="selectedDistricts"/>
>> 
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/t5-components-MultipleSelect-use-tp17524086p17584228.html
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: [T5]How to change the asset url prefix?

2008-06-01 Thread Sven Homburg
the t5components library contains an URIAssetAliasManager
let you point to asset location via unified resource
identifier

sample:
@Inject
@Path("uri:ftp://somehost/mypic.png";)
private Asset myRemoteAsset

2008/6/1 Jun Tsai <[EMAIL PROTECTED]>:

> My all assets (images,javascripts) are placed on other server machine.I
> want
> to change the T5 application's asset prefix url.How to?
>
> Thanks.
> --
> regards,
> Jun Tsai
>



-- 
with regards
Sven Homburg
http://tapestry5-components.googlecode.com
http://chenillekit.googlecode.com


T5 OnActivate

2008-06-01 Thread maxthesecond

I have a page with (for the moment) three components a layout, a tree
component and a tree navigator.The tree navigator displays the path to your
current displayed categories ex categories/cars/pickups, the tree component
shows as a list, the elements of the current category ex(nisan,ford,toyota)
wich can be selected to go deep in the category tree.

Now, to move arround the categories the navigator is build with pagelinks
and context containing the id of the category, in the page I have the
onActivate(int category) function to change current category and to call the
tree component for loading it with the selected category childs.

On the tree I've implemented an event also containing the id, in the handler
I set the current category and also call the component tree to fill with
it's new id.

The issue is that 1)everithing is ok throug the tree component event
   2)the onActivate handler works apparently ok (all
elements are well formed and consistent) but looking at the console I found
an exception that tells me that cannot coerce "images" to string

I've see several post concerning this cast issue,If I remove the call to the
tree component to fill then I get no more console exception, but of course
the tree is no longer filled.

BTW there are no "images" anywhere

Thanks
 
-- 
View this message in context: 
http://www.nabble.com/T5-OnActivate-tp17583640p17583640.html
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: Equivalent of jwcid="$content$" in T5

2008-06-01 Thread Igor Drobiazko
http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/components/Remove.html

On Sun, Jun 1, 2008 at 10:17 AM, Jabbar <[EMAIL PROTECTED]> wrote:

> Hello Andrew,
>
> I assume you are trying to create a border component with your use of
> $content$ and $remove$, in which case you can use the Layout
> component. However if you are trying to $remove$ a tag from some html
> returned to you by your designer, sorry cant' help! If you find or if
> somebody else knows please let us know.
>
>
>
> 2008/6/1 Andrew Pietsch <[EMAIL PROTECTED]>:
> > Hi all,
> >
> > Does T5 have an equivalent of the $content$ and $remove$ components found
> in
> > previous versions?  I've been looking but can't seem to find anything
> > (except perhaps the DiscardBody body mixin for $remove$).
> >
> > Thanks
> > Andrew
> >
>
>
>
> --
> Thanks
>
>  A Jabbar Azam
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Best regards,

Igor Drobiazko


Re: Equivalent of jwcid="$content$" in T5

2008-06-01 Thread Jabbar
Hello Andrew,

I assume you are trying to create a border component with your use of
$content$ and $remove$, in which case you can use the Layout
component. However if you are trying to $remove$ a tag from some html
returned to you by your designer, sorry cant' help! If you find or if
somebody else knows please let us know.



2008/6/1 Andrew Pietsch <[EMAIL PROTECTED]>:
> Hi all,
>
> Does T5 have an equivalent of the $content$ and $remove$ components found in
> previous versions?  I've been looking but can't seem to find anything
> (except perhaps the DiscardBody body mixin for $remove$).
>
> Thanks
> Andrew
>



-- 
Thanks

 A Jabbar Azam

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