Re: domain forwarding

2012-09-06 Thread sommeralex
i will updated soon! promise. 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/domain-forwarding-tp5716105p5716115.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: domain forwarding

2012-09-06 Thread sommeralex
i was changing it yesterday so i guess this is the reason why for you
everything looked fine. 

but THX for checking.



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/domain-forwarding-tp5716105p5716114.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: domain forwarding

2012-09-06 Thread sommeralex
thx, i could solve it by setting the 

@   188.40.34.137 

in the zone file editor. 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/domain-forwarding-tp5716105p5716113.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: domain forwarding

2012-09-06 Thread derkoe

sommeralex wrote
> 
> I have several domains for my project, which runs at 188.40.34.137. one
> domain is airwriting.de, the other domain is airwriting.com .com is on
> godaddy, de on another domain provider. 
> 
> both domains are forwarding to 188.40.34.137. BUT if i move my mouse over
> the links at www.airwriting.com, i can see 188.40.34.137/myPage as link in
> the status bar. on airwriting.de, everything works fine, i dont see any
> numbers.. 188.40.34.137. 
> 

Just tried your links - I get links with DNS name using both URLs. They even
match the requested URL - all links use "airwriting.com" when I go to
"airwriting.com". Maybe it's a DNS problem on your local machine?

-- 
Chris

PS: update your Tapestry version - you're still on 5.3.1




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/domain-forwarding-tp5716105p5716112.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: datefiled and null value 2

2012-09-06 Thread ICE Ernesto Arteaga Zavala
Hi Muhammad, thanks for quick ans but I try it before but I got the next
exp...


Exception assembling root component of page expenses/Expenses: Could not
convert 'expense.date?' into a component parameter binding: Error parsing
property expression 'expense.date?': Unable to parse input at character
position 14.


2012/9/6 Muhammad Gelbana 

> 
>
> Check this page: http://tapestry.apache.org/property-expressions.html
> Search for:  Property Chain
>
> On Fri, Sep 7, 2012 at 1:15 AM, arterzatij  wrote:
>
> > Hi all,
> >
> >There is a way to display an empty datefiled avoiding the NPE, I have
> > the
> > next code on my tml file
> >
> > 
> >
> >
> >  but if the date is null, tapestry rise the NPE...
> >
> > Failure reading parameter 'value' of component expenses/Expenses:date:
> > Property 'expense' (within property expression 'expense.date', of
> > com.rimsamex.app.expenses.pages.Expenses@1b26a992) is null.
> >
> >
> > So, if the value is null I want to display an empty field, How can I
> reach
> > that?
> >
> > Thanks in advance!
> >
> >
> >
> >
> > --
> > View this message in context:
> >
> http://tapestry.1045711.n5.nabble.com/datefiled-and-null-value-2-tp5716109.html
> > Sent from the Tapestry - User mailing list archive at Nabble.com.
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
> >
>



-- 
Saludos,

---
"Nada que se consiga sin pena y sin trabajo
 es verdaderamente valioso."
  Joseph Addison
---

ICE Ernesto Arteaga Zavala
Ingeniero de Desarrollo


Re: datefiled and null value 2

2012-09-06 Thread Muhammad Gelbana


Check this page: http://tapestry.apache.org/property-expressions.html
Search for:  Property Chain

On Fri, Sep 7, 2012 at 1:15 AM, arterzatij  wrote:

> Hi all,
>
>There is a way to display an empty datefiled avoiding the NPE, I have
> the
> next code on my tml file
>
> 
>
>
>  but if the date is null, tapestry rise the NPE...
>
> Failure reading parameter 'value' of component expenses/Expenses:date:
> Property 'expense' (within property expression 'expense.date', of
> com.rimsamex.app.expenses.pages.Expenses@1b26a992) is null.
>
>
> So, if the value is null I want to display an empty field, How can I reach
> that?
>
> Thanks in advance!
>
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/datefiled-and-null-value-2-tp5716109.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


datefiled and null value 2

2012-09-06 Thread arterzatij
Hi all, 

   There is a way to display an empty datefiled avoiding the NPE, I have the
next code on my tml file




 but if the date is null, tapestry rise the NPE...

Failure reading parameter 'value' of component expenses/Expenses:date:
Property 'expense' (within property expression 'expense.date', of
com.rimsamex.app.expenses.pages.Expenses@1b26a992) is null.


So, if the value is null I want to display an empty field, How can I reach
that?

