Re: t5: https and two T5 apps

2011-07-05 Thread 9902468
Use httpd infront of tomcat(s)

That way you have to administer the certificate only once + you can
proxy_ajp to any number of tomcats and jettys and glassfishes etc.

In proxu_ajp.conf you can decide what urls goes to which tomcats or to which
tomcat "url" inside one tomcat.

Separate containers per application are sometimes a bliss too when you have
to start other app containers and keep running the others... Escpecially
when tomcat / the apps bleed memory

Also, the httpd documentation + the help available is much better. (And
easier to obtain.)

 - Ville

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/t5-https-and-two-T5-apps-tp4555456p4555879.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: a component problem in work

2011-07-05 Thread dick_hu

Lenny Primak wrote:
> 
> I think you need to look at @PageLoaded or @PageAttached annotations /
> naming conventions
> to do what you want.  onActivate is for page context parameter processing
> 
Thank for your suggestion.I will try it.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/a-component-problem-in-work-tp4555384p443.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: a component problem in work

2011-07-05 Thread Lenny Primak
I think you need to look at @PageLoaded or @PageAttached annotations / naming 
conventions
to do what you want.  onActivate is for page context parameter processing

On Jul 5, 2011, at 10:33 PM, dick_hu wrote:

> 
> Thiago H. de Paula Figueiredo wrote:
>> 
>> This is not unnecessary: it's normal, correct, expected Tapestry behavior.  
>> The activate event is triggered everytime a page is requested, being it a  
>> render or event (action) one.
>> 
> I see,but my actionlink trigger a ajax action and return a zone,
> the page's activate method is just do the page's init work,It's not any
> relation with my actionlink action.
> Is there any other way to init the page? Can I init  in other page render
> method ?
> 
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/a-component-problem-in-work-tp4555384p417.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: t5: https and two T5 apps

2011-07-05 Thread Angelo C.
looks the way to go, but how to have this /order context in the 2nd app? in
tomcat's server.xml, we need to virtual hosts pointing to two t5 apps, first
one uses already Host name="safe.sample.com", how to specify another one
'safe.sample.com' with 'order' context? 

sorry, this is not t5 related.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/t5-https-and-two-T5-apps-tp4555456p418.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: a component problem in work

2011-07-05 Thread dick_hu

Thiago H. de Paula Figueiredo wrote:
> 
> This is not unnecessary: it's normal, correct, expected Tapestry behavior.  
> The activate event is triggered everytime a page is requested, being it a  
> render or event (action) one.
> 
I see,but my actionlink trigger a ajax action and return a zone,
the page's activate method is just do the page's init work,It's not any
relation with my actionlink action.
Is there any other way to init the page? Can I init  in other page render
method ?

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/a-component-problem-in-work-tp4555384p417.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: t5: https and two T5 apps

2011-07-05 Thread Thiago H. de Paula Figueiredo
On Tue, 05 Jul 2011 23:01:31 -0300, Angelo C.   
wrote:



Hi,


Hi!


I got two T5 applications, the first one:
https://www.safe.sample.com:8443
Now I need to add a new one, and I need to share the same ssl  
certificate as

the first one, so I need to use following url:
https://www.safe.sample.com:8443/order
can't figure out how to do this, suggestions?


I don't think this is related to Tapestry at all. AFAIK, SSL certificates  
are specific to a given domain, so you shouldn't do nothing for the  
certificate to work on both webapps as long as they're in the same domain.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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



Re: t5: https and two T5 apps

2011-07-05 Thread Mark
Can't  you just deploy the first one to the root and the second one to
the /order context?  I think you'll have to setup the same SSL cert
twice--once for each app, but you should be able to use the same cert.

Mark

On Tue, Jul 5, 2011 at 9:01 PM, Angelo C.  wrote:
> Hi,
>
> I got two T5 applications, the first one:
>
> https://www.safe.sample.com:8443
>
> Now I need to add a new one, and I need to share the same ssl certificate as
> the first one, so I need to use following url:
>
> https://www.safe.sample.com:8443/order
>
> can't figure out how to do this, suggestions?
>
> Thanks,
>
> Angelo
>
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/t5-https-and-two-T5-apps-tp4555456p4555456.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



t5: https and two T5 apps

2011-07-05 Thread Angelo C.
Hi,

I got two T5 applications, the first one:

https://www.safe.sample.com:8443

Now I need to add a new one, and I need to share the same ssl certificate as
the first one, so I need to use following url:

https://www.safe.sample.com:8443/order

can't figure out how to do this, suggestions?

Thanks,

Angelo

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/t5-https-and-two-T5-apps-tp4555456p4555456.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: a component problem in work

