popup window

2008-06-26 Thread raveendra
Hi,

Anyone please tell me how to get the values from a pop up window and refresh
the grid component
in the main page based on the values retrieved from popup.I am using T
5.0.11.

Thankyou,
ravindra


grid component with buttons T5.0.13

2008-06-19 Thread raveendra
   I have a requirement where i have to display bunch of beans in a
grid component and an edit button as an extra column.
Clicking on that button i should be able to edit that bean.This is my grid.


 




Object onSuccess(){
   return CallVerify.class;
}

I am able to display everything.But when i click on the button onSuccess
method is not executing.
The value of action attribute of the grid generated from tag are getting
added to my url like (callsummary.form) which is't my page.

How can i forward control to another page using button.Though I am able to
forward control to another page using .
I want to do it with buttons.


Issue with T5.0.13 default page loading

2008-06-18 Thread raveendra
Hi T5

 We have started our project development with T5.0.11.Due to some issues
we are experimenting with T5.0.13 latest release
we have replaced the jars.Previously when i type the url 
http://localhost:8000/mycontext/  this was loading my Index.tml as
default page but after replacing jars it's saying

java.lang.ClassNotFoundException: caught an exception while obtaining a
class file for com.example.some.pages.Index

my questing is do we have to configure index page(default page) some where
like in struts welcome-file tag.
why it is not able to find the page?

The noticeable thing is except the first index page the remaining pages and
components are working fine.

Thankyou,
ravindra.


Re: Issue with Grid component

2008-06-17 Thread raveendra
Thanks Kristian,

 That solved my problem.I have removed tapestry-hibernate.jar
from my class
path and it isn't asking for hibernate.hbm.xml.

But i have a question.We have connected to DB by configuring the
tapestry-spring module.
Now we don't have tapestry-hibernate.jar in our class path and we are able
to interact with
DB.

Sorry if it is very simple question.

Is it not necessary to put tapestry-hibernate.jar in our classpath ?


Thankyou,
ravindra.

On Wed, Jun 18, 2008 at 10:50 AM, ravindra <[EMAIL PROTECTED]> wrote:

>
> From: Kristian Marinkovic [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 17, 2008 2:10 PM
> To: Tapestry users
> Subject: Re: Issue with Grid component
>
> no. but if you use tapestry-hibernate you have to have a
> hibernate.cfg.xml (hibernate.jar) file somewhere
>
> more details:
> if you use tapestry-hibernate it will contribute ValueEncoder for
> your entities. this allows you to use entities in SelectModels and
> in templates (forms) more easily and more elegant.
> however, the Grid and BeanEditor use the ValueEncoderSource
> service that  has the ValueEncoders contributed. When it is first
> used it will call all "contribute" methods. but the
> "contributeValueEncoderSource"
> within HibernateModule needs the Hibernate SessionFactory to
> determine all available entities. and because for the first call, the
> Hibernate SessionFactory does not exist (everything is lazy by default)
> it will try to create it by calling hibernate.Configurer.configure() which
> in turn assumes there is a hibernate.cfg.xml somewhere on the classpath
> (look at the HibernateModule.java file)
>
>
> the easiest way would be to remove the tapestry-hibernate
> dependencies
>
> g,
> kris
>
>
>
>
>
> raveendra <[EMAIL PROTECTED]>
> 17.06.2008 10:21
> Bitte antworten an
> "Tapestry users" 
>
>
> An
> users@tapestry.apache.org
> Kopie
>
> Thema
> Issue with Grid component
>
>
>
>
>
>
> Hi T5 guys,
>
>We have chosen T5 for our new project.I am trying to develop a screen
> using Grid component.I am not connecting to database
> just displaying the list of  callSummaryBean' s (just creating the beans
> with some data in my page class) using below tag.
>
> My question is why is it asking for Hibernate Session or hibernate.cfg.xml
> when i am not connecting to DB.
>
> Is it necessary to configure Logger and hibernate.cfg.xml before using the
> Grid or BeanEditComponent.
>
>  
>
>
>
> Render queue error in BeginRender[CallSummary:grid.columns.sort]:
> 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(M
> appedConfiguration,
> 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'): /hibernate.cfg.xml not found
>
> Thankyou,
> ravindra.
>
>
>
>


Issue with Grid component

2008-06-17 Thread raveendra
Hi T5 guys,

We have chosen T5 for our new project.I am trying to develop a screen
using Grid component.I am not connecting to database
just displaying the list of  callSummaryBean' s (just creating the beans
with some data in my page class) using below tag.