Thanks in advance!




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/datefiled-and-null-value-2-tp5716109.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: datefiled and null value

2012-09-06 Thread arterzatij
Seems like gmail remove raw tag... 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/datefiled-and-null-value-tp5716107p5716108.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



datefiled and null value

2012-09-06 Thread arterzatij

Hi all, 

   There is a way to display a datefiled avoiding the NPE, I have the next
code on my tml file



 but if the date is null, tapestry rise the NPE...




So, if the value is null I want to display an empty field, How can I reach
that?

Thanks in advance!




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/datefiled-and-null-value-tp5716107.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Update other zones on zonerefresh event

2012-09-06 Thread Muhammad Gelbana
@bogdan, were you successful with updating other\multiple zones using
AjaxResponseRenderer ?
I'm having trouble with it. I can see my zone update response but I have no
idea why isn't it taking effect !

{
"content" : "100<\/progress>",
"inits" : [
{
"evalScript" : [
"alert('Done');"
]
}
],
"zones" : {
"*hello*" : "\nHi\n"
}
}

I'm sure my zone div exists

> 
> Original text
> 


BTW you don't have to call your method onRefresh(). That would would force
you to handle ALL refresh events from any other components firing an event
with the same name. You can do that following instead:

@OnEvent(component = "progressBarZoneId", value = EventConstants.REFRESH)
> private void updateProgressBar(Object[] context) {


On Wed, Aug 15, 2012 at 11:16 PM, Howard Lewis Ship wrote:

> On Wed, Aug 15, 2012 at 2:29 AM, Paul Stanton  wrote:
> > once you receive the event server side, you can add as many zone updates
> as
> > you want to AjaxResponseRenderer, you just need to get a handle to them,
> > either by injection or by walking the component/object model.
> >
> > Have a look at ComponentResources.getEmbeddedComponent()
>
> I'd always prefer to use @InjectComponent (and/or @Inject a Block),
> rather then go through the ComponentResources.
>
> >
> >
> > On 15/08/2012 10:47 AM, bogdan_cm wrote:
> >>
> >> 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 inside a
> tapestry
> >> method where I could call AjaxResponseRederer and update all the other
> >> zones
> >> on the page. Is this even possible, given that all the other zones,
> which
> >> are not self refreshing, will not have an event that links them to the
> >> request?
> >>
> >>
> >> Thanks very much,
> >> Bogdan.
> >>
> >>
> >>
> >> --
> >> View this message in context:
> >>
> http://tapestry.1045711.n5.nabble.com/Update-other-zones-on-zonerefresh-event-tp5715431.html
> >> Sent from the Tapestry - User mailing list archive at Nabble.com.
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> >> For additional commands, e-mail: users-h...@tapestry.apache.org
> >>
> >>
> >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator of Apache Tapestry
>
> The source for Tapestry training, mentoring and support. Contact me to
> learn how I can get you up and productive in Tapestry fast!
>
> (971) 678-5210
> http://howardlewisship.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


domain forwarding

2012-09-06 Thread sommeralex
Hello!

I have several domains for my project, which runs at 188.40.34.137. one
domain is airwriting.de, the other domain is airwriting.com .com is on
godaddy, de on another domain provider. 

both domains are forwarding to 188.40.34.137. BUT if i move my mouse over
the links at www.airwriting.com, i can see 188.40.34.137/myPage as link in
the status bar. on airwriting.de, everything works fine, i dont see any
numbers.. 188.40.34.137. 

I contacted go daddy, but they say that they cant do anything.  -but why
then are different domain differently handled?! why do i say on the links
the name, but on the other the number if i am moving my mouse over links?
HENCE, what i could also see is that on www.airwriting.com, NO page links
are visible in the browser. It is always www.airwriting.com, but on .de or
.at the links are visible in the browser textfield. (which is also what i
want to be)

hm... 





--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/domain-forwarding-tp5716105.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: messages.get always use default localization on "onValidate" and "onSuccess" ?

2012-09-06 Thread Yohan Yudanara
Hi..

Thank a lot for your reply. Tapestry is great and powerful framework..

I've resolved my problem.
The weird behavior caused by my mistake to set ThreadLocale instead
of PersistentLocale, when I set locale programatically.
I also incorrectly override LocalizationSetter service, which cause weird
behaviour.

Now everything works fine..

Best regards,
Yohan Yudanara




On Thu, Sep 6, 2012 at 9:32 PM, Howard Lewis Ship  wrote:

> I suspect your issue is not what you expect. The same Messages
> instance is used in all cases, regardless of what method it is invoked
> from.
>
> I'm sure it's an issue of what keys you are accessing, and what
> .properties file contains each key/value pair.
>
> People often seem to get confused, thinking that the search path for a
> component includes the containing page/component's catalog. It does
> not.
>
> On Thu, Sep 6, 2012 at 6:34 AM, Yohan Yudanara 
> wrote:
> > Hi..
> >
> > I'm using T 5.3.4,
> >
> > @Inject
> > private Messages messages;
> >
> > messages.get("key") return string from correct local properties file when
> > called from "setupRender" and "afterRender".
> > But, why messages.get("key") always return string from default local
> > properties when called from "onValidate" and "onSuccess" ?
> > Am I doing something wrong or is this the expected behavior ?
> >
> > Thanks in advance...
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator of Apache Tapestry
>
> The source for Tapestry training, mentoring and support. Contact me to
> learn how I can get you up and productive in Tapestry fast!
>
> (971) 678-5210
> http://howardlewisship.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: hide primary key on call to edit form

2012-09-06 Thread Chris Cureau
You guessed right...I removed the onPassivate() method and all is well.
Thanks!

On Thu, Sep 6, 2012 at 10:36 AM, Lance Java wrote:

> Firstly, I would avoid session usage unless it is definitely required.
> Passing the primary key in the URL is a good way of avoiding session usage.
>
> Secondly, tapestry is most likely adding the primary key to the URL
> because:
> a) The EditEvent page has an onPassivate() method.
> b) The EditEvent page has a property with a @PageActivationContext
> annotation
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/hide-primary-key-on-call-to-edit-form-tp5716100p5716101.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: hide primary key on call to edit form