2011-07-05 Thread Thiago H. de Paula Figueiredo

On Tue, 05 Jul 2011 22:25:10 -0300, dick_hu  wrote:

I write a component in my page,the component  contain a actionlink,  
everytime I click the actionlink the page's onActivate() method will  
run. It is

unnecessary,what can I do?


This is not unnecessary: it's normal, correct, expected Tapestry behavior.  
The activate event is triggered everytime a page is requested, being it a  
render or event (action) one.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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



a component problem in work

2011-07-05 Thread dick_hu
I write a component in my page,the component  contain a actionlink, everytime
I click the actionlink the page's onActivate() method will run. It is
unnecessary,what can I do? 
Anyone can help me?

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/a-component-problem-in-work-tp4555384p4555384.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: No context for a t:select?

2011-07-05 Thread LLTYK
Here's mine:

  @Log
  void onChange(String primary, String secondary, String categoryName)
  {

And what it does:
2011-07-05 16:52:07,899 [qtp1317701801-91] DEBUG -[ENTER]
onChange("e1718719-df6e-4bc4-a25d-4b7c83b0baae",
"7486318b-3f15-4735-be78-0d42ec778e1b", "category1")

--
View this message in context: 
http://tapestry-users.832.n2.nabble.com/No-context-for-a-t-select-tp6060602p6551701.html
Sent from the Tapestry Users 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: No context for a t:select?

2011-07-05 Thread George Christman
Hi lltyk, thanks for the reply.

I'm using your suggestion as followed and it only passes back the select
menu option id and ignors my context parameters. Any suggestions? Thanks. 




Object onNewFundingChanged() {
String newFunding = request.getParameter("param");
System.out.println(newFunding);

return fundingZone.getBody();
}
return null;
}

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/No-context-for-a-t-select-tp3398655p4554600.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: T5 Selected Attribute

2011-07-05 Thread Thiago H. de Paula Figueiredo
On Tue, 05 Jul 2011 16:04:59 -0300, George Christman  
 wrote:


Object entity label using UUID transient temp Ids. I'm also using an  
encoder with the select menu. Not sure if that matters.


They don't. Funding class sources, specially hashCode() and equals(), do  
matter. ;)


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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



Re: Looking for a sample

2011-07-05 Thread Thiago H. de Paula Figueiredo
On Tue, 05 Jul 2011 15:59:10 -0300, Taha Hafeez   
wrote:



Hi Thiago


Hi Taha!


You always have a better answer :)


I don't think so. :) And JumpStart has many! Very useful!

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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



Re: T5 Selected Attribute

2011-07-05 Thread George Christman
Object entity label using UUID transient temp Ids. I'm also using an encoder
with the select menu. Not sure if that matters. 

fundingModel = selectModelFactory.create(purchaseRequest.getFundings(),
"label");

Thanks for the article, reading as we speak. 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-Selected-Attribute-tp4554181p4554342.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: Looking for a sample

2011-07-05 Thread Taha Hafeez
Hi Thiago

You always have a better answer :)

Taha

On Wed, Jul 6, 2011 at 12:26 AM, Thiago H. de Paula Figueiredo <
thiag...@gmail.com> wrote:

> On Tue, 05 Jul 2011 15:39:14 -0300, Tony Nelson 
> wrote:
>
>  Hi all,
>>
>
> Hi!
>
>
>  I've spent as much time and brain cells as I can on this.
>> Does anyone has a working sample of Zone update based with information
>> input by the user?
>>
>
> Always check the Tapestry JumpStart application and samples.
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
> and instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
>
>
> --**--**-
> To unsubscribe, e-mail: 
> users-unsubscribe@tapestry.**apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: Looking for a sample

2011-07-05 Thread Thiago H. de Paula Figueiredo
On Tue, 05 Jul 2011 15:39:14 -0300, Tony Nelson   
wrote:



Hi all,


Hi!


I've spent as much time and brain cells as I can on this.
Does anyone has a working sample of Zone update based with information  
input by the user?


Always check the Tapestry JumpStart application and samples.

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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



Re: T5 Selected Attribute

2011-07-05 Thread Taha Hafeez
http://www.jchq.net/certkey/0902certkey.htm


What is the type of value bound to select ?

regards
Taha


On Wed, Jul 6, 2011 at 12:17 AM, George Christman
wrote:

> Thanks everyone, I'm pretty new to backend development, so I guess I don't
> completely understand hashcode equals and how it works.
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/T5-Selected-Attribute-tp4554181p4554302.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: Looking for a sample

2011-07-05 Thread Taha Hafeez
Hi Tom