My question is why is it asking for Hibernate Session or hibernate.cfg.xml
when i am not connecting to DB.

Is it necessary to configure Logger and hibernate.cfg.xml before using the
Grid or BeanEditComponent.

  



Render queue error in BeginRender[CallSummary:grid.columns.sort]: 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'): /hibernate.cfg.xml not found

Thankyou,
ravindra.


problem with dojo generated javascript

2008-06-08 Thread raveendra
Hi all,

We are upgrading our project from T4.0.2 to T4.1.5.We have added Shell
component in couple of pages to import js library.
We have added this component just to initialize tapestry,dojo variables that
will be generated in pages by default.We are not
using dojo toolkit in our javascript code.



Is there any way we can avoid the above code or even after adding the Shell
component avoid the head tags generated by dojo
and import the javascript library .I need to import only core.js , dojo.js

Thanks for your response,
ravindra.


Timeout component problem

2008-05-05 Thread raveendra
Hi all,

We are upgrading from T 4.0.2 to T 4.1.5.How to use Timeout component is
4.1.some where in out code we are using


The below code will be generated by Timeout component.But it says  '
tapestry ' is undefined , which is generating javascript errors on page.


tapestry.TimeoutTimerConfirm=function(){};
tapestry.TimeoutProlongSessionTime=function(){};
tapestry.TimeoutExpirationTime=function(){};

tapestry.addOnLoad(function(e) {
dojo.require("tapestry.form");tapestry.form.registerForm("Form");});


upgrading problem tapestry 4.0.2 to 4.1.5

2008-05-02 Thread raveendra
Hi all,

I am upgrading my project from tapestry 4.0.2 to 4.1.5.I have solved most of
my upgradation issues.But some links on my pages are disappearing and some
times appearing when i click on some othe links.Even if they not appear, if
i click on the link place it is working fine.Just the label is not
appearing.

anybody familiar with this kind of weird problem?

regards,
ravindra


ognl problem

2008-05-02 Thread raveendra
 Hi all,

I have a small problem here, at  id="ognl:currOption.searchTerm"







id="ognl:currOption.searchTerm" this expression  evaluates to a string
value like "Start Date". I want to trim the spaces in the string how.I want
to trim down to "StartDate".How can i do it without effecting other
functionality which uses the same expression


Re:ognl problem

2008-05-02 Thread raveendra
Thanks andreoua, my first issue(unnecessary  tags removed) is solved.I
have added renderTag="false" to the component.Now those tags are not getting
generated.Thanks for your replay.

About the second issue i am tracing out where the space is getting
generated.



>For the first issue, you're probably using @If, @Else or @For
somewhere...
> Take a look at their renderTag parameter, you'll probably want to
set
> it to false
>
http://tapestry.apache.org/tapestry4.1/components/general/if.html
>
>For the second problem, how are you declaring your
DatePicker component?
> You must have an extra space somewhere there, so just remove
it.
>
> On Wed, Apr 30, 2008 at 2:44 PM, raveendra varma <
[EMAIL PROTECTED]<http://email.secureserver.net/webmail.php?login=1#Compose>>
wrote:
> Hi all,
>
> I am upgrading my tapestry project from 4.0.2 to 4.1.5.I made all the java
> related changes.But i have a problem with dojo generated
> javascript.As <http://javascript.as/><http://javascript.as/>4.1 version of
tapestry dojo comes
> in built with tapestry jars , dojo
> generated script has some errors like below
>
>  onkeypress="return noenter()" />
> 
> function noenter() {
> <span>
> return true;
> </span>
> }
> 
>
>
> The  tags are getting generated which is causing
ErroronPage.Onemore
> error is
>
> 

dojo problem

2008-04-30 Thread raveendra varma
Hi all,

I am upgrading my tapestry project from 4.0.2 to 4.1.5.I made all the java
related changes.But i have a problem with dojo generated
javascript.As4.1 version of tapestry dojo comes
in built with tapestry jars , dojo
generated script has some errors like below


   
   function noenter() {
  
  return true;
  
   }
  


The  tags are getting generated which is causing ErroronPage.Onemore
error is