2012-09-06 Thread Lance Java
Firstly, I would avoid session usage unless it is definitely required.
Passing the primary key in the URL is a good way of avoiding session usage.

Secondly, tapestry is most likely adding the primary key to the URL because:
a) The EditEvent page has an onPassivate() method. 
b) The EditEvent page has a property with a @PageActivationContext
annotation



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/hide-primary-key-on-call-to-edit-form-tp5716100p5716101.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: messages.get always use default localization on "onValidate" and "onSuccess" ?

2012-09-06 Thread Howard Lewis Ship
I suspect your issue is not what you expect. The same Messages
instance is used in all cases, regardless of what method it is invoked
from.

I'm sure it's an issue of what keys you are accessing, and what
.properties file contains each key/value pair.

People often seem to get confused, thinking that the search path for a
component includes the containing page/component's catalog. It does
not.

On Thu, Sep 6, 2012 at 6:34 AM, Yohan Yudanara  wrote:
> Hi..
>
> I'm using T 5.3.4,
>
> @Inject
> private Messages messages;
>
> messages.get("key") return string from correct local properties file when
> called from "setupRender" and "afterRender".
> But, why messages.get("key") always return string from default local
> properties when called from "onValidate" and "onSuccess" ?
> Am I doing something wrong or is this the expected behavior ?
>
> Thanks in advance...



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



messages.get always use default localization on "onValidate" and "onSuccess" ?

2012-09-06 Thread Yohan Yudanara
Hi..

I'm using T 5.3.4,

@Inject
private Messages messages;

messages.get("key") return string from correct local properties file when
called from "setupRender" and "afterRender".
But, why messages.get("key") always return string from default local
properties when called from "onValidate" and "onSuccess" ?
Am I doing something wrong or is this the expected behavior ?

Thanks in advance...


Re: Using tapestry-spring-security with Tapestry 5.3.5 problem

2012-09-06 Thread antalk
Hi,

You can use this one: https://github.com/antalk/Tapestry-Spring-Security

I'm using it on a 5.3.5 site without problems.





--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Using-tapestry-spring-security-with-Tapestry-5-3-5-problem-tp5716078p5716094.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: activation context method

2012-09-06 Thread Lance Java
1. It's a very bad idea to have 2 onActivate methods with the same parameter
count. If I hit the URL "/yourpage/true/somePage", how does tapestry know
which one to call?

2. I have NEVER needed multiple onActivate methods. If I need to handle
multiple cases, I have a single onActivate(EventContext) method.

3. If you still want multiple onActivate methods, return true to avoid
processing other onActivate methods.