It is not tested

Tapestry.Initializer.textUpdate = function(params)
{
   Event.observe(params.buttonId, "click", function()
   {
  var zoneManager = Tapestry.findZoneManagerFromZoneId(zoneId);
  if(zoneManager)
  {
 zoneManager.updateFromURL(params.URL + "/" +
urlencode($(textComponent).value));
  }
   });
};


in java

void afterRender()
{
   Link link = resources.createEventLink("update");
   JSONObject params = new JSONObject();
   params.put("textComponentId", getTextComponentIdSomeHow());
   params.put("URL", link.toAbsoluteURI());
   params.put("buttonId", getButtonIdSomeHow());
   javaScriptSupport.addInitializerCall("textUpdate", params);
}

Object onUpdate(String text)
{
   //do whatever
   return whateverZoneOrComponent;
}


Also
http://tawus.wordpress.com/2011/07/01/a-periodic-zone-refresh-mixin-for-tapestry/
might
help

regards
Taha



On Wed, Jul 6, 2011 at 12:09 AM, Tony Nelson  wrote:

> Hi all,
>
> I've spent as much time and brain cells as I can on this.
>
> Does anyone has a working sample of Zone update based with information
> input by the user?
>
> Specifically, I have a text field that a user fills in, clicks an add
> link/button, and I want to insert the new value in a  in a zone.
>
> I've tried everything I can think but can't seem to pass the value from the
> text field to the zone update method.
>
> Thanks in advance,
> -Tony
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: T5 Selected Attribute

2011-07-05 Thread George Christman
Thanks everyone, I'm pretty new to backend development, so I guess I don't
completely understand hashcode equals and how it works. 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-Selected-Attribute-tp4554181p4554302.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: No context for a t:select?

2011-07-05 Thread LLTYK
I have something like that floating in my code. Doesn't have to be
selectobject and could be a plain select, but you need zoneupdater.







--
View this message in context: 
http://tapestry-users.832.n2.nabble.com/No-context-for-a-t-select-tp6060602p6551150.html
Sent from the Tapestry Users 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



Looking for a sample

2011-07-05 Thread Tony Nelson
Hi all,

I've spent as much time and brain cells as I can on this.

Does anyone has a working sample of Zone update based with information input by 
the user?

Specifically, I have a text field that a user fills in, clicks an add 
link/button, and I want to insert the new value in a  in a zone.

I've tried everything I can think but can't seem to pass the value from the 
text field to the zone update method.

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



Re: Memory leak in internet explorer with many links on page

2011-07-05 Thread Taha Hafeez
Hi