--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/activation-context-method-tp5716091p5716093.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: How to split up components in a tapestry page

2012-09-06 Thread karthi
Many thanks @Lance Java...

I have tried & created two components header, footer & integrated in my
Index.tml page!!
It works cool!!!

This example
http://jumpstart.doublenegative.com.au/jumpstart/examples/component/creatingcomponents
is very helpful...

Thanks again!!!



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-split-up-components-in-a-tapestry-page-tp5716079p5716092.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



activation context method

2012-09-06 Thread Athneria, Mahendra
Hi,

I am facing a weird problem related to the activation method of page.

I have three pages named as, Page1, Page2 & Page3.

In Page1, I have two activation methods.

@OnEvent(value = EventConstants.ACTIVATE)
  public void activateFromDetails(String contractNumber, String pageName) {
this.contractNumber = contractNumber;
this.pageName = pageName;
  }

@OnEvent(value = EventConstants.ACTIVATE)
  public void activateFromList(boolean isCreate, String pageName) {
this.isCreate = isCreate;
this.pageName = pageName;
  }

When I come from Page2 to Page1 - I'll pass "Boolean" and "String" as a context 
parameter

When I come from Page3 to Page1 - I'll pass "String" and "String" as a context 
parameter

Now the weird situation occurs, both the activation method getting called in 
Page1, irrespective of the context parameter.

Any idea why both the activation getting called???

Regards,
Mahendra



Re: How to split up components in a tapestry page

2012-09-06 Thread Stephan Windmüller
On 06.09.2012 11:14, wrote karthi:

> Here exactly what do you mean by:
> Create components for Header, TopItems, (Can you point
> me an example & Can you please explain a bit more?)

At first, create a layout component as described here:

https://tapestry.apache.org/layout-component.html

After that, you may (but do not have to) create single components for
header and footer which can be used in the layout component.

HTH
 Stephan



smime.p7s
Description: S/MIME Kryptografische Unterschrift


Re: How to split up components in a tapestry page

2012-09-06 Thread Lance Java
A component is a java class and and an optional tml file that MUST be in the
foo.bar.components package (where foo.bar is your base package).

Documentation here: http://tapestry.apache.org/component-classes.html
Examples here:
http://jumpstart.doublenegative.com.au/jumpstart/examples/component/creatingcomponents







--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-split-up-components-in-a-tapestry-page-tp5716079p5716089.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: How to split up components in a tapestry page

2012-09-06 Thread karthi
Thanks again!!! & Sorry, I could not understand. My mistake!

Here exactly what do you mean by:
Create components for Header, TopItems, (Can you point
me an example & Can you please explain a bit more?)



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-split-up-components-in-a-tapestry-page-tp5716079p5716088.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: How to split up components in a tapestry page

2012-09-06 Thread Lance Java
Yes, that's exactly what tapestry is great at!!

1. Create components for Header, TopItems, Categories and Footer
2. You could then use the components directly in a page
3. Or, you could create a Layout which contains the 4 components and then
re-use this Layout across all of your pages.



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-split-up-components-in-a-tapestry-page-tp5716079p5716087.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: How to split up components in a tapestry page

2012-09-06 Thread karthi
@Lance Java thanks for your reply...

Let us forget the terminologies, components & layouts..

All I want is to create a four separate tml pages:

i)   Header (Contains styles, codes to display header alone)

ii)  Top-items videos list (Contains codes to display top videos list)

iii) Categories videos list (display categories...)

iv) Footer (display footer...)

& I want to integrate this four in a single Index.tml page (I need it
because re-usability of separate components, easier re-positioning ...) If I
have this feature, in some other page if I am supposed to use only header,
top-items then it will be easy for me to call, in other page if I am
supposed to place categories first then top-items next it will be easy (but
it will be difficult if I have all this 4 in a single layout)

Is this possible?



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-split-up-components-in-a-tapestry-page-tp5716079p5716086.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



RE: How to split up components in a tapestry page

2012-09-06 Thread karthi
@Mahendra thanks for your reply.

That's not my requirement, I need to create 4 layout components separately 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-split-up-components-in-a-tapestry-page-tp5716079p5716085.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: How to split up components in a tapestry page

2012-09-06 Thread Lance Java
It sounds like you are either confusing terminology or actual functionality.

Let's clear one thing up.
1. You can have many components on a page
2. You can only have one Layout component per page (a Layout is a special
component)
3. Layout components can contain normal components