Strange, nobody commented ? I am guessing nobody uses internet explorer or
only I am facing this problem (:

regards
Taha


On Tue, Jul 5, 2011 at 5:01 AM, Taha Hafeez wrote:

> Hi again,
>
> For the same application(attached in previous post) there is no leak in
> chrome, opera, Firefox, not even in konqueror. It is only ie.
>
> The whole day I googled about this issue and read about closures, circular
> references etc in ie. What I found was that ie has a  history of these
> problems and that even facebook and gmail cause memory leaks in many
> versions of ie.
>
> I also checked sport websites which have constantly updating score-cards.
> They use ajax for all browsers but full page refresh for ie. That was a real
> surprise.
>
> Finally I tested the zone-refresh patch by keeping the period of one second
> and allowing all the browsers to refresh for 3 hours and it works fine
>
> regards
> Taha
>
>
> On Mon, Jul 4, 2011 at 1:18 PM, Taha Hafeez wrote:
>
>> Hi
>>
>> I am attaching a small web-application with just one page manylinksinpage.
>> If you run it and keep on clicking on any link, internet explorer starts
>> leaking memory.
>>
>> What I have found is that the leak is caused by updateZoneOnEvent being
>> called. The more links are linked the more memory leak it is
>>
>>
>> regards
>> Taha
>>
>>
>


Re: T5 Selected Attribute

2011-07-05 Thread Taha Hafeez
Hi

Firstly if you set a default value in onPrepare(), it will not only set the
value during render but also during submission, which I don't think you
intend to. A better choice will be onPrepareForRender().

Secondly, all you have to do is set the value that is bound to the select
component to a value you want to have by default. Also, as Thiago has
already pointed out, the value's class must implement equals() and
hashCode().

Sorry, but I could not understand your code in context of the problem

regards
Taha


On Tue, Jul 5, 2011 at 11:47 PM, George Christman
wrote:

> Hi Taha,
>
> this is my test code.
>
>Long key = new Long("-8879035676972742623");
>
>for(LineItem _lineItem : getPurchaseRequest().getLineItems()) {
>for (LineItemFunding _lineItemFunding :
> _lineItem.getLineItemFundings()) {
>if(_lineItemFunding.getTempId() == key) {
>_lineItemFunding.setFunding((Funding)
> session.get(Funding.class, 6));
>}
>
>}
>}
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/T5-Selected-Attribute-tp4554181p4554217.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: T5 Selected Attribute

2011-07-05 Thread George Christman
Hi Taha, 

this is my test code. 

Long key = new Long("-8879035676972742623");

for(LineItem _lineItem : getPurchaseRequest().getLineItems()) {
for (LineItemFunding _lineItemFunding :
_lineItem.getLineItemFundings()) {
if(_lineItemFunding.getTempId() == key) {
_lineItemFunding.setFunding((Funding)
session.get(Funding.class, 6));
}

}
}



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-Selected-Attribute-tp4554181p4554217.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: T5.2.4 - Unexpected illegal argument exception: Input string '${context:css' is not valid

2011-07-05 Thread LLTYK
That's what I changed mine to, I found something commented with .

There definitely aren't bots on my staging server though. Just IE
browsers...

--
View this message in context: 
http://tapestry-users.832.n2.nabble.com/T5-2-4-Unexpected-illegal-argument-exception-Input-string-context-css-is-not-valid-tp6486339p6551007.html
Sent from the Tapestry Users 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: T5 Selected Attribute

2011-07-05 Thread Thiago H. de Paula Figueiredo
On Tue, 05 Jul 2011 15:02:22 -0300, George Christman  
 wrote:



Hello,


Hi!

In my onPrepare method, I'm trying to select a select menu option by  
default. I'm aware of tapestry being able to handle this automatically by

setting the object value, however I haven't had any success. If someone
could point me in the right direction, I'd greatly appreciate it.


The class of the select options needs to have good hashCode() and equals()  
implementations (as almost any other entity class, by the way).


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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



Re: Job offer for tapestry developer (m/f)

2011-07-05 Thread mahendra.athneria
Hi Andreas Pursian ,

I am interested. Please let me know the details.

Regards,
Mahendra

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Job-offer-for-tapestry-developer-m-f-tp2431360p4552241.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: T5 Selected Attribute

2011-07-05 Thread Taha Hafeez
Hi

Can you share the code ?

regards
Taha


On Tue, Jul 5, 2011 at 11:32 PM, George Christman
wrote:

> Hello, In my onPrepare method, I'm trying to select a select menu option by
> default. I'm aware of tapestry being able to handle this automatically by
> setting the object value, however I haven't had any success. If someone
> could point me in the right direction, I'd greatly appreciate it.
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/T5-Selected-Attribute-tp4554181p4554181.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
>
>


T5 Selected Attribute

2011-07-05 Thread George Christman
Hello, In my onPrepare method, I'm trying to select a select menu option by
default. I'm aware of tapestry being able to handle this automatically by
setting the object value, however I haven't had any success. If someone
could point me in the right direction, I'd greatly appreciate it.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-Selected-Attribute-tp4554181p4554181.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: No context for a t:select?

2011-07-05 Thread George Christman
Hi Richard, do you know if there has been any progress made on this feature?

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/No-context-for-a-t-select-tp3398655p4553978.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: Empty Zone (T5.2.6)

2011-07-05 Thread Howard Lewis Ship
Just added an FAQ for this.

Why do I sometimes get the exception "The rendered content did not
include any elements that allow for the positioning of the hidden form
field's element." when rendering an empty Zone?
As part of Tapestry's form processing, it must write a hidden input
element with information needed when the form is submitted. Since the
content of a Zone may be changed or removed, a hidden field is created
just for the Zone, separate from the rest of the enclosing form.

At the same time, Tapestry wants to position the  field in a
valid location, and HTML defines some constraints for that; an input
field must appear inside a  or  element. In your empty Zone,
there's no place to put the hidden element.

The solution is to add the following to the body of your Zone:



This ensures that there's a place for the hidden input field. The
"t-invisible" CSS class ensures that the  does not display or
otherwise affect layout.


On Tue, Jul 5, 2011 at 9:09 AM, Tony Nelson  wrote:
> Still trying to build what I thought would be a simple component.
>
> My main tml looks like this:
>
> 
>  [ input fields]
>  
> 
>
> My component is very simple at the moment:
>
> http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";
>             xmlns:p="tapestry:parameter">
>
>    
>        Email Aliases
>
>        
>            
>                
>                    ${emailAlias.alias}
>                
>            
>        
>
>        
>            
>            Add 
> Alias
>        
>
>    
>
> 
>
> Any time I render the form, and the loop evaluates to an empty list, I get 
> the following exception:
>
> Render queue error in AfterRender[emailuser/Edit:emailaliaseditor.aliaszone]: 
> The rendered content did not include any elements that allow for the 
> positioning of the hidden form field's element.
>
> It works just fine if the loop generates some output.   Is tap trying to 
> optimize the html and remove the useless ul?
>
> Added a useless hidden div seems to work around this problem.
>
>        
>            
>            
>                
>                    ${emailAlias.alias}
>                
>            
>        
>
>
> Although I'm guessing when I submit the form I'm going to run into a problem.
>
> Any other suggestions?
> -
> 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



Empty Zone (T5.2.6)

2011-07-05 Thread Tony Nelson
Still trying to build what I thought would be a simple component.

My main tml looks like this:


  [ input fields]
  


My component is very simple at the moment:

http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";
 xmlns:p="tapestry:parameter">


Email Aliases




${emailAlias.alias}






Add 
Alias






Any time I render the form, and the loop evaluates to an empty list, I get the 
following exception:

Render queue error in AfterRender[emailuser/Edit:emailaliaseditor.aliaszone]: 
The rendered content did not include any elements that allow for the 
positioning of the hidden form field's element.

It works just fine if the loop generates some output.   Is tap trying to 
optimize the html and remove the useless ul?  

Added a useless hidden div seems to work around this problem.





${emailAlias.alias}





Although I'm guessing when I submit the form I'm going to run into a problem.

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



Re: T5.2.4 - Unexpected illegal argument exception: Input string '${context:css' is not valid

2011-07-05 Thread Howard Lewis Ship
Better yet, use the  directive, rather than a HTML comment,
to (temporarily) remove a stretch of template content.


On Tue, Jul 5, 2011 at 2:45 AM, 9902468  wrote:
> Hi,
>
> we have seen this also and more than likely it's not the browsers to blame,
> but the search bots. (At least on open networks.)
>
> I once took a look at our apache logs and discovered that there are many
> bots out there that do not respect any comments on pages at all, but rather
> seem to get everything that has src, href or anything that vaguely resembles
> a url. (Even those that are not in a src or href context.)
>
> The bot probably sees only text that it parses with regexps etc. The
> templates should not contain any comments - those take unneccessary space
> and bloats page in addition to this. ;)
>
> Can we instruct T5 to strip comments before sending content out?
>
>  - Ville
>
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/T5-2-4-Unexpected-illegal-argument-exception-Input-string-context-css-is-not-valid-tp4498202p4552702.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
>
>