Most applications will have only 1 or 2 layouts but will have many
components. See this JumpStart examplet example [1] where there 1 layout
applied to 2 pages with a common left, right and footer. These could easily
be custom components

[1]
http://jumpstart.doublenegative.com.au/jumpstart/examples/component/thelayoutcomponent1



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-split-up-components-in-a-tapestry-page-tp5716079p5716083.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



RE: How to split up components in a tapestry page

2012-09-06 Thread Athneria, Mahendra
Do one thing. Create only one layout and that layout contain those four 
components. Now that layout you can use in the pages. 

Is it clear to you?

Regards,
Mahendra

-Original Message-
From: karthi [mailto:rathinasamy@snovabits.net] 
Sent: Thursday, September 06, 2012 1:06 PM
To: users@tapestry.apache.org
Subject: How to split up components in a tapestry page


Hi everyone,

 What I've done is: 


I am designing a page in tapestry, In that page now showing four components

Header
Topitems (Contains list of videos)
Categories (Contains list of videos but specific to categories)
Footer

What I've done is just design the four components in a single page itself
using Index.tml, Index.java, Styles.css

 What I need is: 


Now I want to separate the designs in index.tml to a separate component
layouts like

Header.tml
Topitems.tml
Categories.tml
Footer.tml 

& in Index.tml all I want to just call to those four component layouts.

I've tried with tapestry component layout & created Header.tml and done the
header designs in that & called in Index.tml, it works!!! But when I created
another layout Footer.tml I faced a problem in calling more that one layout
in Index.tml, How do I do that?

Thanks in advance,
Karthi.



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-split-up-components-in-a-tapestry-page-tp5716079.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: periodic zone updater

2012-09-06 Thread sommeralex
GREAT. yes, a serverside push suits my needs. thx!

2012/9/6 Lance Java [via Tapestry] <
ml-node+s1045711n5716080...@n5.nabble.com>

> Hi Alex,
>
> What's your use case for needing a periodic refresh? Does a serverside
> push better suit your needs? If so, you might find tapestry-cometd [1] a
> better fit.
>
> https://github.com/uklance/tapestry-cometd
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://tapestry.1045711.n5.nabble.com/periodic-zone-updater-tp5716068p5716080.html
>  To unsubscribe from periodic zone updater, click 
> here
> .
> NAML
>




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/periodic-zone-updater-tp5716068p5716081.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: periodic zone updater

2012-09-06 Thread Lance Java
Hi Alex,

What's your use case for needing a periodic refresh? Does a serverside push
better suit your needs? If so, you might find tapestry-cometd [1] a better
fit.

https://github.com/uklance/tapestry-cometd



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/periodic-zone-updater-tp5716068p5716080.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



How to split up components in a tapestry page

2012-09-06 Thread karthi
Hi everyone,

 What I've done is: 


I am designing a page in tapestry, In that page now showing four components

Header
Topitems (Contains list of videos)
Categories (Contains list of videos but specific to categories)
Footer

What I've done is just design the four components in a single page itself
using Index.tml, Index.java, Styles.css

 What I need is: 


Now I want to separate the designs in index.tml to a separate component
layouts like

Header.tml
Topitems.tml
Categories.tml
Footer.tml 

& in Index.tml all I want to just call to those four component layouts.

I've tried with tapestry component layout & created Header.tml and done the
header designs in that & called in Index.tml, it works!!! But when I created
another layout Footer.tml I faced a problem in calling more that one layout
in Index.tml, How do I do that?

Thanks in advance,
Karthi.



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-split-up-components-in-a-tapestry-page-tp5716079.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Using tapestry-spring-security with Tapestry 5.3.5 problem

2012-09-06 Thread Borko Djurovic
I followed the guide from 
http://www.localhost.nu/java/tapestry-spring-security/conf.html
http://www.localhost.nu/java/tapestry-spring-security/conf.html  site.

The main problem is AliasContribution. In version 5.2.5 of Tapestry this is
depercated and in version 5.3.5 we can't use that anymore. Now i don't know
how to configure security.

Depercated way:
public static void contributeAlias(
Configuration> configuration ) {

configuration.add( AliasContribution.create(
PasswordEncoder.class,
new ShaPasswordEncoder()));
}



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Using-tapestry-spring-security-with-Tapestry-5-3-5-problem-tp5716078.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org