-- 
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: T5.2.4 - Unexpected illegal argument exception: Input string '${context:css' is not valid

2011-07-05 Thread 9902468
Hi,

we have seen this also and more than likely it's not the browsers to blame,
but the search bots. (At least on open networks.)

I once took a look at our apache logs and discovered that there are many
bots out there that do not respect any comments on pages at all, but rather
seem to get everything that has src, href or anything that vaguely resembles
a url. (Even those that are not in a src or href context.)

The bot probably sees only text that it parses with regexps etc. The
templates should not contain any comments - those take unneccessary space
and bloats page in addition to this. ;) 

Can we instruct T5 to strip comments before sending content out?

 - Ville

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-2-4-Unexpected-illegal-argument-exception-Input-string-context-css-is-not-valid-tp4498202p4552702.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



More action than only a zone update after form success

2011-07-05 Thread Sven Homburg
My page:



add item

 some form fields ...










 some form fields ...







if i click the "add item"-link, the zone "A" schould "injected" after form A
AND hide both submit button in form A.
Thats what i do with an external  javascript
(zoneManger.updateFromUrl) and hide
the two submit elements.

Now my problem:
After i click one of the two submits in form B, i want to close the form B
AND show the two submits in form A.

By default, the javascript fires a last a "tapestry:formprocesssubmit"-event
and listen for the zone content. I downt know how to act my own logic like
hide formB-zone and show noth submits in formA.

Any suggestions?

with regards
Sven Homburg
Founder of the Chenille Kit Project
http://chenillekit.codehaus.org

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



Re: T5.2.4 - Unexpected illegal argument exception: Input string '${context:css' is not valid

2011-07-05 Thread Florian Parain
I've got it!

In one of my .TML files I put this comment:
**

My guess is some web browsers try to access the image, even if it is a
comment.
And, there is the exception.

I removed this comment from my .TML file.

I keep you informed if it happens again.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-2-4-Unexpected-illegal-argument-exception-Input-string-context-css-is-not-valid-tp4498202p4552500.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